/* ============================================================================
   E365 Portal framework — Orange Economy design language.
   Adapted from the Orange/v1 concept: Instrument Serif display, Inter body,
   JetBrains Mono labels, orange/cyan/magenta/lime on near-black, glass cards,
   film grain, drifting mesh orbs. Shared chrome for all role portals:
   nav + profile menu + notifications + sticky bot launcher.
   ============================================================================ */
:root {
  --bg: #07070A; --bg-2: #0E0B1A;
  --panel: rgba(255,255,255,0.04); --hair: rgba(255,255,255,0.08);
  --ink: #F4F2EE; --ink-dim: #B7B2C5; --muted: #7A7589;
  --orange: #FF6A1A; --orange-2: #FFB561; --cyan: #3FD8E6; --magenta: #FF2EA6; --lime: #C7F26D;
  --ease-out: cubic-bezier(.2,.7,.1,1);
  --maxw: 1280px; --pad: clamp(20px, 4vw, 56px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --accent: var(--orange);  /* per-portal override */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #111; }

/* No mix-blend-mode: blending a fixed element against scrolling content forces
   a full re-composite every frame. A plain low-opacity texture is smooth. */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }

/* ===== Nav ===== */
.p-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center;
  gap: 20px; padding: 13px var(--pad); backdrop-filter: blur(14px) saturate(1.4);
  background: linear-gradient(180deg, rgba(7,7,10,.78), rgba(7,7,10,.4)); border-bottom: 1px solid var(--hair); }
.p-brand { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); }
.p-brand .mark { font-size: 24px; letter-spacing: -.02em; }
.p-brand .mark b { background: linear-gradient(135deg, var(--orange), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.p-brand .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--muted); align-self: center; }
.p-nav .sep { width: 1px; height: 22px; background: var(--hair); }
.p-portal-name { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.p-nav-links { display: flex; gap: 18px; margin-left: 8px; }
.p-nav-links a { font-size: 13px; color: var(--ink-dim); padding: 6px 0; position: relative; }
.p-nav-links a:hover { color: var(--ink); }
.p-nav-spacer { flex: 1; }
@media (max-width: 760px) { .p-nav-links { display: none; } }

/* ===== Notification bell ===== */
.p-bell-wrap { position: relative; }
.p-bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid var(--hair); color: var(--ink-dim); transition: all .15s; }
.p-bell:hover { border-color: var(--accent); color: var(--ink); }
.p-bell svg { width: 18px; height: 18px; }
.p-bell .b-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: linear-gradient(135deg, var(--magenta), var(--orange)); color: #fff;
  font-weight: 800; font-size: 10.5px; display: grid; place-items: center; border: 2px solid var(--bg); }
.p-bell .b-badge.hidden { display: none; }
.p-bell.ring { animation: bellring .6s ease; }
@keyframes bellring { 25% { transform: rotate(-12deg);} 75% { transform: rotate(12deg);} }

.notif-pop { position: absolute; top: 52px; right: 0; width: 340px; max-height: 420px; overflow-y: auto;
  background: rgba(14,11,26,.97); border: 1px solid var(--hair); border-radius: 16px; padding: 8px;
  backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.6); display: none; z-index: 120; }
.notif-pop.open { display: block; }
.notif-pop .nh { display: flex; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.notif-pop .nh b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); flex: 1; }
.notif-pop .nh button { font-size: 11px; color: var(--muted); background: none; border: none; }
.notif-pop .nh button:hover { color: var(--accent); }
.notif-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px; transition: background .15s; cursor: pointer; }
.notif-row:hover, .notif-row:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.notif-row:hover .na { opacity: 1; transform: translateX(0); }
.notif-row.fresh { background: linear-gradient(135deg, rgba(255,106,26,.14), rgba(255,46,166,.06)); }
.notif-row .ng { font-size: 15px; flex: 0 0 22px; align-self: flex-start; margin-top: 1px; }
.notif-row .nt { font-size: 12.5px; color: var(--ink); line-height: 1.45; }
.notif-row .nt b { color: var(--accent); }
.notif-row .nm { font-size: 10.5px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.notif-row .na { font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; flex: 0 0 auto;
  opacity: .5; transform: translateX(3px); transition: opacity .15s, transform .15s; }
.notif-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ===== Profile menu ===== */
.p-profile { position: relative; }
.p-profile-btn { display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--hair); color: var(--ink); }
.p-profile-btn:hover { border-color: var(--accent); }
.p-profile-btn .pa { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--magenta)); color: #fff; font-weight: 800; font-size: 12px; }
.p-profile-btn .pn { font-size: 12.5px; font-weight: 700; }
.p-profile-btn .pchev { color: var(--muted); font-size: 10px; }
.profile-pop { position: absolute; top: 50px; right: 0; width: 260px; background: rgba(14,11,26,.97);
  border: 1px solid var(--hair); border-radius: 16px; padding: 8px; backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.6); display: none; z-index: 120; }
.profile-pop.open { display: block; }
.profile-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.profile-head .pn2 { font-weight: 800; font-size: 14px; }
.profile-head .pe { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.profile-head .pr { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); padding: 3px 8px; border: 1px solid var(--hair); border-radius: 6px; }
.profile-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 10px; background: none; border: none; color: var(--ink); font-size: 13px; }
.profile-item:hover { background: rgba(255,255,255,.04); }
.profile-item.danger { color: #ff7a7a; }
.profile-item .pi-ic { width: 16px; opacity: .7; }

/* ===== Change-password modal ===== */
.pw-backdrop { position: fixed; inset: 0; background: rgba(5,4,12,.7); display: none; place-items: center; z-index: 300; backdrop-filter: blur(4px); }
.pw-backdrop.open { display: grid; }
.pw-modal { width: 380px; max-width: 92vw; background: rgba(14,11,26,.99); border: 1px solid var(--hair);
  border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.pw-modal h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 4px; }
.pw-modal p { color: var(--ink-dim); font-size: 13px; margin: 0 0 18px; }
.pw-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pw-field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pw-field input { background: rgba(255,255,255,.04); border: 1px solid var(--hair); border-radius: 11px;
  padding: 11px 13px; color: var(--ink); font: inherit; font-size: 13.5px; }
.pw-field input:focus { outline: none; border-color: var(--accent); }
.pw-actions { display: flex; gap: 8px; margin-top: 8px; }
.pw-actions button { flex: 1; padding: 12px; border-radius: 11px; font-weight: 700; font-size: 13.5px; border: none; }
.pw-save { background: linear-gradient(135deg, var(--orange), #FF8A3A); color: #1a0d00; }
.pw-cancel { background: rgba(255,255,255,.05); border: 1px solid var(--hair); color: var(--ink-dim); }
.pw-msg { font-size: 12.5px; margin-top: 10px; min-height: 16px; }
.pw-msg.err { color: #ff8a5d; }
.pw-msg.ok { color: var(--lime); }

/* ===== Hero ===== */
.p-hero { position: relative; padding: 120px var(--pad) 50px; max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
/* Decorative glow. Each orb is blurred individually and promoted to its own
   GPU layer (will-change: transform) so the drift animation just transforms a
   cached texture instead of re-blurring the whole mesh every frame — this is
   the difference between buttery and janky scrolling. */
.p-mesh { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; overflow: hidden; contain: strict; }
.p-orb { position: absolute; border-radius: 50%; filter: blur(55px); will-change: transform; transform: translateZ(0); }
.p-orb.o1 { width: 460px; height: 460px; left: 4%; top: 6%; background: radial-gradient(circle, var(--accent), transparent 65%); animation: pdrift 26s ease-in-out infinite; }
.p-orb.o2 { width: 400px; height: 400px; right: 8%; top: -6%; background: radial-gradient(circle, var(--magenta), transparent 65%); animation: pdrift 32s ease-in-out -6s infinite reverse; }
.p-orb.o3 { width: 480px; height: 480px; left: 50%; bottom: -30%; background: radial-gradient(circle, var(--cyan), transparent 65%); animation: pdrift 36s ease-in-out -10s infinite; }
@keyframes pdrift { 0%,100%{transform:translate3d(0,0,0) scale(1);} 33%{transform:translate3d(50px,-30px,0) scale(1.08);} 66%{transform:translate3d(-40px,24px,0) scale(.95);} }
.p-eyebrow { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); padding: 7px 13px;
  border: 1px solid var(--hair); border-radius: 999px; background: rgba(255,255,255,.02); }
.p-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pbpulse 1.6s ease-in-out infinite; }
@keyframes pbpulse { 50% { opacity: .35; } }
.p-hero h1 { position: relative; z-index: 2; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 88px);
  line-height: .98; letter-spacing: -.02em; margin: 22px 0 18px; max-width: 16ch; }
.p-hero h1 mark { background: var(--accent); color: #1a0d00; padding: 0 .14em; transform: skewX(-3deg); display: inline-block; }
.p-hero .sub { position: relative; z-index: 2; font-size: clamp(15px, 1.4vw, 19px); color: var(--ink-dim); max-width: 60ch; margin: 0 0 28px; }
.p-hero .sub strong { color: var(--ink); }

/* ===== Stat row ===== */
.p-stats { position: relative; z-index: 2; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); margin-top: 8px; }
.p-stat { padding: 16px 18px; border: 1px solid var(--hair); border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: all .25s var(--ease-out); position: relative; overflow: hidden; }
.p-stat:hover { transform: translateY(-3px); border-color: var(--accent); }
.p-stat.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,106,26,.1), rgba(255,255,255,.01)); }
.p-stat .sv { display: block; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 46px); line-height: 1;
  background: linear-gradient(180deg, var(--ink), var(--ink-dim)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-stat .sl { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.p-stat .sh { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-dim); }

/* ===== Sections ===== */
.p-sec { position: relative; padding: 50px var(--pad); max-width: var(--maxw); margin: 0 auto; }
.p-sec-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.p-sec-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.p-sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 46px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 24px; }
.p-glass { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--hair); border-radius: 20px; }

/* ===== Action / tool cards ===== */
.p-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.p-card { position: relative; padding: 24px; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: transform .35s var(--ease-out), border-color .3s; }
.p-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -20%, var(--accent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.p-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.p-card:hover::after { opacity: .16; }
.p-card .pc-orb { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 60%), var(--accent); margin-bottom: 16px; box-shadow: 0 10px 26px -8px var(--accent); }
.p-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 6px; }
.p-card p { color: var(--ink-dim); font-size: 13.5px; margin: 0 0 16px; line-height: 1.55; }
.p-card .pc-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--accent); background: none; border: none; padding: 0; }

/* ===== Queue / activity list ===== */
.p-queue { display: flex; flex-direction: column; gap: 8px; }
.p-qrow { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px;
  background: rgba(255,255,255,.02); transition: all .2s; }
.p-qrow:hover { border-color: var(--accent); transform: translateX(2px); }
.p-qrow .qg { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px;
  background: rgba(255,255,255,.05); border: 1px solid var(--hair); }
.p-qrow .qb { flex: 1; min-width: 0; }
.p-qrow .qt { font-size: 14px; font-weight: 600; }
.p-qrow .qt b { color: var(--accent); }
.p-qrow .qm { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--mono); letter-spacing: .03em; }
.p-qrow .qm .tag { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--hair); margin-right: 5px; }
.p-qrow .qm .tag.warn { color: var(--orange-2); border-color: rgba(255,106,26,.4); }
.p-qrow .qa button { font-size: 12.5px; padding: 8px 14px; border-radius: 10px; font-weight: 700; border: none;
  background: linear-gradient(135deg, var(--orange), #FF8A3A); color: #1a0d00; }
.p-queue-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--hair); border-radius: 14px; }

/* ===== Sticky bot launcher ===== */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; align-items: center; gap: 11px;
  padding: 13px 20px 13px 14px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--orange), var(--magenta)); color: #fff;
  box-shadow: 0 16px 44px -10px rgba(255,106,26,.7); transition: transform .2s; }
.fab:hover { transform: translateY(-2px) scale(1.02); }
.fab .fab-ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 16px; }
.fab .fab-tx { font-weight: 800; font-size: 13.5px; letter-spacing: .01em; }
.fab .fab-badge { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--lime); color: #0d1100; font-weight: 800; font-size: 11px; display: grid; place-items: center; border: 2px solid var(--bg); }
.fab .fab-badge.hidden { display: none; }

.bot-dock { position: fixed; right: 22px; bottom: 22px; z-index: 210; width: min(440px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 120px)); background: rgba(10,8,18,.99); border: 1px solid var(--hair);
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.7); display: none; flex-direction: column;
  transform: translateY(20px) scale(.98); opacity: 0; transition: transform .28s var(--ease-out), opacity .28s; }
.bot-dock.open { display: flex; transform: none; opacity: 1; }
.bot-dock-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hair);
  background: linear-gradient(135deg, rgba(255,106,26,.14), rgba(255,46,166,.08)); }
.bot-dock-head .bd-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(135deg, var(--orange), var(--magenta)); }
.bot-dock-head .bd-t { flex: 1; }
.bot-dock-head .bd-name { font-weight: 800; font-size: 13.5px; }
.bot-dock-head .bd-sub { font-size: 10.5px; color: var(--ink-dim); }
.bot-dock-head .bd-x { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--hair);
  color: var(--ink-dim); display: grid; place-items: center; font-size: 16px; }
.bot-dock-head .bd-x:hover { color: var(--ink); }
.bot-dock iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
@media (max-width: 520px) { .bot-dock { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 90px); } }

/* ===== Hero split (text + visual) ===== */
.p-hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .p-hero-split { grid-template-columns: 1fr; } .p-hero-visual { order: 2; } }
.p-hero-ctas { position: relative; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 26px; }
.p-cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: all .2s var(--ease-out); }
.p-cta.primary { background: linear-gradient(135deg, var(--accent), #FF8A3A); color: #1a0d00; box-shadow: 0 12px 36px -10px var(--accent); }
.p-cta.primary:hover { transform: translateY(-2px); }
.p-cta.ghost { border-color: var(--hair); color: var(--ink-dim); background: rgba(255,255,255,.02); }
.p-cta.ghost:hover { color: var(--ink); border-color: var(--ink-dim); }
.p-hero-visual { position: relative; z-index: 2; }

/* ===== Product-preview card (the "show don't tell" hero visual) ===== */
.preview { border: 1px solid var(--hair); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--hair); background: rgba(0,0,0,.2); }
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hair); }
.preview-bar .pt { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .05em; }
.preview-bar .pt b { color: var(--accent); }
.preview-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255,255,255,.02); }
.pv-row.win { border-color: rgba(199,242,109,.45); background: linear-gradient(180deg, rgba(199,242,109,.08), transparent); }
.pv-row .pg { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); flex: 0 0 30px; }
.pv-row .pi { flex: 1; min-width: 0; }
.pv-row .pn { font-size: 13.5px; font-weight: 600; }
.pv-row .pm { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.pv-row .pp { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); }
.pv-row.win .pp { color: var(--lime); }
.pv-bubble { max-width: 86%; padding: 10px 13px; border-radius: 13px; font-size: 13px; line-height: 1.5; }
.pv-bubble.bot { background: rgba(255,255,255,.06); border: 1px solid var(--hair); align-self: flex-start; border-bottom-left-radius: 4px; }
.pv-bubble.me { background: linear-gradient(135deg, var(--accent), var(--magenta)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px dashed var(--hair); margin-top: 2px; font-size: 12px; color: var(--ink-dim); }
.pv-foot b { color: var(--accent); font-family: var(--mono); }

/* ===== Reverse-bid card (Edgent hero) — live, polished ===== */
.bidcard .preview-bar { gap: 9px; }
.live-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--lime); padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(199,242,109,.4); background: rgba(199,242,109,.1); }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(199,242,109,.55); } 70% { box-shadow: 0 0 0 7px rgba(199,242,109,0); } 100% { box-shadow: 0 0 0 0 rgba(199,242,109,0); } }
.bid-meta { display: flex; justify-content: space-between; align-items: center; margin: -2px 2px 0; }
.bid-meta .bm-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--lime); }
.bid-meta .bm-round { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.bid-meta .bm-round b { color: var(--ink-dim); }
.bidcard .pv-row { transition: opacity .25s, transform .2s, border-color .2s, box-shadow .2s; }
.bidcard .pv-row:not(.win) { opacity: .76; }
.bidcard .pv-row:not(.win):hover { opacity: 1; }
.bidcard .pv-row.win { box-shadow: 0 0 0 1px rgba(199,242,109,.22), 0 16px 38px -18px rgba(199,242,109,.5); }
.bidcard .verified { color: var(--cyan); font-size: 11px; font-weight: 600; }
.bidcard .pp-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.1; }
.bidcard .pp-wrap .save { font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--lime); white-space: nowrap; }
.bidcard .pv-row .pp { font-size: 15px; }
.bidcard .pv-row.win .pp { font-size: 16.5px; }
.bidcard .pv-row.win .pp.bid-drop { animation: bid-drop .85s ease; }
@keyframes bid-drop { 0% { transform: translateY(-4px) scale(1.06); color: #fff; text-shadow: 0 0 16px rgba(199,242,109,.95); } 100% { transform: none; text-shadow: none; } }
.bidcard .pv-foot { font-size: 11.5px; }
.bidcard .pv-foot .closes b { color: var(--orange); }
.round-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 11px; }
.round-bar i { display: block; height: 100%; border-radius: 999px; width: 70%;
  background: linear-gradient(90deg, var(--orange-2), var(--orange)); box-shadow: 0 0 12px -2px var(--orange); transition: width .9s linear; }

/* ===== How it works (steps) ===== */
.p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .p-steps { grid-template-columns: 1fr; } }
.p-step { padding: 24px; border: 1px solid var(--hair); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); position: relative; }
.p-step .sn { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .2em; }
.p-step .si { width: 48px; height: 48px; margin: 14px 0 14px; }
.p-step h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 0 0 8px; }
.p-step p { color: var(--ink-dim); font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ===== Feature grid ===== */
.p-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.p-feat-item { padding: 20px; border: 1px solid var(--hair); border-radius: 16px; background: rgba(255,255,255,.02); transition: border-color .25s, transform .25s; }
.p-feat-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.p-feat-item .fi { width: 38px; height: 38px; margin-bottom: 12px; }
.p-feat-item h5 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.p-feat-item p { color: var(--ink-dim); font-size: 13px; margin: 0; line-height: 1.5; }

/* ===== Trust band ===== */
.p-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 24px; padding: 36px var(--pad); max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.p-band .bn { font-family: var(--serif); font-size: clamp(30px,3.5vw,44px); line-height: 1;
  background: linear-gradient(180deg, var(--ink), var(--ink-dim)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-band .bl { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--mono); letter-spacing: .04em; }

/* ===== Closing CTA band ===== */
.p-closing { max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad) 60px; }
.p-closing-card { padding: 44px; border-radius: 24px; border: 1px solid var(--hair); text-align: center;
  background: radial-gradient(ellipse at 50% -30%, rgba(255,106,26,.2), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); position: relative; overflow: hidden; }
.p-closing-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,4vw,48px); margin: 0 0 12px; }
.p-closing-card p { color: var(--ink-dim); max-width: 52ch; margin: 0 auto 24px; }

/* inline SVG icon sizing */
.ic { display: block; }
.ic.accent { color: var(--accent); }

/* ===== In-portal auth overlay (login / register, scoped to this portal) ===== */
/* When gated, hide the whole portal except the auth overlay (no content flash). */
.auth-gate, .auth-gate body { overflow: hidden; }
.auth-gate body > *:not(.auth-overlay):not(.grain) { visibility: hidden; }
.auth-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(ellipse at 70% -10%, rgba(255,46,166,.18), transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(63,216,230,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2)); }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .ab-mark { font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; }
.auth-brand .ab-mark b { background: linear-gradient(135deg, var(--orange), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand .ab-meta { line-height: 1.2; }
.auth-brand .ab-name { font-weight: 800; font-size: 16px; }
.auth-brand .ab-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.auth-box { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--hair);
  border-radius: 22px; padding: 24px; backdrop-filter: blur(10px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,.25);
  border: 1px solid var(--hair); border-radius: 13px; margin-bottom: 18px; }
.auth-tab { padding: 9px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-dim); cursor: pointer; background: none; border: none; }
.auth-tab.active { background: rgba(255,106,26,.16); color: var(--accent); }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.auth-field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.auth-field input { background: rgba(255,255,255,.04); border: 1px solid var(--hair); border-radius: 11px; padding: 12px 13px; color: var(--ink); font: inherit; font-size: 14px; }
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-submit { width: 100%; margin-top: 6px; padding: 13px; border-radius: 12px; border: none; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), #FF8A3A); color: #1a0d00; }
.auth-submit:disabled { opacity: .55; }
.auth-err { font-size: 12.5px; color: #ff8a5d; margin-top: 10px; min-height: 16px; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 16px; font-family: var(--mono); letter-spacing: .06em; }
.auth-role-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--hair); border-radius: 10px;
  margin-bottom: 16px; font-size: 12px; color: var(--ink-dim); }
.auth-role-note .arn-ic { font-size: 16px; }

.p-footer { text-align: center; color: var(--muted); font-size: 11.5px; padding: 40px var(--pad) 90px; font-family: var(--mono); letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
