/* SelamBit app prototype — dark, Android-first shell */
:root{
  --bg:#07090f; --surface:#10141d; --surface-2:#171c28; --surface-3:#1f2636; --line:rgba(255,255,255,.07);
  --text:#eef1f7; --mute:#8a93a6; --blue:#5566ff; --lime:#c8ff3d; --up:#22c38e; --down:#ff5d6c;
  --sans:"Hanken Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --display:"Bricolage Grotesque","Hanken Grotesk",ui-sans-serif,system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:var(--sans);font-size:15px;line-height:1.45;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;overflow:hidden}
h1,h2,p,ul{margin:0}ul{padding:0;list-style:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
svg{display:block;width:20px;height:20px}
:focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
[hidden]{display:none!important}

/* ───────── Stage (standalone desktop view) ───────── */
.stage{height:100%;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,80px);padding:28px clamp(20px,4vw,64px);
  background:radial-gradient(900px 600px at 78% 10%,rgba(85,102,255,.22),transparent 60%),radial-gradient(700px 500px at 10% 90%,rgba(200,255,61,.08),transparent 60%),var(--bg)}
.stage-info{justify-self:end;max-width:400px;animation:rise .9s var(--ease) both}
.stage-info .brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.02em;margin-bottom:36px}
.stage-info .brand svg{width:34px;height:34px}
.stage-info h1{font-family:var(--display);font-weight:700;font-size:clamp(34px,3.6vw,54px);line-height:1;letter-spacing:-.035em;margin-bottom:16px}
.stage-info h1 span{color:var(--lime)}
.stage-info p{color:var(--mute);font-size:16px}
.stage-info .warn{margin-top:22px;padding:14px 16px;border-radius:14px;border:1px dashed rgba(200,255,61,.35);background:rgba(200,255,61,.05);font-size:13.5px;color:#d9e6b0}
.stage-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.stage-links a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:999px;font-weight:600;font-size:14.5px;border:1.5px solid rgba(255,255,255,.18);transition:transform .3s var(--ease),background .25s,border-color .25s,color .25s}
.stage-links a:hover{transform:translateY(-2px);border-color:#fff}
.stage-links a.primary{background:var(--lime);border-color:var(--lime);color:#0a0d14}
.stage-hint{justify-self:start;max-width:260px;font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;line-height:1.8;color:var(--mute);animation:rise .9s var(--ease) .15s both}
.stage-hint b{display:block;color:var(--text);font-weight:500;margin-bottom:8px;letter-spacing:.1em;text-transform:uppercase}
.stage-hint li::before{content:"→ ";color:var(--lime)}
.device{position:relative;width:390px;height:min(820px,calc(100vh - 56px));padding:11px;border-radius:54px;background:#05060a;border:1.5px solid rgba(255,255,255,.14);box-shadow:0 60px 120px -30px rgba(0,0,0,.9),0 0 0 1px #000 inset;animation:rise 1s var(--ease) .05s both}
.device::before{content:"";position:absolute;top:22px;left:50%;width:84px;height:22px;border-radius:20px;background:#05060a;transform:translateX(-50%);z-index:30}
.device-screen{height:100%;border-radius:44px;overflow:hidden;position:relative;background:var(--bg)}
@keyframes rise{from{opacity:0;transform:translateY(24px)}}

/* ───────── App shell ───────── */
.app{position:relative;height:100%;display:flex;flex-direction:column;background:var(--bg)}
.app-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:44px 16px 10px;flex-shrink:0}
.app-bar .brand{display:flex;align-items:center;gap:9px;font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:-.02em}
.app-bar .brand svg{width:28px;height:28px}
.status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:6px 11px;border-radius:999px;background:var(--surface-2);font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;color:var(--mute)}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--mute)}
.status[data-s="live"]{color:#b9f3dc}.status[data-s="live"]::before{background:var(--up);box-shadow:0 0 0 0 rgba(34,195,142,.6);animation:pulse 2s infinite}
.status[data-s="offline"]::before{background:#f0b90b}
@keyframes pulse{70%{box-shadow:0 0 0 7px rgba(34,195,142,0)}100%{box-shadow:0 0 0 0 rgba(34,195,142,0)}}
.screen{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 14px 18px;scrollbar-width:none;overscroll-behavior:contain}
.screen::-webkit-scrollbar{display:none}
.screen.enter>*{animation:in .5s var(--ease) both}
.screen.enter>*:nth-child(2){animation-delay:.04s}.screen.enter>*:nth-child(3){animation-delay:.08s}.screen.enter>*:nth-child(4){animation-delay:.12s}.screen.enter>*:nth-child(n+5){animation-delay:.16s}
@keyframes in{from{opacity:0;transform:translateY(14px)}}
.screen[data-tab="pair"]{padding-bottom:84px}

.tabbar{flex-shrink:0;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px calc(10px + env(safe-area-inset-bottom));background:rgba(12,15,23,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0 5px;border-radius:14px;font-size:10.5px;font-weight:500;color:var(--mute);transition:color .25s,background .25s,transform .3s var(--ease)}
.tabbar button svg{transition:transform .35s var(--ease)}
.tabbar button[aria-current="page"]{color:#0a0d14;background:var(--lime)}
.tabbar button[aria-current="page"] svg{transform:translateY(-1px) scale(1.06)}
.tabbar button:active{transform:scale(.94)}

/* ───────── Blocks ───────── */
.pad{padding:8px 4px 14px}
.kicker{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin-bottom:4px}
.title{font-family:var(--display);font-weight:700;font-size:min(30px,8.4vw);line-height:1.02;letter-spacing:-.035em}
.title span{color:var(--lime)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:16px;margin-bottom:12px}
.card.list{padding:6px 10px}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.card-h h2{font-size:14.5px;font-weight:600;letter-spacing:-.01em}
.badge{font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:var(--surface-3);color:var(--mute)}
.badge[data-s="live"]{background:rgba(34,195,142,.14);color:var(--up)}
.badge[data-s="offline"]{background:rgba(240,185,11,.14);color:#f0b90b}
.link{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:600;color:var(--lime)}
.link svg{width:15px;height:15px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stats div{padding:12px;border-radius:14px;background:var(--surface-2)}
.stats small{display:block;font-size:11.5px;color:var(--mute);margin-bottom:3px}
.stats b{font-family:var(--mono);font-weight:500;font-size:15px;letter-spacing:-.02em}
.note{margin:4px 2px 12px;padding:12px 14px;border-radius:14px;font-size:12px;line-height:1.5;color:var(--mute);background:var(--surface);border:1px solid var(--line)}
.note.warn{border:1px dashed rgba(200,255,61,.35);background:rgba(200,255,61,.05);color:#d9e6b0}
.muted{font-size:13px;color:var(--mute);padding:6px 2px}

/* Spotlight */
.spot{position:relative;overflow:hidden;border-radius:26px;padding:18px 18px 0;margin-bottom:12px;background:linear-gradient(150deg,#3546ff,#1b26a8 70%);cursor:pointer;transition:transform .35s var(--ease)}
.spot:active{transform:scale(.985)}
.spot-top{display:flex;align-items:center;gap:10px}
.spot-top span b{display:block;font-size:14.5px;line-height:1.2}.spot-top small{font-family:var(--mono);font-size:10.5px;color:rgba(255,255,255,.65)}
.spot-top .chip{margin-left:auto;background:rgba(0,0,0,.28)!important}
.spot-price{font-family:var(--display);font-weight:700;font-size:min(38px,11vw);letter-spacing:-.04em;margin:10px 0 2px;font-variant-numeric:tabular-nums}
.spot-spark{display:block;width:calc(100% + 36px);height:64px;margin:0 -18px;opacity:.95}

/* Rows */
.coin{flex-shrink:0;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-family:var(--mono);font-size:9.5px;font-weight:500;letter-spacing:-.02em;color:#0a0d14;background:var(--c)}
.row{display:flex;align-items:center;gap:11px;padding:11px 4px;border-top:1px solid var(--line);cursor:pointer;border-radius:12px;transition:background .2s}
.row:first-child,.card-h+.row{border-top:0}
.row:hover{background:rgba(255,255,255,.03)}
.r-main{min-width:0;flex:1}
.r-main b{display:block;font-size:14.5px;font-weight:600;line-height:1.25}.r-main b i{font-style:normal;font-weight:400;color:var(--mute)}
.r-main small{font-family:var(--mono);font-size:10.5px;color:var(--mute)}
.spark{width:58px;height:26px;flex-shrink:0}
.r-right{text-align:right;flex-shrink:0}
.r-right b{display:block;font-family:var(--mono);font-weight:500;font-size:13.5px;letter-spacing:-.02em;border-radius:6px;font-variant-numeric:tabular-nums}
.chip{display:inline-block;font-style:normal;font-family:var(--mono);font-size:10.5px;padding:2px 7px;border-radius:7px;margin-top:3px}
.chip.up{background:rgba(34,195,142,.14);color:var(--up)}.chip.down{background:rgba(255,93,108,.14);color:var(--down)}
.spot .chip{color:#fff!important}
.flash-up{animation:fu .7s ease}.flash-down{animation:fd .7s ease}
@keyframes fu{0%{background:rgba(34,195,142,.35);color:#fff}}@keyframes fd{0%{background:rgba(255,93,108,.35);color:#fff}}
.star{flex-shrink:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#4a5263;transition:color .25s,background .25s}
.star svg{width:18px;height:18px}
.star:hover{background:var(--surface-2)}
.star.on{color:var(--lime)}.star.on svg{fill:currentColor}
.star.pop svg{animation:pop .45s var(--ease)}
@keyframes pop{40%{transform:scale(1.5) rotate(18deg)}}

/* Markets */
.sticky{position:sticky;top:-4px;z-index:5;padding:4px 0 10px;background:linear-gradient(var(--bg) 85%,transparent)}
.search{display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--mute);transition:border-color .25s}
.search:focus-within{border-color:var(--blue)}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;color:var(--text);padding:13px 0}
.search input::placeholder{color:#5c6577}
.chips,.tfs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:10px}
.chips::-webkit-scrollbar,.tfs::-webkit-scrollbar{display:none}
.chips button,.tfs button{flex-shrink:0;padding:7px 13px;border-radius:999px;font-size:12.5px;font-weight:600;color:var(--mute);background:var(--surface);border:1px solid var(--line);transition:background .25s,color .25s,border-color .25s}
.chips button[aria-selected="true"],.tfs button[aria-selected="true"]{background:var(--text);color:#0a0d14;border-color:var(--text)}
.tfs{margin:0 0 12px}.tfs button{font-family:var(--mono);font-size:11px;padding:6px 10px;flex:1}
.empty{text-align:center;padding:34px 16px;color:var(--mute);font-size:13.5px}
.empty svg{width:34px;height:34px;margin:0 auto 12px;color:#4a5263}
.empty b{display:block;color:var(--text);font-size:15.5px;margin-bottom:4px}
.btn{display:inline-block;margin-top:16px;padding:11px 20px;border-radius:999px;background:var(--lime);color:#0a0d14;font-weight:700;font-size:13.5px}

/* Pair */
.pair-head{display:flex;justify-content:space-between;align-items:center;padding:6px 2px 0}
.pair-head>div{display:flex;align-items:center;gap:11px}
.sym{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.03em;line-height:1.1}.sym i{font-style:normal;color:var(--mute);font-weight:500}
.switch select{appearance:none;border:0;outline:0;background:none;font-family:var(--mono);font-size:11px;color:var(--lime);padding:0 14px 0 0;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23c8ff3d' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center;background-size:9px}
.switch select option{color:#0a0d14}
.pair-price{display:flex;align-items:baseline;gap:10px;padding:8px 2px 14px}
.pair-price b{font-family:var(--display);font-weight:700;font-size:min(36px,10.5vw);letter-spacing:-.04em;border-radius:8px;font-variant-numeric:tabular-nums}
.pair-price .chip{font-size:12px;padding:3px 9px}
.chart-card{padding:16px 10px 10px}.chart-card .card-h,.chart-card .tfs{margin-inline:6px}
.chart{display:block;width:100%;height:230px;touch-action:pan-y;cursor:crosshair}
.b-head,.b-row,.t-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;font-family:var(--mono);font-size:11.5px;padding:5px 6px;position:relative}
.b-head{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);padding-bottom:8px}
.b-head span:nth-child(n+2),.b-row span:nth-child(n+2),.t-row span:nth-child(n+2){text-align:right}
.b-row::before{content:"";position:absolute;inset:1px 0 1px auto;width:var(--w);border-radius:5px;opacity:.13;transition:width .5s var(--ease)}
.b-row span,.t-row span{position:relative}
.ask span:first-child{color:var(--down)}.bid span:first-child{color:var(--up)}
.ask::before{background:var(--down)}.bid::before{background:var(--up)}
.spread{margin:5px 0;padding:6px;border-radius:9px;background:var(--surface-2);text-align:center;font-family:var(--mono);font-size:10.5px;color:var(--mute)}
.cta-bar{position:absolute;left:0;right:0;bottom:64px;z-index:6;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px;background:linear-gradient(transparent,var(--bg) 40%)}
.embed .cta-bar,.app .cta-bar{bottom:calc(62px + env(safe-area-inset-bottom))}
.cta-bar button{padding:14px;border-radius:16px;font-weight:700;font-size:15px;transition:transform .25s var(--ease),filter .25s}
.cta-bar button:active{transform:scale(.97)}
.buy{background:var(--up);color:#04130d}.sell{background:var(--down);color:#1c0508}

/* Profile */
.guest{border-radius:26px;padding:18px;margin-bottom:12px;background:linear-gradient(150deg,#1b2233,#10141d);border:1px solid var(--line)}
.guest-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.guest-top span b{display:block;font-size:16px}.guest-top small{font-family:var(--mono);font-size:10.5px;color:var(--mute)}
.guest-top .tag{margin-left:auto}
.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:#0a0d14;font-family:var(--display);font-weight:700;font-size:20px}
.guest p{font-size:13.5px;color:var(--mute)}
.tags{display:flex;gap:6px;margin-top:12px}
.tag{font-style:normal;font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.14);color:var(--mute)}
.menu{display:flex;align-items:center;gap:10px;padding:13px 4px;border-top:1px solid var(--line);cursor:pointer;border-radius:12px;transition:background .2s}
.menu:first-child{border-top:0}.menu:hover{background:rgba(255,255,255,.03)}
.menu span{flex:1;min-width:0}.menu b{display:block;font-size:14px;font-weight:600}.menu small{font-size:11.5px;color:var(--mute)}
.menu em{font-style:normal;font-family:var(--mono);font-size:10px;color:var(--mute);text-align:right;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu svg{width:15px;height:15px;color:#4a5263;flex-shrink:0}
.kv li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.kv li:first-child{border-top:0}.kv span{color:var(--mute)}.kv b{font-family:var(--mono);font-weight:500;font-size:12px;text-align:right}
.links{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.links a{padding:10px;border-radius:12px;background:var(--surface-2);text-align:center;font-size:13px;font-weight:600;transition:background .25s}
.links a:hover{background:var(--surface-3)}

/* Bottom sheet */
.sheet{position:absolute;inset:0;z-index:40;display:flex;align-items:flex-end;background:rgba(3,5,9,0);transition:background .3s}
.sheet.open{background:rgba(3,5,9,.66)}
.sheet-card{width:100%;padding:12px 20px calc(22px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:var(--surface-2);border-top:1px solid rgba(255,255,255,.1);transform:translateY(100%);transition:transform .38s var(--ease)}
.sheet.open .sheet-card{transform:none}
.sheet-card::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:rgba(255,255,255,.18);margin:0 auto 18px}
.sheet-card h2{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.03em;margin-bottom:8px}
.sheet-card p{font-size:14px;color:var(--mute);margin-bottom:20px}
.sheet-card button{width:100%;padding:14px;border-radius:16px;background:var(--lime);color:#0a0d14;font-weight:700}

/* ───────── Embedded in the landing page, or on a phone: the app fills the viewport ───────── */
.embed .stage,.embed .device,.embed .device-screen{display:contents}
.embed .stage-info,.embed .stage-hint{display:none}
.embed body,.embed .app{height:100vh;height:100dvh}
.embed .app-bar{padding-top:40px}
@media(max-width:1080px){.stage{grid-template-columns:1fr auto}.stage-hint{display:none}.stage-info{justify-self:center}}
@media(max-width:820px){
  .stage,.device,.device-screen{display:contents}
  .stage-info{display:none}
  .app{height:100vh;height:100dvh}
  .app-bar{padding-top:calc(14px + env(safe-area-inset-top))}
  .device::before{display:none}
}
/* Narrow screens (small phones and the embedded previews) */
@media(max-width:340px){
  .screen{padding-inline:10px}.card{padding:13px;border-radius:18px}.card.list{padding:4px 8px}
  .row{gap:8px;padding:10px 2px}.coin{width:30px;height:30px;font-size:8px}
  .r-main b{font-size:13px;white-space:nowrap}.r-main small{font-size:9.5px;white-space:nowrap}
  .r-right b{font-size:12px}.chip{font-size:9.5px;padding:2px 5px}
  .star{width:26px;height:26px}.star svg{width:15px;height:15px}.spark{width:40px}
  .stats{gap:7px}.stats div{padding:10px}.stats b{font-size:13.5px}.stats small{font-size:10.5px}
  .b-head,.b-row,.t-row{font-size:10.5px;padding-inline:3px}.chart{height:200px}
  .tabbar button{font-size:9.5px}.menu em{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
