
:root{
  --bg0:#f8fafc; --bg1:#ffffff;
  --text:#0b1220; --muted:#5b6b84; --muted2:#7a8aa6;

  --card: rgba(255,255,255,.82);
  --card2: rgba(255,255,255,.62);
  --border: rgba(18, 38, 63, .10);
  --border2: rgba(18, 38, 63, .14);

  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --shadow2: 0 14px 46px rgba(2, 6, 23, .12);

  --primary:#0069ff; --primary2:#2c8cff;
  --ring: rgba(0, 105, 255, .38);

  --surface: rgba(0,105,255,.06);
  --surface2: rgba(0,105,255,.10);
}
html.dark{
  --bg0:#050b17; --bg1:#060f22;
  --text:#eaf0ff; --muted:#a9b6cf; --muted2:#93a3c2;

  --card: rgba(8, 16, 35, .78);
  --card2: rgba(8, 16, 35, .60);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);

  --shadow: 0 18px 60px rgba(0,0,0,.42);
  --shadow2: 0 22px 78px rgba(0,0,0,.52);

  --primary:#2c8cff; --primary2:#6ab5ff;
  --ring: rgba(106,181,255,.40);

  --surface: rgba(44,140,255,.10);
  --surface2: rgba(44,140,255,.16);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(0,105,255,.14), transparent 55%),
    radial-gradient(900px 560px at 85% 0%, rgba(44,140,255,.10), transparent 50%),
    radial-gradient(1000px 640px at 60% 100%, rgba(0,105,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
strong{ font-weight:650; }
:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--ring); border-radius:14px; }

.container{ max-width:980px; margin:0 auto; padding:0 16px; }

.topbar{
  position:sticky; top:0; z-index:60;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
html.dark .topbar{ background: rgba(5,11,23,.55); }
.topbar-inner{ height:64px; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:-0.02em; }
.brand-mark{
  width:28px; height:28px; border-radius:10px;
  background: radial-gradient(circle at 30% 30%, var(--primary2), var(--primary));
  box-shadow: 0 10px 20px rgba(0,105,255,.20);
  border:1px solid rgba(255,255,255,.30);
}
.brand-name{ font-size:14px; }
.icon-btn{
  height:40px; width:40px; border-radius:999px;
  border:1px solid var(--border2);
  background: var(--card2);
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  cursor:pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); background: var(--card); }
.icon{ width:100%; height:100%; display:grid; place-items:center; }
.icon svg{ width:20px; height:20px; color: rgba(11,18,32,.92); }
html.dark .icon svg{ color: rgba(234,240,255,.92); }

.page{ padding-bottom:96px; }
.hero{ padding: 36px 0 24px; }
@media (min-width:768px){ .hero{ padding:52px 0 34px; } }
.hero-inner{ display:grid; gap:24px; align-items:start; }
@media (min-width:900px){ .hero-inner{ grid-template-columns: 1.2fr .8fr; gap:36px; } }

.kicker{
  margin:0;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: var(--primary);
  font-weight:700;
}
.title{
  margin:10px 0 0;
  font-size:34px;
  line-height:1.12;
  letter-spacing:-0.03em;
}
@media (min-width:640px){ .title{ font-size:44px; } }
.subtitle{
  margin:14px 0 0;
  font-size:15px;
  line-height:1.7;
  color: var(--muted);
  max-width:720px;
}
.hero-stats{ margin-top:18px; display:flex; gap:14px; flex-wrap:wrap; }
.stat{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 12px; border-radius:16px;
  border:1px solid var(--border); background: var(--card2);
}
.stat-dot{
  width:10px; height:10px; margin-top:5px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--primary2), var(--primary));
  box-shadow: 0 8px 18px rgba(0,105,255,.20);
}
.stat-title{ font-size:13px; font-weight:700; letter-spacing:-0.01em; }
.stat-sub{ margin-top:2px; font-size:12px; color: var(--muted2); }

.hero-panel{ display:none; }
@media (min-width:900px){ .hero-panel{ display:block; } }
.hero-card{
  border-radius:24px; border:1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow2);
  padding:18px; position:relative; overflow:hidden;
}
.hero-card::before{
  content:""; position:absolute; inset:-40px;
  background:
    radial-gradient(300px 200px at 20% 20%, rgba(0,105,255,.18), transparent 60%),
    radial-gradient(240px 200px at 80% 30%, rgba(44,140,255,.14), transparent 60%);
}
.hero-card > *{ position:relative; }
.hero-card-line{
  height:10px; border-radius:999px;
  background: rgba(0,105,255,.14);
  border:1px solid rgba(0,105,255,.10);
}
.hero-card-line.short{ width:70%; margin-top:10px; background: rgba(0,105,255,.10); }
.hero-card-grid{ margin-top:16px; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.hero-chip{ height:64px; border-radius:18px; background: rgba(255,255,255,.55); border:1px solid var(--border); }
html.dark .hero-chip{ background: rgba(8,16,35,.55); }
.hero-card-foot{ margin-top:16px; display:flex; gap:10px; }
.hero-pill{ height:12px; width:40%; border-radius:999px; background: rgba(0,105,255,.10); border:1px solid rgba(0,105,255,.10); }

.card{
  border-radius:24px; border:1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow); overflow:hidden;
}
.card-head{
  padding:18px 18px 10px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
}
@media (min-width:640px){ .card-head{ padding:22px 22px 12px; } }
.card-head h2{ margin:0; font-size:18px; letter-spacing:-0.02em; }
.card-head p{ margin:6px 0 0; font-size:13px; line-height:1.6; color: var(--muted); max-width:560px; }
.hint{
  display:flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:999px;
  border:1px solid var(--border); background: var(--card2);
  font-size:12px; color: var(--muted2); white-space:nowrap;
}
.hint-dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(34,197,94,.9);
  box-shadow: 0 10px 18px rgba(34,197,94,.12);
}

.list{ padding:12px 12px 18px; }
@media (min-width:640px){ .list{ padding:14px 14px 22px; } }

.item{
  border:1px solid var(--border);
  border-radius:20px;
  background: rgba(255,255,255,.42);
  overflow:hidden;
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
html.dark .item{ background: rgba(8,16,35,.40); }
.item + .item{ margin-top:12px; }
.item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(2,6,23,.10);
  border-color: rgba(0,105,255,.20);
}
html.dark .item:hover{
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  border-color: rgba(106,181,255,.22);
}
.item-header{
  width:100%;
  display:flex; align-items:center; gap:14px;
  padding:16px 16px;
  border:0; cursor:pointer; text-align:left;
  background:transparent;
}
.logo{
  width:42px; height:42px; border-radius:16px;
  border:1px solid var(--border);
  background: rgba(0,105,255,.06);
  overflow:hidden; flex:none;
}
.logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.item-main{ min-width:0; flex:1; }
.item-name{
  margin:0;
  display:flex; align-items:center; gap:10px;
  font-size:16px; font-weight:700; letter-spacing:-0.02em;
}
.badge{
  font-size:11px; font-weight:700;
  padding:2px 10px; border-radius:999px;
  border:1px solid var(--border);
  color: var(--muted2);
  background: rgba(0,105,255,.06);
}
.item-sub{
  margin:4px 0 0;
  font-size:12px;
  color: var(--muted2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.chev{
  width:22px; height:22px; flex:none;
  color: rgba(91,107,132,.95);
  transition: transform 220ms ease;
}
html.dark .chev{ color: rgba(169,182,207,.95); }
.item[data-open="true"] .chev{ transform: rotate(180deg); }

.item-panel{
  border-top:1px solid var(--border);
  padding:16px 16px 18px;
  max-height:0; opacity:0; transform: translateY(-4px);
  overflow:hidden;
  transition: max-height 320ms ease, opacity 220ms ease, transform 320ms ease;
}
.item[data-open="true"] .item-panel{ max-height:520px; opacity:1; transform: translateY(0); }

.panel-text{ margin:0 0 12px; font-size:14px; line-height:1.65; color: var(--muted); }
.row{ display:flex; flex-direction:column; gap:12px; }
@media (min-width:640px){ .row{ flex-direction:row; align-items:center; justify-content:space-between; } }

.copy-area{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px; border-radius:16px;
  border:1px solid var(--border);
  background: rgba(0,105,255,.06);
  cursor:pointer; user-select:none;
  transition: background 160ms ease, border-color 160ms ease;
}
.copy-area:hover{ background: rgba(0,105,255,.09); border-color: rgba(0,105,255,.22); }
.copy-area code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:14px; color: var(--text);
}
.copy-hint{ font-size:12px; color: var(--muted2); }

.btn{
  width:100%;
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:16px;
  font-size:14px; font-weight:800; letter-spacing:-0.01em;
  border:1px solid transparent; cursor:pointer;
  transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
}
@media (min-width:640px){ .btn{ width:auto; } }
.btn-primary{
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  color:#fff;
  box-shadow: 0 14px 26px rgba(0,105,255,.20);
}
.btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary{
  background: rgba(255,255,255,.62);
  color: var(--text);
  border-color: var(--border);
}
html.dark .btn-secondary{ background: rgba(8,16,35,.62); }
.btn-secondary:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(2,6,23,.10); }
.btn-disabled{
  background: rgba(148,163,184,.22);
  color: rgba(91,107,132,.95);
  border-color: var(--border);
  cursor:not-allowed; opacity:.85;
}

.qr{
  width:100%; max-width:360px; aspect-ratio:1/1;
  border-radius:18px; border:1px solid var(--border);
  background: rgba(255,255,255,.62);
  overflow:hidden;
}
html.dark .qr{ background: rgba(8,16,35,.62); }
.qr img{ width:100%; height:100%; object-fit:contain; padding:16px; display:block; }

.footer{
  margin-top:22px;
  padding:18px 0 0;
  text-align:center;
  color: var(--muted2);
  font-size:13px;
}

.fab{
  position:fixed; right:22px; bottom:22px; z-index:70;
  width:58px; height:58px; border-radius:999px;
  border:1px solid var(--border2);
  background: var(--card);
  box-shadow: var(--shadow2);
  display:grid; place-items:center;
  transition: transform 140ms ease, box-shadow 180ms ease, filter 160ms ease;
}
.fab:hover{ transform: translateY(-2px); box-shadow: 0 18px 58px rgba(2,6,23,.18); }
html.dark .fab:hover{ box-shadow: 0 22px 72px rgba(0,0,0,.52); }
.fab img{ width:36px; height:36px; border-radius:14px; object-fit:cover; display:block; }
.fab-ring{
  position:absolute; inset:-2px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.25), transparent 55%);
  pointer-events:none;
}

.toast-viewport{
  position:fixed; left:50%; top:16px; transform: translateX(-50%);
  z-index:80; display:flex; flex-direction:column; gap:8px;
  padding:0 16px; pointer-events:none;
}
.toast{
  pointer-events:auto;
  width: fit-content; max-width: 92vw;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px; font-weight:600;
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
  animation: toast-in 160ms ease-out;
}
@keyframes toast-in{
  from{ opacity:0; transform: translateY(-6px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
