/* =====================================================================
   AOM TRADERS — V59 "QUANTUM GRID" DESIGN LAYER
   ---------------------------------------------------------------------
   Additive visual layer. Loaded LAST in base.html.
   Everything is scoped to html[data-aom-ui="v59"] so the whole layer can
   be switched off by removing that attribute (or this <link>) — no other
   file depends on it. No server, database, auth or flow logic touched.
   ===================================================================== */

/* ---------- 1. Self-hosted display font (CSP: font from 'self') ------- */
@font-face{font-family:"AOM Display";src:url("/assets/fonts/aom-inter-display-medium.woff?v=59") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"AOM Display";src:url("/assets/fonts/aom-inter-display-semibold.woff?v=59") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"AOM Display";src:url("/assets/fonts/aom-inter-display-bold.woff?v=59") format("woff");font-weight:700;font-style:normal;font-display:optional}
@font-face{font-family:"AOM Display";src:url("/assets/fonts/aom-inter-display-extrabold.woff?v=59") format("woff");font-weight:800 900;font-style:normal;font-display:optional}

/* ---------- 2. Tokens ------------------------------------------------- */
html[data-aom-ui="v59"]{
  --q-ink:#f2fbff;
  --q-ink-2:rgba(226,244,252,.74);
  --q-ink-3:rgba(200,228,240,.52);
  --q-cyan:#3fe3ff;
  --q-cyan-2:#14b8e0;
  --q-cyan-glow:rgba(63,227,255,.55);
  --q-mint:#3cf2b0;
  --q-coral:#ff5f7a;
  --q-gold:#ffc85c;
  --q-panel:rgba(6,22,33,.62);
  --q-panel-2:rgba(9,31,45,.74);
  --q-line:rgba(63,227,255,.16);
  --q-line-2:rgba(63,227,255,.32);
  --q-display:"AOM Display","Segoe UI Variable Display","Segoe UI",Roboto,Inter,system-ui,sans-serif;
  --q-mono:ui-monospace,"JetBrains Mono","SF Mono","Cascadia Code","Roboto Mono",Menlo,Consolas,monospace;
  --q-ease:cubic-bezier(.2,.8,.2,1);
  --mx:50vw;--my:30vh;
}

/* ---------- 3. Fixed FX background (one static layer + cursor light) -- */
html[data-aom-ui="v59"] .v59-fx{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(40% 55% at 16% 22%,rgba(20,184,224,.16),transparent 70%),
    radial-gradient(34% 50% at 84% 14%,rgba(60,242,176,.08),transparent 70%),
    radial-gradient(30% 40% at 55% 0%,rgba(63,227,255,.12),transparent 70%),
    linear-gradient(rgba(63,227,255,.05) 1px,transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg,rgba(63,227,255,.05) 1px,transparent 1px) 0 0/56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 90% 75% at 50% 16%,#000 0%,rgba(0,0,0,.5) 50%,transparent 85%);
          mask-image:radial-gradient(ellipse 90% 75% at 50% 16%,#000 0%,rgba(0,0,0,.5) 50%,transparent 85%);
}
html[data-aom-ui="v59"] .v59-spot{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(420px circle at var(--mx) var(--my),rgba(63,227,255,.07),transparent 62%);
}

/* ---------- 4. Typography -------------------------------------------- */
html[data-aom-ui="v59"] :is(h1,h2,.brand span){font-family:var(--q-display)!important;font-feature-settings:"ss01","cv11","kern"}
html[data-aom-ui="v59"] h1{letter-spacing:-.035em!important}
html[data-aom-ui="v59"] h2{letter-spacing:-.028em!important}
html[data-aom-ui="v59"] h3{font-family:var(--q-display)!important;letter-spacing:-.012em}

/* Bilingual block fix: ID copy on block elements rendered inline before. */
html[data-lang="id"] :is(h1,h2,h3,h4,p).simple-copy-id{display:block}

/* Hero headline: liquid light gradient */
html[data-aom-ui="v59"] .hero h1 > span,
html[data-aom-ui="v59"] .v5829c-home-hero h1 > span{
  background:linear-gradient(100deg,#ffffff 0%,#d9f8ff 38%,#3fe3ff 62%,#9ef6ff 82%,#ffffff 100%);
  background-size:160% 100%;background-position:0% 50%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  filter:drop-shadow(0 0 28px rgba(63,227,255,.18));
}
@keyframes v59Liquid{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

/* Eyebrow → HUD label */
html[data-aom-ui="v59"] .eyebrow{
  font-family:var(--q-mono)!important;
  font-weight:600!important;
  letter-spacing:.18em!important;
  color:var(--q-cyan)!important;
  text-shadow:0 0 18px rgba(63,227,255,.35);
}
html[data-aom-ui="v59"] .eyebrow:not(:has(i))::before{content:"//";margin-right:.6em;opacity:.55}

/* ---------- 5. Header: glass bar + travelling scan line --------------- */
html[data-aom-ui="v59"] .site-header{
  background:linear-gradient(180deg,rgba(5,20,30,.86),rgba(5,18,27,.72))!important;
  -webkit-backdrop-filter:saturate(150%) blur(14px);
          backdrop-filter:saturate(150%) blur(14px);
  border-bottom:1px solid rgba(63,227,255,.12)!important;
  box-shadow:0 10px 40px -20px rgba(0,0,0,.8)!important;
}
html[data-aom-ui="v59"] .site-header::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,transparent 35%,rgba(63,227,255,.95) 50%,transparent 65%,transparent 100%);
  background-size:220% 100%;
  animation:v59Scan 7s linear infinite;
  opacity:.85;
}
@keyframes v59Scan{from{background-position:120% 0}to{background-position:-120% 0}}
html[data-aom-ui="v59"] .site-header .brand svg{filter:drop-shadow(0 0 10px rgba(63,227,255,.45))}
html[data-aom-ui="v59"] .nav-left a{position:relative;transition:color .2s var(--q-ease)}
html[data-aom-ui="v59"] .nav-left a:hover{color:var(--q-cyan)!important}

/* ---------- 6. Buttons: additive light, colours untouched -------------- */
html[data-aom-ui="v59"] .btn{
  position:relative;overflow:hidden;isolation:isolate;
  transition:transform .18s var(--q-ease),box-shadow .25s var(--q-ease),border-color .25s,filter .25s!important;
}
html[data-aom-ui="v59"] .btn::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.26) 48%,transparent 66%);
  transform:translateX(-120%);
  transition:transform .7s var(--q-ease);
}
html[data-aom-ui="v59"] .btn:hover::after{transform:translateX(120%)}
html[data-aom-ui="v59"] .btn:hover{transform:translateY(-1px)}
html[data-aom-ui="v59"] .btn-primary:hover{box-shadow:0 0 0 1px rgba(63,227,255,.35),0 12px 36px -10px var(--q-cyan-glow)!important}
html[data-aom-ui="v59"] .btn-secondary:hover{border-color:rgba(63,227,255,.5)!important;box-shadow:0 10px 30px -14px rgba(63,227,255,.45)!important}
html[data-aom-ui="v59"] .btn:focus-visible{outline:2px solid var(--q-cyan)!important;outline-offset:3px}
/* Success / disabled buttons keep their own state visuals */
html[data-aom-ui="v59"] .btn.is-download-success::after,
html[data-aom-ui="v59"] .btn[aria-disabled="true"]::after{display:none}

/* ---------- 7. Glass + HUD corners for main panels ---------------------- */
html[data-aom-ui="v59"] :is(.simple-direct-home-card,.v5829c-broker-card,.final-banner){
  position:relative;
  --hud:rgba(63,227,255,.75);
  background-image:
    linear-gradient(var(--hud),var(--hud)),linear-gradient(var(--hud),var(--hud)),
    linear-gradient(var(--hud),var(--hud)),linear-gradient(var(--hud),var(--hud)),
    linear-gradient(var(--hud),var(--hud)),linear-gradient(var(--hud),var(--hud)),
    linear-gradient(var(--hud),var(--hud)),linear-gradient(var(--hud),var(--hud)),
    linear-gradient(155deg,rgba(8,30,44,.80),rgba(5,17,27,.88))!important;
  background-size:14px 1px,1px 14px,14px 1px,1px 14px,14px 1px,1px 14px,14px 1px,1px 14px,100% 100%!important;
  background-position:10px 10px,10px 10px,calc(100% - 10px) 10px,calc(100% - 10px) 10px,10px calc(100% - 10px),10px calc(100% - 10px),calc(100% - 10px) calc(100% - 10px),calc(100% - 10px) calc(100% - 10px),0 0!important;
  background-repeat:no-repeat!important;
  border:1px solid var(--q-line)!important;
  box-shadow:0 30px 80px -40px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.04)!important;
}

/* Account card: steps become a lit pipeline */
html[data-aom-ui="v59"] .v5829c-account-steps > div{
  position:relative;
  border-color:rgba(63,227,255,.14)!important;
  background:linear-gradient(90deg,rgba(63,227,255,.06),rgba(63,227,255,.01))!important;
  transition:border-color .3s,background .3s,transform .3s var(--q-ease);
}
html[data-aom-ui="v59"] .v5829c-account-steps > div > span{font-family:var(--q-mono)!important;color:var(--q-cyan)!important}
html[data-aom-ui="v59"] .v5829c-account-steps > div.v59-active{
  border-color:rgba(63,227,255,.55)!important;
  background:linear-gradient(90deg,rgba(63,227,255,.16),rgba(63,227,255,.02))!important;
  box-shadow:0 0 24px -8px rgba(63,227,255,.6);
  transform:translateX(4px);
}
html[data-aom-ui="v59"] .simple-assurance{border-color:var(--q-line)!important;background:rgba(5,20,30,.55)!important}
html[data-aom-ui="v59"] .simple-assurance b{font-family:var(--q-mono)!important;letter-spacing:.06em;color:var(--q-ink)!important}
html[data-aom-ui="v59"] .status-pill{font-family:var(--q-mono)!important;letter-spacing:.1em}

/* ---------- 8. Hero: live logic canvas -------------------------------- */
html[data-aom-ui="v59"] .v5829c-home-hero{position:relative;isolation:isolate}
html[data-aom-ui="v59"] .v59-hero-canvas{
  position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,transparent 34%,rgba(0,0,0,.6) 46%,#000 58%,#000 94%,transparent 100%),linear-gradient(180deg,transparent,#000 12%,#000 82%,transparent);
  -webkit-mask-composite:source-in;
          mask-image:linear-gradient(90deg,transparent 0%,transparent 34%,rgba(0,0,0,.6) 46%,#000 58%,#000 94%,transparent 100%),linear-gradient(180deg,transparent,#000 12%,#000 82%,transparent);
          mask-composite:intersect;
  opacity:.9;
}
html[data-aom-ui="v59"] .v5829c-home-hero > .container{position:relative;z-index:2}
/* Let the live canvas glow through the hero frame */
html[data-aom-ui="v59"] .v5829c-home-hero .simple-direct-home-visual{
  background:linear-gradient(145deg,rgba(8,28,42,.30),rgba(4,14,22,.18))!important;
  border-color:rgba(63,227,255,.14)!important;
}
html[data-aom-ui="v59"] .v59-hero-hud{
  position:absolute;z-index:3;right:max(24px,calc((100vw - 1348px)/2));top:22px;
  display:flex;gap:10px;align-items:center;pointer-events:none;
  font:600 10px/1 var(--q-mono);letter-spacing:.16em;color:var(--q-ink-3);text-transform:uppercase;
}
html[data-aom-ui="v59"] .v59-hero-hud b{color:var(--q-cyan);font-weight:700}
html[data-aom-ui="v59"] .v59-hero-hud .v59-chip{padding:6px 9px;border:1px solid var(--q-line);border-radius:6px;background:rgba(4,16,24,.6)}
html[data-aom-ui="v59"] .v59-caret{display:inline-block;width:.55em;height:1em;margin-left:2px;vertical-align:-2px;background:var(--q-cyan);animation:v59Blink 1.05s steps(1) infinite}
@keyframes v59Blink{50%{opacity:0}}

/* ---------- 9. Live activity → exchange board --------------------------- */
html[data-aom-ui="v59"] .aom-live-activity{
  background:linear-gradient(180deg,rgba(3,14,21,.94),rgba(4,18,27,.94))!important;
  border-color:rgba(63,227,255,.18)!important;
  box-shadow:inset 0 1px 0 rgba(63,227,255,.08),0 0 40px -20px rgba(63,227,255,.5);
}
html[data-aom-ui="v59"] .aom-live-activity::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px);
}
html[data-aom-ui="v59"] .aom-live-activity-label{font-family:var(--q-mono)!important;letter-spacing:.2em!important}
html[data-aom-ui="v59"] .aom-live-dot{animation:v59Pulse 1.6s ease-in-out infinite}
html[data-aom-ui="v59"] .aom-live-activity-item{font-family:var(--q-mono);font-size:11.5px!important;letter-spacing:.02em}
html[data-aom-ui="v59"] .aom-live-activity-product{text-shadow:0 0 14px rgba(63,227,255,.55)}
html[data-aom-ui="v59"] .aom-live-activity-product.is-premium{text-shadow:0 0 14px rgba(255,200,92,.5)}
@keyframes v59Pulse{0%,100%{box-shadow:0 0 0 0 rgba(78,229,255,.7)}50%{box-shadow:0 0 0 6px rgba(78,229,255,0)}}

/* ---------- 10. Market sessions (WIB) ---------------------------------- */
html[data-aom-ui="v59"] .v59-sessions{position:relative;z-index:3;padding:34px 0 6px}
html[data-aom-ui="v59"] .v59-sessions-shell{
  display:grid;grid-template-columns:minmax(220px,280px) 1fr;gap:18px;align-items:stretch;
}
html[data-aom-ui="v59"] .v59-sessions-clock,
html[data-aom-ui="v59"] .v59-sessions-board{
  position:relative;border:1px solid var(--q-line);border-radius:16px;
  background:linear-gradient(160deg,rgba(7,27,40,.72),rgba(4,15,23,.82));
  box-shadow:0 24px 60px -36px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-aom-ui="v59"] .v59-sessions-clock{padding:18px 20px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
html[data-aom-ui="v59"] .v59-k{font:600 10px/1.2 var(--q-mono);letter-spacing:.18em;color:var(--q-ink-3);text-transform:uppercase}
html[data-aom-ui="v59"] .v59-clock{font:700 38px/1 var(--q-mono);letter-spacing:.02em;color:var(--q-ink);font-variant-numeric:tabular-nums;text-shadow:0 0 30px rgba(63,227,255,.25)}
html[data-aom-ui="v59"] .v59-clock small{font-size:.42em;color:var(--q-ink-3);margin-left:6px;letter-spacing:.1em}
html[data-aom-ui="v59"] .v59-gold{display:flex;align-items:center;gap:8px;font:600 11px/1.3 var(--q-mono);letter-spacing:.08em;color:var(--q-ink-2)}
html[data-aom-ui="v59"] .v59-gold i{width:8px;height:8px;border-radius:50%;background:#56606a;flex:0 0 auto}
html[data-aom-ui="v59"] .v59-gold.is-open i{background:var(--q-mint);box-shadow:0 0 12px var(--q-mint);animation:v59PulseMint 1.8s ease-in-out infinite}
html[data-aom-ui="v59"] .v59-gold.is-open b{color:var(--q-mint)}
html[data-aom-ui="v59"] .v59-gold.is-closed b{color:var(--q-coral)}
@keyframes v59PulseMint{0%,100%{box-shadow:0 0 0 0 rgba(60,242,176,.6)}50%{box-shadow:0 0 0 6px rgba(60,242,176,0)}}

html[data-aom-ui="v59"] .v59-sessions-board{padding:16px 18px 12px}
html[data-aom-ui="v59"] .v59-board-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
html[data-aom-ui="v59"] .v59-board-head .v59-overlap{font:600 10px/1.2 var(--q-mono);letter-spacing:.12em;color:var(--q-gold)}
html[data-aom-ui="v59"] .v59-rows{position:relative;display:grid;gap:7px}
html[data-aom-ui="v59"] .v59-row{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:12px}
html[data-aom-ui="v59"] .v59-row-name{font:600 11px/1 var(--q-mono);letter-spacing:.1em;color:var(--q-ink-2);display:flex;align-items:center;gap:7px;white-space:nowrap}
html[data-aom-ui="v59"] .v59-row-name i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.18)}
html[data-aom-ui="v59"] .v59-row.is-live .v59-row-name{color:var(--q-ink)}
html[data-aom-ui="v59"] .v59-row.is-live .v59-row-name i{background:var(--q-cyan);box-shadow:0 0 10px var(--q-cyan)}
html[data-aom-ui="v59"] .v59-lane{position:relative;height:18px;border-radius:5px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px calc(100%/24));outline:1px solid rgba(255,255,255,.04)}
html[data-aom-ui="v59"] .v59-bar{position:absolute;top:3px;bottom:3px;border-radius:4px;background:linear-gradient(90deg,rgba(63,227,255,.22),rgba(63,227,255,.38));border:1px solid rgba(63,227,255,.28)}
html[data-aom-ui="v59"] .v59-row.is-live .v59-bar{background:linear-gradient(90deg,rgba(63,227,255,.45),rgba(63,227,255,.8));border-color:rgba(158,246,255,.8);box-shadow:0 0 16px -2px rgba(63,227,255,.7)}
html[data-aom-ui="v59"] .v59-now{position:absolute;top:-6px;bottom:-4px;width:2px;margin-left:-1px;background:var(--q-gold);box-shadow:0 0 12px var(--q-gold);border-radius:2px;pointer-events:none}
html[data-aom-ui="v59"] .v59-now::before{content:"";position:absolute;top:-4px;left:50%;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:var(--q-gold);box-shadow:0 0 10px var(--q-gold)}
html[data-aom-ui="v59"] .v59-axis{display:grid;grid-template-columns:96px 1fr;gap:12px;margin-top:6px}
html[data-aom-ui="v59"] .v59-axis div{display:flex;justify-content:space-between;font:500 9px/1 var(--q-mono);color:var(--q-ink-3);letter-spacing:.05em}

/* ---------- 11. Product cards: holographic tilt + signature -------------- */
html[data-aom-ui="v59"] .product-card{
  position:relative;
  transform-style:preserve-3d;
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
  transition:transform .5s var(--q-ease),border-color .3s,box-shadow .4s!important;
  will-change:transform;
}
html[data-aom-ui="v59"] .product-card.v59-tilting{transition:transform .08s linear,border-color .3s,box-shadow .4s!important}
html[data-aom-ui="v59"] .product-card::before{
  content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:3;
  padding:1px;
  background:radial-gradient(260px circle at var(--px,50%) var(--py,0%),rgba(63,227,255,.9),rgba(63,227,255,.15) 40%,transparent 70%);
  -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);
  opacity:.35;transition:opacity .35s;
}
html[data-aom-ui="v59"] .product-card::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
  background:linear-gradient(115deg,transparent 20%,rgba(158,246,255,.10) 40%,rgba(255,200,92,.06) 50%,rgba(60,242,176,.08) 60%,transparent 80%);
  background-size:250% 250%;
  background-position:var(--sx,100%) 50%;
  opacity:0;transition:opacity .35s;mix-blend-mode:screen;
}
html[data-aom-ui="v59"] .product-card:hover{border-color:rgba(63,227,255,.38)!important;box-shadow:0 30px 70px -35px rgba(63,227,255,.45),0 0 0 1px rgba(63,227,255,.08)!important}
html[data-aom-ui="v59"] .product-card:hover::before{opacity:1}
html[data-aom-ui="v59"] .product-card:hover::after{opacity:1}
html[data-aom-ui="v59"] .product-card .product-kind,
html[data-aom-ui="v59"] .product-card .product-tag{font-family:var(--q-mono)!important;letter-spacing:.14em}
html[data-aom-ui="v59"] .product-card .product-price b{font-family:var(--q-mono)!important;letter-spacing:.12em;color:var(--q-mint)!important;text-shadow:0 0 16px rgba(60,242,176,.35)}
html[data-aom-ui="v59"] .product-card .product-logo img{transition:transform .5s var(--q-ease),filter .5s}
html[data-aom-ui="v59"] .product-card:hover .product-logo img{transform:translateZ(30px) scale(1.04);filter:drop-shadow(0 0 18px rgba(63,227,255,.35))}

/* Strategy signature strip (injected into .product-logo by JS) */
html[data-aom-ui="v59"] .v59-sig{
  position:absolute;left:10px;right:10px;bottom:8px;height:30px;z-index:2;pointer-events:none;
  display:flex;align-items:center;gap:8px;
  opacity:.55;transition:opacity .35s;
}
html[data-aom-ui="v59"] .product-card:hover .v59-sig,
html[data-aom-ui="v59"] .product-card:focus-within .v59-sig{opacity:1}
html[data-aom-ui="v59"] .v59-sig svg{flex:1 1 auto;min-width:0;width:auto;height:30px;overflow:visible}
html[data-aom-ui="v59"] .v59-sig em{flex:0 0 auto}
html[data-aom-ui="v59"] .v59-sig em{font:600 8.5px/1 var(--q-mono);letter-spacing:.16em;color:var(--sig,var(--q-cyan));font-style:normal;white-space:nowrap;text-transform:uppercase;padding:4px 6px;border:1px solid currentColor;border-radius:4px;background:rgba(3,12,18,.75)}
html[data-aom-ui="v59"] .v59-sig .s-price{fill:none;stroke:var(--sig,var(--q-cyan));stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:var(--len,260);stroke-dashoffset:var(--len,260);animation:v59Draw 3.6s var(--q-ease) infinite}
html[data-aom-ui="v59"] .v59-sig .s-level{stroke:rgba(255,255,255,.22);stroke-width:1;stroke-dasharray:3 3}
html[data-aom-ui="v59"] .v59-sig .s-buy{stroke:var(--q-mint);stroke-width:1.2;stroke-dasharray:4 3;opacity:0;animation:v59OrderOn 3.6s infinite}
html[data-aom-ui="v59"] .v59-sig .s-sell{stroke:var(--q-coral);stroke-width:1.2;stroke-dasharray:4 3;opacity:0;animation:v59OrderOn 3.6s infinite}
html[data-aom-ui="v59"] .v59-sig .s-dot{fill:var(--sig,var(--q-cyan));opacity:0;animation:v59Dot 3.6s infinite}
html[data-aom-ui="v59"] .v59-sig:not(.v59-in) *{animation-play-state:paused!important}
html[data-aom-ui="v59"] .v59-sig .s-d2{animation-delay:.35s}
html[data-aom-ui="v59"] .v59-sig .s-d3{animation-delay:.7s}
@keyframes v59Draw{0%{stroke-dashoffset:var(--len,260)}55%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:calc(var(--len,260) * -1)}}
@keyframes v59OrderOn{0%,40%{opacity:0}48%,86%{opacity:1}100%{opacity:0}}
@keyframes v59Dot{0%,50%{opacity:0;transform:scale(.4)}58%,86%{opacity:1;transform:scale(1)}100%{opacity:0}}

/* ---------- 12. Flow 01–04 → circuit ----------------------------------- */
html[data-aom-ui="v59"] .v5829c-public-flow{position:relative;gap:16px!important}
html[data-aom-ui="v59"] .v5829c-public-flow::before{
  content:"";position:absolute;left:24px;right:24px;top:33px;height:2px;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(63,227,255,.08),rgba(63,227,255,.25),rgba(63,227,255,.08));
}
html[data-aom-ui="v59"] .v5829c-public-flow::after{
  content:"";position:absolute;left:24px;top:32px;height:4px;width:var(--flow,0%);max-width:calc(100% - 48px);z-index:0;pointer-events:none;border-radius:4px;
  background:linear-gradient(90deg,rgba(63,227,255,.2),var(--q-cyan));
  box-shadow:0 0 18px var(--q-cyan);
  transition:width 1.6s var(--q-ease);
}
html[data-aom-ui="v59"] .v5829c-public-flow article{
  position:relative;z-index:1;
  padding:20px 20px 22px!important;
  background:linear-gradient(170deg,rgba(8,30,44,.78),rgba(4,15,23,.9))!important;
  border:1px solid rgba(63,227,255,.12)!important;
  transition:border-color .5s,box-shadow .5s,transform .5s var(--q-ease);
}
html[data-aom-ui="v59"] .v5829c-public-flow article > span{
  display:inline-grid!important;place-items:center;width:30px;height:30px;margin-bottom:16px!important;
  border-radius:8px;border:1px solid rgba(63,227,255,.3);background:#041018;
  font:700 12px/1 var(--q-mono)!important;color:var(--q-ink-3)!important;
  transition:all .5s var(--q-ease);
}
html[data-aom-ui="v59"] .v5829c-public-flow article h3{font-size:16px!important;margin:0 0 8px!important}
html[data-aom-ui="v59"] .v5829c-public-flow article p{font-size:12.5px!important;line-height:1.6!important;opacity:.7!important}
html[data-aom-ui="v59"] .v5829c-public-flow article.v59-lit{border-color:rgba(63,227,255,.38)!important;box-shadow:0 20px 50px -30px rgba(63,227,255,.6)}
html[data-aom-ui="v59"] .v5829c-public-flow article.v59-lit > span{color:#021018!important;background:var(--q-cyan);border-color:var(--q-cyan);box-shadow:0 0 22px rgba(63,227,255,.8)}

/* ---------- 13. Broker handshake visual -------------------------------- */
html[data-aom-ui="v59"] .v59-link{display:flex;align-items:center;justify-content:center;gap:0;margin:2px 0 0;min-width:240px}
html[data-aom-ui="v59"] .v59-link .v59-node{font:700 10px/1 var(--q-mono);letter-spacing:.14em;color:var(--q-ink-2);padding:8px 10px;border:1px solid var(--q-line-2);border-radius:8px;background:rgba(3,14,21,.85);white-space:nowrap}
html[data-aom-ui="v59"] .v59-link .v59-core{color:#031018;background:var(--q-cyan);border-color:var(--q-cyan);box-shadow:0 0 24px rgba(63,227,255,.6)}
html[data-aom-ui="v59"] .v59-link .v59-wire{position:relative;flex:1;min-width:28px;height:2px;background:rgba(63,227,255,.18);overflow:hidden}
html[data-aom-ui="v59"] .v59-link .v59-wire::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,var(--q-cyan),transparent);animation:v59Packet 1.8s linear infinite;will-change:transform}
html[data-aom-ui="v59"] .v59-link .v59-wire.rev::after{animation-direction:reverse}
@keyframes v59Packet{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

/* ---------- 14. Community constellation ------------------------------- */
html[data-aom-ui="v59"] .final-banner{overflow:hidden;isolation:isolate}
html[data-aom-ui="v59"] .final-banner > *:not(.v59-constellation){position:relative;z-index:1}
html[data-aom-ui="v59"] .v59-constellation{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.85}

/* ---------- 15. Footer signature --------------------------------------- */
html[data-aom-ui="v59"] .footer{border-top:1px solid rgba(63,227,255,.1)}
html[data-aom-ui="v59"] .footer h4{font-family:var(--q-mono)!important;letter-spacing:.18em!important}
html[data-aom-ui="v59"] .footer a{transition:color .2s}
html[data-aom-ui="v59"] .footer a:hover{color:var(--q-cyan)!important}
html[data-aom-ui="v59"] .v59-footer-motto{
  display:block;position:relative;clear:both;margin:clamp(28px,4vw,56px) auto 8px;padding:0 16px;text-align:center;overflow:hidden;pointer-events:none;user-select:none;
  font:800 clamp(28px,8.6vw,140px)/.9 var(--q-display);letter-spacing:-.045em;white-space:nowrap;
  color:transparent;-webkit-text-stroke:1px rgba(63,227,255,.20);
  background:linear-gradient(180deg,rgba(63,227,255,.16),rgba(63,227,255,0) 85%);
  -webkit-background-clip:text;background-clip:text;
}
html[data-aom-ui="v59"] .footer-bottom span:last-child{font-family:var(--q-mono);letter-spacing:.14em;color:var(--q-cyan)}

/* ---------- 16. AOM Assistant → terminal ------------------------------- */
html[data-aom-ui="v59"] .assistant-fab{font-family:var(--q-mono)!important;letter-spacing:.08em;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 10px 30px -10px rgba(63,227,255,.45)!important}
html[data-aom-ui="v59"] .assistant-fab .assistant-dot{animation:v59Pulse 1.6s ease-in-out infinite}
html[data-aom-ui="v59"] .assistant-panel{
  background:linear-gradient(180deg,rgba(4,16,24,.96),rgba(3,11,17,.98))!important;
  border-color:rgba(63,227,255,.28)!important;
  box-shadow:0 30px 90px -30px rgba(0,0,0,.95),0 0 0 1px rgba(63,227,255,.06),0 0 60px -30px rgba(63,227,255,.6)!important;
}
html[data-aom-ui="v59"] .assistant-head{border-bottom:1px solid rgba(63,227,255,.14)!important}
html[data-aom-ui="v59"] .assistant-head strong{font-family:var(--q-mono)!important;letter-spacing:.06em}
html[data-aom-ui="v59"] .assistant-head strong::before{content:"● ● ●";margin-right:10px;font-size:8px;letter-spacing:3px;color:var(--q-cyan);opacity:.7;vertical-align:2px}
html[data-aom-ui="v59"] .assistant-bubble{font-family:var(--q-mono)!important;font-size:12.5px!important;line-height:1.6!important}
html[data-aom-ui="v59"] .assistant-bubble-bot{border-left:2px solid var(--q-cyan)!important;background:rgba(63,227,255,.05)!important}
html[data-aom-ui="v59"] .assistant-form{position:relative}
html[data-aom-ui="v59"] .assistant-form input{font-family:var(--q-mono)!important;padding-left:56px!important;caret-color:var(--q-cyan)}
html[data-aom-ui="v59"] .assistant-form::before{content:"aom>";position:absolute;left:28px;top:50%;transform:translateY(-50%);font:700 12px/1 var(--q-mono);color:var(--q-cyan);pointer-events:none;z-index:2}

/* ---------- 17. Section headings: subtle reveal line --------------------- */
html[data-aom-ui="v59"] .section-head h2,
html[data-aom-ui="v59"] .simple-centered-head h2{position:relative}
html[data-aom-ui="v59"] .simple-products .section-head h2{
  background:linear-gradient(180deg,#fff 30%,rgba(210,240,250,.7));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}

/* ---------- 18. Responsive ---------------------------------------------- */
@media (max-width:980px){
  html[data-aom-ui="v59"] .v59-sessions-shell{grid-template-columns:1fr}
  html[data-aom-ui="v59"] .v59-sessions-clock{flex-direction:row;align-items:center;flex-wrap:wrap}
  html[data-aom-ui="v59"] .v5829c-public-flow::before,
  html[data-aom-ui="v59"] .v5829c-public-flow::after{display:none}
  html[data-aom-ui="v59"] .v59-hero-hud{display:none}
}
@media (max-width:620px){
  html[data-aom-ui="v59"] .v59-sessions{padding:22px 0 0}
  html[data-aom-ui="v59"] .v59-clock{font-size:30px}
  html[data-aom-ui="v59"] .v59-row{grid-template-columns:70px 1fr;gap:8px}
  html[data-aom-ui="v59"] .v59-axis{grid-template-columns:70px 1fr;gap:8px}
  html[data-aom-ui="v59"] .v59-row-name{font-size:10px;letter-spacing:.04em}
  html[data-aom-ui="v59"] .v59-board-head{flex-direction:column;align-items:flex-start;gap:4px}
  html[data-aom-ui="v59"] .v59-link{min-width:0;width:100%}
  html[data-aom-ui="v59"] .v59-hero-canvas{opacity:.5}
}
/* No hover tilt / no heavy blur on touch devices */
@media (hover:none),(pointer:coarse){
  html[data-aom-ui="v59"] .product-card{transform:none!important}
  html[data-aom-ui="v59"] .v59-sig{opacity:.9}
  html[data-aom-ui="v59"] .v59-spot{display:none}
}

/* ---------- 19. Reduced motion: everything still, fully readable -------- */
@media (prefers-reduced-motion:reduce){
  html[data-aom-ui="v59"] .v59-fx *,
  html[data-aom-ui="v59"] .site-header::after,
  html[data-aom-ui="v59"] .hero h1 > span,
  html[data-aom-ui="v59"] .v5829c-home-hero h1 > span,
  html[data-aom-ui="v59"] .v59-sig *,
  html[data-aom-ui="v59"] .v59-wire::after,
  html[data-aom-ui="v59"] .v59-caret,
  html[data-aom-ui="v59"] .aom-live-dot,
  html[data-aom-ui="v59"] .assistant-dot{animation:none!important}
  html[data-aom-ui="v59"] .v59-sig .s-price{stroke-dashoffset:0}
  html[data-aom-ui="v59"] .v59-sig :is(.s-buy,.s-sell,.s-dot){opacity:1}
  html[data-aom-ui="v59"] .product-card{transform:none!important}
}

/* ---------- 20. Lite mode (set by JS on low-end / data-saver devices) --- */
html[data-aom-ui="v59"].v59-lite .v59-sig *,
html[data-aom-ui="v59"].v59-lite .v59-wire::after,
html[data-aom-ui="v59"].v59-lite .site-header::after{animation:none!important}
html[data-aom-ui="v59"].v59-lite .v59-sig .s-price{stroke-dashoffset:0}
html[data-aom-ui="v59"].v59-lite .v59-sig :is(.s-buy,.s-sell,.s-dot){opacity:1}
html[data-aom-ui="v59"].v59-lite .site-header{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(5,19,28,.97)!important}
html[data-aom-ui="v59"].v59-lite .assistant-fab{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- 21. Back button — option A "HUD Bracket" (v5902) ------------ */
html[data-aom-ui="v59"] .aom-page-back.v59-back{
  --b:rgba(63,227,255,.85);
  position:relative;display:inline-flex!important;align-items:center;gap:12px;
  min-height:44px;padding:10px 16px 10px 12px!important;
  border:0!important;border-radius:0!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  background-color:transparent!important;
  background-image:
    linear-gradient(var(--b),var(--b)),linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)),linear-gradient(var(--b),var(--b)),
    linear-gradient(90deg,rgba(63,227,255,.12),rgba(63,227,255,.03) 70%,rgba(63,227,255,0))!important;
  background-size:10px 1px,1px 10px,1px 10px,10px 1px,100% 100%!important;
  background-position:0 0,0 0,0 100%,0 100%,0 0!important;
  background-repeat:no-repeat!important;
  box-shadow:none!important;
  font:700 12px/1 var(--q-mono)!important;letter-spacing:.2em!important;text-transform:uppercase;
  color:var(--q-ink)!important;
  transition:background-size .3s var(--q-ease),color .25s,transform .25s var(--q-ease)!important;
}
html[data-aom-ui="v59"] .aom-page-back.v59-back::after{display:none}
html[data-aom-ui="v59"] .aom-page-back.v59-back .aom-page-back-arrow{
  display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;
  border:1px solid rgba(63,227,255,.45);border-radius:5px;
  color:var(--q-cyan)!important;font-size:14px!important;letter-spacing:0;
  transition:background .25s,color .25s,box-shadow .25s,transform .25s var(--q-ease);
}
html[data-aom-ui="v59"] .aom-page-back.v59-back .v59-esc{
  margin-left:4px;padding:4px 5px;border:1px solid rgba(255,255,255,.18);border-radius:4px;
  font:600 9px/1 var(--q-mono);letter-spacing:.08em;color:var(--q-ink-3);
}
html[data-aom-ui="v59"] .aom-page-back.v59-back:hover,
html[data-aom-ui="v59"] .aom-page-back.v59-back:focus-visible{
  color:var(--q-cyan)!important;transform:none!important;
  background-size:16px 1px,1px 16px,1px 16px,16px 1px,100% 100%!important;
}
html[data-aom-ui="v59"] .aom-page-back.v59-back:hover .aom-page-back-arrow,
html[data-aom-ui="v59"] .aom-page-back.v59-back:focus-visible .aom-page-back-arrow{
  background:var(--q-cyan);color:#031018!important;box-shadow:0 0 16px rgba(63,227,255,.7);transform:translateX(-3px);
}
html[data-aom-ui="v59"] .aom-page-back.v59-back:focus-visible{outline:1px dashed rgba(63,227,255,.6);outline-offset:4px}
@media (hover:none),(pointer:coarse),(max-width:760px){
  html[data-aom-ui="v59"] .aom-page-back.v59-back .v59-esc{display:none}
  html[data-aom-ui="v59"] .aom-page-back.v59-back{min-height:42px;padding:9px 14px 9px 10px!important}
}

/* =======================================================================
   22. PAGE SHELL — one rhythm for every inner page (v5904)
   Home is untouched. Header height: 82px desktop / 76px tablet / 68px phone.
   ======================================================================= */
html[data-aom-ui="v59"]{--v59-hdr:82px;--v59-back:62px;--v59-gap:28px}
@media (max-width:900px){html[data-aom-ui="v59"]{--v59-hdr:76px;--v59-back:56px;--v59-gap:22px}}
@media (max-width:700px){html[data-aom-ui="v59"]{--v59-hdr:68px;--v59-back:54px;--v59-gap:18px}}

/* 22.1 remove the dead band under the fixed header */
html[data-aom-ui="v59"] body:not(.page-home){padding-top:var(--v59-hdr)!important}
html[data-aom-ui="v59"] body:not(.page-home) .site-shell{padding-top:0!important;background:none!important;min-height:0!important}

/* 22.2 compact back row */
html[data-aom-ui="v59"] body:not(.page-home) #main > .aom-page-back-wrap{
  padding-top:18px!important;padding-bottom:0!important;height:auto!important;min-height:0!important;margin-bottom:0!important}
@media (max-width:700px){
  html[data-aom-ui="v59"] body:not(.page-home) #main > .aom-page-back-wrap{padding-top:12px!important}
}

/* 22.3 centred heroes on wide screens: back button sits in the hero row */
@media (min-width:1280px){
  html[data-aom-ui="v59"] body:is(.page-products,.page-community) #main > .aom-page-back-wrap{
    height:0!important;padding-top:0!important;overflow:visible!important;z-index:5}
  html[data-aom-ui="v59"] body:is(.page-products,.page-community) #main > .aom-page-back-wrap .aom-page-back{top:18px}
}

/* 22.4 hero: compact, same top/bottom rhythm everywhere */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.premium-ea-hero,.v45-community-hero,.legal-hero,.order-hero,.v57-product-hero).section-first{
  min-height:0!important;height:auto!important;padding-top:14px!important;padding-bottom:var(--v59-gap)!important}
html[data-aom-ui="v59"] body:is(.page-premium_ea,.page-products,.page-community) #main .section-first{padding-top:18px!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .page-hero-grid{padding-top:0!important;padding-bottom:0!important;min-height:0!important}

/* 22.5 one title scale */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.premium-ea-hero,.v45-community-hero,.legal-hero,.order-hero,.v57-product-hero,.aom-order-intro,.aom-guide-hero,.v43-calendar-hero) h1{
  font-size:clamp(34px,2vw + 16px,56px)!important;line-height:1.04!important;margin:10px 0 12px!important;max-width:min(100%,24ch)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.premium-ea-hero,.v45-community-hero,.v57-product-hero,.aom-order-intro) h1{margin-left:auto!important;margin-right:auto!important;max-width:min(100%,34ch)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .premium-ea-hero-inner{max-width:min(1040px,100%)!important;width:auto!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.premium-ea-hero,.v45-community-hero,.legal-hero,.order-hero,.v57-product-hero,.aom-guide-hero) .lead{
  font-size:clamp(14px,.3vw + 12px,16px)!important;line-height:1.6!important;max-width:680px!important;margin-bottom:0!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .product-detail-copy h1{font-size:clamp(34px,2vw + 16px,56px)!important;line-height:1.04!important;margin:12px 0 12px!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .section-head h2,
html[data-aom-ui="v59"] body:not(.page-home) #main .v57-access-heading h2,
html[data-aom-ui="v59"] body:not(.page-home) #main .v463-section-intro h2{font-size:clamp(24px,.9vw + 16px,34px)!important;line-height:1.1!important}

/* 22.6 first content block follows the hero at a fixed gap */
html[data-aom-ui="v59"] body:not(.page-home) #main > .section-first + .section,
html[data-aom-ui="v59"] body:not(.page-home) #main > .aom-guide-page > .section-first + .section{padding-top:var(--v59-gap)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .section-head,
html[data-aom-ui="v59"] body:not(.page-home) #main .v57-access-heading,
html[data-aom-ui="v59"] body:not(.page-home) #main .v463-section-intro{margin-bottom:18px!important}

/* 22.7 single-panel pages: panel centred in the visible screen */
html[data-aom-ui="v59"] body:is(.page-register,.page-partner) #main :is(.aom-register-page,.aom-ea-gateway){min-height:0!important;height:auto!important}
html[data-aom-ui="v59"] body:is(.page-register,.page-partner) #main :is(.aom-register-stage,.aom-ea-gateway-stage){
  min-height:calc(100svh - var(--v59-hdr) - var(--v59-back))!important;height:auto!important;
  padding-top:16px!important;padding-bottom:28px!important;display:flex!important;align-items:center!important}
html[data-aom-ui="v59"] body.page-aom_account #main .aom-account-page{min-height:0!important;height:auto!important}
html[data-aom-ui="v59"] body.page-aom_account #main .aom-account-login-stage{
  min-height:calc(100svh - var(--v59-hdr))!important;height:auto!important;padding-top:16px!important;padding-bottom:28px!important;display:flex!important;align-items:center!important}
html[data-aom-ui="v59"] body:is(.page-register,.page-partner,.page-aom_account) #main :is(.aom-register-wrap,.aom-ea-gateway-wrap,.aom-account-login-wrap){margin-top:auto!important;margin-bottom:auto!important}
html[data-aom-ui="v59"] body.page-product_detail #main .product-detail-hero.section-first{
  min-height:calc(100svh - var(--v59-hdr) - var(--v59-back))!important;height:auto!important;
  padding-top:12px!important;padding-bottom:28px!important;display:flex!important;align-items:center!important}
html[data-aom-ui="v59"] body.page-product_detail #main .product-detail-hero > .container{width:100%}
html[data-aom-ui="v59"] body.page-order_status #main .aom-order-page{min-height:0!important;padding-top:18px!important;padding-bottom:var(--v59-gap)!important}
html[data-aom-ui="v59"] body.page-order_status #main .aom-order-intro{margin-bottom:18px!important}

/* 22.8 per-page finishing */
html[data-aom-ui="v59"] body.page-market #main .page-hero-grid{padding:30px 36px!important}
@media (max-width:700px){html[data-aom-ui="v59"] body.page-market #main .page-hero-grid{padding:22px 18px!important}}
html[data-aom-ui="v59"] body:is(.page-privacy,.page-terms) #main .legal-copy{padding-top:0!important;margin-top:0!important}
html[data-aom-ui="v59"] body:is(.page-privacy,.page-terms) #main .legal-copy > h2:first-child{margin-top:0!important}
html[data-aom-ui="v59"] body.page-calendar #main .v43-calendar-root.section-first{padding-top:14px!important}
html[data-aom-ui="v59"] body.page-calendar #main .v43-calendar-shell{padding-top:0!important}

/* =======================================================================
   23. AOM PANEL — one card language across inner pages (v5904)
   ======================================================================= */
html[data-aom-ui="v59"]{
  --p-radius:18px;
  --p-border:rgba(63,227,255,.14);
  --p-bg:linear-gradient(160deg,rgba(10,34,50,.80) 0%,rgba(5,18,28,.88) 58%,rgba(4,14,22,.92) 100%);
  --p-shadow:0 24px 60px -36px rgba(0,0,0,.85),inset 0 1px 0 rgba(158,246,255,.06);
  --p-accent:rgba(63,227,255,.9);
}
/* 23.1 generic panels: full treatment */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(
  .workspace-card,.strategy-card,.access-card,.app-flow > article,.xau-main,.xau-side > .side-card,
  .checkout-summary,.checkout-form,.aom-order-workspace > *,.aom-register-wrap > *,.aom-account-login-wrap > *,
  .aom-ea-gateway-wrap > *,.aom-guide-section article,.aom-guide-panel,.premium-ea-grid > article,.product-detail-copy){
  position:relative;
  border-radius:var(--p-radius)!important;
  border:1px solid var(--p-border)!important;
  background:var(--p-bg)!important;
  box-shadow:var(--p-shadow)!important;
}
/* 23.2 cards that keep their own colour story: shape + border only */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.v57-access-card,.v45-story-card){position:relative;border-radius:var(--p-radius)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .hero-mini > *{position:relative;border-radius:14px!important;border-color:var(--p-border)!important;box-shadow:var(--p-shadow)!important}

/* 23.3 the one HUD accent: a light arc in the top-left corner */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(
  .workspace-card,.strategy-card,.access-card,.app-flow > article,.xau-main,.xau-side > .side-card,
  .checkout-summary,.checkout-form,.aom-order-workspace > *,.aom-register-wrap > *,.aom-account-login-wrap > *,
  .aom-ea-gateway-wrap > *,.aom-guide-section article,.aom-guide-panel,.premium-ea-grid > article,.product-detail-copy,
  .v57-access-card,.hero-mini > *)::before{
  content:"";position:absolute;top:-1px;left:-1px;width:22px;height:22px;pointer-events:none;z-index:2;
  border-top:1.5px solid var(--p-accent);border-left:1.5px solid var(--p-accent);
  border-top-left-radius:inherit;opacity:.75;
  transition:width .35s var(--q-ease),height .35s var(--q-ease),opacity .3s;
}
html[data-aom-ui="v59"] body:not(.page-home) #main .v57-premium-ea-card{--p-accent:rgba(255,200,92,.95)}
html[data-aom-ui="v59"] body:not(.page-home) #main .v57-indicator-card{--p-accent:rgba(170,140,255,.8)}

/* 23.4 hover only where the whole card is a destination */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.workspace-card,.access-card,.v45-story-card,.v57-access-card:not(.v57-card-locked)){
  transition:transform .35s var(--q-ease),border-color .3s,box-shadow .35s!important}
@media (hover:hover){
  html[data-aom-ui="v59"] body:not(.page-home) #main :is(.workspace-card,.access-card,.v45-story-card,.v57-access-card:not(.v57-card-locked)):hover{
    transform:translateY(-3px);border-color:rgba(63,227,255,.34)!important;
    box-shadow:0 30px 70px -34px rgba(63,227,255,.45),inset 0 1px 0 rgba(158,246,255,.08)!important}
  html[data-aom-ui="v59"] body:not(.page-home) #main .v57-access-card.v57-premium-ea-card:not(.v57-card-locked):hover{border-color:rgba(255,200,92,.5)!important;box-shadow:0 30px 70px -34px rgba(255,200,92,.4)!important}
  html[data-aom-ui="v59"] body:not(.page-home) #main :is(.workspace-card,.access-card,.v57-access-card:not(.v57-card-locked)):hover::before{width:56px;height:56px;opacity:1}
}

/* 23.5 product cards: CTA row always aligned to the bottom */
html[data-aom-ui="v59"] .product-grid{align-items:stretch}
html[data-aom-ui="v59"] .product-card{display:flex!important;flex-direction:column}
html[data-aom-ui="v59"] .product-card .product-actions{margin-top:auto!important}
html[data-aom-ui="v59"] .product-card .product-price{margin-top:auto}
html[data-aom-ui="v59"] .product-card .product-price + .product-actions{margin-top:14px!important}

/* 23.6 product detail: logo floats on a lit stage instead of a black box */
html[data-aom-ui="v59"] body.page-product_detail #main .v37-product-media{
  border-radius:22px!important;border:1px solid var(--p-border)!important;overflow:hidden!important;
  background:
    radial-gradient(55% 60% at 50% 46%,rgba(63,227,255,.16),transparent 70%),
    linear-gradient(rgba(63,227,255,.05) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg,rgba(63,227,255,.05) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(165deg,rgba(8,28,42,.85),rgba(3,11,17,.95))!important;
  box-shadow:var(--p-shadow)!important;
  padding:28px!important;gap:18px;
}
html[data-aom-ui="v59"] body.page-product_detail #main .v37-product-media img{
  mix-blend-mode:screen;background:transparent!important;box-shadow:none!important;
  filter:drop-shadow(0 0 28px rgba(63,227,255,.25));
}
html[data-aom-ui="v59"] body.page-product_detail #main .v37-product-media :is(.v37-logo-stage,.v38-logo-stage,.v39-logo-stage,.v40-logo-stage){
  background:transparent!important;border:0!important;box-shadow:none!important}

/* 22.9 product detail: keep the standard page gutter (was touching the edge at ~1366px) */
html[data-aom-ui="v59"] body.page-product_detail #main .product-detail-hero > .container{
  width:min(1480px,calc(100% - 6.4vw))!important;max-width:1480px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
@media (max-width:700px){html[data-aom-ui="v59"] body.page-product_detail #main .product-detail-hero > .container{width:calc(100% - 24px)!important}}

/* =======================================================================
   24. FIRST-SCREEN BALANCE (v5905) — calmer sizes, no duplicate headings.
   Vertical centring of hero + main block is done in JS (module 13).
   ======================================================================= */
/* 24.1 slightly smaller inner-page title scale (home keeps its own) */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.premium-ea-hero,.v45-community-hero,.legal-hero,.order-hero,.v57-product-hero,.aom-order-intro,.aom-guide-hero,.v43-calendar-hero) h1,
html[data-aom-ui="v59"] body:not(.page-home) #main .product-detail-copy h1{font-size:clamp(30px,1.5vw + 16px,46px)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .section-head h2,
html[data-aom-ui="v59"] body:not(.page-home) #main .v57-access-heading h2,
html[data-aom-ui="v59"] body:not(.page-home) #main .v463-section-intro h2{font-size:clamp(22px,.7vw + 15px,30px)!important}

/* 24.2 duplicate second headings: keep only the small label */
html[data-aom-ui="v59"] body.page-products #main .v57-access-heading h2,
html[data-aom-ui="v59"] body.page-premium_ea #main .premium-ea-hero + .section .section-head h2{display:none!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-heading,
html[data-aom-ui="v59"] body.page-premium_ea #main .premium-ea-hero + .section .section-head{margin-bottom:12px!important;min-height:0!important;height:auto!important}
html[data-aom-ui="v59"] body.page-premium_ea #main .premium-ea-hero + .section .section-head > *{margin:0!important}

/* 24.3 product-type cards (Products page): tighter, same proportions */
html[data-aom-ui="v59"] body.page-products #main .v57-access-card{min-height:0!important;padding:20px 22px!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-card h3{font-size:clamp(21px,.6vw + 14px,25px)!important;line-height:1.15!important;margin:14px 0 6px!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-card p{min-height:0!important;margin-bottom:12px!important;font-size:12.5px!important;line-height:1.55!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-card .v57-benefits{gap:4px!important;padding-top:12px!important;margin-bottom:14px!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-card .v57-benefits span{font-size:11.5px!important;line-height:1.5!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-card .v57-card-action{min-height:40px!important;margin-top:auto!important}
html[data-aom-ui="v59"] body.page-products #main .v57-access-grid{gap:16px!important}

/* 24.4 premium hero: badges a touch tighter */
html[data-aom-ui="v59"] body.page-premium_ea #main .premium-ea-badges{margin-top:12px!important}
html[data-aom-ui="v59"] body.page-premium_ea #main .premium-ea-hero{padding-bottom:22px!important}

/* 24.5 card titles must sit BELOW the page title in the hierarchy (were 41px) */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.strategy-card,.access-card,.workspace-card,.checkout-summary,.app-flow > article,.xau-side > .side-card) :is(h2,h3){
  font-size:clamp(19px,.5vw + 13px,24px)!important;line-height:1.18!important;margin:8px 0 8px!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.strategy-card,.access-card,.workspace-card){min-height:0!important;padding:22px!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.strategy-card,.access-card,.workspace-card) > span:first-child{width:36px!important;height:36px!important;margin-bottom:12px!important;font-size:10px!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .checkout-summary{min-height:0!important}
html[data-aom-ui="v59"] body:not(.page-home) #main .checkout-summary img{max-height:96px!important;width:auto!important}

/* 24.6 a little air above every inner hero (pages that are too tall to centre) */
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.legal-hero,.order-hero).section-first{padding-top:clamp(14px,3.4vh - 4px,38px)!important}
@media (max-width:700px){html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.legal-hero,.order-hero).section-first{padding-top:12px!important}}

/* =======================================================================
   25. BACK DOCK (v5908) — floating bottom-left, mirrors AOM Assistant.
   Active only after JS adds html.v59-back-docked (no-JS keeps old row).
   ======================================================================= */
html[data-aom-ui="v59"]{--v59-back:0px}
html[data-aom-ui="v59"] body:not(.page-home) #main > .aom-page-back-wrap{
  height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.page-hero,.legal-hero,.order-hero).section-first{padding-top:clamp(22px,4.2vh,44px)!important}
html[data-aom-ui="v59"] body:not(.page-home) #main :is(.premium-ea-hero,.v45-community-hero,.v57-product-hero).section-first,
html[data-aom-ui="v59"] body.page-order_status #main .aom-order-page{padding-top:clamp(22px,4.2vh,44px)!important}

.v59-back-dock{
  position:fixed;z-index:2147482990;pointer-events:none;
  left:calc(18px + env(safe-area-inset-left,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));
}
html[data-aom-ui="v59"] .v59-back-dock .aom-page-back.v59-back{
  pointer-events:auto;margin:0!important;top:auto!important;min-height:44px;height:44px;
  background-color:rgba(4,16,24,.84)!important;
  -webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important;
  box-shadow:0 10px 30px -10px rgba(0,0,0,.7),0 0 0 1px rgba(63,227,255,.10)!important;
}
html[data-aom-ui="v59"] .v59-back-dock .aom-page-back.v59-back:hover{box-shadow:0 10px 30px -10px rgba(63,227,255,.45),0 0 0 1px rgba(63,227,255,.25)!important}
html[data-aom-ui="v59"].v59-lite .v59-back-dock .aom-page-back.v59-back{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:rgba(4,16,24,.95)!important}
@media (max-width:700px){
  .v59-back-dock{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  html[data-aom-ui="v59"] .v59-back-dock .aom-page-back.v59-back{width:46px;height:44px;min-height:44px;padding:0!important;justify-content:center;gap:0}
  html[data-aom-ui="v59"] .v59-back-dock .aom-page-back.v59-back .aom-page-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media print{.v59-back-dock{display:none}}

/* =======================================================================
   26. SAFETY (v5909): the HTML `hidden` attribute ALWAYS wins.
   Page scripts (AOM Account, partner, products…) show/hide views with
   `hidden`; no V59 display rule may ever override that.
   ======================================================================= */
html[data-aom-ui="v59"] #main [hidden]:not(#v59-never):not(#v59-never2),
html[data-aom-ui="v59"] body [hidden]:not(#v59-never):not(#v59-never2):not(#v59-never3){display:none!important}

/* =======================================================================
   27. AOM CONSOLE (v5910) — signed-in member area as its own "room".
   Active only while the AOM Account dashboard is visible (html.v59-console).
   ======================================================================= */
html.v59-console{
  --c-bg:#05070b;--c-side:#070a10;--c-panel:#0b1017;--c-panel-2:#0f161f;--c-inset:#060a0f;
  --c-line:rgba(150,190,225,.10);--c-line-2:rgba(150,190,225,.18);
  --c-ink:#eef4f8;--c-ink-2:rgba(214,226,236,.72);--c-ink-3:rgba(170,190,206,.52);
  --c-cyan:#3fe3ff;--c-indigo:#8b93ff;--c-mint:#3cf2b0;--c-amber:#ffc35c;--c-red:#ff6b81;
  --c-grad:linear-gradient(135deg,#3fe3ff 0%,#8b93ff 100%);
  background:var(--c-bg)!important;
}
/* hide the public "outside" chrome */
html.v59-console body.page-aom_account{padding-top:0!important;background:
  radial-gradient(1200px 600px at 85% -10%,rgba(139,147,255,.10),transparent 60%),
  radial-gradient(900px 500px at 10% 110%,rgba(63,227,255,.07),transparent 60%),
  radial-gradient(rgba(150,190,225,.07) 1px,transparent 1.2px) 0 0/22px 22px,
  var(--c-bg)!important}
html.v59-console body.page-aom_account :is(.site-shell,.footer,.aom-wallpaper,.aom-wallpaper-overlay,.v59-fx,.v59-spot){display:none!important}
html.v59-console body.page-aom_account #main{animation:none!important}
html.v59-console body.page-aom_account .aom-account-dashboard-section{padding:0!important;margin:0!important;background:none!important}
html.v59-console body.page-aom_account .aom-account-dashboard.container{
  display:grid!important;grid-template-columns:264px minmax(0,1fr);gap:0!important;
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100svh}

/* ---- sidebar ---- */
html.v59-console .v59-cside{
  position:sticky;top:0;align-self:start;height:100svh;overflow-y:auto;
  display:flex;flex-direction:column;gap:14px;padding:22px 16px 18px;
  background:linear-gradient(180deg,rgba(9,13,20,.96),rgba(6,9,14,.98));border-right:1px solid var(--c-line);
}
html.v59-console .v59-cside-brand{display:flex;align-items:center;gap:10px;padding:2px 8px 10px;color:var(--c-cyan);text-decoration:none}
html.v59-console .v59-cside-brand svg{width:26px;height:28px;filter:drop-shadow(0 0 10px rgba(63,227,255,.4))}
html.v59-console .v59-cside-brand span{font:700 12px/1 var(--q-mono);letter-spacing:.18em;color:var(--c-ink)}
html.v59-console .v59-cside-brand b{background:var(--c-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
html.v59-console .v59-cside-id{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--c-line);border-radius:14px;background:var(--c-panel)}
html.v59-console .v59-avatar{flex:0 0 44px;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  font:700 14px/1 var(--q-mono);letter-spacing:.04em;color:#04121a;background:var(--c-grad);box-shadow:0 0 22px -6px rgba(63,227,255,.7)}
html.v59-console .v59-cside-who{min-width:0}
html.v59-console .v59-cside .aom-account-topbar{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html.v59-console .v59-cside .aom-account-topbar .eyebrow{display:none!important}
html.v59-console .v59-cside .aom-account-topbar h1{font:700 15px/1.25 var(--q-display)!important;letter-spacing:-.01em!important;margin:0!important;color:var(--c-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%!important}
html.v59-console .v59-cside .aom-account-topbar p{font-size:11.5px!important;color:var(--c-ink-3)!important;margin:3px 0 0!important;opacity:1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v59-console .v59-cside-label{font:600 9.5px/1 var(--q-mono);letter-spacing:.2em;color:var(--c-ink-3);padding:8px 10px 0}
html.v59-console .v59-cside .aom-account-private-nav{display:flex!important;flex-direction:column!important;gap:3px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;width:100%!important}
html.v59-console .v59-cside .aom-account-private-nav button{
  position:relative;display:flex!important;align-items:center;gap:10px;width:100%!important;justify-content:flex-start!important;
  padding:10px 12px!important;border-radius:10px!important;border:1px solid transparent!important;background:transparent!important;
  color:var(--c-ink-2)!important;font:600 13px/1.2 var(--q-display)!important;text-align:left!important;box-shadow:none!important;min-height:0!important}
html.v59-console .v59-cside .aom-account-private-nav button::before{content:"◇";width:18px;text-align:center;font-size:12px;color:var(--c-ink-3)}
html.v59-console .v59-cside .aom-account-private-nav button[data-account-nav-my-ea]::before{content:"▤"}
html.v59-console .v59-cside .aom-account-private-nav button[data-account-add-open]::before{content:"＋"}
html.v59-console .v59-cside .aom-account-private-nav button:hover{background:rgba(150,190,225,.06)!important;color:var(--c-ink)!important}
html.v59-console .v59-cside .aom-account-private-nav button.is-active{
  color:var(--c-ink)!important;border-color:rgba(63,227,255,.22)!important;
  background:linear-gradient(90deg,rgba(63,227,255,.14),rgba(139,147,255,.06))!important}
html.v59-console .v59-cside .aom-account-private-nav button.is-active::before{color:var(--c-cyan)}
html.v59-console .v59-cside .aom-account-private-nav button.is-active::after{content:"";position:absolute;left:-17px;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--c-grad)}
html.v59-console .v59-cside-links{display:flex;flex-direction:column;gap:2px}
html.v59-console .v59-cside-links a{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:9px;color:var(--c-ink-3);font:500 12.5px/1.2 var(--q-display);text-decoration:none}
html.v59-console .v59-cside-links a i{width:18px;text-align:center;font-style:normal;opacity:.8}
html.v59-console .v59-cside-links a:hover{color:var(--c-ink);background:rgba(150,190,225,.05)}
html.v59-console .v59-cside-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--c-line)}
html.v59-console .v59-cside-lang{display:flex;gap:4px;padding:3px;border:1px solid var(--c-line);border-radius:10px;align-self:flex-start}
html.v59-console .v59-cside-lang button{border:0;background:none;color:var(--c-ink-3);font:700 10.5px/1 var(--q-mono);letter-spacing:.1em;padding:7px 10px;border-radius:7px;cursor:pointer}
html.v59-console .v59-cside-lang button.is-on{background:rgba(63,227,255,.14);color:var(--c-cyan)}
html.v59-console .v59-cside [data-account-logout]{width:100%!important;justify-content:center;min-height:40px!important;border-radius:10px!important;
  background:transparent!important;border:1px solid rgba(255,107,129,.28)!important;color:#ffb3bf!important;box-shadow:none!important}
html.v59-console .v59-cside [data-account-logout]:hover{background:rgba(255,107,129,.08)!important}

/* ---- main column ---- */
html.v59-console .v59-cmain{min-width:0;padding:26px clamp(18px,3vw,44px) 70px;max-width:1360px;width:100%}
html.v59-console .v59-chead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px}
html.v59-console .v59-crumb{font:600 10.5px/1 var(--q-mono);letter-spacing:.16em;color:var(--c-ink-3);text-transform:uppercase}
html.v59-console .v59-crumb b{color:var(--c-cyan)}
html.v59-console .v59-greet{margin:10px 0 0!important;font:700 clamp(22px,1.2vw + 12px,30px)/1.1 var(--q-display)!important;letter-spacing:-.02em!important;color:var(--c-ink)!important}
html.v59-console .v59-chead-r{display:flex;gap:8px;flex-wrap:wrap}
html.v59-console .v59-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--c-line-2);background:var(--c-panel);font:600 11px/1 var(--q-mono);letter-spacing:.1em;color:var(--c-ink-2)}
html.v59-console .v59-led{width:7px;height:7px;border-radius:50%;background:var(--c-mint);box-shadow:0 0 10px var(--c-mint)}

/* telemetry strip (3 original + 3 derived) */
html.v59-console .v59-cmain .aom-account-summary-grid{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;margin:0 0 26px!important;
  border:1px solid var(--c-line)!important;border-radius:16px!important;background:var(--c-panel)!important;overflow:hidden}
html.v59-console .v59-cmain .aom-account-summary-grid article{
  position:relative;padding:16px 18px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-height:0!important}
html.v59-console .v59-cmain .aom-account-summary-grid article::before{display:none!important}
html.v59-console .v59-cmain .aom-account-summary-grid article + article{border-left:1px solid var(--c-line)!important}
html.v59-console .v59-cmain .aom-account-summary-grid span{font:600 9.5px/1 var(--q-mono)!important;letter-spacing:.18em!important;color:var(--c-ink-3)!important}
html.v59-console .v59-cmain .aom-account-summary-grid b{display:block;margin:10px 0 6px!important;font:700 20px/1.1 var(--q-mono)!important;letter-spacing:.02em;color:var(--c-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v59-console .v59-cmain .aom-account-summary-grid small{font-size:11px!important;color:var(--c-ink-3)!important;line-height:1.35}
html.v59-console .v59-cmain .aom-account-summary-grid .aom-account-copy{font:600 11px/1 var(--q-mono)!important;color:var(--c-cyan)!important;text-decoration:none!important;padding:0!important;background:none!important;border:0!important}
html.v59-console .v59-cmain [data-v59-tele="active"] b{color:var(--c-mint)!important}
html.v59-console .v59-cmain [data-v59-tele="setup"] b{color:var(--c-amber)!important}
html.v59-console .v59-cmain [data-v59-tele="mt5"] b{color:var(--c-cyan)!important}

/* section head */
html.v59-console .v59-cmain .aom-account-section-head{display:flex!important;align-items:flex-end;justify-content:space-between;margin:0 0 14px!important}
html.v59-console .v59-cmain .aom-account-section-head .eyebrow{font-size:10px!important}
html.v59-console .v59-cmain .aom-account-section-head h2{font:700 clamp(19px,.6vw + 13px,24px)/1.15 var(--q-display)!important;margin:6px 0 0!important;letter-spacing:-.015em!important}
html.v59-console .v59-cmain .btn{border-radius:10px!important}
html.v59-console .v59-cmain .btn-primary{background:var(--c-grad)!important;color:#04121a!important;border:0!important;box-shadow:0 10px 26px -12px rgba(63,227,255,.7)!important}
html.v59-console .v59-cmain .btn-secondary{background:var(--c-panel-2)!important;border:1px solid var(--c-line-2)!important;color:var(--c-ink)!important}

/* EA modules */
html.v59-console .v59-cmain .aom-account-ea-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
html.v59-console .v59-cmain .aom-ea-card{
  --rail:var(--c-amber);position:relative;display:flex!important;flex-direction:column;gap:14px;
  padding:18px 18px 16px 20px!important;border-radius:16px!important;border:1px solid var(--c-line)!important;
  background:linear-gradient(180deg,var(--c-panel-2),var(--c-panel))!important;
  box-shadow:inset 3px 0 0 var(--rail),0 18px 50px -32px rgba(0,0,0,.9)!important;min-height:0!important}
html.v59-console .v59-cmain .aom-ea-card[data-v59-state="active"]{--rail:var(--c-mint);order:-2;border-color:rgba(60,242,176,.20)!important}
html.v59-console .v59-cmain .aom-ea-card[data-v59-state="pending"]{--rail:var(--c-indigo);order:-1}
html.v59-console .v59-cmain .aom-ea-card::before,html.v59-console .v59-cmain .aom-ea-card::after{display:none!important}
html.v59-console .v59-cmain .aom-ea-card-head{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px;margin:0!important}
html.v59-console .v59-cmain .aom-ea-card-head > div{display:grid;grid-template-columns:40px 1fr;column-gap:12px;align-items:center}
html.v59-console .v59-glyph{grid-row:1 / span 2;width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  font:700 12px/1 var(--q-mono);letter-spacing:.06em;color:var(--c-ink);background:var(--c-inset);border:1px solid var(--c-line-2)}
html.v59-console .aom-ea-card[data-v59-state="active"] .v59-glyph{color:#04121a;background:linear-gradient(135deg,#3cf2b0,#3fe3ff);border:0}
html.v59-console .v59-cmain .aom-ea-card h3{font:700 17px/1.2 var(--q-display)!important;margin:0!important;letter-spacing:-.01em!important}
html.v59-console .v59-cmain .aom-ea-binding-count{font:600 9.5px/1.3 var(--q-mono)!important;letter-spacing:.14em!important;color:var(--c-ink-3)!important;margin-top:4px}
html.v59-console .v59-cmain .aom-ea-status{display:inline-flex!important;align-items:center;gap:7px;padding:6px 10px!important;border-radius:999px!important;
  font:700 9.5px/1 var(--q-mono)!important;letter-spacing:.14em!important;white-space:nowrap;
  color:var(--c-amber)!important;background:rgba(255,195,92,.08)!important;border:1px solid rgba(255,195,92,.25)!important}
html.v59-console .v59-cmain .aom-ea-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
html.v59-console .v59-cmain .aom-ea-status.is-active{color:var(--c-mint)!important;background:rgba(60,242,176,.08)!important;border-color:rgba(60,242,176,.28)!important}
html.v59-console .v59-cmain .aom-ea-card[data-v59-state="pending"] .aom-ea-status{color:var(--c-indigo)!important;background:rgba(139,147,255,.08)!important;border-color:rgba(139,147,255,.3)!important}

/* setup track */
html.v59-console .v59-track ol{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0;padding:0;list-style:none}
html.v59-console .v59-track li{display:flex;flex-direction:column;gap:6px;min-width:0}
html.v59-console .v59-track li i{height:4px;border-radius:4px;background:rgba(150,190,225,.12)}
html.v59-console .v59-track li span{font:600 9.5px/1.25 var(--q-mono);letter-spacing:.06em;color:var(--c-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v59-console .v59-track li.is-done i{background:var(--c-grad)}
html.v59-console .v59-track li.is-done span{color:var(--c-ink-2)}
html.v59-console .v59-track li.is-next i{background:repeating-linear-gradient(90deg,rgba(255,195,92,.65) 0 6px,rgba(255,195,92,.15) 6px 10px)}
html.v59-console .v59-track li.is-next span{color:var(--c-amber)}
html.v59-console .v59-track[data-step="4"] li i{background:linear-gradient(90deg,#3cf2b0,#3fe3ff)}
html.v59-console .v59-next{margin:8px 0 0;font-size:12px;color:var(--c-amber)}
html.v59-console .v59-next::before{content:"→ ";opacity:.7}

/* MT5 bindings as terminal lines */
html.v59-console .v59-cmain .aom-ea-bindings{display:flex;flex-direction:column;gap:8px;margin:0!important}
html.v59-console .v59-cmain .aom-ea-binding-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;align-items:center;gap:12px;
  padding:11px 14px!important;border-radius:11px!important;background:var(--c-inset)!important;border:1px solid var(--c-line)!important}
html.v59-console .v59-cmain .aom-ea-binding-data span{font:600 9px/1 var(--q-mono)!important;letter-spacing:.16em!important;color:var(--c-ink-3)!important}
html.v59-console .v59-cmain .aom-ea-binding-data b{display:block;margin-top:5px;font:600 13px/1.2 var(--q-mono)!important;color:var(--c-ink)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.v59-console .v59-cmain .aom-ea-binding-broker{display:inline-block;margin-right:6px;padding:2px 6px;border-radius:5px;background:rgba(63,227,255,.1);color:var(--c-cyan)!important}
html.v59-console .v59-cmain .aom-ea-binding-status{font:700 9px/1 var(--q-mono)!important;letter-spacing:.12em!important;padding:6px 9px!important;border-radius:999px!important}
html.v59-console .v59-cmain .aom-ea-binding-status.is-active{color:var(--c-mint)!important;background:rgba(60,242,176,.1)!important;border:1px solid rgba(60,242,176,.25)!important}
html.v59-console .v59-cmain .aom-ea-binding-status.is-blocked{color:var(--c-red)!important;background:rgba(255,107,129,.08)!important;border:1px solid rgba(255,107,129,.28)!important}
html.v59-console .v59-cmain .aom-ea-binding-status.is-pending{color:var(--c-indigo)!important;background:rgba(139,147,255,.08)!important;border:1px solid rgba(139,147,255,.28)!important}
html.v59-console .v59-cmain .v59-row-blocked{border-color:rgba(255,107,129,.18)!important;background:linear-gradient(90deg,rgba(255,107,129,.05),transparent 60%),var(--c-inset)!important}
html.v59-console .v59-cmain .v59-row-blocked .aom-ea-binding-data b{color:var(--c-ink-2)!important;text-decoration:line-through;text-decoration-color:rgba(255,107,129,.5)}
html.v59-console .v59-cmain .aom-ea-binding-empty{padding:16px!important;border-radius:11px!important;border:1px dashed var(--c-line-2)!important;background:transparent!important;color:var(--c-ink-3)!important;font-size:12.5px!important;text-align:center}
html.v59-console .v59-cmain .aom-ea-binding-empty.v59-slot{cursor:pointer;transition:border-color .2s,color .2s,background .2s}
html.v59-console .v59-cmain .aom-ea-binding-empty.v59-slot::before{content:"＋";display:block;font-size:18px;color:var(--c-cyan);margin-bottom:4px}
html.v59-console .v59-cmain .aom-ea-binding-empty.v59-slot:hover{border-color:rgba(63,227,255,.5)!important;color:var(--c-ink)!important;background:rgba(63,227,255,.04)!important}
html.v59-console .v59-cmain .aom-ea-actions{display:flex!important;flex-wrap:wrap;gap:8px;margin-top:auto!important}
html.v59-console .v59-cmain .aom-ea-actions .btn{min-height:40px!important;padding:0 16px!important;font-size:13px!important}
html.v59-console .v59-cmain .aom-ea-setup-note{font-size:11.5px!important;color:var(--c-ink-3)!important;margin:0!important}

/* add EA / MT5 views */
html.v59-console .v59-cmain :is(.aom-account-add-view,.aom-account-mt5-view){padding:0!important;background:none!important;border:0!important}
html.v59-console .v59-cmain .aom-account-add-head h2{font:700 clamp(20px,.7vw + 13px,26px)/1.15 var(--q-display)!important}
html.v59-console .v59-cmain .aom-account-add-head p{color:var(--c-ink-3)!important;font-size:13px!important}
html.v59-console .v59-cmain .aom-account-add-rule{border-radius:12px!important;background:var(--c-panel)!important;border:1px solid var(--c-line)!important}
html.v59-console .v59-cmain .aom-account-available-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:12px!important}
html.v59-console .v59-cmain .aom-account-available-card{border-radius:14px!important;background:linear-gradient(180deg,var(--c-panel-2),var(--c-panel))!important;border:1px solid var(--c-line)!important;box-shadow:none!important}
html.v59-console .v59-cmain .aom-account-available-card::before{display:none!important}
html.v59-console .v59-cmain .aom-account-available-card h3{font:700 16px/1.2 var(--q-display)!important}
html.v59-console .v59-cmain .aom-account-add-form{border-radius:16px!important;background:var(--c-panel)!important;border:1px solid var(--c-line)!important}
html.v59-console .v59-cmain :is(.aom-account-add-form input,.aom-account-add-form select){
  background:var(--c-inset)!important;border:1px solid var(--c-line-2)!important;border-radius:10px!important;color:var(--c-ink)!important;font-family:var(--q-mono)!important}
html.v59-console .v59-cmain :is(.aom-account-add-form input,.aom-account-add-form select):focus{outline:none!important;border-color:rgba(63,227,255,.6)!important;box-shadow:0 0 0 3px rgba(63,227,255,.15)!important}

/* assistant matches the console */
html.v59-console .assistant-fab{background:var(--c-panel-2)!important;border-color:var(--c-line-2)!important}

/* ---- tablet & phone: top identity bar + bottom tab bar ---- */
@media (max-width:1100px){
  html.v59-console .v59-cmain .aom-account-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article:nth-child(4){border-left:0!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article:nth-child(n+4){border-top:1px solid var(--c-line)!important}
  html.v59-console .v59-cmain .aom-account-ea-grid{grid-template-columns:1fr!important}
}
@media (max-width:900px){
  html.v59-console body.page-aom_account .aom-account-dashboard.container{grid-template-columns:1fr;min-height:0}
  html.v59-console .v59-cside{position:sticky;top:0;z-index:50;height:auto;overflow:visible;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;border-right:0;border-bottom:1px solid var(--c-line)}
  html.v59-console .v59-cside-brand{padding:0;flex:0 0 auto}
  html.v59-console .v59-cside-id{margin-left:auto;padding:6px 8px 6px 6px;border-radius:12px;cursor:pointer;max-width:62vw}
  html.v59-console .v59-avatar{width:34px;height:34px;flex-basis:34px;border-radius:9px;font-size:12px}
  html.v59-console .v59-cside :is(.v59-cside-label,.v59-cside-links,.v59-cside-foot){display:none}
  html.v59-console .v59-cside.is-open :is(.v59-cside-links,.v59-cside-foot){display:flex;width:100%}
  html.v59-console .v59-cside.is-open .v59-cside-links{flex-direction:row;flex-wrap:wrap}
  html.v59-console .v59-cside.is-open .v59-cside-foot{flex-direction:row;align-items:center;border-top:1px solid var(--c-line)}
  html.v59-console .v59-cside.is-open [data-account-logout]{width:auto!important;flex:1}
  html.v59-console .v59-cside .aom-account-private-nav{
    position:fixed!important;left:0;right:0;bottom:0;z-index:60;flex-direction:row!important;gap:0!important;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))!important;background:rgba(7,10,16,.96)!important;
    border-top:1px solid var(--c-line)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  html.v59-console .v59-cside .aom-account-private-nav button{flex:1;flex-direction:column!important;justify-content:center!important;gap:4px;padding:8px 4px!important;font-size:11px!important;text-align:center!important}
  html.v59-console .v59-cside .aom-account-private-nav button::before{font-size:15px}
  html.v59-console .v59-cside .aom-account-private-nav button.is-active::after{left:30%;right:30%;top:-7px;bottom:auto;width:auto;height:3px}
  html.v59-console .v59-cmain{padding:18px 14px 100px}
  html.v59-console .v59-chead{flex-direction:column;align-items:flex-start}
  html.v59-console .assistant-fab{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
}
@media (max-width:560px){
  html.v59-console .v59-cmain .aom-account-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article{border-left:0!important;border-top:1px solid var(--c-line)!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article:nth-child(even){border-left:1px solid var(--c-line)!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article:nth-child(-n+2){border-top:0!important}
  html.v59-console .v59-cmain .aom-ea-binding-row{grid-template-columns:1fr 1fr;row-gap:8px}
  html.v59-console .v59-cmain .aom-ea-binding-status{grid-column:1 / -1;justify-self:start}
  html.v59-console .v59-track li span{font-size:8.5px;letter-spacing:0}
  html.v59-console .v59-cmain .aom-account-section-head{flex-direction:row;gap:10px}
}
/* 27.x console finishing */
html.v59-console{--c-ink-3:rgba(176,196,212,.62)}
html.v59-console .v59-cmain{margin-inline:auto;max-width:1440px}
html.v59-console .v59-cmain .aom-ea-setup-note{display:none!important}
html.v59-console .v59-cmain .aom-ea-binding-data .aom-ea-binding-broker{color:var(--c-cyan)!important;background:rgba(63,227,255,.12)!important;padding:3px 6px!important;border-radius:5px;margin-bottom:6px}
@media (max-width:560px){
  html.v59-console .v59-cmain .aom-ea-card-head{flex-direction:column!important;align-items:flex-start!important;gap:10px}
  html.v59-console .v59-cmain .aom-account-summary-grid b{font-size:16px!important}
  html.v59-console .v59-cmain .aom-account-summary-grid article{padding:13px 14px!important}
  html.v59-console .v59-cmain .aom-ea-card h3{font-size:16px!important}
}

/* =======================================================================
   28. PERFORMANCE (v5911): cheaper first paint, same look.
   ======================================================================= */
/* background grid without a full-screen mask (masks are costly to raster) */
html[data-aom-ui="v59"] .v59-fx{
  -webkit-mask-image:none!important;mask-image:none!important;
  background:
    radial-gradient(40% 55% at 16% 22%,rgba(20,184,224,.14),transparent 70%),
    radial-gradient(34% 50% at 84% 14%,rgba(60,242,176,.07),transparent 70%),
    radial-gradient(30% 40% at 55% 0%,rgba(63,227,255,.10),transparent 70%),
    linear-gradient(rgba(63,227,255,.032) 1px,transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg,rgba(63,227,255,.032) 1px,transparent 1px) 0 0/56px 56px!important;
}
/* header: solid glass look without live blur */
html[data-aom-ui="v59"] .site-header{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  background:linear-gradient(180deg,rgba(5,20,30,.97),rgba(5,18,27,.93))!important}
/* hero canvas: single linear mask instead of two composited masks */
html[data-aom-ui="v59"] .v59-hero-canvas{
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,transparent 34%,rgba(0,0,0,.6) 46%,#000 58%,#000 94%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,transparent 0%,transparent 34%,rgba(0,0,0,.6) 46%,#000 58%,#000 94%,transparent 100%)!important;
  -webkit-mask-composite:source-over!important;mask-composite:add!important}
