   @import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

   :root {
       --surface: rgba(150, 180, 255, 0.05);
       --surface-hi: rgba(150, 180, 255, 0.12);
       --line: rgba(170, 200, 255, 0.15);
       --line-soft: rgba(170, 200, 255, 0.08);
       --gold: #FFD700;
       --gold-ink: #211A00;
       --text: #EEF2F9;
       --text-2: #A6B3CC;
       --text-3: #6B7A97;
       --green: #46C87D;
       --red: #F06A5E;
       --amber: #E8B33A;
       --blue: #5B8DEF;
   }

   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
   }

   body {
       font-family: 'Instrument Sans', -apple-system, sans-serif;
       background:
           radial-gradient(ellipse 120% 60% at 50% -10%, #0E1C3A, transparent 60%),
           radial-gradient(ellipse 80% 50% at 100% 110%, rgba(20, 38, 78, 0.6), transparent 65%),
           #050A16;
       background-attachment: fixed;
       color: var(--text);
       min-height: 100vh;
       padding: 44px 20px 80px;
       -webkit-font-smoothing: antialiased;
   }

   ::selection {
       background: var(--gold);
       color: #000;
   }

   .wrap {
       max-width: 640px;
       margin: 0 auto;
   }

   h1 {
       font-family: 'Bricolage Grotesque';
       font-size: 22px;
       font-weight: 800;
       letter-spacing: -0.02em;
   }

   .sub {
       font-family: 'JetBrains Mono', monospace;
       font-size: 11px;
       color: var(--text-3);
       letter-spacing: 0.06em;
       margin: 5px 0 26px;
   }

   .sec {
       font-family: 'JetBrains Mono', monospace;
       font-size: 10px;
       font-weight: 700;
       letter-spacing: 0.12em;
       color: var(--text-3);
       text-transform: uppercase;
       margin: 30px 0 12px;
   }

   /* ============================================================
       ALERT COMPONENT — Bootstrap .alert replacement
       Variants: .al-success  .al-error  .al-warning  .al-info
       ============================================================ */
   .al {
       position: relative;
       display: flex;
       align-items: flex-start;
       gap: 12px;
       background: rgba(10, 18, 36, 0.85);
       backdrop-filter: blur(16px);
       border: 1px solid var(--line-soft);
       border-radius: 13px;
       padding: 13px 40px 13px 14px;
       margin-bottom: 12px;
       box-shadow: 0 8px 26px -12px rgba(2, 8, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
       overflow: hidden;
       transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
   }

   .al.closing {
       opacity: 0;
       transform: translateX(12px);
       max-height: 0 !important;
       margin-bottom: 0;
       padding-top: 0;
       padding-bottom: 0;
   }

   /* colored edge + ambient tint per variant */
   .al::before {
       content: '';
       position: absolute;
       left: 0;
       top: 0;
       bottom: 0;
       width: 3px;
   }

   .al::after {
       content: '';
       position: absolute;
       inset: 0;
       pointer-events: none;
   }

   .al-success {
       border-color: rgba(70, 200, 125, 0.3);
   }

   .al-success::before {
       background: var(--green);
       box-shadow: 0 0 14px rgba(70, 200, 125, 0.7);
   }

   .al-success::after {
       background: linear-gradient(90deg, rgba(70, 200, 125, 0.08), transparent 45%);
   }

   .al-error {
       border-color: rgba(240, 106, 94, 0.32);
   }

   .al-error::before {
       background: var(--red);
       box-shadow: 0 0 14px rgba(240, 106, 94, 0.7);
   }

   .al-error::after {
       background: linear-gradient(90deg, rgba(240, 106, 94, 0.09), transparent 45%);
   }

   .al-warning {
       border-color: rgba(232, 179, 58, 0.32);
   }

   .al-warning::before {
       background: var(--amber);
       box-shadow: 0 0 14px rgba(232, 179, 58, 0.7);
   }

   .al-warning::after {
       background: linear-gradient(90deg, rgba(232, 179, 58, 0.08), transparent 45%);
   }

   .al-info {
       border-color: rgba(91, 141, 239, 0.32);
   }

   .al-info::before {
       background: var(--blue);
       box-shadow: 0 0 14px rgba(91, 141, 239, 0.7);
   }

   .al-info::after {
       background: linear-gradient(90deg, rgba(91, 141, 239, 0.09), transparent 45%);
   }

   .al-ic {
       width: 34px;
       height: 34px;
       border-radius: 10px;
       flex-shrink: 0;
       display: flex;
       align-items: center;
       justify-content: center;
       position: relative;
       z-index: 1;
   }

   .al-success .al-ic {
       background: rgba(70, 200, 125, 0.12);
       border: 1px solid rgba(70, 200, 125, 0.35);
   }

   .al-error .al-ic {
       background: rgba(240, 106, 94, 0.12);
       border: 1px solid rgba(240, 106, 94, 0.35);
   }

   .al-warning .al-ic {
       background: rgba(232, 179, 58, 0.12);
       border: 1px solid rgba(232, 179, 58, 0.35);
   }

   .al-info .al-ic {
       background: rgba(91, 141, 239, 0.12);
       border: 1px solid rgba(91, 141, 239, 0.35);
   }

   .al-ic svg {
       width: 17px;
       height: 17px;
       fill: none;
       stroke-width: 2;
       stroke-linecap: round;
       stroke-linejoin: round;
   }

   .al-success .al-ic svg {
       stroke: var(--green);
   }

   .al-error .al-ic svg {
       stroke: var(--red);
   }

   .al-warning .al-ic svg {
       stroke: var(--amber);
   }

   .al-info .al-ic svg {
       stroke: var(--blue);
   }

   .al-body {
       position: relative;
       z-index: 1;
       min-width: 0;
       padding-top: 1px;
   }

   .al-title {
       font-family: 'Bricolage Grotesque';
       font-size: 13.5px;
       font-weight: 700;
       letter-spacing: -0.01em;
       margin-bottom: 2px;
   }

   .al-msg {
       font-size: 12.5px;
       color: var(--text-2);
       line-height: 1.5;
   }

   .al-msg b {
       color: var(--text);
       font-weight: 600;
   }

   .al-msg a {
       font-weight: 700;
       text-decoration: none;
   }

   .al-success .al-msg a {
       color: var(--green);
   }

   .al-error .al-msg a {
       color: var(--red);
   }

   .al-warning .al-msg a {
       color: var(--amber);
   }

   .al-info .al-msg a {
       color: var(--blue);
   }

   .al-msg a:hover {
       text-decoration: underline;
       text-underline-offset: 2px;
   }

   .al-meta {
       font-family: 'JetBrains Mono', monospace;
       font-size: 9.5px;
       color: var(--text-3);
       margin-top: 5px;
       letter-spacing: 0.06em;
   }

   .al-x {
       position: absolute;
       top: 10px;
       right: 10px;
       z-index: 2;
       width: 26px;
       height: 26px;
       border-radius: 8px;
       border: none;
       background: none;
       color: var(--text-3);
       font-size: 13px;
       cursor: pointer;
       transition: 0.13s;
   }

   .al-x:hover {
       color: var(--text);
       background: var(--surface-hi);
   }

   /* slim variant — single line, for form-level / table-top notices */
   .al.slim {
       align-items: center;
       padding: 9px 40px 9px 12px;
       border-radius: 10px;
   }

   .al.slim .al-ic {
       width: 26px;
       height: 26px;
       border-radius: 8px;
   }

   .al.slim .al-ic svg {
       width: 14px;
       height: 14px;
   }

   .al.slim .al-msg {
       font-size: 12.5px;
   }

   /* demo buttons */
   .demo-btns {
       display: flex;
       gap: 8px;
       flex-wrap: wrap;
   }

   .dbtn {
       font-family: 'Bricolage Grotesque';
       font-weight: 800;
       font-size: 12.5px;
       border-radius: 11px;
       padding: 8px 15px;
       cursor: pointer;
       border: 1px solid var(--line);
       background: var(--surface);
       color: var(--text);
       transition: 0.15s;
   }

   .dbtn:hover {
       border-color: rgba(255, 215, 0, 0.28);
       color: var(--gold);
       transform: translateY(-1px);
   }

   /* toast versions (floating, auto-dismiss) */
   .toast-rack {
       position: fixed;
       bottom: 22px;
       right: 22px;
       z-index: 1000;
       display: flex;
       flex-direction: column;
       gap: 9px;
       width: min(340px, calc(100vw - 44px));
   }

   .toast-rack .al {
       margin: 0;
       box-shadow: 0 22px 60px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
       animation: toastIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
   }

   @keyframes toastIn {
       from {
           opacity: 0;
           transform: translateY(12px) scale(0.97);
       }
   }

   @media (prefers-reduced-motion: reduce) {
       * {
           transition: none !important;
           animation: none !important;
       }
   }

   button:focus-visible,
   a:focus-visible {
       outline: 2px solid var(--gold);
       outline-offset: 2px;
   }