:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --card: #15151e;
  --card-2: #1b1b26;
  --line: #262633;
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #f43f5e;
  --grad: linear-gradient(135deg, var(--purple), var(--pink));
  --radius: 18px;
  --shadow-neon: 0 0 0 1px rgba(168, 85, 247, .35), 0 10px 40px -10px rgba(236, 72, 153, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: #d8b4fe; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: #c084fc; margin: 0 0 .4em; }
[hidden] { display: none !important; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10, 10, 15, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); position: relative; box-shadow: 0 0 18px rgba(236,72,153,.5); }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 3px solid #fff; border-radius: 50%; }
.topnav { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.topnav a:not(.btn) { color: var(--muted); }
@media (max-width: 420px) { .topnav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1rem Inter, sans-serif; color: #fff;
  padding: 14px 22px; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); box-shadow: var(--shadow-neon); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(236,72,153,.6), 0 14px 50px -8px rgba(236,72,153,.7); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero-inner { position: relative; text-align: center; max-width: 760px; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.glow-a { width: 380px; height: 380px; background: #7c3aed; top: -120px; left: -120px; }
.glow-b { width: 340px; height: 340px; background: #db2777; top: 120px; right: -140px; opacity: .4; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.35); color: #e9d5ff; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.lead { font-size: clamp(1rem, 3.6vw, 1.15rem); color: #c9c9d9; max-width: 600px; margin: 0 auto 22px; }
.trust { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .9rem; color: #d4d4e0; }
.trust li { display: flex; align-items: center; gap: 7px; }

/* Icons (CSS masks) */
.ico { width: 18px; height: 18px; display: inline-block; background: #c084fc; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; }
.ico-lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.ico-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ico-device { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.ico-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background: var(--muted); }

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 18px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  border: 2px dashed transparent;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 20px 60px -25px rgba(168,85,247,.6);
}
.dropzone:hover, .dropzone.drag { transform: translateY(-2px); box-shadow: 0 25px 70px -20px rgba(236,72,153,.75); }
.dz-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); margin-bottom: 8px; position: relative; box-shadow: 0 0 30px rgba(236,72,153,.5); }
.dz-icon::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center/26px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center/26px no-repeat; }
.dz-title { font-weight: 600; font-size: 1.05rem; }
.dz-sub { color: var(--muted); font-size: .86rem; }
.status { min-height: 1.6em; margin: 14px 0 6px; font-size: .95rem; }
.status.error { color: #fda4af; }
.status.ok { color: #86efac; }

/* Dashboard */
.dashboard { padding-top: 24px; padding-bottom: 40px; scroll-margin-top: 70px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-head h2 { margin: 0; word-break: break-all; }
.dash-actions { display: flex; gap: 8px; align-items: center; }
.badge { padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
.badge.unlocked { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.4); }

.lock-banner {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius); margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,.16), rgba(236,72,153,.12));
  border: 1px solid rgba(236,72,153,.35);
}
.lock-banner strong { display: block; margin-bottom: 4px; }
.lock-banner span { color: #d9d9e6; font-size: .93rem; }
@media (min-width: 720px) { .lock-banner { flex-direction: row; align-items: center; justify-content: space-between; } .lock-banner .btn { flex: none; } }

.warn-banner { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.5); color: #fecdd3; font-size: .93rem; }
.warn-banner strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.warn-banner p { margin: 0 0 8px; }
.warn-banner a { color: #fda4af; font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: border-color .2s, transform .15s; }
.stat:hover { border-color: rgba(168,85,247,.5); }
.stat:active { transform: scale(.98); }
.stat .n { font: 700 1.7rem "Space Grotesk", sans-serif; display: block; }
.stat .l { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }
.stat .p { font-size: .75rem; color: #c084fc; font-weight: 600; }
.stat.hl { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.stat.hl .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ratio { padding: 18px; margin-bottom: 18px; display: grid; gap: 14px; }
@media (min-width: 720px) { .ratio { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.ratio-big { font: 700 2.6rem "Space Grotesk", sans-serif; line-height: 1; }
.ratio-big small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.bar { height: 12px; border-radius: 999px; background: #222230; overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; }
.bar .b-mut { background: var(--grad); }
.bar .b-non { background: #3f3f52; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: 13px 0; outline: none; }

.tabs { scroll-margin-top: 76px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #d4d4e0; font: 600 .86rem Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.tab .c { opacity: .65; margin-left: 4px; font-weight: 500; }
.tab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 24px -8px rgba(236,72,153,.7); }

.list-panel { padding: 6px 0 0; overflow: hidden; }
.list-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.list-head h3 { font-size: 1.1rem; margin: 0; }
.list-head p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.sort { background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: .84rem; }
.list-tools { display: flex; gap: 8px; align-items: center; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.04); }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; }
.who { flex: 1; min-width: 0; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.who span { font-size: .78rem; color: var(--muted); }
.open { flex: none; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(168,85,247,.14); color: #e9d5ff; border: 1px solid rgba(168,85,247,.35); }
.open:hover { text-decoration: none; background: rgba(168,85,247,.25); }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.more { display: block; margin: 8px auto 16px; }

.locked-wrap { position: relative; }
.locked-wrap .rows { filter: blur(7px); user-select: none; pointer-events: none; opacity: .8; }
.lock-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(21,21,30,0) 0%, rgba(21,21,30,.85) 35%, rgba(21,21,30,.95) 100%);
}
.lock-cta .lk { font-size: 1.6rem; }
.lock-cta p { margin: 0; font-size: .9rem; color: #d9d9e6; max-width: 360px; }
.lock-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
.lock-cta small { color: var(--muted); font-size: .78rem; }

/* Tutorial */
.tutorial, .faq { padding-top: 56px; padding-bottom: 24px; scroll-margin-top: 70px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin: 6px 0 16px; }
.seg-btn { border: 0; background: none; color: var(--muted); font: 600 .9rem Inter, sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn.active { background: var(--grad); color: #fff; }
.accordion { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.accordion p, .accordion summary { overflow-wrap: anywhere; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; transition: border-color .2s; }
details[open] { border-color: rgba(168,85,247,.45); }
summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: #c084fc; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: #c9c9d9; padding-bottom: 16px; margin: 0; }
.step { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: .85rem; font-weight: 800; }

.footer { padding: 40px 16px 60px; text-align: center; font-size: .82rem; color: #8a8aa0; }
.footer p { margin: 4px 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 60px -10px rgba(168,85,247,.5);
  animation: up .25s ease-out;
}
@media (min-width: 640px) { .modal-card { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text); font-size: 1.4rem; cursor: pointer; }
.ck-account { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; margin-bottom: 14px; }
.ck-account strong { word-break: break-all; text-align: right; }
.ck-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; font-size: .9rem; color: #d4d4e0; }
.ck-list li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.ck-price { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ck-price strong { font: 700 1.8rem "Space Grotesk", sans-serif; }
.ck-warn { font-size: .84rem; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fde68a; padding: 10px 12px; border-radius: 12px; }
.field { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.field input { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); font: inherit; font-size: 1rem; }
.field input:focus { outline: none; border-color: var(--purple); }
.ck-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.method { padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 .92rem Inter, sans-serif; cursor: pointer; }
.method.active { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(236,72,153,.25); }
.sim-link { display: block; margin: 10px auto 0; background: none; border: 0; color: #6b6b80; font-size: .75rem; text-decoration: underline; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 60; background: #1f1f2b; border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; font-size: .9rem; transition: all .3s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
