:root {
  --bg-deep: #03091a;
  --bg-mid: #060e22;
  --glass-bg: rgba(10, 20, 50, 0.58);
  --glass-strong: rgba(9, 18, 46, 0.82);
  --glass-border: rgba(80, 160, 255, 0.26);
  --accent-cyan: #00d4ff;
  --accent-violet: #6c3cff;
  --text-primary: #e8f0ff;
  --text-dim: rgba(200, 220, 255, 0.72);
  --text-soft: rgba(232, 240, 255, 0.88);
  --gold: #ffb347;
  --danger: #ef5350;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Bahnschrift, "Trebuchet MS", "Aptos", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 18% 8%, rgba(108, 60, 255, 0.34), transparent 32rem),
    radial-gradient(circle at 86% 84%, rgba(0, 212, 255, 0.24), transparent 36rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg-mid) 48%, #020612);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.short-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: rgba(3, 9, 26, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #04101d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-cyan), #8ef2ff 45%, var(--accent-violet));
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.34);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.13);
  transform: translateY(-1px);
}

.language-picker {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(0, 212, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-picker:hover {
  border-color: rgba(0, 212, 255, 0.38);
  background: rgba(0, 212, 255, 0.12);
}

.language-picker-icon,
.language-picker-label,
.language-picker-current,
.language-picker-chevron {
  pointer-events: none;
}

.language-picker-icon {
  font-size: 0.94rem;
}

.language-picker-label {
  white-space: nowrap;
}

.language-picker-current {
  min-width: 2.55rem;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(3, 9, 26, 0.88);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.language-picker-chevron {
  color: rgba(232, 240, 255, 0.62);
  font-size: 0.68rem;
}

.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero.split-section {
  align-items: start;
}

.split-section.compact {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-panel,
.feature-card,
.policy-card {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, var(--glass-bg), rgba(5, 12, 32, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy,
.policy-hero {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px);
  align-self: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.1vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.hero-copy .lead {
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.58;
}

p,
li {
  color: var(--text-dim);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.button-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #03101d;
  background: linear-gradient(135deg, var(--accent-cyan), #b8f5ff);
  box-shadow: 0 18px 34px rgba(0, 212, 255, 0.24);
}

.button.secondary {
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.text-link,
.policy-card a {
  color: var(--accent-cyan);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.policy-card a:hover {
  text-decoration: underline;
}

.fine-print {
  max-width: 680px;
  color: rgba(200, 220, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.55;
}

.phone-card {
  width: 100%;
  max-width: 430px;
  min-height: 0;
  padding: 12px;
  border-radius: 30px;
  align-self: start;
  justify-self: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(1, 5, 26, 0.96), rgba(2, 10, 40, 0.92)),
    var(--glass-bg);
}

.phone-preview-screen {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 420 / 835;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12), transparent 17rem),
    #020719;
  overflow: hidden;
}

.phone-preview-screen::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 34px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 7, 25, 0.86), transparent);
}

.preview-strip,
.preview-image-fallback {
  position: absolute;
  inset: 0;
}

.preview-strip {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.preview-image {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.preview-image-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--text-dim);
  text-align: center;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(108, 60, 255, 0.08));
}

.preview-image-fallback[hidden] {
  display: none;
}

.preview-image-fallback strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.preview-image-fallback code {
  color: var(--accent-cyan);
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 12px;
}

.phone-tabs button {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  color: var(--text-dim);
  background: rgba(0, 212, 255, 0.06);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.phone-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.52);
}

.phone-tabs em {
  font-size: 0.58rem;
  font-style: normal;
}

.phone-tabs .active {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.16);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .preview-strip {
    transition-duration: 1ms;
  }
}

.glow-cyan {
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 34px rgba(0, 212, 255, 0.12);
}

.glow-violet {
  box-shadow: inset 0 0 0 1px rgba(108, 60, 255, 0.18), 0 0 34px rgba(108, 60, 255, 0.16);
}

.section-block {
  margin-top: 62px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: 24px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #03101d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
}

.policy-layout {
  display: grid;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.policy-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 30px;
}

.policy-card h2 {
  margin-top: 34px;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card ul {
  padding-left: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-field {
  display: grid;
  gap: 8px;
}

.support-field span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(2, 10, 28, 0.84);
  font: inherit;
}

.support-field textarea {
  resize: vertical;
  min-height: 120px;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: 0;
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.support-turnstile {
  min-height: 66px;
}

.support-form-message {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.support-form-message[data-tone="success"] {
  color: #b8ffde;
  background: rgba(76, 175, 80, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.28);
}

.support-form-message[data-tone="error"] {
  color: #ffd1d1;
  background: rgba(239, 83, 80, 0.16);
  border: 1px solid rgba(239, 83, 80, 0.28);
}

.support-form-message[data-tone="info"] {
  color: var(--text-soft);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.support-fallback {
  margin-top: 14px;
}

.admin-layout {
  max-width: 1120px;
}

.admin-login-card {
  max-width: 560px;
  margin: 0 auto;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
}

.admin-stat {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(3, 9, 26, 0.52);
}

.admin-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-section {
  padding: 24px;
  border-radius: 30px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(3, 9, 26, 0.56);
}

.admin-card.is-done {
  opacity: 0.82;
}

.admin-card-details {
  padding: 0;
  overflow: hidden;
}

.admin-card-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
}

.admin-card-details > summary::-webkit-details-marker {
  display: none;
}

.admin-card-body {
  padding: 0 18px 18px;
}

.admin-summary-toggle {
  position: relative;
}

.admin-summary-toggle::after {
  content: "▸";
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}

.admin-card-details[open] > .admin-summary-toggle::after {
  transform: rotate(90deg);
}

.admin-summary-content {
  display: grid;
  gap: 10px;
  padding-right: 34px;
}

.admin-summary-title-row h3 {
  margin: 0;
}

.admin-summary-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-summary-subrow p {
  margin: 0;
}

.admin-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-status.is-open {
  color: #03101d;
  background: linear-gradient(135deg, var(--accent-cyan), #b8f5ff);
}

.admin-status.is-done {
  color: #d5dff7;
  background: rgba(255, 255, 255, 0.08);
}

.admin-meta-row,
.admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-pill {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.admin-details summary {
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}

.admin-meta-grid div {
  display: grid;
  gap: 4px;
}

.admin-meta-grid strong {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.admin-entry-list,
.admin-reward-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.admin-language-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-language-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-language-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
}

.admin-details-nested {
  margin-top: 10px;
}

.admin-entry {
  margin-bottom: 12px;
}

.admin-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.admin-pre {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 10, 28, 0.78);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 54px;
  padding: 22px 4px 0;
  color: rgba(200, 220, 255, 0.58);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  color: rgba(200, 220, 255, 0.58);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 900px) {
  .split-section,
  .split-section.compact,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid,
  .admin-summary,
  .admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-subrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-summary-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    margin-bottom: 24px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .language-picker {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 6px;
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .language-picker-label {
    display: none;
  }

  .language-picker-current {
    min-width: 2.15rem;
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .policy-hero,
  .policy-card {
    border-radius: 24px;
  }
}
