/* AHMATO LABS v6 - "D2" style (approved 2026-10-04): charcoal, glass panels with a 1px champagne-gold hairline, teal = up, coral #FF8A65 = down.
   Loaded last; maps the old tokens onto D2 and adds the D2 components (js/d2.js). Logo: AXIS LABS final (brand/axis/v8 -> img/axis/axislabs_final_*). */
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

/* ---------- tokens ---------- */
:root, html[data-theme="light"] {
  --bg2: #EAE6DF; --glass: rgba(255,253,250,.62); --solid: #FBFAF7; --panel2: rgba(255,255,255,.55); --tile: #EFEBE4; --track: #E6E1D8;
  --ink: #1E1D1B; --mute: #6B665E; --acc: #12B39A; --acc-t: #0B8F7B; --dn: #FF8A65; --dn-t: #D9572F; --amber: #D79A35;
  --g1: #E6D3A3; --g2: #C9A86A; --g3: #A8864A; --gold-t: #8C6E3A; --glow: rgba(18,179,154,.30); --gglow: rgba(168,134,74,.35); --neutral: rgba(60,52,40,.05);
  --amb1: rgba(201,168,106,.16); --amb2: rgba(18,179,154,.08);
  --gb: linear-gradient(140deg, rgba(201,168,106,.85), rgba(201,168,106,.14) 32%, rgba(60,52,40,.07) 62%, rgba(168,134,74,.55));
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 48px -26px rgba(70,56,32,.28), 0 2px 6px -2px rgba(70,56,32,.06);
  /* old names -> D2 */
  --bg: #F6F4F0; --bg-2: var(--bg2); --surface: var(--solid); --line: rgba(60,52,40,.12);
  --navy: var(--ink); --navy-d: #34312D; --navy-ink: var(--ink); --muted: var(--mute); --teal: var(--acc); --teal-soft: rgba(18,179,154,.12);
  --up: var(--acc-t); --up-soft: rgba(18,179,154,.12); --down: var(--dn-t); --down-soft: rgba(255,138,101,.16);
  --raise: var(--shadow); --raise-deep: var(--shadow); --raise-sm: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 16px -10px rgba(70,56,32,.25);
  --inset: inset 0 1px 3px rgba(60,52,40,.10); --sh-dark: rgba(70,56,32,.18); --sh-light: rgba(255,255,255,.8);
  --v3-cyan: var(--acc-t); --v3-up: var(--acc-t); --v3-down: var(--dn-t); --v3-violet: var(--g3); --v3-amber: var(--amber); --v3-ink: var(--ink); --v3-mute: var(--mute);
  --v3-grid: rgba(60,52,40,.10); --v3-axis: var(--mute); --v3-card: var(--solid); --v3-glow: rgba(18,179,154,0);
  --rk-0: #0B8F7B; --rk-1: #12B39A; --rk-2: #5CC4A8; --rk-3: #A9C98A; --rk-4: #D9C27A; --rk-5: #D79A35; --rk-6: #E0874F; --rk-7: #E8734D; --rk-8: #E0603A; --rk-9: #D9572F;
  --r-lg: 16px; --r-md: 14px; --r-sm: 12px;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Cairo", monospace;
}
html[data-theme="dark"] {
  --bg: #090B0C; --bg2: #0D1011; --glass: rgba(20,23,25,.58); --solid: #121517; --panel2: rgba(255,255,255,.028); --tile: #15181A; --track: #1A1E20; --line: rgba(230,211,163,.09);
  --ink: #ECEAE5; --mute: #8E918F; --acc: #2EF2C2; --acc-t: #2EF2C2; --dn: #FF8A65; --dn-t: #FF8A65; --amber: #F2B84B;
  --gold-t: #D8BE85; --glow: rgba(46,242,194,.45); --gglow: rgba(230,211,163,.45); --neutral: rgba(236,234,229,.04);
  --amb1: rgba(201,168,106,.07); --amb2: rgba(46,242,194,.045);
  --gb: linear-gradient(140deg, rgba(230,211,163,.55), rgba(201,168,106,.10) 32%, rgba(255,255,255,.04) 62%, rgba(168,134,74,.35));
  --shadow: 0 1px 0 rgba(255,255,255,.045) inset, 0 30px 70px -30px rgba(0,0,0,.9), 0 2px 8px -2px rgba(0,0,0,.5);
  --bg-2: var(--bg2); --surface: var(--solid); --navy: var(--ink); --navy-d: #D8BE85; --navy-ink: var(--ink); --muted: var(--mute);
  --teal: var(--acc); --teal-soft: rgba(46,242,194,.12); --up: var(--acc); --up-soft: rgba(46,242,194,.12); --down: var(--dn); --down-soft: rgba(255,138,101,.14);
  --raise: var(--shadow); --raise-deep: var(--shadow); --raise-sm: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px -10px rgba(0,0,0,.7);
  --inset: inset 0 1px 4px rgba(0,0,0,.5); --sh-dark: rgba(0,0,0,.55); --sh-light: rgba(255,255,255,.03);
  --v3-cyan: var(--acc); --v3-up: var(--acc); --v3-down: var(--dn); --v3-violet: var(--g1); --v3-amber: var(--amber); --v3-ink: var(--ink); --v3-mute: var(--mute);
  --v3-grid: rgba(230,211,163,.08); --v3-axis: var(--mute); --v3-card: var(--solid); --v3-glow: rgba(46,242,194,.30);
  --rk-0: #2EF2C2; --rk-1: #3FDDB4; --rk-2: #7FD9A6; --rk-3: #BCD58C; --rk-4: #E6D3A3; --rk-5: #F2B84B; --rk-6: #F59E5C; --rk-7: #FF8A65; --rk-8: #F2734F; --rk-9: #E8603F;
}

/* ---------- page ---------- */
html { background: var(--bg); }
body, html[data-theme="dark"] body {
  color: var(--ink); font-weight: 300; background-color: var(--bg);
  background-image: radial-gradient(70% 34% at 88% 0%, var(--amb1), transparent 72%), radial-gradient(60% 30% at 0% 38%, var(--amb2), transparent 70%),
    radial-gradient(70% 30% at 100% 80%, var(--amb1), transparent 70%), linear-gradient(var(--bg), var(--bg2));
  background-size: auto; background-attachment: scroll; min-height: 100vh;
}
.num, .n, bdi.n, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.n, bdi.n { direction: ltr; unicode-bidi: isolate; }
a { color: inherit; }

/* ---------- glass panels: solid first, translucent + blur only where supported (header + top-level panels only) ---------- */
.card, html[data-theme="dark"] .card { position: relative; isolation: isolate; background: var(--solid); border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gb); pointer-events: none; z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card .card { background: var(--panel2); box-shadow: none; }
.card .card::after { background: none; border: 1px solid var(--line); padding: 0; -webkit-mask: none; mask: none; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #home > .card, #home > .d2 > .card, #result > .card, #result > section > .card, .v4-page > .card { background: var(--glass); -webkit-backdrop-filter: blur(12px) saturate(130%); backdrop-filter: blur(12px) saturate(130%); }
  .site-header.v4h .v4-top { background: color-mix(in srgb, var(--glass) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
[data-tilt].tilting { box-shadow: var(--shadow); }
.card h2, .sec-head h2 { font-weight: 300; letter-spacing: .005em; color: var(--ink); }
.card h2 svg { color: var(--gold-t); }
.hint, .card .hint { color: var(--mute); }

/* ---------- header bar: menu · AXIS LABS (icon mark + wordmark text, final v8) · search · bell, stars behind ---------- */
.site-header.v4h { position: sticky; top: 0; z-index: 40; }
.site-header.v4h .v4-top { position: relative; display: flex; align-items: center; gap: 10px; height: calc(60px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(12px, calc((100% - 1080px) / 2 + 18px)) 0; background: var(--solid); }
.site-header.v4h .v4-top::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--g2) 30%, var(--g1) 50%, var(--g2) 70%, transparent); opacity: .55; pointer-events: none; }
.site-header.v4h .v4-banner { position: absolute; inset: 0; height: auto; overflow: hidden; -webkit-mask-image: none; mask-image: none; z-index: 0; pointer-events: none; }
.site-header.v4h .v4-banner::before, .site-header.v4h .v4-banner::after { content: none; }
.site-header.v4h .v4-banner .v4-banner-sparkles { inset: 0; z-index: 0; }
.site-header.v4h .v4-top > :not(.v4-banner) { position: relative; z-index: 1; }
.site-header.v4h .v4-top .v4-hbtn { position: relative; top: auto; inset-inline: auto; width: 38px; height: 38px; border-radius: 12px; color: var(--ink);
  background: var(--solid); border: 1px solid var(--line); box-shadow: none; }
.site-header.v4h .v4-top .v4-hbtn svg { width: 18px; height: 18px; }
.site-header.v4h .v4-top .v4-hbell { order: 9; }
.d2-logo { display: flex; align-items: center; gap: 9px; flex: none; height: 38px; text-decoration: none; direction: ltr; }
.d2-logo img { display: block; height: 28px; width: auto; }
.d2-word { font: 500 12.5px/1 var(--latin); letter-spacing: .30em; margin-inline-end: -.30em; white-space: nowrap; color: #1E1D1B;
  text-shadow: 0 0 10px rgba(18,179,154,.30), 0 0 2px rgba(18,179,154,.12); }
html[data-theme="dark"] .d2-word { color: #ECEAE5; text-shadow: 0 0 8px rgba(46,242,194,.55), 0 0 18px rgba(46,242,194,.22); }
html[data-theme="dark"] .d2-logo .logo-light, html:not([data-theme="dark"]) .d2-logo .logo-dark,
html[data-theme="dark"] #heroBrand .logo-light, html:not([data-theme="dark"]) #heroBrand .logo-dark,
html[data-theme="dark"] .d2-about-logo .logo-light, html:not([data-theme="dark"]) .d2-about-logo .logo-dark { display: none !important; }
.site-header.v4h #searchForm { flex: 1; min-width: 0; margin: 0; position: relative; }
.site-header.v4h .search-box { display: flex; align-items: center; height: 38px; padding: 0 12px; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); box-shadow: none; }
.site-header.v4h .search-box:focus-within { border-color: var(--g2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2) 18%, transparent); }
.site-header.v4h .search-box .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; background: none; box-shadow: none; border: 0; height: auto; }
.site-header.v4h .search-box svg { width: 15px; height: 15px; color: var(--mute); flex: none; }
.site-header.v4h .search-box input { flex: 1; min-width: 0; font: 300 13.5px var(--font); color: var(--ink); background: transparent; border: 0; outline: 0; padding: 0; height: 36px; }
.site-header.v4h .search-box .btn { display: none; }
.site-header.v4h .suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 50; min-width: 240px; background: var(--solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 400px) { .d2-logo { gap: 7px; } .d2-logo img { height: 25px; } .d2-word { font-size: 11px; } .site-header.v4h .v4-top { gap: 8px; } }
@media (min-width: 760px) { .d2-logo img { height: 30px; } .d2-word { font-size: 14px; } }
.v4-announce, .v4-ann { position: relative; z-index: 1; }

/* ---------- hero = home intro (stacked lockup); hidden on inner pages (search is in the header) ---------- */
.hero { text-align: center; padding-top: 18px; }
.hero.compact { display: none; }
.hero h1 { font-weight: 300; font-size: clamp(20px, 5.4vw, 28px); color: var(--ink); letter-spacing: .005em; margin: 6px 0 4px; }
.hero p.sub { color: var(--mute); font-size: 13.5px; max-width: 560px; margin-inline: auto; }
#heroBrand, html[data-theme="dark"] #heroBrand { display: block !important; order: -1; margin: 4px auto 8px; max-width: 210px; padding: 0; background: none; box-shadow: none; }
#heroBrand .float, html[data-theme="dark"] #heroBrand .float { animation: none; box-shadow: none; border-radius: 0; background: none; -webkit-mask-image: none; mask-image: none; }
#heroBrand img { width: 100%; height: auto; }
.hero .text { display: block; }
.hero { display: flex; flex-direction: column; align-items: center; }
.quick { justify-content: center; }
.quick > span { color: var(--mute); }
.chip-btn { background: var(--solid); border: 1px solid var(--line); box-shadow: none; color: var(--ink); font-family: var(--mono); font-weight: 400; border-radius: 999px; }
.chip-btn:hover { border-color: var(--g2); }

/* ---------- controls ---------- */
.btn, html[data-theme="dark"] .btn { background: linear-gradient(140deg, var(--g1), var(--g2)); color: #1E1D1B; border: 0; box-shadow: 0 6px 16px -10px var(--gglow); font-weight: 500; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; }
.seg button, .tgl, .tf-seg button, .scan-seg button, .d2-seg button { border: 1px solid var(--line); background: transparent; color: var(--mute); box-shadow: none; border-radius: 999px; }
.seg button[aria-pressed="true"], .tgl[aria-pressed="true"], .tf-seg button[aria-pressed="true"], .scan-seg button[aria-pressed="true"], .d2-seg button[aria-pressed="true"],
html[data-theme="dark"] .seg button[aria-pressed="true"], html[data-theme="dark"] .tgl[aria-pressed="true"] { color: var(--ink); border-color: var(--g2); background: color-mix(in srgb, var(--g2) 12%, transparent); box-shadow: none; }
input, select, textarea { accent-color: var(--acc); }
.al-form select, .al-form input, .v4-card input, .v4-card select, .v4-card textarea { background: var(--solid); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
:focus-visible { outline-color: var(--g2); }
.chip.pos, .up { color: var(--up); }
.chip.neg { color: var(--down); }
.chip.pos { background: var(--up-soft); } .chip.neg { background: var(--down-soft); }
.badge { background: color-mix(in srgb, var(--g2) 14%, transparent); color: var(--gold-t); border: 1px solid color-mix(in srgb, var(--g2) 40%, transparent); }
.back { color: var(--gold-t); }
.site-footer { color: var(--mute); border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset-inline: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--g2), transparent); opacity: .5; }
.skeleton { background: linear-gradient(90deg, var(--tile), var(--track), var(--tile)); background-size: 200% 100%; }
.v3-sparkles canvas { mix-blend-mode: normal; }

/* ---------- D2 components (js/d2.js) ---------- */
.d2 { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
#home .d2 + * { margin-top: 0; }
.snap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 2px 0 -4px; font-size: 11.5px; color: var(--mute); }
.snap i { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--glow); flex: none; }
.pn { padding: 22px 20px; }
.pn h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; font-size: 18px; font-weight: 300; }
.pn h2 .ix { font: 400 10px/1 var(--mono); letter-spacing: .18em; color: var(--gold-t); padding: 0 0 3px; border-bottom: 1px solid var(--g2); }
.pn h2 .meta { margin-inline-start: auto; font-size: 11px; font-weight: 400; color: var(--gold-t); letter-spacing: .04em; }
.pn .note { margin: 14px 0 0; font-size: 12px; color: var(--mute); line-height: 1.75; }
.gauge { display: block; width: 100%; height: auto; overflow: visible; }
.g-track { fill: none; stroke: var(--track); } .g-zone { fill: none; opacity: .26; } .g-zone.full { opacity: 1; }
.g-val { fill: none; stroke: var(--acc); filter: drop-shadow(0 0 6px var(--glow)); }
.gauge.big .g-zone { opacity: .82; } .gauge.big .g-zone.full { opacity: 1; } .gauge.big .g-val { display: none; }
.g-tick { stroke: var(--mute); stroke-width: .8; opacity: .7; } .g-tl { fill: var(--mute); font: 300 9.5px var(--mono); text-anchor: middle; }
.g-needle { stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--gglow)); } .gauge.big .g-needle { stroke-width: 2; }
.g-hub { fill: var(--g2); stroke: var(--g1); stroke-width: 1.2; filter: drop-shadow(0 0 5px var(--gglow)); }
.risk { display: flex; flex-direction: column; align-items: center; text-align: center; }
.risk h2 { align-self: stretch; text-align: start; }
.risk .gw { width: 100%; max-width: 330px; margin: 6px auto -4px; }
.risk .val { font-size: 74px; font-weight: 200; line-height: 1; letter-spacing: -.04em; text-shadow: 0 0 28px var(--glow); min-height: 74px; }
.risk .val .n { font-weight: 200; }
.risk .lbl { margin-top: 10px; font-weight: 400; font-size: 16px; }
.risk .sub { margin-top: 4px; font-size: 12.5px; color: var(--mute); max-width: 460px; }
.risk .rr { display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cd { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; background: var(--panel2); min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.cd:hover { border-color: color-mix(in srgb, var(--g2) 55%, transparent); }
.cd:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cd .k { font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd .v { font-size: 26px; font-weight: 300; line-height: 1.25; white-space: nowrap; letter-spacing: -.03em; }
.cd .v small { font-size: 11px; color: var(--mute); font-weight: 300; margin-inline-start: 2px; }
.cd .v .na, .gc .v .na { font-size: 14px; color: var(--mute); }
.cd .s { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd .sp { display: flex; flex-direction: column; }
.spk { display: block; width: 100%; height: 36px; margin-top: 8px; }
.spk polyline { fill: none; stroke: var(--acc); stroke-width: 1.1; vector-effect: non-scaling-stroke; } .spk circle { fill: var(--acc); filter: drop-shadow(0 0 4px var(--glow)); }
.nohist { height: 36px; margin-top: 8px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 10px; font-size: 10.5px; color: var(--mute); }
.cd .h { font-size: 10px; color: var(--mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tl { position: relative; aspect-ratio: 1 / 1; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--acc) calc(var(--v) * .9%), var(--tile)); border: 1px solid color-mix(in srgb, var(--acc) calc(var(--v) * .5%), var(--line)); min-width: 0; }
.tl b { font: 500 9px/1.1 var(--latin); letter-spacing: .04em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tl span { font: 300 10px/1.1 var(--mono); }
.tl.hot { color: #090B0C; }
.tl.on::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.legend { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 11px; color: var(--mute); }
.legend .lg { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(to left, var(--acc), var(--tile)); }
html[dir="ltr"] .legend .lg { background: linear-gradient(to right, var(--tile), var(--acc)); }
svg.gauge, svg.gauge text, svg.reg text, svg.hero text { direction: ltr; unicode-bidi: normal; }
.cd .vu { unicode-bidi: isolate; }
svg.reg, svg.hero { display: block; width: 100%; height: auto; direction: ltr; }
.gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .gl.v { stroke-dasharray: 1 4; }
.ax { fill: var(--mute); font: 300 9px var(--mono); }
.b0 { fill: var(--acc); opacity: .24; } .b1 { fill: var(--acc); opacity: .11; } .b2 { fill: var(--neutral); } .b3 { fill: var(--dn); opacity: .13; } .b4 { fill: var(--dn); opacity: .26; }
.fv { fill: none; stroke: var(--g2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.px { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.now { fill: var(--acc); filter: drop-shadow(0 0 5px var(--glow)); }
.bands, .ovlg { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 11px; color: var(--mute); }
.bands i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 5px; }
.bands .k0 { background: var(--acc); opacity: .6; } .bands .k1 { background: var(--acc); opacity: .3; } .bands .k2 { background: var(--neutral); border: 1px solid var(--line); }
.bands .k3 { background: var(--dn); opacity: .35; } .bands .k4 { background: var(--dn); opacity: .65; }
.ovlg { margin-top: 12px; } .ovlg i { display: inline-block; width: 14px; height: 1.5px; vertical-align: 3px; margin-inline-end: 5px; }
.ovlg .l-acc { background: var(--acc); } .ovlg .l-amb { background: var(--amber); } .ovlg .l-dn { background: var(--dn); }
.cu line { stroke: var(--acc); } .cu rect { fill: var(--acc); } .cdn line { stroke: var(--dn); } .cdn rect { fill: var(--dn); }
.bb { fill: none; stroke: var(--acc); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bbm { fill: none; stroke: var(--acc); stroke-width: .9; stroke-dasharray: 3 3; opacity: .6; vector-effect: non-scaling-stroke; } .bbf { fill: var(--acc); opacity: .06; }
.kc { fill: none; stroke: var(--amber); stroke-width: 1; vector-effect: non-scaling-stroke; } .kcf { fill: var(--amber); opacity: .05; }
.e20, .e50, .e200 { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; } .e20 { stroke: var(--acc); } .e50 { stroke: var(--amber); } .e200 { stroke: var(--dn); }
.ov.off { display: none; }
.d2-seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.d2-seg button { padding: 5px 13px; font: 400 11.5px var(--mono); cursor: pointer; }
.kvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.kv { padding: 12px 0 4px; border-top: 1px solid var(--line); min-width: 0; }
.kv .k { display: block; font-size: 10.5px; color: var(--gold-t); letter-spacing: .03em; } .kv .v { font-size: 15px; font-weight: 300; white-space: nowrap; }
.gg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; background: var(--panel2); text-align: center; min-width: 0; }
.gc .k { font-size: 12px; font-weight: 400; } .gc .v { font-size: 24px; font-weight: 300; margin-top: -2px; letter-spacing: -.03em; } .gc .s { font-size: 10.5px; color: var(--mute); }
.d2-prem { font-size: 13px; color: var(--gold-t); text-decoration: none; border-bottom: 1px solid var(--g2); }
.mute { color: var(--mute); }
#d2Coin, #d2Gauges { margin-top: 16px; }
.d2-go { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; }
.d2-go .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-t); border: 1px solid var(--line); }
.d2-go .ic svg { width: 20px; height: 20px; }
.d2-go b { display: block; font-weight: 500; } .d2-go span span { display: block; font-size: 12px; color: var(--mute); }
.d2-go .go { margin-inline-start: auto; color: var(--gold-t); }
.d2-lock { margin: 0; }
.d2-ph { font-weight: 300; font-size: 22px; margin: 10px 0 14px; }
.d2-about-logo { margin: 0 auto 10px; max-width: 220px; } .d2-about-logo img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cd:last-child:nth-child(odd) { grid-column: auto; } .hm { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .d2 *, .site-header * { transition: none !important; animation: none !important; } }

/* ---------- v6.1 payment page: method cards, verified address, big Copy button ---------- */
.v61-period { margin: 6px 0 14px; font-size: 15px; }
.v61-methods { display: grid; gap: 14px; margin: 8px 0 12px; }
.v61-mcard { padding: 14px; border-radius: var(--r-md); background: var(--panel2); border: 1px solid var(--line); }
.v61-mhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.v61-asset { font-size: 18px; letter-spacing: .02em; }
.v61-net { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--gold-t); border: 1px solid var(--g2); background: var(--neutral); }
.v61-amt { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.65; }
.v61-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.65; margin: 8px 0 10px; color: var(--ink);
  background: var(--down-soft); border: 1px solid var(--dn); border-radius: var(--r-sm); padding: 10px 12px; }
.v61-warn svg, .v61-blocked svg, .v61-unavail svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--dn-t); }
.v61-abox { display: grid; gap: 8px; margin: 8px 0 12px; }
.v61-addr { display: block; font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.55; word-break: break-all; padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); color: var(--ink); user-select: all; -webkit-user-select: all; }
.v61-addr b { font-weight: 700; color: var(--acc-t); }
.v61-ends { font-size: 12px; }
.v61-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-sm);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  color: var(--bg); background: var(--ink); border: 1px solid var(--ink); }
.v61-copy svg { width: 20px; height: 20px; }
.v61-copy:active { transform: translateY(1px); }
.v61-copy:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.v61-copy.done { background: var(--acc-t); border-color: var(--acc-t); color: #fff; }
html[data-theme="dark"] .v61-copy.done { color: #090B0C; }
.v61-copy-s { min-height: 44px; font-size: 14px; margin-top: 6px; }
.v61-amt-li { flex-wrap: wrap; }
.v61-qr { margin: 4px auto 0; }
.v61-blocked, .v61-unavail { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; line-height: 1.6; padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--ink); background: var(--down-soft); border: 2px solid var(--dn-t); }
.v61-pay { width: 100%; min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .v61-copy:active { transform: none; } }
.v61-contact { margin: 14px 0 4px; font-size: 14px; }
.v61-contact a { color: var(--acc-t); font-weight: 600; word-break: break-all; }
.v61-foot { text-align: center; font-size: 13px; margin: 8px 0 0; }
.v61-blocked a { color: inherit; text-decoration: underline; word-break: break-all; }

/* ---------- v6.3 big logo = v9 stacked lockup with tagline (canvas 2048 x 1640, artwork ~x 340-1706 / y 240-1358) ----------
   The files are used unchanged; the transparent canvas margin is taken back with negative margins (% of the image width). */
#heroBrand.hero-brand, html[data-theme="dark"] #heroBrand.hero-brand { max-width: 330px; width: 100%; margin: 0 auto 6px; }
.d2-about-logo.v9-logo { max-width: 330px; margin: 0 auto 8px; }
.v9-logo img, #heroBrand .v9-logo img { display: block; width: 100%; height: auto; margin: -10.9% 0 -12.6%; pointer-events: none; }
@media (min-width: 760px) { #heroBrand.hero-brand, html[data-theme="dark"] #heroBrand.hero-brand { max-width: 380px; } }

/* ---------- v6.3 entry intro: dark cover painted with the first frame while js/intro.js starts (set by the inline head script).
   It never blocks the first paint, and fades out on its own after 4 s if the intro module does not take over (fail-safe). ---------- */
html.intro-pending::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: #0A0A09; pointer-events: auto;
  animation: axis-cover-off .5s ease 4s forwards; }
@keyframes axis-cover-off { to { opacity: 0; visibility: hidden; } }

/* ---------- v6.4 price cards (1 / 3 / 12 months): price, per-month equivalent, saving vs monthly ---------- */
.v64-per { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 6px; }
.v64-pc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; min-width: 0; padding: 12px 6px 10px; border-radius: 14px; cursor: pointer;
  background: var(--solid); border: 1px solid var(--line); color: var(--ink); font: inherit; text-align: center; box-shadow: none; overflow: hidden; }
.v64-pc[aria-pressed="true"] { border-color: var(--g2); background: color-mix(in srgb, var(--g2) 11%, var(--solid)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--g2) 35%, transparent); }
.v64-pc:focus-visible { outline: 2px solid var(--g2); outline-offset: 2px; }
.v64-pt { font-size: 13px; color: var(--mute); }
.v64-pp { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.v64-pm { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.v64-save { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; padding: 3px 5px; max-width: 100%; line-height: 1.2; box-sizing: border-box; }
.v64-nos { font-size: 11px; color: var(--mute); line-height: 1.35; min-height: 22px; display: flex; align-items: center; text-align: center; max-width: 100%; }
.v64-note { margin: 2px 0 12px; }
@media (max-width: 390px) { .v64-pp { font-size: 17px; } .v64-pm { font-size: 11px; } .v64-save { font-size: 10px; padding: 2px 5px; } .v64-pt { font-size: 12px; } }


/* ---------- v6.5 scanner locked teaser: blurred placeholders, no real coin data ---------- */
.v65-teaser { margin-top: 10px; pointer-events: none; user-select: none; }
.v65-blur { filter: blur(5px); opacity: .45; }
.v65-blur .sr-tags, .v65-blur .sr-why { filter: blur(4px); }

/* v6.6 TradingView Advanced Chart (lazy; our own chart above stays) */
#cTV .tv-box { min-height: 380px; height: 420px; width: 100%; border-radius: 12px; overflow: hidden; background: var(--card-2, rgba(127,127,127,.08)); }
#cTV .tv-box iframe { width: 100% !important; height: 100% !important; border: 0; }
#cTV .tv-pending { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }

/* v6.7: drawer Premium lock + champagne-gold pill (guests/free only) */
.v4-dr-nav a { display: flex; align-items: center; gap: 8px; }
.v4-dr-nav a .tx { flex: 1 1 auto; min-width: 0; }
.v67-prem { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-inline-start: 4px; }
.v67-lock { font-size: 12px; line-height: 1; opacity: .9; }
.v67-pill {
  font: 600 10px/1 var(--sans, system-ui, sans-serif);
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--gold-t);
  border: 1px solid var(--g2);
  background: color-mix(in srgb, var(--g2) 16%, transparent);
  white-space: nowrap;
}

/* v6.8: the single site note (footer only), small + subtle */
.site-footer .disc { display: block; max-width: 620px; margin: 0 auto; padding: 8px 12px; box-shadow: none; background: transparent; border: 0;
  border-top: 1px solid color-mix(in srgb, var(--g2) 35%, transparent); border-radius: 0; font-weight: 400; font-size: 11.5px; line-height: 1.6; color: var(--gold-t); opacity: .85; }
html[data-theme="dark"] .site-footer .disc { border: 0; border-top: 1px solid color-mix(in srgb, var(--g2) 35%, transparent); }

/* v6.9: home squeeze heatmap teaser (guests/free) */
.v69-heat { position: relative; margin-bottom: 10px; }
.v69-fake { filter: blur(4px); opacity: .45; pointer-events: none; user-select: none; }
.v69-over { position: absolute; inset: 0; display: grid; place-items: center; }
.v69-over .v67-pill { font-size: 12px; padding: 5px 12px; }
.v69-over .v67-lock { font-size: 16px; }

/* v6.11: heatmap sort pills */
.v611-sort { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; background: transparent; box-shadow: none; direction: inherit; }
.v611-sort button { padding: 5px 11px; font: 500 12px/1.2 var(--sans, system-ui); }

/* v6.12: unified locked badge (link variant + inside lock cards / gauges) */
a.v67-prem { text-decoration: none; }
.v5-lock-h .v67-prem { margin-inline-start: 0; }
.gc .v .v67-prem, .cd .v .v67-prem { font-size: 13px; }

/* v6.7: 5 timeframe buttons (1W 1D 4H 2H 1H) fit on phones */
.seg.v44-tf { flex-wrap: nowrap; max-width: 100%; }
@media (max-width: 520px) { .seg.v44-tf button { padding: 6px 9px; font-size: 12px; min-width: 0; } }
@media (max-width: 360px) { .seg.v44-tf button { padding: 5px 7px; font-size: 11.5px; } }

/* v6.13: heatmap timeframe buttons */
#d2Heat .v613-tf { margin: 0 0 8px; flex-wrap: nowrap; max-width: 100%; }
@media (max-width: 520px) { #d2Heat .v613-tf button { padding: 6px 9px; font-size: 12px; min-width: 0; } }
