/* JINKUSU landing — ice sky blue · black · white */
:root {
  --black: #030712;
  --black-elevated: #0a0f1a;
  --surface: #0c1220;
  --card: #0f172a;
  --border: rgba(125, 211, 252, 0.14);
  --border-strong: rgba(125, 211, 252, 0.28);
  --white: #fafafa;
  --muted: #94a3b8;
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --ice-glow: rgba(125, 211, 252, 0.15);
  --ice-glow-strong: rgba(56, 189, 248, 0.22);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap--pricing {
  max-width: 1320px;
}
.narrow { max-width: 680px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 12px 40px var(--ice-glow-strong);
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ice-300);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav a:not(.btn):hover { color: var(--ice-200); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--ice-200) 0%, var(--ice-400) 45%, var(--ice-500) 100%);
  color: var(--black);
  box-shadow: 0 4px 24px var(--ice-glow-strong);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35);
}
.btn.ghost {
  border-color: var(--border-strong);
  color: var(--ice-100);
  background: rgba(15, 23, 42, 0.5);
}
.btn.ghost:hover {
  border-color: var(--ice-300);
  color: var(--white);
}
.btn.full { width: 100%; }

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 70% 0%, var(--ice-glow-strong), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(14, 165, 233, 0.08), transparent),
    var(--black);
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .top-inner { flex-wrap: wrap; }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav a { font-size: 12px; }
  .nav .btn { margin-left: auto; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ice-400);
  margin: 0 0 16px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
.hl {
  background: linear-gradient(90deg, var(--ice-100), var(--ice-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 48ch;
  margin: 0 0 32px;
  line-height: 1.65;
}
.lead strong { color: var(--ice-100); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-aside { display: flex; justify-content: center; }
.hero-glass {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.88));
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 64px rgba(0, 0, 0, 0.45);
}
.hero-mark {
  display: block;
  margin: 0 auto 8px;
  width: min(200px, 70%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(56, 189, 248, 0.25));
}
.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 20px 0 18px;
}
.hero-mini-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-300);
  margin: 0 0 12px;
}

.check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ice-400), var(--ice-500));
  opacity: 0.5;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check.small li { font-size: 13px; padding-top: 7px; padding-bottom: 7px; }

.section { padding: 88px 0; }
.section.alt {
  background: linear-gradient(180deg, var(--black-elevated) 0%, var(--surface) 50%, var(--black-elevated) 100%);
  border-block: 1px solid var(--border);
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-400);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-sub {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 44px;
  font-size: 1.02rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}
.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--ice-500);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ─── Pricing tiles: three in a row; horizontal scroll on narrow viewports ─ */
.pricing-intro { max-width: 62ch; }

.pricing-grid-wrap {
  overflow-x: auto;
  overflow-y: visible;
  margin: 0 -28px;
  padding: 12px 28px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(125, 211, 252, 0.35) transparent;
}

.pricing-grid-wrap::-webkit-scrollbar {
  height: 8px;
}
.pricing-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.35);
  border-radius: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    width: max-content;
    min-width: 100%;
    padding-bottom: 4px;
  }
  .pricing-tile {
    scroll-snap-align: start;
    max-width: min(320px, 85vw);
  }
  .pricing-tile--featured {
    order: 0;
  }
}

.pricing-tile--selectable {
  cursor: pointer;
}
.pricing-tile--selectable:focus-visible {
  outline: 2px solid var(--ice-400);
  outline-offset: 3px;
}
.pricing-tile__buy {
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55) 0%, rgba(3, 7, 18, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.pricing-tile:hover {
  border-color: var(--border-strong);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}

.pricing-tile--featured {
  z-index: 2;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.32),
    0 32px 64px rgba(14, 165, 233, 0.14),
    0 40px 80px rgba(0, 0, 0, 0.25);
  background: linear-gradient(170deg, rgba(12, 42, 68, 0.45) 0%, rgba(15, 23, 42, 0.95) 38%, rgba(3, 7, 18, 0.98) 100%);
}

.pricing-tile__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--ice-300), var(--ice-400), var(--ice-500));
  color: var(--black);
}

.pricing-tile--featured .pricing-tile__header {
  padding-top: 46px;
}

.pricing-tile__header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.pricing-tile__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-400);
  margin-bottom: 8px;
}

.pricing-tile__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.pricing-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 8px;
  gap: 0;
}

.pricing-tile__price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 14px;
}

.pricing-tile__currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice-300);
  line-height: 1;
}

.pricing-tile__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
}

.pricing-tile__term {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice-200);
  margin-top: 4px;
}

.pricing-tile__note {
  font-size: 12px;
  color: var(--ice-400);
  font-weight: 600;
  margin: -6px 0 12px;
}

.pricing-tile__summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.pricing-tile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.pricing-tile__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid rgba(125, 211, 252, 0.1);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.pricing-tile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-400), var(--ice-500));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.pricing-tile__footer {
  padding: 18px 22px 22px;
  margin-top: auto;
}

.btn--tile {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 12px;
}

.btn--outline {
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.6);
  color: var(--ice-100);
}

.btn--outline:hover {
  border-color: var(--ice-400);
  color: var(--white);
  background: rgba(56, 189, 248, 0.08);
}

.btn--solid {
  border: none;
  background: linear-gradient(135deg, var(--ice-100) 0%, var(--ice-300) 40%, var(--ice-500) 100%);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.3);
}

.btn--solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pricing-footnote {
  text-align: center;
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Download tiles ───────────────────────────────────────────── */
.downloads-section .section-sub code {
  font-size: 0.88em;
}

.dl-group {
  margin-bottom: 40px;
}

.dl-group:last-child {
  margin-bottom: 0;
}

.dl-group__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.dl-group__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 70ch;
  line-height: 1.55;
}

.dl-group__desc code {
  font-size: 0.9em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: var(--ice-200);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.dl-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dl-tile:hover {
  border-color: var(--border-strong);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.dl-tile:focus-visible {
  outline: 2px solid var(--ice-400);
  outline-offset: 3px;
}

.dl-tile__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ice-100);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08));
  border: 1px solid var(--border-strong);
}

.dl-tile__text {
  flex: 1;
  min-width: 0;
}

.dl-tile__name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 4px;
}

.dl-tile__meta {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.dl-tile__meta code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--ice-200);
}

.dl-tile__action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-400);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.dl-tile:hover .dl-tile__action {
  color: var(--ice-100);
  border-color: var(--ice-400);
  background: rgba(56, 189, 248, 0.15);
}

.section-sub a {
  color: var(--ice-300);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.section-sub a:hover {
  color: var(--ice-100);
  border-bottom-color: var(--ice-300);
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
  max-width: 85ch;
  line-height: 1.6;
}

.req-grid { display: grid; gap: 22px; }
.req-block ul { margin: 0; padding-left: 18px; color: var(--muted); }
.req-block li { margin: 10px 0; }
.req-block code {
  font-size: 13px;
  background: var(--black);
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--ice-200);
}

/* ─── Telegram (contact) ─────────────────────────────────────────── */
.tg-section .narrow {
  max-width: 520px;
}

.tg-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tg-section .section-title {
  text-align: center;
}

.tg-section .kicker {
  text-align: center;
}

.tg-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.tg-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 0.95));
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tg-card:hover {
  border-color: rgba(38, 165, 228, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.tg-card:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.tg-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

.tg-card__icon--channel {
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, #7dd3fc, #0ea5e9);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.tg-card__channel-mark {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--black);
  color: var(--ice-300);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 1px solid var(--border-strong);
}

.tg-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-card__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-400);
}

.tg-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.tg-card__meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tg-card__go {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.tg-card:hover .tg-card__go {
  color: var(--ice-100);
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.tg-card--channel:hover {
  border-color: rgba(125, 211, 252, 0.4);
}

/* ─── Checkout modal ─────────────────────────────────────────────── */
body.checkout-modal-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal[hidden] {
  display: none !important;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
}

.checkout-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.99));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.checkout-modal__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.checkout-modal__x:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.checkout-step[hidden] {
  display: none !important;
}

.checkout-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 12px;
  padding-right: 36px;
  letter-spacing: -0.02em;
}

.checkout-modal__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.checkout-modal__hint {
  min-height: 1.25em;
  font-size: 13px;
  color: var(--ice-400);
  margin: 0 0 16px;
}

.checkout-codebox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--black);
  margin-bottom: 8px;
}

.checkout-codebox__code {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ice-100);
  word-break: break-all;
}

.checkout-codebox__copy {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.12);
  color: var(--ice-100);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
}
.checkout-codebox__copy:hover {
  border-color: var(--ice-400);
}

.checkout-crypto {
  border: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-crypto__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  font-size: 14px;
  color: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkout-crypto__opt:has(input:checked) {
  border-color: var(--ice-400);
  background: rgba(56, 189, 248, 0.1);
}
.checkout-crypto__opt input {
  accent-color: var(--ice-400);
}

.checkout-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.checkout-modal__actions .checkout-modal__primary {
  width: auto;
  flex: 1 1 auto;
  min-width: min(100%, 160px);
  margin-top: 0;
}

.checkout-modal__primary {
  margin-top: 4px;
}

.checkout-step--full-primary .checkout-modal__primary {
  width: 100%;
}

.checkout-modal .btn--solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ice-100), var(--ice-400));
  color: var(--black);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.25);
}
.checkout-modal .btn--solid:hover {
  filter: brightness(1.05);
}

.checkout-modal .btn--outline-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ice-100);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.checkout-modal .btn--outline-modal:hover {
  border-color: var(--ice-400);
}

.foot {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.95;
}
.muted { opacity: 0.85; }

.section-sub code,
.fine-print code {
  font-size: 0.9em;
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--ice-200);
}
