/* AHMATO LABS v4.1 header: full-width banner logo blended into the page (CSS masks only; the image files are untouched)
   + stars layer + menu button / bell in the corners, and the side drawer. Light = embossed cream, dark = neon glass. */

/* the old header rows (small logo, tagline, avatar menu, v3 bar) stay in the DOM for older code but are not shown */
.site-header.v4h { padding: 0; position: relative; }
.site-header > .wrap { display: none !important; }
.site-header:not(.v4h) { padding: 0; min-height: calc(clamp(120px, 36vw, 146px) + env(safe-area-inset-top, 0px)); }   /* no jump before the JS mounts the banner */
@media (min-width: 760px) { .site-header:not(.v4h) { min-height: 190px; } }

.v4-top { position: relative; }
.v4-banner { --bh: clamp(120px, 36vw, 146px); position: relative; height: calc(var(--bh) + env(safe-area-inset-top, 0px)); overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0, #000 6%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0, #000 6%, #000 82%, transparent 100%); }
@media (min-width: 760px) { .v4-banner { --bh: 190px; } }
/* edge-to-edge strip: the same logo file, scaled up and blurred behind the sharp centre band, so the band melts into the page */
.v4-banner::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: none;   /* v6: old logo strip retired (AXIS LABS header, css/d2.css) */
  filter: blur(22px) saturate(1.05); opacity: .16;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 48%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 85% at 50% 48%, #000 35%, transparent 100%); }
html[data-theme="dark"] .v4-banner::before { background-image: none; opacity: .42; }
html[data-theme="dark"] .v4-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 70% at 50% 50%, rgba(46, 242, 194, .14), transparent 70%); }
/* sharp centre band = the A + AHMATO LABS wordmark (source rows ~205-760 of the 960 px square), side edges faded */
.v4-banner-logo { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--bh) * -205 / 555); width: calc(var(--bh) * 960 / 555); aspect-ratio: 1;
  transform: translateX(-50%); display: block; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%); }
.v4-banner-logo img { display: block; width: 100%; height: 100%; max-width: none; }
.v4-banner .v4-banner-sparkles { inset: 0; height: auto; z-index: 2; }

/* corner buttons */
.v4-hbtn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; margin: 0; padding: 0; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
  color: var(--navy); background: var(--surface); box-shadow: var(--raise-sm); -webkit-tap-highlight-color: transparent; transition: transform .15s ease, box-shadow .2s ease; }
.v4-hbtn svg { width: 22px; height: 22px; }
.v4-hbtn:active { transform: scale(.94); }
.v4-hbtn:focus-visible, .v4-drawer a:focus-visible, .v4-drawer button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.v4-top .v4-hbtn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 5; background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v4-top .v4-burger { inset-inline-start: max(12px, calc((100% - 1120px) / 2 + 18px)); }
.v4-top .v4-hbell { inset-inline-end: max(12px, calc((100% - 1120px) / 2 + 18px)); margin: 0; }
html[data-theme="dark"] .v4-hbtn { color: #2EF2C2; background: rgba(13, 16, 17, .6); box-shadow: 0 0 0 1px rgba(46, 242, 194, .35), 0 0 18px rgba(46, 242, 194, .16); }
html[data-theme="dark"] .v4-top .v4-hbtn { background: rgba(9, 11, 12, .55); }
.v4-burger[aria-expanded="true"] { box-shadow: var(--inset); }

/* ---------------------------------------------------------------- side drawer */
html.v4-dr-open, html.v4-dr-open body { overflow: hidden; }
.v4-dr-back { position: fixed; inset: 0; z-index: 900; background: rgba(30, 29, 27, .32); opacity: 0; visibility: hidden;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: opacity .3s ease, visibility 0s linear .3s; }
html[data-theme="dark"] .v4-dr-back { background: rgba(2, 5, 14, .62); }
html.v4-dr-open .v4-dr-back { opacity: 1; visibility: visible; transition: opacity .3s ease; }

.v4-drawer { --off: 100%; position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 901; width: min(86vw, 340px); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--navy-ink);
  border-start-end-radius: 24px; border-end-end-radius: 24px; box-shadow: 0 0 44px rgba(120, 100, 70, .3), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform: translateX(var(--off)); visibility: hidden; transition: transform .34s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .34s; }
html[dir="ltr"] .v4-drawer { --off: -100%; }
html.v4-dr-open .v4-drawer { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
.v4-drawer.dragging { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .v4-drawer, .v4-dr-back { transition-duration: .01s !important; } }
html[data-theme="dark"] .v4-drawer { background: rgba(11, 13, 14, .8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-inline-end: 1px solid rgba(46, 242, 194, .28); box-shadow: 0 0 46px rgba(46, 242, 194, .14), 0 0 0 1px rgba(230, 211, 163, .06); }

.v4-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.v4-dr-brand { font: 800 15px var(--latin); letter-spacing: .14em; color: var(--navy); }
html[data-theme="dark"] .v4-dr-brand { color: #ECEAE5; text-shadow: 0 0 14px rgba(46, 242, 194, .45); }

.v4-dr-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--raise-sm); color: inherit; text-decoration: none; min-width: 0; }
.v4-dr-user > div { min-width: 0; display: grid; gap: 1px; }
.v4-dr-user b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v4-dr-user small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v4-dr-user .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.v4-dr-user .v4-role { margin: 0; }
.v4-dr-user .v4-av svg { width: 22px; height: 22px; }
.v4-dr-user.out .v4-av { background: var(--bg); color: var(--navy); box-shadow: var(--inset); }
.v4-dr-user small.ltr { text-align: start; }
html[data-theme="dark"] .v4-dr-user { background: rgba(18, 21, 23, .72); box-shadow: 0 0 0 1px rgba(230, 211, 163, .12); }
html[data-theme="dark"] .v4-dr-user.out .v4-av { background: rgba(46, 242, 194, .1); color: #2EF2C2; box-shadow: 0 0 0 1px rgba(46, 242, 194, .3); }

.v4-dr-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.v4-dr-nav a { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px; border-radius: 15px;
  color: var(--navy-ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s ease, box-shadow .2s ease; }
.v4-dr-nav .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); box-shadow: var(--raise-sm); color: var(--navy); }
.v4-dr-nav .ic svg { width: 19px; height: 19px; }
.v4-dr-nav .go { display: grid; place-items: center; color: var(--muted); opacity: .55; }
.v4-dr-nav .go svg { width: 16px; height: 16px; }
.v4-dr-nav a:hover { background: var(--surface); }
.v4-dr-nav a[aria-current="page"] { background: var(--surface); box-shadow: var(--inset); color: var(--navy); }
.v4-dr-nav a[aria-current="page"] .ic { background: var(--teal-soft); color: var(--navy); box-shadow: none; }
html[data-theme="dark"] .v4-dr-nav a { color: #ECEAE5; }
html[data-theme="dark"] .v4-dr-nav .ic { background: rgba(46, 242, 194, .07); color: #2EF2C2; box-shadow: 0 0 0 1px rgba(46, 242, 194, .22); }
html[data-theme="dark"] .v4-dr-nav a:hover { background: rgba(46, 242, 194, .06); }
html[data-theme="dark"] .v4-dr-nav a[aria-current="page"] { background: rgba(46, 242, 194, .1); box-shadow: 0 0 0 1px rgba(46, 242, 194, .45), 0 0 18px rgba(46, 242, 194, .16); color: #fff; }
html[data-theme="dark"] .v4-dr-nav a[aria-current="page"] .ic { background: linear-gradient(135deg, #2EF2C2, #E6D3A3); color: #090B0C; box-shadow: 0 0 14px rgba(46, 242, 194, .45); }

.v4-dr-prefs { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--raise-sm); }
.v4-dr-pref { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v4-dr-pref .lb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--navy); }
.v4-dr-pref .lb svg { width: 18px; height: 18px; }
.v4-dr-pref .seg button svg { width: 17px; height: 17px; }
.v4-dr-pref .seg button { min-width: 40px; }
html[data-theme="dark"] .v4-dr-prefs { background: rgba(18, 21, 23, .72); box-shadow: 0 0 0 1px rgba(230, 211, 163, .12); }
html[data-theme="dark"] .v4-dr-pref .lb { color: #ECEAE5; }

.v4-dr-out { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 15px; cursor: pointer;
  background: var(--surface); box-shadow: var(--raise-sm); color: var(--down); font: 800 14px var(--font); }
.v4-dr-out svg { width: 19px; height: 19px; }
html[data-theme="dark"] .v4-dr-out { background: rgba(255, 138, 101, .08); box-shadow: 0 0 0 1px rgba(255, 138, 101, .35); }
.v4-dr-disc { margin: auto 0 0; padding-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* home: the banner is the logo now, so the big hero logo is not shown a second time */
.site-header.v4h ~ main .hero .v3-medal, .site-header.v4h ~ main .hero-brand { display: none !important; }

/* v4.2 site announcement (owner message for every visitor) */
.v4-annwrap { max-width: 1120px; margin: 2px auto 6px; padding: 0 18px; box-sizing: border-box; }
.v4-ann { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--raise-sm); color: var(--navy-ink); font-size: 13.5px; line-height: 1.6; }
.v4-ann p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.v4-ann .ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--navy); }
.v4-ann .ic svg { width: 18px; height: 18px; }
.v4-ann .x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.v4-ann .x svg { width: 16px; height: 16px; }
.v4-ann .x:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
html[data-theme="dark"] .v4-ann { background: rgba(18, 21, 23, .78); box-shadow: 0 0 0 1px rgba(46, 242, 194, .3), 0 0 18px rgba(46, 242, 194, .12); color: #ECEAE5; }
html[data-theme="dark"] .v4-ann .ic { background: rgba(46, 242, 194, .12); color: #2EF2C2; }

/* v4.3: "last updated" line + per-card failure state (data layer) */
.v43-upd { margin: 6px 0 0; font-size: 12px; opacity: .78; }
.v43-upd.v43-chart { margin-top: 4px; text-align: center; }
.v43-fail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 90px; padding: 12px; text-align: center; color: var(--muted); }
.v43-fail .v43-retry { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }

/* v4.4: scanner squeeze-degree column + controls + explanation; Sharia notice card */
.v44-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 2px; }
.v44-ctl .seg button { font-family: var(--latin); padding: 7px 12px; }
.v44-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.v44-sort select { font: 600 13px var(--font); color: var(--navy); background: var(--surface); border: 1px solid rgba(142, 145, 143, .35); border-radius: 10px; padding: 6px 8px; max-width: 150px; }
.v44-dir { font: 700 13px var(--font); color: var(--navy); background: var(--surface); border: 1px solid rgba(142, 145, 143, .35); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.v44-dir:disabled { opacity: .45; cursor: default; }
.v44-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); cursor: pointer; }
.v44-only input { width: 16px; height: 16px; accent-color: #0B8F7B; }
.v44-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px -4px; font-size: 12px; color: var(--muted); }
.v44-head button { font: 700 12px var(--font); color: var(--muted); background: none; border: 0; padding: 4px 2px; cursor: pointer; }
.v44-head button.act { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.v44-list .sr-top { align-items: flex-start; }
.v44-list .sr-top .px { margin-top: 2px; }
.v44-sq { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-inline-start: 8px; border-inline-start: 1px solid rgba(142, 145, 143, .25); text-align: center; line-height: 1.15; }
.v44-sq-top { display: flex; align-items: center; gap: 5px; }
.v44-sq b { font: 800 18px var(--latin); color: var(--navy); }
.v44-sq.na b { font: 600 11.5px var(--font); color: var(--muted); }
.v44-sq small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.v44-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(142, 145, 143, .22); overflow: hidden; }
.v44-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6B665E, #0B8F7B); }
html[dir="rtl"] .v44-bar span { margin-inline-start: auto; background: linear-gradient(270deg, #6B665E, #0B8F7B); }
.v44-st { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.v44-st.on { background: rgba(11, 143, 123, .14); color: #0B8F7B; }
.v44-st.rel { background: rgba(201, 168, 106, .12); color: #A8864A; }
.v44-st.off { background: rgba(142, 145, 143, .16); color: var(--muted); }
.v44-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.v44-dot.up { background: #12B39A; } .v44-dot.dn { background: #C9A86A; } .v44-dot.zero { background: #8E918F; }
.v44-explain { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: var(--inset); font-size: 13.5px; line-height: 1.7; }
.v44-explain h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.v44-explain ul { margin: 6px 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.v44-explain p { margin: 6px 0; }
.v44-info { font-weight: 700; color: var(--navy); }
html[data-theme="dark"] .v44-st.on { background: rgba(46, 242, 194, .14); color: #BFF8E9; }
html[data-theme="dark"] .v44-st.rel { background: rgba(242, 184, 75, .16); color: #E6D3A3; }
html[data-theme="dark"] .v44-sq b, html[data-theme="dark"] .v44-dir, html[data-theme="dark"] .v44-sort select { color: #E6E1D8; }
html[data-theme="dark"] .v44-sort select, html[data-theme="dark"] .v44-dir { background: #15181A; }
/* Sharia notice: subtle but readable */
.v44-sharia { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(142, 145, 143, .28); border-inline-start: 3px solid #8E918F; color: var(--navy); font-size: 13px; line-height: 1.65; text-align: start; }
.v44-sharia p { margin: 0; }
.v44-sh-ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #6B665E; }
.v44-sharia.foot { max-width: 640px; margin: 12px auto 0; font-size: 12.5px; }
html[data-theme="dark"] .v44-sharia { background: rgba(24, 27, 29, .7); border-color: rgba(148, 163, 184, .22); border-inline-start-color: #6B665E; color: #D6D2CB; }
html[data-theme="dark"] .v44-sh-ic { color: #8E918F; }
.v44-list { grid-template-columns: minmax(0, 1fr); }
.v44-list .scan-row { min-width: 0; }
.v44-list .sr-top .nm small { max-width: 100%; }
@media (min-width: 760px) { .v44-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v44-sharia.foot { width: calc(100% - 32px); box-sizing: border-box; }
.v44-bt { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(142, 145, 143, .35); }
.v44-bt h3 { margin: 0 0 4px; font-size: 14.5px; color: var(--navy); }
.v44-bt h4 { margin: 12px 0 6px; font-size: 13px; color: var(--navy); }
.v44-bth { margin: 6px 0 2px; }
.v44-bth button { font-family: var(--font); padding: 6px 10px; }
.v44-bt-wrap { overflow-x: auto; max-width: 100%; }
.v44-bt-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.v44-bt-t th { font-weight: 700; color: var(--muted); text-align: start; padding: 4px 4px; font-size: 11px; }
.v44-bt-t td { padding: 5px 4px; border-top: 1px solid rgba(142, 145, 143, .18); text-align: start; }
.v44-bt-t td.num { font-family: var(--latin); white-space: nowrap; }
.v44-bt-t tr.sum td { font-weight: 700; }
.v44-bt-t tr.base td { color: var(--muted); font-style: italic; }

/* v5: Premium locked card (uses the existing tokens; no other visual change) */
.v5-lock { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed rgba(142, 145, 143, .45); color: var(--navy); text-align: start; }
.v5-lock-h { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.v5-lock-h svg { width: 20px; height: 20px; flex: none; color: #A8864A; }
.v5-lock p { margin: 6px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.v5-lock-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v5-lock .v5-sub { padding: 9px 14px; font-size: 13.5px; opacity: .75; cursor: not-allowed; }
.v5-lock.inline { margin: 6px 0 0; padding: 10px 12px; }

/* v5: whales (reuses scan-row / v44-ctl / stat; only the new pieces below) */
.v5-bias { display: inline-block; position: relative; flex: 1 1 auto; min-width: 80px; max-width: 220px; height: 8px; border-radius: 99px; background: rgba(201, 168, 106, .55); overflow: hidden; vertical-align: middle; }
.v5-bias i { position: absolute; inset-block: 0; inset-inline-start: 0; background: #2EF2C2; border-radius: 99px; }
.v5-brow { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; flex-wrap: wrap; }
.v5-brow small { color: var(--muted); }
.v5-bpct { min-width: 3.4em; font-size: 13px; }
.v5-sub { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.v5-cc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.v5-h3 { font-size: 14.5px; margin: 14px 0 6px; color: var(--navy); }
.v5-pl, .v5-ev { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.v5-pos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 13px; }
.v5-pos small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.v5-side { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.v5-side.long { color: #12B39A; } .v5-side.short { color: #C9A86A; }
.v5-addr { font-size: 12.5px; color: var(--navy); overflow-wrap: anywhere; }
.v5-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.v5-wl { display: grid; gap: 8px; }
.v5-wh { border-radius: 14px; background: var(--surface); padding: 10px 12px; }
.v5-wh summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.v5-wh summary::-webkit-details-marker { display: none; }
.v5-wh .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v5-wh .nm small { color: var(--muted); font-size: 12px; }
.v5-rk { font-weight: 700; color: var(--muted); min-width: 2.4em; }
.v5-pnl { color: var(--muted); white-space: nowrap; }
.v5-ev li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 13px; }
.v5-ev li small { color: var(--muted); font-size: 11.5px; }
.v5-wl, .v5-pl, .v5-ev { grid-template-columns: minmax(0, 1fr); }
.v5-wh, .v5-pos, .v5-ev li { min-width: 0; }
.v5-pos small, .v5-ev li span { overflow-wrap: anywhere; min-width: 0; }

/* v5.1 subscriptions (#/subscribe, profile card, renew reminder) - existing tokens only */
.v4-role.prem { background: #A8864A; color: #fff; }
.v51-kv { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.v51-kv li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 9px 0; border-bottom: 1px solid rgba(30, 29, 27, .07); font-size: 13.5px; color: var(--navy); }
html[data-theme="dark"] .v51-kv li { border-color: rgba(230, 211, 163, .1); }
.v51-kv li > b { min-width: 0; overflow-wrap: anywhere; }
.v51-amt { font-size: 16px; }
.v51-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.v51-form { display: grid; gap: 10px; margin-top: 8px; }
.v51-step { font-size: 13.5px; color: var(--navy); }
.v51-per { flex-wrap: wrap; }
.v51-go, .v51-subgo { display: inline-block; text-decoration: none; text-align: center; }
.v5-lock .v51-subgo { padding: 9px 14px; font-size: 13.5px; }
.v51-addr-w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; margin: 10px 0; }
.v51-addr-w .hint { grid-column: 1 / -1; }
.v51-addr { font-family: var(--latin), ui-monospace, monospace; font-size: 12.5px; word-break: break-all; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: var(--inset); color: var(--navy); }
.v51-qr { display: block; margin: 8px auto; width: 205px; height: 205px; background: #fff; padding: 6px; border-radius: 12px; }
.v51-copy { padding: 8px 10px; font-size: 12.5px; white-space: nowrap; }
.v51-copy svg { width: 15px; height: 15px; vertical-align: -3px; }
.v51-warn { font-size: 13px; line-height: 1.6; }
.v51-tx { margin: 10px 0; }
.v51-ben { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--navy); line-height: 1.6; }
.v51-terms { display: flex; gap: 8px; align-items: flex-start; line-height: 1.7; }
.v51-terms svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.v51-renew { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.v51-renew span { flex: 1 1 200px; }
.v51-soon { line-height: 1.7; }
.v51-sihint { margin: 8px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.v51-base { flex-basis: 100%; margin-top: -2px; font-size: 12px; }

/* v5.2 information pages + footer links (existing tokens only) */
.v52-info h2 { font-size: 16px; margin: 18px 0 6px; color: var(--navy); }
.v52-info p, .v52-info li { line-height: 1.8; font-size: 14px; color: var(--navy); }
.v52-info ul { margin: 4px 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.v52-faq { border-bottom: 1px solid rgba(30, 29, 27, .08); padding: 10px 0; }
html[data-theme="dark"] .v52-faq { border-color: rgba(230, 211, 163, .12); }
.v52-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14.5px; line-height: 1.6; }
.v52-faq p { margin: 8px 0 2px; color: var(--muted); }
.v52-upd { margin-top: 16px; }
.v52-links, .v52-foot { text-align: center; font-size: 13px; margin: 12px 0; color: var(--muted); }
.v52-links a, .v52-foot a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; display: inline-block; }
.v52-links a[aria-current] { text-decoration: none; font-weight: 700; }

/* v5.3: whales x squeeze (#/combo), past readings log (#/history), visitor counts card. Existing tokens only. */
.v53-row { position: relative; }
.v53-row .nm { text-decoration: none; color: inherit; }
.v53-cols { display: flex; align-items: stretch; gap: 10px; margin-top: 8px; }
.v53-cols > div:first-child { flex: none; }
.v53-cols .v44-sq { border-inline-start: 0; padding-inline-start: 0; }
.v53-wh { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-inline-start: 10px; border-inline-start: 1px solid rgba(142, 145, 143, .25); }
.v53-wh small { color: var(--muted); font-size: 12px; }
.v53-both { box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .v53-both { box-shadow: inset -3px 0 0 var(--teal); }
.v53-chip { margin-top: 8px; display: inline-block; }
.v53-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.v53-ev li span a { color: inherit; }
.v53-tw { overflow-x: auto; margin: 6px 0 4px; }
.v53-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.v53-t th { text-align: start; color: var(--muted); font-weight: 600; padding: 6px 6px; white-space: nowrap; }
.v53-t td { padding: 6px 6px; border-top: 1px solid rgba(142, 145, 143, .18); white-space: nowrap; }
.v53-t .v44-st { margin-inline-start: 4px; }
.v53-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 8px 0 2px; }
.v53-bars i { flex: 1; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.v53-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v53-top ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; }
.v53-top li { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; }
