:root {
      /* Color Base: Obsidian Space Black */
      --bg-obsidian: #08090C;
      --bg-elevated: #0E1117;
      --bg-capsule-dark: rgba(14, 17, 23, 0.72);

      /* Frosted Glassmorphism Tokens */
      --glass-surface: rgba(255, 255, 255, 0.045);
      --glass-surface-hover: rgba(255, 255, 255, 0.075);
      --glass-surface-active: rgba(255, 255, 255, 0.1);
      --glass-strong: rgba(255, 255, 255, 0.08);
      --glass-border: rgba(255, 255, 255, 0.09);
      --glass-border-strong: rgba(255, 255, 255, 0.16);
      --glass-specular-rim: rgba(255, 255, 255, 0.24);
      --glass-blur: blur(24px) saturate(160%);

      /* Matte White Ceramic Tokens */
      --ceramic-bg: #FFFFFF;
      --ceramic-bg-hover: #F4F6F9;
      --ceramic-cap-grad: linear-gradient(180deg, #FFFFFF 0%, #E6E9EF 52%, #C9CED8 100%);
      --ceramic-text: #08090C;
      --ceramic-shadow: 0 4px 18px rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.5);
      --ceramic-shadow-hover: 0 8px 26px rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.6);

      /* Typography & Hierarchy */
      --text-primary: #F8FAFC;
      --text-secondary: rgba(248, 250, 252, 0.66);
      --text-muted: rgba(248, 250, 252, 0.42);
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;

      /* Status & Telemetry Accents */
      --status-online: #34D399;
      --status-online-glow: rgba(52, 211, 153, 0.22);
      --status-warn: #FBBF24;
      --status-danger: #F87171;
      --status-danger-bg: rgba(248, 113, 113, 0.1);
      --status-tg: #38BDF8;

      /* Radii & Spacing */
      --radius-xs: 10px;
      --radius-sm: 14px;
      --radius-md: 20px;
      --radius-lg: 28px;
      --radius-pill: 9999px;

      /* Transitions */
      --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Mandatory [hidden] enforcement */
    [hidden] {
      display: none !important;
    }

    /* Reset & Global Setup */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      min-height: 100%;
      background-color: var(--bg-obsidian);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 15px;
      line-height: 1.5;
      font-weight: 500;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

    body {
      position: relative;
      background-image:
        radial-gradient(ellipse 80% 45% at 50% -10%, rgba(255, 255, 255, 0.09), transparent 70%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.035), transparent 45%),
        radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
      background-size: 100% 100%, 100% 100%, 20px 20px;
      background-position: center top, center top, 0 0;
      background-attachment: fixed;
      padding-bottom: 110px;
    }

    /* Ambient Top Silk Light Beam */
    body::before {
      content: "";
      position: fixed;
      top: -140px;
      left: 50%;
      transform: translateX(-50%);
      width: min(860px, 92vw);
      height: 280px;
      background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.02) 48%, transparent 75%);
      filter: blur(40px);
      pointer-events: none;
      z-index: 0;
    }

    /* App Shell Container */
    .app-container {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      padding: 20px 18px 48px;
    }

    @media (min-width: 768px) {
      .app-container {
        padding: 32px 28px 64px;
      }
    }

    .glass-card {
      position: relative;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.03) 100%);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-top: 1px solid var(--glass-specular-rim);
      border-radius: var(--radius-lg);
      box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
      overflow: hidden;
    }

    .glass-subcard {
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid var(--glass-border);
      border-top: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: var(--radius-md);
      padding: 18px;
      transition: border-color 0.25s var(--ease-spring), background 0.25s var(--ease-spring);
    }

    .glass-subcard:hover {
      border-color: rgba(255, 255, 255, 0.15);
      background: rgba(255, 255, 255, 0.05);
    }

    /* Technical Monospace Helpers */
    .mono-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .mono-value {
      font-family: var(--font-mono);
      letter-spacing: -0.02em;
    }

    /* Tactile Matte White Ceramic CTA Button */
    .btn-ceramic {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      min-height: 50px;
      padding: 13px 24px;
      background: var(--ceramic-bg);
      color: var(--ceramic-text);
      font-family: var(--font-sans);
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.01em;
      border: 1px solid rgba(255, 255, 255, 0.9);
      border-radius: var(--radius-pill);
      box-shadow: var(--ceramic-shadow);
      cursor: pointer;
      user-select: none;
      text-decoration: none;
      transition:
        transform 0.18s var(--ease-spring),
        box-shadow 0.22s var(--ease-spring),
        background-color 0.18s ease;
    }

    .btn-ceramic:hover {
      background: var(--ceramic-bg-hover);
      box-shadow: var(--ceramic-shadow-hover);
      transform: translateY(-1px);
    }

    .btn-ceramic:active {
      transform: scale(0.985);
      box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
    }

    .btn-ceramic:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    /* Secondary Frosted Glass Capsule Button */
    .btn-glass {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 10px 18px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 500;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-top: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: var(--radius-pill);
      cursor: pointer;
      user-select: none;
      text-decoration: none;
      transition:
        background 0.2s var(--ease-spring),
        border-color 0.2s var(--ease-spring),
        transform 0.16s var(--ease-spring),
        box-shadow 0.2s var(--ease-spring);
    }

    .btn-glass:hover {
      background: rgba(255, 255, 255, 0.095);
      border-color: rgba(255, 255, 255, 0.26);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 255, 255, 0.06);
    }

    .btn-glass:active {
      transform: scale(0.985);
    }

    /* Spinner inside buttons */
    .spinner {
      width: 18px;
      height: 18px;
      border: 2px solid rgba(8, 9, 12, 0.25);
      border-top-color: #08090C;
      border-radius: 50%;
      animation: spin 0.75s linear infinite;
      display: inline-block;
    }

    .spinner-light {
      width: 28px;
      height: 28px;
      border: 2.5px solid rgba(255, 255, 255, 0.14);
      border-top-color: #FFFFFF;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .hardware-capsule-stage {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 4px auto 22px;
      perspective: 900px;
    }

    .light-capsule-3d {
      position: relative;
      display: flex;
      align-items: center;
      width: 268px;
      height: 88px;
      border-radius: var(--radius-pill);
      filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.07));
      transition: transform 0.4s var(--ease-spring);
    }

    .light-capsule-3d:hover {
      transform: translateY(-2px) scale(1.015);
    }

    /* Left & Right Tactile Matte Ceramic End-Caps */
    .capsule-cap {
      position: relative;
      width: 48px;
      height: 88px;
      background: linear-gradient(180deg, #FFFFFF 0%, #EAEEF4 38%, #C4CAD4 82%, #9BA3B0 100%);
      z-index: 3;
      box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -6px 12px rgba(0, 0, 0, 0.28);
    }

    .capsule-cap.cap-left {
      border-radius: 40px 12px 12px 40px;
      border-right: 1px solid rgba(0, 0, 0, 0.22);
    }

    .capsule-cap.cap-right {
      border-radius: 12px 40px 40px 12px;
      border-left: 1px solid rgba(255, 255, 255, 0.65);
    }

    /* Frosted Glass Cylinder Chamber */
    .capsule-glass-tube {
      position: relative;
      flex: 1;
      height: 76px;
      margin: 0 -4px;
      background:
        linear-gradient(180deg,
          rgba(255, 255, 255, 0.34) 0%,
          rgba(255, 255, 255, 0.11) 18%,
          rgba(180, 195, 215, 0.14) 50%,
          rgba(255, 255, 255, 0.08) 82%,
          rgba(255, 255, 255, 0.24) 100%);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-top: 1.5px solid rgba(255, 255, 255, 0.65);
      border-bottom: 1px solid rgba(255, 255, 255, 0.28);
      box-shadow:
        inset 0 10px 18px rgba(255, 255, 255, 0.18),
        inset 0 -12px 20px rgba(0, 0, 0, 0.45),
        inset 12px 0 18px rgba(0, 0, 0, 0.35),
        inset -12px 0 18px rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      z-index: 2;
    }

    /* Internal Silk Plasma Wave inside the Glass Tube */
    .capsule-silk-wave {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 90% 34% at 50% 52%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.32) 45%, transparent 75%);
      filter: blur(5px);
      animation: silkPulse 4.5s ease-in-out infinite alternate;
    }

    .capsule-silk-filament {
      position: absolute;
      width: 120%;
      height: 16px;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 25%, #FFFFFF 50%, rgba(255,255,255,0.85) 75%, transparent 100%);
      filter: blur(3px);
      border-radius: 50%;
      transform: rotate(-3deg);
      opacity: 0.9;
    }

    @keyframes silkPulse {
      0% { transform: scaleY(0.88) scaleX(0.96); opacity: 0.78; }
      100% { transform: scaleY(1.12) scaleX(1.03); opacity: 1; }
    }

    /* Embossed Glass Decibel Grid «T» inside the Tube */
    .capsule-embossed-logo {
      position: relative;
      z-index: 4;
      width: 48px;
      height: 48px;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
    }

    .top-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 18px;
      margin-bottom: 28px;
      border-radius: var(--radius-pill);
      background: rgba(14, 17, 23, 0.68);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-top: 1px solid var(--glass-specular-rim);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    }

    .brand-cluster {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text-primary);
    }

    .brand-icon-box {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-top-color: rgba(255, 255, 255, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .brand-title-wrap {
      display: flex;
      flex-direction: column;
    }

    .brand-name {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.15;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .brand-sub {
      font-family: var(--font-mono);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-muted);
    }

    /* Header User Controls (#nav-user) */
    #nav-user {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .nav-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 12px;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 12.5px;
      color: var(--text-secondary);
      white-space: nowrap;
    }

    #user-email {
      max-width: 160px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #user-tg-badge {
      background: rgba(56, 189, 248, 0.1);
      border-color: rgba(56, 189, 248, 0.28);
      color: #7DD3FC;
      font-family: var(--font-mono);
      font-size: 11.5px;
    }

    #open-link-tg-modal-btn {
      height: 34px;
      padding: 0 12px;
      font-size: 12px;
      border-radius: var(--radius-pill);
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: #BAE6FD;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    #open-link-tg-modal-btn:hover {
      background: rgba(56, 189, 248, 0.22);
    }

    #user-balance {
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 600;
      color: var(--ceramic-text);
      background: var(--ceramic-bg);
      border-color: #FFFFFF;
      box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    }

    #logout-btn {
      height: 34px;
      padding: 0 13px;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-secondary);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    #logout-btn:hover {
      background: rgba(248, 113, 113, 0.12);
      border-color: rgba(248, 113, 113, 0.35);
      color: #FCA5A5;
    }

    #toast {
      position: fixed;
      top: 22px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      padding: 12px 22px;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.96);
      color: #08090C;
      font-family: var(--font-sans);
      font-size: 13.5px;
      font-weight: 600;
      box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.65),
        0 0 24px rgba(255, 255, 255, 0.25);
      border: 1px solid #FFFFFF;
      animation: toastSlideIn 0.28s var(--ease-spring);
      max-width: 90vw;
      text-align: center;
    }

    @keyframes toastSlideIn {
      from { opacity: 0; transform: translate(-50%, -14px) scale(0.95); }
      to { opacity: 1; transform: translate(-50%, 0) scale(1); }
    }

    #auth-view {
      max-width: 440px;
      margin: 12px auto 0;
    }

    .auth-card {
      padding: 30px 24px 28px;
    }

    @media (min-width: 480px) {
      .auth-card {
        padding: 36px 34px 32px;
      }
    }

    .auth-header-text {
      text-align: center;
      margin-bottom: 24px;
    }

    .auth-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 11px;
      border-radius: var(--radius-pill);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 12px;
      color: var(--text-secondary);
    }

    .auth-eyebrow-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #FFFFFF;
      box-shadow: 0 0 8px #FFFFFF;
    }

    .auth-title {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 6px;
    }

    .auth-subtitle {
      font-size: 13.5px;
      color: var(--text-secondary);
    }

    /* Segmented Capsule Switcher (Login / Register) */
    .segmented-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      padding: 4px;
      background: rgba(0, 0, 0, 0.42);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-pill);
      margin-bottom: 22px;
    }

    .seg-tab-btn {
      height: 40px;
      border: none;
      border-radius: var(--radius-pill);
      background: transparent;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.22s var(--ease-spring);
    }

    .seg-tab-btn.active {
      background: var(--ceramic-bg);
      color: var(--ceramic-text);
      box-shadow: 0 2px 12px rgba(255, 255, 255, 0.16);
    }

    /* Form Fields */
    .form-group {
      margin-bottom: 16px;
    }

    .form-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-secondary);
      margin-bottom: 7px;
      padding-left: 4px;
    }

    .input-capsule-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-capsule {
      width: 100%;
      height: 48px;
      padding: 0 16px;
      background: rgba(0, 0, 0, 0.38);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-top-color: rgba(255, 255, 255, 0.18);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 15px;
      font-weight: 500;
      outline: none;
      transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .input-capsule::placeholder {
      color: var(--text-muted);
    }

    .input-capsule:focus {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.45);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
    }

    #toggle-pwd-btn {
      position: absolute;
      right: 10px;
      height: 32px;
      padding: 0 10px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-secondary);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    #toggle-pwd-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text-primary);
    }

    /* Feedback Messages (#auth-error, #auth-success) */
    .feedback-box {
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      margin-bottom: 16px;
      line-height: 1.4;
    }

    #auth-error {
      background: rgba(248, 113, 113, 0.1);
      border: 1px solid rgba(248, 113, 113, 0.32);
      color: #FCA5A5;
    }

    #auth-success {
      background: rgba(52, 211, 153, 0.1);
      border: 1px solid rgba(52, 211, 153, 0.32);
      color: #6EE7B7;
    }

    .auth-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
    }

    /* Telegram QR Auth Container (#tg-auth-container) */
    #tg-auth-container {
      margin-top: 16px;
      padding: 20px;
      border-radius: var(--radius-md);
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.14);
      text-align: center;
    }

    .qr-ceramic-frame {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      margin: 14px auto;
      background: #FFFFFF;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.12);
      min-width: 184px;
      min-height: 184px;
      color: #08090C;
    }

    .dash-nav-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px;
      margin-bottom: 24px;
      background: rgba(14, 17, 23, 0.72);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-top: 1px solid var(--glass-specular-rim);
      border-radius: var(--radius-pill);
      overflow-x: auto;
    }

    .dash-tab {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 44px;
      padding: 0 18px;
      border: none;
      border-radius: var(--radius-pill);
      background: transparent;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.22s var(--ease-spring);
    }

    .dash-tab:hover:not(.active) {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.05);
    }

    .dash-tab.active {
      background: var(--ceramic-bg);
      color: var(--ceramic-text);
      box-shadow: var(--ceramic-shadow);
    }

    /* Dashboard Panels Visibility */
    .dash-panel {
      display: none;
      animation: panelFadeIn 0.28s var(--ease-spring);
    }

    .dash-panel.active {
      display: block;
    }

    @keyframes panelFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Preloader & Empty State */
    .state-box {
      padding: 56px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }

    /* Active Subscription Layout */
    .sub-hero-card {
      padding: 26px;
      margin-bottom: 18px;
    }

    .sub-top-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }

    .sub-title-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    #sub-tariff-name {
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
    }

    #sub-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      background: rgba(52, 211, 153, 0.12);
      border: 1px solid rgba(52, 211, 153, 0.35);
      color: #6EE7B7;
      font-family: var(--font-mono);
      font-size: 11.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      box-shadow: 0 0 20px var(--status-online-glow);
    }

    #sub-badge::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--status-online);
      box-shadow: 0 0 8px var(--status-online);
    }

    /* Telemetry Stats Grid */
    .telemetry-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      margin-bottom: 18px;
    }

    @media (min-width: 680px) {
      .telemetry-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .telemetry-label {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .telemetry-primary {
      font-family: var(--font-mono);
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.03em;
      margin-bottom: 4px;
    }

    .telemetry-meta {
      font-family: var(--font-mono);
      font-size: 11.5px;
      color: var(--text-secondary);
    }

    /* Progress Bar inside Traffic Card */
    .progress-track {
      width: 100%;
      height: 7px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-pill);
      overflow: hidden;
      margin-top: 10px;
    }

    #traffic-progress {
      height: 100%;
      background: linear-gradient(90deg, rgba(255,255,255,0.65), #FFFFFF);
      border-radius: var(--radius-pill);
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
      transition: width 0.4s var(--ease-spring);
    }

    /* Extra Devices Banner */
    .addon-device-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      padding: 16px 20px;
      border-radius: var(--radius-md);
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
      border: 1px solid rgba(255, 255, 255, 0.12);
      margin-top: 8px;
    }

    /* Connection Capsule Action Grid */
    .connect-card {
      padding: 26px;
      margin-bottom: 18px;
    }

    .connect-actions-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 16px;
    }

    @media (min-width: 640px) {
      .connect-actions-row {
        grid-template-columns: 1.5fr 1fr 1fr;
      }
    }

    /* Supported VPN Clients Grid */
    .clients-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 14px;
    }

    @media (min-width: 680px) {
      .clients-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .client-pill-link {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      padding: 14px 16px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid var(--glass-border);
      border-top-color: rgba(255, 255, 255, 0.16);
      color: var(--text-primary);
      text-decoration: none;
      transition: all 0.2s var(--ease-spring);
    }

    .client-pill-link:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.24);
      transform: translateY(-2px);
    }

    .client-pill-name {
      font-size: 14px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .client-pill-os {
      font-family: var(--font-mono);
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    .balance-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      padding: 22px 26px;
      margin-bottom: 18px;
    }

    #tariff-balance-val {
      font-family: var(--font-mono);
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .tariff-showcase-card {
      padding: 28px 26px;
      margin-bottom: 18px;
    }

    .chip-group {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin: 16px 0 22px;
    }

    .device-chip,
    .amount-chip {
      height: 48px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-top-color: rgba(255, 255, 255, 0.2);
      color: var(--text-primary);
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s var(--ease-spring);
    }

    .device-chip:hover,
    .amount-chip:hover {
      background: rgba(255, 255, 255, 0.09);
      border-color: rgba(255, 255, 255, 0.24);
    }

    .device-chip.active,
    .amount-chip.active {
      background: var(--ceramic-bg);
      color: var(--ceramic-text);
      border-color: #FFFFFF;
      box-shadow: var(--ceramic-shadow);
    }

    .amount-chips-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin: 14px 0 16px;
    }

    @media (min-width: 520px) {
      .amount-chips-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .price-display-box {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      padding: 18px 20px;
      border-radius: var(--radius-md);
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid var(--glass-border);
      margin-bottom: 20px;
    }

    #tariff-display-price {
      font-family: var(--font-mono);
      font-size: 32px;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    /* Payment Method Radio Cards */
    .pay-methods-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 14px 0 20px;
    }

    .pay-method-label {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.12);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .pay-method-label:hover {
      background: rgba(255, 255, 255, 0.075);
    }

    .pay-method-label input[type="radio"] {
      accent-color: #FFFFFF;
      width: 17px;
      height: 17px;
    }

    .ref-copy-row {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 16px;
    }

    @media (min-width: 540px) {
      .ref-copy-row {
        flex-direction: row;
      }
    }

    /* Modal Backdrop & Glass Dialog */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 5000;
      background: rgba(4, 5, 8, 0.78);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      animation: fadeIn 0.22s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-dialog {
      width: 100%;
      max-width: 440px;
      padding: 28px 24px;
      position: relative;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

    .modal-close-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: var(--text-secondary);
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .modal-close-btn:hover {
      background: rgba(255, 255, 255, 0.14);
      color: #FFFFFF;
    }

    .calc-summary-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 16px;
      border-radius: var(--radius-md);
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid var(--glass-border);
      margin: 16px 0 20px;
    }

    .calc-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13.5px;
    }

    /* Canvas Demo State Switcher Dock */
    .canvas-demo-dock {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9000;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: var(--radius-pill);
      background: rgba(14, 17, 23, 0.88);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-top-color: rgba(255, 255, 255, 0.35);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
      max-width: 96vw;
      overflow-x: auto;
    }

    .demo-dock-label {
      font-family: var(--font-mono);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      padding: 0 8px;
      white-space: nowrap;
    }

    .demo-dock-btn {
      height: 32px;
      padding: 0 12px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-secondary);
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.18s ease;
    }

    .demo-dock-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #FFFFFF;
    }

    .demo-dock-btn.active-demo {
      background: #FFFFFF;
      color: #08090C;
      border-color: #FFFFFF;
      font-weight: 700;
    }

    @media (max-width: 540px) {
      .top-header {
        border-radius: var(--radius-md);
        padding: 12px 14px;
      }
      .light-capsule-3d {
        width: 236px;
        height: 78px;
      }
      .capsule-cap {
        width: 42px;
        height: 78px;
      }
      .capsule-glass-tube {
        height: 66px;
      }
    }

/* Subscription Badge Variations */
#sub-badge.badge-expired {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
  box-shadow: none;
}
#sub-badge.badge-expired::before {
  background: var(--status-danger);
  box-shadow: 0 0 8px var(--status-danger);
}

/* Footer Styling */
.footer {
  width: 100%;
  max-width: 960px;
  margin: 32px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}
.footer-link:hover {
  color: #FFFFFF;
}

/* Tariff perks list */
.tariff-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}
.tariff-perks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.tariff-perks-list li strong {
  color: var(--text-primary);
}

/* Year Promo Card & Elements */
.year-promo-hero-card {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
}

.year-promo-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #34D399);
}

.promo-badge-fire {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-badge-tov {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.16);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-year-promo-highlight {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
  color: #08090C !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.32) !important;
}

.btn-year-promo-highlight:hover {
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.48) !important;
  transform: translateY(-2px);
}

.btn-ceramic-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-ceramic-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

button.client-pill-link {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.modal-platforms-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.modal-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.modal-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.modal-platform-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

/* ==========================================================================
   TOUR BUTTONS & LOCATIONS STYLING
   ========================================================================== */

.tour-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tour-header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.tour-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.tour-header-btn:hover .tour-q-badge {
  background: #FFFFFF;
  color: #08090C;
}

.btn-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-guide-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-guide-pill:hover .tour-q-badge {
  background: #FFFFFF;
  color: #08090C;
}

/* Locations chips styling */
.locations-chips-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.location-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.location-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.loc-flag {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.loc-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.loc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-tech {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.loc-ping {
  color: var(--status-online);
  font-size: 11px;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   DRIVER.JS v1.x THEME — Ceramic & Obsidian Glass Light Capsule
   ========================================================================== */

/* Active backdrop overlay */
.driver-overlay {
  transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Popover Card */
.driver-popover {
  background: rgba(14, 17, 23, 0.94) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-md, 20px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  color: var(--text-primary, #F8FAFC) !important;
  padding: 20px 22px !important;
  max-width: 380px !important;
  min-width: 290px !important;
  font-family: var(--font-sans) !important;
  z-index: 100000000 !important;
  box-sizing: border-box !important;
  animation: driver-popover-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes driver-popover-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button */
.driver-popover-close-btn {
  color: var(--text-muted, rgba(248, 250, 252, 0.45)) !important;
  font-size: 15px !important;
  top: 14px !important;
  right: 14px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-pill, 9999px) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  padding: 0 !important;
}

.driver-popover-close-btn:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05);
}

/* Title */
.driver-popover-title {
  font-family: var(--font-sans) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  color: #FFFFFF !important;
  margin: 0 0 8px 0 !important;
  padding-right: 28px !important;
}

/* Description */
.driver-popover-description {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  color: var(--text-secondary, rgba(248, 250, 252, 0.75)) !important;
  margin: 0 !important;
}

/* Footer layout */
.driver-popover-footer {
  margin-top: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

/* Progress text pill */
.driver-popover-progress-text {
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted, rgba(248, 250, 252, 0.55)) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-pill, 9999px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Navigation buttons wrap */
.driver-popover-navigation-btns {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Previous button */
.driver-popover-footer button.driver-popover-prev-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12)) !important;
  color: var(--text-secondary, rgba(248, 250, 252, 0.75)) !important;
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-pill, 9999px) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.driver-popover-footer button.driver-popover-prev-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* Next and Done buttons (Ceramic CTA) */
.driver-popover-footer button.driver-popover-next-btn {
  background: var(--ceramic-bg, #FFFFFF) !important;
  color: var(--ceramic-text, #08090C) !important;
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-pill, 9999px) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.driver-popover-footer button.driver-popover-next-btn:hover {
  background: var(--ceramic-bg-hover, #F4F6F9) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.32), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Popover Arrows matching Obsidian glass */
.driver-popover-arrow-side-left {
  border-left-color: rgba(14, 17, 23, 0.94) !important;
}
.driver-popover-arrow-side-right {
  border-right-color: rgba(14, 17, 23, 0.94) !important;
}
.driver-popover-arrow-side-top {
  border-top-color: rgba(14, 17, 23, 0.94) !important;
}
.driver-popover-arrow-side-bottom {
  border-bottom-color: rgba(14, 17, 23, 0.94) !important;
}

/* Highlighted stage styling */
.driver-active-element {
  outline: 2px solid rgba(255, 255, 255, 0.25) !important;
  outline-offset: 4px !important;
  border-radius: var(--radius-md) !important;
  transition: outline 0.2s ease !important;
}

/* Mobile & WebApp responsiveness (375px - 480px) */
@media (max-width: 480px) {
  .driver-popover {
    max-width: calc(100vw - 28px) !important;
    min-width: 260px !important;
    padding: 16px 18px !important;
    border-radius: var(--radius-sm, 14px) !important;
  }
  .driver-popover-title {
    font-size: 15.5px !important;
  }
  .driver-popover-description {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .driver-popover-footer {
    margin-top: 14px !important;
  }
  .driver-popover-footer button.driver-popover-next-btn,
  .driver-popover-footer button.driver-popover-prev-btn {
    padding: 6px 13px !important;
    font-size: 12px !important;
  }
  .locations-chips-row {
    grid-template-columns: 1fr;
  }
  .tour-btn-label {
    display: none;
  }
  .tour-header-btn {
    padding: 6px 9px;
  }
}


