/* =====================================================================
   TBC Card Portal — "Ink & Brass"
   Midnight ink, lacquered surfaces, brass engraving, verdigris patina.
   ===================================================================== */

:root {
  --ink: #0C1424;
  --ink-2: #0F1A2E;
  --lacquer: #16213A;
  --lacquer-2: #1C2947;
  --line: rgba(150, 185, 240, .12);
  --line-2: rgba(150, 185, 240, .22);
  --brass: #3A86F5;
  --brass-hi: #7DB6FF;
  --champagne: #CFE3FF;
  --brass-lo: #1E4F9E;
  --copper: #C8733A;
  --copper-lo: rgba(200, 115, 58, .16);
  --verdigris: #4FA39A;
  --verdigris-lo: rgba(79, 163, 154, .16);
  --porcelain: #EEF0F4;
  --text: #D7DCE6;
  --mist: #93A0B8;
  --dim: #6A7894;
  --danger: #E0625A;
  --danger-lo: rgba(224, 98, 90, .14);
  --warn: #E3A953;
  --warn-lo: rgba(227, 169, 83, .14);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --mx: 50vw;
  --my: 30vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 15.5px/1.6 var(--f-ui);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: var(--champagne); }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.muted { color: var(--mist); }
.d-block { display: block; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--porcelain);
  letter-spacing: -.01em;
  line-height: 1.04;
  margin: 0;
}
.display--xl { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
.display--lg { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.display--md { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.display--sm { font-size: 1.55rem; }
.engraved {
  background: linear-gradient(100deg, var(--champagne) 0%, var(--brass) 38%, #FFFFFF 50%, var(--brass) 62%, var(--brass-lo) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.lede { font-size: 1.08rem; color: var(--mist); max-width: 52ch; margin: 14px 0 0; }
h2, h3 { color: var(--porcelain); }

/* ---------- Ambient layers: gold dust + cursor light ---------- */
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.spot {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(58, 134, 245, .09), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(79, 163, 154, .10), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(58, 134, 245, .07), transparent 60%);
}
.pub main, .pub .topbar, .pub .foot { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--porcelain);
  font: 600 .95rem/1 var(--f-ui); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--brass {
  color: #fff;
  background: linear-gradient(135deg, #5AA2FF 0%, #2C76EC 45%, #1D5FCF 100%);
  box-shadow: 0 10px 30px -12px rgba(58, 134, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--brass::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--brass:hover { color: #fff; box-shadow: 0 16px 40px -14px rgba(110, 170, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--brass:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { color: var(--champagne); border-color: var(--brass); background: rgba(58, 134, 245, .07); }
.btn--danger { border-color: rgba(224, 98, 90, .45); color: #F2A29C; }
.btn--danger:hover { background: var(--danger-lo); color: #FFD0CC; border-color: var(--danger); }
.btn--ok { border-color: rgba(79, 163, 154, .5); color: #9DDCD3; }
.btn--ok:hover { background: var(--verdigris-lo); color: #C9F0EA; border-color: var(--verdigris); }
.btn--sm { min-height: 36px; padding: 0 15px; font-size: .86rem; gap: 7px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .7s var(--ease-out); pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.iconbtn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.iconbtn:hover { color: var(--champagne); border-color: var(--brass); background: rgba(58, 134, 245, .06); }
.iconbtn--sm { width: 32px; height: 32px; border-radius: 8px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label, .label { font-size: .84rem; font-weight: 600; color: var(--text); }
.field small { color: var(--dim); font-size: .8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.control {
  position: relative; display: flex; align-items: center;
}
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 0 16px;
  background: rgba(12, 20, 36, .55);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--porcelain); font: 500 1rem var(--f-ui);
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { padding: 14px 16px; min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A55A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.input option { background: var(--lacquer); }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(150, 185, 240, .32); }
.input:focus { outline: none; border-color: var(--brass); background: rgba(12, 20, 36, .8); box-shadow: 0 0 0 4px rgba(58, 134, 245, .14); }
.input--card { font-size: 1.15rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-lo); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.control .iconbtn { position: absolute; right: 7px; border: 0; }
.control .input { padding-right: 52px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--mist); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(12, 20, 36, .6); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.check input:checked { background: var(--brass); border-color: var(--brass); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--brass); }
.strength[data-s="4"] i { background: var(--verdigris); }
.form-alt { margin-top: 22px; color: var(--mist); font-size: .92rem; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-md); margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert--error { background: var(--danger-lo); border-color: rgba(224, 98, 90, .4); color: #F6C4BF; }
.alert--info { background: rgba(58, 134, 245, .08); border-color: var(--line-2); color: var(--champagne); }
.alert--ok { background: var(--verdigris-lo); border-color: rgba(79, 163, 154, .4); color: #BFE8E2; }

/* OTP boxes */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 26px 0 20px; max-width: 420px; }
.otp input {
  width: 100%; aspect-ratio: 4 / 5; text-align: center;
  font: 500 1.9rem var(--f-display); color: var(--champagne);
  background: rgba(12, 20, 36, .6); border: 1px solid var(--line-2); border-radius: 14px;
  caret-color: var(--brass); transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s, background .25s;
}
.otp input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(58, 134, 245, .15); transform: translateY(-3px); }
.otp input.is-filled { border-color: rgba(58, 134, 245, .6); background: rgba(58, 134, 245, .07); animation: pop .3s var(--ease-out); }
.otp.is-bad input { border-color: var(--danger); animation: shake .4s; }
.otp.is-good input { border-color: var(--verdigris); background: var(--verdigris-lo); color: #C9F0EA; }
@keyframes pop { 50% { transform: scale(1.08); } }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(16px, 4vw, 48px);
  position: sticky !important; top: 0; z-index: 20 !important;
  transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: rgba(12, 20, 36, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--champagne); }
.brand:hover { color: var(--porcelain); }
.brand__logo { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(58, 134, 245, .35)); transition: transform .8s var(--ease-out); }
.brand:hover .brand__logo { transform: perspective(400px) rotateY(360deg); }
.brand__name { font: 500 .98rem/1.05 var(--f-display); letter-spacing: .02em; }
.topbar__nav { display: flex; align-items: center; gap: 6px; }
.topbar__nav form { margin: 0; }
.navlink { padding: 8px 14px; color: var(--text); font-weight: 500; font-size: .93rem; border-radius: 999px; transition: color .2s, background .2s; }
.navlink:hover { color: var(--champagne); background: rgba(255, 255, 255, .04); }

/* ---------- Landing ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 5vw, 80px);
  min-height: calc(100vh - 82px); padding: 30px clamp(16px, 5vw, 72px) 80px;
  max-width: 1360px; margin: 0 auto;
}
.hero__copy .display { max-width: 13ch; }
.hero__copy .lede { font-size: 1.15rem; margin-top: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta div { display: grid; gap: 2px; }
.hero__meta strong { font: 500 2rem/1 var(--f-display); color: var(--champagne); font-variant-numeric: lining-nums tabular-nums; }
.hero__meta span { font-size: .85rem; color: var(--mist); }
.hero__stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 460px; }
.orbit { position: absolute; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); animation: orbit 40s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 18px 4px rgba(58, 134, 245, .6); }
.orbit::before { top: -4px; left: 50%; }
.orbit::after { bottom: 18%; right: 3%; background: var(--copper); box-shadow: 0 0 18px 4px rgba(200, 115, 58, .55); }
.orbit--2 { width: min(420px, 80%); animation-duration: 26s; animation-direction: reverse; border-style: dashed; border-color: rgba(150, 185, 240, .08); }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero__hint { position: absolute; bottom: 4px; font-size: .82rem; color: var(--dim); display: flex; align-items: center; gap: 8px; }

.section { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 48px); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head p { color: var(--mist); font-size: 1.05rem; margin: 16px 0 0; }

/* Activation steps: a genuine sequence */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--brass), var(--copper)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease-out); }
.steps.is-in { --p: 1; }
.step { position: relative; padding-right: 26px; }
.step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line-2); color: var(--champagne); font: 500 1.35rem var(--f-display);
  margin-bottom: 22px; transition: border-color .4s, box-shadow .4s;
}
.steps.is-in .step__n { border-color: var(--brass); box-shadow: 0 0 0 6px var(--ink), 0 0 30px -4px rgba(58, 134, 245, .45); }
.step h3 { font: 600 1.08rem var(--f-ui); margin: 0 0 8px; }
.step p { margin: 0; color: var(--mist); font-size: .94rem; max-width: 30ch; }

/* Industries ribbon */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon__track { display: flex; gap: 48px; width: max-content; animation: ribbon 55s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__track span { font: italic 400 1.5rem var(--f-display); color: var(--mist); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ribbon__track span::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--brass); opacity: .7; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Benefits: one list, not a card grid */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.perk { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.perk__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brass); background: rgba(58, 134, 245, .07); border: 1px solid var(--line); }
.perk h3 { margin: 0 0 6px; font: 600 1.05rem var(--f-ui); }
.perk p { margin: 0; color: var(--mist); font-size: .95rem; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px); border: 1px solid var(--line-2);
  background: radial-gradient(700px 300px at 100% 0%, rgba(58, 134, 245, .16), transparent 70%), linear-gradient(160deg, var(--lacquer), var(--ink-2));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band p { color: var(--mist); margin: 12px 0 0; max-width: 46ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot__inner { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 48px) 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.foot__brand { display: flex; gap: 14px; align-items: center; }
.foot__brand strong { color: var(--champagne); font: 500 1rem var(--f-display); }
.foot__brand span { color: var(--dim); font-size: .88rem; }
.foot__logo { width: 44px; height: 44px; object-fit: contain; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.foot__links a { color: var(--mist); }
.foot__links a:hover { color: var(--champagne); }
.foot__legal { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: .82rem; }

/* ---------- Auth pages ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1280px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 56px) 70px; min-height: calc(100vh - 82px); }
.auth__form { max-width: 460px; width: 100%; }
.auth__form form { margin-top: 32px; }
.auth__stage { display: grid; place-items: center; perspective: 1400px; position: relative; }
.auth__stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(58, 134, 245, .14), transparent 65%); filter: blur(10px); }
.resend { display: flex; align-items: center; gap: 12px; color: var(--mist); font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass-hi); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:hover { color: var(--champagne); }
.linkbtn[disabled] { color: var(--dim); cursor: default; }

/* =====================================================================
   The member card
   ===================================================================== */
.card3d {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --glow: 0;
  --w: min(440px, 88vw);
  width: var(--w); aspect-ratio: 1.586; position: relative; z-index: 1;
  transform-style: preserve-3d; cursor: pointer; outline: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out);
  border-radius: calc(var(--w) * .055);
}
.card3d.is-tracking { transition: transform .08s linear; }
.card3d--hero { --w: min(470px, 86vw); animation: floaty 7s ease-in-out infinite; }
.card3d--sm { --w: min(340px, 82vw); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.card3d__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease-out); border-radius: inherit; }
.card3d.is-flipped .card3d__inner { transform: rotateY(180deg); }
.card3d__face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: calc(var(--w) * .058) calc(var(--w) * .064);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--champagne);
  background: linear-gradient(135deg, #22335A 0%, #142040 46%, #0B1428 100%);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(150, 185, 240, .22) inset, 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.card3d__back { transform: rotateY(180deg); padding: 0; display: block; }
.card3d__guilloche { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brass); opacity: .26; pointer-events: none; }
.card3d__foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: calc(.08 + var(--glow) * .32);
  background: conic-gradient(from calc(var(--ry) * 6) at var(--gx) var(--gy), #ff6fd8, #8af0ff, #6ff7e8, #8aa9ff, #ff6fd8);
  filter: blur(18px) saturate(1.2); transition: opacity .4s;
}
.card3d__glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%);
  opacity: calc(.25 + var(--glow) * .6); transition: opacity .4s;
}
.card3d__row { position: relative; display: flex; align-items: center; justify-content: space-between; transform: translateZ(30px); }
.card3d__brand { display: flex; align-items: center; gap: calc(var(--w) * .024); font: 500 calc(var(--w) * .031)/1.08 var(--f-display); letter-spacing: .03em; }
.card3d__logo { width: calc(var(--w) * .115); height: calc(var(--w) * .115); object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.card3d__tier { font: italic 500 calc(var(--w) * .043) var(--f-display); letter-spacing: .02em; }
.card3d__row--chip { justify-content: flex-start; gap: calc(var(--w) * .035); }
.card3d__chip { width: calc(var(--w) * .118); height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.card3d__nfc { width: calc(var(--w) * .058); opacity: .75; }
.card3d__status { margin-left: auto; font-size: calc(var(--w) * .026); font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.card3d__number {
  position: relative; transform: translateZ(40px);
  font: 500 calc(var(--w) * .062)/1 var(--f-ui); letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .35);
}
.card3d__row--bottom { align-items: flex-end; }
.card3d__row--bottom small { display: block; font-size: calc(var(--w) * .022); opacity: .7; margin-bottom: 3px; letter-spacing: .05em; }
.card3d__row--bottom span { font: 600 calc(var(--w) * .036)/1.1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(0, 0, 0, .4); }
.card3d__name { display: inline-block; max-width: calc(var(--w) * .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card3d__exp { text-align: right; }
.card3d__stripe { height: 21%; margin-top: 9%; background: linear-gradient(180deg, #05070C, #151A24 45%, #05070C); }
.card3d__sig { margin: 7% 7% 0; display: flex; align-items: center; gap: 12px; }
.card3d__sig span { font-size: calc(var(--w) * .022); opacity: .7; white-space: nowrap; }
.card3d__sig em { flex: 1; height: calc(var(--w) * .09); display: flex; align-items: center; padding: 0 12px; border-radius: 4px; color: #33405E; font: italic 500 calc(var(--w) * .042) var(--f-display);
  background: repeating-linear-gradient(-45deg, #F3EFE4 0 6px, #E6E0CF 6px 12px); white-space: nowrap; overflow: hidden; }
.card3d__fine { margin: 6% 7% 0; font-size: calc(var(--w) * .022); line-height: 1.5; opacity: .62; max-width: 70%; }
.card3d__holo { position: absolute; right: 7%; bottom: 10%; width: 17%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from calc(var(--ry) * 8), #9ec5ff, #8ff3e6, #b2a7ff, #ff9fe1, #9ec5ff); opacity: .85;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

/* Tiers */
.tier-gold .card3d__face { color: #2B2108; background: linear-gradient(130deg, #F4E2AE 0%, #D9B76A 28%, #B48A3C 58%, #E7CD8C 78%, #8E6A28 100%); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 245, 210, .5) inset; }
.tier-gold .card3d__guilloche { color: #6E5420; opacity: .3; }
.tier-gold .card3d__number, .tier-gold .card3d__row--bottom span { text-shadow: 0 1px 0 rgba(255, 248, 220, .7), 0 -1px 0 rgba(90, 64, 18, .45); }
.tier-platinum .card3d__face { color: #1C2433; background: linear-gradient(130deg, #F5F7FA 0%, #C9D0DA 30%, #9AA4B3 60%, #E3E7EE 80%, #7C8798 100%); }
.tier-platinum .card3d__guilloche { color: #47546A; opacity: .26; }
.tier-platinum .card3d__number, .tier-platinum .card3d__row--bottom span { text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(40, 50, 66, .4); }
.tier-black .card3d__face { color: var(--champagne); background: linear-gradient(135deg, #24242C 0%, #101015 45%, #050507 100%); }
.tier-black .card3d__guilloche { color: var(--verdigris); opacity: .22; }
.card3d.is-dim .card3d__face { filter: grayscale(.85) brightness(.7); }

/* ---------- Member area ---------- */
.member { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 5vw, 48px) 70px; }
.member__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 40px; }
.member__head p { color: var(--mist); margin: 10px 0 0; }
.wallet { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.wallet__stage { display: grid; justify-items: center; gap: 22px; perspective: 1400px; padding-top: 10px; position: sticky; top: 100px; }
.wallet__tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wallet__tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--mist); font: 600 .85rem var(--f-ui); cursor: pointer; transition: .25s; }
.wallet__tab.is-active, .wallet__tab:hover { color: var(--ink); background: var(--champagne); border-color: var(--champagne); }
.flip-hint { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: .85rem; }

.panel { position: relative; background: linear-gradient(180deg, rgba(28, 41, 71, .72), rgba(22, 33, 58, .6)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel + .panel { margin-top: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; font: 500 1.4rem var(--f-display); }
.panel__head p { margin: 4px 0 0; color: var(--mist); font-size: .9rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .8rem; color: var(--dim); }
.facts dd { margin: 2px 0 0; color: var(--porcelain); font-weight: 600; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Request timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--dim); background: var(--ink); }
.timeline li.is-done::after { border-color: var(--verdigris); background: var(--verdigris); }
.timeline li.is-now::after { border-color: var(--brass); background: var(--brass); box-shadow: 0 0 0 5px rgba(58, 134, 245, .2); animation: pulse 2s infinite; }
.timeline li.is-bad::after { border-color: var(--danger); background: var(--danger); }
.timeline strong { display: block; color: var(--porcelain); font-weight: 600; font-size: .95rem; }
.timeline span { color: var(--mist); font-size: .86rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(58, 134, 245, 0); } }

.success-burst { text-align: center; padding: 10px 0; }
.success-burst .seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: linear-gradient(135deg, #8CC4FF, var(--brass), #1D5FCF); box-shadow: 0 0 0 10px rgba(58, 134, 245, .12), 0 0 60px rgba(58, 134, 245, .5); animation: seal 1s var(--ease-out) both; }
.success-burst .seal svg { width: 40px; height: 40px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .45s var(--ease-out) forwards; }
@keyframes seal { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: #8FD9CE; border-color: rgba(79, 163, 154, .35); background: var(--verdigris-lo); }
.pill--danger { color: #F2A29C; border-color: rgba(224, 98, 90, .35); background: var(--danger-lo); }
.pill--warn { color: #F2C98A; border-color: rgba(227, 169, 83, .35); background: var(--warn-lo); }
.pill--brass { color: var(--champagne); border-color: var(--line-2); background: rgba(58, 134, 245, .1); }
.pill--muted { color: var(--mist); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5, 9, 18, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(180deg, var(--lacquer-2), var(--lacquer)); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
  transform: translateY(24px) scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.modal--wide .modal__box { width: min(820px, 100%); }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__box h2 { margin: 0 0 6px; font: 500 1.6rem var(--f-display); }
.modal__box > p { color: var(--mist); margin: 0 0 22px; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: rgba(28, 41, 71, .94); border: 1px solid var(--line-2); color: var(--porcelain); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(10px);
  animation: toastIn .55s var(--ease-out); position: relative; overflow: hidden; font-size: .93rem; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; transform-origin: left; animation: toastBar 6s linear forwards; opacity: .6; }
.toast--success { color: #9DDCD3; }
.toast--error { color: #F2A29C; }
.toast--info { color: var(--champagne); }
.toast p { margin: 0; color: var(--porcelain); }
.toast.is-out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateX(110%) rotate(4deg); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }
@keyframes toastBar { to { transform: scaleX(0); } }

/* ---------- Page-load sequence ---------- */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink); transition: opacity .7s var(--ease), visibility .7s; }
.loader svg { width: 150px; height: 150px; position: absolute; }
.loader__coin { width: 104px; height: 104px; animation: coinSpin 1.3s var(--ease-out) both; filter: drop-shadow(0 0 30px rgba(58, 134, 245, .45)); }
@keyframes coinSpin { from { transform: perspective(600px) rotateY(-540deg) scale(.4); opacity: 0; } to { transform: perspective(600px) rotateY(0) scale(1); opacity: 1; } }
.loader circle { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-dasharray: 340; stroke-dashoffset: 340; animation: ring 1.1s var(--ease-out) forwards; }
.loader text { fill: var(--champagne); font: 400 34px var(--f-display); opacity: 0; animation: fadeIn .6s .5s forwards; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-rise] { opacity: 0; transform: translateY(40px); }
.js .is-loaded .hero [data-rise], .js body.is-loaded .hero [data-rise] { animation: rise 1.2s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero .card3d--hero { opacity: 0; }
.js body.is-loaded .hero .card3d--hero { animation: cardIn 1.6s .25s var(--ease-out) forwards, floaty 7s 1.85s ease-in-out infinite; }
@keyframes cardIn { from { opacity: 0; transform: translateY(80px) rotateX(40deg) rotateY(-25deg) rotateZ(-8deg) scale(.85); } to { opacity: 1; } }

.confetti { position: fixed; inset: 0; z-index: 85; pointer-events: none; width: 100%; height: 100%; }

/* =====================================================================
   Admin
   ===================================================================== */
.adm { background: var(--ink); }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; background: linear-gradient(180deg, var(--ink-2), #0A1120); border-right: 1px solid var(--line); z-index: 40; }
.brand--side { padding: 2px 8px 12px; border-bottom: 1px solid var(--line); }
.side__nav { display: grid; gap: 1px; overflow-y: auto; align-content: start; scrollbar-width: thin; }
.side__link { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; color: var(--mist); font-weight: 500; font-size: .93rem; transition: color .2s, background .2s; }
.side__link:hover { color: var(--porcelain); background: rgba(255, 255, 255, .035); }
.side__link.is-active { color: var(--champagne); background: linear-gradient(90deg, rgba(58, 134, 245, .14), rgba(58, 134, 245, .02)); }
.side__link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brass); box-shadow: 0 0 12px var(--brass); }
.side__group { margin: 10px 12px 2px; font-size: .74rem; font-weight: 600; color: var(--dim); }
.side__live { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--verdigris-lo); color: #8FD9CE; font-size: .75rem; border: 1px solid rgba(79, 163, 154, .4); }
.side__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--copper); color: #fff; font-size: .75rem; animation: pulse 2.4s infinite; }
.side__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.side__me > div { min-width: 0; flex: 1; }
.side__me strong { display: block; color: var(--porcelain); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me small { display: block; color: var(--dim); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me form { margin: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 600 .82rem var(--f-ui); color: var(--ink); background: linear-gradient(135deg, var(--champagne), var(--brass)); }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.side__scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 34px); background: rgba(12, 20, 36, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar__title { margin: 0; font: 500 1.5rem var(--f-display); color: var(--porcelain); }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar__clock { display: flex; align-items: center; gap: 7px; color: var(--mist); font-size: .88rem; font-variant-numeric: tabular-nums; }
.bar__menu { display: none; }
.content { padding: clamp(18px, 3vw, 34px); display: grid; gap: 22px; align-content: start; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--lacquer-2), var(--lacquer)); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease-out); }
.kpi:hover { border-color: var(--line-2); transform: translateY(-3px); }
.kpi::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--kc, rgba(58, 134, 245, .18)), transparent 70%); }
.kpi__label { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: .84rem; }
.kpi__label .ico { color: var(--brass); }
.kpi__val { display: block; margin-top: 8px; font: 500 2.2rem/1 var(--f-display); color: var(--porcelain); font-variant-numeric: lining-nums tabular-nums; }
.kpi__sub { display: block; margin-top: 6px; font-size: .8rem; color: var(--dim); }
.kpi__sub b { color: var(--verdigris); font-weight: 600; }
.kpi__sub b.is-bad { color: var(--danger); }
.kpi--alert { --kc: rgba(227, 169, 83, .25); border-color: rgba(227, 169, 83, .35); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; }
.grid-2--even { grid-template-columns: 1fr 1fr; }
.chartbox { position: relative; height: 260px; }
.chartbox--sm { height: 210px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--mist); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.map { height: 340px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #0A1120; }
.leaflet-container { background: #0A1120 !important; font-family: var(--f-ui) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--lacquer-2) !important; color: var(--porcelain) !important; border: 1px solid var(--line-2); }
.leaflet-control-attribution { background: rgba(12, 20, 36, .7) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--mist) !important; }
.map-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(58, 134, 245, .6); animation: ping 2s infinite; }
.map-dot--bad { background: var(--danger); box-shadow: 0 0 0 0 rgba(224, 98, 90, .6); }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgba(58, 134, 245, 0); } }

.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .88rem; }
.bars__row span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__row b { color: var(--porcelain); font-weight: 600; font-variant-numeric: tabular-nums; }
.bars__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bars__fill { height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--brass-lo), var(--brass)); transform-origin: left; animation: grow 1.2s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }

.feed { list-style: none; margin: 0; padding: 0; display: grid; max-height: 420px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed li.is-new { animation: feedIn .8s var(--ease-out); }
@keyframes feedIn { from { background: rgba(58, 134, 245, .14); transform: translateX(-10px); } }
.feed__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(58, 134, 245, .08); color: var(--brass); }
.feed__ic.is-bad { background: var(--danger-lo); color: var(--danger); }
.feed__ic.is-ok { background: var(--verdigris-lo); color: var(--verdigris); }
.feed strong { display: block; color: var(--porcelain); font-weight: 600; font-size: .9rem; }
.feed span { display: block; color: var(--mist); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time { color: var(--dim); font-size: .78rem; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--verdigris); font-size: .8rem; font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verdigris); animation: ping 1.6s infinite; box-shadow: 0 0 0 0 rgba(79, 163, 154, .6); }

/* Tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar form { display: contents; }
.toolbar .input { min-height: 40px; width: auto; font-size: .9rem; border-radius: 10px; }
.toolbar .search { position: relative; flex: 1 1 240px; }
.toolbar .search .input { width: 100%; padding-left: 40px; }
.toolbar .search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.toolbar__end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--mist); font-size: .88rem; font-weight: 600; white-space: nowrap; transition: .2s; }
.tabs a:hover { color: var(--porcelain); }
.tabs a.is-active { color: var(--ink); background: var(--champagne); }
.tablewrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.t th { position: sticky; top: 0; text-align: left; font-weight: 600; font-size: .78rem; color: var(--dim); padding: 12px 14px; background: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .2s; }
.t tbody tr:hover { background: rgba(58, 134, 245, .04); }
.t .strong { color: var(--porcelain); font-weight: 600; }
.t .mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.t .actions-cell { display: flex; gap: 6px; justify-content: flex-end; }
.t small { font-size: .78rem; }
.who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who .avatar { width: 32px; height: 32px; font-size: .74rem; }
.who strong { display: block; color: var(--porcelain); font-weight: 600; }
.who small { color: var(--dim); }
.ipbtn { background: none; border: 0; padding: 0; color: var(--brass-hi); font: 500 .88rem var(--f-ui); font-variant-numeric: tabular-nums; cursor: pointer; border-bottom: 1px dashed rgba(58, 134, 245, .4); }
.ipbtn:hover { color: var(--champagne); }
.dev { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.dev .ico { color: var(--mist); }
.geo { white-space: nowrap; }
.empty { text-align: center; padding: 50px 20px; color: var(--mist); }
.empty .ico { margin: 0 auto 12px; color: var(--brass); width: 34px; height: 34px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.pager__btns { display: flex; gap: 8px; }

/* SLA ring */
.sla { display: inline-flex; align-items: center; gap: 10px; }
.sla svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.sla circle { fill: none; stroke-width: 3.5; }
.sla .sla__bg { stroke: rgba(255, 255, 255, .07); }
.sla .sla__fg { stroke: var(--verdigris); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear, stroke .4s; }
.sla.is-warn .sla__fg { stroke: var(--warn); }
.sla.is-late .sla__fg { stroke: var(--danger); }
.sla b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--porcelain); font-size: .9rem; display: block; }
.sla small { color: var(--dim); font-size: .76rem; }
.sla.is-late b { color: #F2A29C; }

/* Drawer (IP details) */
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(480px, 100vw); background: var(--lacquer); border-left: 1px solid var(--line-2); transform: translateX(105%); transition: transform .5s var(--ease-out); display: flex; flex-direction: column; box-shadow: -40px 0 80px -30px rgba(0, 0, 0, .8); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 500 1.35rem var(--f-display); }
.drawer__body { padding: 20px 22px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.drawer .map { height: 210px; }
.drawer-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(5, 9, 18, .55); opacity: 0; visibility: hidden; transition: .35s; }
.drawer-scrim.is-open { opacity: 1; visibility: visible; }
.minilist { list-style: none; margin: 0; padding: 0; display: grid; }
.minilist li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .87rem; display: flex; justify-content: space-between; gap: 12px; }
.minilist li:first-child { border-top: 0; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch strong { display: block; color: var(--porcelain); font-weight: 600; font-size: .94rem; }
.switch small { color: var(--mist); font-size: .84rem; }
.switch input { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; cursor: pointer; transition: background .3s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--porcelain); transition: transform .35s var(--ease-out); }
.switch input:checked { background: var(--brass); }
.switch input:checked::after { transform: translateX(20px); background: var(--ink); }
.codebox { padding: 14px 16px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); font-size: .86rem; color: var(--mist); overflow-x: auto; }
.codebox code { color: var(--champagne); }
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 30px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); color: var(--mist); cursor: pointer; transition: .25s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brass); background: rgba(58, 134, 245, .05); color: var(--champagne); }
.dropzone input { display: none; }
.reveal-num { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--champagne); font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h2 { margin: 0; font: 500 1.6rem var(--f-display); }

/* ---------- Installer ---------- */
.install { max-width: 760px; margin: 0 auto; padding: 50px 20px 80px; position: relative; z-index: 1; }
.install fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 8px; margin: 0 0 20px; background: rgba(22, 33, 58, .5); }
.install legend { padding: 0 10px; font: 500 1.15rem var(--f-display); color: var(--champagne); }


/* ---------- v1.1: admins, security, email ---------- */
.pill--copper { color: #F0B48A; border-color: rgba(200, 115, 58, .45); background: var(--copper-lo); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.admin-card { display: grid; gap: 14px; align-content: start; }
.admin-card.is-owner { border-color: rgba(200, 115, 58, .45); background: radial-gradient(400px 200px at 100% 0%, rgba(200, 115, 58, .12), transparent 70%), linear-gradient(180deg, rgba(28, 41, 71, .72), rgba(22, 33, 58, .6)); }
.admin-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-card .actions { margin-top: 0; }
.avatar { position: relative; }
.avatar__dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--verdigris); border: 2px solid var(--lacquer); animation: ping 1.8s infinite; }
.permlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .84rem; }
.permlist li { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.permlist li.is-on { color: var(--text); }
.permlist li.is-on .ico { color: var(--verdigris); }
.permgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 20px; }
.permbox { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.permbox:hover { border-color: var(--brass); }
.permbox:has(input:checked) { border-color: var(--brass); background: rgba(58, 134, 245, .08); }
.permbox.is-disabled { opacity: .45; cursor: not-allowed; }
.permbox input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(12, 20, 36, .6); display: grid; place-items: center; }
.permbox input:checked { background: var(--brass); border-color: var(--brass); }
.permbox input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.permbox strong { display: block; color: var(--porcelain); font-size: .92rem; }
.permbox small { color: var(--mist); font-size: .8rem; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verdigris-lo); color: var(--verdigris); }
.score { display: flex; align-items: center; gap: 24px; }
.score__ring { --p: 0; position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center; }
.score__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 8; }
.score__bg { stroke: rgba(255, 255, 255, .06); }
.score__fg { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.6s var(--ease-out); }
.score__ring > div { text-align: center; }
.score__ring strong { display: block; font: 500 2.1rem/1 var(--f-display); color: var(--porcelain); }
.score__ring span { font-size: .76rem; color: var(--mist); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist__ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.checklist .is-ok .checklist__ic { background: var(--verdigris-lo); color: var(--verdigris); }
.checklist .is-open .checklist__ic { background: var(--warn-lo); color: var(--warn); }
.checklist strong { display: block; color: var(--porcelain); font-weight: 600; font-size: .92rem; }
.checklist small { color: var(--mist); font-size: .83rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); font: 500 .85rem var(--f-ui); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--brass); color: var(--porcelain); }
.chip b { color: #F2A29C; font-weight: 700; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--mist); font-size: .92rem; }
.howto strong { color: var(--porcelain); }
@media (max-width: 620px) { .permgrid, .permlist { grid-template-columns: 1fr; } .score { flex-direction: column; text-align: center; } }

/* Touch vs mouse wording */
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .hero__stage { order: -1; min-height: 340px; }
  .auth { grid-template-columns: 1fr; }
  .auth__stage { order: -1; }
  .auth__form { margin: 0 auto; }
  .wallet { grid-template-columns: 1fr; }
  .wallet__stage { position: static; }
  .grid-2, .grid-2--even, .settings-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-102%); transition: transform .45s var(--ease-out); }
  .side.is-open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .side__scrim.is-open { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(5, 9, 18, .6); }
  .bar__menu { display: inline-grid; }
  .bar__clock { display: none; }
  .perks { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .topbar__nav .navlink { display: none; }
  .brand__name { display: none; }
  .brand--side .brand__name { display: block; }
  .row2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .otp { gap: 7px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .bar__right .btn { display: none; }
  .modal__box { padding: 22px 18px; }
  .hero__meta { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dust { display: none; }
  .js [data-reveal], .js .hero [data-rise], .js .hero .card3d--hero { opacity: 1 !important; transform: none !important; }
}
