/* MyLocalFinance. Colour carries meaning: blue = digital (wallet, card), green = bank money, yellow = cash in hand. */
:root {
  --bg: #F2F5FB; --surface: #FFFFFF; --sunk: #E8EDF8; --ink: #0B1530; --muted: #55648A; --line: #D6DDEC;
  --blue: #1657E0; --blue-ink: #FFFFFF; --green: #0F8A56; --green-fill: #17A86B; --yellow: #FFC02E; --yellow-ink: #3A2A00;
  --blue-soft: #E2EBFF; --green-soft: #DCF5E9; --yellow-soft: #FFF2CF; --danger: #C62B3B;
  --display: 'Bricolage Grotesque', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'Instrument Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --r: 14px; --r-lg: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070E22; --surface: #0F1B3D; --sunk: #0B1530; --ink: #EDF2FF; --muted: #96A6CC; --line: #1F2F5C;
  --blue: #6C97FF; --blue-ink: #06102C; --green: #3DD795; --green-fill: #17A86B; --yellow: #FFC02E; --yellow-ink: #2E2200;
  --blue-soft: #14275C; --green-soft: #0C3A2C; --yellow-soft: #3D3210; --danger: #FF7C89;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: none; border-color: rgb(255 255 255 / .35); color: inherit; } .btn.ghost:hover { border-color: #fff; }
.btn.cash { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.block { width: 100%; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1.4rem/1 var(--display); letter-spacing: -0.035em; color: var(--ink); text-decoration: none; }
.brand .pin { width: 22px; height: 26px; color: var(--blue); flex: none; } .brand b { color: var(--blue); font-weight: 700; }
.brand i { display: grid; gap: 3px; width: 22px; }
.brand i b { height: 5px; border-radius: 3px; background: var(--blue); }
.brand i b:nth-child(2) { width: 72%; background: var(--green); }
.brand i b:nth-child(3) { width: 44%; background: var(--yellow); }

.brandfull { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); justify-self: start; }
.brandfull .pinfull { width: 52px; height: 65px; flex: none; }
.brandfull .word { display: block; font: 700 1.7rem/1 var(--display); letter-spacing: -0.035em; } .brandfull .word b { color: var(--blue); }
.brandfull small { display: block; margin-block-start: 6px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.auth > .pinfull { width: 56px; height: 70px; display: block; margin-block-end: 18px; }

/* chrome */
.sandbox { background: var(--yellow-soft); color: var(--ink); font-size: .85rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap, .top .bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.top nav { display: flex; gap: 22px; margin-inline-start: 16px; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.pick { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding-inline: 12px; cursor: pointer; font-weight: 500; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }

/* forms */
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; }
.field textarea { min-height: 120px; font-family: ui-monospace, monospace; font-size: .85rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stack > .tabs { justify-self: start; }
.cols > *, .hero .wrap > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); font-weight: 500; font-size: .9rem; }
.form-error:empty { display: none; }

/* converter */
.conv { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.conv .slot { background: var(--sunk); border-radius: var(--r); padding: 12px 14px; border: 1.5px solid transparent; }
.conv .slot:focus-within { border-color: var(--blue); }
.conv .slot > span { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.conv .slot .row { display: flex; align-items: center; gap: 10px; }
.conv .slot input, .conv .slot output { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0; font: 700 1.7rem/1.4 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.conv .slot select { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; height: 40px; padding-inline: 12px; font-weight: 600; cursor: pointer; }
.conv-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.tabs { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(10 26 63 / .12); }

/* surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel > h3 { margin-block-end: 16px; }
.tri { position: relative; overflow: hidden; }
.tri::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: linear-gradient(90deg, #1657E0 0 50%, #17A86B 50% 80%, #FFC02E 80%); }
.note { border-radius: var(--r); padding: 12px 14px; background: var(--blue-soft); font-size: .9rem; }
.note.warn { background: var(--yellow-soft); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.wait { background: var(--yellow-soft); color: var(--ink); }
.tag.bad { color: var(--danger); }
.coin { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .62rem/1 var(--body); background: var(--blue-soft); color: var(--blue); }
.coin.fiat { background: var(--green-soft); color: var(--green); }
.up { color: var(--green); } .down { color: var(--danger); }

/* tables and lists */
table { width: 100%; border-collapse: collapse; }
th { text-align: start; font-size: .8rem; font-weight: 500; color: var(--muted); padding: 8px 12px; }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: end; }
.asset { display: flex; align-items: center; gap: 12px; }
.asset b { display: block; font-weight: 600; }
.scroll-x { overflow-x: auto; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.list .item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px 0; text-align: center; color: var(--muted); }
.spark { width: 84px; height: 26px; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

[hidden] { display: none !important; }
.alloc { display: flex; gap: 3px; height: 10px; margin-block: 18px 8px; }
.alloc i { border-radius: 5px; min-width: 6px; background: var(--blue); }
.alloc .s, .legend .s::before { background: var(--green-fill); } .alloc .f, .legend .f::before { background: var(--yellow); } .alloc .e, .legend .e::before { background: var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-inline-end: 6px; }
.meter { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-fill); border-radius: 5px; }
.desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-block-end: 26px; }
.desks.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.desk { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--yellow); text-decoration: none; }
.desk b { font: 700 1.25rem/1.2 var(--display); }
.desk .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-block-start: 8px; }

.tier { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); vertical-align: middle; }
.tier.gold { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.tier.silver { background: var(--sunk); color: var(--ink); }
.list .item .grow span.tier { display: inline-block; }
.list .item > .stack { flex: none; }
.list .item .grow { overflow-wrap: anywhere; }
.item.ad { flex-wrap: wrap; gap: 14px 22px; }
.item.ad .pickform { flex-basis: 100%; background: var(--sunk); border-radius: var(--r); padding: 16px; }
.chat { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.chat p:not(.empty) { justify-self: start; max-width: 85%; background: var(--sunk); border-radius: 14px; padding: 8px 12px; }
.chat p.mine { justify-self: end; background: var(--blue-soft); }
.chat p span { display: block; font-size: .72rem; color: var(--muted); }

/* marketing */
.hero { padding-block: clamp(48px, 7vw, 96px); background: #0B1530; color: #fff; }
.hero .panel { color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero p.lead { font-size: 1.2rem; color: #B7C3E2; max-width: 34em; margin-block: 22px 28px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sec { padding-block: clamp(48px, 7vw, 96px); }
.sec > .wrap > h2 { max-width: 18em; margin-block-end: 12px; }
.sec > .wrap > p.lead { color: var(--muted); max-width: 40em; margin-block-end: 36px; font-size: 1.1rem; }
.routes { display: grid; gap: 14px; }
.route { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); background: var(--blue-soft); }
.route.bank { background: var(--green-soft); } .route.cash { background: var(--yellow-soft); }
.route p { color: var(--muted); max-width: 44em; margin-block-start: 6px; }
.glyph { height: 86px; display: grid; place-items: center; }
.glyph .g-card { width: 128px; height: 80px; border-radius: 12px; background: var(--blue); position: relative; transform: rotate(-6deg); }
.glyph .g-card::after { content: ''; position: absolute; inset-inline: 14px; inset-block-end: 16px; height: 8px; border-radius: 4px; background: var(--blue-ink); opacity: .7; }
.glyph .g-bank { width: 110px; display: grid; gap: 9px; }
.glyph .g-bank b { height: 12px; border-radius: 6px; background: var(--green); }
.glyph .g-bank b:nth-child(2) { width: 70%; } .glyph .g-bank b:nth-child(3) { width: 88%; }
.glyph .g-bank.blue b { background: var(--blue); }
.glyph .g-cash.two b:last-child { background: var(--green-fill); }
.glyph .g-cash { display: flex; }
.glyph .g-cash b { width: 62px; height: 62px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--yellow-soft); margin-inline-start: -22px; }
.glyph .g-cash b:first-child { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 3px solid var(--yellow); padding-block-start: 16px; }
.steps li::before { content: counter(s); font: 700 2rem/1 var(--display); display: block; margin-block-end: 10px; }
.steps li p { color: var(--muted); margin-block-start: 6px; }
.faq details { border-top: 1px solid var(--line); padding-block: 18px; max-width: 760px; }
.faq summary { font: 700 1.15rem/1.3 var(--display); cursor: pointer; }
.faq details p { color: var(--muted); margin-block-start: 10px; }
footer.site { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: grid; gap: 18px; }
footer.site .links { display: flex; gap: 22px; flex-wrap: wrap; }
.auth { max-width: 440px; margin: clamp(32px, 8vh, 90px) auto; padding-inline: 20px; }
.auth h1 { font-size: 2.2rem; margin-block-end: 8px; }
.prose { max-width: 720px; display: grid; gap: 14px; }

/* app */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side { border-inline-end: 1px solid var(--line); background: var(--surface); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.side .group { display: grid; gap: 2px; }
.side .glabel { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 12px; }
.side a svg { width: 19px; height: 19px; flex: none; }
.side a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; }
.side a:hover { color: var(--ink); }
.side a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.side .usercard { margin-block-start: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; gap: 10px; color: var(--ink); }
.usercard i { width: 36px; height: 36px; border-radius: 50%; background: #0B1530; color: #FFC02E; display: grid; place-items: center; font: 700 .8rem/1 var(--body); flex: none; }
.usercard span:not(.tag) { display: grid; min-width: 0; flex: 1; } .usercard b, .usercard small { overflow: hidden; text-overflow: ellipsis; font-size: .85rem; } .usercard small { color: var(--muted); }
.search { position: relative; flex: 1; max-width: 420px; margin-inline-start: 24px; }
.search label { display: flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border-radius: 999px; background: var(--sunk); border: 1.5px solid transparent; color: var(--muted); }
.search label:focus-within { border-color: var(--blue); background: var(--surface); }
.search svg { width: 16px; height: 16px; } .search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; }
.results, .popover { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; box-shadow: 0 12px 32px rgb(11 21 48 / .18); z-index: 30; display: grid; }
.results a, .popover a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; } .results a:hover, .results a:first-child, .popover a:hover { background: var(--sunk); }
.results p, .popover p, .popover > b { padding: 8px 12px; }
.pop { position: relative; } .pop .icon-btn { position: relative; } .pop sup { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--yellow); color: var(--yellow-ink); font: 700 .68rem/18px var(--body); text-align: center; }
.popover { inset-inline: auto 0; width: min(340px, 86vw); }
.pagehead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); } .pagehead p { color: var(--muted); margin-block-start: 6px; }
.kpis { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; color: var(--ink); }
.kpi > span { font-size: .85rem; color: var(--muted); } .kpi > b { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; } .kpi.wide > b { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.kpi em { font-style: normal; font-size: .85rem; color: var(--muted); } .kpi .alloc { margin-block: 8px 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.checks a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 500; }
.checks a i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .75rem; flex: none; }
.checks a.done { color: var(--muted); } .checks a.done i { background: var(--green-fill); border-color: var(--green-fill); color: #fff; } .checks .tag { margin-inline-start: auto; }
table.data th { border-bottom: 1px solid var(--line); white-space: nowrap; } table.data td { padding-block: 12px; border-top: 0; border-bottom: 1px solid var(--line); } table.data tbody tr:last-child td { border-bottom: 0; } table.data tbody tr:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.concierge { background: #0B1530; color: #fff; border-color: #0B1530; } .concierge .muted { color: #B7C3E2; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.levels li { display: flex; gap: 14px; padding: 12px; border-radius: var(--r); align-items: start; }
.levels li > i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 700 .85rem/1 var(--body); font-style: normal; flex: none; color: var(--muted); }
.levels li.done > i { background: var(--green-fill); border-color: var(--green-fill); color: #fff; } .levels li.pending > i { border-color: var(--yellow); color: var(--ink); }
.levels li.current { background: var(--sunk); } .levels li span.muted { display: block; margin-block-start: 2px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; } .chips legend { margin-block-end: 8px; padding: 0; }
.chips label { cursor: pointer; } .chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: .92rem; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); } .chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.dots { display: flex; gap: 6px; margin-block-end: 22px; } .dots i { width: 36px; height: 4px; border-radius: 2px; background: var(--line); } .dots i.on { background: var(--blue); }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; min-width: 0; } .box legend { padding-inline: 6px; }
.review { display: flex; align-items: start; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.review dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 12px 0; } .review dt { font-size: .75rem; color: var(--muted); } .review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.chat.tall { max-height: 460px; min-height: 160px; align-content: start; }
.main { padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; align-content: start; max-width: 1180px; width: 100%; grid-template-columns: minmax(0, 1fr); }
.main > header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.main > header p { color: var(--muted); margin-block-start: 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.total { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stats b { font: 700 1.8rem/1.1 var(--display); display: block; }
.plastic { aspect-ratio: 1.586; max-width: 380px; border-radius: 20px; padding: 22px; color: #fff; background: #0F3ACB; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.plastic::before { content: ''; position: absolute; inset-inline-end: -40px; inset-block-start: -30px; width: 190px; height: 190px; border-radius: 50%; background: #22C984; }
.plastic::after { content: ''; position: absolute; inset-inline-end: 34px; inset-block-start: 62px; width: 96px; height: 96px; border-radius: 50%; background: #FFC531; }
.plastic > * { position: relative; z-index: 1; }
.plastic .brand, .plastic .brand b, .plastic .pin { color: #fff; } .plastic .brand { font-size: 1.1rem; }
.plastic .brand i b { background: #fff !important; }
.plastic .pan { font: 500 1.25rem/1 ui-monospace, monospace; letter-spacing: .08em; direction: ltr; }
.plastic .meta { display: flex; gap: 22px; font-size: .8rem; }
.plastic.frozen { filter: grayscale(.85); }
.code { font: 700 2.2rem/1 var(--display); letter-spacing: .14em; direction: ltr; }
.addr { font: .85rem/1.5 ui-monospace, monospace; word-break: break-all; background: var(--sunk); border-radius: var(--r); padding: 12px 14px; direction: ltr; }
#toast { position: fixed; inset-block-end: 22px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 500; opacity: 0; translate: 0 10px; transition: opacity .2s, translate .2s; pointer-events: none; z-index: 50; }
#toast.show { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .hero .wrap, .cols { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .glyph { justify-content: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 4px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .side .group { display: flex; gap: 4px; } .side .glabel, .side .usercard { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi.wide { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
}
.show-xs { display: none; }
@media (max-width: 520px) {
  .hide-xs { display: none; } .show-xs { display: inline; }
  .brand { font-size: 1rem; gap: 5px; } .brand .pin { width: 16px; height: 19px; }
  .pick { max-width: 76px; padding-inline: 6px; height: 36px; } .icon-btn { width: 36px; height: 36px; }
  .top .wrap, .top .bar { padding-inline: 14px !important; } .top .end { gap: 6px; } .top .btn.sm { padding: 0 11px; }
  .plastic .brand { font-size: 1.1rem; }
  .two, .steps { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .top .wrap, .top .bar { gap: 8px; }
  .top .end .btn:not(.primary) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
