/* ─── Tokens ─── */
:root {
  --bg: #080c0a;
  --surface: rgba(255, 255, 255, 0.05);
  --card: rgba(255, 255, 255, 0.07);
  --text: #edf3ef;
  --muted: rgba(237, 243, 239, 0.44);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #22d3a5;
  --accent-dark: #18a880;
  --accent-soft: rgba(34, 211, 165, 0.13);
  --warm: #f0a830;
  --warm-soft: rgba(240, 168, 48, 0.15);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --header-h: 60px;
  --nav-h: 72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse at 18% -5%, rgba(34, 211, 165, .18) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 30%, rgba(240, 168, 48, .11) 0%, transparent 48%),
    radial-gradient(ellipse at 12% 80%, rgba(34, 211, 165, .1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(240, 168, 48, .08) 0%, transparent 45%),
    #080c0a;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ─── Background orbs ─── */
.bg-orb {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}
.bg-orb--a { top: 0%; left: -100px; background: rgba(34, 211, 165, .45); }
.bg-orb--b { top: 42%; right: -100px; background: rgba(240, 168, 48, .38); }

/* ─── App shell ─── */
.app {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100dvh; height: 100vh;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Header ─── */
.app-header {
  flex-shrink: 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(8, 12, 10, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 1px 0 rgba(34, 211, 165, .06);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #080c0a; font-weight: 800; font-size: .88rem;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(34, 211, 165, .35);
}

.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__text strong { font-size: .93rem; line-height: 1.2; color: var(--text); }
.brand__text small { font-size: .73rem; color: var(--muted); }

.online-badge {
  font-size: .78rem; font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 165, .12);
  border: 1px solid rgba(34, 211, 165, .22);
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}

.online-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 211, 165, .55);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(34, 211, 165, 0);
  }
}

/* ─── Main area ─── */
.app-main {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ─── Tab panels ─── */
.tab-panel {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  overflow: hidden;
}
.tab-panel.is-active { display: flex; }

/* ─── Panel top (progress + pills) ─── */
.panel-top {
  flex-shrink: 0;
  background: rgba(8, 12, 10, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 10px 16px 0;
}

.progress-mini {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.progress-mini span {
  font-size: .76rem; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.progress-track {
  flex: 1; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
.progress-track span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width .3s ease;
}

/* ─── Pills (horizontal scroll submenu) ─── */
.pills-scroll {
  overflow-x: auto; overflow-y: hidden;
  margin: 0 -16px;
  padding: 0 16px 10px;
  scrollbar-width: none;
}
.pills-scroll::-webkit-scrollbar { display: none; }

.pills {
  display: flex; gap: 7px;
  width: max-content;
}

.pills button {
  flex-shrink: 0;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: var(--muted); font-size: .82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.pills button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #080c0a;
  box-shadow: 0 4px 14px rgba(34, 211, 165, .28);
}
.pills button:not(.is-active):active {
  background: var(--accent-soft);
}

/* ─── Panel content (scrollable) ─── */
.panel-content {
  flex: 1; overflow-y: auto;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
}

/* ─── Panel footer ─── */
.panel-footer {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  background: rgba(8, 12, 10, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.panel-footer--cta {
  flex-direction: column; align-items: stretch; gap: 8px;
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
}

.cta-info { display: flex; flex-direction: column; gap: 2px; }
.cta-info strong { font-size: .98rem; color: var(--text); }
.cta-info small { color: var(--muted); font-size: .8rem; }

/* ─── Screen card ─── */
.screen-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}

.screen-content { padding: 20px; }

/* ─── Screen elements ─── */
.screen-tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 165, .22);
  color: var(--accent);
  font-size: .8rem; font-weight: 700;
  margin-bottom: 10px;
}

.screen-title {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text);
}

.screen-body { display: grid; gap: 13px; }

.screen-body p {
  margin: 0; color: var(--muted); font-size: .93rem;
}

.screen-list {
  margin: 0; padding-left: 18px;
  display: grid; gap: 7px;
}
.screen-list li { font-size: .93rem; color: var(--muted); }

.screen-note {
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
}
.screen-note--accent {
  background: linear-gradient(180deg, rgba(240, 168, 48, .08), rgba(240, 168, 48, .04));
  border-color: rgba(240, 168, 48, .2);
}
.screen-note strong { display: block; margin-bottom: 6px; font-size: .93rem; color: var(--text); }
.screen-note p { margin: 0; font-size: .88rem; color: var(--muted); }

.screen-media-grid { display: grid; gap: 12px; }
.screen-media {
  padding: 16px; border-radius: 18px;
  border: 1px dashed rgba(34, 211, 165, .2);
  background: rgba(34, 211, 165, .04);
  min-height: 110px;
}
.screen-media__label {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: rgba(240, 168, 48, .15); color: var(--warm);
  font-size: .78rem; font-weight: 700; margin-bottom: 8px;
}
.screen-media h4 { margin: 0 0 5px; font-size: .92rem; color: var(--text); }
.screen-media p { margin: 0; font-size: .86rem; color: var(--muted); }

.faq-mini { display: grid; gap: 10px; }
.faq-mini__item {
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
}
.faq-mini__item h4 { margin: 0 0 5px; font-size: .93rem; color: var(--text); }
.faq-mini__item p { margin: 0; font-size: .86rem; color: var(--muted); }

.screen-inline-actions {
  display: flex; flex-direction: column; gap: 8px; padding-top: 4px;
}

.screen-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.screen-metric {
  flex: 1 1 120px;
  padding: 11px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: 2px;
}
.screen-metric strong { color: var(--accent); font-size: 1.05rem; }
.screen-metric span { font-size: .8rem; color: var(--muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: .93rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s;
  width: 100%; text-align: center;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  color: #080c0a;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 28px rgba(34, 211, 165, .28), 0 0 0 1px rgba(34, 211, 165, .15);
}
.btn--ghost {
  color: var(--accent);
  background: rgba(34, 211, 165, .08);
  border-color: rgba(34, 211, 165, .25);
  flex: 1;
}
.btn--sm { min-height: 42px; font-size: .86rem; }
.btn.is-disabled, .btn:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none; pointer-events: none;
}

/* ─── Bottom navigation ─── */
.bottom-nav {
  flex-shrink: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: stretch;
  background: rgba(9, 14, 11, .97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, .04),
    0 -8px 40px rgba(0, 0, 0, .35);
}

.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: rgba(200, 220, 210, 0.38); font-size: .72rem; font-weight: 600;
  padding: 6px 4px 2px;
  transition: color .22s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 48px; height: 32px;
  border-radius: 16px;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}
.nav-item svg {
  transition: stroke .22s, transform .22s, filter .22s;
  stroke: rgba(200, 220, 210, 0.32);
  position: relative; z-index: 1;
}
.nav-item span {
  position: relative; z-index: 1;
  letter-spacing: .01em;
}
.nav-item.is-active {
  color: var(--accent);
}
.nav-item.is-active::before {
  background: rgba(34, 211, 165, .12);
  box-shadow: 0 0 0 1px rgba(34, 211, 165, .18);
}
.nav-item.is-active svg {
  stroke: var(--accent);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(34, 211, 165, .45));
}

/* ─── Admin panel ─── */
.admin-section {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.admin-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.admin-section-title {
  font-weight: 700; font-size: .95rem; color: var(--text);
}

.admin-refresh {
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 165, .2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 1rem; font-weight: 700;
  width: 34px; height: 34px;
  cursor: pointer; display: grid; place-items: center;
}

/* Config form */
.config-form { display: grid; gap: 12px; }

.config-label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
}

.config-input {
  height: 44px; padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: var(--text); font-size: .9rem;
  outline: none; width: 100%;
  transition: border-color .18s;
}
.config-input::placeholder { color: rgba(237, 243, 239, .28); }
.config-input:focus { border-color: var(--accent); }

.config-hint {
  margin: 0; font-size: .82rem;
  color: var(--accent); font-weight: 600; min-height: 18px;
}
.config-hint--lock {
  color: var(--warm); font-size: .78rem; font-weight: 600;
  background: rgba(240, 168, 48, .08); border-radius: 6px;
  padding: 5px 8px; margin-top: -4px;
  border: 1px solid rgba(240, 168, 48, .15);
}
.config-hint--lock code {
  font-family: monospace; font-size: .78rem;
  background: rgba(240, 168, 48, .14); padding: 1px 4px; border-radius: 3px;
}
.config-input--locked {
  opacity: .55; cursor: not-allowed;
  background: rgba(255, 255, 255, .03);
}

/* ─── Admin management ─── */
.admin-add-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 12px;
}
.admin-add-row .config-input { flex: 1; min-width: 0; }
.admin-add-btn { flex-shrink: 0; width: auto !important; padding: 0 18px; }

.admins-list { display: grid; gap: 8px; }

.admin-id-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-sm);
}

.admin-id-crown { font-size: 1rem; flex-shrink: 0; }

.admin-id-val {
  flex: 1; font-size: .88rem; font-weight: 600;
  font-feature-settings: "tnum"; color: var(--text);
}

.admin-id-tag {
  font-size: .72rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; flex-shrink: 0;
}
.admin-id-tag--owner {
  background: var(--warm-soft); color: var(--warm);
}

.admin-id-remove {
  flex-shrink: 0; width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(200, 40, 40, .1);
  border: 1px solid rgba(200, 40, 40, .22);
  border-radius: 999px; cursor: pointer;
  color: #f87171; font-size: .85rem; font-weight: 700;
  transition: background .18s;
  -webkit-tap-highlight-color: transparent;
}
.admin-id-remove:active { background: rgba(200, 40, 40, .22); }

.admin-list-empty {
  font-size: .82rem; color: var(--muted);
  text-align: center; padding: 8px 0;
}

.admin-nav-item { color: rgba(240,168,48,.45) !important; }
.admin-nav-item svg { stroke: rgba(240,168,48,.42) !important; }
.admin-nav-item.is-active { color: var(--warm) !important; }
.admin-nav-item.is-active svg {
  stroke: var(--warm) !important;
  filter: drop-shadow(0 0 8px rgba(240,168,48,.5)) !important;
}
.admin-nav-item.is-active::before {
  background: rgba(240,168,48,.12) !important;
  box-shadow: 0 0 0 1px rgba(240,168,48,.18) !important;
}

/* ─── Tap highlight ─── */
.pills button,
.btn,
.nav-item {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ─── Payment bottom sheet ─── */
.pay-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.pay-sheet:not([aria-hidden="true"]) { pointer-events: all; }

.pay-sheet__bd {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .28s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pay-sheet:not([aria-hidden="true"]) .pay-sheet__bd { opacity: 1; }

.pay-sheet__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto;
  background: #0d1611;
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 12px 16px max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 -8px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.07);
}
.pay-sheet:not([aria-hidden="true"]) .pay-sheet__box { transform: translateY(0); }

.pay-sheet__pill {
  width: 40px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .15); margin: 0 auto 18px;
}

.pay-sheet__h {
  margin: 0 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem; font-weight: 700; text-align: center;
  color: var(--text);
}

.pay-options { display: grid; gap: 10px; margin-bottom: 12px; }

.pay-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .11);
  cursor: pointer; text-align: left; width: 100%;
  transition: background .18s, transform .16s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.pay-opt:active { transform: scale(.98); background: var(--accent-soft); border-color: rgba(34,211,165,.25); }
.pay-opt--soon { opacity: .5; cursor: default; }
.pay-opt--soon:active { transform: none; background: rgba(255,255,255,.07); }

.pay-opt__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; width: 36px; text-align: center; }
.tg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }

.pay-opt__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pay-opt__body strong { font-size: .95rem; font-weight: 700; color: var(--text); }
.pay-opt__body span { font-size: .8rem; color: var(--muted); }

.pay-opt__chevron { font-size: 1.4rem; color: var(--muted); flex-shrink: 0; }

.crypto-auto-badge {
  display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .04em;
  background: var(--accent-dark); color: #080c0a; border-radius: 4px;
  padding: 1px 5px; margin-left: 5px; vertical-align: middle;
}
.crypto-manual__network {
  font-size: .9rem; font-weight: 600; color: var(--text);
  margin: 0 0 10px; text-align: center;
}

.pay-opt__badge {
  flex-shrink: 0;
  padding: 4px 10px; border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm); font-size: .75rem; font-weight: 700;
}

.pay-sheet__cancel {
  width: 100%; padding: 14px;
  background: none; border: none;
  font-size: .93rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border-radius: var(--r-sm);
  transition: color .18s;
  -webkit-tap-highlight-color: transparent;
}
.pay-sheet__cancel:active { color: var(--text); }

/* ─── Card detail ─── */
.card-detail { display: grid; gap: 14px; margin-bottom: 12px; }

.card-num-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(34, 211, 165, .22);
}

.card-num {
  font-size: 1.1rem; font-weight: 800; color: #080c0a;
  letter-spacing: .06em; font-feature-settings: "tnum";
  word-break: break-all; flex: 1;
}

.copy-btn {
  flex-shrink: 0; padding: 7px 14px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 999px;
  color: #080c0a; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
  -webkit-tap-highlight-color: transparent;
}
.copy-btn:active, .copy-btn.copied { background: rgba(0, 0, 0, .35); }

.card-detail__note {
  margin: 0; font-size: .86rem; color: var(--muted);
  text-align: center; line-height: 1.55;
}

/* ─── Screenshot banners (results screen only) ─── */
.screenshot-banners {
  display: flex; flex-direction: column;
  gap: 14px;
  margin: 8px 0 4px;
}

.screenshot-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  background: rgba(255,255,255,.05);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
.screenshot-banner:active { transform: scale(.985); }

/* Slideshow slides wrapper */
.banner-slides {
  position: relative;
  width: 100%; height: 100%;
}
.banner-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.banner-slide img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Footer: label + dots */
.screenshot-banner__footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(4,8,6,.9) 0%, rgba(4,8,6,.3) 60%, transparent 100%);
}

.screenshot-banner__label {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .84rem; font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.banner-dots {
  display: flex; gap: 5px;
  align-items: center;
}
.banner-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  transition: background .3s, width .3s;
  flex-shrink: 0;
}
.banner-dot.is-active {
  background: #fff;
  width: 14px;
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.lightbox:not([aria-hidden="true"]) {
  pointer-events: all;
  opacity: 1;
}

.lightbox__bd {
  position: absolute; inset: 0;
  background: rgba(4, 8, 6, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 96vw; max-height: 92dvh;
  gap: 10px;
  transform: scale(.94);
  transition: transform .22s ease;
}
.lightbox:not([aria-hidden="true"]) .lightbox__inner {
  transform: scale(1);
}

.lightbox__img {
  display: block;
  max-width: 98vw;
  max-height: 80dvh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  object-fit: contain;
  transition: opacity .18s ease;
}
.lightbox__img.is-fading { opacity: 0; }

.lightbox__controls {
  display: flex; align-items: center; gap: 16px;
}
.lightbox__nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, opacity .18s;
}
.lightbox__nav:active { background: rgba(255,255,255,.25); }
.lightbox__nav:disabled { opacity: .2; pointer-events: none; }

.lightbox__counter {
  font-size: .84rem; font-weight: 700;
  color: rgba(255,255,255,.65);
  min-width: 48px; text-align: center;
}

.lightbox__caption {
  margin: 0;
  font-size: .88rem; font-weight: 700;
  color: rgba(255,255,255,.75);
  text-align: center;
  min-height: 1em;
  letter-spacing: .02em;
}

.lightbox__close {
  margin-top: 12px;
  padding: 0 36px;
  height: 58px;
  min-width: 180px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff; font-size: 1rem; font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s;
  white-space: nowrap;
}
.lightbox__close:active { background: rgba(255,255,255,.22); }

/* ─── TON Payment Sheet ─── */
.ton-sheet {
  position: fixed; inset: 0; z-index: 350;
  display: flex; align-items: flex-end;
  pointer-events: none; opacity: 0;
  transition: opacity .25s ease;
}
.ton-sheet:not([aria-hidden="true"]) { pointer-events: all; opacity: 1; }

.ton-sheet__bd {
  position: absolute; inset: 0;
  background: rgba(4, 8, 6, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ton-sheet__box {
  position: relative; z-index: 1;
  width: 100%; max-height: 92dvh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #0d1611;
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 8px 16px max(32px, env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.ton-sheet:not([aria-hidden="true"]) .ton-sheet__box { transform: translateY(0); }

.ton-sheet__pill {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.14); border-radius: 999px;
  margin: 4px auto 16px;
}

.ton-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.ton-head__title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 3px; }
.ton-head__sub   { font-size: .78rem; color: var(--muted); }

.ton-close {
  width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; color: var(--muted); font-size: .88rem;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.ton-close:active { background: rgba(255,255,255,.15); }

.ton-plan-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.ton-plan-badge {
  background: var(--accent-soft); border: 1px solid rgba(34,211,165,.22);
  color: var(--accent); padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.ton-timer {
  font-size: .92rem; font-weight: 700; color: var(--warm);
  font-variant-numeric: tabular-nums;
}

.ton-progress {
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.1); margin-bottom: 14px; overflow: hidden;
}
.ton-progress__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  transition: width 1s linear;
}

.ton-instr {
  background: rgba(34,211,165,.08); border: 1px solid rgba(34,211,165,.15);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 12px;
}
.ton-instr__label {
  display: block; font-size: .68rem; font-weight: 800;
  color: var(--accent); letter-spacing: .08em; margin-bottom: 6px;
}
.ton-instr__steps {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text); margin-bottom: 6px;
}
.ton-arrow { color: var(--muted); }
.ton-instr__hint { font-size: .74rem; color: var(--muted); margin: 0; line-height: 1.5; }

.ton-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; flex-shrink: 0;
  background: var(--accent); color: #080c0a; font-size: .72rem; font-weight: 800;
}
.ton-num--orange { background: var(--warm); color: #080c0a; }

.ton-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ton-card--orange {
  background: rgba(240,168,48,.08); border-color: rgba(240,168,48,.22);
}
.ton-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ton-card__label {
  font-size: .68rem; font-weight: 800;
  color: var(--muted); letter-spacing: .07em;
}
.ton-card__label--orange { color: var(--warm); }
.ton-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ton-card__val { color: var(--text); font-size: .9rem; font-weight: 600; flex: 1; word-break: break-all; }
.ton-card__val--big  { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.ton-card__val--addr { font-size: .8rem; font-weight: 500; opacity: .8; }

.ton-copy {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px; color: var(--muted); font-size: 1.1rem;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.ton-copy:active { background: rgba(255,255,255,.15); }
.ton-copy.copied {
  background: var(--accent-soft); border-color: rgba(34,211,165,.3); color: var(--accent);
}

.ton-memo-warn {
  font-size: .75rem; color: var(--warm); margin: 8px 0 0;
  background: rgba(240,168,48,.1); border-radius: 6px; padding: 6px 8px;
  border: 1px solid rgba(240,168,48,.18);
}

.ton-status-msg {
  min-height: 1.2em; text-align: center;
  font-size: .84rem; font-weight: 600; color: var(--muted);
  margin: 8px 0 0;
}
.ton-status-msg.is-error   { color: #f87171; }
.ton-status-msg.is-success { color: var(--accent); }

.ton-verify-btn {
  width: 100%; height: 58px; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 28px rgba(34,211,165,.28);
  border: none; border-radius: 16px;
  color: #080c0a; font-size: 1rem; font-weight: 800;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .18s, transform .16s;
}
.ton-verify-btn:active   { opacity: .85; transform: scale(.98); }
.ton-verify-btn:disabled { opacity: .3; pointer-events: none; box-shadow: none; }

.ton-success { text-align: center; padding: 20px 0 8px; }
.ton-success__icon  { font-size: 3.2rem; margin-bottom: 14px; }
.ton-success__title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.ton-success__sub   { font-size: .9rem; color: var(--muted); margin: 0 0 20px; }

/* ─── Access status banner ─── */
.access-banner {
  flex-shrink: 0;
  margin: 8px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  animation: banner-in .35s cubic-bezier(.4,0,.2,1);
}

@keyframes banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.access-banner__waiting {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(240, 168, 48, .1);
  border: 1px solid rgba(240, 168, 48, .22);
  border-radius: 14px;
  font-size: .86rem; font-weight: 600; color: var(--warm);
}

.access-banner__spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid rgba(240,168,48,.3);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.access-banner__ok {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(34, 211, 165, .1);
  border: 1px solid rgba(34, 211, 165, .25);
  border-radius: 14px;
}

.access-banner__ok-icon { font-size: 1.3rem; flex-shrink: 0; }

.access-banner__ok-text {
  flex: 1; display: flex; flex-direction: column; gap: 1px;
}
.access-banner__ok-text strong { font-size: .88rem; color: var(--accent); }
.access-banner__ok-text span   { font-size: .76rem; color: var(--muted); }

.access-banner__link {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--accent);
  color: #080c0a; font-size: .82rem; font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity .18s;
}
.access-banner__link:active { opacity: .8; }

/* ─── Receipt sheet ─── */
.receipt-sheet {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.receipt-sheet:not([aria-hidden="true"]) { pointer-events: all; }

.receipt-sheet__bd {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .28s ease;
  backdrop-filter: blur(4px);
}
.receipt-sheet:not([aria-hidden="true"]) .receipt-sheet__bd { opacity: 1; }

.receipt-sheet__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto;
  background: #0d1611;
  border: 1px solid rgba(255,255,255,.1); border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 12px 16px max(28px, env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 48px rgba(0,0,0,.5);
}
.receipt-sheet:not([aria-hidden="true"]) .receipt-sheet__box { transform: translateY(0); }

.receipt-form { display: grid; gap: 12px; margin-bottom: 8px; }

.receipt-textarea {
  width: 100%; padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: var(--text); font-size: .9rem; font-family: inherit;
  resize: none; outline: none; line-height: 1.5;
  transition: border-color .18s;
}
.receipt-textarea::placeholder { color: rgba(237,243,239,.28); }
.receipt-textarea:focus { border-color: var(--accent); }

.receipt-photo-zone {
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: var(--r-md);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  transition: border-color .18s;
  position: relative;
}
.receipt-photo-zone:active { border-color: var(--accent); }

.receipt-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: .85rem; font-weight: 600;
  padding: 16px;
  pointer-events: none;
}
.receipt-photo-icon { font-size: 1.6rem; }

.receipt-photo-img {
  width: 100%; max-height: 200px;
  object-fit: contain;
  border-radius: var(--r-md);
}

/* ─── Admin sub-tabs ─── */
.admin-tabs {
  flex-shrink: 0;
  display: flex; gap: 8px;
  padding: 10px 16px;
  background: rgba(8, 12, 10, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: var(--muted); font-size: .82rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background .18s, border-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.admin-tab:active { opacity: .75; }
.admin-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 165, .3);
  color: var(--accent);
}

.admin-subpanel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.admin-subpanel.is-active { display: flex; }

/* ─── Subscriptions panel ─── */
.subs-channel-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}

.subs-channel-status {
  display: flex; align-items: center; gap: 8px;
}

.subs-status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.subs-status-dot--off  { background: rgba(237, 243, 239, .25); }
.subs-status-dot--on   { background: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,165,.2); }
.subs-status-dot--warn { background: var(--warm); box-shadow: 0 0 0 3px rgba(240,168,48,.2); }

.subs-status-label { font-size: .84rem; font-weight: 600; color: var(--muted); }

.subs-instr {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid rgba(255,255,255,.15);
  border-radius: 10px;
}
.subs-instr__label {
  display: block; font-size: .66rem; font-weight: 800;
  color: var(--muted); letter-spacing: .08em; margin-bottom: 8px;
}
.subs-instr__list {
  margin: 0; padding-left: 18px;
  display: grid; gap: 5px;
}
.subs-instr__list li { font-size: .82rem; color: var(--muted); }

.subs-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

.subs-stat-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
}
.subs-stat-card strong {
  font-size: 1.35rem; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.subs-stat-card span { font-size: .75rem; color: var(--muted); }

.subs-search-row {
  margin-bottom: 10px;
}

.subs-list {
  display: grid; gap: 8px;
}

.subs-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-sm);
}

.subs-list-item__id {
  flex: 1; font-size: .85rem; font-weight: 600; color: var(--text);
  font-feature-settings: "tnum";
}

.subs-list-item__tag {
  font-size: .7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; flex-shrink: 0;
}
.subs-list-item__tag--active  { background: rgba(34,211,165,.14); color: var(--accent); }
.subs-list-item__tag--expired { background: rgba(200,40,40,.12); color: #f87171; }

/* ─── Shot type tabs ─── */
.shot-type-tabs {
  display: flex; gap: 6px;
  margin-bottom: 12px;
}

.shot-type-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: var(--muted); font-size: .76rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: all .18s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.shot-type-tab:active { opacity: .7; }
.shot-type-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 165, .3);
  color: var(--accent);
}

/* ─── Media section labels (results screen) ─── */
.media-section-label {
  font-size: .76rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0 4px;
}

/* ─── Admin screenshots grid ─── */
.screenshot-upload-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 4px;
}

.admin-screenshots-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 10px;
}

.admin-screenshot-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.admin-screenshot-item img {
  display: block; width: 100%;
  height: 110px; object-fit: cover;
}

.admin-screenshot-item__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
  gap: 4px;
}

.admin-screenshot-item__footer span {
  font-size: .72rem; font-weight: 600;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}

.admin-screenshot-remove {
  flex-shrink: 0; width: 24px; height: 24px;
  display: grid; place-items: center;
  background: rgba(200,40,40,.1);
  border: 1px solid rgba(200,40,40,.22);
  border-radius: 999px; cursor: pointer;
  color: #f87171; font-size: .75rem; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s;
}
.admin-screenshot-remove:active { background: rgba(200,40,40,.22); }
