/* memeprint — dark, minimal, one accent, big legible numbers, lots of air. */
:root {
  --bg:#0a0b0e; --bg-soft:#0e1014; --surface:#14171d; --surface2:#1b1f27; --surface3:#232834;
  --border:rgba(255,255,255,0.07); --border2:rgba(255,255,255,0.13);
  --text:#eef1f6; --muted:#8b95a7; --muted2:#5b6474;
  --accent:#35e0a1; --accent-dim:#1f6f56;
  --up:#35e0a1; --down:#ff5d73;
  --radius:16px; --radius-sm:11px;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,system-ui,sans-serif;
  --mono:'SF Mono',ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;
}
* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
  background: radial-gradient(1100px 620px at 78% -10%, rgba(53,224,161,0.08), transparent 60%), var(--bg);
  color:var(--text); font-family:var(--sans); font-size:15px; line-height:1.55;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.num { font-variant-numeric:tabular-nums; }
.mono { font-family:var(--mono); }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input { font-family:inherit; }
::selection { background:rgba(53,224,161,0.28); }
.wrap { max-width:940px; margin:0 auto; padding:0 20px; }

/* ---- header ---- */
header.top { position:sticky; top:0; z-index:40; backdrop-filter:blur(14px); background:rgba(10,11,14,0.78); border-bottom:1px solid var(--border); }
.top-inner { display:flex; align-items:center; gap:14px; height:62px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:-0.02em; font-size:18px; flex-shrink:0; }
.brand .mark { width:26px; height:26px; border-radius:8px; background:linear-gradient(150deg,var(--accent),#16b981); display:grid; place-items:center; color:#05130d; font-weight:900; font-size:15px; box-shadow:0 0 0 1px rgba(53,224,161,0.35),0 6px 18px rgba(53,224,161,0.22); }
.brand .lit { color:var(--accent); }
.spacer-sm { flex:0 0 2px; }

.search { position:relative; flex:1; max-width:520px; }
.search .ico { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:16px; pointer-events:none; }
.search input { width:100%; height:42px; padding:0 14px 0 40px; background:var(--surface); border:1px solid var(--border2); border-radius:11px; color:var(--text); font-size:15px; outline:none; transition:border-color .15s,box-shadow .15s; }
.search input::placeholder { color:var(--muted2); }
.search input:focus { border-color:var(--accent-dim); box-shadow:0 0 0 3px rgba(53,224,161,0.10); }

.search-drop { position:absolute; top:52px; left:0; right:0; background:var(--surface); border:1px solid var(--border2); border-radius:13px; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,0.55); max-height:66vh; overflow-y:auto; }
.sr { display:flex; align-items:center; gap:11px; padding:10px 13px; cursor:pointer; border-bottom:1px solid var(--border); }
.sr:last-child { border-bottom:none; }
.sr:hover, .sr.active { background:var(--surface2); }
.sr .ava { width:30px; height:30px; border-radius:50%; background:var(--surface3); flex-shrink:0; object-fit:cover; display:grid; place-items:center; color:var(--muted); font-size:12px; font-weight:700; }
.sr .who { min-width:0; flex:1; }
.sr .sym { font-weight:700; font-size:14px; }
.sr .nm { color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sr .rt { text-align:right; }
.sr .px { font-weight:600; font-size:13.5px; }
.sr .chain { color:var(--muted2); font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.sr-empty { padding:16px 14px; color:var(--muted); font-size:13.5px; text-align:center; }

.btn { border:1px solid var(--border2); background:var(--surface2); color:var(--text); padding:9px 15px; border-radius:10px; font-weight:600; font-size:13.5px; transition:border-color .15s,background .15s,transform .05s; white-space:nowrap; }
.btn:hover { border-color:var(--accent-dim); }
.btn:active { transform:translateY(1px); }
.btn.accent { background:var(--accent); color:#05130d; border-color:transparent; }
.btn.accent:hover { filter:brightness(1.06); }
.btn.ghost { background:transparent; }
.btn.sm { padding:6px 11px; font-size:12.5px; border-radius:9px; }
.btn:disabled { opacity:.5; cursor:default; }

/* ---- hero ---- */
.hero { text-align:center; padding:62px 0 34px; }
.hero h1 { font-size:40px; line-height:1.08; letter-spacing:-0.03em; font-weight:800; }
.hero h1 .lit { color:var(--accent); }
.hero p { color:var(--muted); font-size:16px; max-width:470px; margin:14px auto 0; }
.chips { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
.chip { border:1px solid var(--border); background:var(--surface); color:var(--muted); padding:7px 13px; border-radius:999px; font-size:13px; font-weight:600; transition:color .15s,border-color .15s; cursor:pointer; }
.chip:hover { color:var(--text); border-color:var(--border2); }
.chip b { color:var(--accent); }

/* ---- section headers ---- */
.sec-head { display:flex; align-items:center; gap:10px; margin:26px 0 14px; }
.sec-head h2 { font-size:15px; font-weight:700; letter-spacing:-0.01em; }
.sec-head .count { color:var(--muted2); font-size:13px; }
.sec-head .grow { flex:1; }

/* ---- token card ---- */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; margin-top:22px; }
.tk-top { display:flex; align-items:center; gap:14px; }
.tk-ava { width:46px; height:46px; border-radius:50%; background:var(--surface3); object-fit:cover; display:grid; place-items:center; color:var(--muted); font-weight:800; }
.tk-id { min-width:0; flex:1; }
.tk-sym { font-size:22px; font-weight:800; letter-spacing:-0.02em; display:flex; align-items:center; gap:9px; }
.tk-badge { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); background:var(--surface2); border:1px solid var(--border); padding:3px 7px; border-radius:6px; }
.tk-nm { color:var(--muted); font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tk-star { font-size:22px; line-height:1; color:var(--muted2); transition:color .15s,transform .1s; }
.tk-star:hover { color:var(--accent); }
.tk-star.on { color:var(--accent); }
.tk-star:active { transform:scale(.88); }

.tk-price { display:flex; align-items:baseline; gap:14px; margin:20px 0 4px; flex-wrap:wrap; }
.tk-price .big { font-size:44px; font-weight:800; letter-spacing:-0.03em; }
.pill { font-weight:700; font-size:15px; padding:4px 11px; border-radius:9px; }
.pill.up { color:var(--up); background:rgba(53,224,161,0.12); }
.pill.down { color:var(--down); background:rgba(255,93,115,0.12); }
.up-c { color:var(--up); } .down-c { color:var(--down); }

.spark { height:64px; margin:14px 0 6px; }

.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:18px; }
.stat { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:13px 14px; }
.stat .k { color:var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; }
.stat .v { font-size:18px; font-weight:700; margin-top:5px; letter-spacing:-0.01em; }

.tk-actions { display:flex; gap:10px; margin-top:20px; }
.tk-actions .btn { flex:1; height:46px; font-size:15px; display:grid; place-items:center; }
.tk-links { display:flex; gap:14px; margin-top:16px; color:var(--muted); font-size:13px; flex-wrap:wrap; }
.tk-links a:hover { color:var(--text); }

/* ---- watchlist rows ---- */
.rows { display:flex; flex-direction:column; gap:8px; }
.row { display:flex; align-items:center; gap:13px; background:var(--surface); border:1px solid var(--border); border-radius:13px; padding:12px 15px; cursor:pointer; transition:border-color .15s,background .15s; }
.row:hover { border-color:var(--border2); background:var(--surface2); }
.row .ava { width:34px; height:34px; border-radius:50%; background:var(--surface3); object-fit:cover; display:grid; place-items:center; color:var(--muted); font-weight:700; font-size:13px; flex-shrink:0; }
.row .who { min-width:0; flex:1; }
.row .sym { font-weight:700; font-size:15px; }
.row .nm { color:var(--muted); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row .mini { width:88px; height:30px; flex-shrink:0; opacity:.9; }
.row .rt { text-align:right; min-width:96px; flex-shrink:0; }
.row .px { font-weight:700; font-size:15px; }
.row .ch { font-size:12.5px; font-weight:600; }
.row .x { color:var(--muted2); font-size:17px; padding:4px 6px; flex-shrink:0; }
.row .x:hover { color:var(--down); }

/* ---- profile / share ---- */
.profile-head { display:flex; align-items:center; gap:15px; margin-top:26px; }
.profile-head .pfp { width:54px; height:54px; border-radius:50%; background:linear-gradient(150deg,var(--accent),#16b981); display:grid; place-items:center; color:#05130d; font-weight:900; font-size:22px; }
.profile-head .h { font-size:24px; font-weight:800; letter-spacing:-0.02em; }
.profile-head .sub { color:var(--muted); font-size:13.5px; margin-top:2px; }
.profile-head .grow { flex:1; }

.empty { text-align:center; color:var(--muted); padding:50px 20px; }
.empty .big { font-size:34px; margin-bottom:8px; }

.toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px); background:var(--surface3); border:1px solid var(--border2); color:var(--text); padding:11px 18px; border-radius:11px; font-size:13.5px; font-weight:600; opacity:0; transition:opacity .2s,transform .2s; z-index:80; box-shadow:0 12px 40px rgba(0,0,0,.5); pointer-events:none; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.err { border-color:rgba(255,93,115,.5); }

.skeleton { background:linear-gradient(90deg,var(--surface2) 25%,var(--surface3) 50%,var(--surface2) 75%); background-size:200% 100%; animation:sh 1.3s infinite; border-radius:8px; }
@keyframes sh { to { background-position:-200% 0; } }
.spin { display:inline-block; width:15px; height:15px; border:2px solid var(--border2); border-top-color:var(--accent); border-radius:50%; animation:rot .7s linear infinite; vertical-align:-2px; }
@keyframes rot { to { transform:rotate(360deg); } }

footer.foot { text-align:center; color:var(--muted2); font-size:12.5px; padding:44px 0 30px; }

@media (max-width:640px) {
  .brand-name { display:none; }
  .hero { padding:40px 0 26px; } .hero h1 { font-size:30px; } .hero p { font-size:15px; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .tk-price .big { font-size:36px; }
  .row .mini { display:none; }
}

/* ---- swap modal ---- */
.modal-bg { position:fixed; inset:0; background:rgba(4,5,7,0.72); backdrop-filter:blur(3px); z-index:60; display:grid; place-items:center; padding:20px; opacity:0; animation:fade .14s forwards; }
@keyframes fade { to { opacity:1; } }
.modal { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius); padding:20px; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.modal-head { display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.modal-head .sym { font-size:17px; font-weight:800; }
.modal-head .nm { color:var(--muted); font-size:12.5px; }
.modal-x { margin-left:auto; color:var(--muted2); font-size:22px; line-height:1; }
.modal-x:hover { color:var(--text); }
.seg { display:flex; background:var(--surface2); border:1px solid var(--border); border-radius:11px; padding:3px; margin-bottom:16px; }
.seg button { flex:1; height:36px; border-radius:8px; font-weight:700; font-size:14px; color:var(--muted); }
.seg button.on.buy { background:rgba(53,224,161,0.14); color:var(--up); }
.seg button.on.sell { background:rgba(255,93,115,0.14); color:var(--down); }
.amt { position:relative; margin-bottom:12px; }
.amt input { width:100%; height:58px; background:var(--surface2); border:1px solid var(--border2); border-radius:12px; color:var(--text); font-size:26px; font-weight:700; padding:0 74px 0 16px; outline:none; }
.amt input:focus { border-color:var(--accent-dim); }
.amt .unit { position:absolute; right:16px; top:50%; transform:translateY(-50%); color:var(--muted); font-weight:700; font-size:14px; }
.bal { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:12.5px; margin-bottom:12px; padding:0 2px; }
.bal .max { color:var(--accent); font-weight:700; cursor:pointer; }
.presets { display:flex; gap:7px; margin-bottom:14px; }
.presets button { flex:1; height:32px; border:1px solid var(--border); background:var(--surface2); border-radius:8px; font-size:12.5px; font-weight:600; color:var(--muted); }
.presets button:hover { color:var(--text); border-color:var(--border2); }
.qbox { background:var(--surface2); border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.qline { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted); padding:3px 0; }
.qline b { color:var(--text); font-weight:700; }
.qline.big { font-size:15px; padding-bottom:8px; margin-bottom:6px; border-bottom:1px solid var(--border); }
.qline.big b { font-size:18px; }
.modal .confirm { width:100%; height:50px; font-size:16px; margin-top:4px; display:grid; place-items:center; }
.modal .confirm.sell { background:var(--down); color:#1a0509; }
.swap-done { text-align:center; padding:8px 0; }
.swap-done .big { font-size:40px; }

/* ---- WATCH button (amber) + per-row share ---- */
.btn.watch { background:#f8b62b; color:#241a05; border-color:transparent; }
.btn.watch:hover { filter:brightness(1.06); }
.btn.watch.on { background:rgba(248,182,43,0.15); color:#f8b62b; border:1px solid rgba(248,182,43,0.5); }
.row .rowsh { color:var(--muted2); font-size:14px; font-weight:800; padding:4px 7px; flex-shrink:0; line-height:1; }
.row .rowsh:hover { color:var(--text); }

/* ---- chart timeframe switch ---- */
.tf { display:flex; justify-content:flex-end; gap:2px; margin:2px 0 2px; }
.tf button { color:var(--muted2); font-size:12px; font-weight:600; padding:3px 9px; border-radius:7px; transition:color .12s, background .12s; }
.tf button:hover { color:var(--muted); }
.tf button.on { color:var(--accent); background:rgba(53,224,161,0.10); }

/* ---- account menu ---- */
.auth-menu { position:fixed; top:58px; right:20px; background:var(--surface); border:1px solid var(--border2); border-radius:12px; overflow:hidden; box-shadow:0 16px 44px rgba(0,0,0,.55); z-index:55; min-width:158px; }
.auth-menu button { display:block; width:100%; text-align:left; padding:11px 15px; font-size:13.5px; font-weight:600; color:var(--text); }
.auth-menu button:hover { background:var(--surface2); }
.auth-menu button[data-a="logout"] { color:var(--down); border-top:1px solid var(--border); }
