.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(680px, calc(100% - 1rem));
}
.modal::backdrop {
  background: rgba(3, 3, 5, .72);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19,20,26,.96), rgba(12,13,18,.98));
}
.modal .modal-content {
  color: #f7f7f8;
  border: 1px solid rgba(255,255,255,.08);
}
.modal h3,
.modal strong { color: #f2c94c; }
.modal .muted,
.modal p,
.modal span,
.modal figcaption { color: #e7e7ea; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
}

.club-dialog-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.club-dialog-logo {
  width: 64px;
  height: 64px;
}

.install-tutorial-grid {
  display: grid;
  gap: .75rem;
}
.install-step-card {
  margin: 0;
  padding: .8rem;
  border-radius: 20px;
  background: #1c1d22;
  border: 1px solid rgba(255,255,255,.08);
}
.install-step-card img {
  width: 100%;
  margin-bottom: .75rem;
  border-radius: 16px;
}
.qr-image {
  width: min(280px, 100%);
  margin: 1rem auto 0;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
}

.photo-modal-content { padding: .8rem; }
.photo-modal-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 22px;
}

.pdf-modal-content {
  width: min(94vw, 920px);
  height: min(90dvh, 980px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-right: 2.75rem;
}
.pdf-modal-header h3 { margin: 0; }
.pdf-open-btn {
  flex: 0 0 auto;
  text-decoration: none;
}
.pdf-mobile-fallback {
  display: grid;
  gap: .85rem;
  place-items: center;
  text-align: center;
  min-height: 42vh;
}
.pdf-mobile-fallback p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}
.pdf-mobile-fallback .primary-btn { text-decoration: none; }
.pdf-close-mobile-btn {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #f7f7f8;
  border-radius: 14px;
  padding: 13px 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.pdf-frame {
  width: 100%;
  flex: 1;
  min-height: 0;
  margin-top: .85rem;
  border: 0;
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 767px) {
  .pdf-modal-content {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: calc(.75rem + var(--safe-top, 0px)) .75rem calc(.75rem + var(--safe-bottom, 0px));
  }
  .pdf-modal-header {
    align-items: center;
    flex-direction: row;
    margin-right: 3rem;
  }
  .pdf-modal-header h3 { font-size: 1rem; }
  .pdf-frame { border-radius: 10px; margin-top: .6rem; }
  .pdf-modal-content .modal-close {
    top: calc(.75rem + var(--safe-top, 0px));
  }
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(6rem + var(--safe-bottom));
  z-index: 20;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(17,18,23,.96);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: .25s ease;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.splash-transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb),.16), transparent 30%), rgba(5,5,8,.9);
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  color: white;
}
.splash-inner img {
  width: 124px;
  animation: splashIn .45s ease;
}

.push-card,
.api-status-card,
.detail-page,
.detail-grid.two,
.install-tutorial-grid {
  display: grid;
  gap: 14px;
}
.push-card-row,
.api-status-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.detail-hero { overflow: hidden; }
.detail-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.detail-team {
  all: unset;
  display: grid;
  justify-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 16px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
}
.detail-team img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.detail-score-box {
  min-width: 110px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-rgb),.28);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.22), rgba(255,255,255,.03));
}
.detail-score-box span {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
}
.detail-score-box small { color: var(--muted); }

.back-chip,
.endpoint-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.endpoint-chip {
  overflow: auto;
  white-space: nowrap;
  font-size: .84rem;
  color: var(--accent-2);
}

@keyframes splashIn {
  from { transform: scale(.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
