:root {
  --bg: #07101f;
  --panel: #0d1a2f;
  --panel2: #12223a;
  --line: #243754;
  --text: #edf4ff;
  --muted: #94a6bf;
  --brand: #d4af37;
  --brand2: #f0c866;
  --brand-glow: rgba(212, 175, 55, .16);
  --info: #4f8cff;
  --good: #31c48d;
  --warn: #f5b84b;
  --bad: #f36b7f;
  --onyx: #050a14;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);

  --field-bg: #081426;
  --surface-blur: rgba(7, 16, 31, .92);
  --card-grad-1: rgba(18, 34, 58, .96);
  --card-grad-2: rgba(11, 25, 46, .96);
  --card-hover-border: #3a4f74;
  --btn2-bg: #172942;
  --btn2-border: #2c4264;
  --btn2-text: #dbe8ff;
  --btn-success-bg: #163d34;
  --btn-success-border: #2d745f;
  --btn-success-text: #86f1cb;
  --btn-danger-bg: #44232a;
  --btn-danger-border: #793944;
  --btn-danger-text: #ffbdc6;
  --eyebrow: #e3c878;
  --notice-bg: rgba(49, 80, 121, .22);
  --notice-border: #315079;
  --notice-text: #c9dcff;
  --table-header-bg: #0b172b;
  --badge-good-bg: #153b32; --badge-good-text: #83ebc5;
  --badge-warn-bg: #4b371b; --badge-warn-text: #ffd78f;
  --badge-bad-bg: #4a222b; --badge-bad-text: #ffb4bf;
  --badge-info-bg: #1a3155; --badge-info-text: #a9c8ff;
  --code-bg: #071426;
  --code-border: #36547e;
  --pill-bg: #0b1930;
  --toast-bg: #10223b;
  --icon-btn-bg: #101f36;
  --chip-dark-bg: #0f1e34;
  --scrim: rgba(2, 8, 18, .76);
  --pos-color: #72e6b9;
  --neg-color: #ff9dad;
  --live-badge-bg: rgba(49, 196, 141, .14);
  --live-badge-text: #7be6c1;
  --auth-hero-grad: linear-gradient(145deg, rgba(212, 175, 55, .16), rgba(124, 92, 255, .06));
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel2: #eef1f8;
  --line: #dde4f0;
  --text: #131b2c;
  --muted: #5b6b85;
  --brand: #c89a1f;
  --brand2: #dcae3c;
  --brand-glow: rgba(200, 154, 31, .14);
  --info: #2f6fe0;
  --good: #1a9c66;
  --warn: #b9790a;
  --bad: #d8434f;
  --onyx: #eef1f7;
  --shadow: 0 18px 40px rgba(16, 24, 40, .10);

  --field-bg: #f6f8fc;
  --surface-blur: rgba(255, 255, 255, .86);
  --card-grad-1: #ffffff;
  --card-grad-2: #f7f9fd;
  --card-hover-border: #c3cee3;
  --btn2-bg: #eef2fa;
  --btn2-border: #d3dcee;
  --btn2-text: #1c2a44;
  --btn-success-bg: #e3f7ec;
  --btn-success-border: #9fdcbb;
  --btn-success-text: #147a4c;
  --btn-danger-bg: #fdecee;
  --btn-danger-border: #f3b8bf;
  --btn-danger-text: #a3303b;
  --eyebrow: #9c6f0a;
  --notice-bg: #eaf1ff;
  --notice-border: #b9cdf0;
  --notice-text: #274270;
  --table-header-bg: #f1f4fa;
  --badge-good-bg: #e3f7ec; --badge-good-text: #147a4c;
  --badge-warn-bg: #fdf1de; --badge-warn-text: #93630b;
  --badge-bad-bg: #fdecee; --badge-bad-text: #a3303b;
  --badge-info-bg: #eaf1ff; --badge-info-text: #2b57ad;
  --code-bg: #f4f6fb;
  --code-border: #c7d2e8;
  --pill-bg: #eef1f8;
  --toast-bg: #ffffff;
  --icon-btn-bg: #eef1f8;
  --chip-dark-bg: #eef1f8;
  --scrim: rgba(16, 24, 40, .38);
  --pos-color: #1a9c66;
  --neg-color: #d8434f;
  --live-badge-bg: #e3f7ec;
  --live-badge-text: #147a4c;
  --auth-hero-grad: linear-gradient(145deg, rgba(200, 154, 31, .10), rgba(124, 92, 255, .05));
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, rgba(212, 175, 55, .10) 0, transparent 34%), radial-gradient(circle at bottom left, rgba(79, 140, 255, .06) 0, transparent 40%), var(--bg); transition: background-color .2s ease, color .2s ease; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-hero { padding: 72px; display: flex; flex-direction: column; justify-content: space-between; background: var(--auth-hero-grad); }
.auth-card-wrap { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 800; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 10px 24px rgba(212, 175, 55, .32); color: #1a1406; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--eyebrow); font-weight: 700; }
.hero-title { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; max-width: 760px; margin: 24px 0 18px; }
.muted { color: var(--muted); }
.notice { border: 1px solid var(--notice-border); background: var(--notice-bg); padding: 14px 16px; border-radius: 14px; color: var(--notice-text); }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 650; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--field-bg); color: var(--text); border-radius: 12px; padding: 12px 14px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #1a1406; box-shadow: 0 8px 20px rgba(212, 175, 55, .22); }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-text); border: 1px solid var(--btn2-border); }
.btn-success { background: var(--btn-success-bg); color: var(--btn-success-text); border: 1px solid var(--btn-success-border); }
.btn-danger { background: var(--btn-danger-bg); color: var(--btn-danger-text); border: 1px solid var(--btn-danger-border); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.full { width: 100%; }
.error { color: var(--bad); font-size: 14px; }
.success { color: var(--good); font-size: 14px; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.main { min-width: 0; }
.topbar { height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; background: var(--surface-blur); backdrop-filter: blur(16px); z-index: 10; }
.content { padding: 30px; max-width: 1500px; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; }
.page.active:not(.wallet-detail-page) { animation: page-arrive 180ms cubic-bezier(.2,.7,.25,1) both; }
@keyframes page-arrive { from { opacity: .78; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 2px 0 8px; font-size: 30px; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .10); transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.card:hover { border-color: var(--card-hover-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .12), 0 0 0 1px rgba(212, 175, 55, .10); }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { font-size: 30px; font-weight: 850; margin-top: 9px; }
.metric-sub { font-size: 12px; color: var(--muted); margin-top: 7px; }
.card h2, .card h3 { margin-top: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--panel); }
.table th, .table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--table-header-bg); }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 750; }
.badge-good { background: var(--badge-good-bg); color: var(--badge-good-text); }
.badge-warn { background: var(--badge-warn-bg); color: var(--badge-warn-text); }
.badge-bad { background: var(--badge-bad-bg); color: var(--badge-bad-text); }
.badge-info { background: var(--badge-info-bg); color: var(--badge-info-text); }
.tier-badge {
  --tier-color: #8b8b8b;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--tier-color) 16%, transparent);
  color: var(--tier-color);
  border: 1px solid color-mix(in srgb, var(--tier-color) 45%, transparent);
}
.tier-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tier-color); box-shadow: 0 0 6px var(--tier-color); }
.tier-upgrade-card { --tier-color: #8b8b8b; border-color: color-mix(in srgb, var(--tier-color) 35%, var(--line)); }
.tier-card-title { margin: 0; }
.tier-upgrade-next { padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--tier-color) 8%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--tier-color) 30%, var(--line)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.amount-positive { color: var(--pos-color); }
.amount-negative { color: var(--neg-color); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; background: var(--scrim); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal-backdrop.open { display: flex; }
.modal { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-height: calc(100vh - 40px); overflow-y: auto; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 360px; background: var(--toast-bg); border: 1px solid var(--notice-border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: none; z-index: 200; }
.toast.show { display: block; }
.toast.toast-error { border-color: var(--btn-danger-border); }
.admin-accent .brand-mark { background: linear-gradient(135deg, #b8860b, #8a6206); color: #fdf3d8; }
.status-line { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.code-box { padding: 13px; border-radius: 12px; background: var(--code-bg); border: 1px dashed var(--code-border); word-break: break-all; }
.deposit-qr { display:block; padding:8px; border-radius:14px; border:1px solid var(--line); background:#fff; }
.kpi-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi-pill { background: var(--pill-bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.list-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; }
.min-vh { min-height: 100vh; }
.link-accent { color: var(--brand2); }
.push-right { margin-left: auto; }

/* Premium landing page — deliberately composed only from the existing navy,
   gold, blue and state-color tokens defined above. */
.premium-landing { overflow-x:hidden; }
.premium-nav { position:sticky; top:0; z-index:50; width:min(1240px,calc(100% - 32px)); margin:16px auto 0; border:1px solid color-mix(in srgb,var(--line) 82%,transparent); border-radius:18px; background:color-mix(in srgb,var(--surface-blur) 90%,transparent); backdrop-filter:blur(18px); }
.premium-links { gap:24px; }.premium-links a,.nav-login { color:var(--muted); font-size:14px; font-weight:700; }.premium-links a:hover,.nav-login:hover{color:var(--brand2)}.landing-menu{display:none;background:transparent;border:0;color:var(--text);font-size:22px}
.premium-hero,.landing-section,.claim-strip,.final-cta,.login-section{width:min(1160px,calc(100% - 40px));margin-inline:auto}.premium-hero{min-height:650px;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:50px;padding:90px 0 60px}.hero-copy h1{font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.055em;margin:18px 0 22px;max-width:720px}.hero-copy h1 em{font-style:normal;color:var(--brand2)}.hero-copy>p{font-size:18px;line-height:1.65;max-width:580px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.hero-actions .btn{padding:14px 20px}.hero-micro{font-size:13px;color:var(--muted);margin-top:18px}.hero-visual{position:relative;min-height:460px;display:grid;place-items:center}.orb{position:absolute;border-radius:50%;filter:blur(8px);pointer-events:none}.orb-one{width:260px;height:260px;background:var(--brand-glow);top:15%;left:8%}.orb-two{width:220px;height:220px;background:color-mix(in srgb,var(--info) 16%,transparent);bottom:5%;right:0}.dashboard-mock{position:relative;z-index:2;width:min(530px,100%);padding:18px;border:1px solid color-mix(in srgb,var(--line) 80%,var(--brand));border-radius:25px;background:linear-gradient(135deg,color-mix(in srgb,var(--panel) 92%,transparent),color-mix(in srgb,var(--panel2) 88%,transparent));box-shadow:var(--shadow);backdrop-filter:blur(16px);transform:rotate(-3deg)}.mock-head{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:0 0 14px}.mock-head b{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#1a1406;border-radius:8px;width:27px;height:27px;display:grid;place-items:center}.mock-head i{margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--line)}.mock-head i+i{margin-left:0}.mock-main{padding:26px 12px 8px}.mock-row{display:flex;justify-content:space-between;align-items:center}.mock-row small,.mock-cards small,.float-card small{display:block;color:var(--muted);font-size:11px}.mock-row strong{display:block;font-size:20px;margin-top:5px}.mock-pill,.network-badge{font-size:11px;color:var(--brand2);border:1px solid color-mix(in srgb,var(--brand) 55%,var(--line));background:var(--brand-glow);padding:6px 10px;border-radius:999px}.mock-chart{height:160px;margin:20px 0;color:var(--brand2);background:linear-gradient(180deg,var(--brand-glow),transparent);border-radius:14px;padding:14px}.mock-chart svg{width:100%;height:100%}.mock-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mock-cards div{padding:14px;background:var(--pill-bg);border:1px solid var(--line);border-radius:13px}.mock-cards b{display:block;margin-top:5px}.float-card{position:absolute;z-index:3;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:12px 15px;display:grid;gap:4px}.fc-one{right:-12px;top:15%;animation:float 5s ease-in-out infinite}.fc-two{left:-18px;bottom:18%;display:flex;align-items:center;gap:8px;animation:float 5s 1s ease-in-out infinite}.fc-one span{font-size:11px;color:var(--muted)}@keyframes float{50%{transform:translateY(-10px)}}
.claim-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:18px;background:var(--panel);margin-bottom:130px}.claim-strip div{padding:24px 28px;border-right:1px solid var(--line)}.claim-strip div:last-child{border:0}.claim-strip strong,.claim-strip span{display:block}.claim-strip span{color:var(--muted);font-size:13px;margin-top:6px}.landing-section{padding:88px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:34px}.section-head h2,.security-copy h2,.final-cta h2{font-size:clamp(32px,4vw,48px);line-height:1.05;letter-spacing:-.04em;margin:10px 0 0}.section-head>p{max-width:380px;color:var(--muted);line-height:1.6}.asset-grid,.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.asset-card,.feature-grid article{display:flex;gap:16px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,var(--card-grad-1),var(--card-grad-2));box-shadow:0 12px 30px rgba(0,0,0,.08);transition:transform .2s,border-color .2s}.asset-card:hover,.feature-grid article:hover{transform:translateY(-5px);border-color:var(--brand)}.asset-card h3,.feature-grid h3{margin:0 0 9px}.asset-card p,.feature-grid p{font-size:14px;color:var(--muted);line-height:1.55;margin:12px 0 0}.asset-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex:none;font-weight:800;font-size:26px}.btc{background:color-mix(in srgb,var(--brand) 23%,var(--panel));color:var(--brand2)}.usdt{background:color-mix(in srgb,var(--good) 22%,var(--panel));color:var(--good)}.steps-section{border-top:1px solid var(--line)}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.steps article{position:relative;padding:8px 20px 8px 0}.steps article:not(:last-child):after{content:'';position:absolute;top:22px;right:0;width:1px;height:calc(100% - 20px);background:var(--line)}.steps span,.security-list b{color:var(--brand2);font-weight:800;font-size:13px}.steps h3{margin:14px 0 9px}.steps p{color:var(--muted);font-size:14px;line-height:1.55}.feature-section{background:linear-gradient(90deg,transparent,var(--brand-glow),transparent);width:100%;padding-inline:max(20px,calc((100% - 1160px)/2))}.feature-grid article{display:block}.feature-grid b{font-size:26px;color:var(--brand2);display:block;margin-bottom:22px}.security-section{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px}.security-copy p{color:var(--muted);line-height:1.7;max-width:480px}.security-list{display:grid;gap:2px}.security-list>div{display:flex;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.security-list strong,.security-list small{display:block}.security-list small{color:var(--muted);line-height:1.5;margin-top:6px}.faq-list{max-width:850px}.faq-list details{border-bottom:1px solid var(--line);padding:20px 0}.faq-list summary{cursor:pointer;list-style:none;font-weight:750;display:flex;justify-content:space-between}.faq-list summary span{color:var(--brand2);font-size:20px}.faq-list p{color:var(--muted);line-height:1.6;max-width:720px}.final-cta{margin-top:70px;margin-bottom:80px;padding:42px;display:flex;align-items:center;justify-content:space-between;gap:30px;border-radius:24px;background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 24%,var(--panel)),var(--panel2));border:1px solid color-mix(in srgb,var(--brand) 45%,var(--line))}.login-section{display:grid;place-items:center;padding:20px 0 100px}.premium-footer{border-top:1px solid var(--line);padding:42px max(20px,calc((100% - 1160px)/2));display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.premium-footer p,.premium-footer small{color:var(--muted);font-size:13px;margin:0}.premium-footer>div:not(.brand){display:flex;gap:18px;justify-content:flex-end;font-size:13px}.premium-footer small{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px}.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}.reveal.shown{opacity:1;transform:none}
@media(max-width:780px){.premium-nav{width:calc(100% - 20px);margin-top:10px;padding:12px 14px}.premium-nav .brand-mark{width:34px;height:34px}.landing-menu{display:block;margin-left:auto}.premium-links{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;padding:16px;border:1px solid var(--line);background:var(--panel);border-radius:14px;flex-direction:column}.premium-links.open{display:flex}.nav-login{display:none}.landing-nav-actions .btn{padding:10px 12px}.premium-hero{grid-template-columns:1fr;padding:70px 0 35px;gap:20px;min-height:unset}.hero-copy h1{font-size:46px}.hero-visual{min-height:360px}.fc-one{right:0}.fc-two{left:0}.claim-strip,.asset-grid,.feature-grid,.steps{grid-template-columns:1fr}.claim-strip{margin-bottom:55px}.claim-strip div{border-right:0;border-bottom:1px solid var(--line)}.section-head,.security-section,.final-cta{display:block}.section-head>p{margin-top:14px}.landing-section{padding:55px 0}.steps article:not(:last-child):after{display:none}.steps article{padding:8px 0;border-bottom:1px solid var(--line)}.final-cta{margin:20px auto 50px}.final-cta .btn{margin-top:22px}.premium-footer{grid-template-columns:1fr}.premium-footer>div:not(.brand){justify-content:flex-start;flex-wrap:wrap}.auth-card{padding:25px}.premium-hero,.landing-section,.claim-strip,.final-cta,.login-section{width:min(100% - 28px,1160px)}}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.fc-one,.fc-two{animation:none}html{scroll-behavior:auto}}

.market-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #0c1220; flex: none; }
.mk-0 { background: linear-gradient(135deg, #d4af37, #f0c866); }
.mk-1 { background: linear-gradient(135deg, #4f8cff, #8fb8ff); }
.mk-2 { background: linear-gradient(135deg, #7c5cff, #bb6cff); }
.mk-3 { background: linear-gradient(135deg, #31c48d, #7bead0); }
.mk-4 { background: linear-gradient(135deg, #f5b84b, #ffd78f); }
.mk-5 { background: linear-gradient(135deg, #f36b7f, #ff9dad); }
.mk-6 { background: linear-gradient(135deg, #36b8c9, #8fe3ee); }
.mk-7 { background: linear-gradient(135deg, #e07a3f, #f5b27f); }

.signal-card-head { display: flex; align-items: center; gap: 12px; }
.signal-market-name { font-size: 19px; font-weight: 800; line-height: 1.15; }
.signal-stats { display: flex; gap: 24px; }
.signal-stats > div { display: grid; gap: 2px; }
.table .market-badge { width: 32px; height: 32px; font-size: 11px; }
.table-market { display: flex; align-items: center; gap: 10px; }

.chat-feed { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 340px); min-height: 240px; overflow-y: auto; padding-right: 6px; }
.chat-msg { background: var(--chip-dark-bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; animation: chatIn .25s ease; }
.chat-msg .chat-name { font-weight: 750; color: var(--brand2); }
.chat-msg .chat-time { color: var(--muted); font-size: 11px; margin-left: 8px; }
.chat-msg p { margin: 4px 0 0; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-compose { display: flex; gap: 10px; margin-top: 14px; }
.chat-compose input { flex: 1; }
.chat-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.chat-status .dot { width: 8px; height: 8px; }
.chat-status .dot.off { background: var(--bad); }

@media (max-width: 1050px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .topbar .muted { display: none; }
}

/* ---- Theme toggle ---- */
.theme-toggle { position: relative; overflow: hidden; display: grid; place-items: center; }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; color: var(--text); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle .icon-sun { opacity: 0; transform: scale(.6) rotate(-40deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: scale(.6) rotate(40deg); }

/* ---- Bottom tab bar (mobile) / left rail (desktop) ---- */
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--surface-blur);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab-btn {
  all: unset;
  cursor: pointer;
  display: grid;
  grid-template-rows: 22px 13px;
  justify-items: center;
  align-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  min-height: 58px;
  padding: 3px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}
.tab-btn svg { display: block; width: 22px; height: 22px; align-self: center; }
.tab-btn > span { line-height: 13px; white-space: nowrap; }
.tab-btn.active { color: var(--brand2); }
.tab-btn-accent svg { color: var(--muted); }
.tab-btn-accent.active svg { color: var(--brand2); }
.content { padding-bottom: 96px; }

.icon-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--icon-btn-bg);
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.topbar-brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; letter-spacing: -.04em; }
.topbar .row { gap: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

@media (min-width: 1050px) {
  .app-layout { grid-template-columns: 92px 1fr; }
  .app-tabbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    padding: 28px 0;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .tab-btn { flex: none; width: 100%; }
  .content { padding-bottom: 30px; }
}

/* ---- Admin sidebar: a separate component from the client app's bottom
   tab bar above. The admin page has no .app-tabbar, so it never picked up
   any sizing from that breakpoint and its nav buttons rendered as
   unstyled native <button> elements crushed into a track meant for a
   92px icon rail. Mobile: fixed off-canvas drawer toggled via .open.
   Desktop: a proper static 260px column. ---- */
.admin-accent .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  z-index: 30;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .2s ease;
}
.admin-accent .sidebar.open { transform: translateX(0); }
.admin-accent .sidebar .brand { padding: 0 6px; }
.admin-accent .mobile-toggle { display: inline-flex; }
#adminNav { display: flex; flex-direction: column; gap: 4px; }
#adminNav button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
#adminNav button:hover { background: var(--btn2-bg); color: var(--text); }
#adminNav button.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #1a1406; }
#adminNav button span { font-size: 15px; opacity: .8; }
.admin-accent .sidebar-foot { margin-top: auto; display: grid; gap: 12px; }

@media (min-width: 1050px) {
  .admin-accent .app-layout { grid-template-columns: 260px 1fr; }
  .admin-accent .sidebar { position: sticky; top: 0; height: 100vh; transform: none; }
  .admin-accent .mobile-toggle { display: none; }
}

/* ---- Home hero: search, segmented toggle, banner, quick row ---- */
.home-hero { display: grid; gap: 4px; }
.search-bar {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
}
.search-bar svg { width: 18px; height: 18px; flex: none; }
.search-bar-placeholder, .search-bar-input { flex: 1; text-align: left; }
.search-bar-input {
  all: unset;
  width: 100%;
  color: var(--text);
  font: inherit;
}
.hot-search-pill {
  all: unset;
  cursor: pointer;
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-glow);
  color: var(--brand2);
  font-size: 12px;
  font-weight: 700;
}
.home-hero-row { align-items: center; }

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  gap: 4px;
}
.segmented-btn {
  all: unset;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.segmented-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #1a1406;
}

.home-quick-row { display: grid; grid-template-columns: minmax(190px,1fr) minmax(190px,1fr) minmax(240px,1.2fr); gap: 14px; }
.deposit-widget, .featured-coin-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  width: 100%;
}
.deposit-widget { display: grid; gap: 10px; justify-items: start; }
.wallet-action-card { min-height: 116px; grid-template-columns: 46px minmax(0,1fr) 20px; align-items: center; gap: 14px; text-align: left; transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.wallet-action-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--brand) 56%,var(--line)); background: color-mix(in srgb,var(--panel) 86%,var(--brand-glow)); }
.wallet-action-card > span:nth-child(2) { display: grid; gap: 5px; }
.wallet-action-card .eyebrow { font-size: 10px; }
.wallet-action-card strong { font-size: 18px; }
.wallet-action-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.wallet-action-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-glow); color: var(--brand2); font-size: 27px; font-weight: 500; }
.wallet-action-icon-withdraw { background: color-mix(in srgb,var(--blue,#4d9bff) 20%,var(--panel)); color: var(--blue,#4d9bff); }
.wallet-action-arrow { color: var(--muted); font-size: 20px; }
.featured-coin-card { display: grid; gap: 8px; }
.featured-coin-card .featured-coin-head { display: flex; align-items: center; gap: 10px; }
.featured-coin-card .featured-coin-price { font-size: 20px; font-weight: 850; }

.banner-carousel { position: relative; overflow: hidden; border-radius: 18px; }
.banner-track { display: flex; transition: transform .35s ease; }
.banner-slide {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  flex: 0 0 100%;
  display: grid;
  gap: 6px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(79, 140, 255, .08));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.banner-dots span.active { background: var(--brand2); }

/* ---- Markets: chips, category tabs, list, sparkline ---- */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  all: unset;
  cursor: pointer;
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.chip.active { border-color: var(--brand); color: var(--brand2); background: var(--brand-glow); }

.markets-panel { border-radius: 18px; overflow: hidden; }
.market-list { background: var(--onyx); border: 1px solid var(--line); border-radius: 18px; max-height: 480px; overflow-y: auto; }
.market-row {
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.market-row:last-child { border-bottom: 0; }
.market-row:hover { background: var(--brand-glow); }
.market-row .market-badge { width: 34px; height: 34px; font-size: 11px; }
.market-row-name { font-weight: 800; }
.market-row-name .muted { font-weight: 500; }
.market-row-price { text-align: right; }
.market-row-price strong { display: block; font-size: 12px; margin-top: 2px; }
.sparkline-svg { width: 64px; height: 28px; overflow: visible; }
.sparkline-svg polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-svg-lg .sparkline-area { fill: currentColor; opacity: .14; }
.sparkline-svg-lg polyline { stroke-width: 2.4; }
.favorite-star {
  all: unset;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 4px;
}
.favorite-star.active { color: var(--brand2); }
.featured-coin-card .sparkline-svg, .modal .sparkline-svg { width: 100%; height: 60px; }
.sparkline-svg-lg { height: 96px !important; }

.chart-timeframes { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-timeframe-btn {
  all: unset;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chart-timeframe-btn.active { border-color: var(--brand); color: var(--brand2); background: var(--brand-glow); }
.chart-hilo { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.hidden { display: none; }
.social-links-row { display: flex; gap: 10px; }
.social-links-row .icon-btn svg { width: 18px; height: 18px; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  background: var(--live-badge-bg);
  color: var(--live-badge-text);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(49, 196, 141, .6);
  animation: liveDotPulse 1.8s ease-out infinite;
}
@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 196, 141, .55); }
  70% { box-shadow: 0 0 0 6px rgba(49, 196, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 196, 141, 0); }
}
.live-badge-paper { background: var(--pill-bg); color: var(--muted); }
.about-content { max-width: 840px; padding-bottom: 48px; }

/* ---- Assets sub-nav pill, More menu, back button ---- */
.tab-subnav {
  display: none;
  gap: 8px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
}
.tab-subnav.visible { display: flex; }
.tab-subnav-btn {
  all: unset;
  cursor: pointer;
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.tab-subnav-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #1a1406;
}

.more-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more-menu-item {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 10px;
  text-align: center;
  background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.more-menu-item svg { width: 24px; height: 24px; color: var(--brand2); }

.subpage-back {
  all: unset;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.subpage-back:hover { color: var(--text); }

.assistant-widget {
  position: fixed;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}
.assistant-panel { width: min(360px, calc(100vw - 40px)); }
.assistant-widget.collapsed .assistant-panel { display: none; }
.assistant-fab {
  all: unset;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #1a1406;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(212, 175, 55, .35);
}
.assistant-fab svg { width: 24px; height: 24px; }
.assistant-widget.collapsed .assistant-fab { display: flex; }
@media (min-width: 1050px) {
  .assistant-widget { bottom: 20px; }
}

.kb-panel { width: min(420px, calc(100vw - 40px)); display: flex; flex-direction: column; }
.kb-transcript { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.kb-msg { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.kb-msg-user { align-self: flex-end; background: var(--brand, #d4af37); color: #1a1406; max-width: 85%; }
.kb-msg-assistant { align-self: flex-start; background: var(--surface-2, rgba(255,255,255,.06)); max-width: 90%; }
.kb-msg-pending { opacity: .6; font-style: italic; }

/* ---- Markets page: promo row ---- */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, .14), rgba(243, 107, 127, .06));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s ease;
}
.promo-card:hover { border-color: var(--card-hover-border); }
.promo-card strong { font-size: 14px; display: block; }
.promo-card p { margin: 3px 0 0; }
.promo-fire { font-size: 22px; flex: none; }
@media (max-width: 780px) {
  .promo-row { grid-template-columns: 1fr; }
}

/* ---- Scrolling live-price ticker tape ---- */
.ticker-tape {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-blur);
  backdrop-filter: blur(16px);
  padding: 9px 0;
  position: sticky;
  top: 78px;
  z-index: 9;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-tape-track { display: flex; width: max-content; animation: tickerScroll 45s linear infinite; }
.ticker-tape:hover .ticker-tape-track { animation-play-state: paused; }
.ticker-tape-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 0 18px; border-right: 1px solid var(--line); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-tape-track { animation: none; overflow-x: auto; } }

/* ---- Profile slide-out panel ---- */
.profile-panel-backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 150; display: none; }
.profile-panel-backdrop.open { display: block; }
.profile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.profile-panel-backdrop.open .profile-panel { transform: translateX(0); }
.profile-panel-user { display: flex; align-items: center; gap: 12px; }
.profile-panel-row { padding: 12px 0; border-top: 1px solid var(--line); }
.profile-panel-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.profile-panel-menu { display: grid; gap: 4px; }
.profile-panel-menu button, .profile-panel-menu a {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.profile-panel-menu button:hover, .profile-panel-menu a:hover { background: var(--pill-bg); color: var(--text); }
.profile-panel-menu svg { width: 19px; height: 19px; flex: none; color: var(--brand2); }

/* ---- News: clickable cards, load more ---- */
.news-card { cursor: pointer; }
.news-card:hover { border-color: var(--card-hover-border); }
.news-load-more { display: block; margin: 4px auto 0; }

@media (max-width: 640px) {
  .home-quick-row { grid-template-columns: 1fr; }
  .more-menu { grid-template-columns: repeat(2, 1fr); }
  .sparkline-svg { width: 46px; }
}

/* ---- Landing/login page: nav, hero with live panels, trust section ---- */
.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface-blur);
  backdrop-filter: blur(16px);
  z-index: 20;
}
/* Brand pinned left; nav links + actions grouped together on the right
   (margin-left: auto on the links) rather than the links sitting alone in
   the middle with the actions stranded far right. */
.landing-nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.landing-nav-links a { color: var(--muted); font-weight: 650; font-size: 14px; }
.landing-nav-links a:hover { color: var(--text); }
.landing-nav-actions { display: flex; align-items: center; gap: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 640px) {
  /* .landing-nav-links is hidden at this width, so its margin-left: auto
     no longer pushes anything — give .landing-nav-actions its own so it
     stays pinned right instead of collapsing back next to the brand. */
  .landing-nav-actions { margin-left: auto; border-left: 0; padding-left: 0; }
}

:root {
  /* Abstract market-chart artwork (candlesticks, an ascending trend line and
     a soft dot grid) used as the landing hero's background image. Inline SVG
     so the page stays fully self-contained — no external asset request. */
  --hero-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='lg' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23d4af37' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%234f8cff' stop-opacity='0.4'/%3E%3C/linearGradient%3E%3Cpattern id='dots' width='34' height='34' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%234f8cff' fill-opacity='0.22'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23dots)'/%3E%3Cg fill='%23d4af37' fill-opacity='0.16'%3E%3Crect x='260' y='560' width='34' height='200' rx='5'/%3E%3Crect x='420' y='480' width='34' height='280' rx='5'/%3E%3Crect x='580' y='420' width='34' height='340' rx='5'/%3E%3Crect x='740' y='340' width='34' height='420' rx='5'/%3E%3Crect x='900' y='260' width='34' height='500' rx='5'/%3E%3Crect x='1060' y='200' width='34' height='560' rx='5'/%3E%3Crect x='1220' y='150' width='34' height='610' rx='5'/%3E%3Crect x='1380' y='90' width='34' height='670' rx='5'/%3E%3C/g%3E%3Cpolyline points='260,700 420,600 580,540 740,440 900,340 1060,280 1220,210 1380,140 1540,80' fill='none' stroke='url(%23lg)' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  padding: 56px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 28px;
  background-image: linear-gradient(120deg, var(--bg) 0%, rgba(7, 16, 31, .58) 48%, rgba(7, 16, 31, .18) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
:root[data-theme="light"] .landing-hero {
  background-image: linear-gradient(120deg, var(--bg) 0%, rgba(244, 246, 251, .82) 48%, rgba(244, 246, 251, .4) 100%), var(--hero-image);
}
.landing-hero-left { display: flex; flex-direction: column; justify-content: center; }
.landing-hero .hero-title { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 16px; max-width: 640px; }

.landing-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip-dark-bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.landing-badge .live-dot { margin: 0; }

.landing-hero-right { display: flex; flex-direction: column; }
.landing-panel .segmented { width: 100%; }
.landing-panel .segmented-btn { flex: 1; text-align: center; }
.landing-panel > .link-accent { display: inline-block; margin-top: 10px; }

.ticker-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ticker-row:last-child { border-bottom: 0; }
.ticker-row .market-badge { width: 28px; height: 28px; font-size: 10px; }
.ticker-row-name { flex: 1; font-weight: 750; font-size: 13px; }
.ticker-row-name .muted { font-weight: 500; }
.ticker-row-price { text-align: right; font-weight: 750; font-size: 13px; }
.ticker-row-price strong { display: block; font-size: 11px; margin-top: 1px; }

.news-row-mini strong { font-size: 13px; display: block; }
.news-row-mini p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.landing-auth-wrap { display: grid; place-items: center; padding: 0 40px 60px; }

.landing-promo-section {
  padding: 50px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 175, 55, .07), transparent);
}
.landing-promo-section h2 { font-size: 26px; margin: 8px 0 14px; }
.landing-promo-section p { max-width: 640px; margin: 0 auto; }
.landing-promo-section .table-wrap { max-width: 720px; margin: 16px auto 0; }
.landing-promo-section .table { min-width: 0; }

.landing-trust-section { padding: 50px 40px 70px; max-width: 1200px; margin: 0 auto; }
.landing-trust-section h2 { font-size: 26px; margin-bottom: 22px; }
.landing-trust-section h3 { margin-top: 0; font-size: 16px; }

/* Refined public landing page and persistent signal entry point. */
.landing-hero { min-height: 570px; align-items: start; }
.landing-hero-left { padding: 28px 0 24px; }
.landing-hero .hero-title { max-width: 620px; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.landing-hero-left > .eyebrow { letter-spacing: .12em; font-size: 11px; }
.landing-hero-left > p:not(.hero-footnote) { max-width: 550px; font-size: 17px; line-height: 1.7; }
.landing-hero-left .hero-actions { margin-top: 26px; }
.hero-footnote { max-width: 540px; color: var(--muted); font-size: 14px; margin: 22px 0 0; line-height: 1.65; }
.landing-panel { border-radius: 18px; box-shadow: var(--shadow); }
.landing-proof { width: min(1240px, calc(100% - 48px)); margin: 12px auto 40px; display: grid; grid-template-columns: repeat(3,1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.landing-proof article { padding: 23px 28px; display: grid; gap: 7px; border-right: 1px solid var(--line); }
.landing-proof article:last-child { border: 0; }
.landing-proof article > span { color: var(--brand2); font-weight: 800; font-size: 10px; letter-spacing: .13em; }
.landing-proof article strong { font-size: 16px; }
.landing-proof article small { color: var(--muted); line-height: 1.5; }
.landing-content-section,.landing-safety-section,.landing-faq,.landing-final-cta { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.landing-content-section { padding: 76px 0 88px; }
.landing-section-heading { max-width: 650px; margin-bottom: 30px; }
.landing-section-heading h2,.landing-safety-section h2,.landing-final-cta h2 { font-size: clamp(30px,4vw,46px); line-height: 1.08; letter-spacing: -.04em; margin: 9px 0 12px; }
.landing-section-heading p,.landing-safety-section > div:first-child > p { color: var(--muted); line-height: 1.7; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.landing-feature-grid article { padding: 24px; border-radius: 16px; }
.landing-feature-number { color: var(--brand2); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.landing-feature-grid h3 { margin: 20px 0 8px; }
.landing-feature-grid p { line-height: 1.65; margin-bottom: 0; }
.landing-safety-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.landing-safety-section > div:first-child > p { max-width: 470px; }
.landing-safety-points { display: grid; }
.landing-safety-points > div { display: flex; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.landing-safety-points > div:last-child { border: 0; }
.landing-safety-points b { color: var(--brand2); font-size: 12px; }
.landing-safety-points span,.landing-safety-points strong,.landing-safety-points small { display: block; }
.landing-safety-points small { color: var(--muted); margin-top: 5px; line-height: 1.5; }
.landing-faq { padding: 84px 0; }
.landing-faq details { border-bottom: 1px solid var(--line); padding: 19px 0; }
.landing-faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 700; list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary span { color: var(--brand2); font-size: 20px; line-height: 1; }
.landing-faq details p { color: var(--muted); line-height: 1.65; max-width: 740px; }
.landing-final-cta { margin-bottom: 64px; padding: 36px 40px; border-radius: 20px; border: 1px solid color-mix(in srgb,var(--brand) 42%,var(--line)); background: linear-gradient(120deg,color-mix(in srgb,var(--brand) 13%,var(--panel)),var(--panel)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-final-cta h2 { font-size: clamp(28px,3.5vw,40px); }
.landing-final-cta .hero-actions { margin: 0; flex: none; }
.landing-footer { border-top: 1px solid var(--line); padding: 24px max(24px,calc((100% - 1160px)/2)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.landing-footer a { color: var(--muted); }
.signal-input-point { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.signal-input-point h2 { margin: 5px 0; font-size: 20px; }
.signal-input-point p { margin: 5px 0 0; }
.signal-code-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: center; }
.signal-code-form [role="status"] { grid-column: 1 / -1; min-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.modal .error { min-height: 18px; }
@media (max-width: 760px) {
  .landing-hero { min-height: 0; }
  .landing-hero .hero-title { font-size: clamp(38px,11vw,54px); }
  .landing-proof,.landing-feature-grid { grid-template-columns: 1fr; }
  .landing-proof article { border-right: 0; border-bottom: 1px solid var(--line); }
  .landing-safety-section { grid-template-columns: 1fr; gap: 22px; }
  .landing-final-cta { display: block; padding: 28px 24px; }
  .landing-final-cta .hero-actions { margin-top: 18px; }
  .signal-input-point { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 460px) {
  .landing-hero-left .hero-actions .btn,.landing-final-cta .hero-actions .btn { flex: 1; }
  .signal-code-form { grid-template-columns: 1fr; }
  .signal-code-form [role="status"] { grid-column: auto; }
  .landing-footer { flex-direction: column; }
}

/* Landing type scale modeled on the supplied exchange-page reference. */
.landing-hero,.landing-proof,.landing-content-section,.landing-safety-section,.landing-faq,.landing-final-cta,.landing-footer { -webkit-font-smoothing: antialiased; }
.landing-hero .hero-title {
  font-size: clamp(40px, 4.7vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.landing-hero-left > p:not(.hero-footnote) { font-size: 16px; line-height: 1.65; }
.landing-section-heading h2,
.landing-safety-section h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -.035em;
}
.landing-section-heading p,
.landing-safety-section > div:first-child > p { font-size: 16px; }
.landing-proof article strong { font-size: 16px; font-weight: 700; }
.landing-feature-grid h3 { font-size: 18px; font-weight: 700; }
.landing-feature-grid p,
.landing-safety-points small,
.landing-faq details p { font-size: 14px; }
.landing-faq summary { font-size: 16px; }
.landing-final-cta h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; }
.landing-panel .ticker-row-name { font-size: 14px; }
.landing-panel .ticker-row-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.landing-panel .ticker-row-price strong { font-size: 12px; }
.landing-panel .news-row-mini strong { font-size: 14px; line-height: 1.4; }
.landing-panel .news-row-mini p { font-size: 13px; line-height: 1.5; }
.landing-nav-links a,
.landing-nav-actions .btn { font-size: 14px; }
@media (max-width: 760px) {
  .landing-hero .hero-title { font-size: clamp(36px, 9vw, 48px); }
}

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .landing-nav { padding: 16px 20px; }
  .landing-trust-section { padding: 40px 20px 60px; }
  .landing-promo-section { padding: 40px 20px; }
}
@media (max-width: 640px) {
  .landing-nav-links { display: none; }
  .landing-hero .hero-title { font-size: clamp(36px, 9vw, 48px); }
}

/* Focused deposit/withdraw sheets over the account wallet. */
.wallet-detail-backdrop { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(2,8,18,.78); backdrop-filter: blur(8px); }
.wallet-detail-backdrop.is-visible { display: block; }
.wallet-detail-open { overflow: hidden; }
.page.wallet-detail-page.active { position: fixed; z-index: 101; inset: 18px; width: min(900px,calc(100% - 36px)); max-width: none; height: calc(100dvh - 36px); margin: auto; overflow-y: auto; padding: clamp(18px,3vw,30px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg); box-shadow: 0 28px 90px rgba(0,0,0,.48); overscroll-behavior: contain; }
.wallet-detail-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
.wallet-detail-heading h1 { margin: 2px 0 0; font-size: clamp(23px,4vw,30px); line-height: 1.1; }
.wallet-detail-close { all: unset; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); cursor: pointer; font-size: 24px; }
.wallet-detail-close:hover { border-color: var(--brand); color: var(--brand2); }
.wallet-network-banner { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; }
.wallet-network-banner strong { margin-left: auto; padding: 5px 9px; border-radius: 7px; background: var(--brand-glow); color: var(--brand2); font-size: 12px; letter-spacing: .04em; }
.wallet-network-divider { width: 1px; height: 18px; background: var(--line); }
.withdrawal-availability { margin-left: auto; font-size: 11px; }
.withdrawal-availability .badge { padding: 4px 8px; }
.page.wallet-detail-page .deposit-address-card { grid-template-columns: minmax(0,1fr) 270px; gap: 24px; padding: clamp(16px,3vw,26px); }
.page.wallet-detail-page .deposit-address-label { margin-bottom: 9px; }
.page.wallet-detail-page .deposit-address-value { min-height: 76px; padding: 13px 15px; border-radius: 12px; background: var(--field-bg); overflow-wrap: anywhere; word-break: break-all; font-size: clamp(13px,2vw,16px); }
.page.wallet-detail-page .deposit-address-main .btn { min-height: 46px; }
.page.wallet-detail-page .deposit-qr-panel { padding: 0; border: 0; background: transparent; }
.page.wallet-detail-page .deposit-qr-frame { width: 250px; height: 250px; padding: 13px; }
.wallet-history-card { padding: 16px 18px; }
.wallet-history-card h2 { margin: 5px 0 0; font-size: 19px; }
.wallet-history-card .table { min-width: 520px; }
.wallet-history-card .table th,.wallet-history-card .table td { padding: 11px 9px; font-size: 12px; }
.wallet-history-card.deposit-history-card .table { min-width: 470px; }
.wallet-withdraw-form { display: grid; gap: 16px; padding: clamp(17px,3vw,25px); }
.wallet-hidden-fields { display: none; }
.wallet-withdraw-form .field { margin: 0; }
.wallet-withdraw-form .field label { font-size: 13px; }
.wallet-withdraw-form .input { min-height: 48px; }
.wallet-withdraw-note { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.wallet-confirm-button { width: 100%; min-height: 49px; font-size: 15px; }
.withdrawal-estimate { padding: 4px 14px; }
.withdrawal-estimate .fee-row { padding: 9px 0; }
.withdrawal-net-row strong { font-size: 17px; }
.deposit-address-card .deposit-network-controls { display: none; }

/* Account overview based on a compact mobile wallet: balance, actions, activity. */
.account-wallet-screen { width: min(760px,100%); margin: 0 auto; display: grid; gap: 18px; }
.account-balance-card { padding: 26px 22px 18px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg,var(--panel2),var(--panel)); text-align: center; }
.account-currency-pill { width: max-content; max-width: 100%; margin: 0 auto 23px; padding: 9px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb,var(--info) 20%,var(--line)); border-radius: 999px; background: color-mix(in srgb,var(--info) 15%,var(--panel)); color: var(--info); font-size: 14px; font-weight: 750; }
.account-currency-pill > span:last-child { font-size: 17px; line-height: 12px; }
.account-currency-flag { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #2c72c7; color: white; font-size: 12px; font-weight: 800; }
.account-balance-label { color: var(--muted); font-size: 13px; }
.account-balance-value { margin-top: 7px; font-size: clamp(30px,7vw,42px); line-height: 1.15; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.account-balance-value span { color: var(--muted); font-weight: 500; }
.account-action-row { width: min(390px,100%); margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-action-button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 5px 10px 3px; color: var(--text); font-size: 14px; transition: transform .15s ease,color .15s ease; }
.account-action-button:hover { transform: translateY(-2px); color: var(--brand2); }
.account-action-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--info) 24%,var(--panel)); color: var(--info); font-size: 27px; line-height: 1; }
.account-action-withdraw { background: color-mix(in srgb,var(--info) 24%,var(--panel)); }
.account-recent-card { overflow: hidden; padding: 17px 16px 7px; border-radius: 16px; background: var(--panel2); }
.account-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.account-recent-heading h2 { margin: 0; font-size: 15px; }
.account-recent-heading button { all: unset; cursor: pointer; color: var(--info); font-size: 13px; font-weight: 650; }
.account-transaction-list { display: grid; }
.account-transaction-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 62px; border-bottom: 1px solid color-mix(in srgb,var(--line) 58%,transparent); }
.account-transaction-row:last-child { border-bottom: 0; }
.account-transaction-sign { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 15px; line-height: 1; }
.account-transaction-sign.is-credit { color: var(--good); }
.account-transaction-sign.is-debit { color: var(--bad); }
.account-transaction-copy,.account-transaction-amount { min-width: 0; display: grid; gap: 4px; }
.account-transaction-copy strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.account-transaction-copy span,.account-transaction-amount span { color: var(--muted); font-size: 11px; }
.account-transaction-copy i { padding: 0 2px; font-style: normal; }
.account-transaction-amount { justify-items: end; text-align: right; }
.account-transaction-amount strong { font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-transaction-status { text-transform: capitalize; }
.account-transaction-status.status-pending,.account-transaction-status.status-review { color: var(--warn); }
.account-transaction-status.status-failed,.account-transaction-status.status-rejected { color: var(--bad); }
.account-transaction-status.status-approved,.account-transaction-status.status-completed,.account-transaction-status.status-paid { color: var(--good); }
.account-empty-transactions { padding: 22px 5px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.crypto-converter-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,var(--panel2),var(--panel)); }
.crypto-converter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.crypto-converter-heading .eyebrow { font-size: 10px; }
.crypto-converter-heading h2 { margin: 4px 0 0; font-size: 18px; }
.converter-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,var(--brand) 35%,var(--line)); border-radius: 11px; background: var(--brand-glow); color: var(--brand2); font-size: 21px; }
.crypto-converter-fields { display: grid; grid-template-columns: minmax(100px,1.2fr) repeat(2,minmax(90px,1fr)); gap: 10px; }
.crypto-converter-field { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.crypto-converter-field .input,.crypto-converter-field .select { min-width: 0; min-height: 45px; padding: 10px 11px; font-size: 14px; }
.crypto-converter-result { min-height: 56px; margin-top: 14px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); }
.crypto-converter-result > span { color: var(--muted); font-size: 12px; }
.crypto-converter-result > strong { color: var(--brand2); font-size: clamp(14px,3vw,18px); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.crypto-converter-note { margin: 10px 1px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.account-balance-label { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.balance-visibility-toggle { width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; transition: color .15s ease,border-color .15s ease,background .15s ease; }
.balance-visibility-toggle:hover,.balance-visibility-toggle:focus-visible { border-color: var(--brand); background: var(--brand-glow); color: var(--brand2); outline: none; }
.balance-visibility-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-action-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-metrics-grid .card { min-width: 0; }
.portfolio-metrics-grid .metric-label { overflow-wrap: anywhere; }
.portfolio-metrics-grid .metric-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.transaction-history-card { padding: 16px 18px 7px; }
.page.wallet-detail-page .deposit-address-card { grid-template-areas: "address qr"; }
.page.wallet-detail-page .deposit-address-main { grid-area: address; }
.page.wallet-detail-page .deposit-qr-panel { grid-area: qr; }
.page.wallet-detail-page .deposit-qr-placeholder { color: var(--muted); }
@media (max-width: 460px) {
  .account-balance-card { padding: 23px 14px 15px; border-radius: 18px; }
  .account-recent-card { padding: 15px 12px 5px; }
  .crypto-converter-card { padding: 15px 12px; border-radius: 16px; }
  .crypto-converter-fields { grid-template-columns: minmax(0,1.1fr) repeat(2,minmax(0,1fr)); gap: 7px; }
  .crypto-converter-field .input,.crypto-converter-field .select { padding-inline: 8px; font-size: 13px; }
  .crypto-converter-result { align-items: flex-start; flex-direction: column; gap: 5px; }
  .account-transaction-row { grid-template-columns: 21px minmax(0,1fr) auto; gap: 7px; }
  .account-transaction-copy strong,.account-transaction-amount strong { font-size: 12px; }
}

/* Deposit and withdrawal screens: clear steps, prominent address and QR. */
.deposit-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.deposit-guide article { display: flex; gap: 14px; padding: 20px; border-right: 1px solid var(--line); }
.deposit-guide article:last-child { border-right: 0; }
.deposit-guide article > span { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-glow); color: var(--brand2); font-size: 13px; font-weight: 800; }
.deposit-guide strong { display: block; font-size: 14px; }
.deposit-guide p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 6px 0 0; }
.deposit-address-card { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 30px; align-items: center; padding: clamp(22px,3vw,36px); }
.deposit-address-main { min-width: 0; }
.deposit-address-main h2 { font-size: 26px; margin: 8px 0; }
.deposit-address-main > p { font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.deposit-network-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.deposit-address-label { font-size: 11px; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.deposit-address-value { min-height: 70px; display: flex; align-items: center; font-size: 16px; line-height: 1.55; color: var(--text); border-style: solid; }
.deposit-address-note { display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.deposit-qr-panel { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel2); }
.deposit-qr-panel > strong { font-size: 15px; }
.deposit-qr-panel > span { max-width: 220px; line-height: 1.5; }
.deposit-qr-frame { width: 272px; height: 272px; max-width: 100%; display: grid; place-items: center; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.deposit-qr-placeholder { max-width: 190px; color: #667085; font-size: 13px; line-height: 1.55; text-align: center; }
.deposit-qr { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 4px; object-fit: contain; image-rendering: pixelated; }
.manual-deposit-card h2,.transfer-card h2 { margin: 8px 0; font-size: 21px; }
.deposit-actions-grid.manual-deposit-disabled { grid-template-columns: 1fr; }
.manual-deposit-card > p,.transfer-card > p { line-height: 1.6; }
.table-section-heading { margin-bottom: 8px; }
.table-section-heading h2 { margin: 5px 0 0; }
.withdrawal-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 18px; align-items: start; }
.withdrawal-form-card { padding: clamp(22px,3vw,34px); }
.withdrawal-form-card h2,.withdrawal-aside h2 { margin: 8px 0; font-size: 22px; }
.withdrawal-form-card > p { font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.withdrawal-fields-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.withdrawal-form-card .field small { font-size: 13px; line-height: 1.5; }
.withdrawal-aside { display: grid; gap: 16px; }
.withdrawal-checklist { padding-left: 20px; margin: 16px 0 0; display: grid; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.fee-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fee-row strong { color: var(--text); }
.withdrawal-fee-card > p { line-height: 1.55; margin: 14px 0 0; }
.withdrawal-estimate { padding: 4px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.withdrawal-estimate .fee-row { padding: 10px 0; font-size: 13px; }
.withdrawal-net-row { border-bottom: 0; font-size: 14px !important; }
.withdrawal-net-row strong { color: var(--brand2); font-size: 17px; }
@media (max-width: 900px) {
  .home-quick-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-coin-card { grid-column: 1 / -1; }
  .deposit-address-card { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
  .deposit-qr-frame { width: 230px; height: 230px; }
}
@media (max-width: 700px) {
  .home-quick-row { grid-template-columns: 1fr 1fr; }
  .wallet-action-card { grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 15px; }
  .wallet-action-icon { width: 38px; height: 38px; font-size: 23px; }
  .wallet-action-arrow { display: none; }
  .wallet-action-card strong { font-size: 16px; }
  .wallet-action-card small { font-size: 11px; }
  .deposit-guide { grid-template-columns: 1fr; }
  .deposit-guide article { border-right: 0; border-bottom: 1px solid var(--line); }
  .deposit-guide article:last-child { border-bottom: 0; }
  .deposit-address-card,.withdrawal-layout { grid-template-columns: 1fr; }
  .deposit-qr-frame { width: 250px; height: 250px; }
}
@media (max-width: 460px) {
  .page.wallet-detail-page.active { inset: 0; width: 100%; height: 100dvh; padding: max(15px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .deposit-address-card { grid-template-columns: 1fr; gap: 18px; }
  .deposit-qr-frame { width: min(250px,74vw); height: min(250px,74vw); }
  .wallet-history-card { padding: 14px 12px; }
  .wallet-history-card.deposit-history-card .table { min-width: 0; }
  .wallet-history-card.deposit-history-card th:nth-child(2),.wallet-history-card.deposit-history-card td:nth-child(2) { display: none; }
  .wallet-history-card.withdrawal-history-card .table { min-width: 0; }
  .wallet-history-card.withdrawal-history-card th:nth-child(3),.wallet-history-card.withdrawal-history-card td:nth-child(3) { display: none; }
  .wallet-history-card .table th,.wallet-history-card .table td { padding: 9px 5px; font-size: 11px; }
  .wallet-network-banner { min-height: 44px; }
  .home-quick-row { grid-template-columns: 1fr; }
  .deposit-network-controls,.withdrawal-fields-row { grid-template-columns: 1fr; }
  .deposit-address-value { font-size: 14px; }
}
@media (max-width: 780px) {
  .content .portfolio-metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .portfolio-metrics-grid .card { padding: 13px 12px; border-radius: 13px; }
  .portfolio-metrics-grid .metric-label { min-height: 2.5em; font-size: 11px; line-height: 1.25; }
  .portfolio-metrics-grid .metric-value { font-size: clamp(16px,4.4vw,22px); line-height: 1.2; }
}
@media (max-width: 700px) {
  .page.wallet-detail-page .deposit-address-card { grid-template-columns: minmax(0,1fr); grid-template-areas: "qr" "address"; gap: 17px; padding: 15px; }
  .page.wallet-detail-page .deposit-qr-panel { order: 0; }
  .page.wallet-detail-page .deposit-qr-frame { width: min(230px,64vw); height: min(230px,64vw); padding: 10px; }
  .page.wallet-detail-page .deposit-address-main { order: 1; }
  .page.wallet-detail-page .deposit-address-value { width: 100%; min-height: 65px; display: block; padding: 13px 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-all; }
  .page.wallet-detail-page .deposit-address-main .btn { width: 100%; }
  .wallet-history-card.deposit-history-card .table-wrap { overflow-x: hidden; }
  .wallet-history-card.deposit-history-card .table { width: 100%; min-width: 0; table-layout: fixed; }
  .wallet-history-card.deposit-history-card th:nth-child(2),.wallet-history-card.deposit-history-card td:nth-child(2) { display: none; }
  .wallet-history-card.deposit-history-card .table th,.wallet-history-card.deposit-history-card .table td { padding: 9px 7px; font-size: 11px; overflow-wrap: anywhere; }
  .transaction-history-card { padding: 12px 10px 5px; }
  .transaction-history-card .account-transaction-row { grid-template-columns: 20px minmax(0,1fr) auto; gap: 6px; }
  .transaction-history-card .account-transaction-amount strong { font-size: 11px; }
}
@media (max-width: 360px) {
  .content .portfolio-metrics-grid { gap: 8px; }
  .portfolio-metrics-grid .card { padding: 11px 9px; }
  .portfolio-metrics-grid .metric-value { font-size: 15px; }
  .account-transaction-copy strong { max-width: 145px; }
}

/* About page: company story, service map, safeguards and client flow. */
.about-page { background: var(--bg); }
.about-nav { height: 76px; padding: 0 max(24px,calc((100% - 1240px)/2)); display: flex; align-items: center; gap: 26px; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--surface-blur); backdrop-filter: blur(18px); }
.about-nav .brand { flex: none; }
.about-nav-links { display: flex; align-items: center; gap: clamp(14px,2vw,28px); margin-left: auto; }
.about-nav-links a,.about-footer nav a { color: var(--muted); font-size: 13px; font-weight: 650; transition: color .15s ease; }
.about-nav-links a:hover,.about-footer nav a:hover { color: var(--text); }
.about-nav-actions { display: flex; align-items: center; gap: 9px; padding-left: 20px; border-left: 1px solid var(--line); }
.about-nav-actions .btn { padding: 10px 14px; font-size: 13px; }
.about-page main { overflow: hidden; }
.about-hero { width: min(1240px,calc(100% - 48px)); min-height: 620px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 72px 0 66px; }
.about-hero-copy { max-width: 610px; }
.about-hero-copy .eyebrow,.about-section-heading .eyebrow,.about-user-copy .eyebrow,.about-operating-copy .eyebrow { font-size: 11px; letter-spacing: .14em; }
.about-hero-copy h1 { font-size: clamp(46px,6vw,72px); line-height: 1.01; letter-spacing: -.055em; font-weight: 750; margin: 20px 0; }
.about-hero-copy > p { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-hero-actions .btn { min-height: 48px; padding-inline: 20px; }
.about-hero-note { display: block; margin-top: 22px; color: var(--muted); font-size: 13px; }
.about-visual { min-height: 470px; display: grid; place-items: center; position: relative; isolation: isolate; }
.about-orbit { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.about-orbit-one { width: 340px; height: 340px; right: 2%; top: 5%; background: radial-gradient(circle,rgba(212,175,55,.24),rgba(212,175,55,.03) 68%,transparent 70%); }
.about-orbit-two { width: 240px; height: 240px; left: 4%; bottom: 0; background: radial-gradient(circle,rgba(79,140,255,.15),rgba(79,140,255,.02) 68%,transparent 70%); }
.about-product-card { width: min(480px,100%); position: relative; padding: 22px; border: 1px solid color-mix(in srgb,var(--brand) 25%,var(--line)); border-radius: 24px; background: linear-gradient(145deg,color-mix(in srgb,var(--panel) 95%,transparent),color-mix(in srgb,var(--panel2) 93%,transparent)); box-shadow: 0 28px 80px rgba(0,0,0,.22); backdrop-filter: blur(18px); transform: rotate(-2deg); }
.about-product-top { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 750; }
.about-product-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg,var(--brand),var(--brand2)); color: #1a1406; font-size: 9px; letter-spacing: 0; }
.about-product-top i { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--good); box-shadow: 0 0 14px color-mix(in srgb,var(--good) 60%,transparent); }
.about-product-title { display: grid; gap: 6px; padding: 24px 4px 14px; }
.about-product-title small { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.about-product-title strong { font-size: 22px; letter-spacing: -.03em; }
.about-product-line { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb,var(--panel) 88%,transparent); }
.about-product-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-glow); color: var(--brand2); font-size: 19px; }
.about-product-line > span:nth-child(2) { display: grid; gap: 4px; }
.about-product-line strong { font-size: 13px; }
.about-product-line small { color: var(--muted); font-size: 11px; }
.about-product-line > b { margin-left: auto; color: var(--muted); font-size: 11px; }
.about-product-foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; padding: 17px 4px 0; }
.about-product-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.about-overview { width: min(1240px,calc(100% - 48px)); margin: -4px auto 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.about-overview article { padding: 24px 28px; border-right: 1px solid var(--line); }
.about-overview article:last-child { border: 0; }
.about-overview article > span { color: var(--brand2); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.about-overview strong { display: block; margin: 10px 0 6px; font-size: 17px; }
.about-overview p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.about-mission { width: min(1160px,calc(100% - 48px)); margin: 0 auto; padding: 120px 0 112px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; }
.about-section-label { display: flex; align-items: center; gap: 14px; color: var(--brand2); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.about-section-label span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,var(--brand) 55%,var(--line)); border-radius: 50%; }
.about-mission-copy h2,.about-section-heading h2,.about-user-copy h2,.about-operating-copy h2,.about-final-cta h2 { margin: 0; font-size: clamp(34px,4.2vw,50px); line-height: 1.06; letter-spacing: -.045em; }
.about-mission-copy p { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.about-services { padding: 92px max(24px,calc((100% - 1160px)/2)) 100px; background: linear-gradient(180deg,color-mix(in srgb,var(--panel) 68%,var(--bg)),var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-section-heading { max-width: 650px; margin: 0 0 36px; }
.about-section-heading h2 { margin-top: 12px; }
.about-section-heading > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.about-service-card { position: relative; min-height: 310px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,var(--card-grad-1),var(--card-grad-2)); transition: transform .18s ease,border-color .18s ease; }
.about-service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--brand) 55%,var(--line)); }
.about-service-number { position: absolute; top: 22px; right: 22px; color: var(--muted); font-size: 11px; font-weight: 750; }
.about-service-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,var(--brand) 25%,var(--line)); border-radius: 14px; color: var(--brand2); background: var(--brand-glow); font-size: 24px; }
.about-service-card h3 { margin: 25px 0 8px; font-size: 18px; }
.about-service-card p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 20px; }
.about-service-card a { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--brand2); font-size: 13px; font-weight: 700; }
.about-user-section { width: min(1160px,calc(100% - 48px)); margin: 0 auto; padding: 112px 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-user-copy h2,.about-operating-copy h2 { margin-top: 13px; }
.about-user-copy > p,.about-operating-copy > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.about-user-copy .link-accent { display: inline-block; margin-top: 12px; }
.about-principles { display: grid; }
.about-principles article { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-principles article:last-child { border: 0; }
.about-principles article > span { color: var(--brand2); font-size: 12px; font-weight: 800; }
.about-principles strong { font-size: 16px; }
.about-principles p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.about-operating-model { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-operating-art { min-height: 420px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 42%,color-mix(in srgb,var(--brand) 19%,transparent),transparent 56%),linear-gradient(145deg,color-mix(in srgb,var(--info) 8%,var(--panel)),var(--panel)); }
.about-operating-art:before,.about-operating-art:after { content:""; position:absolute; width:420px; height:420px; border:1px solid color-mix(in srgb,var(--brand) 18%,transparent); border-radius:50%; }
.about-operating-art:after { width:300px; height:300px; }
.about-shield { z-index:1; width:150px; height:170px; display:grid; place-items:center; position:relative; clip-path:polygon(50% 0,94% 18%,87% 71%,50% 100%,13% 71%,6% 18%); background:linear-gradient(145deg,var(--brand),var(--brand2)); box-shadow:0 18px 60px var(--brand-glow); color:#1a1406; font-size:25px; font-weight:900; letter-spacing:-.06em; }
.about-shield i { position:absolute; width:9px; height:9px; border-radius:50%; background:#fff1b9; opacity:.8; }
.about-shield i:nth-child(2) { top:28px; left:32px; }.about-shield i:nth-child(3) { right:26px; top:57px; }.about-shield i:nth-child(4) { bottom:35px; left:45px; }
.about-art-caption { position:absolute; bottom:26px; z-index:2; display:grid; gap:5px; text-align:center; }
.about-art-caption strong { font-size:15px; }.about-art-caption span { color:var(--muted); font-size:11px; }
.about-operating-copy { align-self:center; max-width:580px; padding:68px clamp(30px,6vw,90px); }
.about-operating-copy .link-accent { display:inline-block; margin-top:10px; }
.about-process { width:min(1160px,calc(100% - 48px)); margin:0 auto; padding:108px 0; }
.about-process-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.about-process-grid article { padding:20px 18px 18px 0; border-top:1px solid var(--line); }
.about-process-grid article > span { color:var(--brand2); font-size:12px; font-weight:800; }
.about-process-grid h3 { margin:18px 0 8px; font-size:17px; }
.about-process-grid p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.about-faq { width:min(900px,calc(100% - 48px)); margin:0 auto; padding:0 0 110px; }
.about-faq .about-section-heading { margin-bottom:22px; }
.about-faq details { padding:20px 0; border-bottom:1px solid var(--line); }
.about-faq summary { display:flex; justify-content:space-between; gap:20px; cursor:pointer; list-style:none; font-size:15px; font-weight:700; }
.about-faq summary::-webkit-details-marker { display:none; }
.about-faq summary span { color:var(--brand2); font-size:20px; }
.about-faq details p { max-width:760px; color:var(--muted); font-size:14px; line-height:1.7; }
.about-final-cta { width:min(1160px,calc(100% - 48px)); margin:0 auto 76px; padding:38px 42px; display:flex; align-items:center; justify-content:space-between; gap:30px; border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line)); border-radius:22px; background:linear-gradient(115deg,color-mix(in srgb,var(--brand) 12%,var(--panel)),var(--panel)); }
.about-final-cta > div:first-child { max-width:660px; }
.about-final-cta h2 { margin-top:8px; font-size:clamp(30px,3.5vw,42px); }
.about-final-cta p { color:var(--muted); font-size:14px; margin-bottom:0; }
.about-footer { display:grid; grid-template-columns:1fr auto; gap:18px 30px; align-items:center; padding:34px max(24px,calc((100% - 1160px)/2)); border-top:1px solid var(--line); }
.about-footer > p { color:var(--muted); font-size:13px; margin:0; }
.about-footer nav { display:flex; gap:20px; }
.about-footer #socialLinksRow { grid-column:1/-1; }
.about-footer small { grid-column:1/-1; padding-top:18px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.6; }
@media (max-width: 1000px) {
  .about-nav-links { gap:14px; }.about-nav-links a { font-size:12px; }
  .about-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about-hero { min-height:560px; }.about-hero-copy h1 { font-size:clamp(44px,6vw,62px); }
  .about-user-section { gap:42px; }
}
@media (max-width: 720px) {
  .about-nav { height:66px; padding-inline:16px; gap:10px; }
  .about-nav .brand { gap:8px; font-size:13px; }.about-nav .brand-mark { width:34px; height:34px; border-radius:10px; }
  .about-nav-links { display:none; }.about-nav-actions { margin-left:auto; padding-left:10px; gap:6px; }
  .about-nav-actions .icon-btn { width:32px; height:32px; }.about-nav-actions .btn { padding:9px 10px; font-size:12px; }
  .about-nav-actions .btn-secondary { display:none; }
  .about-hero { width:calc(100% - 36px); min-height:0; padding:66px 0 42px; grid-template-columns:1fr; gap:12px; }
  .about-hero-copy h1 { max-width:570px; font-size:clamp(42px,11vw,58px); }
  .about-hero-copy > p { font-size:16px; }
  .about-visual { min-height:400px; }.about-product-card { transform:none; }
  .about-overview { width:calc(100% - 36px); grid-template-columns:1fr; }
  .about-overview article { border-right:0; border-bottom:1px solid var(--line); padding:20px 22px; }.about-overview article:last-child { border-bottom:0; }
  .about-mission,.about-user-section { width:calc(100% - 40px); padding:76px 0; grid-template-columns:1fr; gap:24px; }
  .about-mission-copy h2,.about-section-heading h2,.about-user-copy h2,.about-operating-copy h2 { font-size:clamp(34px,9vw,44px); }
  .about-services { padding:76px 20px; }.about-section-heading { margin-bottom:26px; }
  .about-service-grid { grid-template-columns:1fr; }.about-service-card { min-height:260px; }
  .about-operating-model { grid-template-columns:1fr; }.about-operating-art { min-height:340px; }.about-operating-copy { padding:46px 24px 60px; }
  .about-process { width:calc(100% - 40px); padding:76px 0; }.about-process-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .about-faq { width:calc(100% - 40px); padding-bottom:76px; }
  .about-final-cta { width:calc(100% - 36px); display:block; padding:28px 24px; margin-bottom:54px; }.about-final-cta .about-hero-actions { margin-top:20px; }
  .about-footer { grid-template-columns:1fr; padding:28px 20px; }.about-footer nav { flex-wrap:wrap; }.about-footer small { grid-column:auto; }
}
@media (max-width: 420px) {
  .about-nav-actions .btn-primary { padding-inline:9px; }
  .about-process-grid { grid-template-columns:1fr; }
  .about-hero-actions .btn { padding-inline:13px; font-size:13px; }
  .about-product-card { padding:16px; }
}

/* Polished landing header: compact brand, clear link, and aligned actions. */
.landing-nav {
  width: min(1320px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
}
.landing-nav .landing-brand {
  flex: 0 0 auto;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.landing-nav .landing-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 11px;
  letter-spacing: -.04em;
}
.landing-nav-links { gap: 22px; }
.landing-nav-links a { font-size: 14px; transition: color .18s ease; }
.landing-nav-actions { gap: 10px; padding-left: 12px; }
.landing-nav .theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.landing-nav-actions .btn { min-height: 40px; padding: 10px 17px; border-radius: 11px; }
@media (max-width: 640px) {
  .landing-nav {
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 13px;
    flex-wrap: wrap;
  }
  .landing-nav .landing-brand { gap: 7px; font-size: 13px; }
  .landing-nav .landing-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .landing-nav-links { order: 3; display: flex; flex-basis: 100%; justify-content: flex-end; gap: 16px; margin-left: 0; padding: 5px 2px 1px; }
  .landing-nav-links a { font-size: 11px; white-space: nowrap; }
  .landing-nav-actions { margin-left: 0; gap: 6px; }
  .landing-nav .theme-toggle { width: 34px; height: 34px; border-radius: 10px; }
  .landing-nav-actions .btn { min-height: 34px; padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 360px) {
  .landing-nav { width: calc(100% - 16px); padding-inline: 7px; gap: 6px; }
  .landing-nav .landing-brand { font-size: 12px; }
  .landing-nav-links a { font-size: 10px; }
}
.landing-gold { color: var(--brand2); }
.modal-backdrop.open {
  background: rgba(2, 4, 8, .98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop.open .modal {
  box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
}

/* Dark, compact login card inspired by the supplied exchange login reference. */
.login-modal {
  width: min(425px, 100%);
  padding: 30px 40px 28px;
  border: 1px solid #343b47;
  border-radius: 24px;
  background: #181b22;
  color: #f3f5f8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}
.login-modal-brand { display: flex; align-items: center; gap: 10px; color: #fcd535; font-size: 18px; font-weight: 800; margin-bottom: 28px; }
.login-modal-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,#fcd535,#dcae3c); box-shadow:none; font-size: 10px; }
.login-modal-heading { margin-bottom: 4px; }
.login-modal-heading .eyebrow { color: #9da5b4; font-size: 10px; }
.login-modal-heading .icon-btn { width: 32px; height: 32px; color: #c5cad3; background: #232832; border: 1px solid #343b47; }
.login-modal h1 { margin: 0 0 20px; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.login-modal .form-grid { gap: 16px; }
.login-modal .field { gap: 7px; }
.login-modal .field label,.login-modal .field > span { color: #e4e7ec; font-size: 13px; font-weight: 600; }
.login-modal .input { min-height: 48px; border: 1px solid #f0b90b; border-radius: 11px; background: #181b22; color: #f3f5f8; }
.login-modal .input::placeholder { color: #8791a3; }
.login-modal .input:focus { border-color: #fcd535; box-shadow: 0 0 0 2px rgba(252,213,53,.12); }
.login-modal .btn-primary { min-height: 48px; border: 0; border-radius: 10px; background: #fcd535; color: #181b22; font-size: 15px; font-weight: 750; }
.login-modal .btn-primary:hover { background: #f0b90b; }
.login-modal .error { color: #ff8e9b; font-size: 13px; }
.login-modal-links { display:flex; justify-content:space-between; gap:14px; margin-top:22px; font-size:13px; }
.login-modal-links a { color:#fcd535; font-weight:650; }
.local-captcha { display:grid; gap:12px; padding:13px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); }
.local-captcha-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.local-captcha-top > div { display:grid; gap:5px; }
.local-captcha-image { display:block; width:174px; max-width:100%; height:58px; border-radius:9px; background:#252a33; object-fit:cover; }
.local-captcha-refresh { width:38px; height:48px; flex:none; border:1px solid var(--line); border-radius:9px; background:var(--panel); color:var(--brand2); font-size:20px; line-height:1; cursor:pointer; }
.local-captcha-refresh:disabled { opacity:.55; cursor:wait; }
.login-modal .local-captcha .input { min-height:42px; border-color:#3a4350; }
.login-modal .local-captcha { border-color:#353d49; background:#1e222b; }
.login-modal .local-captcha-refresh { border-color:#404856; background:#272d38; color:#fcd535; }
.icon-btn.theme-toggle,
.theme-toggle { position:relative; display:grid; place-items:center; overflow:hidden; flex:none; width:40px; height:40px; }
.icon-btn.theme-toggle svg,
.theme-toggle svg { grid-area:1 / 1; width:19px; height:19px; pointer-events:none; }
.auth-hero .theme-toggle { border:1px solid var(--line); border-radius:11px; background:var(--panel); color:var(--text); }
.auth-hero-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.login-page-copy { max-width:520px; }
.login-page-copy .hero-title { font-size:clamp(40px,5vw,64px); }
.auth-card-links { display:flex; justify-content:space-between; gap:14px; margin:0; font-size:13px; }
.topbar-home-brand { display:flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; white-space:nowrap; font-weight:800; }
.topbar-home-brand:hover { color:var(--brand2); }
.topbar-home-brand .topbar-brand-mark { flex:none; }
.local-captcha-image { object-fit:contain; }
@media (max-width: 780px) {
  .auth-page .auth-shell { grid-template-columns:1fr; grid-template-rows:auto 1fr; align-content:start; }
  .auth-page .auth-hero { display:block; padding:18px 22px 0; background:transparent; }
  .auth-page .auth-hero > :not(:first-child) { display:none; }
  .auth-page .auth-hero > .row { min-height:42px; }
  .auth-page .auth-card-wrap { padding:20px 18px 36px; align-items:start; }
  .auth-page .auth-card { width:min(460px,100%); }
}
@media (max-width: 480px) {
  .login-modal { padding:25px 22px 23px; border-radius:20px; }
  .login-modal-brand { margin-bottom:22px; }
}

/* Keep the signed-in mobile header readable without compressing its labels. */
.topbar > .row > div { display: none; }
@media (max-width: 600px) {
  .topbar { height: auto; min-height: 76px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand actions" "user user"; gap: 5px 10px; align-content: center; padding: 9px 14px; }
  .topbar > .row,.topbar > .status-line { display: contents; }
  .topbar-home-brand { grid-area: brand; min-width: 0; gap: 8px; font-size: 13px; }
  .topbar-home-brand .topbar-brand-mark { width: 40px; height: 40px; flex: none; }
  .topbar > .row > div { grid-area: title; min-width: 0; line-height: 1.15; }
  .topbar > .row > div > strong { font-size: 13px; }
  .topbar > .status-line > .dot { display: none; }
  .topbar > .status-line > #clientName { grid-area: user; justify-self: center; min-width: 0; max-width: 80vw; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { grid-area: actions; justify-self: end; gap: 6px; }
  .topbar-actions .icon-btn { width: 34px; height: 34px; }
}

/* Floating mobile navigation with consistently raised icon tiles. */
@media (max-width: 1049px) {
  .app-tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom,0px)); height: 72px; padding: 4px 5px; border: 1px solid color-mix(in srgb,var(--line) 75%,var(--brand)); border-radius: 22px; background: color-mix(in srgb,var(--panel) 90%,transparent); box-shadow: 0 12px 32px rgba(0,0,0,.34),0 3px 10px rgba(0,0,0,.18); }
  .tab-btn { grid-template-rows: 32px 13px; min-height: 62px; gap: 2px; border-radius: 16px; transition: color .16s ease,transform .16s ease; }
  .tab-btn svg { width: 32px; height: 32px; padding: 6px; border: 1px solid color-mix(in srgb,var(--line) 85%,transparent); border-radius: 12px; background: color-mix(in srgb,var(--panel2) 90%,transparent); box-shadow: 0 5px 12px rgba(0,0,0,.2); transition: transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease; }
  .tab-btn:hover { transform: translateY(-2px); }
  .tab-btn.active svg { transform: translateY(-2px); border-color: color-mix(in srgb,var(--brand) 65%,var(--line)); background: linear-gradient(145deg,var(--brand),var(--brand2)); color: #1a1406; box-shadow: 0 7px 16px color-mix(in srgb,var(--brand) 28%,transparent); }
  .tab-btn-accent.active svg { color: #1a1406; }
  .content { padding-bottom: 124px; }
}

/* Stable landing navigation: brand, links, and actions occupy clear areas. */
.landing-nav { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "brand links actions"; align-items: center; column-gap: clamp(14px,2vw,30px); }
.landing-nav .landing-brand { grid-area: brand; min-width: 0; }
.landing-nav-links { grid-area: links; display: flex; justify-self: center; justify-content: center; align-items: center; gap: clamp(14px,2vw,22px); min-width: 0; margin: 0; }
.landing-nav-actions { grid-area: actions; justify-self: end; min-width: max-content; margin: 0; }
@media (max-width: 640px) {
  .landing-nav { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand actions" "links links"; row-gap: 8px; padding: 8px 10px 10px; }
  .landing-nav .landing-brand { gap: 7px; font-size: 13px; }
  .landing-nav .landing-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .landing-nav-links { display: flex; justify-self: stretch; justify-content: center; gap: clamp(16px,5vw,24px); padding-top: 9px; border-top: 1px solid var(--line); }
  .landing-nav-links a { font-size: 11px; white-space: nowrap; }
  .landing-nav-actions { justify-self: end; gap: 6px; padding: 0; border: 0; }
  .landing-nav .theme-toggle { width: 34px; height: 34px; }
  .landing-nav-actions .btn { min-height: 34px; padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 360px) {
  .landing-nav { width: calc(100% - 16px); }
  .landing-nav-links { gap: 14px; }
  .landing-nav-links a { font-size: 10px; }
}

.signal-more-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb,var(--panel2) 78%,transparent); }
.signal-more-details[hidden] { display: none; }
.signal-more-details > div { min-width: 0; display: grid; gap: 4px; }
.signal-more-details > div > span { color: var(--muted); font-size: 11px; }
.signal-more-details > div > strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.signal-more-details .signal-detail-note { grid-column: 1 / -1; }
.signal-view-more { align-self: flex-start; margin-top: 14px; padding: 4px 0; border: 0; background: transparent; color: var(--brand2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.signal-view-more:hover { color: var(--text); }
@media (max-width: 460px) {
  .signal-more-details { gap: 10px; padding: 11px; }
}
.signals-history-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.signals-history-action > span { color: var(--muted); font-size: 13px; }
.signal-history-head p { margin: 8px 0 0; }
.signal-history-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px 0 12px; }
.signal-history-pagination > span { min-width: 54px; color: var(--muted); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.signal-history-pagination .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 460px) {
  .signals-history-action { align-items: stretch; flex-direction: column; padding: 12px; }
  .signal-history-pagination { justify-content: space-between; gap: 8px; }
}

/* Keep full-page links and in-app page changes visually continuous. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: route-fade-out 120ms ease-out both; }
::view-transition-new(root) { animation: route-fade-in 180ms ease-out both; }
@keyframes route-fade-out { to { opacity: 0; } }
@keyframes route-fade-in { from { opacity: .82; } to { opacity: 1; } }
.page.wallet-detail-page.active { animation: wallet-detail-arrive 180ms cubic-bezier(.2,.7,.25,1) both; }
@keyframes wallet-detail-arrive { from { opacity: .88; transform: translateY(5px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .page.active, .page.wallet-detail-page.active { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Gold accents for the wallet identity and its main page sections. */
.account-currency-pill {
  border-color: color-mix(in srgb,var(--brand) 48%,var(--line));
  background: linear-gradient(135deg,color-mix(in srgb,var(--brand) 19%,var(--panel)),color-mix(in srgb,var(--brand) 8%,var(--panel2)));
  color: var(--brand2);
  box-shadow: 0 6px 20px color-mix(in srgb,var(--brand) 12%,transparent);
}
.account-currency-flag { background: var(--brand); color: #201806; }
.account-balance-card { border-color: color-mix(in srgb,var(--brand) 34%,var(--line)); }
.account-wallet-screen > .crypto-converter-card,
.account-wallet-screen > .account-recent-card { border: 1px solid color-mix(in srgb,var(--brand) 25%,var(--line)); }
.account-wallet-screen .crypto-converter-heading .eyebrow,
.account-wallet-screen .account-recent-heading h2 { color: var(--brand2); }
.wallet-detail-page .wallet-detail-heading .eyebrow,
.wallet-detail-page .table-section-heading .eyebrow { color: var(--brand2); }
.wallet-detail-page .wallet-network-banner,
.wallet-detail-page .wallet-history-card { border-color: color-mix(in srgb,var(--brand) 26%,var(--line)); }

/* Keep the home quick actions and featured market aligned at every width. */
.home-quick-row { align-items: stretch; grid-auto-rows: minmax(150px,1fr); }
.home-quick-row > .wallet-action-card,
.home-quick-row > .featured-coin-card {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg,var(--card-grad-1),var(--card-grad-2));
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.home-quick-row > .wallet-action-card { justify-items: stretch; }
.home-quick-row > .featured-coin-card { align-content: start; }
.home-quick-row > .wallet-action-card:hover,
.home-quick-row > .featured-coin-card:hover { border-color: color-mix(in srgb,var(--brand) 56%,var(--line)); }
@media (max-width: 900px) {
  .home-quick-row { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: auto; }
  .home-quick-row > .featured-coin-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .home-quick-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-quick-row > .wallet-action-card,
  .home-quick-row > .featured-coin-card { grid-column: auto; min-height: 0; }
  .home-quick-row > .wallet-action-card { min-height: 94px; }
  .home-quick-row > .featured-coin-card { min-height: 190px; }
}
