/* =====================================================================
   Navaar — arzparz.com  |  public site + app-like mobile UI
   Mobile-first, RTL, light/dark. Vanilla CSS, no framework.
   ===================================================================== */
:root{
  --purple:#6d5efc; --purple-d:#5b4ef0; --indigo:#4f46e5; --blue:#3b82f6;
  --green:#16a34a; --green-bg:#e8f7ee; --red:#ef4444; --red-bg:#fdeaea;
  --bg:#f4f3fb; --card:#ffffff; --card-2:#f7f7fc;
  --ink:#11142a; --ink-2:#3a3f57; --muted:#7c8198; --line:#ececf4;
  --shadow:0 8px 24px rgba(31,27,80,.07); --shadow-sm:0 4px 12px rgba(31,27,80,.06);
  --radius:18px; --radius-sm:12px;
  --maxw:1120px;
}
[data-theme="dark"]{
  --bg:#0e1120; --card:#171b2d; --card-2:#1d2236;
  --ink:#eef0f8; --ink-2:#c7cbe0; --muted:#9197b6; --line:#262b44;
  --green-bg:#0f2a1c; --red-bg:#2c1620;
  --shadow:0 8px 24px rgba(0,0,0,.35); --shadow-sm:0 4px 12px rgba(0,0,0,.3);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Vazirmatn,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.6;
  -webkit-font-smoothing:antialiased; padding-bottom:env(safe-area-inset-bottom);
  display:flex; flex-direction:column; min-height:100vh;
}
.main{flex:1 0 auto;width:100%}
a{color:inherit;text-decoration:none}
img{max-width:100%}
/* the hidden attribute must always win over component display rules */
[hidden]{display:none !important}
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 16px}
.muted{color:var(--muted)} .small{font-size:.8rem}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 0 rgba(22,163,74,.5);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.45)}70%{box-shadow:0 0 0 7px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--purple);color:#fff;border:none;cursor:pointer;font-family:inherit;
  font-weight:600;font-size:.95rem;padding:12px 22px;border-radius:12px;transition:.15s;}
.btn:hover{background:var(--purple-d);transform:translateY(-1px)}
.btn--outline{background:transparent;color:var(--purple);border:1.5px solid var(--purple)}
.btn--outline:hover{background:rgba(109,94,252,.08)}
.btn--ghost{background:var(--card-2);color:var(--ink-2);border:1px solid var(--line)}
.btn--light{background:rgba(255,255,255,.22);color:#fff}
.btn--sm{padding:8px 14px;font-size:.85rem;border-radius:10px}
.btn--block{width:100%}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:11px;
  background:var(--card-2);border:1px solid var(--line);color:var(--ink-2);cursor:pointer}
.icon-btn:hover{color:var(--purple)}
.lang-switch{background:var(--card-2);border:1px solid var(--line);color:var(--ink-2);
  height:40px;padding:0 14px;border-radius:11px;cursor:pointer;font-family:inherit;font-weight:600}
.round-btn{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;
  background:var(--card);box-shadow:var(--shadow-sm);border:1px solid var(--line);color:var(--ink-2);cursor:pointer}
.round-btn:hover{color:var(--purple)}
.chip{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--card);
  border:1px solid var(--line);color:var(--ink-2);font-size:.85rem;font-weight:600}
.chip.is-active{background:var(--purple);color:#fff;border-color:var(--purple)}

/* ---------- Brand ---------- */
.brand{display:inline-flex;align-items:center;gap:9px}
.brand__name{font-weight:800;font-size:1.2rem;letter-spacing:-.3px}

/* ===================================================================
   Desktop site header / footer  (hidden on mobile)
   =================================================================== */
.site-header{display:none;position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--card) 88%,transparent);
  backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.site-header__inner{display:flex;align-items:center;gap:24px;height:66px}
.site-nav{display:flex;gap:22px;margin-inline-start:8px}
.site-nav a{color:var(--ink-2);font-weight:600;font-size:.95rem;padding:6px 2px;position:relative}
.site-nav a:hover,.site-nav a.active{color:var(--purple)}
.site-nav a.active::after{content:"";position:absolute;inset-inline:0;bottom:-6px;height:3px;border-radius:3px;background:var(--purple)}
.site-header__tools{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.site-footer{margin-top:40px;border-top:1px solid var(--line);background:var(--card);padding:40px 0 28px;flex:none}
.site-footer__top{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.footer-brand .muted{margin:10px 0 14px;max-width:340px;font-size:.9rem}
.footer-social{display:flex;gap:10px}
.footer-social a{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--card-2);border:1px solid var(--line);color:var(--ink-2)}
.footer-social a:hover{color:var(--purple);border-color:var(--purple)}
.footer-col h4{margin:0 0 12px;font-size:.95rem}
.footer-col a{display:block;color:var(--muted);font-weight:500;margin:8px 0;font-size:.9rem}
.footer-col a:hover{color:var(--purple)}
.site-footer__bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:18px}
.footer-disclaimer{opacity:.85;max-width:560px}

/* Convert page */
.convert-page{max-width:1120px;margin:0 auto;padding-top:18px}
.convert-card{max-width:560px;margin-left:auto;margin-right:auto}
.convert-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;position:relative}
.cv-row{margin:6px 0}
.cv-label{display:block;color:var(--muted);font-size:.82rem;margin-bottom:6px;font-weight:600}
.cv-field{display:flex;gap:10px;background:var(--card-2);border:1px solid var(--line);border-radius:14px;padding:8px 10px}
.cv-field input{flex:1;border:none;background:none;outline:none;font-family:inherit;font-size:1.4rem;font-weight:800;color:var(--ink);min-width:0}
.cv-field select{border:none;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-family:inherit;font-weight:700;color:var(--ink);cursor:pointer;max-width:46%}
.cv-swap{display:block;margin:8px auto;width:46px;height:46px;border-radius:50%;background:var(--purple);color:#fff;border:none;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 18px rgba(109,94,252,.3)}
.cv-swap .ic{stroke:#fff}
.cv-rate{text-align:center;color:var(--purple);font-weight:700;margin:14px 0 0}

/* Legal pages */
.legal{max-width:1120px;margin:0 auto;padding:24px 16px 10px}
.legal h1{font-size:1.7rem;margin:0 0 6px}
.legal h2{font-size:1.1rem;margin:24px 0 8px}
.legal p,.legal li{color:var(--ink-2);line-height:1.9}
.legal ul{padding-inline-start:22px}

/* Public form fields (contact) */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:.85rem;color:var(--ink-2);font-weight:600}
.field input,.field select,.field textarea{font-family:inherit;font-size:.95rem;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--purple)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form{margin-top:16px}
.contact-sent{background:var(--green-bg);color:var(--green);padding:18px;border-radius:14px;font-weight:600;margin-top:12px}
.contact-err{background:var(--red-bg);color:var(--red);padding:12px;border-radius:12px;margin:10px 0}

/* API pricing page */
.api-page{max-width:1120px;margin:0 auto;padding:22px 16px 10px}
.api-page h1{font-size:1.8rem;margin:0 0 8px}
.api-page h2{font-size:1.2rem;margin:28px 0 12px}
.api-page h4{margin:16px 0 6px;color:var(--ink-2)}
.api-features{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.api-features li{position:relative;padding-inline-start:26px;color:var(--ink-2)}
.api-features li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--green);font-weight:800}
.api-endpoint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.api-method{background:var(--green);color:#fff;border-radius:6px;padding:2px 8px;font-size:.75rem;font-weight:700}
.api-endpoint code{font-family:monospace}.api-endpoint .btn{margin-inline-start:auto}
.api-out,.api-code{background:#0f1220;color:#cfe3ff;border-radius:12px;padding:14px;overflow:auto;font-family:monospace;font-size:.82rem;line-height:1.6;margin:8px 0;direction:ltr;text-align:left}
.api-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:8px 0}
.api-plan{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;text-align:center;position:relative}
.api-plan--feat{border-color:var(--purple);box-shadow:0 10px 30px rgba(109,94,252,.18)}
.api-badge{position:absolute;top:-10px;inset-inline-end:14px;background:var(--purple);color:#fff;font-size:.7rem;padding:2px 10px;border-radius:999px}
.api-plan h3{margin:0 0 8px}
.api-price{font-size:2rem;font-weight:800}.api-price span{font-size:.9rem;color:var(--muted);font-weight:500}
.api-plan p{color:var(--ink-2);margin:10px 0 16px;font-size:.9rem}
.msg-body{white-space:pre-wrap;background:var(--bg);border-radius:12px;padding:14px;line-height:1.8}
@media(max-width:600px){.form-grid,.api-features{grid-template-columns:1fr}.api-plans{grid-template-columns:1fr}}

/* lock background scroll when a modal/sheet is open */
html.modal-open,html.modal-open body{overflow:hidden;touch-action:none}
/* story sheet: keep it compact + scrollable so actions are always visible */
.story-canvas{max-width:228px}
.story-sheet{max-height:92vh;overflow-y:auto}

/* footer responsive */
@media (max-width:768px){
  .story-canvas{max-width:196px}
  .site-footer{padding:30px 0 96px} /* clear the fixed bottom-nav */
  .site-footer__top{grid-template-columns:1fr 1fr;gap:18px 14px}
  .footer-brand{grid-column:1 / -1}
  .footer-brand .muted{max-width:none}
  .site-footer__bottom{flex-direction:column;gap:6px;text-align:start}
  .footer-col h4{font-size:.88rem}
  .footer-col a{margin:6px 0;font-size:.86rem}
}

/* ===================================================================
   Mobile app header + bottom nav  (hidden on desktop)
   =================================================================== */
.app-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 16px 8px}
.app-header__title h1{margin:0;font-size:1.45rem;font-weight:800;display:flex;align-items:center;gap:8px}
.app-header__title p{margin:2px 0 0;color:var(--muted);font-size:.82rem}
.app-header__actions{display:flex;gap:10px}
.bottom-nav{display:none}

/* ===================================================================
   Hero (desktop only)
   =================================================================== */
.hero{display:none;padding:40px 0 18px}
.hero__inner{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;align-items:center}
.hero__eyebrow{color:var(--muted);font-weight:600;font-size:.9rem}
.hero__title{font-size:3.4rem;line-height:1.05;margin:10px 0 8px;font-weight:800;letter-spacing:-1px}
.grad{background:linear-gradient(90deg,var(--purple),var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero__sub{color:var(--ink-2);font-size:1.05rem;margin:0 0 22px}
.hero__cta{display:flex;gap:12px}
.hero__art{position:relative;height:340px;display:grid;place-items:center}
.hero__phone{width:210px;height:330px;border-radius:34px;background:linear-gradient(160deg,#fff,#eef0ff);
  border:8px solid #fff;box-shadow:0 24px 60px rgba(91,78,240,.25);position:relative;z-index:2;overflow:hidden}
[data-theme="dark"] .hero__phone{background:linear-gradient(160deg,#1d2236,#141829)}
.hero__phone.big{width:230px;height:430px}
.hero__phone-screen{padding:18px 14px;display:flex;flex-direction:column;gap:10px}
.hp-row{display:flex;align-items:center;gap:8px;background:var(--card);border:1px solid var(--line);
  border-radius:12px;padding:8px 10px;font-size:.8rem;box-shadow:var(--shadow-sm)}
.hp-row span{color:var(--muted)} .hp-row b{margin-inline-start:auto}
.hp-spark{margin-top:6px}
.float-ic{position:absolute;width:58px;height:58px;border-radius:50%;background:var(--card);
  display:grid;place-items:center;box-shadow:var(--shadow);z-index:3}
.float-ic.f1{top:6%;inset-inline-start:2%} .float-ic.f2{top:0;inset-inline-end:26%}
.float-ic.f3{top:34%;inset-inline-end:0} .float-ic.f4{bottom:20%;inset-inline-end:6%}
.float-ic.f5{bottom:4%;inset-inline-start:16%} .float-ic.f6{top:40%;inset-inline-start:0}

/* ===================================================================
   Price cards — grid (desktop) + app list (mobile)
   =================================================================== */
.prices{margin-top:14px}
.prices__updated{display:flex;align-items:center;gap:8px;margin:0 2px 12px;font-size:13px;color:var(--muted)}
.prices__updated b{color:var(--text);font-weight:600}
.prices__updated-dot{width:8px;height:8px;border-radius:50%;background:#16c784;box-shadow:0 0 0 0 rgba(22,199,132,.5);animation:livePulse 2s infinite}
@keyframes livePulse{0%{box-shadow:0 0 0 0 rgba(22,199,132,.5)}70%{box-shadow:0 0 0 6px rgba(22,199,132,0)}100%{box-shadow:0 0 0 0 rgba(22,199,132,0)}}
.adlp-media{display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.adlp-media__i,.adlp-media__v{width:100%;border-radius:14px;display:block;background:#0b1020}
.adlp-media__v{max-height:520px}
.adlp-links{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.adlp-link{display:flex;align-items:center;gap:11px;background:var(--card);border:1px solid var(--line);border-radius:13px;
  padding:12px 15px;text-decoration:none;color:var(--text);box-shadow:var(--shadow-sm);transition:.15s}
.adlp-link:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.adlp-link__ic{font-size:1.25rem;flex:none;width:26px;text-align:center}
.adlp-link__lbl{font-weight:700;margin-inline-end:auto}
.adlp-link__arr{width:18px;height:18px;color:var(--muted);flex:none}
.adlp-link--telegram{border-color:#2aabee55}.adlp-link--whatsapp{border-color:#25d36655}.adlp-link--instagram{border-color:#e1306c55}
.sponsors{display:flex;flex-direction:column;gap:10px}
.sponsor{display:flex;align-items:center;gap:12px;background:linear-gradient(100deg,rgba(109,94,252,.07),rgba(79,70,229,.04));
  border:1px solid var(--line);border-radius:16px;padding:13px 18px;text-decoration:none;color:var(--text)}
.sponsor__logo{width:34px;height:34px;border-radius:9px;object-fit:cover;flex:none}
.sponsor__tag{font-size:.66rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:#6d5efc;border-radius:7px;padding:3px 8px;flex:none}
.sponsor__by{font-size:.92rem;color:var(--muted);margin-inline-end:auto}.sponsor__by b{color:var(--text)}
.sponsor__badge{font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:3px 8px;border-radius:6px;flex:none}
.sponsor__arrow{width:18px;height:18px;color:var(--muted);flex:none}
.sponsor--gold{border-color:#e7c14d;background:linear-gradient(100deg,rgba(231,193,77,.16),rgba(231,193,77,.04))}
.sponsor__badge--gold{background:#e7c14d;color:#4a3a05}
.sponsor--silver{border-color:#c0c6d4;background:linear-gradient(100deg,rgba(192,198,212,.18),rgba(192,198,212,.05))}
.sponsor__badge--silver{background:#c0c6d4;color:#2b3140}
.sponsor--diamond{border-color:#7cc6e8;background:linear-gradient(100deg,rgba(124,198,232,.18),rgba(124,198,232,.05))}
.sponsor__badge--diamond{background:#7cc6e8;color:#0b3a4d}
.about-card--actions{display:flex;gap:10px;flex-wrap:wrap}
.about-card--actions .btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.about-card--actions .ic{width:17px;height:17px}
.offline-tag{display:inline-flex;align-items:center;gap:6px;background:#fdecec;color:#c0392b;border:1px solid #f5c6c6;border-radius:20px;padding:2px 10px;font-weight:700;font-size:.78rem}
html.is-offline .prices__updated-dot{background:#ef4444;animation:none}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,18px);background:#1f2233;color:#fff;padding:12px 18px;border-radius:14px;
  font-weight:600;font-size:.9rem;box-shadow:0 14px 40px rgba(0,0,0,.3);z-index:9999;opacity:0;transition:.3s;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.alert-modal{position:fixed;inset:0;background:rgba(15,18,30,.55);backdrop-filter:blur(3px);z-index:9000;display:grid;place-items:center;padding:18px}
.alert-card{background:var(--card);border-radius:20px;padding:20px;width:100%;max-width:380px;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.alert-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.alert-head b{font-size:1.02rem}
.alert-x{background:none;border:none;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer}
.alert-row{display:flex;gap:8px;align-items:center;margin-bottom:14px}
.alert-op,.alert-val{height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font:inherit;background:var(--bg);color:var(--text)}
.alert-op{flex:0 0 auto}.alert-val{flex:1;min-width:0}.alert-unit{color:var(--muted);font-size:.86rem}
.alert-list{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.alert-item{display:flex;justify-content:space-between;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:9px 13px;font-weight:700}
.alert-del{background:none;border:none;color:#ef4444;font-weight:700;cursor:pointer;font-size:.84rem}
.alert-note{margin-top:12px}
.trust{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:var(--muted);
  background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:4px 11px}
.trust__dot{width:7px;height:7px;border-radius:50%;background:#16c784;box-shadow:0 0 0 0 rgba(22,199,132,.5);animation:livePulse 2s infinite}
.today{margin:0 2px 16px}
.today__title{display:block;font-weight:800;font-size:1rem;margin-bottom:9px}
.today__strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.today__strip::-webkit-scrollbar{height:5px}.today__strip::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.today__chip{flex:0 0 auto;display:flex;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--line);
  border-radius:13px;padding:9px 14px;box-shadow:var(--shadow-sm);min-width:118px}
.today__chip b{font-size:.86rem;color:var(--text)}
.today__chip span{font-size:.82rem;font-weight:700;display:flex;align-items:center;gap:5px}
.today__chip i{font-style:normal;font-weight:600;font-size:.7rem;color:var(--muted)}
.today__chip.up span{color:#16a34a}.today__chip.down span{color:#ef4444}.today__chip.neutral span{color:var(--muted)}
.prices__grid{display:grid;grid-template-columns:1fr;gap:12px}
/* big lists (markets/gold/crypto, 100+ cards): only paint what's on screen → fast load+scroll */
.prices__grid--list .pcard{content-visibility:auto;contain-intrinsic-size:auto 76px}
.pcard{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow-sm);transition:.15s;position:relative}
.pcard:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.pcard__id{display:flex;align-items:center;gap:11px;min-width:0}
.pcard__icon{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:none;display:grid;place-items:center;
  background:var(--card-2);border:1px solid var(--line)}
.pcard__icon img{width:42px;height:42px;object-fit:cover;border-radius:50%}
.pcard__icon.big{width:54px;height:54px}.pcard__icon.big img{width:54px;height:54px}
.pcard__names{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.pcard__names b{font-weight:700;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard__names i{font-style:normal;color:var(--muted);font-size:.78rem}
.pcard__spark{order:2;flex:1;min-width:60px;max-width:150px;height:34px}
.pcard__spark .spark{width:100%;height:34px;display:block}
.pcard__val{order:3;margin-inline-start:auto;text-align:end;display:flex;flex-direction:column;align-items:flex-end}
.pcard__price{font-weight:800;font-size:1.05rem;font-variant-numeric:tabular-nums}
/* odometer roll on price change */
@keyframes pricepop{0%{transform:translateY(-3px);opacity:.65}100%{transform:translateY(0);opacity:1}}
.pcard__price.rolling,.big-price.rolling{display:inline-block;animation:pricepop .26s ease}
.pcard__chg{font-size:.8rem;font-weight:700;display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:8px;margin-top:2px}
.pcard__chg .arrow{font-size:.7rem}
.pcard__chg.up{color:var(--green);background:var(--green-bg)}
.pcard__chg.down{color:var(--red);background:var(--red-bg)}
.pcard__chg.neutral{color:var(--muted);background:var(--card-2)}

/* Send to Story share button on cards */
/* Send to Story buttons are hidden by default; shown only on touch devices (mobile/tablet) */
.pcard__share{order:4;flex:none;width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);
  background:var(--card);display:none;place-items:center;color:var(--purple);cursor:pointer;margin-inline-start:8px;transition:.15s}
html.is-touch .pcard__share{display:grid}
.pcard__share:hover{background:rgba(109,94,252,.10);border-color:var(--purple)}
.pcard__share .ic{width:20px;height:20px}
.detail__share{display:none;align-items:center;gap:7px;margin-inline-start:auto;background:rgba(109,94,252,.1);
  color:var(--purple);border:none;border-radius:10px;padding:8px 14px;font-family:inherit;font-weight:700;font-size:.85rem;cursor:pointer}
html.is-touch .detail__share{display:inline-flex}
.detail__share:hover{background:rgba(109,94,252,.18)}

/* Send to Story modal */
.story-sheet{max-width:440px}
.story-stage{padding:8px 18px 0;display:flex;justify-content:center}
.story-canvas{position:relative;width:100%;max-width:288px;aspect-ratio:9/16;border-radius:18px;overflow:hidden;
  background:linear-gradient(160deg,#5b4bd6,#241a4d);box-shadow:var(--shadow)}
.story-canvas img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .25s}
.story-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:.9rem}
.spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.story-actions{padding:14px 18px 18px;display:flex;flex-direction:column;gap:10px}
.story-actions .btn{justify-content:center}
.story-actions__row{display:flex;gap:10px}
.story-actions__row .btn{flex:1;justify-content:center}
/* user customization controls */
.story-customize{padding:14px 18px 2px;display:flex;flex-direction:column;gap:10px}
.sc-themes{display:flex;gap:10px;justify-content:center}
.sc-theme{width:34px;height:34px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}
.sc-theme.is-on{border-color:var(--purple);box-shadow:0 0 0 3px rgba(109,94,252,.18)}
.sc-toggles{display:flex;gap:8px;justify-content:center}
.sc-tog{background:var(--card-2);border:1px solid var(--line);color:var(--muted);font-family:inherit;font-weight:600;
  font-size:.82rem;padding:6px 14px;border-radius:999px;cursor:pointer}
.sc-tog.is-on{background:rgba(109,94,252,.12);color:var(--purple);border-color:var(--purple)}

/* Add currency card (dashed) */
.add-card{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;cursor:pointer;
  background:transparent;border:2px dashed #cfcaf0;border-radius:var(--radius);padding:16px;color:var(--ink-2);font-family:inherit}
[data-theme="dark"] .add-card{border-color:#34406b}
.add-card:hover{border-color:var(--purple);color:var(--purple)}
.add-card__plus{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--card-2);color:var(--purple)}
.add-card__txt{display:flex;flex-direction:column;text-align:start}
.add-card__txt b{font-weight:700}.add-card__txt i{font-style:normal;color:var(--muted);font-size:.8rem}

/* Ad box */
.ad-box{display:flex;align-items:center;gap:12px;margin-top:14px;border-radius:var(--radius);padding:16px;
  background:linear-gradient(120deg,#6d5efc,#8b6ff5 55%,#a07bf0);color:#fff;position:relative;box-shadow:0 12px 28px rgba(109,94,252,.3)}
.ad-box__badge{position:absolute;top:10px;inset-inline-end:12px;font-size:.65rem;background:rgba(255,255,255,.25);padding:1px 7px;border-radius:6px}
.ad-box__icon{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.ad-box__txt{display:flex;flex-direction:column}.ad-box__txt b{font-weight:700}.ad-box__txt i{font-style:normal;opacity:.85;font-size:.82rem}
.ad-box .btn{margin-inline-start:auto}

.ad-box__badge--static{position:static;display:inline-block;margin-bottom:8px}

/* Ad landing page */
.ad-landing{padding-top:18px;max-width:680px;margin:0 auto}
.ad-landing__card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.ad-landing__img{width:100%;max-height:340px;object-fit:cover;display:block}
.ad-landing__body{padding:20px}
.ad-landing__body h1{margin:.2rem 0 .4rem;font-size:1.5rem}
.ad-landing__body .lead{color:var(--ink-2);margin:0 0 12px}
.ad-landing__text{color:var(--ink-2);line-height:1.9;margin-bottom:18px}

/* Download banner (desktop) */
.dl-banner{margin-top:20px;border-radius:22px;padding:26px;color:#fff;display:flex;align-items:center;gap:24px;flex-wrap:wrap;
  background:linear-gradient(110deg,#6d5efc,#5b6ff5 45%,#3b82f6);box-shadow:0 16px 36px rgba(79,70,229,.3)}
.dl-banner__text b{font-size:1.3rem;display:block}.dl-banner__text span{opacity:.9;display:block;margin-top:4px}
.dl-banner__text .chip{margin-top:10px;background:rgba(255,255,255,.2);color:#fff;border:none}
.dl-banner__phones{display:grid;place-items:center;flex:1;min-width:80px}
.dl-banner__stores{display:flex;gap:14px;margin-inline-start:auto;flex-wrap:wrap}
.store{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.14);border-radius:14px;padding:10px 14px}
.store .ic{width:26px;height:26px;fill:#fff;stroke:none}
.store small{opacity:.85;font-size:.7rem}.store b{font-size:.85rem}
.qr{width:52px;height:52px;border-radius:8px;background:#fff;padding:3px;object-fit:contain}

/* ===================================================================
   Detail / Price history page
   =================================================================== */
.detail{padding-top:18px}
.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--ink-2);font-weight:700;margin-bottom:14px}
.detail__card,.about-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);padding:20px;margin-bottom:16px}
.detail__head{display:flex;align-items:center;gap:14px}
.detail__head h1{margin:0;font-size:1.3rem}
.detail__price{display:flex;align-items:baseline;gap:10px;margin:16px 0}
.big-price{font-size:2.4rem;font-weight:800;font-variant-numeric:tabular-nums}
.unit{color:var(--muted)}
.range-tabs{display:flex;gap:6px;background:var(--card-2);border-radius:12px;padding:4px;margin:6px 0 16px;width:max-content}
.range-tabs button{border:none;background:transparent;color:var(--muted);font-family:inherit;font-weight:700;
  padding:7px 16px;border-radius:9px;cursor:pointer}
.range-tabs button.is-active{background:var(--card);color:var(--purple);box-shadow:var(--shadow-sm)}
.chart-wrap{position:relative;min-height:220px}
#historyChart{width:100%;height:220px;display:block}
.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);text-align:center;padding:20px}
.chart-wrap{position:relative}
.chart-tip{position:absolute;pointer-events:none;background:#1f2430;color:#fff;border-radius:10px;padding:6px 10px;
  font-size:.78rem;display:flex;flex-direction:column;line-height:1.3;box-shadow:0 6px 18px rgba(0,0,0,.28);z-index:5;white-space:nowrap}
.chart-tip b{font-size:.92rem}.chart-tip span{opacity:.8;font-size:.7rem}
.date-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.date-range input[type=date]{font-family:inherit;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
.date-range .cv-label{margin:0}
.detail__stats{display:flex;justify-content:space-between;gap:10px;margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.sellbuy{width:100%;border-collapse:collapse;margin-top:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sellbuy th,.sellbuy td{padding:11px 14px;text-align:center;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.sellbuy thead th{background:var(--card-2);color:var(--muted);font-size:.85rem;font-weight:700}
.sellbuy th:first-child,.sellbuy td:first-child{text-align:start;color:var(--muted);font-weight:600}
.sellbuy tbody td{font-weight:700}
.sellbuy tbody tr:last-child td{border-bottom:none}
.detail__stats small{color:var(--muted);display:block;font-size:.78rem}.detail__stats b{font-size:1.05rem}
.about-card h2{margin:0 0 8px;font-size:1.05rem}
.section-title{margin:8px 4px 12px;font-size:1.05rem;display:flex;align-items:center;justify-content:space-between;gap:10px}
.see-all{font-size:.85rem;color:var(--purple);font-weight:700;white-space:nowrap}
/* Related assets: equal-size cards, horizontal scroll */
.prices__grid--related{display:flex !important;grid-template-columns:none !important;flex-wrap:nowrap;
  gap:12px;width:100%;max-width:100%;overflow-x:auto;padding-bottom:8px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.prices__grid--related::-webkit-scrollbar{height:6px}
.prices__grid--related::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.prices__grid--related .pcard{flex:0 0 168px;width:168px;scroll-snap-align:start;flex-direction:column;align-items:stretch;text-align:start}
.prices__grid--related .pcard__id{order:1}
.prices__grid--related .pcard__val{order:2;margin:10px 0 0;align-items:flex-start;text-align:start}
.prices__grid--related .pcard__spark{order:3;width:100%;max-width:none;height:34px;margin-top:10px}
.prices__grid--related .pcard__share{position:absolute;top:10px;inset-inline-end:10px;width:34px;height:34px;margin:0}

/* ===================================================================
   Download page
   =================================================================== */
.dl-page{display:grid;grid-template-columns:1fr;gap:24px;padding:24px 16px 40px}
.dl-page__text h1{font-size:2rem;margin:0 0 6px;display:flex;align-items:center;gap:8px}
.check-list{list-style:none;padding:0;margin:18px 0}
.check-list li{position:relative;padding-inline-start:28px;margin:10px 0;color:var(--ink-2)}
.check-list li::before{content:"✓";position:absolute;inset-inline-start:0;width:20px;height:20px;border-radius:50%;
  background:var(--green-bg);color:var(--green);display:grid;place-items:center;font-size:.75rem;font-weight:800}
.dl-page__stores{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.store-btn{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:#fff;border-radius:14px;padding:12px 18px;font-weight:600}
.store-btn .ic{fill:#fff;stroke:none;width:22px;height:22px}
.store-btn--soon{background:var(--card-2);color:var(--muted);border:1px solid var(--line)}
.store-btn--soon .ic{fill:var(--muted)}
.dl-page__art{position:relative;display:grid;place-items:center;min-height:300px}
/* Live mobile preview (iframe inside a phone frame) */
.phone-live{width:300px;height:620px;border:10px solid #161a2c;border-radius:40px;background:#161a2c;
  overflow:hidden;position:relative;box-shadow:0 30px 70px rgba(91,78,240,.28);margin:0 auto}
.phone-live__notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:118px;height:22px;background:#161a2c;border-radius:0 0 14px 14px;z-index:2}
.phone-live__frame{width:392px;height:840px;border:0;transform:scale(.714);transform-origin:top left;background:var(--bg);display:block}

/* ===================================================================
   Smart banner / cookie bar / modal
   =================================================================== */
.page-head{padding-top:18px}.page-title{font-size:1.4rem;margin:0 0 12px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.empty-state{text-align:center;padding:60px 16px}.empty-state h1{font-size:3rem;margin:10px 0 0}

.smart-banner{position:fixed;left:10px;right:10px;bottom:74px;z-index:60;display:flex;align-items:center;gap:10px;
  background:var(--card);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.smart-banner__txt{display:flex;flex-direction:column;line-height:1.2}.smart-banner__txt span{font-size:.78rem;color:var(--muted)}
.smart-banner .btn{margin-inline-start:auto}
.smart-banner__close{background:none;border:none;font-size:1.3rem;color:var(--muted);cursor:pointer;line-height:1}

.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--card);border-top:1px solid var(--line);
  box-shadow:0 -8px 24px rgba(31,27,80,.08);padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cookie-bar p{margin:0;flex:1;min-width:220px;color:var(--ink-2);font-size:.9rem}
.cookie-bar__actions{display:flex;gap:8px;flex-wrap:wrap}

.modal{position:fixed;inset:0;z-index:90;background:rgba(15,16,32,.5);display:flex;align-items:flex-end;justify-content:center}
.modal__sheet{background:var(--card);width:100%;max-width:520px;max-height:88vh;border-radius:22px 22px 0 0;
  display:flex;flex-direction:column;animation:sheet .22s ease}
@keyframes sheet{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
.modal__head{display:flex;align-items:center;gap:12px;padding:16px}.modal__head h2{margin:0;font-size:1.15rem}
.modal__search{display:flex;align-items:center;gap:8px;margin:0 16px 8px;background:var(--card-2);border:1px solid var(--line);
  border-radius:12px;padding:10px 12px;color:var(--muted)}
.modal__search input{border:none;background:none;outline:none;font-family:inherit;color:var(--ink);width:100%}
.modal__list{overflow:auto;padding:8px 16px 24px;display:flex;flex-direction:column;gap:6px}
.modal__group{color:var(--muted);font-weight:700;font-size:.78rem;margin:12px 4px 2px}
.add-row{display:flex;align-items:center;gap:11px;padding:10px;border-radius:12px}
.add-row:hover{background:var(--card-2)}
.add-row img{width:36px;height:36px;border-radius:50%;background:var(--card-2)}
.add-row .names{display:flex;flex-direction:column;min-width:0}.add-row .names b{font-size:.92rem}.add-row .names i{font-style:normal;color:var(--muted);font-size:.76rem}
.add-row .add-pill{margin-inline-start:auto;background:rgba(109,94,252,.12);color:var(--purple);border:none;
  font-family:inherit;font-weight:700;padding:6px 16px;border-radius:999px;cursor:pointer}
.add-row .add-pill.added{background:var(--green-bg);color:var(--green)}

/* ===================================================================
   Responsive — desktop site vs app-like mobile
   =================================================================== */
@media (min-width:769px){
  .site-header,.site-footer,.hero{display:block}
  .site-header__inner{display:flex}
  .app-header{display:none}
  .bottom-nav{display:none !important}
  .main{min-height:40vh}
  /* desktop: cards become a 6-up grid with stacked layout */
  .prices__grid{grid-template-columns:repeat(6,1fr);gap:14px}
  .prices__grid--list{grid-template-columns:repeat(3,1fr)}
  .pcard{flex-direction:column;align-items:stretch;text-align:start;padding:16px}
  .pcard__id{order:1}
  .pcard__val{order:2;margin:10px 0 0;align-items:flex-start;text-align:start}
  .pcard__spark{order:3;max-width:none;width:100%;margin-top:10px}
  .pcard__chg{align-self:flex-start}
  .pcard__share{position:absolute;top:12px;inset-inline-end:12px;width:38px;height:38px;margin:0}
  .dl-page{grid-template-columns:1fr 1fr;align-items:center}
  .detail{max-width:1120px;margin:0 auto}
  body{padding-bottom:0}
}
@media (max-width:768px){
  .smart-banner,.cookie-bar{} /* visible on mobile */
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--card);
    border-top:1px solid var(--line);justify-content:space-around;padding:8px 0 calc(8px + env(safe-area-inset-bottom))}
  .bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);font-size:.7rem;font-weight:600}
  .bottom-nav a .ic{width:22px;height:22px}
  .bottom-nav a.active{color:var(--purple)}
  .main{padding-bottom:12px;flex:0 0 auto;overflow-x:clip}
  .prices__grid,.prices__grid--list{grid-template-columns:1fr}
  /* keep cards inside the viewport on phones (long crypto prices + spark + share) */
  .pcard{gap:9px;padding:13px 13px}
  .pcard__spark{min-width:0;max-width:84px}
  .pcard__val{min-width:0}
  .pcard__price{font-size:.96rem}
  .pcard__share{width:38px;height:38px}
}
html,body{overflow-x:clip}
@media (min-width:1024px){.hero__title{font-size:3.8rem}}

/* ===== Detail premium top (v21) ===== */
.dtl-top{margin-top:6px}
.dtl-brand{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.dtl-logo{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:20px;background:linear-gradient(135deg,#7C6CFF,#5B7CFF)}
.dtl-brand__name{font-size:20px;font-weight:900;color:#15172B}
.dtl-brand__dot{width:8px;height:8px;border-radius:50%;background:#16A34A}
.dtl-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.dtl-cgroup{display:flex;gap:12px}
.dtl-cbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;border:none;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.07);color:#15172B;padding:0}
.dtl-cbtn .ic{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dtl-cbtn--share{color:#6D5EFC}
.dtl-cbtn.on{color:#F5B301}
.dtl-cbtn.on .ic{fill:#F5B301;stroke:#F5B301}
.dtl-id{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.dtl-id__icon img{width:60px;height:60px;border-radius:50%;object-fit:cover;background:#EFEFF6}
.dtl-id__txt{flex:1;min-width:0}
.dtl-id__txt h1{font-size:26px;font-weight:900;color:#15172B;margin:0;letter-spacing:-.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dtl-id__txt span{color:#9AA0B0;font-size:16px;font-weight:600}
.dtl-live{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:30px;background:rgba(22,163,74,.12);color:#16A34A;font-weight:800;font-size:13px;white-space:nowrap}
.dtl-live i{width:7px;height:7px;border-radius:50%;background:#16A34A;display:inline-block}
.dtl-cp{background:#fff;border-radius:22px;padding:18px;box-shadow:0 8px 24px rgba(11,16,51,.06);margin-bottom:16px}
.dtl-cp__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:6px}
.dtl-cp__label{display:inline-flex;align-items:center;gap:5px;color:#9AA0B0;font-size:14px}
.dtl-cp__label .ic{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.dtl-cp .pcard__chg{background:none;padding:0;border:none;font-weight:800;font-size:13.5px}
.dtl-cp .pcard__chg.up{color:#16A34A}.dtl-cp .pcard__chg.down{color:#EF4444}.dtl-cp .pcard__chg.neutral{color:#9AA3B1}
.dtl-abs{font-style:normal;opacity:.85;margin-inline-start:2px}
.dtl-cp__body{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.dtl-cp__pricewrap{min-width:0}
.dtl-cp__price{font-size:36px;font-weight:900;color:#15172B;letter-spacing:-1px;line-height:1;display:block}
.dtl-cp__unit{color:#9AA0B0;font-size:14px}
.dtl-cp__spark{flex:0 0 auto;width:150px;max-width:46%}
.dtl-cp__spark svg{width:100%;height:auto;display:block}

/* ===== Convert page (v24) ===== */
.cvx,.cvx input,.cvx select,.cvx button{font-family:inherit}
.cvx{max-width:560px;margin:0 auto}
.cvx-head{display:flex;align-items:flex-start;justify-content:space-between;margin:6px 0 14px}
.cvx-title{font-size:30px;font-weight:900;color:#15172B;margin:0;letter-spacing:-1px}
.cvx-sub{color:#9AA0B0;font-size:14px;margin:2px 0 0}
.cvx-livepill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:30px;background:rgba(22,163,74,.12);color:#16A34A;font-weight:800;font-size:13px;white-space:nowrap}
.cvx-livepill i{width:7px;height:7px;border-radius:50%;background:#16A34A;display:inline-block}
.cvx-livepill.sm{padding:5px 10px;font-size:12px}.cvx-livepill.xs{padding:3px 8px;font-size:10.5px}
.cvx-card{background:#fff;border-radius:24px;padding:18px;box-shadow:0 12px 30px rgba(11,16,51,.08)}
.cvx-card .cv-label{display:block;color:#9AA0B0;font-size:13px;font-weight:700;margin:4px 0 6px}
.cvx-field{display:flex;align-items:center;border:1px solid #ECECF3;border-radius:14px;overflow:hidden}
.cvx-pick{display:flex;align-items:center;gap:8px;padding:8px 10px;border-inline-end:1px solid #ECECF3;flex:none}
.cvx-pick img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#EFEFF6}
.cvx-dd{cursor:pointer;user-select:none;border-radius:12px;transition:background .15s}
.cvx-dd:hover{background:#F6F6FC}
.cvx-dd__name{font-weight:800;color:#15172B;font-size:15px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cvx-dd__chev{width:16px;height:16px;fill:none;stroke:#9AA0B0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* luxury currency dropdown */
.cvx-ddpanel{position:fixed;inset:0;background:rgba(10,14,30,.5);display:flex;align-items:flex-end;justify-content:center;z-index:400}
.cvx-ddpanel[hidden]{display:none}
.cvx-ddpanel__box{background:#fff;width:100%;max-width:520px;max-height:82vh;border-radius:24px 24px 0 0;display:flex;flex-direction:column;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(0,0,0,.22);animation:cvxUp .22s ease}
@keyframes cvxUp{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.cvx-ddpanel__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cvx-ddpanel__head b{font-size:17px;font-weight:900;color:#15172B}
.cvx-ddclose{border:none;background:#F4F4FB;width:32px;height:32px;border-radius:50%;cursor:pointer;color:#15172B;font-size:14px}
.cvx-ddpanel__search{display:flex;align-items:center;gap:8px;background:#F4F4FB;border-radius:12px;padding:11px 12px;margin-bottom:10px}
.cvx-ddpanel__search svg{width:18px;height:18px;fill:none;stroke:#9AA0B0;stroke-width:2;stroke-linecap:round;flex:none}
.cvx-ddpanel__search input{border:none;background:transparent;outline:none;width:100%;font-size:15px;color:#15172B;font-family:inherit}
.cvx-ddpanel__list{overflow:auto;display:flex;flex-direction:column;gap:2px}
.cvx-ddrow{display:flex;align-items:center;gap:12px;padding:10px;border:none;background:transparent;border-radius:12px;cursor:pointer;text-align:start;width:100%;font-family:inherit}
.cvx-ddrow:hover{background:#F6F6FC}
.cvx-ddrow.is-sel{background:rgba(109,94,252,.08)}
.cvx-ddrow img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#EFEFF6;flex:none}
.cvx-ddrow__t{flex:1;min-width:0;display:flex;flex-direction:column}
.cvx-ddrow__t b{color:#15172B;font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cvx-ddrow__t i{color:#9AA0B0;font-size:12px;font-style:normal}
.cvx-ddrow__ck{width:20px;height:20px;fill:none;stroke:#6D5EFC;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cvx-ddempty{padding:30px;text-align:center;color:#9AA0B0}
@media(min-width:600px){.cvx-ddpanel{align-items:center;padding:20px}.cvx-ddpanel__box{border-radius:22px}}
.cvx-amt{flex:1;min-width:0;border:none;background:transparent;text-align:end;font-size:22px;font-weight:800;color:#15172B;padding:10px 14px;outline:none}
.cvx-swap{display:block;margin:8px auto;width:46px;height:46px;border-radius:50%;border:none;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.12);cursor:pointer;color:#6D5EFC}
.cvx-swap .ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cvx-receive{background:#F6F6FC;border-radius:18px;padding:14px;margin-top:14px}
.cvx-receive__top{display:flex;align-items:center;justify-content:space-between}
.cvx-receive__main{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:6px}
.cvx-big b{font-size:32px;font-weight:900;color:#15172B;letter-spacing:-1px}
.cvx-big__u{color:#9AA0B0;font-weight:700;font-size:15px}
.cvx-rateline{color:#9AA0B0;font-size:12.5px;margin-top:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cvx-rateline .pcard__chg{background:none;padding:0;font-weight:800;font-size:12px}
.cvx-receive__spark{width:120px;flex:none}.cvx-receive__spark svg{width:100%;height:auto;display:block}
.cvx-divider{height:1px;background:#E8E8F2;margin:10px 0}
.cvx-info{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;color:#9AA0B0;font-size:13px}
.cvx-info span{display:inline-flex;align-items:center;gap:8px}
.cvx-info .ic{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.cvx-info b{color:#15172B;font-weight:700;font-size:13px}
.cvx-btn{width:100%;height:54px;margin-top:14px;border:none;border-radius:16px;cursor:pointer;color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(90deg,#7C6CFF,#4F6BFF)}
.cvx-btn .ic{width:20px;height:20px;fill:#fff;stroke:none}
.cvx-sec{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.cvx-sec h2{font-size:17px;font-weight:900;color:#15172B;margin:0}
.cvx-sec .see-all{color:#6D5EFC;font-weight:700;font-size:13px;text-decoration:none}
.cvx-quick{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px}
.cvx-qcard{flex:0 0 auto;width:200px;display:flex;align-items:center;gap:8px;background:#fff;border:none;border-radius:16px;padding:12px;cursor:pointer;box-shadow:0 6px 14px rgba(11,16,51,.05)}
.cvx-qcard img{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none}
.cvx-qcard__t{flex:1;min-width:0;text-align:start;display:flex;flex-direction:column}
.cvx-qcard__t b{color:#15172B;font-size:13.5px}.cvx-qcard__t i{color:#9AA0B0;font-size:11.5px;font-style:normal}
.cvx-qcard__s{width:56px;flex:none}.cvx-qcard__s svg{width:100%;height:auto}
.cvx-market{display:flex;flex-direction:column;gap:10px}
.cvx-mrow{display:flex;align-items:center;gap:8px;background:#fff;border:none;border-radius:16px;padding:12px 14px;cursor:pointer;box-shadow:0 6px 14px rgba(11,16,51,.05);width:100%;text-align:start}
.cvx-mrow img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none}
.cvx-mrow__p{color:#15172B;font-size:13.5px}
.cvx-mrow__v{margin-inline-start:auto;color:#15172B;font-weight:800;font-size:14px}
.cvx-mrow__c{background:none;padding:0;font-weight:800;font-size:11.5px}
.cvx-mrow__s{width:56px;flex:none}.cvx-mrow__s svg{width:100%;height:auto}

/* ===== Create Story controls (v25) ===== */
.story-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 4px;flex-wrap:wrap}
.story-themes{display:flex;gap:10px}
.st-chip{width:30px;height:30px;border-radius:50%;border:2px solid transparent;background:var(--c);cursor:pointer;padding:0;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .12s}
.st-chip:hover{transform:scale(1.08)}
.st-chip.on{border-color:#fff;box-shadow:0 0 0 2px var(--c),0 2px 6px rgba(0,0,0,.25)}
.st-toggle{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;cursor:pointer;color:inherit}
.st-toggle input{width:16px;height:16px;accent-color:#6D5EFC}

/* ===== Detail desktop 2-column (v26) ===== */
.dt2{max-width:1200px}
.dt2-back{display:inline-flex;align-items:center;gap:10px;color:#15172B;font-weight:700;text-decoration:none;margin:4px 0 16px}
.dt2-back__btn{width:38px;height:38px;border-radius:12px;background:#fff;display:grid;place-items:center;box-shadow:0 3px 10px rgba(0,0,0,.06)}
.dt2-back__btn .ic{width:18px;height:18px;fill:none;stroke:#15172B;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dt2-id{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.dt2-id__icon img{width:56px;height:56px;border-radius:50%;object-fit:cover;background:#EFEFF6}
.dt2-id__txt{flex:1;min-width:0}
.dt2-id__txt h1{font-size:30px;font-weight:900;color:#15172B;margin:0;letter-spacing:-.5px;line-height:1.1}
.dt2-id__txt span{color:#9AA0B0;font-size:15px;font-weight:600}
.dt2-id__actions{display:flex;align-items:center;gap:10px}
.dt2-cp{background:#fff;border-radius:20px;padding:20px 24px;box-shadow:0 8px 24px rgba(11,16,51,.06);margin-bottom:18px}
.dt2-cp__top{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.dt2-cp__top .dt2-id__icon img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#EFEFF6}
.dt2-cp__top .dt2-id__txt{flex:1;min-width:0}
.dt2-cp__top .dt2-id__txt h1{font-size:24px;font-weight:900;color:#15172B;margin:0;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt2-cp__top .dt2-id__txt span{color:#9AA0B0;font-size:14px;font-weight:600}
.dt2-cp__top .dt2-id__actions{display:flex;align-items:center;gap:10px}
.dt2-cp__body{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.dt2-cp__label{display:inline-flex;align-items:center;gap:6px;color:#9AA0B0;font-size:14px}
.dt2-cp__label .ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.dt2-cp__pricewrap{margin-top:4px}
.dt2-cp__price{font-size:40px;font-weight:900;color:#15172B;letter-spacing:-1px;line-height:1;display:block}
.dt2-cp__unit{color:#9AA0B0;font-size:14px}
.dt2-cp__right{display:flex;flex-direction:column;align-items:center;gap:10px;flex:0 0 auto;width:260px;max-width:46%}
.dt2-cp .dt2-chg{background:none;padding:0;border:none;font-weight:800;font-size:15px}
.dt2-cp__spark{width:260px;max-width:100%}
.dt2-cp__spark svg{width:100%;height:auto;display:block}
.dt2-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.dt2-main{min-width:0}
.dt2-side{display:flex;flex-direction:column;gap:16px}
.dt2-card{background:#fff;border-radius:18px;padding:16px 18px;box-shadow:0 8px 24px rgba(11,16,51,.05)}
.dt2-chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sellbuy2 table{width:100%;border-collapse:collapse}
.sellbuy2 th,.sellbuy2 td{padding:11px 8px;text-align:end;font-size:14px}
.sellbuy2 th:first-child,.sellbuy2 td:first-child{text-align:start;color:#9AA0B0;font-weight:600}
.sellbuy2 thead th{color:#9AA0B0;font-weight:700;border-bottom:1px solid #ECECF3}
.sellbuy2 tbody td{font-weight:800;color:#15172B}
.sellbuy2 tbody tr+tr td{border-top:1px solid #F2F2F8}
.sellbuy2 .muted{margin-top:10px;font-size:11.5px;line-height:1.6}
.about-card--actions{display:flex;gap:12px;margin-top:16px}
.about-card--actions .btn{flex:1}
@media(max-width:960px){
  .dt2-grid{grid-template-columns:1fr}
  .dt2-cp__body{align-items:flex-end;gap:10px}        /* row: price left, small chart right */
  .dt2-cp__right{align-items:flex-end;width:130px;max-width:44%}
  .dt2-cp__spark{width:100%;max-width:100%}
  .dt2-cp__spark svg{width:100%;height:auto}
  .dt2-cp .dt2-chg{font-size:12px}
  .dt2-cp__price{font-size:28px}
  .dt2-cp__top .dt2-id__txt h1{font-size:22px}
  .sellbuy2{display:none}                              /* Sell/Buy table hidden on mobile */
}
/* hard guard: the mini sparkline must never overflow its card on any width */
.dt2-cp{overflow:hidden}
.dt2-cp__spark{overflow:hidden;max-width:100%}
.dt2-cp__spark svg{max-width:100%}

/* ===== Home drag-&-drop reorder ===== */
html.reordering{overflow:hidden;overscroll-behavior:none}
html.reordering body{overflow:hidden}
.reordering .pcard{transition:transform .14s ease, box-shadow .14s ease, opacity .14s ease}
.pcard.drag-active{
  transform:scale(1.03);
  box-shadow:0 18px 44px rgba(11,16,51,.22);
  opacity:.97;position:relative;z-index:6;cursor:grabbing;
  background:#fff
}
