/* 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; color: #dce7f5; background: rgba(6,17,32,.97); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 28px rgba(3,10,20,.16); backdrop-filter: blur(18px); }
.demo-ribbon { color: #aebed4; background: #030b18; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.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: 66px; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.brand-sign { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.brand-mark { width: 38px; height: 38px; display: block; flex: none; overflow: visible; }
.brand-mark rect { fill: #102845; stroke: rgba(255,255,255,.18); stroke-width: 1.4; }
.brand-z { fill: none; stroke: #f8fbff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-rise { fill: none; stroke: #42dca3; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { color: currentColor; font-size: 23px; font-weight: 850; letter-spacing: .13em; line-height: 1; }
.footer .brand-sign { color: var(--text-strong); }
.nav { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 1px; }
.nav-item { position: relative; display: flex; align-items: center; border-radius: 9px; }
.nav-link { min-width: max-content; padding: 9px 7px; border-radius: 8px; color: #b7c3d4; font-size: 13px; font-weight: 680; transition: .16s; }
.nav-home { width: 36px; min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.nav-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-home-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-item:hover > .nav-link,.nav-item:focus-within > .nav-link { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active > .nav-link { color: #fff; background: rgba(80,132,216,.19); box-shadow: inset 0 0 0 1px rgba(126,169,239,.12); }
.nav .nav-news { display: inline-flex; align-items: center; gap: 5px; }
.nav .nav-news span,.nav .nav-token span { padding: 2px 4px; color: #fff; background: #e5484d; border-radius: 4px; font-size: 7px; font-weight: 900; letter-spacing: .04em; }
.nav .nav-token { display: inline-flex; align-items: center; gap: 5px; color: #79e4bb; }
.nav .nav-token span { background: #0ba36b; }
.nav-product.active > .nav-token { color: #92f0cc; background: rgba(23,171,113,.15); }
.nav-menu-toggle { width: 18px; height: 30px; display: grid; place-items: center; margin-left: -5px; padding: 0; color: #71839b; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.nav-menu-toggle span { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s; }
.nav-item:hover .nav-menu-toggle,.nav-item:focus-within .nav-menu-toggle,.nav-item.menu-open .nav-menu-toggle { color: #dce8f7; }
.nav-item.menu-open .nav-menu-toggle span { transform: translateY(1px) rotate(225deg); }
.nav-dropdown { position: absolute; left: 0; top: calc(100% + 10px); z-index: 70; width: 238px; visibility: hidden; display: flex; flex-direction: column; gap: 2px; padding: 10px; opacity: 0; color: #d5e1ef; background: #0b1b30; border: 1px solid rgba(151,177,211,.2); border-radius: 12px; box-shadow: 0 22px 50px rgba(0,0,0,.34); transform: translateY(-5px); transition: opacity .15s,transform .15s,visibility .15s; }
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 11px; }
.nav-dropdown-right { left: auto; right: 0; }
.nav-item:hover > .nav-dropdown,.nav-item:focus-within > .nav-dropdown,.nav-item.menu-open > .nav-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-dropdown .nav-dropdown-label { padding: 5px 9px 7px; color: #7087a5; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.nav-dropdown a { padding: 8px 9px; color: #c2cfdf; border-radius: 7px; font-size: 12px; font-weight: 650; }
.nav-dropdown a:hover,.nav-dropdown a:focus { color: #fff; background: rgba(107,151,219,.14); outline: 0; }
.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; }
.header-search-toggle .search-icon { position: relative; left: auto; top: auto; display: block; transform: none; }
.header-search-panel { background: #081528; border-top: 1px solid rgba(255,255,255,.07); }
.header-search-form { position: relative; max-width: 620px; padding-top: 11px; padding-bottom: 13px; }
.header-search-form input { min-height: 38px; padding: 8px 58px 8px 39px; color: #edf5ff; background: #0f2036; border-color: #28405d; }
.header-search-form input::placeholder { color: #7f91aa; }
.header-search-form input:focus { border-color: #5f8ed6; box-shadow: 0 0 0 3px rgba(72,126,210,.18); }
.header-search-form kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-53%); padding: 2px 6px; color: #8798af; background: #081528; border: 1px solid #2c4059; border-bottom-width: 2px; border-radius: 5px; font-size: 9px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 10px; color: #dce7f5; line-height: 1.2; border-left: 1px solid rgba(255,255,255,.12); }
.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; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: .16s; }
.icon-button:hover { color: var(--accent); border-color: #7699d0; background: var(--accent-soft); }
.topbar .icon-button { position: relative; min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; color: #b9c8da; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); border-radius: 9px; cursor: pointer; transition: .16s; }
.topbar .icon-button:hover,.topbar .icon-button.active { color: #fff; border-color: rgba(128,174,241,.5); background: rgba(79,130,207,.16); }
.theme-toggle { font-size: 19px; line-height: 1; }
.theme-sun { display: none; font-size: 16px; }
html[data-theme="dark"] .theme-moon { display: none; }
html[data-theme="dark"] .theme-sun { display: inline; }
.topbar .btn-ghost { color: #d8e3f1; border-color: rgba(255,255,255,.15); }
.topbar .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.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 #071325; border-radius: 20px; font-size: 9px; font-weight: 800; }
.burger { 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-link { padding-inline: 6px; font-size: 12px; }
    .topbar-inner { gap: 9px; }
    .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: 1100px) {
    .nav { display: none; }
    .nav.open { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; max-height: min(72vh,650px); padding: 10px 12px 14px; overflow-y: auto; background: #081528; border: 1px solid rgba(255,255,255,.1); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 24px 50px rgba(0,0,0,.36); }
    .topbar-inner { position: relative; }
    .topbar-right { margin-left: auto; }
    .nav-item { display: grid; grid-template-columns: 1fr auto; width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
    .nav-item:last-child { border-bottom: 0; }
    .nav-link { grid-column: 1; padding: 11px 10px; font-size: 13px; }
    .nav-home { width: auto; min-width: 0; height: auto; justify-content: flex-start; gap: 9px; }
    .nav-home svg { width: 17px; height: 17px; }
    .nav-home-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
    .nav-menu-toggle { grid-column: 2; grid-row: 1; width: 42px; height: 42px; margin: 0; }
    .nav-dropdown,.nav-dropdown-right { position: static; grid-column: 1 / -1; width: 100%; display: none; visibility: visible; gap: 1px; margin: 0 0 9px; padding: 6px 8px 9px; opacity: 1; background: rgba(255,255,255,.035); border: 0; border-radius: 9px; box-shadow: none; transform: none; transition: none; }
    .nav-dropdown::before { display: none; }
    .nav-item:hover > .nav-dropdown,.nav-item:focus-within > .nav-dropdown { display: none; }
    .nav-item.menu-open > .nav-dropdown { display: flex; }
    .nav-dropdown a { padding: 9px 10px; }
    .burger { width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; cursor: pointer; }
    .burger span { width: 16px; height: 2px; background: #d7e3f1; 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; }
    .header-search-form { width: min(100% - 24px,620px); }
    .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-mark { width: 34px; height: 34px; }
    .brand-word { font-size: 19px; letter-spacing: .1em; }
    .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}}

/* ZIRIX NEWSROOM */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.nav .nav-news{display:inline-flex;align-items:center;gap:5px}.nav .nav-news span{padding:2px 5px;color:#fff;background:#e5484d;border-radius:4px;font-size:7px;font-weight:900;letter-spacing:.06em}.nav .nav-news.active{color:#9e2530;background:#fff0f1}
.news-market-tape{width:100%;overflow:hidden;color:#dce9f8;background:#06162c;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.1)}.news-market-tape-track{width:max-content;display:flex;animation:newsMarketTape 42s linear infinite}.news-market-tape:hover .news-market-tape-track{animation-play-state:paused}.news-market-tape-set{display:flex;align-items:center;padding-right:28px}.news-tape-quote{min-width:max-content;display:grid;grid-template-columns:auto auto auto;gap:9px;align-items:center;padding:10px 16px;border-right:1px solid rgba(255,255,255,.09);font-size:9px}.news-tape-quote:hover{background:rgba(255,255,255,.06)}.news-tape-quote>span{color:#91a8c4;font-weight:900;letter-spacing:.05em}.news-tape-quote b{color:#fff}.news-tape-quote em{font-style:normal;font-weight:850}.news-tape-quote .up,.news-market-row .up{color:#42dba3}.news-tape-quote .down,.news-market-row .down{color:#ff7479}@keyframes newsMarketTape{to{transform:translateX(-50%)}}
.news-shell,.news-article-shell{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:28px 0 70px}.news-hero{min-height:310px;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);gap:46px;align-items:center;padding:48px 55px;color:#fff;background:radial-gradient(circle at 82% 20%,rgba(63,121,255,.22),transparent 30%),linear-gradient(132deg,#07162d 0,#0b2547 60%,#0a3152 100%);border-radius:22px;box-shadow:0 24px 60px rgba(8,31,62,.18)}
.news-kicker{display:inline-flex;align-items:center;gap:9px;color:#8fb7ff;font-size:11px;font-weight:900;letter-spacing:.14em}.news-kicker i{width:7px;height:7px;background:#4ee0a3;border-radius:50%;box-shadow:0 0 0 5px rgba(78,224,163,.13)}.news-hero h1{margin:17px 0 15px;color:#fff;font-size:clamp(38px,5vw,66px);line-height:.98;letter-spacing:-.055em}.news-hero h1 em{color:#79a9ff;font-style:normal}.news-hero p{max-width:720px;margin:0;color:#b2c4dc;font-size:15px;line-height:1.72}
.news-pulse-card{padding:24px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.13);border-radius:16px;backdrop-filter:blur(10px)}.news-pulse-card>span,.news-pulse-card>strong,.news-pulse-card>small{display:block}.news-pulse-card>span{color:#91a8c4;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.news-pulse-card>strong{margin:5px 0 18px;font-size:23px}.news-pulse-card>small{margin-top:9px;color:#849bb5;font-size:9px}.news-pulse-line{display:flex;align-items:center;gap:8px;color:#d9e7f5;font-size:10px}.news-pulse-line i{width:8px;height:8px;background:#36d89b;border-radius:50%;box-shadow:0 0 0 5px rgba(54,216,155,.12)}
.news-categories{display:flex;gap:7px;overflow-x:auto;margin:18px 0;padding:3px 1px 6px;scrollbar-width:thin}.news-categories a{min-width:max-content;display:flex;align-items:center;gap:8px;padding:10px 13px;color:#526071;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:750;box-shadow:var(--shadow-xs)}.news-categories a:hover,.news-categories a.active{color:#1749b5;background:#edf4ff;border-color:#b8cdf7}.news-categories b{min-width:23px;padding:2px 5px;color:#758196;background:#eef2f6;border-radius:5px;text-align:center;font-size:8px}.news-categories a.active b{color:#1749b5;background:#dbe8ff}
.news-filterbar{display:grid;grid-template-columns:minmax(260px,1fr) 270px auto auto;gap:9px;margin-bottom:18px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow-xs)}.news-filterbar label{margin:0}.news-search-field{position:relative}.news-search-field input{padding-left:39px}
.news-featured{--news-accent:#2563eb;display:grid;grid-template-columns:minmax(310px,.72fr) minmax(0,1.28fr);min-height:330px;overflow:hidden;margin-bottom:20px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.news-featured-visual{position:relative;display:grid;place-items:center;overflow:hidden;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--news-accent) 86%,#061529),#061529)}.news-watermark{position:absolute;left:-12px;bottom:14px;color:rgba(255,255,255,.08);font-size:66px;font-weight:950;letter-spacing:-.06em;white-space:nowrap}.news-source-orb{width:86px;height:86px;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:28px;font-size:38px;font-weight:950;box-shadow:0 20px 50px rgba(0,0,0,.2);backdrop-filter:blur(9px)}.news-chart-lines{position:absolute;inset:22px}.news-chart-lines i{position:absolute;left:0;right:0;height:1px;background:rgba(255,255,255,.07)}.news-chart-lines i:nth-child(1){top:0}.news-chart-lines i:nth-child(2){top:25%}.news-chart-lines i:nth-child(3){top:50%}.news-chart-lines i:nth-child(4){top:75%}.news-chart-lines i:nth-child(5){bottom:0}.news-featured>article{display:flex;flex-direction:column;justify-content:center;padding:38px 45px}.news-featured h2{margin:15px 0 12px;font-size:clamp(26px,3.2vw,39px);line-height:1.08}.news-featured h2 a:hover{color:var(--news-accent)}.news-featured p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.news-featured-actions{display:flex;align-items:center;gap:18px;margin-top:23px}.news-origin-link{color:#667085;font-size:11px;font-weight:750}.news-origin-link:hover{color:var(--news-accent)}
.news-meta{display:flex;align-items:center;gap:8px;color:#7b8797;font-size:9px;font-weight:650}.news-meta>*:not(:first-child)::before{content:"·";margin-right:8px;color:#c0c7d0}.news-category{display:inline-flex;align-items:center;padding:4px 7px;color:#1749b5;background:#edf4ff;border-radius:5px;font-size:8px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.news-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.news-stream,.news-side-card,.news-related{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-xs)}.news-section-head{min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 21px;border-bottom:1px solid var(--line-soft)}.news-section-head span,.news-side-label{color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.12em}.news-section-head h2{margin:4px 0 0;font-size:21px}.news-section-head>b{color:#7a8697;font-size:9px}
.news-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:15px;align-items:start;padding:20px 21px;border-bottom:1px solid var(--line-soft);transition:.16s}.news-row:last-child{border-bottom:0}.news-row:hover{background:#fbfcff}.news-row-mark{--news-accent:#2563eb;width:51px;height:51px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--news-accent),#0a1b36);border-radius:14px;font-size:19px;font-weight:950}.news-row h3{margin:6px 0 5px;font-size:16px;line-height:1.28}.news-row h3 a:hover{color:#2563eb}.news-row p{display:-webkit-box;margin:0 0 7px;overflow:hidden;color:#687487;font-size:10px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.news-row time{color:#98a2b3;font-size:9px}.news-row-arrow{align-self:center;width:32px;height:32px;display:grid;place-items:center;color:#8590a0;background:#f4f6f8;border-radius:9px;font-size:15px}.news-row:hover .news-row-arrow{color:#1749b5;background:#edf4ff}
.news-pagination{min-height:68px;display:grid;grid-template-columns:1fr auto 1fr;gap:15px;align-items:center;padding:14px 21px;border-top:1px solid var(--line-soft)}.news-pagination a{color:#2563eb;font-size:10px;font-weight:800}.news-pagination a:last-child{text-align:right}.news-pagination a.disabled{color:#aeb6c1;pointer-events:none}.news-pagination span{padding:6px 10px;color:#647184;background:#f3f6f9;border-radius:7px;font-size:9px}
.news-sidebar{display:flex;flex-direction:column;gap:15px}.news-side-card{padding:21px}.news-side-card h3{margin:6px 0 13px;font-size:18px}.news-side-card>a{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}.news-side-card>a:last-child{border-bottom:0}.news-side-card>a>span{display:flex;flex-direction:column}.news-side-card>a b{font-size:11px}.news-side-card>a small{color:#8a95a4;font-size:8px}.news-side-card>a em{min-width:27px;padding:4px;color:#637083;background:#f2f5f8;border-radius:6px;text-align:center;font-size:8px;font-style:normal}.news-source-card p{color:#738091;font-size:9px;line-height:1.65}.news-source-card>div{display:flex;flex-wrap:wrap;gap:5px}.news-source-card>div span{padding:5px 7px;color:#59677a;background:#f3f6f9;border-radius:6px;font-size:8px;font-weight:700}.news-empty{min-height:360px;display:grid;place-items:center;align-content:center;padding:45px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px}.news-empty>div{width:58px;height:58px;display:grid;place-items:center;color:#2563eb;background:#edf4ff;border-radius:18px;font-size:28px}.news-empty h2{margin:15px 0 5px}.news-empty p{max-width:500px;color:var(--muted)}
.news-markets-card{overflow:hidden;padding:0}.news-markets-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px 20px 8px}.news-markets-head h3{margin-bottom:0}.news-markets-head>i{width:8px;height:8px;margin-top:4px;background:#31cf96;border-radius:50%;box-shadow:0 0 0 5px rgba(49,207,150,.12)}.news-market-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:8px 16px 4px;padding:4px;background:#f1f4f8;border-radius:9px}.news-market-tabs button{padding:7px 4px;color:#7b8797;background:transparent;border:0;border-radius:6px;font-size:8px;font-weight:850;cursor:pointer}.news-market-tabs button.active{color:#1749b5;background:#fff;box-shadow:0 2px 8px rgba(17,40,75,.08)}.news-market-panel{padding:4px 17px}.news-market-panel[hidden]{display:none}.news-side-card .news-market-row{grid-template-columns:minmax(62px,1fr) 72px auto;gap:8px;min-height:55px;padding:9px 2px}.news-market-row>span{min-width:0}.news-market-row>span:first-child small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.news-market-row .right{align-items:flex-end}.news-market-row .right b{font-size:9px}.news-market-row svg{width:72px;height:28px;overflow:visible;color:#2477da}.news-market-row svg polyline{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.news-market-row svg.up{color:#18a66d}.news-market-row svg.down{color:#df5158}.news-market-row[data-feed-state="simulated"]{opacity:.68}.news-market-row[data-feed-state="stale"]{opacity:.82}.news-market-note{margin:3px 16px 0;padding:11px 0 16px;color:#8a95a4;border-top:1px solid var(--line-soft);font-size:7px;line-height:1.55}.news-market-note span{color:#526171;font-weight:800}
.news-tone-markets{--news-accent:#2563eb}.news-tone-economy{--news-accent:#6d5bd0}.news-tone-business{--news-accent:#0c9b61}.news-tone-crypto{--news-accent:#e5911b}.news-tone-technology{--news-accent:#00a2c7}.news-tone-politics{--news-accent:#d14b62}.news-tone-commodities{--news-accent:#9b6c32}
.news-translation-line{margin-top:9px}.news-translation-line i{background:#79a9ff;box-shadow:0 0 0 5px rgba(121,169,255,.12)}.news-translated{color:#14724c!important;font-weight:850}.news-featured-visual::after,.news-article-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,18,39,.04),rgba(5,18,39,.38));pointer-events:none}.news-featured-image,.news-article-cover>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}.news-featured-visual .news-watermark{z-index:2;text-shadow:0 2px 22px rgba(0,0,0,.35)}.news-image-credit{position:absolute;right:13px;bottom:12px;z-index:3;padding:5px 8px;color:#fff;background:rgba(5,18,39,.66);border:1px solid rgba(255,255,255,.15);border-radius:6px;font-size:7px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;backdrop-filter:blur(8px)}.news-visual-symbol{position:absolute;left:50%;top:50%;z-index:3;min-width:86px;height:86px;display:grid;place-items:center;padding:0 20px;color:#fff;background:color-mix(in srgb,var(--news-accent) 82%,rgba(5,18,39,.7));border:1px solid rgba(255,255,255,.35);border-radius:28px;box-shadow:0 20px 55px rgba(0,0,0,.32);font-size:38px;font-weight:950;transform:translate(-50%,-50%);backdrop-filter:blur(9px)}.news-row-mark{position:relative;overflow:hidden}.news-row-mark img{width:100%;height:100%;display:block;object-fit:cover}.news-row-mark span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(6,21,41,.34);font-size:18px;font-weight:950;text-shadow:0 2px 9px rgba(0,0,0,.6)}.news-article-cover{position:relative;height:min(48vw,430px);min-height:270px;overflow:hidden;background:#07162d}.news-article-cover .news-visual-symbol{min-width:112px;height:112px;border-radius:34px;font-size:49px}.news-original{margin-top:21px;padding-top:17px;border-top:1px solid var(--line-soft)}.news-original summary{cursor:pointer;color:#526071;font-size:10px;font-weight:800}.news-original p{margin-top:9px!important;color:#7c8797!important;font-size:13px!important;font-style:italic}.news-related-image{width:100%;height:105px;display:block;margin:0 0 14px;object-fit:cover;background:#07162d;border-radius:10px}.news-related-grid article{overflow:hidden}
.news-article-shell{max-width:1040px}.breadcrumbs{display:flex;gap:8px;margin:2px 0 16px;color:#718096;font-size:10px}.breadcrumbs a:hover{color:#2563eb}.news-article-card{--news-accent:#2563eb;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}.news-article-card>header{padding:52px 64px;color:#fff;background:radial-gradient(circle at 85% 10%,color-mix(in srgb,var(--news-accent) 40%,transparent),transparent 35%),linear-gradient(135deg,#07162d,#0a284b)}.news-article-card>header .news-category{color:#fff;background:color-mix(in srgb,var(--news-accent) 72%,transparent)}.news-article-card>header .news-meta{color:#bed0e3}.news-article-card>header .news-meta a:hover{color:#fff}.news-article-card h1{max-width:850px;margin:20px 0 18px;color:#fff;font-size:clamp(34px,5vw,58px);line-height:1.02}.news-article-card>header time{color:#91a9c2;font-size:11px}.news-article-summary{padding:41px 64px}.news-article-summary>span{color:var(--news-accent);font-size:9px;font-weight:900;letter-spacing:.13em}.news-article-summary p{margin:10px 0 0;color:#344054;font-size:18px;line-height:1.65}.news-attribution{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;margin:0 64px;padding:19px;background:#f5f8fb;border:1px solid #e7edf3;border-radius:13px}.news-attribution .news-source-orb{width:46px;height:46px;color:#fff;background:linear-gradient(145deg,var(--news-accent),#0a1b36);border:0;border-radius:13px;font-size:19px;box-shadow:none}.news-attribution>div:nth-child(2){display:flex;flex-direction:column}.news-attribution span{color:#8a95a5;font-size:8px}.news-attribution b{font-size:11px}.news-article-card>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 64px 38px}.news-article-card>footer p{max-width:660px;margin:0;color:#8590a0;font-size:9px;line-height:1.6}.news-related{margin-top:19px;overflow:hidden}.news-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.news-related-grid article{padding:22px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}.news-related-grid article:nth-child(3n){border-right:0}.news-related-grid h3{margin:10px 0 14px;font-size:14px;line-height:1.35}.news-related-grid h3 a:hover{color:#2563eb}
@media(max-width:1080px){.news-layout{grid-template-columns:1fr}.news-sidebar{display:grid;grid-template-columns:1fr 1fr}.news-featured{grid-template-columns:300px 1fr}.news-hero{grid-template-columns:1fr 280px;padding:42px}.topbar-inner{gap:8px}.nav-link{padding:8px 6px;font-size:12px}}
@media(max-width:760px){.news-shell,.news-article-shell{width:min(100% - 20px,1240px);padding-top:12px}.news-hero{min-height:0;grid-template-columns:1fr;gap:25px;padding:30px 24px;border-radius:17px}.news-hero h1{font-size:42px}.news-filterbar{grid-template-columns:1fr}.news-featured{grid-template-columns:1fr}.news-featured-visual{min-height:210px}.news-featured>article{padding:27px 23px}.news-sidebar{grid-template-columns:1fr}.news-row{grid-template-columns:62px minmax(0,1fr);gap:11px;padding:17px 14px}.news-row-mark{width:58px;height:58px;border-radius:11px}.news-row-arrow{display:none}.news-related-grid{grid-template-columns:1fr}.news-related-grid article{border-right:0}.news-article-cover{height:230px;min-height:230px}.news-article-cover .news-visual-symbol{min-width:78px;height:78px;border-radius:24px;font-size:34px}.news-article-card>header,.news-article-summary{padding:32px 24px}.news-article-card h1{font-size:35px}.news-article-summary p{font-size:15px}.news-attribution{grid-template-columns:auto 1fr;margin:0 24px}.news-attribution .btn{grid-column:1/-1}.news-article-card>footer{align-items:flex-start;flex-direction:column;padding:25px 24px 31px}.news-market-tape-track{animation-duration:34s}.news-tape-quote{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.news-market-tape-track{animation:none}.news-market-tape{overflow-x:auto}}

/* Global dark theme */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07101d;
    --bg-soft: #0a1625;
    --surface: #0f1c2c;
    --surface-2: #142337;
    --surface-3: #1a2c42;
    --line: #26394f;
    --line-soft: #1c3045;
    --text: #dce6f2;
    --text-strong: #f6f9fd;
    --muted: #9aabc0;
    --muted-2: #72859d;
    --yes: #37d69a;
    --yes-dark: #55dfaa;
    --yes-soft: #103428;
    --no: #ff7078;
    --no-dark: #ff8a90;
    --no-soft: #3b1f29;
    --accent: #6b9ff4;
    --accent-dark: #92b9ff;
    --accent-soft: #182d4d;
    --warn: #f1b75f;
    --warn-soft: #3b2d18;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
    --shadow: 0 14px 34px rgba(0,0,0,.28);
    --shadow-lg: 0 26px 64px rgba(0,0,0,.36);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] input::placeholder { color: var(--muted-2); }
html[data-theme="dark"] label { color: var(--text); }
html[data-theme="dark"] :is(.featured-market,.market-stats,.insight-card,.tool-card,.catalog-filters,.stat,.footer,.watch-drawer,.watch-item-media,.x-ticker,.x-discovery-card,.x-market-table-wrap,.x-terminal,.x-wallet-action-card,.x-safety-card,.x-network-list,.zw-principles>div,.zw-unlock-card,.zw-network-control,.zw-icon-button,.zw-panel,.zw-modal-card,.zw-swap-input,.news-categories a,.news-filterbar,.news-featured,.news-stream,.news-side-card,.news-related,.news-empty,.news-article-card) {
    color: var(--text); background: var(--surface); border-color: var(--line);
}
html[data-theme="dark"] :is(.chip,.tool-button,.market-image) { color: var(--text); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-dark):not(.btn-yes):not(.btn-no):not(.btn-ghost):not(.x-btn-green):not(.x-btn-glass):not(.zw-primary):not(.x-submit-long):not(.x-submit-short) { color: var(--text); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] :is(.btn:hover,.chip:hover,.tool-button:hover) { border-color: #49698e; }
html[data-theme="dark"] .btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
html[data-theme="dark"] .btn-dark { color: #fff; background: #142946; border-color: #29496f; }
html[data-theme="dark"] .btn-yes { color: #fff; background: #0b8f5c; border-color: #0b8f5c; }
html[data-theme="dark"] .btn-no { color: #fff; background: #c6454c; border-color: #c6454c; }
html[data-theme="dark"] .chip.active { color: #fff; background: #24476d; border-color: #3f6895; }
html[data-theme="dark"] :is(.table-hover tbody tr:hover,.x-ticker a:hover,.x-market-table tbody tr:hover,.news-row:hover) { background: var(--surface-2); }
html[data-theme="dark"] :is(.chart-toolbar button.active,.seg button.on,.x-segment button.active,.x-action-tabs button.active,.news-market-tabs button.active) { color: var(--text-strong); background: var(--surface-3); }
html[data-theme="dark"] :is(.x-market-table th,.x-watch-panel,.x-order-panel,.x-action-tabs,.x-segment,.x-order-summary,.x-fee-preview,.zw-swap-box,.zw-fee-row,.zw-seed-grid span,.zw-receive-card>b,.news-market-tabs,.news-pagination span,.news-side-card>a em,.news-source-card>div span,.news-row-arrow) { color: var(--text); background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] :is(.featured-label,.mcard-foot b,.closing-title b,.catalog-tip b,.x-ticker span,.x-ticker b,.x-main-price b,.x-specs dd,.x-order-summary b,.x-fee-preview b,.news-article-summary p,.news-market-note span,.zw-operator-empty b,.zw-history-row b) { color: var(--text-strong); }
html[data-theme="dark"] :is(.x-session,.news-origin-link,.news-row p,.news-source-card p,.news-side-card>a small,.news-pagination span,.news-row-arrow,.news-meta,.breadcrumbs) { color: var(--muted); }
html[data-theme="dark"] .x-terminal-body,html[data-theme="dark"] .zw-body { background: var(--bg); }
html[data-theme="dark"] .x-risk-card { color: var(--text); background: #102d27; border-color: #235044; }
html[data-theme="dark"] .x-risk-card p { color: #a6bdb6; }
html[data-theme="dark"] .x-risk-gauge::before { color: #66e3b4; background: var(--surface); }
html[data-theme="dark"] .x-watch-list>a.active { background: #12382d; }
html[data-theme="dark"] .x-watch-list>a:hover { background: var(--surface-2); }
html[data-theme="dark"] .x-legal-note,html[data-theme="dark"] .zw-compliance-note { color: #e8c98c; background: #352a19; border-color: #5d4928; }
html[data-theme="dark"] .x-address-box { background: #102b25; border-color: #285047; }
html[data-theme="dark"] .x-address-box button { color: #62deb0; background: var(--surface); border-color: #315e52; }
html[data-theme="dark"] .zw-security-score,html[data-theme="dark"] .zw-local-proof { color: #b9d6cc; background: #102e27; border-color: #245044; }
html[data-theme="dark"] .zw-security-score>span i { background: var(--surface); }
html[data-theme="dark"] .zw-security-panel li { color: #b3c2d0; }
html[data-theme="dark"] .zw-skeleton { background: linear-gradient(90deg,#162538,#203149,#162538); }
html[data-theme="dark"] .zw-modal-close { color: var(--muted); background: var(--surface-2); }
html[data-theme="dark"] .zw-check { color: var(--muted)!important; }
html[data-theme="dark"] .news-categories b { color: var(--muted); background: var(--surface-3); }
html[data-theme="dark"] .news-categories a:hover,html[data-theme="dark"] .news-categories a.active { color: #a9c8ff; background: #172f52; border-color: #3e6395; }
html[data-theme="dark"] .news-category { color: #a9c8ff; background: #172f52; }
html[data-theme="dark"] .news-attribution { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .footer .brand-mark rect { fill: #102845; }

/* ZIRIX Market Lens 0.10 — analytical market map */
.market-lens-body,.market-terminal-body {
    --market-ink:#11182b;
    --market-panel:#fff;
    --market-panel-2:#f5f7fb;
    --market-line:#e2e8f1;
    --market-muted:#748096;
    --market-grid:rgba(86,105,139,.15);
    --market-blue:#427bf2;
    --market-violet:#8c6cf0;
    --market-cyan:#35c6dc;
    background:
        radial-gradient(circle at 8% 12%,rgba(90,125,245,.10),transparent 27rem),
        radial-gradient(circle at 92% 35%,rgba(81,211,191,.08),transparent 28rem),var(--bg);
}
html[data-theme="dark"] :is(.market-lens-body,.market-terminal-body) {
    --market-ink:#f4f7fb;
    --market-panel:#0d1a2b;
    --market-panel-2:#121f32;
    --market-line:#23364d;
    --market-muted:#8495ad;
    --market-grid:rgba(134,154,188,.16);
    --market-blue:#6c9eff;
    --market-violet:#a98cff;
    --market-cyan:#4ed7e9;
}
.market-lens { padding:22px 0 70px; }
.market-lens-hero {
    position:relative; min-height:405px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(410px,.8fr);
    gap:45px; align-items:center; overflow:hidden; padding:56px 64px; color:#d9e6fa;
    background:
        linear-gradient(112deg,rgba(6,15,31,.98),rgba(12,34,65,.95)),
        radial-gradient(circle at 80% 30%,rgba(53,198,220,.45),transparent 35%);
    border:1px solid rgba(145,174,221,.22); border-radius:25px; box-shadow:0 28px 80px rgba(7,19,40,.22);
}
.market-lens-hero::before { content:""; position:absolute; inset:0; opacity:.34; background-image:linear-gradient(rgba(137,168,219,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(137,168,219,.09) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(90deg,transparent,black 45%,black); }
.market-lens-copy { position:relative; z-index:1; }
.market-lens-kicker { display:inline-flex; align-items:center; gap:9px; color:#81e5db; font-size:10px; font-weight:900; letter-spacing:.17em; }
.market-lens-kicker i { width:8px; height:8px; background:#39d8b2; border-radius:50%; box-shadow:0 0 0 6px rgba(57,216,178,.13); }
.market-lens-hero h1 { max-width:680px; margin:19px 0 18px; color:#fff; font-size:clamp(43px,5.6vw,76px); line-height:.96; letter-spacing:-.055em; }
.market-lens-hero h1 em { color:#8db5ff; font-style:normal; }
.market-lens-hero p { max-width:650px; color:#aebed5; font-size:16px; line-height:1.7; }
.market-lens-meta { display:flex; flex-wrap:wrap; gap:9px; margin-top:27px; }
.market-lens-meta span { display:flex; align-items:baseline; gap:6px; padding:8px 11px; color:#a9b9ce; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.09); border-radius:8px; font-size:10px; }
.market-lens-meta b { color:#fff; font-size:13px; }
.market-orbit { position:relative; z-index:1; width:360px; height:300px; margin:auto; }
.market-orbit::before,.market-orbit::after { content:""; position:absolute; inset:33px 52px; border:1px dashed rgba(126,175,241,.27); border-radius:50%; transform:rotate(-12deg); }
.market-orbit::after { inset:72px 13px; border-color:rgba(72,221,197,.2); transform:rotate(22deg); }
.orbit-core { position:absolute; left:50%; top:50%; z-index:2; width:126px; height:126px; display:grid; place-items:center; align-content:center; transform:translate(-50%,-50%); background:radial-gradient(circle at 35% 25%,#315b96,#10233f 70%); border:1px solid rgba(148,191,246,.42); border-radius:50%; box-shadow:0 0 0 14px rgba(64,111,181,.08),0 28px 55px rgba(0,0,0,.35); }
.orbit-core span { color:#8ba2c2; font-size:8px; font-weight:900; letter-spacing:.18em; }
.orbit-core b { color:#fff; font-size:21px; letter-spacing:.08em; }
.orbit-core small { color:#71e4c3; font-size:10px; }
.orbit-node { position:absolute; z-index:3; min-width:105px; display:grid; grid-template-columns:35px 1fr; grid-template-rows:auto auto; gap:0 8px; align-items:center; padding:10px; color:#dce9f8; background:rgba(12,31,55,.92); border:1px solid rgba(137,176,228,.22); border-radius:13px; box-shadow:0 13px 28px rgba(0,0,0,.25); transition:.18s; }
.orbit-node:hover { border-color:#65d9c7; transform:translateY(-3px); }
.orbit-node>span { grid-row:1/3; width:35px; height:35px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#3371d8,#7555c6); border-radius:10px; font-weight:900; }
.orbit-node b { font-size:10px; }.orbit-node small { color:#8093ae; font-size:7px; }
.orbit-crypto { left:3px; top:43px; }.orbit-equity { right:0; top:26px; }.orbit-funds { left:8px; bottom:20px; }.orbit-raw { right:2px; bottom:36px; }
.orbit-crypto>span { background:linear-gradient(145deg,#f6a732,#bd5a14); }.orbit-funds>span { background:linear-gradient(145deg,#8769ef,#5140a5); }.orbit-raw>span { background:linear-gradient(145deg,#2ab49e,#176b6a); }

.market-class-nav { position:sticky; top:97px; z-index:20; display:flex; align-items:center; gap:5px; margin:17px 0; padding:7px; overflow-x:auto; background:color-mix(in srgb,var(--market-panel) 92%,transparent); border:1px solid var(--market-line); border-radius:14px; box-shadow:0 12px 35px rgba(8,24,47,.08); backdrop-filter:blur(16px); }
.market-class-nav a { flex:1 0 auto; display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:8px 13px; color:var(--market-muted); border-radius:9px; font-size:11px; font-weight:750; transition:.16s; }
.market-class-nav a small { min-width:21px; padding:2px 5px; color:var(--market-muted); background:var(--market-panel-2); border-radius:5px; text-align:center; font-size:8px; }
.market-class-nav a:hover { color:var(--market-ink); background:var(--market-panel-2); }
.market-class-nav a.active { color:#fff; background:linear-gradient(110deg,#315ec7,#7654d3); box-shadow:0 7px 18px rgba(62,91,190,.26); }
.market-class-nav a.active small { color:#dce6ff; background:rgba(255,255,255,.15); }
.market-class-nav .events-link { flex:0 0 auto; border-left:1px solid var(--market-line); border-radius:0 8px 8px 0; }

.market-pulse-grid { display:grid; grid-template-columns:1.15fr 1fr 1fr 1fr; gap:13px; margin:0 0 17px; }
.pulse-card { min-height:222px; padding:20px; color:var(--market-ink); background:var(--market-panel); border:1px solid var(--market-line); border-radius:17px; box-shadow:0 8px 25px rgba(12,29,55,.045); }
.pulse-card-head { display:flex; align-items:center; justify-content:space-between; gap:9px; color:var(--market-muted); font-size:9px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.pulse-card-head i { overflow:hidden; font-size:7px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.pulse-cap>b { display:block; margin:28px 0 2px; color:var(--market-ink); font-size:34px; letter-spacing:-.04em; }
.pulse-cap>small { font-size:10px; font-weight:800; }
.pulse-cap-share { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:25px; }
.pulse-cap-share span { position:relative; overflow:hidden; display:flex; justify-content:space-between; padding:10px; color:var(--market-muted); background:var(--market-panel-2); border-radius:8px; font-size:9px; }
.pulse-cap-share b { color:var(--market-ink); }
.lens-gauge { --score:50; position:relative; width:116px; height:58px; margin:26px auto 5px; overflow:hidden; }
.lens-gauge::before { content:""; position:absolute; inset:0; border:13px solid transparent; border-bottom:0; border-radius:116px 116px 0 0; background:conic-gradient(from 270deg at 50% 100%,#ff6577 0 25%,#f4bd50 25% 52%,#25d69f 52% 100%) border-box; mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0); mask-composite:exclude; }
.lens-gauge::after { content:""; position:absolute; left:50%; bottom:-2px; width:45px; height:2px; background:var(--market-ink); transform-origin:0 50%; transform:rotate(calc(-90deg + var(--score) * 1.8deg)); }
.lens-gauge>div { position:absolute; left:50%; bottom:0; transform:translateX(-50%); color:var(--market-ink); }.lens-gauge b { font-size:23px; }.lens-gauge small { color:var(--market-muted); font-size:8px; }
.pulse-gauge-card>strong,.pulse-alt-card>strong,.pulse-breadth-card>strong { display:block; text-align:center; font-size:12px; }
.gauge-legend { display:flex; justify-content:space-between; margin-top:20px; color:var(--market-muted); font-size:7px; }
.alt-balance { display:grid; grid-template-columns:auto 1fr auto; gap:7px; align-items:center; margin:31px 0 10px; color:var(--market-muted); font-size:8px; font-weight:850; }
.alt-balance div { --score:50; height:8px; padding:2px; background:linear-gradient(90deg,#f0a943,#657ad9 55%,#42d8bd); border-radius:5px; }
.alt-balance i { display:block; width:8px; height:8px; margin-top:-2px; margin-left:calc(var(--score) * 1% - 4px); background:#fff; border:2px solid #15223a; border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.pulse-alt-card>b { display:block; margin:0 0 0; text-align:center; font-size:30px; }.pulse-alt-card>small { display:block; margin-top:10px; color:var(--market-muted); text-align:center; font-size:8px; line-height:1.45; }
.breadth-ring { --score:50; width:88px; height:88px; display:grid; place-items:center; margin:19px auto 8px; background:radial-gradient(circle at center,var(--market-panel) 58%,transparent 59%),conic-gradient(#40caae calc(var(--score)*1%),var(--market-panel-2) 0); border-radius:50%; }
.breadth-ring b { color:var(--market-ink); font-size:17px; }.pulse-breadth-card>small { display:block; margin-top:8px; color:var(--market-muted); text-align:center; font-size:8px; }

.market-movers { display:grid; grid-template-columns:1fr 1fr .92fr; gap:13px; margin-bottom:17px; }
.mover-panel,.mover-context { padding:19px; background:var(--market-panel); border:1px solid var(--market-line); border-radius:17px; }
.mover-title { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; }.mover-title span { color:var(--market-muted); font-size:8px; font-weight:900; letter-spacing:.12em; }.mover-title b { font-size:12px; }
.mover-panel>a { display:grid; grid-template-columns:34px 1fr auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--market-line); }.mover-panel>a:last-child { border-bottom:0; }.mover-panel>a>span:nth-child(2) { display:flex; flex-direction:column; }.mover-panel>a b { font-size:10px; }.mover-panel>a small { color:var(--market-muted); font-size:8px; }.mover-panel>a strong { font-size:10px; }
.market-token { width:34px; height:34px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--token),color-mix(in srgb,var(--token) 48%,#071325)); border:1px solid color-mix(in srgb,var(--token) 55%,#fff); border-radius:10px; box-shadow:0 5px 12px color-mix(in srgb,var(--token) 22%,transparent); font-size:11px; font-weight:900; }
.mover-context { color:#dbe8fa; background:linear-gradient(140deg,#112743,#172c50 58%,#27355f); border-color:#2b466c; }.mover-context>span { color:#69d9c5; font-size:8px; font-weight:900; letter-spacing:.13em; }.mover-context h2 { margin:12px 0 9px; color:#fff; font-size:23px; }.mover-context p { margin:0; color:#9fb0c8; font-size:9px; line-height:1.65; }

.market-catalog { overflow:hidden; background:var(--market-panel); border:1px solid var(--market-line); border-radius:18px; box-shadow:0 14px 38px rgba(10,26,51,.06); }
.market-catalog-head { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; padding:24px; border-bottom:1px solid var(--market-line); }.market-catalog-head h2 { margin:5px 0 3px; color:var(--market-ink); font-size:25px; }.market-catalog-head p { margin:0; color:var(--market-muted); font-size:10px; }
.market-catalog-tools { display:flex; gap:7px; }.market-catalog-tools label { position:relative; min-width:250px; }.market-catalog-tools input,.market-catalog-tools select,.market-catalog-tools select { min-height:39px; color:var(--market-ink); background:var(--market-panel-2); border:1px solid var(--market-line); border-radius:9px; }.market-catalog-tools input { width:100%; padding:8px 12px 8px 38px; }.market-catalog-tools select { padding:7px 28px 7px 10px; }
.market-data-table-wrap { overflow-x:auto; }.market-data-table { width:100%; min-width:1160px; border-collapse:collapse; }.market-data-table th { padding:11px 12px; color:var(--market-muted); background:var(--market-panel-2); border-bottom:1px solid var(--market-line); text-align:right; font-size:8px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }.market-data-table th:nth-child(2) { text-align:left; }.market-data-table td { padding:13px 12px; color:var(--market-ink); border-bottom:1px solid var(--market-line); text-align:right; font-size:10px; white-space:nowrap; }.market-data-table tbody tr:last-child td { border-bottom:0; }.market-data-table tbody tr { transition:.15s; }.market-data-table tbody tr:hover { background:color-mix(in srgb,var(--market-blue) 5%,var(--market-panel)); }.market-rank { color:var(--market-muted)!important; font-size:9px!important; }
.market-asset-cell { display:flex; align-items:center; gap:10px; min-width:180px; text-align:left; }.market-asset-cell>span:last-child { display:flex; flex-direction:column; }.market-asset-cell b { font-size:11px; }.market-asset-cell small { color:var(--market-muted); font-size:8px; }.market-source { display:block; max-width:145px; overflow:hidden; margin-top:2px; color:var(--market-muted); font-size:7px; text-overflow:ellipsis; }.market-change { display:inline-flex; min-width:55px; justify-content:flex-end; font-weight:780; }.market-open { width:29px; height:29px; display:grid; place-items:center; color:var(--market-blue); background:color-mix(in srgb,var(--market-blue) 10%,var(--market-panel)); border-radius:8px; font-size:14px; }.market-sparkline { display:block; margin-left:auto; }.market-empty { min-height:260px; display:grid; place-items:center; align-content:center; padding:30px; text-align:center; }.market-empty p { color:var(--market-muted); }.market-data-note { margin-top:15px; padding:14px 17px; color:var(--market-muted); background:color-mix(in srgb,#f0b24d 9%,var(--market-panel)); border:1px solid color-mix(in srgb,#f0b24d 28%,var(--market-line)); border-radius:12px; font-size:9px; }.market-data-note b { color:var(--market-ink); }

/* Asset analysis workspace */
.market-terminal { padding:18px 0 70px; }.market-breadcrumbs { display:flex; gap:8px; align-items:center; margin-bottom:13px; color:var(--market-muted); font-size:9px; }.market-breadcrumbs a:hover { color:var(--market-blue); }
.asset-identity-bar { display:grid; grid-template-columns:minmax(260px,1.5fr) 1.1fr repeat(3,.72fr) auto; gap:1px; overflow:hidden; margin-bottom:13px; background:var(--market-line); border:1px solid var(--market-line); border-radius:16px; }.asset-identity-bar>div,.asset-identity-bar>a { min-height:100px; padding:15px; background:var(--market-panel); }.asset-identity { display:flex; align-items:center; gap:13px; }.market-token-xl { width:54px; height:54px; border-radius:15px; font-size:17px; }.asset-class-label { color:var(--market-blue); font-size:7px; font-weight:900; letter-spacing:.13em; }.asset-identity h1 { margin:3px 0 2px; color:var(--market-ink); font-size:23px; }.asset-identity p { margin:0; color:var(--market-muted); font-size:8px; }.asset-live-price { display:flex; flex-direction:column; justify-content:center; }.asset-live-price>b { color:var(--market-ink); font-size:23px; }.asset-live-price>span { font-size:10px; font-weight:800; }.asset-live-price>small { max-width:160px; overflow:hidden; color:var(--market-muted); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }.asset-quick-stat { display:flex; flex-direction:column; justify-content:center; }.asset-quick-stat span { color:var(--market-muted); font-size:7px; }.asset-quick-stat b { color:var(--market-ink); font-size:11px; }.asset-identity-bar .market-trade-cta { display:flex; align-items:center; justify-content:center; gap:8px; color:#fff; background:linear-gradient(135deg,#326dd5,#7457d7); border:0; border-radius:0; font-size:10px; }
.analysis-workspace { display:grid; grid-template-columns:minmax(0,1fr) 302px; gap:13px; }.analysis-chart-shell,.analysis-side>article { color:var(--market-ink); background:var(--market-panel); border:1px solid var(--market-line); border-radius:16px; }.analysis-chart-shell { min-width:0; overflow:hidden; }.analysis-toolbar { min-height:54px; display:flex; align-items:center; gap:9px; padding:9px 12px; overflow-x:auto; border-bottom:1px solid var(--market-line); }.chart-mode-tabs,.analysis-timeframes,.indicator-switches { display:flex; align-items:center; gap:3px; padding:3px; background:var(--market-panel-2); border-radius:8px; }.analysis-toolbar button { min-width:max-content; padding:6px 8px; color:var(--market-muted); background:transparent; border:0; border-radius:6px; font-size:8px; font-weight:800; cursor:pointer; }.analysis-toolbar button:hover { color:var(--market-ink); }.analysis-toolbar button.active { color:var(--market-ink); background:var(--market-panel); box-shadow:0 2px 7px rgba(9,24,47,.1); }.indicator-switches { margin-left:auto; }.analysis-toolbar .chart-expand { width:31px; height:31px; padding:0; border:1px solid var(--market-line); }
.chart-status-line { min-height:35px; display:flex; align-items:center; gap:17px; padding:7px 13px; color:var(--market-muted); background:color-mix(in srgb,var(--market-panel-2) 55%,var(--market-panel)); border-bottom:1px solid var(--market-line); font-size:8px; }.chart-status-line span:first-child { color:var(--market-ink); font-weight:850; }.chart-status-line span:last-child { margin-left:auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.market-chart-stage { position:relative; height:430px; }.market-chart-stage canvas { width:100%; height:430px; display:block; }.market-chart-tooltip { position:absolute; z-index:4; max-width:280px; padding:7px 9px; color:#dce8f8; background:rgba(7,17,31,.92); border:1px solid rgba(143,170,210,.25); border-radius:7px; box-shadow:0 8px 20px rgba(0,0,0,.25); font-size:7px; pointer-events:none; }.chart-loading { position:absolute; inset:0; display:grid; place-items:center; align-content:center; gap:9px; color:var(--market-muted); background:color-mix(in srgb,var(--market-panel) 94%,transparent); font-size:9px; }.chart-loading i { width:23px; height:23px; border:2px solid var(--market-line); border-top-color:var(--market-blue); border-radius:50%; animation:marketSpin .8s linear infinite; }@keyframes marketSpin{to{transform:rotate(360deg)}}
.rsi-stage { position:relative; height:139px; padding-top:30px; border-top:1px solid var(--market-line); }.rsi-caption { position:absolute; left:13px; right:13px; top:7px; display:flex; gap:7px; align-items:center; color:var(--market-muted); font-size:7px; }.rsi-caption span { color:var(--market-violet); font-weight:900; }.rsi-caption b { color:var(--market-ink); }.rsi-caption small { margin-left:auto; }.rsi-stage canvas { width:100%; height:105px; display:block; }
.analysis-side { display:flex; flex-direction:column; gap:13px; }.analysis-side>article { padding:20px; }.signal-kicker { color:var(--market-blue); font-size:8px; font-weight:900; letter-spacing:.13em; }.signal-score { --score:50; position:relative; width:116px; height:116px; display:grid; place-items:center; align-content:center; margin:17px auto; background:radial-gradient(circle,var(--market-panel) 60%,transparent 61%),conic-gradient(#4b8df8 calc(var(--score)*1%),var(--market-panel-2) 0); border-radius:50%; }.signal-score i { position:absolute; inset:9px; border:1px dashed var(--market-line); border-radius:50%; }.signal-score b { font-size:27px; }.signal-score small { color:var(--market-muted); font-size:7px; }.signal-card h2 { margin:0 0 6px; text-align:center; font-size:17px; }.signal-card>p { color:var(--market-muted); text-align:center; font-size:8px; line-height:1.55; }.signal-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:14px; }.signal-grid>div { padding:9px; background:var(--market-panel-2); border-radius:8px; }.signal-grid span { display:block; color:var(--market-muted); font-size:7px; }.signal-grid b { display:block; margin-top:2px; font-size:9px; }
.market-context-card dl { margin:14px 0; }.market-context-card dl>div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--market-line); }.market-context-card dt { color:var(--market-muted); font-size:8px; }.market-context-card dd { margin:0; font-size:9px; font-weight:800; }.market-context-card p { margin:12px 0 0; color:var(--market-muted); font-size:8px; line-height:1.55; }.sentiment-mini-card>div { display:grid; grid-template-columns:1fr auto; gap:2px 8px; padding:12px 0; border-bottom:1px solid var(--market-line); }.sentiment-mini-card>div:last-child { border-bottom:0; }.sentiment-mini-card span { color:var(--market-muted); font-size:8px; }.sentiment-mini-card b { grid-row:1/3; grid-column:2; align-self:center; font-size:22px; }.sentiment-mini-card small { font-size:8px; }
.analysis-chart-shell.expanded { position:fixed; inset:12px; z-index:100; border-color:#385274; box-shadow:0 35px 100px rgba(0,0,0,.55); }.analysis-chart-shell.expanded .market-chart-stage { height:calc(100vh - 245px); }.analysis-chart-shell.expanded .market-chart-stage canvas { height:calc(100vh - 245px); }.chart-expanded { overflow:hidden; }
.related-markets { margin-top:15px; padding:21px; background:var(--market-panel); border:1px solid var(--market-line); border-radius:16px; }.related-markets .section-head { margin-bottom:12px; }.related-markets .section-head h2 { color:var(--market-ink); }.related-markets .section-head>a { color:var(--market-blue); font-size:9px; font-weight:800; }.related-market-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }.related-market-strip>a { display:grid; grid-template-columns:34px 1fr auto; gap:9px; align-items:center; padding:11px; background:var(--market-panel-2); border:1px solid transparent; border-radius:10px; }.related-market-strip>a:hover { border-color:var(--market-blue); }.related-market-strip>a>span:nth-child(2) { display:flex; flex-direction:column; min-width:0; }.related-market-strip b { font-size:9px; }.related-market-strip small { overflow:hidden; color:var(--market-muted); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }.related-market-strip strong { font-size:8px; }

@media(max-width:1120px){
    .market-lens-hero{grid-template-columns:1fr;padding:45px}.market-orbit{display:none}.market-pulse-grid{grid-template-columns:1fr 1fr}.market-movers{grid-template-columns:1fr 1fr}.mover-context{grid-column:1/-1}.market-catalog-head{align-items:stretch;flex-direction:column}.market-catalog-tools{width:100%}.market-catalog-tools label{flex:1}.asset-identity-bar{grid-template-columns:1.3fr 1fr repeat(3,.75fr)}.asset-identity-bar .market-trade-cta{grid-column:1/-1;min-height:48px}.analysis-workspace{grid-template-columns:1fr}.analysis-side{display:grid;grid-template-columns:1fr 1fr}.signal-card{grid-row:span 2}.related-market-strip{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
    .market-lens,.market-terminal{width:min(100% - 18px,1280px);padding-top:10px}.market-lens-hero{min-height:0;padding:33px 24px;border-radius:18px}.market-lens-hero h1{font-size:43px}.market-lens-hero p{font-size:13px}.market-lens-meta{align-items:stretch;flex-direction:column}.market-class-nav{top:97px}.market-pulse-grid,.market-movers{grid-template-columns:1fr}.mover-context{grid-column:auto}.market-catalog-head{padding:20px}.market-catalog-tools{flex-wrap:wrap}.market-catalog-tools label{flex-basis:100%;min-width:0}.asset-identity-bar{grid-template-columns:1fr 1fr}.asset-identity,.asset-live-price{grid-column:1/-1}.asset-identity-bar>div{min-height:78px}.asset-identity-bar .asset-quick-stat:last-of-type{grid-column:1/-1}.analysis-toolbar{position:relative;align-items:flex-start;flex-wrap:wrap;padding-right:48px}.indicator-switches{width:100%;margin-left:0;overflow-x:auto}.analysis-toolbar .chart-expand{position:absolute;right:11px}.chart-status-line{align-items:flex-start;flex-direction:column;gap:2px}.chart-status-line span:last-child{margin-left:0}.market-chart-stage,.market-chart-stage canvas{height:340px}.analysis-side{grid-template-columns:1fr}.signal-card{grid-row:auto}.related-market-strip{grid-template-columns:1fr}.rsi-caption small{display:none}.analysis-chart-shell.expanded{inset:4px}.analysis-chart-shell.expanded .market-chart-stage,.analysis-chart-shell.expanded .market-chart-stage canvas{height:calc(100vh - 295px)}
}

/* ZIRIX FLOW / DeFi workspace */
.defi-page{--flow-bg:#eef3f7;--flow-panel:#fff;--flow-panel-2:#f4f7fa;--flow-ink:#102033;--flow-muted:#6c7b8f;--flow-line:#dbe4ec;--flow-mint:#25d6a2;--flow-cyan:#53c8ff;--flow-violet:#765ff2;width:min(1280px,calc(100% - 34px));margin:auto;padding:18px 0 72px;color:var(--flow-ink)}
html[data-theme="dark"] .defi-page{--flow-bg:#07111d;--flow-panel:#0d1927;--flow-panel-2:#122235;--flow-ink:#eef7ff;--flow-muted:#8ea1b7;--flow-line:#20364b;background:#07111d}
.defi-page .eyebrow{display:inline-flex;align-items:center;gap:8px;color:#58e1b8;font-size:9px;font-weight:900;letter-spacing:.18em}.defi-page .eyebrow>i{width:7px;height:7px;background:#40d7a8;border-radius:50%;box-shadow:0 0 0 5px rgba(64,215,168,.13)}
.defi-hero{position:relative;min-height:395px;display:grid;grid-template-columns:minmax(0,1.3fr) .8fr;align-items:center;overflow:hidden;padding:55px 65px;color:#edf8ff;background:radial-gradient(circle at 77% 40%,rgba(71,211,181,.18),transparent 27%),radial-gradient(circle at 38% -30%,rgba(98,93,239,.38),transparent 47%),linear-gradient(125deg,#071421,#0b2330 58%,#0d2a2d);border:1px solid #183647;border-radius:25px;box-shadow:0 28px 70px rgba(4,19,31,.2)}
.defi-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.023) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.023) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(to right,#000,transparent 78%)}
.defi-hero-copy{position:relative;z-index:2}.defi-hero h1{max-width:760px;margin:17px 0 16px;color:#fff;font-size:54px;line-height:1.02;letter-spacing:-.045em}.defi-hero h1 span{color:#76e3c5}.defi-hero p{max-width:675px;margin:0;color:#a9beca;font-size:14px;line-height:1.75}.defi-hero-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.defi-hero-badges>span{display:flex;align-items:center;gap:7px;padding:8px 11px;color:#c4d7df;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:9px;font-size:9px;font-weight:700}.defi-hero-badges i{display:inline-grid;place-items:center;width:16px;height:16px;color:#69e6c3;font-size:9px;font-style:normal}.defi-pulse{background:#44d2a8;border-radius:50%;box-shadow:0 0 0 4px rgba(68,210,168,.14)}
.defi-orbit{position:relative;z-index:2;width:300px;height:300px;margin:auto}.defi-orbit-ring{position:absolute;inset:27px;border:1px solid rgba(105,227,196,.26);border-radius:50%;animation:flowRotate 18s linear infinite}.defi-orbit-ring::before,.defi-orbit-ring::after{content:"";position:absolute;width:7px;height:7px;background:#5be1bd;border-radius:50%;box-shadow:0 0 13px #5be1bd}.defi-orbit-ring::before{left:25px;top:31px}.defi-orbit-ring::after{right:8px;bottom:64px}.defi-orbit-ring.ring-two{inset:62px 11px;border-color:rgba(109,117,246,.28);transform:rotate(45deg);animation-duration:24s;animation-direction:reverse}.defi-orbit-core{position:absolute;left:50%;top:50%;width:112px;height:112px;display:grid;place-items:center;align-content:center;transform:translate(-50%,-50%);background:linear-gradient(145deg,#153d43,#0d1c30);border:1px solid rgba(103,225,194,.45);border-radius:32px;box-shadow:0 0 0 13px rgba(71,216,179,.055),0 25px 55px rgba(0,0,0,.35);transform:translate(-50%,-50%) rotate(45deg)}.defi-orbit-core b,.defi-orbit-core span{transform:rotate(-45deg)}.defi-orbit-core b{color:#e8fff9;font-size:40px;line-height:.9}.defi-orbit-core span{margin-top:7px;color:#60ddbc;font-size:7px;font-weight:900;letter-spacing:.24em}.defi-orbit-node{position:absolute;padding:8px 10px;color:#b7cbd6;background:rgba(8,27,36,.9);border:1px solid rgba(110,222,197,.22);border-radius:8px;font-size:7px;font-weight:900;letter-spacing:.12em;box-shadow:0 10px 22px rgba(0,0,0,.25)}.node-wallet{left:4px;top:55px}.node-router{right:0;top:75px}.node-chain{left:29px;bottom:38px}@keyframes flowRotate{to{transform:rotate(360deg)}}
.defi-workspace{display:grid;grid-template-columns:minmax(0,1fr) 375px;gap:15px;margin-top:17px}.defi-swap-shell,.defi-side>article{background:var(--flow-panel);border:1px solid var(--flow-line);border-radius:20px;box-shadow:0 14px 40px rgba(10,32,49,.07)}.defi-swap-shell{position:relative;padding:28px}.defi-swap-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.defi-swap-head h2{margin:5px 0 0;color:var(--flow-ink);font-size:25px}.defi-wallet-chip{max-width:235px;display:flex;align-items:center;gap:9px;overflow:hidden;padding:11px 13px;color:var(--flow-ink);background:var(--flow-panel-2);border:1px solid var(--flow-line);border-radius:11px;cursor:pointer}.defi-wallet-chip b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.wallet-dot{flex:0 0 auto;width:8px;height:8px;background:#a3afbc;border-radius:50%;box-shadow:0 0 0 4px rgba(133,150,166,.14)}.wallet-dot.connected{background:#27ce9d;box-shadow:0 0 0 4px rgba(39,206,157,.14)}
.defi-config-warning{display:flex;flex-direction:column;gap:5px;margin:-4px 0 17px;padding:12px 14px;color:#9b6711;background:#fff8e9;border:1px solid #efd69e;border-radius:10px;font-size:9px;line-height:1.5}.defi-config-warning[hidden]{display:none}html[data-theme="dark"] .defi-config-warning{color:#efc36c;background:#2c2415;border-color:#564323}.defi-config-warning code{padding:2px 5px;background:rgba(0,0,0,.06);border-radius:4px}
.defi-network-row{display:grid;grid-template-columns:auto minmax(180px,250px) 1fr;gap:10px;align-items:center;margin-bottom:12px;padding:10px 12px;background:var(--flow-panel-2);border:1px solid var(--flow-line);border-radius:11px}.defi-network-row label{color:var(--flow-muted);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.defi-network-row select,.defi-token-main select{color:var(--flow-ink);background:var(--flow-panel);border:1px solid var(--flow-line);border-radius:8px;font-weight:800}.defi-network-row select{min-height:34px;padding:5px 28px 5px 10px;font-size:9px}.defi-network-state{justify-self:end;color:var(--flow-muted);font-size:8px}.defi-network-state.ok{color:#1bb788}.defi-network-state.error{color:#e25b70}
.defi-token-box{padding:19px;background:var(--flow-panel-2);border:1px solid var(--flow-line);border-radius:15px;transition:.18s}.defi-token-box:focus-within{border-color:#44c9a7;box-shadow:0 0 0 3px rgba(68,201,167,.09)}.defi-token-box-label,.defi-token-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--flow-muted);font-size:8px}.defi-token-box-label button{padding:3px 7px;color:#1cb18a;background:rgba(35,204,159,.1);border:0;border-radius:5px;font-size:7px;font-weight:900;cursor:pointer}.defi-token-main{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:13px;align-items:center;margin:13px 0}.defi-token-main input,.defi-token-main output{min-width:0;width:100%;color:var(--flow-ink);background:transparent;border:0;outline:0;font-size:36px;font-weight:700;letter-spacing:-.035em}.defi-token-main input::placeholder{color:color-mix(in srgb,var(--flow-muted) 45%,transparent)}.defi-token-main select{min-height:46px;padding:7px 32px 7px 12px;font-size:11px}.defi-token-meta b{color:var(--flow-ink)}.defi-flip{position:relative;z-index:2;width:38px;height:38px;display:grid;place-items:center;margin:-8px auto;color:#0f5c4d;background:#dff8ef;border:5px solid var(--flow-panel);border-radius:12px;font-size:17px;font-weight:900;cursor:pointer;transition:.18s}.defi-flip:hover{transform:rotate(180deg);background:#c9f3e5}.token-out-box{margin-top:-8px}
.defi-slippage{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0;padding:10px 0;border-top:1px solid var(--flow-line);border-bottom:1px solid var(--flow-line)}.defi-slippage>span{color:var(--flow-muted);font-size:8px;font-weight:800}.defi-slippage>div{display:flex;gap:4px}.defi-slippage button,.defi-slippage label{min-height:29px;display:flex;align-items:center;justify-content:center;padding:5px 9px;color:var(--flow-muted);background:var(--flow-panel-2);border:1px solid transparent;border-radius:7px;font-size:8px;font-weight:800;cursor:pointer}.defi-slippage button.active{color:#fff;background:#146f62}.defi-slippage label{gap:2px;padding-right:6px}.defi-slippage input{width:54px;color:var(--flow-ink);background:transparent;border:0;outline:0;text-align:right;font-size:8px}
.defi-quote-details{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;overflow:hidden;margin-bottom:15px;background:var(--flow-line);border:1px solid var(--flow-line);border-radius:10px}.defi-quote-details[hidden]{display:none}.defi-quote-details>div{min-height:63px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:9px;background:var(--flow-panel)}.defi-quote-details span{color:var(--flow-muted);font-size:7px}.defi-quote-details b{font-size:8px;line-height:1.35}.defi-primary-action{width:100%;min-height:52px;padding:12px;color:#051c17;background:linear-gradient(100deg,#50e2b6,#57cef2);border:0;border-radius:12px;box-shadow:0 11px 24px rgba(44,203,166,.2);font-size:11px;font-weight:900;letter-spacing:.015em;cursor:pointer;transition:.18s}.defi-primary-action:hover{filter:brightness(1.04);transform:translateY(-1px)}.defi-primary-action:disabled{color:#70818e;background:var(--flow-panel-2);box-shadow:none;cursor:not-allowed;transform:none}.defi-action-status{min-height:18px;margin:9px 2px;color:var(--flow-muted);text-align:center;font-size:8px}.defi-action-status.ok{color:#18ad82}.defi-action-status.error{color:#df5369}
.defi-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:17px 0 0;padding:14px 0 0;border-top:1px solid var(--flow-line);list-style:none}.defi-progress li{display:flex;gap:7px;align-items:center;opacity:.52}.defi-progress li>i{flex:0 0 auto;width:24px;height:24px;display:grid;place-items:center;color:var(--flow-muted);background:var(--flow-panel-2);border:1px solid var(--flow-line);border-radius:8px;font-size:7px;font-style:normal;font-weight:900}.defi-progress span{display:flex;flex-direction:column}.defi-progress b{font-size:7px}.defi-progress small{color:var(--flow-muted);font-size:6px}.defi-progress li.active,.defi-progress li.done,.defi-progress li.error{opacity:1}.defi-progress li.active>i{color:#0a5b49;background:#c8f5e8;border-color:#71ddbd}.defi-progress li.done>i{color:#fff;background:#1caf86;border-color:#1caf86}.defi-progress li.error>i{color:#fff;background:#d94d65;border-color:#d94d65}.defi-tx-link{display:block;margin-top:12px;color:#1a9d7c;text-align:center;font-size:9px;font-weight:800}.defi-tx-link[hidden]{display:none}
.defi-side{display:flex;flex-direction:column;gap:15px}.defi-side>article{padding:25px}.defi-revenue-card{position:relative;overflow:hidden;color:#edf9ff!important;background:radial-gradient(circle at 105% 5%,rgba(81,211,188,.3),transparent 33%),linear-gradient(145deg,#0b202d,#122e37 58%,#17343a)!important;border-color:#234a55!important}.defi-revenue-card::after{content:"";position:absolute;right:-42px;bottom:-55px;width:150px;height:150px;border:1px dashed rgba(112,226,201,.22);border-radius:50%}.defi-card-label{color:#54d9b5;font-size:8px;font-weight:900;letter-spacing:.16em}.defi-revenue-card h2{margin:13px 0 18px;color:#fff;font-size:22px;line-height:1.16}.defi-fee-number{display:flex;align-items:center;gap:16px;padding:17px 0;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}.defi-fee-number b{color:#73e6c7;font-size:32px;letter-spacing:-.04em}.defi-fee-number span{color:#91aab4;font-size:8px;line-height:1.5}.defi-flow-map{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:4px;align-items:center;margin-top:18px}.defi-flow-map>span{padding:8px 3px;color:#d7e9ee;background:rgba(255,255,255,.055);border-radius:6px;text-align:center;font-size:7px;font-weight:800}.defi-flow-map>i{color:#58d4b5;font-size:9px;font-style:normal}.defi-flow-map>div{grid-column:1/-1;display:flex;justify-content:space-between;margin-top:6px;color:#88a2ad;font-size:7px}.defi-flow-map>div b{color:#5edabb}.defi-revenue-card p{position:relative;z-index:1;margin:18px 0 12px;color:#91a8b3;font-size:8px;line-height:1.65}.defi-revenue-state{position:relative;z-index:1;display:block;padding:9px;color:#adc1c9;background:rgba(255,255,255,.055);border-radius:7px;font-size:7px}.defi-revenue-state.ok{color:#75e7c7}.defi-revenue-state.error{color:#ff9eac}
.defi-security-card h3{margin:12px 0 6px;color:var(--flow-ink);font-size:18px}.defi-security-card ul{margin:8px 0 0;padding:0;list-style:none}.defi-security-card li{display:flex;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid var(--flow-line)}.defi-security-card li:last-child{border-bottom:0}.defi-security-card li>i{flex:0 0 auto;width:31px;height:31px;display:grid;place-items:center;color:#1bb28a;background:rgba(37,214,162,.1);border-radius:9px;font-size:7px;font-style:normal;font-weight:900}.defi-security-card li span{display:flex;flex-direction:column;gap:3px}.defi-security-card li b{font-size:9px}.defi-security-card li small{color:var(--flow-muted);font-size:7px}
.defi-layers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:15px}.defi-layers article{min-height:170px;padding:21px;background:var(--flow-panel);border:1px solid var(--flow-line);border-radius:15px}.defi-layers article>span{color:#1caf86;font-size:7px;font-weight:900;letter-spacing:.13em}.defi-layers h3{margin:14px 0 8px;color:var(--flow-ink);font-size:14px}.defi-layers p{margin:0;color:var(--flow-muted);font-size:8px;line-height:1.65}.defi-disclosure{display:grid;grid-template-columns:260px 1fr auto;gap:25px;align-items:center;margin-top:15px;padding:25px 28px;color:#dce9f4;background:#101d2d;border:1px solid #29394f;border-radius:16px}.defi-disclosure h2{margin:6px 0 0;color:#fff;font-size:19px}.defi-disclosure p{margin:0;color:#91a3b8;font-size:8px;line-height:1.65}.defi-disclosure a{padding:10px 12px;color:#65dab9;background:rgba(101,218,185,.08);border:1px solid rgba(101,218,185,.22);border-radius:8px;font-size:8px;font-weight:800;white-space:nowrap}
.defi-page.busy .defi-flip,.defi-page.busy select,.defi-page.busy input,.defi-page.busy [data-slippage],.defi-page.busy [data-max-amount]{pointer-events:none;opacity:.65}
@media(max-width:1080px){.defi-hero{grid-template-columns:1fr;padding:48px}.defi-orbit{display:none}.defi-workspace{grid-template-columns:1fr}.defi-side{display:grid;grid-template-columns:1fr 1fr}.defi-quote-details{grid-template-columns:repeat(3,1fr)}.defi-layers{grid-template-columns:1fr 1fr}.defi-disclosure{grid-template-columns:220px 1fr}.defi-disclosure a{grid-column:1/-1;justify-self:start}}
@media(max-width:720px){.defi-page{width:min(100% - 18px,1280px);padding-top:10px}.defi-hero{min-height:0;padding:34px 24px;border-radius:18px}.defi-hero h1{font-size:39px}.defi-hero p{font-size:11px}.defi-hero-badges{align-items:stretch;flex-direction:column}.defi-swap-shell{padding:18px;border-radius:16px}.defi-swap-head{align-items:flex-start;flex-direction:column}.defi-wallet-chip{width:100%;max-width:none}.defi-network-row{grid-template-columns:1fr}.defi-network-state{justify-self:start}.defi-token-main{grid-template-columns:minmax(0,1fr) 122px}.defi-token-main input,.defi-token-main output{font-size:28px}.defi-slippage{align-items:flex-start;flex-direction:column}.defi-slippage>div{width:100%;overflow-x:auto}.defi-quote-details{grid-template-columns:1fr 1fr}.defi-progress{grid-template-columns:1fr 1fr}.defi-side{grid-template-columns:1fr}.defi-layers{grid-template-columns:1fr}.defi-disclosure{grid-template-columns:1fr;padding:22px}.defi-disclosure a{grid-column:auto}.defi-flow-map{grid-template-columns:1fr auto 1fr auto 1fr}}

/* State hooks are data attributes because the controller keeps presentation out of text values. */
.defi-wallet-chip.connected .wallet-dot{background:#27ce9d;box-shadow:0 0 0 4px rgba(39,206,157,.14)}
.defi-network-state[data-state="ok"],.defi-network-state[data-state="testnet"]{color:#1bb788}
.defi-network-state[data-state="warning"],.defi-network-state[data-state="locked"]{color:#d68d25}
.defi-action-status[data-kind="ok"]{color:#18ad82}.defi-action-status[data-kind="error"]{color:#df5369}
.defi-progress li[data-state="active"],.defi-progress li[data-state="done"],.defi-progress li[data-state="error"]{opacity:1}
.defi-progress li[data-state="active"]>i{color:#0a5b49;background:#c8f5e8;border-color:#71ddbd}.defi-progress li[data-state="done"]>i{color:#fff;background:#1caf86;border-color:#1caf86}.defi-progress li[data-state="error"]>i{color:#fff;background:#d94d65;border-color:#d94d65}
.defi-revenue-state[data-state="active"]{color:#75e7c7}.defi-revenue-state[data-state="locked"]{color:#f0bb6b}
.defi-page.is-busy .defi-flip,.defi-page.is-busy select,.defi-page.is-busy input,.defi-page.is-busy [data-slippage],.defi-page.is-busy [data-max-amount]{pointer-events:none;opacity:.65}

/* Newsroom 0.12: source-first cards and summaries directly below photography. */
.event-feed-note{display:block;margin-top:9px;color:var(--muted);font-size:11px}
.news-featured-visual{display:grid;grid-template-rows:minmax(245px,1fr) auto;place-items:stretch;overflow:hidden;color:var(--text);background:var(--surface)}
.news-featured-photo{position:relative;min-height:245px;overflow:hidden;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--news-accent) 86%,#061529),#061529)}
.news-featured-visual::after{display:none}
.news-featured-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,18,39,.04),rgba(5,18,39,.38));pointer-events:none}
.news-featured-photo .news-watermark{z-index:2;text-shadow:0 2px 22px rgba(0,0,0,.35)}
.news-photo-summary{margin:0!important;padding:13px 15px;color:var(--muted)!important;background:var(--surface);border-top:1px solid var(--line-soft);font-size:10px!important;line-height:1.55!important}
.news-row{grid-template-columns:170px minmax(0,1fr) auto;gap:18px}
.news-row-media{min-width:0;overflow:hidden;background:var(--surface-2);border:1px solid var(--line-soft);border-radius:12px}
.news-row-mark{width:100%;height:96px;border-radius:0}
.news-row-media .news-photo-summary{display:-webkit-box;overflow:hidden;padding:9px 10px;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.news-row-credit{position:absolute;left:7px;bottom:6px;z-index:3;max-width:calc(100% - 14px);overflow:hidden;padding:3px 5px;color:#fff;background:rgba(5,18,39,.7);border-radius:4px;font-size:6px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.news-row-body{align-self:center}
.news-attribution{grid-template-columns:auto 1fr}
html[data-theme="dark"] .news-featured-visual,html[data-theme="dark"] .news-photo-summary{background:var(--surface)}
@media(max-width:760px){
    .news-featured-visual{grid-template-rows:210px auto}.news-featured-photo{min-height:210px}
    .news-row{grid-template-columns:118px minmax(0,1fr);gap:11px}.news-row-media{grid-row:1 / span 2}.news-row-mark{width:100%;height:74px}.news-row-media .news-photo-summary{-webkit-line-clamp:4}.news-row-body{align-self:start}
}
