/* ZIRIX — светлая интерфейсная система для рынка событий. */
:root {
    --bg: #f7f9fc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f5f7fa;
    --surface-3: #eaf0f6;
    --line: #dfe5ec;
    --line-soft: #edf1f5;
    --text: #101828;
    --text-strong: #07111f;
    --muted: #667085;
    --muted-2: #98a2b3;
    --yes: #0c9b61;
    --yes-dark: #08784a;
    --yes-soft: #eaf9f2;
    --no: #e5484d;
    --no-dark: #bd3035;
    --no-soft: #fff0f1;
    --accent: #2563eb;
    --accent-dark: #1749b5;
    --accent-soft: #edf4ff;
    --navy: #0a1b36;
    --warn: #d97706;
    --warn-soft: #fff7e8;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow: 0 12px 32px rgba(16, 24, 40, .09);
    --shadow-lg: 0 24px 60px rgba(10, 27, 54, .14);
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--text-strong); line-height: 1.18; font-weight: 750; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 4.2vw, 56px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.up { color: var(--yes); }
.down { color: var(--no); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #27c27b; box-shadow: 0 0 0 4px rgba(39,194,123,.13); animation: livePulse 2s infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(39,194,123,0); } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.demo-ribbon { color: #dce8ff; background: var(--navy); font-size: 12px; }
.demo-ribbon-inner { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.demo-ribbon-inner > span:first-child { display: flex; align-items: center; gap: 7px; color: #fff; }
.demo-ribbon-inner a { color: #8fb7ff; font-weight: 700; }
.demo-ribbon-inner a:hover { color: #fff; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: auto; object-fit: contain; }
.brand-logo-header { width: 150px; height: 56px; }
.brand-logo-footer { width: 172px; height: 64px; margin: -10px 0; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 10px; border-radius: 8px; color: #475467; font-size: 14px; font-weight: 650; transition: .16s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav .nav-token { display: inline-flex; align-items: center; gap: 5px; color: #08784a; }
.nav .nav-token span { padding: 2px 4px; color: #fff; background: #00a86b; border-radius: 4px; font-size: 7px; letter-spacing: .04em; }
.nav .nav-token.active { color: #075f3d; background: #eaf9f2; }
.topbar-search { position: relative; margin-left: auto; flex: 0 1 270px; }
.topbar-search input { padding-left: 38px; padding-right: 56px; background: #f8fafc; }
.search-icon { position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; border: 2px solid #98a2b3; border-radius: 50%; transform: translateY(-55%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: #98a2b3; transform: rotate(45deg); border-radius: 2px; }
.topbar-search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted-2); background: white; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; font-size: 10px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 10px; line-height: 1.2; border-left: 1px solid var(--line); }
.balance-chip b { font-size: 14px; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--avatar, var(--accent)); font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.icon-button { position: relative; min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: #475467; background: white; cursor: pointer; transition: .16s; }
.icon-button:hover { color: var(--accent); border-color: #b8cdf7; background: var(--accent-soft); }
.watchlist-nav > span:first-child { font-size: 21px; line-height: 1; }
.watch-count { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--accent); border: 2px solid #fff; border-radius: 20px; font-size: 9px; font-weight: 800; }
.burger, .mobile-search { display: none; }

/* Controls */
input[type=text], input[type=password], input[type=number], input[type=search], select { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; transition: .16s; }
input::placeholder { color: #98a2b3; }
input:focus, select:focus { border-color: #7aa2f7; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
label { display: block; margin-bottom: 6px; color: #475467; font-size: 13px; font-weight: 650; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; color: #344054; background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 750; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-xs); transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: #cbd3dd; transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 20px rgba(37,99,235,.2); }
.btn-primary:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { color: #fff; background: #12284b; border-color: #12284b; }
.btn-yes { color: #fff; background: var(--yes); border-color: var(--yes); }
.btn-yes:hover { color: #fff; background: var(--yes-dark); border-color: var(--yes-dark); }
.btn-no { color: #fff; background: var(--no); border-color: var(--no); }
.btn-no:hover { color: #fff; background: var(--no-dark); border-color: var(--no-dark); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 35px; padding: 6px 10px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 12px 19px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chip { min-height: 37px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; color: #475467; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; transition: .16s; }
.chip:hover { color: var(--accent); border-color: #b8cdf7; }
.chip.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 7px; font-size: 12px; font-weight: 750; }
.badge-yes { color: var(--yes-dark); background: var(--yes-soft); border-color: #caedde; }
.badge-no { color: var(--no-dark); background: var(--no-soft); border-color: #ffd5d7; }
.badge-live { color: var(--accent-dark); background: var(--accent-soft); border-color: #d6e5ff; }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: #f8dfb5; }
.card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-tight { padding: 15px; }
.flash { margin: 16px 0 0; padding: 12px 15px; border: 1px solid; border-radius: var(--radius-sm); font-size: 14px; }
.flash-ok { color: var(--yes-dark); background: var(--yes-soft); border-color: #bfe8d7; }
.flash-err { color: var(--no-dark); background: var(--no-soft); border-color: #ffc8cb; }

/* Home hero */
.home-shell { padding-top: 34px; }
.hero-dashboard { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr); gap: 48px; align-items: center; padding: 42px 46px; overflow: hidden; color: #fff; background: linear-gradient(125deg,#08162c 0%,#102d5c 62%,#114f66 100%); border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero-dashboard::before { content: ""; position: absolute; width: 380px; height: 380px; right: 28%; top: -260px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.02); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #72dfb2; }
.hero-copy h1 { max-width: 760px; margin-top: 13px; color: #fff; font-size: clamp(34px,4.2vw,56px); }
.hero-copy h1 span { color: #90b6ff; }
.hero-copy .lead { max-width: 660px; margin: 16px 0 24px; color: #c5d2e8; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn:not(.btn-primary) { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.hero-actions .btn:not(.btn-primary):hover { background: rgba(255,255,255,.13); }
.play-dot { width: 22px; height: 22px; display: grid; place-items: center; padding-left: 2px; color: var(--navy); background: #fff; border-radius: 50%; font-size: 8px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: #adbed8; font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { width: 16px; height: 16px; display: grid; place-items: center; color: #a7f3d0; background: rgba(32,201,134,.14); border-radius: 50%; font-style: normal; font-size: 10px; }
.featured-market { position: relative; z-index: 2; padding: 22px; color: var(--text); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.55); border-radius: 18px; box-shadow: 0 26px 64px rgba(0,0,0,.24); }
.featured-head, .featured-probability, .featured-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-label { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 12px; font-weight: 750; }
.watch-button { width: 30px; height: 30px; display: grid; place-items: center; flex: none; padding: 0; color: #98a2b3; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; transition: .15s; }
.watch-button:hover, .watch-button.saved { color: var(--accent); background: var(--accent-soft); }
.watch-button.saved { font-size: 0; }
.watch-button.saved::after { content: "★"; font-size: 19px; }
.featured-title { display: flex; align-items: flex-start; gap: 13px; margin: 17px 0 18px; }
.featured-title h2 { margin: 1px 0 0; font-size: 21px; line-height: 1.35; }
.featured-image { width: 54px; height: 54px; display: block; flex: none; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow-xs); }
.featured-probability strong { display: block; color: var(--text-strong); font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.featured-probability span { color: var(--muted); font-size: 12px; }
.featured-probability .featured-change { padding: 5px 8px; border-radius: 7px; font-weight: 750; }
.featured-change.positive { color: var(--yes-dark); background: var(--yes-soft); }
.featured-change.negative { color: var(--no-dark); background: var(--no-soft); }
.featured-chart { height: 86px; margin: 8px -4px 4px; }
.featured-chart svg { width: 100%; height: 100%; display: block; }
.featured-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.outcome-button { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border: 1px solid; border-radius: 9px; font-weight: 750; transition: .15s; }
.outcome-yes { color: var(--yes-dark); background: var(--yes-soft); border-color: #bfe8d7; }
.outcome-yes:hover { color: #fff; background: var(--yes); border-color: var(--yes); }
.outcome-no { color: var(--no-dark); background: var(--no-soft); border-color: #ffcfd2; }
.outcome-no:hover { color: #fff; background: var(--no); border-color: var(--no); }
.featured-meta { margin-top: 15px; padding-top: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 11px; }
.market-stats { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-xs); }
.market-stats > div { padding: 18px 22px; border-right: 1px solid var(--line-soft); }
.market-stats > div:last-child { border-right: 0; }
.market-stats span { display: block; color: var(--muted); font-size: 12px; }
.market-stats b { display: inline-block; margin-top: 4px; color: var(--text-strong); font-size: 22px; }
.market-stats em { margin-left: 7px; color: var(--yes); font-size: 11px; font-style: normal; font-weight: 700; }
.promo-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin: 24px 0 0; padding: 21px 25px; overflow: hidden; background: linear-gradient(100deg,#e9f2ff,#eefcf6); border: 1px solid #cfe0f6; border-radius: 15px; }
.promo-banner::after { content: ""; position: absolute; width: 220px; height: 220px; right: 100px; border: 44px solid rgba(37,99,235,.04); border-radius: 50%; }
.promo-icon { position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; color: var(--accent); background: #fff; border: 1px solid #cdddf6; border-radius: 14px; font-size: 27px; box-shadow: var(--shadow-xs); }
.promo-banner > div, .promo-banner > a { position: relative; z-index: 1; }
.promo-banner h2 { margin: 3px 0; font-size: 19px; }
.promo-banner p { margin: 0; color: var(--muted); font-size: 13px; }

/* Market collections */
.market-section, .tools-section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 36px 0 16px; }
.section-head h2 { margin: 3px 0 0; }
.section-head-stack { margin-bottom: 15px; }
.section-link { color: var(--accent); font-size: 13px; font-weight: 750; }
.section-link:hover { color: var(--accent-dark); }
.view-tools { display: flex; align-items: center; gap: 6px; }
.view-tools .section-link { margin-left: 8px; }
.tool-button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.tool-button.active { color: var(--accent); background: var(--accent-soft); border-color: #c9dcff; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
.category-tabs { margin-bottom: 16px; }
.grid-markets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.grid-markets.compact { grid-template-columns: 1fr 1fr; }
.grid-markets.compact .mcard { display: grid; grid-template-columns: minmax(0,1fr) 140px; column-gap: 16px; }
.grid-markets.compact .mcard-topline, .grid-markets.compact .mcard-title-link, .grid-markets.compact .mcard-foot { grid-column: 1; }
.grid-markets.compact .mcard-marketline, .grid-markets.compact .probbar, .grid-markets.compact .mcard-buttons { grid-column: 2; }
.grid-markets.compact .mcard-marketline { grid-row: 1 / span 2; align-self: start; }
.grid-markets.compact .probbar { grid-row: 2; align-self: end; }
.grid-markets.compact .mcard-buttons { grid-row: 3; }
.grid-markets.compact .mcard-foot { grid-row: 3; align-self: center; border: 0; padding: 0; }
.mcard { position: relative; min-height: 292px; display: flex; flex-direction: column; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform .18s, border-color .18s, box-shadow .18s; }
.mcard:hover { border-color: #c1ccda; transform: translateY(-2px); box-shadow: var(--shadow); }
.mcard-topline { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-bottom: 10px; }
.mcard-category { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.mcard-category:hover { color: var(--accent); }
.mcard-title-link { display: flex; align-items: flex-start; gap: 12px; min-height: 68px; }
.mcard-thumb { width: 58px; height: 58px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 11px; }
.mcard-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.mcard:hover .mcard-thumb img { transform: scale(1.045); }
.mcard-q { margin: 0; font-size: 15px; font-weight: 750; line-height: 1.38; letter-spacing: -.012em; }
.mcard-title-link:hover .mcard-q { color: var(--accent); }
.mcard-marketline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0 8px; }
.mcard-prob { display: flex; align-items: baseline; gap: 7px; }
.mcard-prob b { font-size: 27px; line-height: 1; letter-spacing: -.045em; }
.mcard-prob .lbl { color: var(--muted); font-size: 11px; }
.probbar { height: 5px; overflow: hidden; margin-bottom: 14px; background: linear-gradient(90deg,var(--yes-soft),var(--no-soft)); border-radius: 6px; }
.probbar > i { display: block; height: 100%; background: var(--yes); border-radius: 6px; }
.mcard-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pill-buy { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 750; transition: .15s; }
.pill-yes { color: var(--yes-dark); background: var(--yes-soft); border-color: #ceeede; }
.pill-yes:hover { color: #fff; background: var(--yes); border-color: var(--yes); }
.pill-no { color: var(--no-dark); background: var(--no-soft); border-color: #ffd7d9; }
.pill-no:hover { color: #fff; background: var(--no); border-color: var(--no); }
.pill-closed { grid-column: 1 / -1; justify-content: center; color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.mcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 11px; }
.mcard-foot b { color: #475467; }
.market-time { display: inline-flex; align-items: center; gap: 5px; }
.market-time i { width: 5px; height: 5px; background: #f6a723; border-radius: 50%; }

/* Insights, tools, how */
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.insight-card { padding: 0 20px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.insight-card .section-head { margin: 0 -20px 4px; padding: 20px 20px 15px; border-bottom: 1px solid var(--line-soft); }
.insight-card .section-head h2 { font-size: 20px; }
.closing-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.closing-row:last-child { border-bottom: 0; }
.closing-row:hover .closing-title b { color: var(--accent); }
.closing-image { width: 40px; height: 40px; display: block; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 9px; }
.closing-title { display: flex; flex-direction: column; min-width: 0; }
.closing-title b { overflow: hidden; color: #344054; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.closing-title small { color: var(--muted); font-size: 11px; }
.closing-price { font-size: 17px; font-weight: 800; }
.closing-arrow { color: var(--muted-2); font-size: 24px; }
.feed { display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.feed-row:last-child { border-bottom: 0; }
.feed-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent-dark); background: var(--accent-soft); border-radius: 50%; font-size: 12px; font-weight: 800; }
.feed-copy, .feed-amount { display: flex; flex-direction: column; min-width: 0; }
.feed-copy b, .feed-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-copy b { font-size: 12px; }
.feed-copy small { color: var(--muted); font-size: 11px; }
.feed-amount { align-items: flex-end; }
.feed-amount b { font-size: 12px; }
.feed-amount small { font-size: 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.tool-card { min-height: 150px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; padding: 18px; text-align: left; background: white; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: .17s; }
.tool-card:hover { border-color: #b8cdf7; box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 10px; font-size: 20px; }
.tool-card h3 { margin: 2px 0 6px; font-size: 15px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tool-arrow { align-self: center; color: var(--muted-2); }
.how-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 45px; overflow: hidden; color: #fff; background: var(--navy); border-radius: 17px; }
.how-strip > div { position: relative; padding: 24px; border-right: 1px solid rgba(255,255,255,.1); }
.how-strip > div:last-child { border-right: 0; }
.step-number { color: #70a1ff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.how-strip h3 { margin: 18px 0 7px; color: #fff; font-size: 15px; }
.how-strip p { margin: 0; color: #aebed8; font-size: 12px; }

/* Catalog */
.catalog-page { padding-top: 34px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.catalog-heading h1 { margin: 6px 0 5px; font-size: 38px; }
.catalog-heading p { margin: 0; color: var(--muted); }
.catalog-callout { min-width: 380px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; color: #d7e3f7; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow); }
.catalog-callout-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #8eb5ff; background: rgba(255,255,255,.08); border-radius: 9px; font-size: 20px; }
.catalog-callout b, .catalog-callout small { display: block; }
.catalog-callout b { color: #fff; font-size: 13px; }
.catalog-callout small { color: #9fb0ca; font-size: 11px; }
.catalog-callout a { color: #8fb7ff; font-size: 12px; font-weight: 800; }
.catalog-filters { display: grid; grid-template-columns: minmax(0,1fr) 185px 170px auto; gap: 9px; margin-top: 27px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.filter-search { position: relative; }
.filter-search input { padding-left: 40px; background: var(--surface-2); }
.catalog-categories { margin: 15px 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 23px 0 13px; }
.catalog-toolbar > div:first-child { display: flex; gap: 5px; color: var(--muted); font-size: 13px; }
.catalog-toolbar > div:first-child b { color: var(--text); }
.catalog-tip { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 13px; color: #536074; background: var(--accent-soft); border: 1px solid #d7e5ff; border-radius: 9px; font-size: 12px; }
.catalog-tip > span { padding: 3px 7px; color: var(--accent-dark); background: #fff; border-radius: 6px; font-weight: 800; }
.catalog-tip b { color: #344054; }
.catalog-tip small { margin-left: auto; }
.empty-icon { margin: 0; color: var(--accent); font-size: 40px; }

/* Market page */
.market-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 22px; align-items: start; margin: 28px 0 44px; }
.market-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.market-breadcrumb > div:first-child { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.market-breadcrumb a:hover { color: var(--accent); }
.market-actions { display: flex; gap: 7px; }
.market-head { display: flex; gap: 15px; align-items: flex-start; }
.market-image { width: 76px; height: 76px; display: block; flex: none; object-fit: cover; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-xs); }
.market-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.price-head { display: flex; align-items: flex-end; gap: 13px; margin: 4px 0 7px; }
.price-head .big { font-size: 43px; font-weight: 850; letter-spacing: -.05em; line-height: 1; }
.quote-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 17px; }
.quote-box { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 11px 13px; border: 1px solid; border-radius: 10px; transition: .15s; }
.quote-box > span { font-weight: 800; }
.quote-box > b { font-size: 17px; }
.quote-box > small { grid-column: 1 / -1; margin-top: 3px; font-size: 11px; }
.quote-yes { color: var(--yes-dark); background: var(--yes-soft); border-color: #c7ead9; }
.quote-yes:hover { border-color: var(--yes); }
.quote-no { color: var(--no-dark); background: var(--no-soft); border-color: #ffd0d2; }
.quote-no:hover { border-color: var(--no); }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.chart-toolbar > div { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 7px; }
.chart-toolbar button { padding: 4px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 11px; font-weight: 750; cursor: pointer; }
.chart-toolbar button.active { color: var(--text); background: #fff; box-shadow: var(--shadow-xs); }
.chart-wrap { position: relative; margin-top: 7px; }
.chart-wrap svg { display: block; width: 100%; height: 250px; }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; padding: 6px 9px; color: white; background: var(--navy); border-radius: 7px; font-size: 12px; transform: translate(-50%,-130%); transition: opacity .12s; white-space: nowrap; box-shadow: var(--shadow); }
.market-data-strip { display: grid; grid-template-columns: repeat(4,1fr); margin: 8px -20px -20px; border-top: 1px solid var(--line); }
.market-data-strip > div { padding: 13px 15px; border-right: 1px solid var(--line-soft); }
.market-data-strip > div:last-child { border-right: 0; }
.market-data-strip span, .market-data-strip b { display: block; }
.market-data-strip span { color: var(--muted); font-size: 10px; }
.market-data-strip b { margin-top: 3px; font-size: 13px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 24px 0 15px; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; padding: 11px 13px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 750; cursor: pointer; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.deflist { display: grid; grid-template-columns: 190px 1fr; gap: 12px 20px; font-size: 14px; }
.deflist dt { color: var(--muted); }
.deflist dd { margin: 0; }
.trade-panel { position: sticky; top: 119px; display: flex; flex-direction: column; gap: 13px; }
.trade-panel > .card:first-child { border-top: 3px solid var(--accent); box-shadow: 0 14px 36px rgba(16,24,40,.1); }
.trade-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.trade-panel-heading h2 { margin: 2px 0 0; font-size: 21px; }
.demo-badge { padding: 4px 7px; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #d2e2ff; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; }
.seg button { min-height: 38px; padding: 8px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-weight: 750; font-size: 14px; cursor: pointer; }
.seg button.on-yes { color: #fff; background: var(--yes); box-shadow: 0 5px 13px rgba(12,155,97,.18); }
.seg button.on-no { color: #fff; background: var(--no); box-shadow: 0 5px 13px rgba(229,72,77,.18); }
.seg button.on { color: var(--text); background: #fff; box-shadow: 0 1px 4px rgba(16,24,40,.11); }
.field { margin-bottom: 14px; }
.amount-row { display: flex; gap: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.summary { display: flex; flex-direction: column; gap: 8px; padding: 11px 0 0; font-size: 13px; border-top: 1px solid var(--line-soft); }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary b { font-variant-numeric: tabular-nums; }
.trade-safety { display: flex; gap: 8px; margin-top: 12px; padding: 9px 10px; color: #5c6f69; background: var(--yes-soft); border-radius: 8px; }
.trade-safety > span { width: 20px; height: 20px; display: grid; place-items: center; flex: none; color: #fff; background: var(--yes); border-radius: 50%; font-size: 11px; }
.trade-safety p { margin: 0; font-size: 10px; line-height: 1.45; }
.mini-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mini-card-head h3 { margin: 2px 0 6px; font-size: 15px; }
.mini-card-head .tool-icon { width: 32px; height: 32px; font-size: 16px; }
.price-alert-card > p { margin: 2px 0 10px; }
.alert-control { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.alert-control input { padding-right: 31px; }
.alert-control > span { position: absolute; left: calc(100% - 118px); top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
#alert-status { margin-top: 7px; color: var(--yes-dark); }
.book-side { display: flex; flex-direction: column; gap: 1px; }
.book-row { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; overflow: hidden; padding: 5px 9px; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.book-row .depth { position: absolute; inset: 0 auto 0 0; opacity: .11; }
.book-row.ask .depth { background: var(--no); }
.book-row.bid .depth { background: var(--yes); }
.book-row.ask .p { color: var(--no); font-weight: 800; }
.book-row.bid .p { color: var(--yes); font-weight: 800; }
.book-row span { position: relative; }
.book-row:hover { background: var(--surface-2); }
.book-mid { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; padding: 9px; color: var(--muted); background: var(--surface-2); border-radius: 8px; font-size: 12px; }

/* Tables and utility pages */
.portfolio-page { padding-top: 4px; }
.portfolio-hero { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 30px; align-items: center; margin-bottom: 15px; padding: 22px 24px; color: #fff; background: linear-gradient(115deg,#0a1b36,#12386f); border-radius: 15px; box-shadow: var(--shadow); }
.portfolio-hero > div:first-child span, .portfolio-hero > div:first-child strong, .portfolio-hero > div:first-child em { display: block; }
.portfolio-hero > div:first-child span, .portfolio-quick > span { color: #aebed8; font-size: 11px; }
.portfolio-hero > div:first-child strong { margin: 4px 0; font-size: 29px; }
.portfolio-hero > div:first-child em { font-size: 12px; font-style: normal; font-weight: 750; }
.allocation-head, .allocation-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.allocation-head { color: #c6d3e7; font-size: 11px; }
.allocation-head b { color: #fff; }
.allocation-bar { height: 9px; margin: 9px 0; overflow: hidden; background: rgba(255,255,255,.14); border-radius: 7px; }
.allocation-bar i { display: block; width: var(--allocation); height: 100%; background: #6ca0ff; border-radius: 7px; }
.allocation-legend { justify-content: flex-start; color: #9fb0ca; font-size: 10px; }
.allocation-legend span { display: flex; align-items: center; gap: 5px; }
.allocation-legend i { width: 6px; height: 6px; background: #6ca0ff; border-radius: 50%; }
.allocation-legend span:last-child i { background: rgba(255,255,255,.4); }
.portfolio-quick { display: grid; grid-template-columns: 1fr; gap: 7px; min-width: 180px; }
.portfolio-quick .btn { min-height: 36px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { padding: 9px 10px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: #fafcff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 12px; }
.stat { padding: 16px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.stat span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.stat b { font-size: 22px; letter-spacing: -.03em; }
.auth-wrap { max-width: 430px; margin: 55px auto; }
.auth-wrap .card { padding: 26px; box-shadow: var(--shadow); }
.empty { padding: 38px 20px; color: var(--muted); text-align: center; }

/* Footer and watchlist */
.footer { margin-top: 58px; padding: 40px 0 22px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 42px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-title { margin-bottom: 5px; color: var(--text); font-weight: 800; }
.footer a:hover { color: var(--accent); }
.footer-brand p { max-width: 34ch; margin: 13px 0; }
.demo-label { display: inline-flex; align-items: center; gap: 7px; color: var(--yes-dark); font-size: 12px; font-weight: 700; }
.disclaimer { margin-top: 28px; padding: 13px 15px; color: #66512c; background: var(--warn-soft); border: 1px solid #f0d7a9; border-radius: var(--radius-sm); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 18px; color: var(--muted-2); border-top: 1px solid var(--line-soft); font-size: 11px; }
.watch-drawer { position: fixed; top: 0; right: 0; z-index: 100; width: min(420px,100%); height: 100%; padding: 22px; background: #fff; transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(10,27,54,.16); }
.watch-drawer.open { transform: translateX(0); }
.watch-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.watch-drawer-head h2 { margin: 3px 0 0; }
.watch-drawer-body { display: flex; flex-direction: column; gap: 10px; padding: 17px 0; }
.watch-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.watch-item-media { width: 38px; height: 38px; overflow: hidden; display: grid; place-items: center; background: #fff; border-radius: 8px; }
.watch-item-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.watch-item-media i { font-style: normal; }
.watch-item b, .watch-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-item b { font-size: 13px; }
.watch-item small { color: var(--muted); font-size: 11px; }
.watch-item-price { color: var(--accent); font-size: 16px; font-weight: 850; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; background: rgba(10,27,54,.35); backdrop-filter: blur(2px); transition: .22s; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
body.drawer-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1120px) {
    .nav a { padding-inline: 8px; }
    .topbar-search { flex-basis: 210px; }
    .hero-dashboard { grid-template-columns: 1fr 390px; gap: 28px; padding: 36px; }
    .grid-markets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tools-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
    .nav { display: none; }
    .nav.open { position: absolute; top: 99px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; padding: 12px 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .topbar-inner { position: relative; }
    .topbar-search { margin-left: auto; }
    .burger { width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
    .burger span { width: 16px; height: 2px; background: #344054; border-radius: 2px; }
    .hero-dashboard { grid-template-columns: 1fr; }
    .featured-market { max-width: 600px; }
    .market-stats { grid-template-columns: repeat(2,1fr); }
    .market-stats > div:nth-child(2) { border-right: 0; }
    .market-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
    .market-layout { grid-template-columns: 1fr; }
    .trade-panel { position: static; }
    .filters { grid-template-columns: 1fr 1fr !important; }
    .filters input[type=search] { grid-column: 1 / -1; }
    .two-col { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / -1; }
    .catalog-heading { align-items: flex-start; flex-direction: column; }
    .catalog-callout { min-width: 0; width: 100%; }
    .portfolio-hero { grid-template-columns: 1fr 1fr; }
    .portfolio-quick { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .portfolio-quick > span { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .container { width: min(100% - 24px,1280px); }
    .demo-ribbon-inner { justify-content: space-between; min-height: 35px; }
    .demo-ribbon-inner > span:nth-child(2) { display: none; }
    .topbar-search { display: none; }
    .mobile-search { position: relative; display: block; padding-bottom: 10px; }
    .mobile-search form { position: relative; }
    .mobile-search input { padding-left: 38px; background: var(--surface-2); }
    .nav.open { top: 145px; }
    .logout-form, .login-link { display: none; }
    .balance-chip .lbl { display: none; }
    .home-shell { padding-top: 14px; }
    .hero-dashboard { padding: 27px 21px; border-radius: 17px; }
    .hero-copy .lead { font-size: 15px; }
    .featured-market { padding: 17px; }
    .market-stats { margin-top: 12px; }
    .market-stats > div { padding: 14px; }
    .market-stats b { font-size: 19px; }
    .market-stats em { display: block; margin: 0; }
    .promo-banner { grid-template-columns: auto 1fr; padding: 18px; }
    .promo-banner .btn { grid-column: 1 / -1; }
    .grid-markets, .grid-markets.compact { grid-template-columns: 1fr; }
    .grid-markets.compact .mcard { display: flex; }
    .insight-grid { grid-template-columns: 1fr; }
    .how-strip { grid-template-columns: 1fr 1fr; }
    .how-strip > div:nth-child(2) { border-right: 0; }
    .how-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .deflist { grid-template-columns: 1fr; gap: 4px; }
    .deflist dt { margin-top: 10px; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .market-breadcrumb { align-items: flex-start; flex-direction: column; }
    .market-data-strip { grid-template-columns: 1fr 1fr; }
    .market-data-strip > div:nth-child(2) { border-right: 0; }
    .market-data-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
    .catalog-page { padding-top: 22px; }
    .catalog-heading h1 { font-size: 32px; }
    .catalog-tip { align-items: flex-start; flex-wrap: wrap; }
    .catalog-tip small { width: 100%; margin-left: 0; }
    .portfolio-hero { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-quick { grid-column: auto; }
}
@media (max-width: 480px) {
    .brand-logo-header { width: 126px; height: 48px; }
    .watchlist-nav { display: none; }
    .topbar-right .btn-primary { padding-inline: 10px; font-size: 12px; }
    .hero-actions .btn { width: 100%; }
    .trust-row { flex-direction: column; gap: 7px; }
    .featured-meta span:nth-child(1) { display: none; }
    .market-stats { grid-template-columns: 1fr 1fr; }
    .market-stats span { font-size: 11px; }
    .market-stats > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
    .market-stats > div:nth-child(even) { border-right: 0; }
    .promo-icon { display: none; }
    .promo-banner { grid-template-columns: 1fr; }
    .tools-grid, .how-strip { grid-template-columns: 1fr; }
    .how-strip > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .how-strip > div:last-child { border-bottom: 0; }
    .section-head-stack { align-items: flex-start; }
    .view-tools .section-link { margin-left: 3px; }
    .filters { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .catalog-callout { grid-template-columns: auto 1fr; }
    .catalog-callout a { grid-column: 2; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
}

/* ZIRIX X — tokenized multi-asset trading */
.x-home { padding-top: 26px; }
.x-product-mark { display: inline-flex; align-items: center; gap: 8px; color: #a4f4d0; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.x-product-mark i, .x-live i, .x-session i, .x-status-ok i, .x-demo-footer i { width: 7px; height: 7px; display: inline-block; background: #00c87a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,200,122,.14); }
.x-product-mark.dark { color: #08784a; }
.x-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(430px,.95fr); gap: 54px; align-items: center; min-height: 440px; padding: 54px 58px; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 18%,rgba(0,200,122,.2),transparent 29%),linear-gradient(120deg,#07141f 0%,#0b2430 58%,#093b35 100%); border-radius: 24px; box-shadow: 0 28px 70px rgba(5,24,32,.2); }
.x-hero::before { content: ""; position: absolute; width: 560px; height: 560px; left: -350px; bottom: -390px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.018),0 0 0 180px rgba(255,255,255,.012); }
.x-hero-copy { position: relative; z-index: 1; }
.x-hero h1 { margin: 17px 0 16px; color: #fff; font-size: clamp(39px,4.4vw,62px); line-height: 1.04; letter-spacing: -.055em; }
.x-hero h1 span { color: #79e8b7; }
.x-hero-copy > p { max-width: 650px; color: #b7c8cd; font-size: 16px; line-height: 1.7; }
.x-hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.x-btn-green { color: #041f15; background: #29dda0; border-color: #29dda0; box-shadow: 0 10px 28px rgba(0,200,122,.2); }
.x-btn-green:hover { color: #031a12; background: #5bebbb; border-color: #5bebbb; }
.x-btn-glass { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.19); box-shadow: none; }
.x-btn-glass:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.x-trust { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 30px; color: #8fa6ab; font-size: 11px; }
.x-trust span { display: flex; flex-direction: column; }
.x-trust b { color: #fff; font-size: 15px; }
.x-hero-terminal { position: relative; z-index: 2; padding: 18px; background: rgba(8,21,27,.82); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 28px 65px rgba(0,0,0,.32); backdrop-filter: blur(14px); }
.x-mini-head, .x-mini-foot, .x-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-mini-head { padding: 2px 2px 13px; color: #91a4aa; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.x-live { display: inline-flex; align-items: center; gap: 6px; color: #7ce8b8; }
.x-live i { width: 5px; height: 5px; }
.x-spot-asset { display: grid; grid-template-columns: auto 1fr 90px 100px; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.08); transition: .16s; }
.x-spot-asset:hover { background: rgba(255,255,255,.045); }
.x-asset-icon { --asset-color:#111827; width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: #fff; background: var(--asset-color); border-radius: 10px; font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.x-icon-xs { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.x-icon-sm { width: 34px; height: 34px; border-radius: 9px; }
.x-icon-lg { width: 50px; height: 50px; border-radius: 13px; font-size: 16px; }
.x-spot-name, .x-spot-price { display: flex; flex-direction: column; min-width: 0; }
.x-spot-name b { color: #f6fbfa; font-size: 13px; }
.x-spot-name small, .x-spot-price small { color: #7f9499; font-size: 10px; }
.x-spot-price { align-items: flex-end; }
.x-spot-price b { color: #f4f9f8; font-size: 12px; }
.x-spark { height: 25px; display: flex; align-items: flex-end; gap: 3px; }
.x-spark i { width: 13px; height: 35%; background: #00b875; border-radius: 2px 2px 0 0; }
.x-spark i:nth-child(2) { height: 55%; }.x-spark i:nth-child(3) { height: 43%; }.x-spark i:nth-child(4) { height: 78%; }.x-spark i:nth-child(5) { height: 67%; }
.x-spark.negative { transform: scaleY(-1); opacity: .75; }.x-spark.negative i { background: #ef5b61; }
.x-mini-foot { padding: 13px 2px 1px; color: #697e84; border-top: 1px solid rgba(255,255,255,.08); font-size: 9px; }
.x-ticker { display: grid; grid-template-columns: repeat(6,1fr); margin-top: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-xs); }
.x-ticker a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 13px 15px; border-right: 1px solid var(--line-soft); }
.x-ticker a:last-child { border-right: 0; }.x-ticker a:hover { background: #f8fbfa; }
.x-ticker span { color: #344054; font-size: 11px; font-weight: 800; }.x-ticker b { color: #101828; font-size: 12px; }.x-ticker em { grid-column: 2; font-size: 10px; font-style: normal; }
.x-account-strip { display: grid; grid-template-columns: repeat(4,1fr) auto; align-items: center; margin-top: 16px; padding: 16px 19px; color: #cfdfdc; background: #0a2527; border-radius: 13px; box-shadow: var(--shadow); }
.x-account-strip > div { padding: 0 18px; border-right: 1px solid rgba(255,255,255,.1); }.x-account-strip > div:first-child { padding-left: 0; }.x-account-strip span,.x-account-strip b { display: block; }.x-account-strip span { color: #81999a; font-size: 10px; }.x-account-strip b { margin-top: 2px; color: #fff; font-size: 14px; }.x-account-strip > a { padding-left: 19px; color: #62e3b3; font-size: 12px; font-weight: 800; }
.x-discovery-grid { display: grid; grid-template-columns: 1.05fr 1.05fr .9fr; gap: 15px; margin-top: 37px; }
.x-discovery-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-xs); }.x-discovery-card .section-head { margin: 0 0 10px; }.x-discovery-card .section-head h2 { font-size: 19px; }
.x-rank-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); }.x-rank-row > span:not(.x-asset-icon) { display: flex; flex-direction: column; }.x-rank-row b { font-size: 12px; }.x-rank-row small { color: var(--muted); font-size: 10px; }.x-rank-row:hover b { color: #08784a; }
.x-risk-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 15px; background: #f2fbf7; border: 1px solid #d7f1e5; border-radius: 12px; }.x-risk-card b { font-size: 13px; }.x-risk-card p { margin: 4px 0 0; color: #61736f; font-size: 11px; line-height: 1.55; }
.x-risk-gauge { width: 62px; height: 62px; display: grid; place-items: center; background: conic-gradient(#00a86b 0 68%,#dceae5 68%); border-radius: 50%; }.x-risk-gauge::before { content:"68"; width: 45px; height: 45px; display: grid; place-items: center; color: #08784a; background: #fff; border-radius: 50%; font-size: 13px; font-weight: 850; }
.x-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; color: #53635f; font-size: 11px; }.x-feature-list span { display: flex; gap: 7px; }.x-feature-list i { color: #00a86b; font-style: normal; font-weight: 900; }
.x-wallet-card { display: flex; flex-direction: column; }.x-wallet-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }.x-wallet-card .btn { margin-top: auto; }
.x-coin-stack { display: flex; align-items: center; margin: 7px 0 15px; }.x-coin-stack span { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: #2775ca; border: 3px solid #fff; border-radius: 50%; font-size: 21px; font-weight: 900; box-shadow: var(--shadow-xs); }.x-coin-stack span:nth-child(2) { margin-left: -10px; background: #26a17b; }.x-coin-stack i { margin-left: 10px; padding: 4px 7px; color: #08784a; background: #eaf9f2; border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 800; }
.x-markets-section { margin-top: 45px; }.x-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 17px; }.x-section-title h2 { margin: 4px 0; }.x-section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.x-market-search { position: relative; width: 300px; }.x-market-search input { padding-left: 39px; background: #fff; }
.x-class-tabs { margin-bottom: 13px; }.x-class-tabs .chip.active { color: #fff; background: #0a2527; border-color: #0a2527; }
.x-market-table-wrap { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-xs); }
.x-market-table { width: 100%; border-collapse: collapse; font-size: 13px; }.x-market-table th { padding: 11px 14px; color: #7b8796; background: #f8fafb; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }.x-market-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }.x-market-table tr:last-child td { border-bottom: 0; }.x-market-table tbody tr:hover { background: #fafdfc; }
.x-asset-cell { display: flex; align-items: center; gap: 11px; }.x-asset-cell > span:last-child { display: flex; flex-direction: column; min-width: 0; }.x-asset-cell b { color: #111827; font-size: 13px; }.x-asset-cell small { color: var(--muted); font-size: 10px; }
.x-change-pill { display: inline-flex; min-width: 64px; justify-content: center; padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }.x-change-pill.positive { color: #08784a; background: #eaf9f2; }.x-change-pill.negative { color: #bd3035; background: #fff0f1; }
.x-session { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 11px; }.x-session i { width: 5px; height: 5px; box-shadow: none; }
.x-legal-note { margin: 24px 0 0; padding: 12px 15px; color: #66512c; background: #fffaf0; border: 1px solid #f2deb8; border-radius: 9px; font-size: 11px; }

/* Trading terminal */
.x-terminal-body { background: #f3f6f7; }.x-terminal-body .footer { display: none; }
.x-terminal { min-height: calc(100vh - 130px); display: grid; grid-template-columns: 218px minmax(520px,1fr) 342px; background: #fff; border-bottom: 1px solid var(--line); }
.x-watch-panel, .x-order-panel { min-width: 0; background: #fbfcfd; }.x-watch-panel { border-right: 1px solid var(--line); }.x-order-panel { border-left: 1px solid var(--line); }
.x-panel-title { min-height: 45px; padding: 0 13px; border-bottom: 1px solid var(--line); }.x-panel-title > span { color: #27313f; font-size: 12px; font-weight: 850; }.x-panel-title a,.x-panel-title small { color: #84909f; font-size: 9px; font-weight: 750; }
.x-watch-search { position: relative; padding: 9px; }.x-watch-search .search-icon { left: 21px; }.x-watch-search input { min-height: 34px; padding: 7px 8px 7px 35px; font-size: 11px; }
.x-watch-list { max-height: calc(100vh - 220px); overflow-y: auto; }.x-watch-list > a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-top: 1px solid var(--line-soft); }.x-watch-list > a.active { background: #eaf9f2; box-shadow: inset 3px 0 #00a86b; }.x-watch-list > a:hover { background: #f1f7f5; }.x-watch-list span:not(.x-asset-icon) { display: flex; flex-direction: column; min-width: 0; }.x-watch-list b { font-size: 10px; }.x-watch-list small { color: var(--muted); font-size: 8px; }
.x-chart-panel { min-width: 0; }.x-instrument-head { min-height: 78px; display: grid; grid-template-columns: auto minmax(160px,1fr) auto repeat(4,auto); gap: 16px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }.x-symbol-line { display: flex; align-items: center; gap: 7px; }.x-symbol-line h1 { margin: 0; font-size: 19px; }.x-instrument-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.x-leverage-tag { padding: 3px 6px; color: #08784a; background: #eaf9f2; border-radius: 5px; font-size: 9px; font-weight: 800; }
.x-main-price { display: flex; flex-direction: column; align-items: flex-end; padding-right: 7px; }.x-main-price b { color: #101828; font-size: 20px; }.x-main-price span { font-size: 10px; font-weight: 800; }.x-head-stat { display: flex; flex-direction: column; }.x-head-stat span { color: var(--muted); font-size: 8px; }.x-head-stat b { margin-top: 3px; font-size: 10px; }
.x-chart-card { position: relative; border-bottom: 1px solid var(--line); }.x-chart-toolbar { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 9px; }.x-chart-toolbar > div { display: flex; gap: 2px; }.x-chart-toolbar button { min-width: 32px; padding: 4px 7px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 9px; font-weight: 750; cursor: pointer; }.x-chart-toolbar button.active { color: #0b5038; background: #eaf9f2; }.x-chart-toolbar > span { display: flex; align-items: center; gap: 5px; }.x-chart-toolbar > span i { width: 5px; height: 5px; background: #00a86b; border-radius: 50%; }
#x-price-chart { width: 100%; height: 330px; display: block; cursor: crosshair; }.x-chart-crosshair { position: absolute; visibility: hidden; z-index: 5; padding: 5px 7px; color: #fff; background: #0a2527; border-radius: 5px; font-size: 9px; pointer-events: none; transform: translate(-50%,-135%); }.x-chart-crosshair.show { visibility: visible; }
.x-terminal-lower { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 315px; }.x-book-card { border-right: 1px solid var(--line); }.x-book-head,.x-book-row { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: right; }.x-book-head { padding: 7px 13px; color: #8792a1; font-size: 8px; }.x-book-row { position: relative; min-height: 23px; align-items: center; padding: 2px 13px; font-size: 9px; font-variant-numeric: tabular-nums; }.x-book-row > i { position: absolute; top: 1px; bottom: 1px; right: 0; opacity: .08; background: #e5484d; }.x-book-rows.bids .x-book-row > i { background: #00a86b; }.x-book-row span { position: relative; z-index: 1; }.x-book-mid { display: flex; align-items: baseline; gap: 8px; padding: 8px 13px; border-block: 1px solid var(--line-soft); }.x-book-mid b { color: #00a86b; font-size: 13px; }.x-book-mid span { color: var(--muted); font-size: 8px; }
.x-info-card .x-panel-title { padding-inline: 15px; }.x-specs { margin: 0; padding: 10px 15px; }.x-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 9px; }.x-specs dt { color: var(--muted); }.x-specs dd { margin: 0; color: #344054; font-weight: 750; }.x-info-card > p { margin: 2px 15px 15px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.x-account-mini { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--line); }.x-account-mini span { color: var(--muted); font-size: 9px; }.x-account-mini b { grid-row: 2; font-size: 12px; }.x-account-mini a { grid-row: 1 / 3; color: #08784a; font-size: 10px; font-weight: 800; }
.x-order-form { padding: 13px; border-bottom: 1px solid var(--line); }.x-segment { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 11px; padding: 3px; background: #eef2f4; border-radius: 8px; }.x-segment button { padding: 7px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; }.x-segment button.active { color: #17202c; background: #fff; box-shadow: var(--shadow-xs); }
.x-side-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 13px; }.x-side-tabs button { padding: 9px; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: 10px; font-weight: 850; cursor: pointer; }.x-side-tabs button:first-child { border-radius: 8px 0 0 8px; }.x-side-tabs button:last-child { border-left: 0; border-radius: 0 8px 8px 0; }.x-side-tabs .long.active { color: #08784a; background: #eaf9f2; border-color: #8ad9b7; }.x-side-tabs .short.active { color: #bd3035; background: #fff0f1; border-color: #f0a2a6; }
.x-form-field { margin-bottom: 13px; }.x-form-field label { margin-bottom: 5px; font-size: 10px; }.x-label-row { display: flex; align-items: center; justify-content: space-between; }.x-label-row b { font-size: 11px; }.x-input-unit { position: relative; }.x-input-unit input { padding-right: 58px; font-size: 12px; font-weight: 750; }.x-input-unit > span { position: absolute; right: 10px; top: 50%; color: var(--muted); font-size: 9px; font-weight: 750; transform: translateY(-50%); }.x-quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 5px; }.x-quick-amounts button { padding: 4px; color: #6b7787; background: #f4f6f8; border: 0; border-radius: 4px; font-size: 8px; cursor: pointer; }.x-quick-amounts button:hover { color: #08784a; background: #eaf9f2; }
.x-order-form input[type=range] { width: 100%; accent-color: #00a86b; }.x-range-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 8px; }.x-order-summary { margin: 13px 0; padding: 10px; background: #f6f8f9; border-radius: 8px; }.x-order-summary > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 9px; }.x-order-summary span { color: var(--muted); }.x-order-summary b { color: #344054; }.x-submit-long,.x-submit-short { color: #fff; border: 0; box-shadow: none; }.x-submit-long { background: #00a86b; }.x-submit-long:hover { color: #fff; background: #08784a; }.x-submit-short { background: #e5484d; }.x-submit-short:hover { color: #fff; background: #bd3035; }.x-risk-line { margin: 8px 0 0; color: #8b7780; font-size: 8px; line-height: 1.45; text-align: center; }
.x-current-position .x-panel-title { border-top: 0; }.x-current-position .empty { padding: 25px 13px; }.x-current-position .empty b { font-size: 11px; }.x-current-position .empty p { margin: 4px 0 0; font-size: 9px; }.x-position-live { padding: 12px; }.x-position-live > div:first-child { display: flex; align-items: center; justify-content: space-between; }.x-position-live dl { margin: 9px 0; }.x-position-live dl div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 9px; }.x-position-live dt { color: var(--muted); }.x-position-live dd { margin: 0; font-weight: 750; }
.x-direction-badge { display: inline-flex; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 850; }.x-direction-badge.long { color: #08784a; background: #eaf9f2; }.x-direction-badge.short { color: #bd3035; background: #fff0f1; }
.x-demo-footer { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 20px; color: #8ca1a3; background: #092124; font-size: 9px; }.x-demo-footer > span:first-child { display: flex; align-items: center; gap: 7px; color: #75e2b5; font-weight: 800; letter-spacing: .08em; }.x-demo-footer i { width: 5px; height: 5px; }

/* Token account and stablecoin wallet */
.x-account-page { padding-top: 34px; }.x-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.x-page-heading h1 { margin: 6px 0 3px; font-size: 38px; }.x-page-heading p { margin: 0; color: var(--muted); }.x-page-heading > div:last-child { display: flex; gap: 8px; }
.x-portfolio-hero { display: grid; grid-template-columns: 1.25fr 1.25fr repeat(3,.75fr); gap: 1px; overflow: hidden; color: #fff; background: rgba(255,255,255,.1); border-radius: 15px; box-shadow: var(--shadow); }.x-portfolio-hero > div { min-height: 120px; padding: 20px; background: #0a2527; }.x-equity-main span,.x-equity-main strong,.x-equity-main em { display: block; }.x-equity-main span,.x-margin-visual span,.x-portfolio-stat span { color: #8fa6a6; font-size: 10px; }.x-equity-main strong { margin: 5px 0; font-size: 25px; }.x-equity-main em { font-size: 11px; font-style: normal; font-weight: 750; }
.x-margin-visual > div:first-child { display: flex; justify-content: space-between; }.x-margin-visual b { color: #fff; font-size: 11px; }.x-margin-bar { height: 7px; margin: 13px 0 9px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 5px; }.x-margin-bar i { display: block; height: 100%; background: #29dda0; border-radius: 5px; }.x-margin-visual small { color: #789091; font-size: 9px; }.x-portfolio-stat { display: flex; flex-direction: column; justify-content: center; }.x-portfolio-stat b { margin-top: 5px; font-size: 13px; }
.x-account-section { margin-top: 28px; }.x-account-section .section-head { margin: 0 0 11px; }.x-account-section .section-head h2 { font-size: 21px; }.x-position-table .x-cell-sub,.x-cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }.x-empty-mark { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 10px; color: #00a86b; background: #eaf9f2; border-radius: 12px; font-size: 23px; }.x-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.x-wallet-overview { display: grid; grid-template-columns: 1.4fr repeat(2,.8fr) 1.1fr; gap: 1px; overflow: hidden; color: #fff; background: rgba(255,255,255,.12); border-radius: 15px; box-shadow: var(--shadow); }.x-wallet-overview > div { min-height: 135px; padding: 21px; background: #0a2527; }.x-wallet-balance > span,.x-wallet-stat > span { color: #8fa6a6; font-size: 10px; }.x-wallet-balance strong { display: block; margin: 4px 0; font-size: 26px; }.x-wallet-balance small { color: #789091; font-size: 9px; }.x-wallet-balance small b { color: #bed1ce; }.x-wallet-coins { display: flex; gap: 7px; margin-top: 12px; }.x-wallet-coins span { padding: 4px 7px; color: #b8eada; background: rgba(41,221,160,.1); border: 1px solid rgba(41,221,160,.18); border-radius: 6px; font-size: 9px; font-weight: 750; }
.x-wallet-stat { display: flex; flex-direction: column; justify-content: center; }.x-wallet-stat b { margin: 5px 0; font-size: 17px; }.x-wallet-stat small { color: #789091; font-size: 9px; }.x-wallet-network { display: flex; flex-direction: column; justify-content: center; }.x-wallet-network > span { display: flex; align-items: center; gap: 7px; color: #75e2b5; font-size: 9px; font-weight: 800; }.x-wallet-network span i { width: 6px; height: 6px; background: #29dda0; border-radius: 50%; box-shadow: 0 0 0 4px rgba(41,221,160,.12); }.x-wallet-network b { margin: 10px 0 3px; }.x-wallet-network small { color: #789091; font-size: 9px; }
.x-wallet-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 16px; margin-top: 22px; }.x-wallet-action-card,.x-safety-card,.x-network-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }.x-wallet-action-card { overflow: hidden; }.x-action-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f5f7f8; border-bottom: 1px solid var(--line); }.x-action-tabs button { padding: 13px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 800; cursor: pointer; }.x-action-tabs button.active { color: #08784a; background: #fff; border-bottom-color: #00a86b; }
.x-wallet-pane { display: none; padding: 22px; }.x-wallet-pane.active { display: block; }.x-wallet-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }.x-wallet-heading h2 { margin: 0; font-size: 20px; }.x-wallet-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.x-action-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 20px; font-weight: 850; }.x-action-icon.receive { color: #08784a; background: #eaf9f2; }.x-action-icon.send { color: #7c3aed; background: #f4efff; }.x-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.x-address-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 15px; padding: 13px; background: #f4f8f6; border: 1px solid #dcebe4; border-radius: 9px; }.x-address-box span,.x-address-box b { display: block; }.x-address-box span { color: var(--muted); font-size: 9px; }.x-address-box b { max-width: 500px; margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }.x-address-box button { padding: 6px 8px; color: #08784a; background: #fff; border: 1px solid #cfe7dc; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; }.x-fee-preview { display: flex; justify-content: space-between; margin-bottom: 14px; padding: 10px; color: var(--muted); background: #f6f8f9; border-radius: 7px; font-size: 10px; }.x-fee-preview b { color: #344054; }
.x-wallet-side { display: flex; flex-direction: column; gap: 14px; }.x-safety-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 17px; }.x-shield { width: 39px; height: 39px; display: grid; place-items: center; color: #08784a; background: #eaf9f2; border-radius: 11px; font-weight: 900; }.x-safety-card h3 { margin: 2px 0 4px; font-size: 14px; }.x-safety-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.x-network-list { overflow: hidden; }.x-network-list > div:not(.x-panel-title) { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-top: 1px solid var(--line-soft); }.x-network-list > div > span { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 750; }.x-network-list > div > span i { --n:#111827; width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--n); border-radius: 7px; font-size: 9px; font-style: normal; font-weight: 900; }.x-network-list > div > b { color: var(--muted); font-size: 9px; }.x-ledger-type { width: 25px; height: 25px; display: inline-grid; place-items: center; margin-right: 8px; border-radius: 7px; font-weight: 900; }.x-ledger-type.in { color: #08784a; background: #eaf9f2; }.x-ledger-type.out { color: #7c3aed; background: #f4efff; }.x-status-ok { display: inline-flex; align-items: center; gap: 6px; color: #08784a; font-size: 10px; font-weight: 750; }.x-status-ok i { width: 5px; height: 5px; box-shadow: none; }

@media (max-width: 1180px) {
    .x-terminal { grid-template-columns: 190px minmax(480px,1fr) 320px; }
    .x-instrument-head { grid-template-columns: auto minmax(130px,1fr) auto repeat(2,auto); }.x-instrument-head .x-head-stat:nth-last-child(-n+2) { display: none; }
    .x-ticker { grid-template-columns: repeat(3,1fr); }.x-ticker a:nth-child(3) { border-right: 0; }.x-ticker a:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
    .x-portfolio-hero { grid-template-columns: 1fr 1fr repeat(3,.65fr); }
}
@media (max-width: 980px) {
    .x-hero { grid-template-columns: 1fr; padding: 42px; }.x-hero-terminal { max-width: 650px; }
    .x-discovery-grid { grid-template-columns: 1fr 1fr; }.x-wallet-card { grid-column: 1 / -1; }.x-wallet-card .btn { width: 250px; }
    .x-terminal { display: block; }.x-watch-panel { display: none; }.x-order-panel { border: 0; border-top: 1px solid var(--line); }.x-order-panel { display: grid; grid-template-columns: 1fr 1fr; }.x-account-mini,.x-current-position { grid-column: 1 / -1; }.x-order-form { border-right: 1px solid var(--line); }
    .x-wallet-overview { grid-template-columns: 1fr 1fr; }.x-wallet-overview > div:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }.x-wallet-overview > div:first-child { border-bottom: 1px solid rgba(255,255,255,.08); }
    .x-portfolio-hero { grid-template-columns: 1fr 1fr; }.x-portfolio-stat:last-child { grid-column: 1 / -1; }.x-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .x-home { padding-top: 13px; }.x-hero { min-height: 0; padding: 29px 21px; border-radius: 17px; }.x-hero h1 { font-size: 39px; }.x-hero-actions .btn { flex: 1; }.x-trust { gap: 15px; }
    .x-spot-asset { grid-template-columns: auto 1fr auto; }.x-spark { display: none; }.x-ticker { grid-template-columns: 1fr 1fr; }.x-ticker a:nth-child(odd) { border-right: 1px solid var(--line-soft); }.x-ticker a:nth-child(even) { border-right: 0; }.x-ticker a { border-bottom: 1px solid var(--line-soft); }
    .x-account-strip { grid-template-columns: 1fr 1fr; gap: 14px; }.x-account-strip > div { padding: 0; border: 0; }.x-account-strip > a { padding: 0; }
    .x-discovery-grid { grid-template-columns: 1fr; }.x-wallet-card { grid-column: auto; }.x-feature-list { grid-template-columns: 1fr; }.x-section-title { align-items: flex-start; flex-direction: column; }.x-market-search { width: 100%; }.x-market-table-wrap { overflow-x: auto; }.x-market-table { min-width: 780px; }
    .x-instrument-head { grid-template-columns: auto 1fr auto; gap: 10px; }.x-instrument-head .x-head-stat { display: none; }.x-main-price b { font-size: 16px; }#x-price-chart { height: 270px; }.x-terminal-lower { grid-template-columns: 1fr; }.x-book-card { border-right: 0; border-bottom: 1px solid var(--line); }.x-order-panel { display: block; }.x-order-form { border-right: 0; }
    .x-page-heading { align-items: flex-start; flex-direction: column; }.x-page-heading h1 { font-size: 32px; }.x-wallet-overview,.x-portfolio-hero { grid-template-columns: 1fr; }.x-wallet-overview > div,.x-portfolio-hero > div { min-height: auto; }.x-portfolio-stat:last-child { grid-column: auto; }.x-wallet-grid { grid-template-columns: 1fr; }.x-form-two { grid-template-columns: 1fr; }.x-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .x-hero h1 { font-size: 33px; }.x-hero-actions { flex-direction: column; }.x-hero-terminal { padding: 12px; }.x-spot-asset { padding: 10px 3px; }.x-ticker { grid-template-columns: 1fr 1fr; }.x-discovery-card { padding: 17px; }
    .x-instrument-head { padding-inline: 12px; }.x-icon-lg { width: 40px; height: 40px; }.x-symbol-line h1 { font-size: 16px; }.x-main-price { padding: 0; }.x-chart-toolbar > span { display: none; }.x-terminal-lower { min-height: 0; }.x-demo-footer { padding: 8px 12px; text-align: center; }.x-demo-footer > span:last-child { display: none; }
    .x-page-heading > div:last-child { width: 100%; }.x-page-heading .btn { flex: 1; }.x-address-box { grid-template-columns: 1fr; }.x-address-box button { width: max-content; }.x-wallet-pane { padding: 17px; }
}

/* External quote provenance */
.x-feed-strip { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 10px 14px; color: #537069; background: #effbf6; border: 1px solid #d2efe2; border-radius: 10px; font-size: 10px; }
.x-feed-strip p { flex: 1; margin: 0; }.x-feed-strip small { color: #78928b; white-space: nowrap; }
.x-feed-indicator { display: inline-flex; align-items: center; gap: 7px; color: #08784a; font-size: 9px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.x-feed-indicator i { width: 6px; height: 6px; background: #00b875; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,184,117,.11); }
.x-live-source[data-feed-state="online"] { color: #078451; }.x-live-source[data-feed-state="stale"] { color: #a56b08; }.x-live-source[data-feed-state="simulated"] { color: #8792a1; }
.x-terminal-feed b { color: #4e675f; font-size: 9px; }.x-terminal-feed small { color: #87958f; }
.x-terminal-feed[data-feed-state="stale"] i { background: #d99116; }.x-terminal-feed[data-feed-state="simulated"] i { background: #9aa5b1; }
@media (max-width: 720px) {
    .x-feed-strip { align-items: flex-start; flex-wrap: wrap; }.x-feed-strip p { flex-basis: calc(100% - 150px); }.x-feed-strip small { width: 100%; }
}

/* ZIRIX Wallet */
.zw-body { background: #f5f7f8; }.zw-shell { width: min(1200px,calc(100% - 32px)); min-height: 70vh; margin: 0 auto; padding: 24px 0 55px; }
.zw-secure-required { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 15px; color: #7d2d32; background: #fff1f2; border: 1px solid #f0c6c9; border-radius: 10px; font-size: 11px; }.zw-secure-required b { white-space: nowrap; }
.zw-brand-mark { display: inline-flex; align-items: center; gap: 8px; color: #66edb9; font-size: 10px; font-weight: 900; letter-spacing: .12em; }.zw-brand-mark i { width: 7px; height: 7px; background: #28dda0; border-radius: 50%; box-shadow: 0 0 0 5px rgba(40,221,160,.12); }.zw-brand-mark.dark { color: #08784a; }
.zw-intro { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; overflow: hidden; padding: 62px 70px; color: #fff; background: radial-gradient(circle at 83% 18%,rgba(35,226,160,.19),transparent 30%),linear-gradient(135deg,#061a20 0,#092d2d 58%,#073622 100%); border-radius: 25px; box-shadow: 0 25px 60px rgba(6,35,35,.16); }
.zw-intro-copy h1 { margin: 20px 0 17px; color: #fff; font-size: clamp(43px,5.2vw,69px); line-height: .99; letter-spacing: -.055em; }.zw-intro-copy h1 span { color: #48e7ad; }.zw-intro-copy > p { max-width: 610px; margin: 0; color: #afc7c4; font-size: 16px; line-height: 1.7; }.zw-intro-actions { display: flex; gap: 10px; margin-top: 27px; }.zw-primary { color: #05241a; background: #35e5aa; border-color: #35e5aa; box-shadow: 0 8px 22px rgba(32,218,153,.2); }.zw-primary:hover { color: #031b13; background: #72f2c5; border-color: #72f2c5; }.zw-secondary { color: #eefbf7; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }.zw-secondary:hover { color: #fff; background: rgba(255,255,255,.11); }.zw-trust-row { display: flex; gap: 28px; margin-top: 32px; color: #7e9d99; font-size: 10px; }.zw-trust-row span { display: flex; flex-direction: column; }.zw-trust-row b { color: #e1f3ed; font-size: 12px; }
.zw-preview-card { position: relative; max-width: 440px; padding: 22px; color: #1a2730; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.3); border-radius: 24px; box-shadow: 0 35px 80px rgba(0,0,0,.28); transform: rotate(1.2deg); }.zw-preview-card::before { content:""; position:absolute; inset:-40px; z-index:-1; background:radial-gradient(circle,rgba(45,235,166,.17),transparent 68%); }.zw-preview-head { display: flex; align-items: center; gap: 10px; }.zw-preview-head > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }.zw-preview-head b { font-size: 13px; }.zw-preview-head small { color: #8b969e; font-size: 9px; }.zw-preview-head > i { color: #9da6ac; font-style: normal; }.zw-logo-token { width: 36px; height: 36px; display: grid; place-items: center; color: #062c21; background: #38e5aa; border-radius: 11px; font-size: 17px; font-weight: 950; }.zw-preview-balance { margin: 23px 0 17px; padding: 23px; color: #fff; background: linear-gradient(135deg,#082c2e,#0b553b); border-radius: 17px; }.zw-preview-balance span,.zw-preview-balance strong,.zw-preview-balance em { display: block; }.zw-preview-balance span { color: #93b7b0; font-size: 9px; }.zw-preview-balance strong { margin: 4px 0; font-size: 31px; letter-spacing: -.035em; }.zw-preview-balance em { color: #67e8b7; font-size: 9px; font-style: normal; }.zw-preview-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 17px; }.zw-preview-actions > span { display: grid; place-items: center; padding: 10px; color: #08784a; background: #edf9f4; border-radius: 10px; font-size: 16px; }.zw-preview-actions small { margin-top: 3px; color: #4d655e; font-size: 8px; }.zw-preview-assets { border-top: 1px solid #edf0f1; }.zw-preview-assets > span { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf0f1; }.zw-preview-assets i { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border-radius: 10px; font-style: normal; font-weight: 900; }.zw-preview-assets i.eth { background:#627eea; }.zw-preview-assets i.pol { background:#8247e5; }.zw-preview-assets i.usdc { background:#2775ca; }.zw-preview-assets b { display:flex; flex-direction:column; font-size:10px; }.zw-preview-assets small { color:#929ca3; font-size:8px; }.zw-preview-assets em { font-size:10px; font-style:normal; font-weight:800; }
.zw-principles { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px; }.zw-principles > div { padding:24px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-xs); }.zw-principles span { color:#00a86b; font-size:10px; font-weight:900; }.zw-principles h3 { margin:10px 0 6px; font-size:17px; }.zw-principles p { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.zw-locked { min-height:600px; display:grid; place-items:center; position:relative; }.zw-unlock-card { width:min(430px,100%); padding:36px; text-align:center; background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 25px 60px rgba(15,42,42,.11); }.zw-lock-icon { width:62px; height:62px; display:grid; place-items:center; margin:0 auto 20px; color:#073c2b; background:#3de4aa; border-radius:19px; font-size:27px; font-weight:950; box-shadow:0 12px 30px rgba(31,202,142,.22); }.zw-unlock-card h1 { margin:13px 0 5px; font-size:33px; }.zw-unlock-card > p { margin:0 0 21px; color:var(--muted); font-size:12px; line-height:1.6; }.zw-unlock-card form { text-align:left; }.zw-unlock-card form .btn { margin-top:13px; }.zw-unlock-links { display:flex; justify-content:space-between; margin-top:17px; }.zw-unlock-links button { padding:0; color:#74808a; background:none; border:0; font-size:9px; cursor:pointer; }.zw-unlock-links button:last-child { color:#b74a50; }.zw-local-proof { position:absolute; bottom:0; max-width:420px; padding:13px 16px; text-align:center; color:#547068; background:#effaf6; border:1px solid #d3eee3; border-radius:11px; font-size:10px; }.zw-local-proof p { margin:3px 0 0; }
.zw-dashboard { padding-top:10px; }.zw-topbar { display:grid; grid-template-columns:1fr auto auto; gap:11px; align-items:center; margin-bottom:19px; }.zw-topbar h1 { margin:5px 0 0; font-size:36px; }.zw-network-control { display:flex; align-items:center; gap:9px; padding:6px 8px 6px 12px; background:#fff; border:1px solid var(--line); border-radius:10px; }.zw-network-control > span { width:7px; height:7px; background:#20c885; border-radius:50%; box-shadow:0 0 0 4px rgba(32,200,133,.1); }.zw-network-control > span.testnet { background:#d79217; box-shadow:0 0 0 4px rgba(215,146,23,.1); }.zw-network-control select { min-height:32px; padding:4px 30px 4px 5px; background:transparent; border:0; font-size:11px; font-weight:800; }.zw-icon-button { width:45px; height:45px; display:grid; place-items:center; color:#53605f; background:#fff; border:1px solid var(--line); border-radius:11px; font-size:21px; cursor:pointer; }
.zw-balance-card { display:grid; grid-template-columns:1.1fr .9fr; overflow:hidden; color:#fff; background:radial-gradient(circle at 85% 0,rgba(48,231,168,.22),transparent 34%),linear-gradient(135deg,#071d24,#0a3c34); border-radius:21px; box-shadow:0 18px 45px rgba(7,40,37,.14); }.zw-balance-main,.zw-address { padding:28px 32px; }.zw-balance-main span,.zw-balance-main strong,.zw-balance-main em { display:block; }.zw-balance-main span,.zw-address span { color:#8facaa; font-size:10px; }.zw-balance-main strong { margin:3px 0; font-size:36px; }.zw-balance-main em { color:#62e6b6; font-size:9px; font-style:normal; }.zw-balance-main em i { display:inline-block; width:5px; height:5px; margin-right:6px; background:#31dfa1; border-radius:50%; }.zw-address { display:flex; align-items:flex-start; justify-content:center; flex-direction:column; border-left:1px solid rgba(255,255,255,.08); }.zw-address b { max-width:100%; margin:6px 0; overflow:hidden; color:#e7f5f0; font-size:13px; text-overflow:ellipsis; }.zw-address button { padding:0; color:#62e6b6; background:transparent; border:0; font-size:9px; font-weight:800; cursor:pointer; }.zw-main-actions { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,1fr); background:rgba(0,0,0,.13); border-top:1px solid rgba(255,255,255,.08); }.zw-main-actions button { display:grid; grid-template-columns:auto 1fr; gap:0 10px; align-items:center; padding:17px 23px; color:#fff; background:transparent; border:0; border-right:1px solid rgba(255,255,255,.08); text-align:left; cursor:pointer; }.zw-main-actions button:last-child { border-right:0; }.zw-main-actions button:hover { background:rgba(255,255,255,.05); }.zw-main-actions i { grid-row:1/3; width:34px; height:34px; display:grid; place-items:center; color:#07271d; background:#43e2aa; border-radius:10px; font-size:17px; font-style:normal; }.zw-main-actions span { font-size:11px; font-weight:850; }.zw-main-actions small { color:#86a49f; font-size:8px; }
.zw-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr); gap:16px; margin-top:17px; }.zw-panel { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-xs); }.zw-panel-head { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 19px; border-bottom:1px solid var(--line-soft); }.zw-panel-head > div > span { color:#00a86b; font-size:8px; font-weight:900; letter-spacing:.1em; }.zw-panel-head h2 { margin:3px 0 0; font-size:18px; }.zw-panel-head p { margin:3px 0 0; color:var(--muted); font-size:9px; }.zw-panel-head > small { color:var(--muted); font-size:9px; }.zw-panel-head > b { padding:4px 7px; color:#08784a; background:#eaf9f2; border-radius:6px; font-size:8px; }.zw-assets { padding:4px 18px 11px; }.zw-asset-row { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; padding:14px 2px; border-bottom:1px solid var(--line-soft); }.zw-asset-row:last-child { border:0; }.zw-asset-icon { --coin:#627eea; width:39px; height:39px; display:grid; place-items:center; color:#fff; background:var(--coin); border-radius:12px; font-size:11px; font-weight:900; }.zw-asset-row > span:nth-child(2),.zw-asset-row .right { display:flex; flex-direction:column; }.zw-asset-row b { font-size:11px; }.zw-asset-row small { color:var(--muted); font-size:9px; }.zw-skeleton { height:52px; margin:12px 0; background:linear-gradient(90deg,#f3f5f6,#fafbfb,#f3f5f6); border-radius:10px; animation:zwPulse 1.2s infinite; }.zw-load-error { padding:30px; text-align:center; }.zw-load-error p { color:var(--muted); font-size:10px; }
.zw-security-panel { padding-bottom:16px; }.zw-security-score { display:flex; align-items:center; gap:12px; margin:17px; padding:13px; background:#effaf6; border-radius:11px; }.zw-security-score > span { width:39px; height:39px; display:grid; place-items:center; background:conic-gradient(#19bd7c 0 88%,#cee8dd 88%); border-radius:50%; }.zw-security-score > span i { width:27px; height:27px; background:#fff; border-radius:50%; }.zw-security-score > div { display:flex; flex-direction:column; }.zw-security-score b { font-size:11px; }.zw-security-score small { color:#648078; font-size:8px; }.zw-security-panel ul { display:flex; flex-direction:column; gap:10px; margin:0 18px 17px; padding:0; list-style:none; }.zw-security-panel li { display:grid; grid-template-columns:auto 1fr; gap:8px; color:#53645f; font-size:9px; }.zw-security-panel li i { color:#0b9f67; font-style:normal; font-weight:900; }.zw-security-panel li.warn i { color:#d28d15; }.zw-security-panel > .btn { width:calc(100% - 36px); margin:0 18px; }
.zw-swap-panel,.zw-history-panel { margin-top:16px; overflow:hidden; }.zw-beta-badge { padding:5px 8px; color:#9a680e; background:#fff7e6; border:1px solid #f0d6a3; border-radius:6px; font-size:8px; font-weight:900; }.zw-swap-box { display:grid; grid-template-columns:1fr auto 1fr auto; gap:11px; align-items:end; padding:20px; background:#fafcfb; }.zw-swap-input { padding:11px; background:#fff; border:1px solid var(--line); border-radius:11px; }.zw-swap-input label { margin-bottom:6px; color:var(--muted); font-size:8px; }.zw-swap-input > div { display:grid; grid-template-columns:1fr auto; }.zw-swap-input input,.zw-swap-input select { min-height:34px; padding:4px 8px; border:0; }.zw-swap-input input { min-width:0; font-size:15px; font-weight:850; }.zw-swap-input select { font-size:10px; font-weight:850; }.zw-swap-input small { display:block; margin-top:4px; color:var(--muted); font-size:8px; }.zw-swap-flip { width:34px; height:34px; margin-bottom:21px; color:#08784a; background:#eaf9f2; border:0; border-radius:9px; font-size:15px; cursor:pointer; }.zw-swap-box > .btn { min-height:58px; }.zw-operator-list { padding:0 19px; }.zw-operator-empty,.zw-history-empty { padding:28px; color:var(--muted); text-align:center; }.zw-operator-empty b { color:#344054; font-size:11px; }.zw-operator-empty p { margin:4px 0 0; font-size:9px; }.zw-operator-row { display:grid; grid-template-columns:auto 1fr auto auto; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid var(--line-soft); }.zw-operator-logo { width:37px;height:37px;display:grid;place-items:center;color:#073426;background:#3de1a6;border-radius:11px;font-size:10px;font-weight:900; }.zw-operator-row > span:nth-child(2),.zw-operator-row .right { display:flex; flex-direction:column; }.zw-operator-row b { font-size:10px; }.zw-operator-row b em { margin-left:4px; padding:3px 5px; color:#08784a; background:#eaf9f2; border-radius:4px; font-size:6px; font-style:normal; }.zw-operator-row small { color:var(--muted); font-size:8px; }.zw-compliance-note { margin:15px 19px 19px; padding:11px 13px; color:#74572c; background:#fff9ee; border:1px solid #efddb9; border-radius:9px; font-size:9px; line-height:1.55; }
.zw-history { padding:0 19px 10px; }.zw-history-row { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; padding:13px 2px; border-bottom:1px solid var(--line-soft); }.zw-history-row > i { width:34px;height:34px;display:grid;place-items:center;color:#08784a;background:#eaf9f2;border-radius:10px;font-style:normal; }.zw-history-row > span { display:flex;flex-direction:column; }.zw-history-row b { color:#283640;font-size:10px; }.zw-history-row small { color:var(--muted);font-size:8px; }
.zw-modal { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:20px; background:rgba(4,20,22,.72); backdrop-filter:blur(7px); }.zw-modal-card { position:relative; width:min(460px,100%); max-height:calc(100vh - 40px); overflow-y:auto; padding:29px; background:#fff; border-radius:19px; box-shadow:0 35px 80px rgba(0,0,0,.3); }.zw-modal-close { position:absolute; top:15px; right:15px; width:30px;height:30px;color:#728078;background:#f1f4f3;border:0;border-radius:8px;font-size:18px;cursor:pointer; }.zw-step { color:#00a86b;font-size:8px;font-weight:900;letter-spacing:.11em; }.zw-modal-card h2 { margin:8px 35px 5px 0;font-size:25px; }.zw-modal-card > p { margin:0 0 18px;color:var(--muted);font-size:10px;line-height:1.6; }.zw-modal-card form { display:flex;flex-direction:column;gap:12px; }.zw-check { display:grid!important;grid-template-columns:auto 1fr;gap:8px;align-items:start;color:#66736f!important;font-size:9px!important;line-height:1.5; }.zw-check input { width:15px;height:15px;min-height:0;margin-top:1px;accent-color:#00a86b; }.zw-danger { margin:14px 0;padding:11px;color:#8a3338;background:#fff0f1;border:1px solid #efc5c8;border-radius:9px;font-size:9px;line-height:1.5; }.zw-seed-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:15px; }.zw-seed-grid span { display:flex;align-items:center;gap:7px;padding:9px;background:#f4f7f6;border-radius:7px; }.zw-seed-grid i { color:#8a9690;font-size:8px;font-style:normal; }.zw-seed-grid b { font-size:10px; }.zw-network-warning { margin:13px 0;padding:10px;border-radius:8px;font-size:9px;line-height:1.5; }.zw-network-warning.testnet { color:#74572c;background:#fff7e6;border:1px solid #f0d5a2; }.zw-network-warning.mainnet { color:#53645f;background:#eef7f3;border:1px solid #d3e9df; }.zw-input-unit { position:relative; }.zw-input-unit input { padding-right:55px; }.zw-input-unit span { position:absolute;right:10px;top:50%;color:var(--muted);font-size:9px;font-weight:800;transform:translateY(-50%); }.zw-fee-row { display:flex;justify-content:space-between;padding:10px;background:#f5f7f7;border-radius:8px;font-size:9px; }.zw-fee-row span { color:var(--muted); }.zw-receive-card { text-align:center; }.zw-receive-card > p { max-width:340px;margin:12px auto;color:var(--muted);font-size:9px;line-height:1.55; }.zw-receive-card > b { display:block;margin:12px 0;padding:11px;overflow:hidden;background:#f4f7f6;border-radius:8px;font-size:9px;text-overflow:ellipsis; }.zw-qr { width:230px;height:230px;display:grid;place-items:center;margin:18px auto 8px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:15px; }.zw-qr svg { width:100%;height:100%; }.zw-toast { position:fixed; left:50%; bottom:30px; z-index:300; max-width:min(420px,calc(100% - 30px)); padding:12px 17px; color:#fff; background:#0b302d; border-radius:10px; box-shadow:0 15px 40px rgba(0,0,0,.25); font-size:10px; opacity:0; pointer-events:none; transform:translate(-50%,20px); transition:.2s; }.zw-toast.show { opacity:1;transform:translate(-50%,0); }.zw-toast.error { background:#922f36; }.spinning i { animation:zwSpin .8s linear infinite; }.modal-open { overflow:hidden; }
@keyframes zwPulse { 50% { opacity:.5; } } @keyframes zwSpin { to { transform:rotate(360deg); } }
@media(max-width:900px){.zw-intro{grid-template-columns:1fr;padding:48px;}.zw-preview-card{max-width:560px;}.zw-dashboard-grid{grid-template-columns:1fr}.zw-swap-box{grid-template-columns:1fr auto 1fr}.zw-swap-box>.btn{grid-column:1/-1}.zw-principles{grid-template-columns:1fr 1fr}.zw-principles>div:last-child{grid-column:1/-1}}
@media(max-width:650px){.zw-shell{width:min(100% - 20px,1200px);padding-top:11px}.zw-intro{min-height:0;padding:31px 21px;border-radius:18px}.zw-intro-copy h1{font-size:41px}.zw-intro-actions{flex-direction:column}.zw-trust-row{gap:13px}.zw-preview-card{padding:15px}.zw-principles{grid-template-columns:1fr}.zw-principles>div:last-child{grid-column:auto}.zw-topbar{grid-template-columns:1fr auto}.zw-network-control{grid-row:2;grid-column:1/-1}.zw-network-control select{width:100%}.zw-balance-card{grid-template-columns:1fr}.zw-address{border-left:0;border-top:1px solid rgba(255,255,255,.08)}.zw-main-actions{grid-template-columns:1fr 1fr}.zw-main-actions button:nth-child(2){border-right:0}.zw-main-actions button:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.08)}.zw-swap-box{grid-template-columns:1fr}.zw-swap-flip{margin:0 auto;transform:rotate(90deg)}.zw-operator-row{grid-template-columns:auto 1fr}.zw-operator-row>.right,.zw-operator-row>.btn{grid-column:2}.zw-seed-grid{grid-template-columns:1fr 1fr}.zw-modal-card{padding:23px}.zw-qr{width:200px;height:200px}.zw-secure-required{align-items:flex-start;flex-direction:column;gap:3px}}
