

:root {

  --sky-25: #f7fbff;
  --sky-50: #f0f8fe;
  --sky-100: #e3f2fd;
  --sky-200: #c6e6fb;
  --sky-300: #9ad2f7;
  --sky-400: #62baf1;
  --sky-500: #349fe4;
  --sky-600: #1d7fc7;
  --sky-700: #1865a2;
  --sky-800: #175182;
  --ink-900: #0b2540;
  --ink-800: #123250;
  --ink-700: #1c4368;
  --ink-500: #47698a;
  --ink-400: #6f8dab;
  --ink-300: #9db4ca;

  --mint-100: #dcfaee;
  --mint-500: #17c983;
  --mint-600: #0ea86c;

  --gold-100: #fff3d6;
  --gold-500: #e9a13b;
  --violet-100: #efe9ff;
  --violet-500: #8f6fe8;
  --rose-100: #ffe7ee;
  --rose-500: #ef5f8e;

  --bg: #eaf4fc;
  --card: #ffffff;
  --line: #dcebF8;
  --line-strong: #c4dcf0;

  --sh-sm: 0 1px 2px rgba(23, 93, 166, 0.06), 0 2px 8px rgba(23, 93, 166, 0.06);
  --sh-md: 0 2px 6px rgba(23, 93, 166, 0.07), 0 12px 32px rgba(23, 93, 166, 0.12);
  --sh-lg: 0 4px 12px rgba(23, 93, 166, 0.08), 0 24px 64px rgba(23, 93, 166, 0.16);
  --sh-glow: 0 8px 28px rgba(52, 159, 228, 0.35);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --font-display: 'Unbounded', 'Manrope', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--sky-600); text-decoration: none; }
a:hover { color: var(--sky-700); }

h1, h2, h3, h4 { margin: 0; color: var(--ink-900); line-height: 1.2; }
p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

::selection { background: var(--sky-200); color: var(--ink-900); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sky-50); }
::-webkit-scrollbar-thumb { background: var(--sky-300); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-400); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  color: #fff;

  background: linear-gradient(135deg, #2f9fe0 0%, #1668a8 100%);
  box-shadow: var(--sh-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(46, 143, 214, 0.45); color: #fff; }

.btn-ghost {
  color: var(--ink-800);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--sky-400); color: var(--sky-700); transform: translateY(-2px); }

.btn-soft {
  color: var(--sky-700);
  background: var(--sky-100);
}
.btn-soft:hover { background: var(--sky-200); }

.btn-mint {
  color: #fff;
  background: linear-gradient(135deg, #17c983 0%, #0d8f5f 100%);
  box-shadow: 0 8px 24px rgba(23, 201, 131, 0.3);
}
.btn-mint:hover { transform: translateY(-2px); }

.btn-danger { color: #fff; background: linear-gradient(135deg, #ff8aa8, #e7487c); }
.btn-danger:hover { transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(214, 234, 250, 0.7);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--sh-md); background: rgba(255, 255, 255, 0.9); }
.site-header .container { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-900); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--sh-sm); }
.brand:hover { color: var(--ink-900); }
.brand b { color: var(--sky-600); font-weight: 600; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--sky-100); color: var(--sky-700); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span::before { transform: translate(-50%, calc(-50% - 6px)); }
.burger span::after { transform: translate(-50%, calc(-50% + 6px)); }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger.open span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px 22px;
  box-shadow: var(--sh-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 10px; font-weight: 700; color: var(--ink-800); border-bottom: 1px solid var(--sky-50); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn { margin-top: 12px; }

.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 40px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-100) 0%, var(--bg) 78%); }
.hero-bg::before, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-bg::before { width: 560px; height: 560px; left: -160px; top: -120px; background: radial-gradient(circle, #aee0fb 0%, transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.hero-bg::after { width: 640px; height: 640px; right: -200px; top: 40px; background: radial-gradient(circle, #b9f3dd 0%, transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-sm);
  font-weight: 700;
  font-size: 13px;
  color: var(--sky-700);
  letter-spacing: 0.02em;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 4px rgba(23, 201, 131, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(23, 201, 131, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(23, 201, 131, 0.08); } }

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--sky-500) 10%, var(--mint-500) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; color: var(--ink-500); max-width: 520px; }
.hero-sub b { color: var(--ink-800); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-700);
}
.trust-chip svg { flex: none; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: 10px;
  background: linear-gradient(145deg, #ffffff, #dff0fc);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transform: rotate(0.6deg);
}
.hero-frame img { border-radius: calc(var(--r-xl) - 8px); width: 100%; }
.hero-frame::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(52, 159, 228, 0.18) inset;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-md);
  padding: 12px 16px;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 18px;
}
.float-chip .val { font-weight: 800; font-size: 16px; color: var(--ink-900); line-height: 1.1; }
.float-chip .lbl { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.float-chip.c1 { top: 22px; left: -28px; animation-delay: 0.4s; }
.float-chip.c2 { bottom: 64px; right: -24px; animation-delay: 1.2s; }
.float-chip.c3 { bottom: -18px; left: 44px; animation-delay: 2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats-strip { padding: 34px 0 10px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 30px 18px;
}
.stat { text-align: center; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--sky-100); }
.stat .num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--sky-600); }
.stat .cap { font-size: 13.5px; color: var(--ink-400); font-weight: 600; margin-top: 4px; }

.section { padding: 92px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--sky-25), #fff); border-block: 1px solid var(--sky-100); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky-600);
  background: var(--sky-100);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; }
.section-head .sub { margin-top: 14px; color: var(--ink-500); font-size: 17px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--sky-300); }
.feature-card .f-ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--sky-100), #fff);
  border: 1px solid var(--sky-200);
  margin-bottom: 18px;
}
.feature-card .f-ico img { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--ink-500); font-size: 15px; }

.compare-wrap {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 6px solid #fff;
  position: relative;
  user-select: none;
}
.compare-box { position: relative; aspect-ratio: 16 / 8.6; background: #0a0f1c; }
.compare-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); z-index: 2; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.compare-knob {
  position: absolute; top: 50%; left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-md);
  display: grid; place-items: center;
  color: var(--sky-600);
  font-weight: 800;
  pointer-events: none;
  z-index: 3;
}
.compare-tag {
  position: absolute; top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.65);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 3;
}
.compare-tag.l { left: 16px; }
.compare-tag.r { right: 16px; }
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 4;
}
.compare-hint { text-align: center; margin-top: 18px; color: var(--ink-400); font-weight: 600; font-size: 14px; }

.cos-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.cos-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cos-tab:hover { border-color: var(--sky-400); color: var(--sky-700); }
.cos-tab.active {
  background: linear-gradient(135deg, #2b96e2, #1668a8);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-glow);
}

.cos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cos-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.cos-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.cos-img {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 50% 62%, var(--tint, #dff0fc) 0%, transparent 68%),
    linear-gradient(160deg, var(--sky-50), var(--sky-100));
  overflow: hidden;
}
.cos-img img { width: 78%; height: 78%; object-fit: contain; transition: transform 0.25s ease; }
.cos-card:hover .cos-img img { transform: scale(1.09) rotate(-2deg); }
.cos-name { font-weight: 800; font-size: 14.5px; color: var(--ink-900); line-height: 1.3; }
.cos-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.cos-price { font-weight: 800; color: var(--sky-700); font-size: 15px; }

.rarity {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.rarity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.r-common { color: #64748b; background: #eef2f7; }
.r-rare { color: #1180c4; background: #ddf0fd; }
.r-epic { color: #7a53d8; background: var(--violet-100); }
.r-legendary { color: #b97b16; background: var(--gold-100); }

.cos-more { text-align: center; margin-top: 40px; }

.case-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 46px;
  position: relative;
  overflow: hidden;
}
.case-panel::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(154, 210, 247, 0.5), transparent 70%);
  border-radius: 50%;
}
.case-visual {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 55%, rgba(52, 159, 228, 0.16) 0%, transparent 60%),
    linear-gradient(155deg, var(--sky-100), #f6fbff 70%);
  border: 1px solid var(--sky-200);
}
.case-visual::after {
  content: '';
  position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1.5px dashed var(--sky-300);
  animation: spin 26s linear infinite;
}
.case-visual img { width: 52%; position: relative; filter: drop-shadow(0 18px 30px rgba(23, 93, 166, 0.3)); animation: floaty 4.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chance-row { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.chance { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; }
.chance .bar { height: 9px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.chance .bar i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chance .pct { text-align: right; color: var(--ink-500); }
.ch-common { color: #64748b; } .ch-common .bar i { background: #94a3b8; }
.ch-rare { color: #1180c4; } .ch-rare .bar i { background: linear-gradient(90deg, var(--sky-400), var(--sky-600)); }
.ch-epic { color: #7a53d8; } .ch-epic .bar i { background: linear-gradient(90deg, #b49af5, #7a53d8); }
.ch-legendary { color: #b97b16; } .ch-legendary .bar i { background: linear-gradient(90deg, #f6cf7d, #e9a13b); }

.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.plan-card.popular {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--sky-400), var(--mint-500)) border-box;
  box-shadow: var(--sh-lg);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2f9fe0, #1668a8);
  box-shadow: var(--sh-glow);
  white-space: nowrap;
}
.plan-flag.gold { background: linear-gradient(135deg, #e9a13b, #b97b16); box-shadow: 0 8px 24px rgba(233, 161, 59, 0.4); }
.plan-flag.mint { background: linear-gradient(135deg, #17c983, #0d8f5f); box-shadow: 0 8px 24px rgba(23, 201, 131, 0.35); }
.plan-title { font-weight: 800; font-size: 15px; color: var(--ink-500); letter-spacing: 0.03em; text-transform: uppercase; }
.plan-price { margin: 14px 0 2px; font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--ink-900); }
.plan-price small { font-size: 16px; color: var(--ink-400); font-family: var(--font-body); font-weight: 700; }
.plan-per { font-size: 13px; color: var(--mint-600); font-weight: 700; min-height: 20px; }
.plan-desc { margin-top: 12px; font-size: 14px; color: var(--ink-500); min-height: 44px; }
.plan-list { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-700); font-weight: 600; }
.plan-list li::before { content: '✓'; flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-100); color: var(--mint-600); font-size: 12px; font-weight: 800; margin-top: 1px; }
.plan-list li.off { color: var(--ink-300); }
.plan-list li.off::before { background: #eef2f7; color: var(--ink-300); }
.plan-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-400); text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--sh-sm);
}
.step-card .step-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2b96e2, #1668a8);
  box-shadow: var(--sh-glow);
  margin-bottom: 18px;
}
.step-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step-card p { color: var(--ink-500); font-size: 14.5px; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  background: none; border: 0;
  text-align: left;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink-900);
  cursor: pointer;
}
.faq-q .chev { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sky-100); color: var(--sky-600); transition: transform 0.25s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a > div { padding: 0 24px 22px; color: var(--ink-500); font-size: 15px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--sky-600) 0%, var(--sky-400) 55%, #4fd1a5 120%);
  box-shadow: var(--sh-lg);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.cta-panel::before, .cta-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.cta-panel::before { width: 340px; height: 340px; left: -110px; bottom: -160px; }
.cta-panel::after { width: 240px; height: 240px; right: -70px; top: -100px; }
.cta-panel h2 { color: #fff; font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 600; }
.cta-panel p { color: rgba(255, 255, 255, 0.85); margin: 14px auto 30px; max-width: 520px; font-size: 16.5px; }
.cta-panel .btn-white { background: #fff; color: var(--sky-700); box-shadow: 0 10px 30px rgba(9, 42, 74, 0.35); }
.cta-panel .btn-white:hover { transform: translateY(-2px); }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--ink-400); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-400); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-700); font-weight: 600; font-size: 14.5px; }
.footer-col a:hover { color: var(--sky-600); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--sky-100);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--ink-400);
  font-size: 13px;
}
.footer-disclaimer { margin-top: 14px; color: var(--ink-300); font-size: 12px; max-width: 760px; }

.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 50;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--sky-600);
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
  font-size: 18px;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--sky-700); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 20px 60px;
  position: relative;
  overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-100), var(--bg)); }
.auth-bg::before, .auth-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.auth-bg::before { width: 480px; height: 480px; left: -120px; top: -80px; background: radial-gradient(circle, #aee0fb, transparent 70%); }
.auth-bg::after { width: 520px; height: 520px; right: -140px; bottom: -140px; background: radial-gradient(circle, #b9f3dd, transparent 70%); }

.auth-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 40px 38px;
}
.auth-card.wide { width: min(560px, 100%); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo img { width: 62px; height: 62px; border-radius: 18px; box-shadow: var(--sh-md); }
.auth-card h1 { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--ink-400); font-size: 14.5px; margin: 10px 0 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-700); margin-bottom: 7px; letter-spacing: 0.02em; }
.field .control { position: relative; }
.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(98, 186, 241, 0.18); }
.input::placeholder { color: var(--ink-300); font-weight: 500; }

.eye-btn {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0; background: none;
  border-radius: 9px;
  color: var(--ink-400);
  cursor: pointer;
}
.eye-btn:hover { color: var(--sky-600); background: var(--sky-50); }

.captcha-box {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--sky-50);
  border: 1.5px dashed var(--sky-300);
  border-radius: var(--r-sm);
  padding: 10px;
}
.captcha-img {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  min-height: 62px;
  cursor: pointer;
  overflow: hidden;
}
.captcha-img svg { width: 100%; height: 62px; }
.captcha-refresh {
  flex: none;
  width: 46px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--sky-600);
  cursor: pointer;
  font-size: 17px;
  box-shadow: var(--sh-sm);
}
.captcha-refresh:hover { color: var(--sky-700); }

.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 13.5px; color: var(--ink-500); }
.check-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--sky-600); cursor: pointer; flex: none; }
.check-row a { font-weight: 700; }

.auth-switch { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--ink-500); }
.auth-switch a { font-weight: 800; }
.auth-legal { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--ink-300); }
.auth-legal a { color: var(--ink-400); }
.auth-legal a:hover { color: var(--sky-600); }

.form-error {
  display: none;
  background: var(--rose-100);
  color: #c02e5e;
  border: 1px solid #ffc9d8;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.form-error.show { display: block; }

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 34px) 0 80px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-user {
  background: linear-gradient(150deg, var(--sky-600), var(--sky-400) 90%);
  border-radius: var(--r-lg);
  padding: 22px;
  color: #fff;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.side-user::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); right: -60px; top: -60px; }
.side-user .row { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 48px; height: 48px; flex: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; display: block; }
.avatar-btn { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.avatar-btn:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.avatar-btn:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 2px; }
.side-user .name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.side-user .role { font-size: 12.5px; opacity: 0.85; font-weight: 600; }
.side-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.side-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.side-pill b { font-weight: 800; }

.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.14s ease, color 0.14s ease;
}
.side-nav a .ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--sky-50); font-size: 16px; transition: background 0.14s ease; }
.side-nav a:hover { background: var(--sky-50); }
.side-nav a.active { background: linear-gradient(135deg, #2b96e2, #1668a8); color: #fff; box-shadow: var(--sh-glow); }
.side-nav a.active .ico { background: rgba(255, 255, 255, 0.2); }
.side-nav .sep { height: 1px; background: var(--sky-50); margin: 8px 6px; }

.content-area { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.page-head h1 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.page-head .sub { color: var(--ink-400); font-size: 14.5px; margin-top: 6px; max-width: 560px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-pad { padding: 26px; }
.card h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.card .card-sub { color: var(--ink-400); font-size: 13.5px; margin-bottom: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-400); font-weight: 600; }
.kv .v { font-weight: 800; color: var(--ink-900); text-align: right; word-break: break-all; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-mint { color: var(--mint-600); background: var(--mint-100); }
.badge-sky { color: var(--sky-700); background: var(--sky-100); }
.badge-gold { color: #b97b16; background: var(--gold-100); }
.badge-violet { color: #7a53d8; background: var(--violet-100); }
.badge-slate { color: #64748b; background: #eef2f7; }
.badge-rose { color: #c02e5e; background: var(--rose-100); }

.shop-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
}
.balance-chip .b-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sky-100); color: var(--sky-700); font-size: 13px; }
.balance-chip b { color: var(--sky-700); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.shop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.shop-card.owned { border-color: var(--mint-500); }
.shop-card .own-flag {
  position: absolute; top: 12px; right: 12px;
  background: var(--mint-100); color: var(--mint-600);
  font-size: 11px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.shop-card .cos-img { margin-bottom: 12px; }
.shop-card .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }

.case-hero { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; }
.count-picker { display: flex; gap: 8px; }
.count-btn {
  flex: 1;
  padding: 11px 0;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.count-btn.active { background: #1a76b8; border-color: #1a76b8; color: #fff; box-shadow: var(--sh-glow); }
.count-btn:hover:not(.active) { border-color: var(--sky-400); }

.roulette-wrap {
  position: relative;
  background: linear-gradient(160deg, var(--sky-50), #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 0;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.roulette-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}
.roulette-wrap::before, .roulette-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 90px; z-index: 3;
  pointer-events: none;
}
.roulette-wrap::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.roulette-wrap::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.roulette-marker {
  position: absolute;
  left: 50%; top: 10px; bottom: 10px;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--sky-500), var(--sky-600));
  border-radius: 999px;
  z-index: 4;
  box-shadow: 0 0 14px rgba(52, 159, 228, 0.6);
}
.roulette-strip { display: flex; gap: 12px; will-change: transform; }
.roulette-cell {
  flex: none;
  width: 128px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.roulette-cell .cos-img { width: 84px; height: 84px; border-radius: 12px; margin: 0; }
.roulette-cell .nm { font-size: 11px; font-weight: 700; color: var(--ink-700); text-align: center; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roulette-cell.win { border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(52, 159, 228, 0.25), var(--sh-md); }

.drops-row { display: flex; flex-wrap: wrap; gap: 10px; }
.drop-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  box-shadow: var(--sh-sm);
  font-size: 13px;
  font-weight: 700;
  animation: dropIn 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.drop-chip img { width: 30px; height: 30px; border-radius: 8px; background: var(--sky-50); object-fit: contain; }
@keyframes dropIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--sky-50); font-weight: 600; color: var(--ink-700); }
.table tr:last-child td { border-bottom: 0; }
.table .num-pos { color: var(--mint-600); font-weight: 800; }
.table .num-neg { color: var(--rose-500); font-weight: 800; }

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--ink-400);
  font-weight: 600;
}
.empty .big { font-size: 38px; margin-bottom: 10px; }

.friend-row { display: flex; align-items: center; gap: 13px; padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.friend-row:last-child { border-bottom: 0; }
.friend-row .avatar { background: var(--sky-100); color: var(--sky-700); border: 0; width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
.friend-row .who { flex: 1; min-width: 0; }
.friend-row .who .nm { font-weight: 800; font-size: 14.5px; color: var(--ink-900); }
.friend-row .who .st { font-size: 12.5px; font-weight: 600; color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 3px rgba(23, 201, 131, 0.15); }
.off-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.admin-row { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sky-25); }
.admin-row .top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-row .login { font-weight: 800; font-size: 15px; }
.admin-row .meta { color: var(--ink-400); font-size: 13px; font-weight: 600; }

.topup-balance {
  border-radius: var(--r-xl);
  padding: 34px;
  color: #fff;
  background: linear-gradient(130deg, var(--sky-600) 0%, var(--sky-400) 70%, #4fd1a5 130%);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.topup-balance::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); right: -70px; top: -80px; }
.topup-balance .lbl { font-size: 13.5px; font-weight: 700; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.topup-balance .val { font-family: var(--font-display); font-size: 40px; font-weight: 600; margin-top: 6px; }

.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preset {
  padding: 14px 0;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.preset.active, .preset:hover { border-color: var(--sky-500); color: var(--sky-700); background: var(--sky-50); }
.preset.active { box-shadow: 0 0 0 3px rgba(98, 186, 241, 0.2); }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.method.active { border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(98, 186, 241, 0.18); background: var(--sky-25); }
.method img { width: 44px; height: 44px; object-fit: contain; }
.method .nm { font-weight: 800; font-size: 14.5px; }
.method .ds { font-size: 12.5px; color: var(--ink-400); font-weight: 600; }
.method .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.method.active .radio { border-color: var(--sky-500); }
.method.active .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sky-500); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md);
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
}
.notice-warn { background: var(--gold-100); color: #8a5c10; border: 1px solid #f3ddb0; }
.notice-info { background: var(--sky-100); color: var(--sky-800); border: 1px solid var(--sky-200); }
.notice-mint { background: var(--mint-100); color: var(--mint-600); border: 1px solid #b9f0d9; }

.toast-zone { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.15);
}
.toast .t-ico { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; }
.toast-ok .t-ico { background: var(--mint-100); color: var(--mint-600); }
.toast-err .t-ico { background: var(--rose-100); color: var(--rose-500); }
.toast-info .t-ico { background: var(--sky-100); color: var(--sky-700); }
.toast.hide { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

.modal-overlay {
  position: fixed; inset: 0;
  z-index: 110;
  background: rgba(11, 37, 64, 0.45);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 30px;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.1);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.modal .m-sub { color: var(--ink-500); font-size: 14.5px; }
.modal .m-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal .m-actions .btn { flex: 1; }
.modal .m-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--sky-50);
  color: var(--ink-500);
  cursor: pointer;
  font-size: 15px;
}
.modal .m-close:hover { background: var(--sky-100); color: var(--ink-800); }

.drop-modal { text-align: center; }
.drop-modal .drop-frame {
  margin: 18px auto 6px;
  width: 200px; height: 200px;
  display: grid; place-items: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 60%, var(--tint, var(--sky-100)) 0%, transparent 70%),
    linear-gradient(160deg, var(--sky-50), #fff);
  border: 1.5px solid var(--line-strong);
  animation: dropPop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  position: relative;
}
.drop-modal .drop-frame img { width: 62%; }
.drop-modal .drop-frame::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: calc(var(--r-xl) + 8px);
  border: 2px solid var(--tint-strong, var(--sky-300));
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.drop-modal .nm { font-weight: 800; font-size: 17px; margin-top: 14px; }
@keyframes dropPop { from { opacity: 0; transform: scale(0.5) rotate(-6deg); } to { opacity: 1; transform: none; } }

.spinner {
  width: 42px; height: 42px;
  border: 4px solid var(--sky-100);
  border-top-color: var(--sky-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 60px auto;
}
.skeleton { background: linear-gradient(90deg, var(--sky-50) 25%, var(--sky-100) 50%, var(--sky-50) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .float-chip.c1 { left: -8px; }
  .float-chip.c2 { right: -8px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cos-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .side-nav a { flex: none; }
  .side-nav .sep { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .header-actions .btn-ghost { display: none; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat:nth-child(3) { border-left: 0; }
  .case-panel { grid-template-columns: 1fr; padding: 30px; }
  .case-hero { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .app-shell { width: calc(100% - 32px); }
  .site-header .container { gap: 10px; }
  .brand { font-size: 15px; gap: 9px; }
  .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
  .cos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plans-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
  .method-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .stat .num { font-size: 21px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .table-wrap { overflow-x: auto; }
  .float-chip { display: none; }
  .kv { flex-direction: column; gap: 2px; }
  .kv .v { text-align: left; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .main-nav, .header-actions .btn-ghost { display: none; }
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 20px 50px;
}
.legal-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 44px 48px;
}
.legal-article h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  margin-bottom: 6px;
}
.legal-updated {
  color: var(--ink-400);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-sec h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-900);
  margin: 26px 0 10px;
}
.legal-sec p {
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.legal-sec ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.65;
}
.legal-sec li { margin-bottom: 5px; }

@media (max-width: 640px) {
  .legal-article { padding: 28px 22px; }
}

.mark-light { display: none; }
[data-theme="light"] .mark-light { display: block; }
[data-theme="light"] .mark-dark { display: none; }
.launcher-logo img { width: 100%; height: 100%; object-fit: cover; }

.theme-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: var(--sh-sm);
}
.theme-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

[data-theme="dark"] {
  --bg: #0a1725;
  --card: #0f2233;
  --line: #1b3550;
  --line-strong: #274b6f;

  --ink-900: #e8f2fb;
  --ink-800: #d2e3f2;
  --ink-700: #b7cee2;
  --ink-500: #8ba9c1;
  --ink-400: #6d8ca6;
  --ink-300: #4d6b85;

  --sky-25: #0d1e2e;
  --sky-50: #122536;
  --sky-100: #16304a;
  --sky-200: #1d3d5c;
  --sky-300: #2c5578;

  --mint-100: rgba(23, 201, 131, 0.16);
  --mint-500: #1fd691;
  --mint-600: #2fdca0;
  --gold-100: rgba(233, 161, 59, 0.16);
  --violet-100: rgba(143, 111, 232, 0.2);
  --rose-100: rgba(239, 95, 142, 0.16);

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --sh-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);
  --sh-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.5);
  --sh-glow: 0 8px 28px rgba(52, 159, 228, 0.28);
}

[data-theme="dark"] body { color: var(--ink-800); }

[data-theme="dark"] .site-header,
[data-theme="dark"] .mobile-nav,
[data-theme="dark"] .stats-grid,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .cos-card,
[data-theme="dark"] .cos-tab,
[data-theme="dark"] .step-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .side-nav,
[data-theme="dark"] .card,
[data-theme="dark"] .shop-card,
[data-theme="dark"] .roulette-cell,
[data-theme="dark"] .drop-chip,
[data-theme="dark"] .preset,
[data-theme="dark"] .count-btn,
[data-theme="dark"] .method,
[data-theme="dark"] .balance-chip,
[data-theme="dark"] .toast,
[data-theme="dark"] .modal,
[data-theme="dark"] .to-top,
[data-theme="dark"] .theme-btn,
[data-theme="dark"] .burger,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .roulette-wrap {
  background: var(--card);
}

[data-theme="dark"] .site-header {
  background: rgba(10, 23, 37, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.2);
}
[data-theme="dark"] .site-header.scrolled { background: rgba(10, 23, 37, 0.92); }
[data-theme="dark"] .mobile-nav { background: rgba(12, 26, 41, 0.97); }
[data-theme="dark"] .site-footer { border-top-color: var(--line); }

[data-theme="dark"] .roulette-wrap {
  background: linear-gradient(160deg, var(--sky-50), var(--card));
}
[data-theme="dark"] .case-panel { background: var(--card); }
[data-theme="dark"] .case-panel::before {
  background: radial-gradient(circle, rgba(52, 159, 228, 0.14), transparent 70%);
}
[data-theme="dark"] .roulette-wrap::before { background: linear-gradient(90deg, var(--card), transparent); }
[data-theme="dark"] .roulette-wrap::after { background: linear-gradient(-90deg, var(--card), transparent); }

[data-theme="dark"] .btn-ghost { background: var(--card); color: var(--ink-800); }
[data-theme="dark"] .btn-ghost:hover { color: #7cc0f0; }
[data-theme="dark"] .btn-soft { background: var(--sky-100); color: #7cc0f0; }
[data-theme="dark"] .btn-soft:hover { background: var(--sky-200); }
[data-theme="dark"] .btn-white { background: #fff; color: var(--sky-700); }
[data-theme="dark"] .faq-q { color: var(--ink-900); }

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #2b96e2 0%, #1366a6 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .btn-mint {
  background: linear-gradient(135deg, #1fc98c 0%, #0d8f5f 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .side-nav a.active {
  background: linear-gradient(135deg, #2b96e2, #1366a8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .count-btn.active { background: #1d7fc7; border-color: #1d7fc7; }

[data-theme="dark"] a:not(.btn) { color: #6db9f0; }
[data-theme="dark"] a:not(.btn):hover { color: #9ed2f8; }
[data-theme="dark"] .stat .num,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .cos-price,
[data-theme="dark"] .balance-chip b,
[data-theme="dark"] .plan-per { color: #6db9f0; }
[data-theme="dark"] .eyebrow { color: #63b5ef; }
[data-theme="dark"] .plan-per { color: var(--mint-600); }

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-mint,
[data-theme="dark"] .btn-danger { color: #fff; }

[data-theme="dark"] .hero-bg { background: linear-gradient(180deg, #0d2236 0%, var(--bg) 78%); }
[data-theme="dark"] .hero-bg::before { background: radial-gradient(circle, rgba(52, 159, 228, 0.22) 0%, transparent 70%); }
[data-theme="dark"] .hero-bg::after { background: radial-gradient(circle, rgba(23, 201, 131, 0.14) 0%, transparent 70%); }
[data-theme="dark"] .hero-badge { background: rgba(15, 34, 51, 0.85); }
[data-theme="dark"] .hero-frame { background: linear-gradient(145deg, #16334d, #0c2033); box-shadow: var(--sh-lg); }
[data-theme="dark"] .trust-chip { background: rgba(15, 34, 51, 0.85); }
[data-theme="dark"] .float-chip { background: rgba(16, 34, 51, 0.94); }
[data-theme="dark"] .float-chip .ico { background: var(--sky-100); }

[data-theme="dark"] .section.alt {
  background: linear-gradient(180deg, #0d1f30, #0a1725);
  border-block-color: var(--sky-100);
}

[data-theme="dark"] .plan-card { background: var(--card); }
[data-theme="dark"] .plan-card:hover { background: var(--card); }
[data-theme="dark"] .plan-card.popular {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--sky-400), var(--mint-500)) border-box;
}
[data-theme="dark"] .plan-price { color: var(--ink-900); }
[data-theme="dark"] .plan-title { color: var(--ink-500); }
[data-theme="dark"] .plan-note { color: var(--ink-400); }

[data-theme="dark"] .badge-gold { color: #f0bd5e; }
[data-theme="dark"] .badge-slate { color: #9db4ca; background: rgba(148, 163, 184, 0.14); }
[data-theme="dark"] .badge-violet { color: #b8a0f7; }
[data-theme="dark"] .badge-rose { color: #ff92b1; }
[data-theme="dark"] .badge-mint { color: var(--mint-600); }
[data-theme="dark"] .badge-sky { color: #7cc0f0; }

[data-theme="dark"] .r-common { color: #9db4ca; background: rgba(148, 163, 184, 0.14); }
[data-theme="dark"] .r-rare { color: #58b0ea; background: rgba(74, 168, 232, 0.14); }
[data-theme="dark"] .r-epic { color: #b8a0f7; background: rgba(143, 111, 232, 0.16); }
[data-theme="dark"] .r-legendary { color: #f0bd5e; background: rgba(233, 161, 59, 0.14); }

[data-theme="dark"] .ch-common { color: #9db4ca; }
[data-theme="dark"] .ch-rare { color: #58b0ea; }
[data-theme="dark"] .ch-epic { color: #b8a0f7; }
[data-theme="dark"] .ch-legendary { color: #f0bd5e; }

[data-theme="dark"] .notice-warn { color: #f0c273; }
[data-theme="dark"] .notice-info { color: #9ccdea; }
[data-theme="dark"] .notice-mint { color: #5fe3ae; }
[data-theme="dark"] .form-error { color: #ff92b1; }

[data-theme="dark"] .input { background: #0b1b2a; border-color: var(--line-strong); color: var(--ink-900); }
[data-theme="dark"] .input::placeholder { color: var(--ink-300); }
[data-theme="dark"] .input:focus { border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(58, 160, 232, 0.16); }
[data-theme="dark"] .captcha-img,
[data-theme="dark"] .captcha-refresh { background: #0b1b2a; }
[data-theme="dark"] .captcha-box { background: var(--sky-50); }

[data-theme="dark"] .auth-bg { background: linear-gradient(180deg, #0d2236, var(--bg)); }
[data-theme="dark"] .auth-bg::before { background: radial-gradient(circle, rgba(52, 159, 228, 0.2), transparent 70%); }
[data-theme="dark"] .auth-bg::after { background: radial-gradient(circle, rgba(23, 201, 131, 0.14), transparent 70%); }
[data-theme="dark"] .auth-card {
  background: rgba(15, 34, 51, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .compare-wrap { border-color: var(--card); }
[data-theme="dark"] .drop-frame { background: radial-gradient(circle at 50% 60%, var(--tint, var(--sky-100)) 0%, transparent 70%), linear-gradient(160deg, var(--sky-50), var(--card)); }
[data-theme="dark"] .admin-row { background: var(--sky-25); }
[data-theme="dark"] .side-nav a:hover { background: var(--sky-50); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--sky-50); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--sky-300); }
[data-theme="dark"] .f-ico { background: linear-gradient(140deg, var(--sky-100), var(--card)); }
[data-theme="dark"] .cos-img { background:
  radial-gradient(circle at 50% 62%, var(--tint, #16304a) 0%, transparent 68%),
  linear-gradient(160deg, var(--sky-50), var(--sky-100)); }
[data-theme="dark"] .case-visual { background:
  radial-gradient(circle at 50% 55%, rgba(52, 159, 228, 0.14) 0%, transparent 60%),
  linear-gradient(155deg, var(--sky-100), var(--sky-50) 70%); }
[data-theme="dark"] .method.active { background: var(--sky-25); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
