
    /* ------------------------------------------------------------
       1. Design tokens (CSS custom properties)
       ------------------------------------------------------------ */
    @property --ang {
      syntax: '<angle>';
      inherits: false;
      initial-value: 0deg;
    }

    :root {
      /* Brand colours */
      --red: #D40404;
      --red-bright: #FC0404;
      --red-dark: #8C0404;
      --red-deep: #540202;
      --blue: #0561C9;
      --blue-mid: #044CB4;
      --blue-dark: #041C5C;
      --blue-bright: #0F73DB;
      --sky: #66A3E0;
      --gold: #F5B301;
      --green: #1FA04E;
      --mint: #9EE7B8;

      /* Text & surface */
      --ink: #ffffff;
      --ink-soft: rgba(255, 255, 255, .68);
      --ink-faint: rgba(255, 255, 255, .42);
      --bg: #060d24;
      --bg-2: #0a1430;
      --glass: rgba(255, 255, 255, .06);
      --glass-2: rgba(255, 255, 255, .1);
      --line: rgba(255, 255, 255, .14);

      /* Typography */
      --font-display: "Bricolage Grotesque", system-ui, sans-serif;
      --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
      --font-mono: "IBM Plex Mono", ui-monospace, monospace;

      /* Motion */
      --ease: cubic-bezier(.22, 1, .36, 1);
      --spring: cubic-bezier(.34, 1.56, .64, 1);
    }

    /* ------------------------------------------------------------
       2. Base & reset
       ------------------------------------------------------------ */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      min-height: 100dvh;
      font-family: var(--font-body);
      color: var(--ink);
      background: var(--bg);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }

    button,
    input {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
    }

    button {
      cursor: pointer;
    }

    a {
      color: var(--sky);
      text-decoration: none;
      transition: color .25s;
    }

    a:hover {
      color: #fff;
    }

    ::selection {
      background: var(--red);
      color: #fff;
    }

    :focus-visible {
      outline: 3px solid var(--blue-bright);
      outline-offset: 3px;
      border-radius: 8px;
    }

    .visually-hidden-x {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    /* ------------------------------------------------------------
       3. Ambient background layers (canvas, aurora, grid, etc.)
       ------------------------------------------------------------ */
    #bgCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    .aurora {
      position: fixed;
      inset: -15%;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(circle 620px at 12% 18%, rgba(252, 74, 74, .26) 0%, transparent 70%),
        radial-gradient(circle 760px at 88% 14%, rgba(80, 160, 240, .30) 0%, transparent 70%),
        radial-gradient(circle 600px at 50% 100%, rgba(245, 179, 1, .14) 0%, transparent 70%),
        radial-gradient(circle 700px at 92% 88%, rgba(60, 90, 180, .32) 0%, transparent 70%),
        linear-gradient(165deg, #060d24 0%, #0b1740 55%, #060d24 100%);
      filter: blur(40px) saturate(1.2);
      animation: aurora 24s ease-in-out infinite alternate;
    }

    @keyframes aurora {
      0% {
        transform: translate3d(0, 0, 0) scale(1);
      }

      100% {
        transform: translate3d(-2.5%, 2%, 0) scale(1.08);
      }
    }

    .grid-lines {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(160, 200, 245, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 200, 245, .06) 1px, transparent 1px);
      background-size: 72px 72px;
      -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000 0%, #000 55%, transparent 100%);
      mask-image: radial-gradient(120% 90% at 50% 50%, #000 0%, #000 55%, transparent 100%);
      animation: gridDrift 60s linear infinite;
    }

    @keyframes gridDrift {
      to {
        background-position: 72px 72px, 72px 72px;
      }
    }

    .grain {
      position: fixed;
      inset: 0;
      z-index: 50;
      pointer-events: none;
      opacity: .035;
      mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    .spotlight {
      position: fixed;
      top: 0;
      left: 0;
      width: 520px;
      height: 520px;
      z-index: 1;
      pointer-events: none;
      border-radius: 50%;
      opacity: 0;
      transition: opacity .6s var(--ease);
      background: radial-gradient(circle, rgba(102, 163, 224, .20) 0%, rgba(245, 179, 1, .06) 45%, transparent 70%);
      filter: blur(14px);
      mix-blend-mode: screen;
      will-change: transform;
    }

    .spotlight.on {
      opacity: 1;
    }

    .road-bar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      z-index: 60;
      background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 92px);
      animation: roadMove 1.6s linear infinite;
      box-shadow: 0 0 18px rgba(245, 179, 1, .5);
    }

    @keyframes roadMove {
      to {
        background-position: 92px 0;
      }
    }

    /* ------------------------------------------------------------
       4. Main stage layout
       ------------------------------------------------------------ */
    .stage {
      position: relative;
      z-index: 5;
      min-height: 100vh;
      min-height: 100dvh;
    }

    .stage .row {
      min-height: 100vh;
      min-height: 100dvh;
    }

    /* ------------------------------------------------------------
       5. Showcase section (left column)
       ------------------------------------------------------------ */
    .showcase {
      position: relative;
      padding: clamp(34px, 4.4vw, 64px) clamp(34px, 5vw, 76px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 28px;
    }

    .sc-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      color: #fff;
    }

    .brand:hover {
      color: #fff;
    }

    .brand-badge {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      overflow: hidden;
      flex: none;
      background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
      border: 1px solid var(--line);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 34px -14px rgba(0, 0, 0, .65);
      transition: transform .5s var(--spring);
    }

    .brand:hover .brand-badge {
      transform: rotate(-6deg) translateY(-2px);
    }

    .brand-badge img {
      width: 78%;
      height: 78%;
      object-fit: contain;
    }

    .brand-badge .fb {
      display: none;
      font-size: 1.5rem;
    }

    .brand-badge.nologo img {
      display: none;
    }

    .brand-badge.nologo .fb {
      display: block;
    }

    .brand-type {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.3rem;
      letter-spacing: -.02em;
      line-height: 1;
    }

    .brand-type small {
      display: block;
      margin-top: 6px;
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 9px;
      letter-spacing: .3em;
      color: var(--ink-soft);
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 100px;
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 500;
      letter-spacing: .12em;
      text-transform: uppercase;
      background: var(--glass);
      border: 1px solid var(--line);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      white-space: nowrap;
    }

    .live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--green);
      position: relative;
      flex: none;
    }

    .live-dot::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1px solid var(--green);
      animation: pulseRing 2.2s ease-out infinite;
    }

    @keyframes pulseRing {
      0% {
        transform: scale(.6);
        opacity: .9;
      }

      100% {
        transform: scale(1.8);
        opacity: 0;
      }
    }

    .sc-hero {
      max-width: 700px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--sky);
    }

    .eyebrow::before {
      content: "";
      width: 22px;
      height: 3px;
      border-radius: 2px;
      background: var(--red);
    }

    .sc-title {
      font-family: var(--font-display);
      font-weight: 800;
      margin: 0;
      font-size: clamp(2.8rem, 5.4vw, 5.2rem);
      line-height: .98;
      letter-spacing: -.055em;
    }

    .sc-title .outline {
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7);
    }

    .sc-title .grad {
      background: linear-gradient(90deg, #FC0404 0%, #F5B301 45%, #66A3E0 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: flow 8s linear infinite;
    }

    @keyframes flow {
      to {
        background-position: 200% 0;
      }
    }

    .sc-sub {
      margin: 22px 0 0;
      max-width: 48ch;
      color: var(--ink-soft);
      font-size: 1.02rem;
      line-height: 1.85;
    }

     /* ============================================================
       SECURE ACCESS TERMINAL
       The premium login-security posture panel that replaces the
       marketing route map. Reads as a real operations console:
       dense, precise, alive, and 100% login-relevant.
       ============================================================ */

    .sec-terminal {
      position: relative;
      margin-top: 34px;
      border-radius: 26px;
      padding: 20px 20px 16px;
      overflow: hidden;
      isolation: isolate;
      background:
        radial-gradient(circle 340px at 88% -10%, rgba(80, 160, 240, .22), transparent 68%),
        radial-gradient(circle 300px at 0% 110%, rgba(31, 160, 78, .16), transparent 68%),
        linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
      border: 1px solid var(--line);
      backdrop-filter: blur(18px) saturate(150%);
      -webkit-backdrop-filter: blur(18px) saturate(150%);
      box-shadow:
        0 40px 90px -36px rgba(0, 0, 0, .8),
        inset 0 1px 0 rgba(255, 255, 255, .16);
      animation: sctIn .9s var(--ease) both;
    }

    @keyframes sctIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }

    /* Signature top ribbon — matches the boarding-pass language */
    .sec-terminal::before {
      content: "";
      position: absolute;
      left: 0; right: 0; top: 0;
      height: 3px;
      z-index: 2;                       /* ← added */
      background: linear-gradient(90deg, var(--green), var(--sky), var(--gold), var(--red-bright));
      background-size: 200% 100%;
      animation: flow 7s linear infinite;
      border-radius: 26px 26px 0 0;     /* ← matches panel radius */
    }

    /* Faint tech grid inside the panel */
       /* Faint tech grid inside the panel */
    .sec-terminal::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;                /* was -1 */
      pointer-events: none;
      background-image:
        linear-gradient(rgba(160, 200, 245, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 200, 245, .05) 1px, transparent 1px);
      background-size: 44px 44px;
      -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 0%, #000 60%, transparent 100%);
      mask-image: radial-gradient(120% 100% at 50% 50%, #000 0%, #000 60%, transparent 100%);
      opacity: .8;
      border-radius: inherit;
    }

    /* Keep every real child of the panel above the grid layer */
    .sec-terminal > * {
      position: relative;
      z-index: 1;
    }

    /* ---------- Head row ---------- */
    .sct-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .sct-head-left {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .sct-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--sky);
      position: relative;
      flex: none;
      box-shadow: 0 0 0 4px rgba(102, 163, 224, .16);
      transition: background .4s var(--ease), box-shadow .4s var(--ease);
    }

    .sct-dot::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1px solid currentColor;
      animation: pulseRing 2.4s ease-out infinite;
      color: var(--sky);
    }

    .sct-dot.ok   { background: var(--mint);   box-shadow: 0 0 0 4px rgba(158, 231, 184, .18); }
    .sct-dot.ok::after   { color: var(--mint); }
    .sct-dot.warn { background: var(--gold);   box-shadow: 0 0 0 4px rgba(245, 179, 1, .18); }
    .sct-dot.warn::after { color: var(--gold); }
    .sct-dot.fail { background: var(--red-bright); box-shadow: 0 0 0 4px rgba(252, 4, 4, .18); }
    .sct-dot.fail::after { color: var(--red-bright); }

    .sct-head-label {
      font-family: var(--font-mono);
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .82);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sct-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 100px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--sky);
      background: rgba(102, 163, 224, .12);
      border: 1px solid rgba(102, 163, 224, .3);
      white-space: nowrap;
      flex: none;
      transition: all .45s var(--ease);
    }

    .sct-chip.ok   { color: var(--mint); background: rgba(158, 231, 184, .12); border-color: rgba(158, 231, 184, .34); }
    .sct-chip.warn { color: var(--gold); background: rgba(245, 179, 1, .12);  border-color: rgba(245, 179, 1, .34); }
    .sct-chip.fail { color: #FF9B9B;     background: rgba(252, 4, 4, .14);    border-color: rgba(252, 4, 4, .4); }

    /* ---------- Handshake wire ---------- */
    .sct-wire {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 14px 14px;
      margin-bottom: 18px;
      border-radius: 16px;
      background: rgba(0, 0, 0, .22);
      border: 1px solid rgba(255, 255, 255, .08);
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
    }

    .sct-node {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .78);
      white-space: nowrap;
    }

    .sct-node i {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      font-size: .95rem;
      background: rgba(255, 255, 255, .06);
      border: 1px solid rgba(255, 255, 255, .14);
      color: var(--sky);
      flex: none;
      transition: all .45s var(--spring);
    }

    .sct-node-org i {
      color: var(--mint);
      background: rgba(31, 160, 78, .14);
      border-color: rgba(158, 231, 184, .32);
      box-shadow: 0 0 14px -4px rgba(31, 160, 78, .6);
    }

    .sct-line {
      position: relative;
      height: 3px;
      border-radius: 3px;
      background: repeating-linear-gradient(
        90deg,
        rgba(102, 163, 224, .55) 0 8px,
        transparent 8px 16px
      );
      overflow: hidden;
    }

    /* Moving packet along the wire */
    .sct-packet {
      position: absolute;
      top: 50%;
      left: 0;
      width: 42px;
      height: 2px;
      transform: translateY(-50%);
      background: linear-gradient(90deg, transparent, var(--gold), #fff, var(--gold), transparent);
      border-radius: 3px;
      filter: drop-shadow(0 0 6px var(--gold));
      animation: sctPacket 2.4s linear infinite;
    }

    @keyframes sctPacket {
      0%   { left: -46px; opacity: 0; }
      15%  { opacity: 1; }
      85%  { opacity: 1; }
      100% { left: calc(100% + 6px); opacity: 0; }
    }

    /* Central lock pin */
    .sct-lock {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 22px;
      height: 22px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: .7rem;
      color: #fff;
      background: linear-gradient(145deg, var(--green), #0B6B30);
      border: 2px solid rgba(255, 255, 255, .28);
      box-shadow: 0 4px 12px -2px rgba(31, 160, 78, .75);
      z-index: 2;
    }

    /* ---------- Checks list ---------- */
    .sct-checks {
      list-style: none;
      padding: 0;
      margin: 0 0 16px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .sct-checks li {
      position: relative;
      display: grid;
      grid-template-columns: 34px 1fr 22px;
      align-items: center;
      gap: 12px;
      padding: 10px 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
    }

    .sct-checks li:hover {
      background: rgba(255, 255, 255, .04);
      border-color: rgba(255, 255, 255, .08);
      transform: translateX(2px);
    }

    .sct-check-ico {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      font-size: .95rem;
      color: var(--sky);
      background: rgba(102, 163, 224, .12);
      border: 1px solid rgba(102, 163, 224, .28);
      flex: none;
      transition: all .5s var(--spring);
    }

    .sct-check-text {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .sct-check-text strong {
      font-family: var(--font-display);
      font-size: .86rem;
      font-weight: 700;
      letter-spacing: -.005em;
      color: #fff;
      line-height: 1.2;
    }

    .sct-check-text small {
      font-size: .72rem;
      color: var(--ink-soft);
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: color .35s var(--ease);
    }

    /* State bubble on the right */
    .sct-check-state {
      position: relative;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, .06);
      border: 1.5px solid rgba(255, 255, 255, .14);
      flex: none;
      transition: all .45s var(--spring);
    }

    .sct-check-state::after {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .25);
      transition: all .35s var(--ease);
    }

    /* Pending: slow spinner */
    .sct-checks li.pending .sct-check-state {
      border-color: rgba(102, 163, 224, .45);
    }
    .sct-checks li.pending .sct-check-state::after {
      background: transparent;
      border: 2px solid rgba(102, 163, 224, .9);
      border-right-color: transparent;
      width: 12px;
      height: 12px;
      animation: sctSpin .9s linear infinite;
    }
    @keyframes sctSpin { to { transform: rotate(360deg); } }

    /* OK */
    .sct-checks li.ok .sct-check-ico {
      color: var(--mint);
      background: rgba(31, 160, 78, .16);
      border-color: rgba(158, 231, 184, .4);
      box-shadow: 0 0 14px -4px rgba(31, 160, 78, .65);
      transform: rotate(-4deg) scale(1.04);
    }
    .sct-checks li.ok .sct-check-state {
      background: linear-gradient(145deg, var(--green), #0B6B30);
      border-color: rgba(158, 231, 184, .55);
      box-shadow: 0 0 0 4px rgba(31, 160, 78, .16);
    }
    .sct-checks li.ok .sct-check-state::after {
      width: 6px;
      height: 11px;
      background: transparent;
      border: 2px solid #fff;
      border-top: 0;
      border-left: 0;
      border-radius: 0 0 2px 0;
      transform: rotate(45deg) translate(-1px, -1px);
    }
    .sct-checks li.ok .sct-check-text small {
      color: var(--mint);
    }

    /* Warn */
    .sct-checks li.warn .sct-check-ico {
      color: var(--gold);
      background: rgba(245, 179, 1, .14);
      border-color: rgba(245, 179, 1, .38);
      box-shadow: 0 0 14px -4px rgba(245, 179, 1, .55);
    }
    .sct-checks li.warn .sct-check-state {
      background: linear-gradient(145deg, var(--gold), #8A5300);
      border-color: rgba(245, 179, 1, .55);
      box-shadow: 0 0 0 4px rgba(245, 179, 1, .14);
    }
    .sct-checks li.warn .sct-check-state::after {
      content: "!";
      background: transparent;
      width: auto;
      height: auto;
      color: #fff;
      font-family: var(--font-body);
      font-weight: 900;
      font-size: 12px;
      line-height: 1;
    }
    .sct-checks li.warn .sct-check-text small {
      color: #FFD966;
    }

    /* Fail */
    .sct-checks li.fail .sct-check-ico {
      color: #FF9B9B;
      background: rgba(252, 4, 4, .16);
      border-color: rgba(252, 4, 4, .42);
      box-shadow: 0 0 14px -4px rgba(252, 4, 4, .6);
    }
    .sct-checks li.fail .sct-check-state {
      background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
      border-color: rgba(252, 4, 4, .5);
      box-shadow: 0 0 0 4px rgba(252, 4, 4, .16);
    }
    .sct-checks li.fail .sct-check-state::after {
      content: "×";
      background: transparent;
      width: auto;
      height: auto;
      color: #fff;
      font-weight: 900;
      font-size: 14px;
      line-height: 1;
    }
    .sct-checks li.fail .sct-check-text small {
      color: #FF9B9B;
    }

    /* ---------- Footer: signature + posture grade ---------- */
    .sct-foot {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 14px;
      padding-top: 14px;
      border-top: 1px dashed rgba(255, 255, 255, .14);
    }

    .sct-sig {
      min-width: 0;
    }

    .sct-sig-label,
    .sct-grade-label {
      display: block;
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-faint);
      margin-bottom: 5px;
    }

    .sct-sig code {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: .92rem;
      font-weight: 600;
      letter-spacing: .12em;
      color: #fff;
      padding: 5px 10px;
      border-radius: 8px;
      background: rgba(255, 255, 255, .05);
      border: 1px solid rgba(255, 255, 255, .1);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .sct-grade {
      text-align: right;
      flex: none;
    }

    .sct-grade-val {
      display: inline-block;
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -.04em;
      line-height: 1;
      color: #fff;
      transition: color .45s var(--ease);
    }

    .sct-grade-val.good { color: var(--mint); text-shadow: 0 0 18px rgba(158, 231, 184, .45); }
    .sct-grade-val.mid  { color: var(--gold); text-shadow: 0 0 18px rgba(245, 179, 1, .4); }
    .sct-grade-val.low  { color: #FF9B9B;     text-shadow: 0 0 18px rgba(252, 4, 4, .5); }

    /* ---------- Fine note ---------- */
    .sct-note {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 12px 2px 0;
      font-size: .68rem;
      color: var(--ink-faint);
      line-height: 1.5;
    }
    .sct-note .bi { color: var(--sky); font-size: .82rem; flex: none; }

    /* Re-verifying pulse — fires on window focus and on form submit */
    .sec-terminal.reverifying .sct-chip {
      animation: sctReverify 1.2s ease-in-out infinite;
    }
    @keyframes sctReverify {
      0%, 100% { opacity: 1; }
      50%      { opacity: .55; }
    }

    /* ============================================================
       SECURE ACCESS TERMINAL — RESPONSIVE
       ============================================================ */

    /* Tablet: tighter padding, keep grid */
    @media (max-width: 991.98px) {
      .sec-terminal { padding: 18px 18px 14px; border-radius: 22px; }
    }

    /* Small phones: re-stack the wire + shrink icons */
    @media (max-width: 575.98px) {
      .sec-terminal {
        padding: 16px 14px 12px;
        border-radius: 20px;
        margin-top: 26px;
      }
      .sct-head { gap: 8px; }
      .sct-head-label { font-size: 9.5px; letter-spacing: .16em; }
      .sct-chip { font-size: 9px; padding: 5px 9px; }
      .sct-wire {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 12px 10px;
      }
      .sct-node span { display: none; }
      .sct-node i { width: 26px; height: 26px; font-size: .85rem; }
      .sct-checks li { grid-template-columns: 30px 1fr 20px; gap: 10px; padding: 9px 8px; }
      .sct-check-ico { width: 30px; height: 30px; font-size: .85rem; border-radius: 9px; }
      .sct-check-text strong { font-size: .8rem; }
      .sct-check-text small { font-size: .68rem; }
      .sct-check-state { width: 20px; height: 20px; }
      .sct-sig code { font-size: .82rem; letter-spacing: .08em; padding: 4px 8px; }
      .sct-grade-val { font-size: 1.35rem; }
      .sct-sig-label, .sct-grade-label { font-size: 8px; letter-spacing: .18em; }
      .sct-note { font-size: .64rem; }
    }

        .sec-terminal.reverifying .sct-chip {
      animation: sctReverify 1.2s ease-in-out infinite;
    }
    @keyframes sctReverify {
      0%, 100% { opacity: 1; }
      50%      { opacity: .55; }
    }

    /* Tiny phones: collapse grid to 2 columns, hide grade label */
    @media (max-width: 380px) {
      .sec-terminal { padding: 14px 12px 10px; }
      .sct-foot { grid-template-columns: 1fr; gap: 10px; }
      .sct-grade { text-align: left; }
      .sct-check-text small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    }

    /* Reduced motion: freeze the aliveness, keep the info */
    @media (prefers-reduced-motion: reduce) {
      .sec-terminal,
      .sct-dot::after,
      .sct-packet,
      .sct-checks li.pending .sct-check-state::after,
      .sec-terminal::before {
        animation: none !important;
      }
      .sct-packet { left: 50%; opacity: .6; }
    }

    .sc-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .sc-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .sc-chips .chip i {
      color: var(--mint);
    }

    .sc-clock {
      font-family: var(--font-mono);
      font-size: .8rem;
      color: var(--ink-soft);
      letter-spacing: .08em;
    }

    .sc-clock b {
      color: #fff;
      font-weight: 600;
      font-size: 1.1rem;
      font-variant-numeric: tabular-nums;
    }

    /* ------------------------------------------------------------
       6. Gate section (right column) — login card
       ------------------------------------------------------------ */
    .gate {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(22px, 4vw, 56px) clamp(16px, 3vw, 44px);
    }

    .mobile-brand {
      display: none;
    }

    .tilt-wrap {
      width: 100%;
      max-width: 480px;
      perspective: 1400px;
    }

    .pass {
      position: relative;
      isolation: isolate;
      width: 100%;
      border-radius: 34px;
      overflow: hidden;
      padding: 0 0 6px;
      background:
        radial-gradient(circle 360px at 90% -10%, rgba(80, 160, 240, .22), transparent 70%),
        radial-gradient(circle 320px at 0% 110%, rgba(212, 4, 4, .20), transparent 70%),
        linear-gradient(165deg, rgba(14, 26, 70, .82) 0%, rgba(9, 17, 48, .9) 100%);
      backdrop-filter: blur(22px) saturate(150%);
      -webkit-backdrop-filter: blur(22px) saturate(150%);
      box-shadow:
        0 50px 120px -30px rgba(0, 0, 0, .8),
        0 18px 44px -16px rgba(5, 97, 201, .4),
        inset 0 1px 0 rgba(255, 255, 255, .16);
      transform-style: preserve-3d;
      will-change: transform;
      opacity: 0;
      transform: translateY(30px) scale(.97);
      animation: passIn 1s var(--ease) .15s forwards;
    }

    @keyframes passIn {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .pass::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1.5px;
      z-index: 3;
      pointer-events: none;
      background: conic-gradient(from var(--ang), #D40404, #F5B301, #0F73DB, #66A3E0, #D40404);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: spinAng 8s linear infinite;
      opacity: .85;
    }

    @keyframes spinAng {
      to {
        --ang: 360deg;
      }
    }

    .pass.shake {
      animation: shake .6s cubic-bezier(.36, .07, .19, .97);
    }

    @keyframes shake {

      10%,
      90% {
        transform: translateX(-2px);
      }

      20%,
      80% {
        transform: translateX(5px);
      }

      30%,
      50%,
      70% {
        transform: translateX(-9px);
      }

      40%,
      60% {
        transform: translateX(9px);
      }
    }

    .pass-sheen {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      mix-blend-mode: screen;
      opacity: .6;
      background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .10) 48%, transparent 60%);
      background-size: 260% 100%;
      animation: sweep 8s ease-in-out infinite;
    }

    @keyframes sweep {
      0% {
        background-position: 130% 0;
      }

      55%,
      100% {
        background-position: -130% 0;
      }
    }

    .pass>*:not(.pass-sheen) {
      position: relative;
      z-index: 2;
    }

    /* Header with logo replacing lock icon */
    .pass-head {
      padding: 34px 34px 24px;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .logo-orb {
      position: relative;
      width: 68px;
      height: 68px;
      flex: none;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 60%);
      border: 1px solid var(--line);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 34px -12px rgba(212, 4, 4, .6);
      overflow: hidden;
    }

    .logo-orb img {
      width: 80%;
      height: 80%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 10px rgba(212, 4, 4, .5));
    }

    .logo-orb .fb {
      display: none;
      font-size: 2rem;
      color: #fff;
      filter: drop-shadow(0 4px 10px rgba(212, 4, 4, .7));
    }

    .logo-orb.nologo img {
      display: none;
    }

    .logo-orb.nologo .fb {
      display: block;
    }

    .logo-orb::before {
      content: "";
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      background: conic-gradient(from var(--ang), transparent 0 55%, var(--gold) 80%, var(--red-bright) 100%);
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
      mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
      animation: spinAng 3.4s linear infinite;
      z-index: 2;
    }

    .logo-orb img,
    .logo-orb .fb {
      position: relative;
      z-index: 1;
    }

    .pass-title {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(1.8rem, 4vw, 2.3rem);
      letter-spacing: -.05em;
      line-height: 1.05;
    }

    .pass-title span {
      color: var(--gold);
    }

    .pass-sub {
      margin: 7px 0 0;
      font-size: .86rem;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    .perf {
      position: relative;
      margin: 0 0 6px;
      border-top: 2px dashed rgba(255, 255, 255, .2);
    }

    .perf::before,
    .perf::after {
      content: "";
      position: absolute;
      top: -12px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #070f2c;
      border: 1px solid rgba(255, 255, 255, .14);
    }

    .perf::before {
      left: -12px;
    }

    .perf::after {
      right: -12px;
    }

    .pass-body {
      padding: 22px 34px 26px;
    }

    /* Mode tabs */
    .seg {
      position: relative;
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding: 5px;
      border-radius: 100px;
      margin-bottom: 24px;
      background: rgba(255, 255, 255, .07);
      border: 1px solid var(--line);
    }

    .seg-glider {
      position: absolute;
      top: 5px;
      bottom: 5px;
      left: 5px;
      width: calc(50% - 5px);
      border-radius: 100px;
      z-index: 0;
      background: linear-gradient(140deg, #FC0404, #D40404 50%, #8C0404);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px -8px rgba(212, 4, 4, .7);
      transition: transform .55s var(--spring), background .4s;
    }

    .seg[data-mode="code"] .seg-glider {
      transform: translateX(100%);
      background: linear-gradient(140deg, #0F73DB, #0561C9 50%, #041C5C);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px -8px rgba(5, 97, 201, .8);
    }

    .seg button {
      position: relative;
      z-index: 1;
      border: 0;
      background: transparent;
      padding: 11px 10px;
      border-radius: 100px;
      font-weight: 700;
      font-size: .82rem;
      color: var(--ink-soft);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: color .3s;
    }

    .seg button[aria-selected="true"] {
      color: #fff;
    }

    .seg button i {
      font-size: .95rem;
    }

    .panel {
      display: none;
      animation: panelIn .55s var(--ease);
    }

    .panel.active {
      display: block;
    }

    @keyframes panelIn {
      from {
        opacity: 0;
        transform: translateY(14px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    /* ------------------------------------------------------------
       7. Form fields
       ------------------------------------------------------------ */
    .field {
      position: relative;
      margin-bottom: 8px;
    }

    .f-input {
      width: 100%;
      height: 64px;
      padding: 24px 56px 6px 64px;
      border-radius: 18px;
      outline: none;
      font-weight: 600;
      font-size: .98rem;
      letter-spacing: .01em;
      color: #fff;
      background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
      border: 1px solid var(--line);
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
      transition: border-color .35s, box-shadow .35s, background .35s;
      -webkit-appearance: none;
      appearance: none;
    }

    .f-input::placeholder {
      color: transparent;
    }

    .f-input:hover {
      border-color: rgba(255, 255, 255, .28);
    }

    .f-input:focus {
      border-color: var(--sky);
      background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
      box-shadow: 0 0 0 4px rgba(102, 163, 224, .2), 0 16px 34px -16px rgba(5, 97, 201, .6), inset 0 2px 10px rgba(0, 0, 0, .2);
    }

    .f-input:-webkit-autofill {
      -webkit-text-fill-color: #fff;
      -webkit-box-shadow: 0 0 0 100px #0e1a46 inset;
      caret-color: #fff;
    }

    .f-icon {
      position: absolute;
      left: 12px;
      top: 12px;
      width: 40px;
      height: 40px;
      border-radius: 13px;
      display: grid;
      place-items: center;
      font-size: 1.1rem;
      color: var(--sky);
      pointer-events: none;
      z-index: 2;
      background: rgba(102, 163, 224, .14);
      border: 1px solid rgba(102, 163, 224, .28);
      transition: all .45s var(--spring);
    }

    .field:focus-within .f-icon {
      background: linear-gradient(145deg, var(--blue-bright), var(--blue-dark));
      color: #fff;
      border-color: transparent;
      transform: rotate(-8deg) scale(1.06);
      box-shadow: 0 8px 18px -6px rgba(5, 97, 201, .8);
    }

    .f-label {
      position: absolute;
      left: 64px;
      top: 21px;
      margin: 0;
      pointer-events: none;
      z-index: 2;
      font-size: .92rem;
      font-weight: 500;
      color: var(--ink-faint);
      transform-origin: left top;
      transition: transform .35s var(--ease), color .3s, top .35s var(--ease);
    }

    .f-input:focus~.f-label,
    .f-input:not(:placeholder-shown)~.f-label {
      transform: translateY(-13px) scale(.74);
      color: var(--sky);
      font-family: var(--font-mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      font-weight: 600;
    }

    .f-state {
      position: absolute;
      right: 14px;
      top: 20px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--green);
      color: #fff;
      font-size: .8rem;
      transform: scale(0) rotate(-90deg);
      transition: transform .5s var(--spring);
      box-shadow: 0 0 0 4px rgba(31, 160, 78, .2);
    }

    .field.ok .f-state {
      transform: scale(1) rotate(0);
    }

    .f-lane {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 7px;
      height: 3px;
      border-radius: 3px;
      overflow: hidden;
      pointer-events: none;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .6s var(--ease);
      background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px);
      animation: laneMove .6s linear infinite;
      opacity: .9;
      filter: drop-shadow(0 0 4px rgba(245, 179, 1, .7));
    }

    @keyframes laneMove {
      to {
        background-position: 26px 0;
      }
    }

    .field:focus-within .f-lane {
      transform: scaleX(1);
    }

    .field.err .f-input {
      border-color: var(--red-bright);
      box-shadow: 0 0 0 4px rgba(252, 4, 4, .18), inset 0 2px 10px rgba(0, 0, 0, .25);
    }

    .field.err .f-icon {
      background: rgba(252, 4, 4, .18);
      color: #FF9B9B;
      border-color: rgba(252, 4, 4, .4);
    }

    .f-error {
      min-height: 0;
      margin: 0 0 6px 6px;
      font-size: .74rem;
      font-weight: 600;
      color: #FF9B9B;
      display: flex;
      align-items: center;
      gap: 6px;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: all .35s var(--ease);
    }

    .f-error.show {
      opacity: 1;
      max-height: 40px;
      margin-top: 6px;
      margin-bottom: 10px;
    }

    .f-hint {
      margin: 0 0 14px 6px;
      font-size: .72rem;
      color: var(--ink-faint);
    }

    /* ------------------------------------------------------------
       8. Password eye toggle
       ------------------------------------------------------------ */
    .eye-btn {
      position: absolute;
      right: 9px;
      top: 9px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid var(--line);
      z-index: 3;
      display: grid;
      place-items: center;
      padding: 0;
      color: #fff;
      overflow: visible;
      background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(0, 0, 0, .7);
      transition: transform .45s var(--spring), background .4s, border-color .4s, box-shadow .4s;
    }

    .eye-btn:hover {
      transform: scale(1.08);
      border-color: rgba(255, 255, 255, .4);
    }

    .eye-btn:active {
      transform: scale(.92);
    }

    .eye-btn.on {
      background: radial-gradient(circle at 30% 25%, rgba(255, 235, 170, .6), rgba(245, 179, 1, .28) 70%);
      border-color: rgba(245, 179, 1, .7);
      box-shadow: 0 0 0 4px rgba(245, 179, 1, .15), 0 10px 24px -8px rgba(245, 179, 1, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
    }

    .eye-svg {
      width: 24px;
      height: 24px;
      overflow: visible;
    }

    .eye-svg .shape {
      transform-box: fill-box;
      transform-origin: center;
      transform: scaleY(.1);
      transition: transform .5s var(--spring);
      fill: rgba(255, 255, 255, .12);
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linejoin: round;
    }

    .eye-btn.on .eye-svg .shape {
      transform: scaleY(1);
    }

    .eye-svg .pupil {
      fill: currentColor;
      opacity: 0;
      transform-box: fill-box;
      transform-origin: center;
      transition: opacity .3s .1s, transform .12s linear;
    }

    .eye-btn.on .eye-svg .pupil {
      opacity: 1;
    }

    .eye-svg .glint {
      fill: #fff;
      opacity: 0;
      transition: opacity .3s .15s;
    }

    .eye-btn.on .eye-svg .glint {
      opacity: .9;
    }

    .eye-svg .lashes {
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      opacity: 1;
      transition: opacity .25s;
    }

    .eye-btn.on .eye-svg .lashes {
      opacity: 0;
    }

    .eye-ring {
      position: absolute;
      inset: -5px;
      width: calc(100% + 10px);
      height: calc(100% + 10px);
      transform: rotate(-90deg);
      pointer-events: none;
      opacity: 0;
      transition: opacity .3s;
    }

    .eye-btn.on .eye-ring {
      opacity: 1;
    }

    .eye-ring circle {
      fill: none;
      stroke: var(--gold);
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-dasharray: 138.2;
      stroke-dashoffset: 0;
      filter: drop-shadow(0 0 4px rgba(245, 179, 1, .8));
    }

    .eye-btn.on .eye-ring circle {
      animation: ringDown var(--reveal-ms, 8s) linear forwards;
    }

    @keyframes ringDown {
      from {
        stroke-dashoffset: 0;
      }

      to {
        stroke-dashoffset: 138.2;
      }
    }

    .eye-burst {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .eye-burst i {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 5px;
      height: 5px;
      margin: -2.5px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 8px var(--gold);
      opacity: 0;
      animation: burst .7s var(--ease) forwards;
    }

    @keyframes burst {
      0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
      }

      100% {
        opacity: 0;
        transform: translate(var(--bx), var(--by)) scale(0);
      }
    }

    .eye-tip {
      position: absolute;
      right: 0;
      bottom: calc(100% + 10px);
      padding: 6px 10px;
      border-radius: 9px;
      white-space: nowrap;
      font-family: var(--font-mono);
      font-size: .62rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: #fff;
      background: #04102e;
      border: 1px solid var(--line);
      opacity: 0;
      transform: translateY(6px);
      transition: all .3s var(--ease);
      pointer-events: none;
    }

    .eye-btn:hover .eye-tip,
    .eye-btn:focus-visible .eye-tip {
      opacity: 1;
      transform: none;
    }

    .caps-warn {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px 6px;
      padding: 8px 12px;
      border-radius: 12px;
      width: fit-content;
      max-width: 100%;
      font-size: .74rem;
      font-weight: 700;
      color: #FFD966;
      background: rgba(245, 179, 1, .12);
      border: 1px solid rgba(245, 179, 1, .35);
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      margin-bottom: 0;
      transition: all .4s var(--ease);
    }

    .caps-warn.show {
      opacity: 1;
      max-height: 50px;
      margin-bottom: 12px;
    }

    /* ------------------------------------------------------------
       9. Switch, options row, and buttons
       ------------------------------------------------------------ */
    .opts {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin: 12px 0 22px;
    }

    .switch {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      font-size: .82rem;
      font-weight: 600;
      color: var(--ink-soft);
      user-select: none;
    }

    .switch input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .sw-track {
      position: relative;
      width: 56px;
      height: 32px;
      border-radius: 100px;
      flex: none;
      transition: all .45s var(--ease);
      background: rgba(255, 255, 255, .1);
      border: 1px solid var(--line);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
    }

    .sw-knob {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: .72rem;
      color: var(--blue-dark);
      background: linear-gradient(145deg, #fff, #cfd9ee);
      box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
      transition: transform .5s var(--spring);
    }

    .switch input:checked+.sw-track {
      background: linear-gradient(120deg, #1FA04E, #0F73DB);
      border-color: transparent;
      box-shadow: 0 0 0 4px rgba(31, 160, 78, .16), inset 0 2px 8px rgba(0, 0, 0, .2);
    }

    .switch input:checked+.sw-track .sw-knob {
      transform: translateX(24px) rotate(360deg);
      color: var(--green);
    }

    .switch input:focus-visible+.sw-track {
      outline: 3px solid var(--blue-bright);
      outline-offset: 3px;
    }

    .switch:hover .sw-track {
      border-color: rgba(255, 255, 255, .35);
    }

    .link-btn {
      position: relative;
      border: 0;
      background: none;
      padding: 4px 0;
      font-weight: 700;
      font-size: .82rem;
      color: var(--sky);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: color .3s, gap .3s;
    }

    .link-btn::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: 0;
      height: 2px;
      background: var(--gold);
      border-radius: 2px;
      transition: right .4s var(--ease);
    }

    .link-btn:hover {
      color: #fff;
      gap: 9px;
    }

    .link-btn:hover::after {
      right: 0;
    }

    .btn-x {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      width: 100%;
      min-height: 60px;
      border: 0;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 8px 8px 22px;
      font-weight: 800;
      font-size: .96rem;
      letter-spacing: .01em;
      color: #fff;
      text-align: left;
      transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .3s, opacity .3s;
      -webkit-tap-highlight-color: transparent;
    }

    .btn-x:disabled {
      cursor: not-allowed;
      opacity: .7;
    }

    .btn-primary-x {
      background: linear-gradient(115deg, #FC0404 0%, #D40404 38%, #8C0404 70%, #0561C9 140%);
      background-size: 160% 100%;
      background-position: 0 0;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        inset 0 -3px 0 rgba(0, 0, 0, .2),
        0 18px 36px -14px rgba(212, 4, 4, .75),
        0 4px 0 var(--red-deep);
    }

    .btn-primary-x::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .4) 48%, transparent 70%);
      transform: translateX(-140%);
      transition: transform .9s var(--ease);
    }

    .btn-primary-x:hover:not(:disabled) {
      transform: translateY(-3px);
      background-position: 100% 0;
      filter: saturate(1.1);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 26px 46px -14px rgba(212, 4, 4, .85), 0 6px 0 var(--red-deep);
    }

    .btn-primary-x:hover:not(:disabled)::before {
      transform: translateX(140%);
    }

    .btn-primary-x:active:not(:disabled) {
      transform: translateY(2px) scale(.99);
      box-shadow: inset 0 3px 8px rgba(0, 0, 0, .35), 0 1px 0 var(--red-deep);
    }

    .btn-blue-x {
      background: linear-gradient(115deg, #0F73DB, #0561C9 45%, #041C5C);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 18px 36px -14px rgba(5, 97, 201, .8), 0 4px 0 #031447;
    }

    .btn-blue-x::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .38) 48%, transparent 70%);
      transform: translateX(-140%);
      transition: transform .9s var(--ease);
    }

    .btn-blue-x:hover:not(:disabled) {
      transform: translateY(-3px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 26px 46px -14px rgba(5, 97, 201, .9), 0 6px 0 #031447;
    }

    .btn-blue-x:hover:not(:disabled)::before {
      transform: translateX(140%);
    }

    .btn-blue-x:active:not(:disabled) {
      transform: translateY(2px) scale(.99);
    }

    .bx-label {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      transition: opacity .3s, transform .4s var(--ease);
      min-width: 0;
    }

    .bx-label i {
      font-size: 1.15rem;
    }

    .bx-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .bx-cap {
      flex: none;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-size: 1.2rem;
      background: rgba(255, 255, 255, .2);
      border: 1px solid rgba(255, 255, 255, .3);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
      transition: transform .5s var(--spring), background .3s;
    }

    .btn-x:hover:not(:disabled) .bx-cap {
      transform: rotate(-45deg) scale(1.08);
      background: rgba(255, 255, 255, .3);
    }

    /* Shuttle loading track */
    .bx-road {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
      display: grid;
      align-items: center;
    }

    .bx-road::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 14px;
      height: 3px;
      background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 16px, transparent 16px 30px);
      animation: laneMove .35s linear infinite;
    }

    .bx-van {
      position: absolute;
      left: 0;
      bottom: 17px;
      width: 62px;
      height: 26px;
      animation: vanDrive 1.5s linear infinite;
      filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4));
    }

    @keyframes vanDrive {
      from {
        transform: translateX(-80px);
      }

      to {
        transform: translateX(520px);
      }
    }

    .bx-wheel {
      transform-box: fill-box;
      transform-origin: center;
      animation: spin .4s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .bx-status {
      position: absolute;
      left: 22px;
      top: 12px;
      font-family: var(--font-mono);
      font-size: .66rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .9);
    }

    .btn-x.loading {
      pointer-events: none;
    }

    .btn-x.loading .bx-label,
    .btn-x.loading .bx-cap {
      opacity: 0;
      transform: translateY(-8px);
    }

    .btn-x.loading .bx-road {
      opacity: 1;
    }

    .btn-x.done {
      pointer-events: none;
      background: linear-gradient(115deg, #1FA04E, #0B6B30);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 36px -14px rgba(31, 160, 78, .8), 0 4px 0 #064a21;
    }

    .ripple {
      position: absolute;
      border-radius: 50%;
      transform: scale(0);
      background: rgba(255, 255, 255, .45);
      animation: ripple .7s ease-out forwards;
      pointer-events: none;
      z-index: 0;
    }

    @keyframes ripple {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    /* Ghost / glass buttons with animated border */
    .btn-glass {
      position: relative;
      isolation: isolate;
      border: 0;
      min-height: 54px;
      border-radius: 16px;
      padding: 10px 14px;
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 700;
      font-size: .84rem;
      color: #fff;
      background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
      overflow: hidden;
      transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
    }

    .btn-glass::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1.2px;
      z-index: -1;
      background: conic-gradient(from var(--ang), rgba(255, 255, 255, .18) 0 40%, var(--sky) 55%, var(--gold) 70%, rgba(255, 255, 255, .18) 85%);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: spinAng 6s linear infinite;
      opacity: .8;
      transition: opacity .3s;
    }

    .btn-glass i {
      font-size: 1.15rem;
      color: var(--sky);
      transition: transform .45s var(--spring), color .3s;
    }

    .btn-glass:hover {
      transform: translateY(-3px);
      background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
      box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
    }

    .btn-glass:hover i {
      transform: rotate(-10deg) scale(1.15);
      color: var(--gold);
    }

    .btn-glass:active {
      transform: translateY(1px) scale(.98);
    }

    .alt-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 24px 0 18px;
      font-family: var(--font-mono);
      font-size: .64rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--ink-faint);
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    }

    /* OTP */
    .otp {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 9px;
      margin: 6px 0 12px;
    }

    .otp input {
      width: 100%;
      aspect-ratio: 1 / 1.18;
      min-width: 0;
      text-align: center;
      font-family: var(--font-mono);
      font-weight: 600;
      font-size: 1.5rem;
      border-radius: 15px;
      outline: none;
      color: #fff;
      padding: 0;
      background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
      border: 1px solid var(--line);
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, .3);
      transition: all .35s var(--spring);
      caret-color: var(--gold);
    }

    .otp input:focus {
      border-color: var(--sky);
      transform: translateY(-4px) scale(1.06);
      box-shadow: 0 0 0 4px rgba(102, 163, 224, .22), 0 14px 26px -12px rgba(5, 97, 201, .7);
    }

    .otp input.filled {
      border-color: rgba(158, 231, 184, .6);
      background: linear-gradient(160deg, rgba(31, 160, 78, .28), rgba(31, 160, 78, .08));
      animation: pop .4s var(--spring);
    }

    @keyframes pop {
      0% {
        transform: scale(.85);
      }

      100% {
        transform: scale(1);
      }
    }

    .otp.err input {
      border-color: var(--red-bright);
    }

    .code-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 22px;
      font-size: .78rem;
      color: var(--ink-faint);
    }

    .pass-foot {
      padding: 0 34px 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      font-size: .74rem;
      color: var(--ink-faint);
    }

    .pass-foot .sec {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .pass-foot .sec i {
      color: var(--mint);
    }

    .pass-foot a {
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .pass-notice {
      margin: 0 34px 22px;
      padding: 12px 14px;
      border-radius: 14px;
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: rgba(15, 115, 219, .14);
      border: 1px solid rgba(102, 163, 224, .3);
      font-size: .74rem;
      line-height: 1.6;
      color: #B9D8FF;
    }

    .pass-notice i {
      margin-top: 2px;
      flex: none;
    }

    .barcode {
      display: flex;
      gap: 2px;
      height: 22px;
      padding: 0 34px;
      margin: 0 0 18px;
      opacity: .3;
      overflow: hidden;
    }

    .barcode i {
      display: block;
      width: 2px;
      background: #fff;
    }

    .barcode i:nth-child(3n) {
      width: 4px;
    }

    .barcode i:nth-child(4n) {
      width: 1px;
    }

    /* ------------------------------------------------------------
       10. Overlays (recovery + success) & toasts
       ------------------------------------------------------------ */
    .overlay {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(3, 8, 24, .72);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .4s var(--ease), visibility .4s;
    }

    .overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .sheet {
      position: relative;
      width: 100%;
      max-width: 440px;
      border-radius: 30px;
      overflow: hidden;
      padding: 32px 30px 28px;
      background: linear-gradient(165deg, #0f1e4f 0%, #091130 100%);
      border: 1px solid var(--line);
      box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .14);
      transform: translateY(30px) scale(.95);
      transition: transform .6s var(--spring);
    }

    .overlay.open .sheet {
      transform: none;
    }

    .sheet::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 5px;
      background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
    }

    .sheet h2 {
      margin: 6px 0 8px;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.7rem;
      letter-spacing: -.045em;
    }

    .sheet p.lead {
      color: var(--ink-soft);
      font-size: .86rem;
      margin: 0 0 20px;
    }

    .sheet-close {
      position: absolute;
      right: 16px;
      top: 18px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: var(--glass);
      display: grid;
      place-items: center;
      transition: all .35s var(--spring);
    }

    .sheet-close:hover {
      background: var(--red);
      border-color: var(--red);
      transform: rotate(90deg);
    }

    .sheet .btn-x {
      margin-top: 10px;
    }

    .success-sheet {
      text-align: center;
      padding-top: 44px;
    }

    .check-ring {
      position: relative;
      width: 104px;
      height: 104px;
      margin: 0 auto 24px;
    }

    .check-ring svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .check-ring .c-bg {
      fill: rgba(31, 160, 78, .18);
      stroke: rgba(158, 231, 184, .35);
      stroke-width: 2;
    }

    .check-ring .c-arc {
      fill: none;
      stroke: var(--mint);
      stroke-width: 4;
      stroke-linecap: round;
      stroke-dasharray: 289;
      stroke-dashoffset: 289;
      transform: rotate(-90deg);
      transform-origin: center;
      filter: drop-shadow(0 0 8px rgba(158, 231, 184, .8));
    }

    .check-ring .c-tick {
      fill: none;
      stroke: #fff;
      stroke-width: 5;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 60;
      stroke-dashoffset: 60;
    }

    .overlay.open .check-ring .c-arc {
      animation: draw .9s var(--ease) .25s forwards;
    }

    .overlay.open .check-ring .c-tick {
      animation: draw .5s var(--ease) 1s forwards;
    }

    @keyframes draw {
      to {
        stroke-dashoffset: 0;
      }
    }

    .go-bar {
      height: 5px;
      border-radius: 5px;
      background: rgba(255, 255, 255, .1);
      overflow: hidden;
      margin: 20px 0 6px;
    }

    .go-bar i {
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--red), var(--gold), var(--blue-bright));
      border-radius: 5px;
    }

    .overlay.open .go-bar i {
      animation: goFill 2.2s linear forwards;
    }

    @keyframes goFill {
      to {
        width: 100%;
      }
    }

    .confetti {
      position: absolute;
      top: -12px;
      width: 8px;
      height: 14px;
      opacity: 0;
      animation: fall 2.6s ease-out forwards;
      pointer-events: none;
    }

    @keyframes fall {
      0% {
        opacity: 1;
        transform: translateY(-20px) rotate(0);
      }

      100% {
        opacity: 0;
        transform: translateY(520px) rotate(640deg);
      }
    }

    .toast-stack {
      position: fixed;
      top: 22px;
      right: 22px;
      z-index: 300;
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: min(380px, calc(100vw - 32px));
      pointer-events: none;
    }

    .toast {
      position: relative;
      overflow: hidden;
      pointer-events: auto;
      display: grid;
      grid-template-columns: 44px 1fr 28px;
      gap: 12px;
      align-items: center;
      padding: 14px 14px 14px 12px;
      border-radius: 20px;
      color: #fff;
      background: linear-gradient(150deg, rgba(20, 34, 86, .96), rgba(9, 17, 48, .97));
      border: 1px solid var(--line);
      box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
      opacity: 0;
      transform: translateX(120%) scale(.95);
      transition: transform .7s var(--spring), opacity .4s;
    }

    .toast.in {
      opacity: 1;
      transform: none;
    }

    .toast.out {
      opacity: 0;
      transform: translateX(120%) scale(.9);
      transition: all .45s ease;
    }

    .toast .t-ico {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-size: 1.2rem;
      background: linear-gradient(145deg, #1FA04E, #0B6B30);
      box-shadow: 0 8px 18px -6px rgba(31, 160, 78, .7);
    }

    .toast[data-v="info"] .t-ico {
      background: linear-gradient(145deg, #0F73DB, #041C5C);
      box-shadow: 0 8px 18px -6px rgba(5, 97, 201, .7);
    }

    .toast[data-v="warn"] .t-ico {
      background: linear-gradient(145deg, #F5B301, #8A5300);
      color: #2b1a00;
      box-shadow: 0 8px 18px -6px rgba(245, 179, 1, .7);
    }

    .toast[data-v="error"] .t-ico {
      background: linear-gradient(145deg, #FC0404, #540202);
      box-shadow: 0 8px 18px -6px rgba(212, 4, 4, .7);
    }

    .toast b {
      display: block;
      font-family: var(--font-mono);
      font-size: .62rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--ink-faint);
      font-weight: 600;
    }

    .toast span.m {
      display: block;
      font-size: .86rem;
      font-weight: 600;
      line-height: 1.45;
    }

    .toast .t-x {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 0;
      background: rgba(255, 255, 255, .08);
      display: grid;
      place-items: center;
      font-size: .8rem;
      transition: all .3s;
    }

    .toast .t-x:hover {
      background: var(--red);
      transform: rotate(90deg);
    }

    .toast .t-bar {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 3px;
      width: 100%;
      background: linear-gradient(90deg, var(--red), var(--gold), var(--blue-bright));
      transform-origin: left;
      animation: tbar var(--dur, 4.2s) linear forwards;
    }

    @keyframes tbar {
      to {
        transform: scaleX(0);
      }
    }

    /* ------------------------------------------------------------
       11. Responsive adjustments
       ------------------------------------------------------------ */
    @media (max-width: 991.98px) {
      .gate {
        align-items: flex-start;
        padding-top: 26px;
        padding-bottom: 36px;
      }

      .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto 20px;
      }

      .gate-inner {
        width: 100%;
        max-width: 480px;
      }
    }

    @media (min-width: 992px) {
      .gate-inner {
        width: 100%;
        display: flex;
        justify-content: center;
      }
    }

    @media (max-width: 575.98px) {
      .pass {
        border-radius: 28px;
      }

      .pass-head {
        padding: 26px 22px 18px;
        gap: 14px;
      }

      .logo-orb {
        width: 58px;
        height: 58px;
      }

      .logo-orb img {
        width: 82%;
        height: 82%;
      }

      .logo-orb .fb {
        font-size: 1.7rem;
      }

      .pass-body {
        padding: 18px 22px 22px;
      }

      .pass-foot {
        padding: 0 22px 22px;
      }

      .pass-notice {
        margin: 0 22px 18px;
      }

      .barcode {
        padding: 0 22px;
      }

      .f-input {
        height: 62px;
        padding-left: 60px;
      }

      .f-label {
        left: 60px;
      }

      .otp {
        gap: 6px;
      }

      .otp input {
        font-size: 1.2rem;
        border-radius: 12px;
      }

      .alt-grid {
        grid-template-columns: 1fr;
      }

      .toast-stack {
        top: auto;
        bottom: 14px;
        right: 16px;
        left: 16px;
        width: auto;
      }

      .sheet {
        padding: 28px 22px 24px;
      }
    }

    @media (max-width: 360px) {
      .bx-text {
        font-size: .88rem;
      }

      .seg button {
        font-size: .76rem;
      }

      .seg button i {
        display: none;
      }
    }

    @media (max-height: 640px) and (min-width: 992px) {

      .sc-sub {
        display: none;
      }

      .sec-terminal {
        margin-top: 20px;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
      }

      .pass {
        opacity: 1;
        transform: none;
      }

      .f-lane {
        animation: none;
      }
    }
 

   
    /* ==========================================================
       THE CELESTIAL COMPASS — CORE SHELL
       ========================================================== */
    .celestial-home {
      position: fixed;
      top: 26px;
      right: 30px;
      z-index: 500;
      width: 66px;
      height: 66px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      cursor: pointer;
      text-decoration: none;
      isolation: isolate;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      will-change: transform, filter;
      transform: translateZ(0);
      transition:
        transform .55s cubic-bezier(.34, 1.56, .64, 1),
        filter .55s cubic-bezier(.22, 1, .36, 1),
        top .4s cubic-bezier(.22, 1, .36, 1),
        right .4s cubic-bezier(.22, 1, .36, 1),
        width .4s cubic-bezier(.34, 1.56, .64, 1),
        height .4s cubic-bezier(.34, 1.56, .64, 1);
    }

    .celestial-home:hover {
      transform: scale(1.14) translateZ(0);
      filter:
        drop-shadow(0 0 30px rgba(245, 179, 1, .8))
        drop-shadow(0 0 64px rgba(212, 4, 4, .55))
        drop-shadow(0 0 100px rgba(15, 115, 219, .45));
    }

    .celestial-home:active {
      transform: scale(.9) translateZ(0);
      transition-duration: .12s;
    }

    .celestial-home:focus-visible {
      outline: 3px solid var(--blue-bright);
      outline-offset: 6px;
      border-radius: 50%;
    }

    /* ==========================================================
       ORBITAL RINGS — THREE LAYERS OF REALITY
       ========================================================== */
    .ch-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      pointer-events: none;
      transition: all .6s cubic-bezier(.34, 1.56, .64, 1);
    }

    .ch-ring-outer {
      inset: -12px;
      border: 2px dashed rgba(102, 163, 224, .55);
      animation: chOrbit 16s linear infinite;
      box-shadow:
        0 0 26px -4px rgba(102, 163, 224, .5),
        inset 0 0 26px -6px rgba(102, 163, 224, .28);
    }

    .ch-ring-mid {
      inset: -4px;
      border: 1.8px solid transparent;
      border-top-color: var(--gold);
      border-right-color: rgba(245, 179, 1, .3);
      border-bottom-color: var(--red-bright);
      border-left-color: rgba(252, 4, 4, .28);
      animation: chOrbit 9s linear infinite reverse;
      filter: drop-shadow(0 0 6px rgba(245, 179, 1, .5));
    }

    .ch-ring-inner {
      inset: 5px;
      border: 1.4px solid rgba(255, 255, 255, .22);
      border-top-color: rgba(158, 231, 184, .85);
      animation: chOrbit 6s linear infinite;
      box-shadow: 0 0 14px -3px rgba(158, 231, 184, .55);
    }

    .celestial-home:hover .ch-ring-outer {
      inset: -18px;
      border-color: rgba(245, 179, 1, .9);
      box-shadow:
        0 0 40px -2px rgba(245, 179, 1, .7),
        inset 0 0 40px -8px rgba(245, 179, 1, .4);
    }

    .celestial-home:hover .ch-ring-mid {
      inset: -8px;
      border-top-color: #fff;
      border-bottom-color: var(--gold);
      filter: drop-shadow(0 0 14px var(--gold));
    }

    .celestial-home:hover .ch-ring-inner {
      inset: 3px;
      border-top-color: #fff;
      box-shadow: 0 0 22px -2px rgba(255, 255, 255, .85);
    }

    @keyframes chOrbit {
      to { transform: rotate(360deg); }
    }

    /* ==========================================================
       THE SINGULARITY CORE — GLASS ORB + ICON
       ========================================================== */
    .ch-core {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      display: grid;
      place-items: center;
      overflow: hidden;
      background:
        radial-gradient(circle at 32% 26%,
          rgba(255, 255, 255, .42) 0%,
          rgba(255, 255, 255, .08) 40%,
          rgba(255, 255, 255, .02) 70%),
        linear-gradient(145deg,
          rgba(15, 115, 219, .55) 0%,
          rgba(4, 28, 92, .92) 55%,
          rgba(6, 13, 36, .98) 100%);
      border: 1.5px solid rgba(255, 255, 255, .22);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .5),
        inset 0 -8px 16px rgba(0, 0, 0, .45),
        0 12px 26px -10px rgba(0, 0, 0, .85),
        0 0 0 6px rgba(102, 163, 224, .08);
      transition: all .5s cubic-bezier(.34, 1.56, .64, 1);
    }

    .celestial-home:hover .ch-core {
      background:
        radial-gradient(circle at 32% 26%,
          rgba(255, 255, 255, .65) 0%,
          rgba(245, 179, 1, .18) 40%,
          rgba(212, 4, 4, .05) 70%),
        linear-gradient(145deg,
          rgba(252, 4, 4, .55) 0%,
          rgba(140, 4, 4, .85) 45%,
          rgba(6, 13, 36, .98) 100%);
      border-color: rgba(245, 179, 1, .75);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .7),
        inset 0 -10px 22px rgba(0, 0, 0, .5),
        0 18px 40px -12px rgba(212, 4, 4, .85),
        0 0 0 8px rgba(245, 179, 1, .12);
    }

    /* The icon — a house glyph that draws itself */
    .ch-icon {
      position: relative;
      z-index: 2;
      width: 30px;
      height: 30px;
      color: #fff;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
      transition: transform .6s cubic-bezier(.34, 1.56, .64, 1),
                  color .4s ease;
    }

    .ch-icon svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .ch-icon .ch-roof,
    .ch-icon .ch-base,
    .ch-icon .ch-door,
    .ch-icon .ch-window {
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
      transition: all .4s ease;
    }

    .ch-icon .ch-roof {
      stroke-dasharray: 30;
      stroke-dashoffset: 0;
    }

    .celestial-home:hover .ch-icon {
      transform: scale(1.12) rotate(-6deg);
      color: var(--gold);
    }

    .celestial-home:hover .ch-icon .ch-roof {
      animation: chDraw .9s ease forwards;
    }

    .celestial-home:hover .ch-icon .ch-door {
      fill: rgba(255, 255, 255, .28);
    }

    @keyframes chDraw {
      0% { stroke-dashoffset: 30; }
      100% { stroke-dashoffset: 0; }
    }

    /* ==========================================================
       PULSING AURA — HEARTBEAT
       ========================================================== */
    .ch-pulse {
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      border: 2px solid rgba(245, 179, 1, .55);
      pointer-events: none;
      animation: chPulse 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
    }

    .ch-pulse-2 {
      border-color: rgba(15, 115, 219, .55);
      animation-delay: 1.3s;
    }

    @keyframes chPulse {
      0% {
        transform: scale(.85);
        opacity: .9;
      }
      70% {
        opacity: 0;
      }
      100% {
        transform: scale(1.7);
        opacity: 0;
      }
    }

    /* ==========================================================
       PARTICLE HALO — 12 ORBITING SPARKS
       ========================================================== */
    .ch-halo {
      position: absolute;
      inset: -22px;
      border-radius: 50%;
      pointer-events: none;
      animation: chOrbit 22s linear infinite;
    }

    .ch-spark {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 4px;
      height: 4px;
      margin: -2px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(245, 179, 1, .6);
      opacity: .85;
      transform-origin: 0 0;
      transition: all .5s ease;
    }

    .ch-spark:nth-child(1)  { transform: rotate(0deg)   translate(34px) scale(1); }
    .ch-spark:nth-child(2)  { transform: rotate(30deg)  translate(34px) scale(.8); background: var(--sky); box-shadow: 0 0 10px var(--sky); }
    .ch-spark:nth-child(3)  { transform: rotate(60deg)  translate(34px) scale(1.1); background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }
    .ch-spark:nth-child(4)  { transform: rotate(90deg)  translate(34px) scale(.85); }
    .ch-spark:nth-child(5)  { transform: rotate(120deg) translate(34px) scale(1.05); background: var(--mint); box-shadow: 0 0 10px var(--mint); }
    .ch-spark:nth-child(6)  { transform: rotate(150deg) translate(34px) scale(.9); background: var(--sky); box-shadow: 0 0 10px var(--sky); }
    .ch-spark:nth-child(7)  { transform: rotate(180deg) translate(34px) scale(1.15); }
    .ch-spark:nth-child(8)  { transform: rotate(210deg) translate(34px) scale(.75); background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }
    .ch-spark:nth-child(9)  { transform: rotate(240deg) translate(34px) scale(1); }
    .ch-spark:nth-child(10) { transform: rotate(270deg) translate(34px) scale(.9); background: var(--sky); box-shadow: 0 0 10px var(--sky); }
    .ch-spark:nth-child(11) { transform: rotate(300deg) translate(34px) scale(1.1); background: var(--mint); box-shadow: 0 0 10px var(--mint); }
    .ch-spark:nth-child(12) { transform: rotate(330deg) translate(34px) scale(.8); background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }

    .celestial-home:hover .ch-halo {
      animation-duration: 6s;
    }

    .celestial-home:hover .ch-spark {
      transform: rotate(var(--r, 0deg)) translate(44px) scale(1.4);
      filter: brightness(1.6);
    }

    /* ==========================================================
       WARP-JUMP ON CLICK
       ========================================================== */
    .ch-warp {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      pointer-events: none;
      background: radial-gradient(circle,
        rgba(255, 255, 255, .9) 0%,
        rgba(245, 179, 1, .7) 30%,
        rgba(212, 4, 4, .5) 55%,
        transparent 80%);
      opacity: 0;
      transform: scale(0);
      z-index: 10;
      mix-blend-mode: screen;
    }

    .celestial-home.warping .ch-warp {
      animation: chWarp .75s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    @keyframes chWarp {
      0% {
        opacity: 1;
        transform: scale(.3);
      }
      60% {
        opacity: 1;
        transform: scale(2.4);
      }
      100% {
        opacity: 0;
        transform: scale(3.6);
      }
    }

    .celestial-home.warping .ch-core {
      transform: scale(1.35);
      filter: brightness(2);
    }

    /* ==========================================================
       LABEL TOOLTIP — "HOME"
       ========================================================== */
    .ch-label {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      padding: 7px 14px;
      border-radius: 100px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: #fff;
      white-space: nowrap;
      background: linear-gradient(140deg, rgba(15, 115, 219, .95), rgba(4, 28, 92, .98));
      border: 1px solid rgba(255, 255, 255, .18);
      box-shadow:
        0 10px 24px -8px rgba(0, 0, 0, .85),
        inset 0 1px 0 rgba(255, 255, 255, .2);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      opacity: 0;
      transform: translateY(-8px) scale(.9);
      transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
      pointer-events: none;
    }

    .ch-label::before {
      content: "";
      position: absolute;
      bottom: 100%;
      right: 26px;
      width: 8px;
      height: 8px;
      background: linear-gradient(140deg, rgba(15, 115, 219, .95), rgba(4, 28, 92, .98));
      border-left: 1px solid rgba(255, 255, 255, .18);
      border-top: 1px solid rgba(255, 255, 255, .18);
      transform: rotate(45deg) translateY(4px);
    }

    .celestial-home:hover .ch-label,
    .celestial-home:focus-visible .ch-label {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* ==========================================================
       RESPONSIVE — MOBILE / TABLET ADJUSTMENTS
       ========================================================== */
    @media (max-width: 991.98px) {
      .celestial-home {
        top: 18px;
        right: 18px;
        width: 58px;
        height: 58px;
      }
      .ch-icon {
        width: 26px;
        height: 26px;
      }
      .ch-ring-outer { inset: -9px; }
      .ch-halo { inset: -18px; }
      .ch-spark:nth-child(n) { transform: rotate(var(--r, 0deg)) translate(28px) scale(.9); }
      .celestial-home:hover .ch-spark { transform: rotate(var(--r, 0deg)) translate(36px) scale(1.2); }
      .ch-label {
        top: calc(100% + 10px);
        font-size: 9px;
        padding: 6px 11px;
      }
    }

    @media (max-width: 575.98px) {
      .celestial-home {
        top: 14px;
        right: 14px;
        width: 52px;
        height: 52px;
      }
      .ch-icon {
        width: 23px;
        height: 23px;
      }
      .ch-ring-outer { inset: -8px; }
      .ch-ring-mid { inset: -3px; }
      .ch-ring-inner { inset: 4px; }
      .ch-halo { inset: -14px; }
      .ch-spark:nth-child(n) { transform: rotate(var(--r, 0deg)) translate(24px) scale(.85); }
      .celestial-home:hover .ch-spark { transform: rotate(var(--r, 0deg)) translate(30px) scale(1.1); }
      .ch-label { display: none; }
    }

    @media (max-width: 360px) {
      .celestial-home {
        top: 10px;
        right: 10px;
        width: 46px;
        height: 46px;
      }
      .ch-icon {
        width: 20px;
        height: 20px;
      }
      .ch-halo { display: none; }
    }

    /* Respect reduced motion — no orbits, no pulses */
    @media (prefers-reduced-motion: reduce) {
      .ch-ring-outer,
      .ch-ring-mid,
      .ch-ring-inner,
      .ch-halo,
      .ch-pulse {
        animation: none !important;
      }
      .celestial-home,
      .ch-core,
      .ch-icon {
        transition: none !important;
      }
    }
 