@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      :root {
        --app-theme-bg: #000000;
        --app-theme-text: #00ff00;
        --app-theme-accent: #00ff00;
        --app-theme-panel: rgba(0, 32, 0, 0.88);
      }

      body,
      html {
        margin: 0;
        padding: 0;
        font-family: 'Share Tech Mono', monospace;
        background-color: var(--app-theme-bg);
        color: var(--app-theme-text);
        overflow-x: hidden;
        overflow-y: auto;
        height: 100%;
      }

      .mines-predictor {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        overflow-y: auto;
        padding: 10px 0;
      }

      #matrix {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--app-theme-bg);
        z-index: 1;
        pointer-events: none;
        contain: strict;
        /* Make matrix directly visible on desktop */
        opacity: 0.9;
      }

      #lock-screen,
      #setup-screen,
      #input-screen,
      #predicted-screen,
      #results-screen,
      #review-screen,
      #customization-screen,
      #clear-data-modal,
      #stats-screen,
      #about-screen,
      #recommendations-screen,
      #calculator-screen,
      #pro-settings-screen,
      #lockdown-setup-screen,
      #lucky-tiles-screen,
      #user-performance-screen {
        position: relative;
        z-index: 2;
        text-align: center;
        background-color: var(--app-theme-panel);
        padding: 20px;
        border-radius: 10px;
        color: var(--app-theme-text);
        max-width: 400px;
        margin: auto;
        box-shadow: 0 0 22px var(--app-theme-accent);
        border: 1px solid var(--app-theme-accent);
        animation: pulse 2s infinite alternate;
      }

      /* Wider panel + left-aligned copy (class also sets max-width; keep above matrix rain) */
      #user-performance-screen.user-performance-shell {
        max-width: min(520px, 96vw);
        text-align: left;
      }

      #lucky-tiles-screen {
        max-width: 420px;
        background: linear-gradient(135deg, rgba(20, 40, 0, 0.95), rgba(0, 30, 0, 0.9));
        border: 2px solid #ff0;
        box-shadow: 0 0 25px rgba(255, 255, 0, 0.6), 0 0 50px rgba(255, 200, 0, 0.3);
        animation: luckyPulse 1.5s ease-in-out infinite alternate;
      }
      @keyframes luckyPulse {
        from { box-shadow: 0 0 25px rgba(255, 255, 0, 0.6), 0 0 50px rgba(255, 200, 0, 0.3); border-color: #ff0; }
        to   { box-shadow: 0 0 40px rgba(255, 255, 0, 0.9), 0 0 70px rgba(255, 220, 0, 0.5); border-color: #ff8; }
      }
      .lucky-tiles-unified-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        max-width: 280px;
        margin: 12px auto;
      }
      .lucky-tiles-unified-grid .cell {
        aspect-ratio: 1;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 2px solid #0f0;
        background: rgba(0, 30, 0, 0.8);
        color: #0f0;
        font-weight: bold;
        font-size: 14px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
      }
      .lucky-tiles-unified-grid .cell:hover { background: rgba(0, 60, 0, 0.9); }
      .lucky-tiles-unified-grid .cell.is-lucky {
        background: linear-gradient(135deg, rgba(100, 120, 0, 0.95), rgba(70, 90, 0, 0.9));
        border: 2px solid #ff0;
        color: #ff0;
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.7), 0 0 30px rgba(255, 200, 0, 0.4), inset 0 0 20px rgba(255, 255, 0, 0.15);
        text-shadow: 0 0 8px #ff0, 0 0 16px #ff8, 0 0 24px rgba(255, 255, 0, 0.8);
        animation: luckyStarPulse 2s ease-in-out infinite;
        position: relative;
        overflow: hidden;
      }
      .lucky-tiles-unified-grid .cell.is-lucky::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
        animation: luckyStarShimmer 2.5s ease-in-out infinite;
      }
      @keyframes luckyStarPulse {
        0%, 100% { box-shadow: 0 0 15px rgba(255, 255, 0, 0.7), 0 0 30px rgba(255, 200, 0, 0.4), inset 0 0 20px rgba(255, 255, 0, 0.15); transform: scale(1); }
        50% { box-shadow: 0 0 25px rgba(255, 255, 0, 0.9), 0 0 45px rgba(255, 220, 0, 0.6), inset 0 0 25px rgba(255, 255, 0, 0.2); transform: scale(1.03); }
      }
      @keyframes luckyStarShimmer {
        0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
        50% { opacity: 1; }
        100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
      }
      .lucky-tiles-unified-grid .cell.is-lucky.selected { background: rgba(80, 20, 0, 0.95); border-color: #f00; color: #f00; box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); animation: none; }
      .lucky-tiles-unified-grid .cell.selected { background: #600; border-color: #f00; color: #f00; }
      @media (min-width: 400px) {
        .lucky-tiles-unified-grid { max-width: 320px; }
        .lucky-tiles-unified-grid .cell { min-height: 52px; min-width: 52px; font-size: 16px; }
      }

      #admin-dashboard {
        position: relative;
        z-index: 2;
        text-align: center;
        background-color: rgba(0, 20, 0, 0.8);
        padding: 20px;
        border-radius: 10px;
        color: #0f0;
        width: 100%;
        min-width: 280px;
        max-width: min(1100px, 96vw);
        margin: auto;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        border: 1px solid #0f0;
        animation: pulse 2s infinite alternate;
        overflow-y: auto; /* Enable vertical scrolling if content is too tall */
        max-height: 90vh; /* Maximum height of 90% of viewport height */
        padding-bottom: 28px;
        display: flex; /* Use flexbox for better content organization */
        flex-direction: column; /* Stack children vertically */
        justify-content: flex-start; /* Start from top */
        align-items: stretch; /* Stretch children to fill width */
      }

      @keyframes pulse {
        from {
          box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        }
        to {
          box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
        }
      }

      input,
      button,
      select {
        width: 100%;
        padding: 10px;
        margin: 5px 0;
        border: 1px solid #0f0;
        border-radius: 5px;
        background-color: rgba(0, 10, 0, 0.8);
        color: #0f0;
        font-family: 'Share Tech Mono', monospace;
        box-sizing: border-box;
        max-width: 192px; /* Approximately 2 inches wide */
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3), inset 0 0 8px rgba(0, 255, 0, 0.2);
        transition: all 0.3s ease;
      }

      input:focus,
      select:focus {
        outline: none;
        border-color: #0f0;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.7), inset 0 0 8px rgba(0, 255, 0, 0.5);
        background-color: rgba(0, 20, 0, 0.9);
      }

      input[type="number"] {
        text-align: center;
        width: 192px;
        color: #0f0;
        font-weight: bold;
        letter-spacing: 1px;
      }

      button {
        background-color: rgba(0, 40, 0, 0.9);
        cursor: pointer;
        transition: all 0.3s ease;
        max-width: 300px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
      }

      button:hover {
        background-color: rgba(0, 60, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
        text-shadow: 0 0 8px rgba(0, 255, 0, 1);
      }

      .grid {
        display: grid;
        grid-template-columns: repeat(5, 60px); /* Normal size for input rounds */
        gap: 5px; /* Normal gap */
        margin: 20px auto;
        justify-content: center;
      }

      .grid-item {
        width: 60px; /* Normal size for input rounds */
        height: 60px; /* Normal size for input rounds */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #020;
        color: #0f0;
        cursor: pointer;
        border-radius: 5px;
        border: 1px solid #0f0;
        transition: all 0.3s ease;
      }

      .grid-item:hover {
        background-color: #040;
        box-shadow: 0 0 10px #0f0;
      }

      .grid-item.selected {
        background-color: #cc0000;
        border-color: #ff0000;
        position: relative;
      }

      .grid-item.selected .tile-number {
        display: none;
      }

      /* Round input phase theming (subtle blend; returns to normal when no phase class) */
      #input-screen.phase-theme-silver {
        border-color: rgba(210, 228, 255, 0.85);
        box-shadow: 0 0 24px rgba(170, 205, 255, 0.42);
      }
      #input-screen.phase-theme-silver .grid-item {
        border-color: rgba(210, 228, 255, 0.9);
        color: #dcecff;
        background: rgba(8, 24, 48, 0.72);
      }
      #input-screen.phase-theme-silver .grid-item:hover {
        background: rgba(16, 36, 66, 0.86);
        box-shadow: 0 0 11px rgba(175, 210, 255, 0.75);
      }

      #input-screen.phase-theme-golden {
        border-color: rgba(255, 216, 120, 0.88);
        box-shadow: 0 0 24px rgba(255, 205, 90, 0.42);
      }
      #input-screen.phase-theme-golden .grid-item {
        border-color: rgba(255, 216, 120, 0.9);
        color: #ffe9a8;
        background: rgba(52, 36, 4, 0.72);
      }
      #input-screen.phase-theme-golden .grid-item:hover {
        background: rgba(78, 56, 8, 0.86);
        box-shadow: 0 0 11px rgba(255, 210, 100, 0.78);
      }

      #input-screen.phase-theme-special {
        border-color: rgba(220, 150, 255, 0.9);
        box-shadow: 0 0 24px rgba(210, 140, 255, 0.42);
      }
      #input-screen.phase-theme-special .grid-item {
        border-color: rgba(220, 150, 255, 0.9);
        color: #f6d8ff;
        background: rgba(40, 14, 56, 0.72);
      }
      #input-screen.phase-theme-special .grid-item:hover {
        background: rgba(58, 20, 82, 0.86);
        box-shadow: 0 0 11px rgba(220, 150, 255, 0.78);
      }

      .grid-item.selected::after {
        content: '💣';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        animation: mine-pulse 1.5s infinite;
      }

      @keyframes mine-pulse {
        0% { transform: translate(-50%, -50%) scale(0.9); }
        50% { transform: translate(-50%, -50%) scale(1.1); }
        100% { transform: translate(-50%, -50%) scale(0.9); }
      }

      .grid-item.safe {
        background-color: #0f0;
        border-color: #0f0;
        animation: pulse-glow 2s infinite;
        color: #000;
        font-weight: bold;
      }

      .grid-item.mine {
        background-color: #cc0000;
        border-color: #ff0000;
      }

      .grid-item.trap-tile {
        box-shadow: 0 0 12px rgba(255, 165, 0, 0.8);
        border-color: #ffa500;
        position: relative;
      }

      .grid-item.money-making-hint {
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.95), 0 0 28px rgba(255, 200, 0, 0.55), inset 0 0 12px rgba(255, 240, 180, 0.25);
        border-color: #ffd700 !important;
        color: #ffd700 !important;
        animation: pulse-glow 1.2s ease-in-out infinite;
        z-index: 2;
      }
      .grid-item.money-making-hint .tile-number {
        color: #ffd700 !important;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
      }
      .grid-item.money-making-hint-silver {
        box-shadow: 0 0 16px rgba(190, 210, 230, 0.95), 0 0 28px rgba(150, 180, 220, 0.6), inset 0 0 12px rgba(240, 248, 255, 0.35);
        border-color: #d9e7ff !important;
        color: #e6f2ff !important;
        clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
        animation: pulse-glow 1.15s ease-in-out infinite;
        z-index: 3;
      }
      .grid-item.money-making-hint-silver .tile-number {
        color: #eaf4ff !important;
        text-shadow: 0 0 10px rgba(220, 235, 255, 0.95);
        font-weight: bold;
      }
      .grid-item.money-making-hint-golden {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.95), 0 0 28px rgba(255, 180, 0, 0.6), inset 0 0 12px rgba(255, 250, 190, 0.3);
        border-color: #ffd700 !important;
        color: #fff2a8 !important;
        clip-path: polygon(50% 3%, 62% 35%, 97% 35%, 69% 57%, 80% 95%, 50% 72%, 20% 95%, 31% 57%, 3% 35%, 38% 35%);
        animation: pulse-glow 1.15s ease-in-out infinite;
        z-index: 3;
      }
      .grid-item.money-making-hint-golden .tile-number {
        color: #fff4b5 !important;
        text-shadow: 0 0 10px rgba(255, 220, 120, 0.95);
        font-weight: bold;
      }
      .grid-item.money-making-hint-special {
        box-shadow: 0 0 16px rgba(255, 130, 255, 0.95), 0 0 28px rgba(190, 90, 255, 0.62), inset 0 0 12px rgba(255, 215, 255, 0.35);
        border-color: #d999ff !important;
        color: #ffe6ff !important;
        clip-path: polygon(50% 3%, 95% 24%, 95% 76%, 50% 97%, 5% 76%, 5% 24%);
        animation: pulse-glow 1.12s ease-in-out infinite;
        z-index: 3;
      }
      .grid-item.money-making-hint-special .tile-number {
        color: #ffe7ff !important;
        text-shadow: 0 0 10px rgba(245, 190, 255, 0.95);
        font-weight: bold;
      }
      .grid-item.phase-used-tile {
        border-color: rgba(180, 200, 220, 0.65) !important;
        box-shadow: inset 0 0 0 2px rgba(165, 190, 220, 0.2), 0 0 8px rgba(140, 170, 210, 0.32);
        background-image: repeating-linear-gradient(
          135deg,
          rgba(120, 150, 180, 0.08) 0,
          rgba(120, 150, 180, 0.08) 4px,
          rgba(0, 0, 0, 0) 4px,
          rgba(0, 0, 0, 0) 8px
        );
      }
      .grid-item.phase-used-tile.phase-used-silver {
        border-color: #e6f2ff !important;
        box-shadow:
          inset 0 0 0 2px rgba(230, 242, 255, 0.35),
          0 0 10px rgba(214, 234, 255, 0.95),
          0 0 20px rgba(176, 210, 255, 0.85) !important;
      }
      .grid-item.phase-used-tile.phase-used-silver .tile-number {
        color: #eef7ff;
        text-shadow: 0 0 10px rgba(220, 236, 255, 0.95);
      }
      .grid-item.phase-used-tile.phase-used-golden {
        border-color: #ffd84a !important;
        box-shadow:
          inset 0 0 0 2px rgba(255, 226, 110, 0.34),
          0 0 10px rgba(255, 214, 82, 0.96),
          0 0 20px rgba(255, 176, 34, 0.86) !important;
      }
      .grid-item.phase-used-tile.phase-used-golden .tile-number {
        color: #fff0ba;
        text-shadow: 0 0 10px rgba(255, 220, 100, 0.96);
      }
      .grid-item.phase-used-tile.phase-used-special {
        border-color: #57cfff !important;
        box-shadow:
          inset 0 0 0 2px rgba(120, 225, 255, 0.33),
          0 0 10px rgba(84, 214, 255, 0.95),
          0 0 20px rgba(36, 168, 255, 0.86) !important;
      }
      .grid-item.phase-used-tile.phase-used-special .tile-number {
        color: #d7f6ff;
        text-shadow: 0 0 10px rgba(128, 228, 255, 0.96);
      }
      .grid-item.trap-tile::before {
        content: 'TRP';
        position: absolute;
        top: 2px;
        left: 3px;
        font-size: 10px;
        color: #ffa500;
        text-shadow: 0 0 6px rgba(255, 165, 0, 0.9);
      }

      /* Multi‑color blinking for SPECIAL SAFE GRID tiles (4+ consecutive mines) */
      @keyframes multi-safe-blink {
        0% {
          background-color: rgba(0, 255, 0, 0.35);
          border-color: #00ff7f;
          box-shadow: 0 0 10px #0f0, 0 0 18px rgba(0, 255, 0, 0.9);
          color: #e4ffb5;
        }
        25% {
          background-color: rgba(0, 255, 255, 0.35);
          border-color: #00ffff;
          box-shadow: 0 0 10px #0ff, 0 0 18px rgba(0, 255, 255, 0.9);
          color: #e0ffff;
        }
        50% {
          background-color: rgba(255, 255, 0, 0.35);
          border-color: #ffff00;
          box-shadow: 0 0 10px #ff0, 0 0 18px rgba(255, 255, 0, 0.9);
          color: #fffacd;
        }
        75% {
          background-color: rgba(255, 140, 0, 0.32);
          border-color: #ffa500;
          box-shadow: 0 0 10px #ffa500, 0 0 18px rgba(255, 165, 0, 0.9);
          color: #ffe4b5;
        }
        100% {
          background-color: rgba(0, 255, 0, 0.35);
          border-color: #00ff7f;
          box-shadow: 0 0 10px #0f0, 0 0 18px rgba(0, 255, 0, 0.9);
          color: #e4ffb5;
        }
      }

      .special-safe-tile {
        animation: multi-safe-blink 1.2s ease-in-out infinite;
      }

      @keyframes pulse-glow {
        0% {
          box-shadow: 0 0 5px #0f0;
        }
        50% {
          box-shadow: 0 0 20px #0f0, 0 0 30px #0f0;
        }
        100% {
          box-shadow: 0 0 5px #0f0;
        }
      }

      /* Full 5×5 “Money Time” spotlight when adaptive engine finds money-making tile */
      @keyframes money-bg-shift {
        0% { opacity: 0.45; filter: hue-rotate(0deg); }
        50% { opacity: 0.75; filter: hue-rotate(25deg); }
        100% { opacity: 0.45; filter: hue-rotate(0deg); }
      }
      @keyframes money-title-shimmer {
        0% { background-position: 0% 50%; }
        100% { background-position: 200% 50%; }
      }
      @keyframes money-cell-pulse {
        0%, 100% {
          transform: scale(1);
          box-shadow: 0 0 18px rgba(255, 215, 0, 0.85), 0 0 36px rgba(255, 200, 0, 0.5), inset 0 0 20px rgba(255, 255, 200, 0.15);
        }
        50% {
          transform: scale(1.06);
          box-shadow: 0 0 28px rgba(255, 240, 120, 1), 0 0 56px rgba(255, 180, 0, 0.75), inset 0 0 28px rgba(255, 255, 220, 0.35);
        }
      }
      @keyframes money-ring {
        0% { transform: scale(0.92); opacity: 0.9; }
        100% { transform: scale(1.35); opacity: 0; }
      }
      @keyframes money-spark {
        0%, 100% { opacity: 0.3; transform: translateY(0); }
        50% { opacity: 1; transform: translateY(-4px); }
      }
      /* Compact dock — does not cover the main mine grid so you can keep submitting rounds */
      /* Money time: same pattern as “marked tile reappeared” — full viewport, covers other UI, safe for taskbar/notch */
      .money-moment-fullscreen-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10100;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(16px, env(safe-area-inset-top, 0px))
          max(16px, env(safe-area-inset-right, 0px))
          max(20px, env(safe-area-inset-bottom, 16px))
          max(16px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
        background-color: rgba(0, 0, 0, 0.92);
        overflow: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        font-family: 'Share Tech Mono', monospace;
      }
      .money-moment-fullscreen-card {
        position: relative;
        width: 100%;
        max-width: 420px;
        max-height: min(92dvh, 640px);
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-radius: 14px;
        border: 2px solid rgba(255, 215, 0, 0.85);
        background: linear-gradient(165deg, rgba(25, 18, 0, 0.98) 0%, rgba(8, 6, 0, 0.99) 100%);
        box-shadow: 0 0 40px rgba(255, 200, 0, 0.45), 0 0 80px rgba(255, 140, 0, 0.2), inset 0 0 60px rgba(255, 215, 0, 0.06);
        overflow: hidden;
        margin: auto;
      }
      .money-moment-fullscreen-card.money-moment-modal {
        padding: 0;
      }
      .money-moment-fullscreen-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 16px 8px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
      .money-moment-fullscreen-footer {
        flex: 0 0 auto;
        padding: 12px 16px 16px;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, rgba(8, 6, 0, 0.98) 100%);
        border-top: 1px solid rgba(255, 215, 0, 0.35);
        position: relative;
        z-index: 4;
      }
      .money-moment-fullscreen-card .money-moment-head {
        margin-bottom: 8px;
      }
      .money-moment-fullscreen-card .money-moment-title {
        font-size: clamp(17px, 4.5vw, 24px);
        letter-spacing: 0.12em;
      }
      .money-moment-fullscreen-card .money-moment-sub {
        font-size: clamp(11px, 2.8vw, 13px);
      }
      .money-moment-fullscreen-card .money-moment-grid-wrap {
        margin-top: 10px;
      }
      .money-moment-fullscreen-card .money-moment-grid {
        width: 100%;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
        gap: 4px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
      .money-moment-fullscreen-card .money-moment-cell {
        font-size: clamp(8px, 2.2vw, 10px);
        border-radius: 5px;
      }
      .money-moment-fullscreen-card .money-moment-cell .mm-coord {
        font-size: clamp(9px, 2.4vw, 11px);
      }
      .money-moment-fullscreen-card .money-moment-cell .mm-num {
        font-size: clamp(7px, 2vw, 9px);
      }
      .money-moment-fullscreen-card .money-moment-cell.is-money::after {
        inset: -3px;
        border-radius: 8px;
      }
      .money-moment-btn--footer {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 12px 20px;
        min-height: 48px;
        font-size: clamp(13px, 3.2vw, 16px);
      }
      .money-moment-overlay-root {
        position: fixed;
        inset: 0;
        z-index: 25050;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        font-family: 'Share Tech Mono', monospace;
        background: radial-gradient(ellipse at 50% 30%, rgba(60, 45, 0, 0.55) 0%, rgba(0, 0, 0, 0.92) 55%, #000 100%);
        animation: money-bg-shift 4s ease-in-out infinite;
      }
      .money-moment-modal {
        position: relative;
        width: 100%;
        max-width: 420px;
        border-radius: 14px;
        border: 2px solid rgba(255, 215, 0, 0.85);
        background: linear-gradient(165deg, rgba(25, 18, 0, 0.98) 0%, rgba(8, 6, 0, 0.99) 100%);
        box-shadow: 0 0 40px rgba(255, 200, 0, 0.45), 0 0 80px rgba(255, 140, 0, 0.2), inset 0 0 60px rgba(255, 215, 0, 0.06);
        padding: 16px 16px 18px;
        overflow: hidden;
      }
      .money-moment-modal--silver {
        border-color: rgba(210, 228, 255, 0.95);
        background: linear-gradient(165deg, rgba(18, 26, 46, 0.98) 0%, rgba(8, 14, 28, 0.99) 100%);
        box-shadow: 0 0 42px rgba(170, 205, 255, 0.46), 0 0 88px rgba(120, 170, 240, 0.22), inset 0 0 60px rgba(220, 236, 255, 0.08);
      }
      .money-moment-modal--golden {
        border-color: rgba(255, 215, 0, 0.95);
        background: linear-gradient(165deg, rgba(38, 28, 2, 0.98) 0%, rgba(22, 16, 0, 0.99) 100%);
        box-shadow: 0 0 44px rgba(255, 205, 90, 0.46), 0 0 90px rgba(255, 165, 0, 0.24), inset 0 0 64px rgba(255, 220, 110, 0.08);
      }
      .money-moment-modal--special {
        border-color: rgba(220, 150, 255, 0.95);
        background: linear-gradient(165deg, rgba(30, 10, 42, 0.98) 0%, rgba(15, 6, 26, 0.99) 100%);
        box-shadow: 0 0 44px rgba(214, 140, 255, 0.46), 0 0 90px rgba(170, 110, 255, 0.24), inset 0 0 64px rgba(240, 180, 255, 0.08);
      }
      .money-moment-fullscreen-card.money-moment-modal--silver .money-moment-title {
        background: linear-gradient(90deg, #e8f0ff, #b8d4ff, #e8f0ff);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        filter: drop-shadow(0 0 10px rgba(180, 210, 255, 0.75));
      }
      .money-moment-fullscreen-card.money-moment-modal--golden .money-moment-title {
        filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.85));
      }
      .money-moment-fullscreen-card.money-moment-modal--special .money-moment-title {
        background: linear-gradient(90deg, #f3e0ff, #d9a8ff, #f3e0ff);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 0 12px rgba(220, 160, 255, 0.85));
      }
      .money-moment-modal::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 16px;
        background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 200, 0.12) 50%, transparent 70%);
        background-size: 200% 200%;
        animation: money-title-shimmer 2.8s linear infinite;
        pointer-events: none;
      }
      .money-moment-head {
        text-align: center;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
      }
      .money-moment-title {
        font-size: clamp(22px, 5vw, 28px);
        font-weight: bold;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #ffd700, #fff8dc, #ffae00, #ffd700);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: money-title-shimmer 2s linear infinite;
        text-shadow: 0 0 24px rgba(255, 200, 0, 0.5);
        filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.8));
      }
      .money-moment-sub {
        font-size: 12px;
        color: #c8f5c8;
        margin-top: 6px;
        line-height: 1.45;
      }
      .money-moment-grid-wrap {
        position: relative;
        z-index: 1;
        margin-top: 12px;
      }
      .money-moment-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 7px;
      }
      .money-moment-cell {
        aspect-ratio: 1;
        border-radius: 8px;
        border: 1px solid rgba(0, 80, 0, 0.55);
        background: rgba(0, 22, 0, 0.75);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #3a6;
        font-size: 10px;
        transition: border-color 0.2s, color 0.2s;
      }
      .money-moment-cell .mm-coord {
        font-weight: bold;
        font-size: 11px;
      }
      .money-moment-cell .mm-num {
        font-size: 9px;
        opacity: 0.75;
      }
      .money-moment-cell.is-money {
        position: relative;
        color: #1a1200;
        border-color: #ffd700;
        background: radial-gradient(circle at 40% 35%, #fffacd 0%, #ffd700 35%, #b8860b 90%);
        animation: money-cell-pulse 1.15s ease-in-out infinite;
        z-index: 2;
      }
      .money-moment-cell.is-money .mm-coord,
      .money-moment-cell.is-money .mm-num {
        color: #2a1f00;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
      }
      .money-moment-cell.is-money::after {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: 12px;
        border: 2px solid rgba(255, 230, 120, 0.9);
        animation: money-ring 1.6s ease-out infinite;
        pointer-events: none;
      }
      .money-moment-cell.is-money-secondary {
        position: relative;
        color: #022;
        border-color: #5ce1e6;
        background: radial-gradient(circle at 40% 35%, #e0ffff 0%, #20b2aa 38%, #0d5c5c 90%);
        animation: money-secondary-pulse 1.35s ease-in-out infinite;
        z-index: 2;
      }
      .money-moment-cell.is-money-secondary::after {
        content: '';
        position: absolute;
        inset: -6px;
        border-radius: 12px;
        border: 2px solid rgba(120, 240, 255, 0.95);
        animation: money-ring 1.8s ease-out infinite;
        pointer-events: none;
      }
      .money-moment-cell.is-money-secondary .mm-stack .tile-number {
        color: #033;
        text-shadow: 0 0 8px rgba(200, 255, 255, 0.7);
      }
      .money-moment-cell.is-money-silver {
        position: relative;
        color: #0b1a2d;
        border-color: #dbe9ff;
        background: radial-gradient(circle at 45% 30%, #f8fcff 0%, #c6dbff 40%, #7b94bf 92%);
        animation: money-secondary-pulse 1.2s ease-in-out infinite;
        clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
        z-index: 2;
      }
      .money-moment-cell.is-money-silver::after {
        content: '';
        position: absolute;
        inset: -6px;
        clip-path: polygon(25% 6%, 75% 6%, 96% 50%, 75% 94%, 25% 94%, 4% 50%);
        border: 2px solid rgba(230, 242, 255, 0.95);
        animation: money-ring 1.45s ease-out infinite;
        pointer-events: none;
      }
      .money-moment-cell.is-money-silver .mm-stack .tile-number {
        color: #112844;
        text-shadow: 0 0 9px rgba(255, 255, 255, 0.85);
      }
      .money-moment-cell.is-money-golden {
        position: relative;
        color: #2a1f00;
        border-color: #ffd700;
        background: radial-gradient(circle at 40% 35%, #fffacd 0%, #ffd700 35%, #b8860b 90%);
        clip-path: polygon(50% 3%, 62% 35%, 97% 35%, 69% 57%, 80% 95%, 50% 72%, 20% 95%, 31% 57%, 3% 35%, 38% 35%);
        animation: money-cell-pulse 1.05s ease-in-out infinite;
        z-index: 2;
      }
      .money-moment-cell.is-money-special {
        position: relative;
        color: #2a1038;
        border-color: #d999ff;
        background: radial-gradient(circle at 40% 35%, #ffe7ff 0%, #c77dff 42%, #6f2dbd 92%);
        clip-path: polygon(50% 3%, 95% 24%, 95% 76%, 50% 97%, 5% 76%, 5% 24%);
        animation: money-secondary-pulse 1.1s ease-in-out infinite;
        z-index: 2;
      }
      .money-moment-cell.is-picked-mine.is-money-secondary .mm-stack .tile-number {
        color: #2a0505;
      }
      .money-moment-cell.is-trigger {
        border-color: rgba(0, 255, 170, 0.65);
        color: #9f9;
        box-shadow: 0 0 10px rgba(0, 255, 150, 0.25);
      }
      .money-moment-cell.is-picked-mine {
        background: rgba(180, 0, 0, 0.55) !important;
        border-color: #f44 !important;
        color: #fcc !important;
        box-shadow: 0 0 8px rgba(255, 80, 80, 0.45);
      }
      .money-moment-fullscreen-card .money-moment-cell--clickable {
        cursor: pointer;
        user-select: none;
      }
      .money-moment-sparkles {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 3;
      }
      .money-moment-sparkles span {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #fff8dc;
        box-shadow: 0 0 8px #ffd700;
        animation: money-spark 1.2s ease-in-out infinite;
      }
      .money-moment-actions {
        margin-top: 14px;
        display: flex;
        justify-content: center;
        gap: 10px;
        position: relative;
        z-index: 1;
      }
      .money-moment-btn {
        padding: 8px 18px;
        border-radius: 999px;
        border: 1px solid #ffd700;
        background: rgba(40, 32, 0, 0.9);
        color: #ffd700;
        font-family: inherit;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }
      .money-moment-btn:hover {
        background: rgba(80, 64, 0, 0.95);
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
      }

      /* Money grid: same numbering style as main input grid (.tile-number) + bomb on picked mines */
      .money-moment-cell .mm-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        width: 100%;
        line-height: 1.1;
      }
      .money-moment-cell .mm-stack .tile-number {
        font-size: clamp(15px, 4.2vw, 22px);
        font-weight: bold;
        color: #0f0;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.45);
      }
      .money-moment-cell .mm-bomb {
        font-size: clamp(16px, 4.5vw, 22px);
        line-height: 1;
        margin-top: 2px;
        filter: drop-shadow(0 0 4px rgba(255, 80, 80, 0.9));
        animation: mm-bomb-pulse 1s ease-in-out infinite;
      }
      @keyframes mm-bomb-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.08); }
      }
      .money-moment-cell.is-money .mm-stack .tile-number {
        color: #2a1f00;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
      }
      .money-moment-cell.is-picked-mine .mm-stack .tile-number {
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.85);
      }
      .money-moment-cell.is-picked-mine.is-money .mm-stack .tile-number {
        color: #2a0505;
        text-shadow: 0 0 6px rgba(255, 200, 200, 0.4);
      }
      .money-moment-fullscreen-card .money-moment-grid {
        max-width: 300px;
        gap: 5px;
      }
      .money-moment-fullscreen-card .money-moment-cell .mm-stack .tile-number {
        font-size: clamp(13px, 3.6vw, 18px);
      }
      .money-moment-fullscreen-card .money-moment-cell .mm-bomb {
        font-size: clamp(14px, 3.8vw, 18px);
      }

      /* Rich win overlay when money tile is SAFE */
      .money-win-splash {
        position: absolute;
        inset: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 14px;
        box-sizing: border-box;
        background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(255, 230, 120, 0.35) 0%, rgba(40, 28, 0, 0.97) 45%, rgba(0, 0, 0, 0.98) 100%);
        border-radius: 12px;
        animation: money-win-fade-in 0.45s ease-out;
        overflow: hidden;
      }
      @keyframes money-win-fade-in {
        from { opacity: 0; transform: scale(0.96); }
        to { opacity: 1; transform: scale(1); }
      }
      .money-win-splash-confetti {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
      }
      .money-win-splash-confetti span {
        position: absolute;
        top: -12px;
        width: 8px;
        height: 12px;
        border-radius: 2px;
        opacity: 0.9;
        animation: money-confetti-fall 2.8s linear infinite;
      }
      @keyframes money-confetti-fall {
        0% { transform: translateY(0) rotate(0deg); opacity: 1; }
        100% { transform: translateY(420px) rotate(720deg); opacity: 0.3; }
      }
      .money-win-splash-inner {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 340px;
        padding: 20px 16px 22px;
        border-radius: 16px;
        border: 2px solid rgba(255, 215, 0, 0.95);
        background: linear-gradient(145deg, rgba(60, 45, 8, 0.98) 0%, rgba(15, 10, 0, 0.99) 50%, rgba(30, 22, 0, 0.98) 100%);
        box-shadow:
          0 0 0 1px rgba(255, 255, 200, 0.25),
          0 0 40px rgba(255, 200, 0, 0.55),
          0 0 80px rgba(255, 140, 0, 0.25),
          inset 0 0 40px rgba(255, 215, 0, 0.08);
        animation: money-win-card-glow 2.2s ease-in-out infinite alternate;
      }
      @keyframes money-win-card-glow {
        from {
          box-shadow:
            0 0 0 1px rgba(255, 255, 200, 0.25),
            0 0 36px rgba(255, 200, 0, 0.45),
            inset 0 0 36px rgba(255, 215, 0, 0.06);
        }
        to {
          box-shadow:
            0 0 0 2px rgba(255, 248, 180, 0.45),
            0 0 56px rgba(255, 220, 0, 0.75),
            0 0 100px rgba(255, 160, 0, 0.35),
            inset 0 0 48px rgba(255, 235, 150, 0.12);
        }
      }
      .money-win-splash-badge {
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1;
        margin-bottom: 8px;
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
        animation: money-win-trophy 1.2s ease-in-out infinite;
      }
      @keyframes money-win-trophy {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-4px) scale(1.05); }
      }
      .money-win-splash-title {
        font-size: clamp(18px, 5vw, 26px);
        font-weight: bold;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #fff8dc, #ffd700, #ffec80, #ffd700);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: money-title-shimmer 2.5s linear infinite;
        margin-bottom: 10px;
      }
      .money-win-splash-sub {
        color: #d8ffd8;
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.5;
        margin-bottom: 6px;
      }
      .money-win-splash-tile {
        color: #ff0;
        font-size: clamp(20px, 5.5vw, 28px);
        font-weight: bold;
        text-shadow: 0 0 20px rgba(255, 255, 0, 0.7);
        margin: 10px 0 14px;
      }
      .money-win-splash-btn {
        margin-top: 8px;
        padding: 12px 24px;
        border-radius: 999px;
        border: 2px solid #ffd700;
        background: linear-gradient(180deg, rgba(255, 200, 0, 0.35), rgba(80, 60, 0, 0.95));
        color: #fff;
        font-family: inherit;
        font-size: clamp(12px, 3vw, 14px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        cursor: pointer;
        box-shadow: 0 0 20px rgba(255, 200, 0, 0.45);
      }
      .money-win-splash-btn:hover {
        background: linear-gradient(180deg, rgba(255, 220, 80, 0.5), rgba(100, 75, 0, 0.98));
        box-shadow: 0 0 28px rgba(255, 220, 0, 0.65);
      }
      .money-win-splash-kicker {
        color: #fff8dc;
        font-size: clamp(13px, 3.4vw, 16px);
        font-weight: 700;
        letter-spacing: 0.06em;
        margin: 0 0 10px;
        text-shadow: 0 0 14px rgba(255, 220, 120, 0.55);
      }
      .money-win-splash.money-outcome-splash--silver {
        background: radial-gradient(ellipse 120% 80% at 50% 18%, rgba(200, 220, 255, 0.4) 0%, rgba(12, 20, 40, 0.97) 48%, rgba(0, 0, 0, 0.98) 100%);
      }
      .money-win-splash.money-outcome-splash--silver .money-win-splash-inner {
        border-color: rgba(200, 220, 255, 0.95);
        background: linear-gradient(145deg, rgba(28, 40, 62, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
        box-shadow: 0 0 44px rgba(160, 200, 255, 0.45), inset 0 0 40px rgba(200, 220, 255, 0.08);
      }
      .money-win-splash.money-outcome-splash--golden .money-win-splash-inner {
        border-color: rgba(255, 220, 100, 0.98);
      }
      .money-win-splash.money-outcome-splash--special {
        background: radial-gradient(ellipse 120% 80% at 50% 18%, rgba(240, 180, 255, 0.38) 0%, rgba(36, 12, 48, 0.96) 48%, rgba(0, 0, 0, 0.98) 100%);
      }
      .money-win-splash.money-outcome-splash--special .money-win-splash-inner {
        border-color: rgba(230, 160, 255, 0.95);
        background: linear-gradient(145deg, rgba(48, 18, 58, 0.98) 0%, rgba(12, 4, 22, 0.99) 100%);
        box-shadow: 0 0 48px rgba(210, 130, 255, 0.5), inset 0 0 44px rgba(240, 190, 255, 0.1);
      }
      .money-win-splash.money-outcome-splash--reappear {
        background: radial-gradient(ellipse 120% 80% at 50% 18%, rgba(120, 240, 255, 0.32) 0%, rgba(4, 32, 36, 0.96) 48%, rgba(0, 0, 0, 0.98) 100%);
      }
      .money-win-splash.money-outcome-splash--reappear .money-win-splash-inner {
        border-color: rgba(100, 230, 255, 0.9);
        background: linear-gradient(145deg, rgba(8, 42, 48, 0.98) 0%, rgba(2, 14, 18, 0.99) 100%);
      }
      .money-win-splash.money-outcome-splash--learned .money-win-splash-inner {
        border-color: rgba(150, 255, 190, 0.85);
        box-shadow: 0 0 40px rgba(100, 255, 160, 0.35), inset 0 0 36px rgba(180, 255, 210, 0.06);
      }
      .money-win-splash.money-outcome-splash--flow .money-win-splash-inner {
        border-color: rgba(255, 200, 120, 0.9);
      }

      /* Loss overlay — mine on money tile (must dismiss; no celebration) */
      .money-loss-splash {
        position: absolute;
        inset: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 14px;
        box-sizing: border-box;
        background: radial-gradient(ellipse 120% 80% at 50% 30%, rgba(180, 40, 40, 0.45) 0%, rgba(40, 8, 8, 0.97) 50%, rgba(0, 0, 0, 0.98) 100%);
        border-radius: 12px;
        animation: money-win-fade-in 0.4s ease-out;
        overflow: hidden;
      }
      .money-loss-splash-inner {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 340px;
        padding: 20px 16px 22px;
        border-radius: 16px;
        border: 2px solid rgba(255, 100, 100, 0.9);
        background: linear-gradient(145deg, rgba(50, 12, 12, 0.98) 0%, rgba(12, 4, 4, 0.99) 100%);
        box-shadow: 0 0 36px rgba(255, 80, 80, 0.35), inset 0 0 24px rgba(80, 0, 0, 0.2);
      }
      .money-loss-splash-title {
        font-size: clamp(17px, 4.8vw, 24px);
        font-weight: bold;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #ffb3b3;
        margin-bottom: 10px;
        text-shadow: 0 0 14px rgba(255, 80, 80, 0.6);
      }
      .money-loss-splash-sub {
        color: #fdd;
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.55;
        margin-bottom: 8px;
      }
      .money-loss-splash-tile {
        color: #ff6b6b;
        font-size: clamp(20px, 5.5vw, 28px);
        font-weight: bold;
        text-shadow: 0 0 16px rgba(255, 60, 60, 0.65);
        margin: 10px 0 14px;
      }
      .money-loss-splash-btn {
        margin-top: 8px;
        padding: 12px 24px;
        border-radius: 999px;
        border: 2px solid rgba(255, 120, 120, 0.85);
        background: linear-gradient(180deg, rgba(120, 30, 30, 0.6), rgba(30, 8, 8, 0.95));
        color: #fff;
        font-family: inherit;
        font-size: clamp(12px, 3vw, 14px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
      }
      .money-loss-splash-btn:hover {
        background: linear-gradient(180deg, rgba(160, 50, 50, 0.75), rgba(50, 12, 12, 0.98));
      }
      .money-loss-splash-kicker {
        color: #ffd6d6;
        font-size: clamp(12px, 3.2vw, 15px);
        font-weight: 700;
        letter-spacing: 0.05em;
        margin: 0 0 10px;
      }
      .money-loss-splash.money-outcome-splash--silver .money-loss-splash-inner {
        border-color: rgba(180, 200, 255, 0.85);
        background: linear-gradient(145deg, rgba(28, 22, 40, 0.98) 0%, rgba(8, 6, 18, 0.99) 100%);
      }
      .money-loss-splash.money-outcome-splash--special .money-loss-splash-inner {
        border-color: rgba(220, 140, 255, 0.88);
        background: linear-gradient(145deg, rgba(42, 14, 52, 0.98) 0%, rgba(10, 4, 16, 0.99) 100%);
      }
      .money-loss-splash.money-outcome-splash--reappear .money-loss-splash-inner {
        border-color: rgba(100, 220, 255, 0.85);
        background: linear-gradient(145deg, rgba(10, 36, 42, 0.98) 0%, rgba(4, 10, 14, 0.99) 100%);
      }
      .money-loss-splash.money-outcome-splash--learned .money-loss-splash-inner {
        border-color: rgba(140, 255, 180, 0.55);
      }

      .money-outcome-report {
        margin-top: 14px;
        padding: 12px 10px 10px;
        border-radius: 10px;
        border: 1px solid rgba(0, 200, 140, 0.35);
        background: rgba(0, 22, 18, 0.72);
      }
      .money-outcome-report-title {
        margin: 0 0 8px;
        font-size: clamp(12px, 3.1vw, 14px);
        color: #9ef5d8;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }
      .money-outcome-report-lead {
        margin: 0 0 10px;
        font-size: clamp(11px, 2.9vw, 13px);
        color: #d8fff0;
        line-height: 1.5;
      }
      .money-outcome-report-table {
        margin-bottom: 0;
      }
      .money-outcome-foot {
        margin: 10px 0 0;
        font-size: clamp(10px, 2.5vw, 11px);
        color: #7aa;
        line-height: 1.45;
      }
      tr.money-outcome-row-active td {
        background: rgba(0, 90, 60, 0.35);
      }

      .money-moment-modal--result-loss .money-moment-sparkles {
        display: none;
      }

      .money-intro-hero-tile--secondary {
        border-color: #5ce1e6 !important;
        background: radial-gradient(circle at 40% 35%, #e0ffff 0%, #20b2aa 45%, #0d5c5c 92%) !important;
        box-shadow: 0 0 28px rgba(80, 220, 255, 0.55) !important;
        color: #042a2a !important;
        animation: money-secondary-pulse 1.4s ease-in-out infinite;
      }
      .money-intro-hero-tile--silver {
        border-color: #dbe9ff !important;
        background: radial-gradient(circle at 45% 30%, #f8fcff 0%, #c6dbff 42%, #7b94bf 93%) !important;
        box-shadow: 0 0 30px rgba(180, 210, 255, 0.7) !important;
        color: #122844 !important;
        clip-path: polygon(25% 5%, 75% 5%, 96% 50%, 75% 95%, 25% 95%, 4% 50%);
        animation: money-secondary-pulse 1.25s ease-in-out infinite;
      }
      .money-intro-hero-tile--golden {
        clip-path: polygon(50% 3%, 62% 35%, 97% 35%, 69% 57%, 80% 95%, 50% 72%, 20% 95%, 31% 57%, 3% 35%, 38% 35%);
      }
      .money-intro-hero-tile--special {
        border-color: #d999ff !important;
        background: radial-gradient(circle at 40% 35%, #ffe7ff 0%, #c77dff 42%, #6f2dbd 92%) !important;
        box-shadow: 0 0 30px rgba(220, 150, 255, 0.72) !important;
        color: #2a1038 !important;
        clip-path: polygon(50% 3%, 95% 24%, 95% 76%, 50% 97%, 5% 76%, 5% 24%);
        animation: money-secondary-pulse 1.25s ease-in-out infinite;
      }
      @keyframes money-secondary-pulse {
        0%, 100% { box-shadow: 0 0 22px rgba(80, 220, 255, 0.45); }
        50% { box-shadow: 0 0 38px rgba(120, 240, 255, 0.75); }
      }

      .grid-item.money-making-hint-secondary {
        box-shadow: 0 0 14px rgba(80, 220, 255, 0.85), 0 0 26px rgba(0, 200, 220, 0.45), inset 0 0 12px rgba(180, 255, 255, 0.2);
        border-color: #5ce1e6 !important;
        color: #9ff !important;
        animation: pulse-glow 1.35s ease-in-out infinite;
        z-index: 2;
      }
      .grid-item.money-making-hint-secondary .tile-number {
        color: #bff !important;
        text-shadow: 0 0 10px rgba(100, 240, 255, 0.9);
      }

      /* Must-dismiss strategic alerts (GET READY, Money Time hints, etc.) */
      .attention-alert-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10150;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 16px));
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        font-family: 'Share Tech Mono', ui-monospace, monospace;
        animation: attention-alert-bg-in 0.22s ease-out;
        overflow-y: auto;
        overflow-x: hidden;
      }
      @keyframes attention-alert-bg-in {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      .attention-alert-card {
        --attention-accent: #ffcc00;
        width: 100%;
        max-width: 440px;
        max-height: min(88vh, 760px);
        border-radius: 18px;
        padding: clamp(14px, 3.6vw, 28px) clamp(12px, 3.2vw, 24px) clamp(14px, 3.2vw, 22px);
        text-align: center;
        color: #dfe;
        background: linear-gradient(165deg, rgba(18, 42, 22, 0.99) 0%, rgba(4, 14, 6, 0.99) 45%, rgba(8, 22, 10, 0.98) 100%);
        border: 2px solid var(--attention-accent);
        box-shadow:
          0 0 0 1px rgba(255, 255, 220, 0.18),
          0 0 60px rgba(255, 200, 0, 0.32),
          0 24px 48px rgba(0, 0, 0, 0.55),
          inset 0 1px 0 rgba(255, 255, 255, 0.06),
          inset 0 0 48px rgba(0, 60, 30, 0.25);
        animation: attention-alert-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        overflow-x: hidden;
      }
      .attention-alert-profile-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 auto 12px;
        padding: 5px 9px 5px 5px;
        border-radius: 999px;
        border: 1px solid rgba(190, 245, 255, 0.45);
        background: rgba(0, 45, 55, 0.55);
        color: #d9f7ff;
        font-size: 11px;
        letter-spacing: 0.06em;
      }
      .attention-alert-profile-chip img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(180, 240, 255, 0.75);
        box-shadow: 0 0 10px rgba(120, 220, 255, 0.45);
      }
      .phase-legend-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin: 6px auto 10px;
      }
      .phase-legend-chip {
        border: 1px solid rgba(130, 210, 230, 0.4);
        border-radius: 999px;
        padding: 4px 10px;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #b8d8dc;
        background: rgba(0, 26, 30, 0.72);
      }
      /* Phase badges stay compact; override global green button styles */
      .phase-legend-row button.phase-legend-chip {
        all: unset;
        box-sizing: border-box;
        display: inline-block;
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
        max-width: none;
        min-width: 0;
        width: auto;
        font: inherit;
        font-size: 11px;
        font-weight: normal;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-shadow: none;
        line-height: 1.35;
        cursor: pointer;
        border: 1px solid rgba(130, 210, 230, 0.4);
        border-radius: 999px;
        padding: 4px 10px;
        color: #b8d8dc;
        background: rgba(0, 26, 30, 0.72);
        transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
      }
      .phase-legend-row button.phase-legend-chip:hover {
        background: rgba(0, 26, 30, 0.72);
        border-color: rgba(180, 235, 255, 0.7);
        box-shadow: 0 0 10px rgba(120, 220, 255, 0.28);
        text-shadow: none;
        transform: none;
      }
      .phase-legend-row button.phase-legend-chip:active {
        background: rgba(0, 26, 30, 0.85);
        transform: none;
        box-shadow: 0 0 8px rgba(120, 220, 255, 0.22);
      }
      .phase-legend-row button.phase-legend-chip:focus-visible {
        outline: 1px solid rgba(160, 255, 255, 0.65);
        outline-offset: 2px;
      }
      .phase-legend-chip.is-active {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
      }
      .phase-legend-chip.phase-silver.is-active,
      .phase-legend-row button.phase-legend-chip.phase-silver.is-active {
        color: #eaf4ff;
        border-color: rgba(220, 236, 255, 0.85);
        box-shadow: 0 0 14px rgba(190, 215, 255, 0.45);
        background: rgba(0, 26, 30, 0.72);
        text-shadow: none;
      }
      .phase-legend-chip.phase-golden.is-active,
      .phase-legend-row button.phase-legend-chip.phase-golden.is-active {
        color: #fff0a8;
        border-color: rgba(255, 220, 110, 0.9);
        box-shadow: 0 0 14px rgba(255, 205, 80, 0.45);
        background: rgba(0, 26, 30, 0.72);
        text-shadow: none;
      }
      .phase-legend-chip.phase-special.is-active,
      .phase-legend-row button.phase-legend-chip.phase-special.is-active {
        color: #ffe0ff;
        border-color: rgba(220, 150, 255, 0.9);
        box-shadow: 0 0 14px rgba(210, 130, 255, 0.45);
        background: rgba(0, 26, 30, 0.72);
        text-shadow: none;
      }
      .phase-legend-row button.phase-legend-chip.is-active:hover {
        background: rgba(0, 26, 30, 0.72);
      }
      .phase3-trace-panel {
        margin: 4px auto 10px;
        max-width: 520px;
        border: 1px solid rgba(180, 130, 255, 0.5);
        border-radius: 8px;
        background: rgba(28, 10, 42, 0.62);
        color: #e9d9ff;
        font-size: 11px;
        line-height: 1.45;
        padding: 7px 10px;
        text-align: left;
      }
      .phase3-trace-panel strong {
        color: #ffd7ff;
      }
      @keyframes attention-alert-pop {
        from {
          opacity: 0;
          transform: scale(0.9) translateY(16px);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }
      .attention-alert-title {
        font-size: clamp(18px, 4.8vw, 24px);
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        line-height: 1.3;
        margin-bottom: 18px;
        background: linear-gradient(100deg, #fff8e0, var(--attention-accent), #fffacd, var(--attention-accent));
        background-size: 180% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 0 14px rgba(255, 200, 0, 0.45));
        animation: money-title-shimmer 3.5s linear infinite;
      }
      .attention-alert-body {
        font-size: clamp(14px, 3.5vw, 17px);
        line-height: 1.7;
        letter-spacing: 0.03em;
        color: #e8f5ec;
        text-align: left;
        margin-bottom: 22px;
        white-space: pre-line;
        word-break: break-word;
        padding: 16px 18px;
        border-radius: 12px;
        background: rgba(0, 48, 22, 0.45);
        border: 1px solid rgba(0, 255, 120, 0.18);
        box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
        max-height: min(34vh, 320px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      /* Mini 5x5 bet grid (yellow) for suggested tiles */
      .mini-bet-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        width: 100%;
        max-width: 190px;
        margin: 12px auto 14px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(25, 20, 0, 0.75);
        border: 1px solid rgba(255, 230, 120, 0.55);
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
      }
      .mini-bet-cell {
        height: 26px;
        border-radius: 6px;
        border: 1px solid rgba(255, 215, 0, 0.35);
        background: rgba(255, 215, 0, 0.08);
        color: rgba(255, 240, 170, 0.95);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.04em;
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
      }
      .mini-bet-cell.is-pick {
        background: rgba(255, 215, 0, 0.22);
        border-color: rgba(255, 235, 150, 0.9);
        color: #fff7c7;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.22);
      }
      .mini-bet-cell.is-primary {
        background: rgba(0, 255, 140, 0.22);
        border-color: rgba(80, 255, 190, 0.95);
        color: #eafff4;
        box-shadow: 0 0 12px rgba(0, 255, 140, 0.22);
      }
      .mini-bet-grid.tone-silver .mini-bet-cell.is-primary { background: rgba(92, 225, 230, 0.22); border-color: rgba(160, 255, 255, 0.95); }
      .mini-bet-grid.tone-golden .mini-bet-cell.is-primary { background: rgba(255, 215, 0, 0.28); border-color: rgba(255, 235, 150, 0.98); }
      .mini-bet-grid.tone-special .mini-bet-cell.is-primary { background: rgba(200, 120, 255, 0.22); border-color: rgba(230, 190, 255, 0.95); }
      .mini-bet-grid.tone-learned .mini-bet-cell.is-primary { background: rgba(102, 204, 255, 0.22); border-color: rgba(180, 235, 255, 0.95); }
      .attention-alert-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 14px 22px;
        border-radius: 999px;
        border: 2px solid var(--attention-accent);
        background: rgba(25, 45, 22, 0.96);
        color: #fff;
        font-family: inherit;
        font-size: clamp(13px, 3.2vw, 16px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        cursor: pointer;
        box-shadow: 0 0 22px rgba(255, 200, 0, 0.22);
      }
      .attention-alert-btn:hover {
        background: rgba(40, 72, 35, 0.98);
        box-shadow: 0 0 32px rgba(255, 220, 0, 0.42);
      }

      @media (max-width: 640px), (max-height: 760px) {
        .attention-alert-backdrop {
          align-items: flex-start;
          padding-top: max(10px, env(safe-area-inset-top, 0px));
          padding-bottom: max(12px, env(safe-area-inset-bottom, 10px));
        }
        .attention-alert-card {
          max-width: min(96vw, 440px);
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          border-radius: 14px;
        }
        .attention-alert-title {
          margin-bottom: 12px;
          letter-spacing: 0.07em;
        }
        .attention-alert-body {
          margin-bottom: 14px;
          padding: 10px 11px;
          line-height: 1.55;
          max-height: min(38vh, 280px);
        }
        .mini-bet-grid {
          max-width: min(72vw, 180px);
          margin: 8px auto 10px;
          padding: 6px;
          gap: 1px;
        }
        .mini-bet-cell {
          height: 22px;
          font-size: 10px;
        }
        .attention-alert-btn {
          padding: 11px 16px;
          max-width: 240px;
        }
      }

      /* Money Time: step before mine grid — must acknowledge */
      .money-mine-gate-layer {
        position: absolute;
        inset: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 12px;
        animation: attention-alert-bg-in 0.2s ease-out;
      }
      .money-mine-gate-card {
        width: 100%;
        max-width: 560px;
        min-width: min(92vw, 420px);
        max-height: min(88vh, 760px);
        padding: 30px 26px 24px;
        border-radius: 16px;
        border: 2px solid rgba(255, 215, 0, 0.9);
        background: linear-gradient(160deg, rgba(20, 38, 18, 0.98), rgba(0, 12, 0, 0.99));
        box-shadow: 0 0 40px rgba(255, 200, 0, 0.35), inset 0 0 30px rgba(0, 50, 0, 0.3);
        text-align: center;
        font-family: 'Share Tech Mono', ui-monospace, monospace;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .money-mine-gate-title {
        font-size: clamp(22px, 4.2vw, 34px);
        font-weight: bold;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #fff8dc, #ffd700, #ffec8b);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 14px;
        filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.5));
      }
      .money-mine-gate-body {
        font-size: clamp(18px, 3.2vw, 24px);
        line-height: 1.75;
        color: #d5f0d8;
        text-align: left;
        margin-bottom: 24px;
        padding: 20px 22px;
        border-radius: 10px;
        background: rgba(0, 40, 18, 0.5);
        border: 1px solid rgba(255, 215, 0, 0.22);
        max-height: min(56vh, 500px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .money-mine-gate-btn {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: block;
        min-height: 62px;
        padding: 16px 24px;
        border-radius: 999px;
        border: 2px solid #ffd700;
        background: linear-gradient(180deg, rgba(90, 70, 0, 0.95), rgba(30, 24, 0, 0.98));
        color: #fff;
        font-family: inherit;
        font-size: clamp(18px, 3vw, 24px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        box-shadow: 0 0 22px rgba(255, 200, 0, 0.35);
      }
      .money-mine-gate-btn:hover {
        box-shadow: 0 0 32px rgba(255, 220, 0, 0.5);
      }

      .money-intro-hero-tile {
        margin: 12px auto 8px;
        width: min(88vw, 200px);
        aspect-ratio: 1;
        max-height: 34vh;
        border-radius: 16px;
        border: 3px solid #ffd700;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(42px, 18vw, 72px);
        font-weight: bold;
        color: #2a1f00;
        background: radial-gradient(circle at 40% 35%, #fffacd 0%, #ffd700 40%, #b8860b 92%);
        box-shadow: 0 0 28px rgba(255, 200, 0, 0.55);
        animation: money-cell-pulse 1.15s ease-in-out infinite;
      }
      .money-intro-deck {
        text-align: center;
        color: #c8f5c8;
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.5;
        margin: 0 4px 8px;
      }
      .money-moment-footer-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
      }
      .money-moment-btn--ghost {
        flex: 1 1 100px;
        min-height: 48px;
        max-width: 160px;
        border-color: rgba(255, 215, 0, 0.45);
        background: rgba(0, 24, 20, 0.85);
        color: #cfa;
      }
      .money-moment-fullscreen-card {
        max-height: min(96dvh, 720px);
      }
      @media (max-width: 640px), (max-height: 760px) {
        .money-moment-fullscreen-backdrop {
          align-items: flex-start;
          padding-top: max(10px, env(safe-area-inset-top, 0px));
          padding-bottom: max(12px, env(safe-area-inset-bottom, 10px));
        }
        .money-moment-fullscreen-card {
          max-width: min(96vw, 420px);
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          border-radius: 12px;
        }
        .money-moment-fullscreen-scroll {
          padding: 12px 12px 6px;
        }
        .money-moment-fullscreen-footer {
          padding: 10px 12px 12px;
        }
        .money-mine-gate-card {
          max-width: min(96vw, 560px);
          min-width: 0;
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          padding: 16px 12px 14px;
          border-radius: 12px;
        }
      }
      .money-moment-mines-only .money-moment-title {
        font-size: clamp(16px, 4vw, 22px);
      }

      .admin-finance-actions {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 8px;
        margin-bottom: 14px;
      }
      .admin-finance-user-layout {
        display: grid;
        gap: 14px;
        grid-template-columns: 1fr;
      }
      @media (min-width: 720px) {
        .admin-finance-user-layout {
          grid-template-columns: minmax(220px, 320px) 1fr;
          align-items: start;
        }
      }
      .admin-finance-user-picker {
        border: 1px solid rgba(0, 170, 102, 0.55);
        border-radius: 10px;
        padding: 12px;
        background: rgba(0, 22, 18, 0.92);
        text-align: left;
      }
      .admin-finance-user-picker label {
        display: block;
        color: #8ec;
        font-size: 0.82rem;
        margin-bottom: 6px;
      }
      .admin-finance-user-picker input[type='search'],
      .admin-finance-user-picker input[type='text'] {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border-radius: 8px;
        border: 2px solid #0c8;
        background: #011910;
        color: #f5fff5;
        font-size: 16px;
        margin-bottom: 0;
        -webkit-appearance: none;
        appearance: none;
      }
      .admin-finance-user-picker input[type='search']::placeholder {
        color: rgba(180, 220, 190, 0.65);
      }
      .admin-finance-search-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 10px;
      }
      .admin-finance-search-row input {
        flex: 1 1 160px;
        min-width: 0;
        margin-bottom: 0 !important;
      }
      .admin-finance-search-btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 8px;
        border: 2px solid #0f0;
        background: rgba(0, 55, 28, 0.95);
        color: #cfc;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
        font-family: inherit;
        -webkit-tap-highlight-color: rgba(0, 255, 100, 0.25);
      }
      .admin-finance-search-btn:active {
        background: rgba(0, 80, 40, 0.98);
      }
      .admin-finance-suggest-wrap {
        margin-top: 8px;
        border: 2px solid rgba(0, 200, 120, 0.45);
        border-radius: 10px;
        background: #021612;
        overflow: hidden;
      }
      .admin-finance-suggest-head {
        padding: 8px 12px;
        font-size: 0.78rem;
        color: #9cdb9c;
        background: rgba(0, 40, 28, 0.95);
        border-bottom: 1px solid rgba(0, 180, 100, 0.25);
      }
      .admin-finance-suggest-list {
        list-style: none;
        margin: 0;
        padding: 4px 0;
        max-height: min(48vh, 380px);
        min-height: 120px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .admin-finance-user-option {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 14px 12px;
        min-height: 52px;
        border: none;
        border-bottom: 1px solid rgba(0, 100, 60, 0.35);
        background: transparent;
        color: #e8fff0;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.35;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 255, 120, 0.2);
      }
      .admin-finance-user-option:last-child {
        border-bottom: none;
      }
      .admin-finance-user-option:hover,
      .admin-finance-user-option:focus-visible {
        background: rgba(0, 80, 50, 0.45);
        outline: none;
      }
      .admin-finance-user-option.is-selected {
        background: rgba(0, 90, 55, 0.65);
        box-shadow: inset 3px 0 0 #0f6;
      }
      .admin-finance-user-opt-id {
        display: inline-block;
        font-weight: bold;
        color: #ffd78a;
        margin-right: 8px;
      }
      .admin-finance-user-opt-name {
        color: #e8fff0;
      }
      .admin-finance-user-opt-phone {
        display: block;
        margin-top: 4px;
        font-size: 0.88rem;
        color: #9ec;
      }
      .admin-finance-clear-user {
        margin-top: 8px;
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
        border: 1px solid rgba(255, 120, 100, 0.45);
        background: rgba(40, 12, 8, 0.6);
        color: #fca;
        font-size: 14px;
        cursor: pointer;
        font-family: inherit;
      }
      .admin-finance-metric-card {
        border: 1px solid rgba(255, 200, 100, 0.35);
        border-radius: 10px;
        padding: 12px 14px;
        background: rgba(25, 22, 0, 0.88);
        text-align: left;
      }
      .admin-finance-metric-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: clamp(0.8rem, 2.8vw, 0.92rem);
        color: #fec;
      }
      .admin-finance-metric-row:last-child {
        border-bottom: none;
      }
      .admin-finance-metric-row span:first-child {
        color: #9ec;
        flex: 0 1 55%;
      }
      .admin-finance-metric-row span:last-child {
        text-align: right;
        word-break: break-word;
      }
      .admin-finance-bet-card {
        border: 1px solid rgba(0, 170, 102, 0.25);
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: rgba(0, 20, 16, 0.85);
        text-align: left;
        font-size: clamp(0.78rem, 2.6vw, 0.88rem);
        word-break: break-word;
      }

      .user-performance-shell {
        max-width: min(720px, 100%);
        margin: 0 auto;
        padding: 0 12px 24px;
        box-sizing: border-box;
        text-align: left;
      }
      .user-performance-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
      }
      @media (min-width: 400px) {
        .user-performance-grid {
          grid-template-columns: 1fr 1fr;
        }
      }
      .user-performance-stat {
        border: 1px solid rgba(255, 200, 80, 0.35);
        border-radius: 10px;
        padding: 12px 14px;
        background: rgba(28, 22, 0, 0.88);
      }
      .user-performance-stat label {
        display: block;
        font-size: 0.75rem;
        color: #9ec;
        margin-bottom: 4px;
      }
      .user-performance-stat strong {
        font-size: 1.05rem;
        color: #ffd78a;
      }
      .user-performance-round {
        border-bottom: 1px solid rgba(0, 120, 80, 0.25);
        padding: 10px 0;
        font-size: clamp(0.78rem, 2.6vw, 0.88rem);
        color: #dfe;
        word-break: break-word;
      }

      .app-data-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 14px;
        border: 1px solid rgba(0, 170, 102, 0.4);
        border-radius: 10px;
        background: rgba(0, 14, 12, 0.94);
        box-sizing: border-box;
      }
      .app-data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: clamp(0.7rem, 2.3vw, 0.84rem);
        color: #dfe;
      }
      .app-data-table caption {
        caption-side: top;
        text-align: left;
        padding: 10px 12px 6px;
        font-weight: 700;
        color: #9ec;
        font-size: clamp(0.78rem, 2.5vw, 0.9rem);
      }
      .app-data-table th,
      .app-data-table td {
        padding: 8px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        text-align: left;
        vertical-align: top;
      }
      .app-data-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: rgba(0, 42, 32, 0.98);
        color: #bfe;
        font-weight: 600;
        white-space: nowrap;
      }
      .app-data-table tbody tr:hover td {
        background: rgba(0, 80, 50, 0.15);
      }
      .app-data-table tbody tr:last-child td {
        border-bottom: none;
      }
      .app-data-table .num {
        text-align: right;
        font-variant-numeric: tabular-nums;
      }
      .app-data-table .out-win {
        color: #8f8;
        font-weight: 600;
      }
      .app-data-table .out-loss {
        color: #f88;
        font-weight: 600;
      }
      .app-data-table .pl-pos {
        color: #8f8;
      }
      .app-data-table .pl-neg {
        color: #f88;
      }
      .app-data-table .mono {
        font-size: 0.92em;
        color: #bde;
      }

      .money-moment-sub-readable {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.65;
        font-size: clamp(12px, 3.1vw, 15px);
      }
      .money-moment-sub-readable .money-moment-lead {
        display: block;
        margin-bottom: 10px;
        color: #e0ffe8;
      }
      .money-moment-sub-readable .money-moment-meta {
        display: block;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0, 36, 16, 0.55);
        border: 1px solid rgba(255, 215, 0, 0.2);
        color: #c8f5d0;
        font-size: clamp(11px, 2.9vw, 13px);
      }

      #notification {
        margin: 10px 0;
        color: #ff0;
        background-color: #300;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ff0;
      }

      #date-time,
      #version-info,
      #watermark {
        position: fixed;
        color: #0f0;
        z-index: 100;
        text-shadow: 0 0 5px #0f0;
      }

      #date-time {
        font-size: 12px;
        line-height: 1.25;
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 3px 6px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.8);
      }

      #version-info {
        font-size: 12px;
        bottom: 10px;
        left: 10px;
      }

      #watermark {
        font-size: 14px;
        bottom: 10px;
        right: 10px;
        color: #ff0;
        text-shadow: 0 0 5px #ff0;
      }

      .glitch {
        animation: glitch 1s linear infinite;
      }

      @keyframes glitch {
        2%,
        64% {
          transform: translate(2px, 0) skew(0deg);
        }
        4%,
        60% {
          transform: translate(-2px, 0) skew(0deg);
        }
        62% {
          transform: translate(0, 0) skew(5deg);
        }
      }

      .back-button,
      .stats-button {
        position: absolute;
        top: 10px;
        padding: 5px 10px;
        font-size: 12px;
        background-color: #300;
        border-color: #f00;
      }

      .back-button {
        left: 10px;
      }

      .back-button.back-button--icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        min-width: 32px;
        min-height: 28px;
        font-size: 0;
        line-height: 0;
        color: #f88;
      }

      .back-button.back-button--icon .nav-back-svg {
        display: block;
      }

      .prominent-back-button.prominent-back-button--icon {
        padding: 6px 10px;
        font-size: 0;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #0f0;
      }

      .prominent-back-button.prominent-back-button--icon .nav-back-svg {
        width: 18px;
        height: 18px;
      }

      .calc-back-btn.calc-back-btn--icon {
        padding: 6px 8px;
        font-size: 0;
        min-width: 34px;
        justify-content: center;
      }

      .calc-back-btn.calc-back-btn--icon .nav-back-svg {
        width: 18px;
        height: 18px;
      }

      .stats-button {
        right: 50px;
      }

      #rounds-data {
        max-height: 200px;
        overflow-y: auto;
        margin-bottom: 10px;
      }

      .customization-panel {
        margin-bottom: 20px;
      }

      .slider-container {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
      }

      .slider-container label {
        flex: 1;
      }

      .slider-container input {
        flex: 2;
        margin: 0 10px;
      }

      .slider-container span {
        flex: 0 0 40px;
      }

      .ai-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 10px 0;
      }

      .ai-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .ai-button.ai-active {
        background-color: #060;
      }

      .hidden {
        display: none;
      }

      .modal {
        display: block;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
      }

      .modal-content {
        background-color: rgba(139, 0, 0, 0.8); /* Dark red with 80% opacity */
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%; /* Make it responsive */
        max-width: 400px; /* Set a max width */
        border-radius: 10px; /* Optional: add rounded corners */
        text-align: center; /* Center the text */
      }

      .modal-content p {
        font-weight: bold; /* Make the text bold */
        color: #fff; /* Change text color to white for better contrast */
      }

      /* Calculator styles */
      #calculator-screen {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #001500; /* Dark green background */
        padding: 0;
        border-radius: 8px;
        color: #0f0; /* Matrix green text */
        width: 45%;
        max-width: 800px;
        min-width: 320px;
        margin: auto;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); /* Green glow */
        border: 1px solid #0f0; /* Matrix green border */
        overflow: hidden;
        animation: none;
      }

      /* Calculator header */
      .calculator-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #002800; /* Darker green background */
        width: 100%;
        padding: 15px;
        color: #0f0;
        border-bottom: 1px solid #0f0;
      }

      #calculator-display {
        width: 100%;
        font-size: 40px;
        padding: 20px;
        background-color: #001800;
        color: #0f0;
        border: none;
        text-align: right;
        font-family: 'Share Tech Mono', monospace;
        min-height: 120px;
        max-height: 200px; /* Add maximum height */
        display: block; /* Change to block */
        box-sizing: border-box;
        margin: 0;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
        overflow-x: auto;
        overflow-y: auto;
        white-space: pre-wrap; /* Allow text to wrap */
        word-wrap: break-word; /* Break long words */
        scrollbar-width: thin;
        scrollbar-color: #0f0 #001800;
        position: relative; /* Add position relative */
      }

      /* Webkit scrollbar styling */
      #calculator-display::-webkit-scrollbar {
        width: 10px;
        height: 10px;
      }

      #calculator-display::-webkit-scrollbar-track {
        background: #001800;
        border-radius: 4px;
      }

      #calculator-display::-webkit-scrollbar-thumb {
        background: #0f0;
        border-radius: 4px;
        border: 2px solid #001800;
      }

      #calculator-display::-webkit-scrollbar-thumb:hover {
        background: #00ff00;
        cursor: pointer;
      }

      /* Add a container for the display content */
      #calculator-display-content {
        padding: 10px;
        min-width: min-content; /* Ensure content doesn't shrink below its minimum width */
      }

      /* Calculator grid container */
      .calculator-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        background-color: #001500;
      }

      /* Top row special buttons */
      .calc-top-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        background-color: #001500;
      }

      /* Calculator button styles */
      .calc-button {
        margin: 1px;
        padding: 15px;
        font-size: 26px;
        background-color: #004400; /* Lighter green background */
        color: #ffffff; /* White text */
        border: 1px solid rgba(0, 255, 0, 0.3);
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Share Tech Mono', monospace;
        width: auto;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        font-weight: bold;
      }

      /* Operation buttons with special styling */
      .calc-button.operation {
        background-color: #003366; /* Blue background */
        color: #00ffff; /* Cyan text */
        border-color: rgba(0, 255, 255, 0.3);
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
      }

      /* Clear and Delete buttons special styling */
      .calc-button.clear {
        background-color: #660000; /* Dark red background */
        color: #ff3333; /* Bright red text */
        border-color: rgba(255, 0, 0, 0.3);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
        font-weight: bold;
      }

      .calc-button.delete {
        background-color: #663300; /* Dark orange background */
        color: #ff9933; /* Bright orange text */
        border-color: rgba(255, 153, 51, 0.3);
        text-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
        font-weight: bold;
      }

      /* Equal button with special styling */
      .calc-button.equal {
        background-color: #006600; /* Darker green background */
        color: #00ff00; /* Bright green text */
        border-color: rgba(0, 255, 0, 0.4);
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
      }

      .calc-button:hover {
        background-color: #005500;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
      }

      .calc-button.operation:hover {
        background-color: #004477;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
      }

      .calc-button.clear:hover {
        background-color: #770000;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
      }

      .calc-button.delete:hover {
        background-color: #774400;
        box-shadow: 0 0 15px rgba(255, 153, 51, 0.4);
      }

      .calc-button.equal:hover {
        background-color: #007700;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
      }

      /* Back button styling */
      .calc-back-btn {
        background-color: transparent;
        color: #0f0;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        transition: background-color 0.2s;
        font-family: 'Share Tech Mono', monospace;
      }

      .calc-back-btn:hover {
        background-color: rgba(0, 255, 0, 0.1);
        text-shadow: 0 0 5px #0f0;
      }

      .calculator-header h3 {
        margin: 0;
        font-size: 18px;
      }

      .calculator-icons {
        display: flex;
        gap: 15px;
      }

      /* Responsive adjustments for calculator */
      @media (max-width: 1200px) {
        #calculator-screen {
          width: 60%;
        }
      }
      
      @media (max-width: 768px) {
        #calculator-screen {
          width: 80%;
        }
        
        #calculator-display {
          font-size: 36px;
          min-height: 100px;
        }
        
        .calc-button {
          font-size: 22px;
          min-height: 55px;
        }
      }
      
      @media (max-width: 480px) {
        #calculator-screen {
          width: 95%;
          min-width: unset;
        }
        
        #calculator-display {
          font-size: 32px;
          min-height: 80px;
          padding: 20px 15px;
        }
        
        .calc-button {
          font-size: 18px;
          min-height: 50px;
          padding: 10px;
        }
        
        .calculator-header h3 {
          font-size: 16px;
        }
      }

      /* Add improved mobile responsiveness for small screens */
      @media (max-width: 400px) {
        body, html {
          overflow-x: hidden;
          overflow-y: auto;
        }
        
        .mines-predictor {
          min-height: auto;
          padding: 10px 0;
        }
        
        #setup-screen, #calculator-screen {
          margin: 0 auto;
          max-height: 85vh;
          overflow-y: auto;
          padding: 10px;
        }
        
        #calculator-screen {
          width: 98%;
          min-width: unset;
          transform: scale(0.95);
          transform-origin: top center;
        }
        
        .calc-button {
          font-size: 16px;
          min-height: 45px;
          padding: 8px 5px;
        }
        
        .scientific-row .calc-button {
          font-size: 11px;
          padding: 6px 2px;
        }
        
        #calculator-display {
          font-size: 28px;
          min-height: 70px;
          padding: 15px 10px;
        }
        
        .calculator-header {
          padding: 10px;
        }
      }
      
      /* Add specific styling for very small screens */
      @media (max-width: 360px) {
        #calculator-screen {
          transform: scale(0.9);
        }
        
        .calc-button {
          font-size: 14px;
          min-height: 40px;
        }
        
        .scientific-row .calc-button {
          font-size: 10px;
          padding: 5px 2px;
        }
      }

      /* Styles for the review screen grid */
      .review-grid {
        display: grid;
        grid-template-columns: repeat(5, 30px); /* Smaller size for review */
        gap: 2px; /* Smaller gap */
        margin: 20px 0;
      }

      .review-grid-item {
        width: 30px; /* Smaller size for review */
        height: 30px; /* Smaller size for review */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #020;
        color: #0f0;
        border-radius: 5px;
        border: 1px solid #0f0;
      }

      #about-screen {
        max-height: 80vh; /* Limit the height to 80% of the viewport height */
        overflow-y: auto; /* Enable vertical scrolling */
        padding: 20px; /* Add some padding for better appearance */
      }

      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        z-index: 10; /* Ensure it is above other content */
        display: none; /* Initially hidden */
      }

      .loader {
        border: 8px solid rgba(255, 255, 255, 0.3); /* Light border */
        border-top: 8px solid #00ff00; /* Sharp green border */
        border-radius: 50%;
        width: 50px; /* Size of the loader */
        height: 50px; /* Size of the loader */
        animation: spin 1s linear infinite; /* Spin animation */
        margin: 20px auto; /* Center the loader */
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      .loading-message {
        color: #fff; /* Text color */
        text-align: center; /* Center the text */
        margin-top: 10px; /* Space above the text */
      }

      .hacker-style {
        font-family: 'Share Tech Mono', monospace; /* Monospace font */
        color: #00ff00; /* Bright green text */
        text-align: center; /* Center the text */
        margin: 20px; /* Space around the text */
        font-weight: bold; /* Make the text bold */
        font-size: 24px; /* Increase font size */
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00; /* Glowing effect */
      }

      .contact-info {
        font-family: 'Share Tech Mono', monospace; /* Monospace font */
        color: #ffffff; /* White text */
        text-align: center; /* Center the text */
        margin: 10px; /* Space around the text */
        font-weight: bold; /* Make the text bold */
        font-size: 18px; /* Slightly smaller font size */
      }

      /* Pro Version Styling */
      .pro-badge {
        position: absolute; display: none !important;
        top: 10px;
        left: 10px;
        background: linear-gradient(135deg, #ff0 0%, #f90 100%);
        color: #000;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
        z-index: 100;
        visibility: hidden; /* Hide badge but keep functionality */
      }
      
      /* Advanced prediction animation */
      .prediction-animation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #0f0;
      }
      
      .prediction-animation .progress {
        width: 80%;
        max-width: 400px;
        height: 20px;
        border: 1px solid #0f0;
        margin: 20px 0;
        position: relative;
        overflow: hidden;
      }
      
      .prediction-animation .progress-bar {
        background-color: #0f0;
        height: 100%;
        width: 0%;
        transition: width 2s linear;
      }
      
      /* Prediction confidence indicator */
      .confidence-indicator {
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
        padding: 5px;
        border: 1px solid #0f0;
        border-radius: 5px;
      }
      
      .confidence-level {
        height: 10px;
        border-radius: 5px;
        background: linear-gradient(90deg, #f00, #ff0, #0f0);
      }
      
      /* Enhanced grid styles */
      .pro-grid-item {
        position: relative;
        overflow: hidden;
      }
      
      .pro-grid-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
        z-index: -1;
      }
      
      .heatmap-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.6;
        pointer-events: none;
      }
      
      /* Pro themes */
      .theme-selector {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
      }
      
      .theme-option {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.3s ease;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .theme-option:hover {
        transform: scale(1.2);
      }
      
      .theme-option.selected {
        transform: scale(1.2);
        box-shadow: 0 0 10px #0f0, 0 0 15px #0f0;
      }
      
      /* Export data section */
      .export-options {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 10px 0;
      }
      
      .export-btn {
        flex: 1;
        max-width: 120px;
      }

      /* Enhanced mine visualization in review screen */
      .review-grid-item.mine {
        background-color: #cc0000;
        border-color: #ff0000;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .review-grid-item.mine::before {
        content: '💣';
        font-size: 14px;
      }
      
      /* Hide the number in mine tiles */
      .review-grid-item.mine .tile-number {
        display: none;
      }
      
      /* Enhanced styling for predicted safe tiles with stars */
      .grid-item.predicted-safe {
        background-color: #020;
        border-color: #0f0;
        position: relative;
      }
      
      /* Remove the number from safe tiles */
      .grid-item.predicted-safe span {
        display: none;
      }
      
      /* Add the star to safe tiles */
      .grid-item.predicted-safe::before {
        content: '⭐';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        color: #ff0;
        text-shadow: 0 0 10px #ff0;
        animation: star-blink 1.5s infinite alternate;
      }
      
      @keyframes star-blink {
        0% { transform: translate(-50%, -50%) scale(0.9); filter: brightness(0.9); }
        100% { transform: translate(-50%, -50%) scale(1.1); filter: brightness(1.3); text-shadow: 0 0 15px #ff0, 0 0 20px #ff0; }
      }
      
      /* Styling for mine tiles */
      .grid-item.mine-tile {
        background-color: #cc0000;
        border-color: #ff0000;
        position: relative;
      }
      
      /* Remove the number from mine tiles */
      .grid-item.mine-tile span {
        display: none;
      }
      
      /* Add the bomb to mine tiles */
      .grid-item.mine-tile::before {
        content: '💣';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        animation: mine-pulse 1.5s infinite alternate;
      }
      
      @keyframes mine-pulse {
        0% { transform: translate(-50%, -50%) scale(0.9); }
        100% { transform: translate(-50%, -50%) scale(1.1); }
      }
      
      /* Results screen styling */
      #results-screen {
        text-align: center;
        padding: 15px;
        background-color: rgba(0, 10, 0, 0.9);
        border-radius: 8px;
        border: 1px solid #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
        max-width: 600px;
        margin: 0 auto;
      }
      
      .results-content {
        text-align: center;
        margin: 20px 0;
      }
      
      .results-subtitle {
        font-size: 1.2rem;
        color: #0f0;
        margin: 15px 0;
      }
      
      .safe-tiles {
        font-size: 1.1rem;
        background-color: rgba(0, 40, 0, 0.6);
        padding: 10px;
        border-radius: 5px;
        margin: 20px 0;
        display: inline-block;
        min-width: 50%;
      }
      
      .statistics-header {
        font-size: 1.2rem;
        color: #0f0;
        border-bottom: 1px solid #0f0;
        padding-bottom: 5px;
        margin: 25px 0 15px;
        text-align: center;
      }
      
      .statistics-grid {
        display: grid;
        gap: 10px;
        justify-content: center;
        margin: 15px 0 25px;
      }
      
      .statistics-grid p {
        margin: 5px 0;
        font-size: 1.05rem;
      }
      
      .button-row {
        display: flex;
        justify-content: center;
        gap: 10px;
      }
      
      .secondary-button {
        background-color: rgba(0, 80, 0, 0.6);
        border: 1px solid #0a0;
      }
      
      .secondary-button:hover {
        background-color: rgba(0, 100, 0, 0.8);
      }
      
      /* Prominent back button */
      .prominent-back-button {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        background-color: rgba(0, 100, 0, 0.8);
        color: #0f0;
        border: 2px solid #0f0;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 100;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        font-family: 'Courier New', monospace;
        transition: all 0.2s ease;
      }
      
      .prominent-back-button:hover {
        background-color: rgba(0, 150, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
        transform: scale(1.05);
      }
      
      /* Container for bottom buttons */
      .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        align-items: center;
      }
      
      .button-container button {
        min-width: 200px;
      }
      
      /* Adjust lock button position */
      .lock-button {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 100;
      }
      
      /* Make space for the absolute positioned elements */
      #input-screen, #predicted-screen, #results-screen, #review-screen {
        position: relative;
        padding-top: 50px;
      }
      
      /* PRO indicator button */
      .pro-indicator {
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: #333;
        color: #ffd700;
        padding: 5px 10px;
        border-radius: 15px;
        font-weight: bold;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        border: 1px solid #ffd700;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        z-index: 1000;
        transition: all 0.3s ease;
      }
      
      .pro-indicator.active {
        background-color: #ffd700;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      }
      
      .pro-indicator:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      }
      
      /* Enhanced notification system styling */
      .notification-container {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 400px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: none;
      }
      
      .enhanced-notification {
        background-color: rgba(0, 20, 0, 0.95);
        border: 2px solid #0f0;
        color: #0f0;
        padding: 12px 15px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: auto;
        font-family: 'Courier New', monospace;
        font-size: 16px;
      }
      
      .enhanced-notification.show {
        opacity: 1;
        transform: translateY(0);
      }
      
      .enhanced-notification.hide {
        opacity: 0;
        transform: translateY(-20px);
      }
      
      .enhanced-notification .notification-icon {
        font-size: 20px;
        min-width: 24px;
        text-align: center;
      }

      .enhanced-notification.notification-multiline .notification-message {
        white-space: pre-line;
        max-height: min(38vh, 280px);
        overflow-y: auto;
        line-height: 1.35;
        font-size: 14px;
        text-align: left;
      }
      
      .enhanced-notification.success {
        border-color: #00ff00;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
        background-color: rgba(0, 80, 0, 0.98);
        color: #adff2f;
      }
      
      .enhanced-notification.error {
        border-color: #ff0000;
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
        background-color: rgba(80, 0, 0, 0.98);
        color: #ffb3b3;
      }
      
      .enhanced-notification.warning {
        border-color: #ff0;
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
        color: #ff0;
      }
      
      /* Reset stats button styling */
      .reset-stats-button {
        background-color: rgba(80, 0, 0, 0.7);
        border: 1px solid #f55;
        color: #f99;
        padding: 5px 10px;
        font-size: 0.85rem;
        margin-top: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .reset-stats-button:hover {
        background-color: rgba(120, 0, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
      }
      
      /* Make all screens scrollable */
      html, body {
        height: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0;
      }
      
      .app-container {
        height: 100vh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: var(--app-theme-bg);
        color: var(--app-theme-text);
      }

      .app-container #lock-screen.lock-screen-v2 {
        flex: 1 1 auto;
        min-height: 0;
        align-self: center;
      }
      
      #setup-screen, #input-screen, #predicted-screen, #results-screen, #review-screen, #pro-settings-screen {
        max-height: 100vh;
        overflow-y: auto;
        padding: 60px 15px 20px;
        scrollbar-width: thin;
        scrollbar-color: var(--app-theme-accent) var(--app-theme-bg);
      }
      
      /* Custom scrollbar styling */
      ::-webkit-scrollbar {
        width: 8px;
      }
      
      ::-webkit-scrollbar-track {
        background: var(--app-theme-bg);
      }
      
      ::-webkit-scrollbar-thumb {
        background: var(--app-theme-accent);
        border-radius: 4px;
      }
      
      ::-webkit-scrollbar-thumb:hover {
        filter: brightness(1.2);
      }
      
      /* Fixed navigation elements */
      .prominent-back-button, .lock-button {
        position: fixed;
        z-index: 1000;
      }
      
      .prominent-back-button {
        top: 10px;
        left: 10px;
      }
      
      .lock-button {
        top: 10px;
        right: 10px;
      }
      
      /* Confirmation modal styling */
      .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Dim using the same neon-green vibe as the app */
        background:
          radial-gradient(1200px 700px at 20% 10%, rgba(0, 255, 160, 0.14), rgba(0, 0, 0, 0) 55%),
          radial-gradient(900px 600px at 80% 30%, rgba(0, 255, 120, 0.10), rgba(0, 0, 0, 0) 60%),
          rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px) saturate(120%);
        -webkit-backdrop-filter: blur(6px) saturate(120%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
      }
      
      .modal-container {
        background-color: #001500;
        border: 2px solid #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        padding: 20px;
        border-radius: 8px;
        width: 80%;
        max-width: 400px;
        text-align: center;
        color: #0f0;
        font-family: 'Courier New', monospace;
      }

      /* Learned Money Time — credential modal */
      .learned-money-cred-overlay {
        position: fixed;
        inset: 0;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        background: rgba(2, 6, 4, 0.76);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
      }
      .learned-money-cred-card {
        position: relative;
        width: 100%;
        max-width: 420px;
        border-radius: 18px;
        padding: 28px 26px 22px;
        text-align: center;
        color: var(--app-theme-text, #c8e6c9);
        background: linear-gradient(165deg, rgba(22, 30, 26, 0.94) 0%, rgba(6, 10, 8, 0.98) 55%, rgba(4, 8, 6, 0.99) 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.06) inset,
          0 22px 56px rgba(0, 0, 0, 0.72),
          0 0 0 1px rgba(0, 0, 0, 0.45);
        font-family: 'Share Tech Mono', monospace;
      }
      .learned-money-cred-accent-bar {
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: linear-gradient(90deg, transparent, var(--app-theme-accent, #0f0), transparent);
        opacity: 0.9;
        pointer-events: none;
      }
      .learned-money-cred-icon {
        font-size: 2rem;
        line-height: 1;
        margin-bottom: 10px;
        filter: drop-shadow(0 0 12px var(--app-theme-accent, #0f0));
        opacity: 0.95;
      }
      .learned-money-cred-title {
        margin: 0 0 12px;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--app-theme-text, #e8f5e9);
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
      }
      .learned-money-cred-body {
        margin: 0 0 18px;
        font-size: 0.82rem;
        line-height: 1.55;
        color: rgba(200, 220, 205, 0.88);
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
      }
      .learned-money-cred-body strong {
        color: #ffe082;
        font-weight: 600;
      }
      .learned-money-cred-field {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        margin-bottom: 20px;
        font-family: inherit;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        color: var(--app-theme-text, #e8f5e9);
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        caret-color: var(--app-theme-accent, #0f0);
      }
      .learned-money-cred-field:focus {
        border-color: var(--app-theme-accent, #0f0);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 16px var(--app-theme-accent, #0f0);
      }
      .learned-money-cred-field::placeholder {
        color: rgba(180, 200, 185, 0.45);
      }
      .learned-money-cred-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
      }
      .learned-money-cred-btn-secondary {
        padding: 11px 20px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(230, 235, 230, 0.9);
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
      }
      .learned-money-cred-btn-secondary:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.28);
      }
      .learned-money-cred-btn-secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      .learned-money-cred-btn-primary {
        padding: 11px 22px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.35);
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        cursor: pointer;
        color: #061208;
        background: var(--app-theme-accent, #0f0);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
        transition: filter 0.2s ease, transform 0.15s ease;
      }
      .learned-money-cred-btn-primary:hover:not(:disabled) {
        filter: brightness(1.08);
        transform: translateY(-1px);
      }
      .learned-money-cred-btn-primary:disabled {
        cursor: wait;
        opacity: 0.75;
      }
      
      .modal-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
      }
      
      .confirm-button {
        background-color: rgba(120, 0, 0, 0.8);
        border: 1px solid #f55;
        color: #fff;
        padding: 8px 15px;
      }
      
      .confirm-button:hover {
        background-color: rgba(180, 0, 0, 0.9);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
      }
      
      .cancel-button {
        background-color: rgba(0, 40, 0, 0.8);
        border: 1px solid #0f0;
        color: #0f0;
        padding: 8px 15px;
      }
      
      .cancel-button:hover {
        background-color: rgba(0, 60, 0, 0.9);
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
      }
      
      /* PRO Button Styling */
      .pro-button {
        position: fixed;
        top: 50px; /* Position it below the date-time which is at top: 10px */
        right: 10px; /* Align with date-time element */
        z-index: 1001; /* Ensure it's above other fixed elements */
        padding: 4px 5px; /* Smaller padding */
        background-color: #222;
        color: #ffd700;
        border-radius: 10px;
        font-weight: bold;
        font-family: 'Share Tech Mono', monospace;
        cursor: pointer;
        border: 1px solid #ffd700;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
        transition: all 0.3s ease;
        -webkit-user-select: none;
        user-select: none;
        font-size: 12px; /* Smaller font size */
        width: 48px; /* Approximately half an inch at 96 DPI */
        text-align: center;
        min-width: 48px;
      }
      
      .pro-button.active {
        background-color: #ffd700;
        color: #222;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
      }
      
      .pro-button:hover {
        background-color: #333;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
      }
      
      /* PRO Features Styling */
      .pro-features {
        padding: 15px;
        border: 1px solid #ffd700;
        background-color: rgba(0, 20, 0, 0.8);
        border-radius: 5px;
      }
      
      .pro-section-title {
        color: #ffd700;
        margin-top: 0;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.1rem;
      }
      
      .pro-feature-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 5px 0;
      }
      
      .toggle-button {
        background-color: rgba(60, 60, 60, 0.7);
        border: 1px solid #888;
        color: #ddd;
        font-size: 0.8rem;
        padding: 3px 10px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .toggle-button.active {
        background-color: rgba(0, 100, 0, 0.8);
        border-color: #0f0;
        color: #0f0;
      }
      
      .confidence-meter {
        width: 100px;
        height: 8px;
        background-color: rgba(40, 40, 40, 0.7);
        border-radius: 4px;
        overflow: hidden;
        margin: 0 10px;
      }
      
      .confidence-level {
        height: 100%;
        background-color: #0f0;
        border-radius: 4px;
      }
      
      /* Fixed selector issues */
      .matrix-char {
        display: inline-block;
        margin: 0 2px;
        animation: fadeInOut 1.5s infinite;
      }
      
      /* Loading Screen Styles - Fixed */
      #loading-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background-color: #000;
        padding: 20px;
        position: relative;
        overflow: hidden;
      }
      
      .loading-spinner {
        border: 5px solid rgba(0, 50, 0, 0.3);
        border-radius: 50%;
        border-top: 5px solid #0f0;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 30px 0;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      
      .progress-container {
        width: 80%;
        max-width: 400px;
        height: 10px;
        background: rgba(0, 40, 0, 0.5);
        border-radius: 5px;
        margin: 20px 0;
        overflow: hidden;
      }
      
      .progress-bar {
        height: 100%;
        background: #0f0;
        width: 0%;
        border-radius: 5px;
        animation: progressAnimation 2s ease-in-out forwards;
      }
      
      @keyframes progressAnimation {
        0% { width: 0%; }
        20% { width: 30%; }
        50% { width: 60%; }
        70% { width: 80%; }
        90% { width: 95%; }
        100% { width: 100%; }
      }
      
      .loading-message {
        font-family: 'Courier New', monospace;
        color: #0f0;
        text-align: center;
        margin-top: 20px;
      }

      /* Advanced Loading Screen Styles */
      #loading-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background-color: #000;
        color: #0f0;
        font-family: 'Courier New', monospace;
        position: relative;
        overflow: hidden;
        padding: 20px;
      }
      
      .glitch-title {
        font-size: 24px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 20px;
        position: relative;
        color: #0f0;
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
        animation: glitch 1s infinite;
      }
      
      @keyframes glitch {
        0% { text-shadow: 0 0 5px #0f0, 0 0 10px #0f0; }
        25% { text-shadow: 2px 0 5px #0f0, -2px 0 10px #0f0; }
        50% { text-shadow: -2px 0 5px #0f0, 2px 0 10px #0f0; }
        75% { text-shadow: 0 2px 5px #0f0, 0 -2px 10px #0f0; }
        100% { text-shadow: 0 0 5px #0f0, 0 0 10px #0f0; }
      }
      
      .hack-animation-container {
        width: 90%;
        max-width: 800px;
        height: 400px;
        position: relative;
        margin: 20px 0;
        overflow: hidden;
        border: 1px solid #0f0;
        border-radius: 5px;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
      }
      
      .code-rain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 10, 0, 0.7);
        overflow: hidden;
        z-index: 1;
      }
      
      .code-line {
        color: #0f0;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        animation: rain 7s linear infinite;
        opacity: 0.5;
      }
      
      @keyframes rain {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100%); }
      }
      
      .grid {
        display: grid;
        grid-template-columns: repeat(5, 60px); /* Normal size for input rounds */
        gap: 5px; /* Normal gap */
        margin: 20px auto;
        justify-content: center;
      }

      .grid-item {
        width: 60px; /* Normal size for input rounds */
        height: 60px; /* Normal size for input rounds */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #020;
        color: #0f0;
        cursor: pointer;
        border-radius: 5px;
        border: 1px solid #0f0;
        transition: all 0.3s ease;
      }
      
      .terminal {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 70%;
        background-color: rgba(0, 20, 0, 0.9);
        border: 2px solid #0f0;
        border-radius: 5px;
        z-index: 2;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
      }
      
      .terminal-header {
        background-color: #0f0;
        color: #000;
        padding: 5px 10px;
        font-weight: bold;
        font-size: 14px;
      }
      
      .terminal-content {
        padding: 10px;
        height: calc(100% - 30px);
        overflow-y: auto;
      }
      
      .command-line {
        color: #0f0;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        animation: typing 1s steps(40, end);
      }
      
      .command-output {
        color: #0f0;
        margin: 5px 0;
        padding-left: 10px;
        border-left: 2px solid #0a0;
        animation: fadeIn 0.5s;
      }
      
      .command-output.success {
        color: #0ff;
        font-weight: bold;
        border-left: 2px solid #0ff;
      }
      
      @keyframes typing {
        from { width: 0 }
        to { width: 100% }
      }
      
      @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }
      
      .blinking-cursor {
        display: inline-block;
        width: 8px;
        height: 15px;
        background-color: #0f0;
        margin-left: 2px;
        animation: blink 1s infinite;
      }
      
      @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
      }
      
      .progress-container {
        width: 90%;
        max-width: 500px;
        height: 20px;
        background-color: rgba(0, 30, 0, 0.6);
        border-radius: 10px;
        margin-top: 20px;
        position: relative;
        overflow: hidden;
        border: 1px solid #0f0;
      }
      
      .progress-bar {
        height: 100%;
        background: linear-gradient(to right, #020, #0a0, #0f0);
        border-radius: 10px;
        transition: width 0.5s ease;
      }
      
      .progress-percentage {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: bold;
        text-shadow: 0 0 3px #000;
      }
      
      /* Replace any problematic CSS with cleaned up versions */
      .mines-selected {
        margin-left: 10px;
        font-weight: bold;
        color: #0f0;
      }
      
      button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      
      .instruction {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
      }

      .confidence-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
      }

      .confidence-table th,
      .confidence-table td {
        border: 1px solid #0f0;
        padding: 8px;
        text-align: center;
      }

      .confidence-table th {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
      }

      .confidence-table tr:nth-child(even) {
        background-color: rgba(0, 50, 0, 0.5);
      }

      /* Responsive Design - Mobile Improvements */
      @media (max-width: 768px) {
        /* General responsive adjustments */
        body, html {
          font-size: 14px;
        }

        /* Adjust grid layouts for smaller screens */
        .grid {
          grid-template-columns: repeat(5, 45px);
          gap: 3px;
          margin: 15px auto;
          max-width: 240px;
        }

        .grid-item {
          width: 45px;
          height: 45px;
          font-size: 14px;
        }

        .review-grid {
          grid-template-columns: repeat(5, 25px);
          gap: 2px;
          margin: 10px auto;
          max-width: 140px;
        }

        .review-grid-item {
          width: 25px;
          height: 25px;
          font-size: 12px;
        }

        /* Adjust screens to fit mobile viewports */
        #lock-screen, #setup-screen, #input-screen, #predicted-screen, 
        #results-screen, #review-screen, #customization-screen, 
        #clear-data-modal, #stats-screen, #about-screen, 
        #recommendations-screen, #calculator-screen, #admin-dashboard, 
        #pro-settings-screen, #lucky-tiles-screen, #lockdown-setup-screen {
          max-width: 90%;
          margin: 10px auto;
          padding: 15px 10px;
        }

        /* Make buttons larger and more touch-friendly */
        button, input, select {
          padding: 12px;
          margin: 8px 0;
          font-size: 16px;
          min-height: 44px; /* Minimum touch target size */
        }

        /* Adjust navigation buttons */
        .prominent-back-button, .lock-button {
          padding: 10px;
          min-width: 44px;
          min-height: 44px;
        }

        /* Fix positioning of fixed elements */
        #date-time {
          font-size: 10px;
          top: 5px;
          right: 5px;
          padding: 2px 5px;
        }

        #version-info, #watermark {
          font-size: 10px;
        }

        /* Adjust notification styles */
        .notification-container {
          width: 90%;
          left: 50%;
          transform: translateX(-50%);
          top: 40px;
        }

        .enhanced-notification {
          padding: 10px;
          font-size: 14px;
        }

        /* Better table display on mobile */
        .confidence-table {
          font-size: 12px;
        }

        .confidence-table th,
        .confidence-table td {
          padding: 5px 3px;
        }

        /* Adjust prediction animation for mobile */
        .prediction-animation .progress {
          width: 90%;
        }

        /* Fix modal display on mobile */
        .modal-container {
          width: 90%;
          padding: 15px 10px;
        }

        .modal-buttons {
          gap: 10px;
        }

        /* Fix customization screen controls */
        .slider-container {
          flex-direction: column;
          align-items: flex-start;
        }

        .slider-container input {
          width: 100%;
          margin: 5px 0;
        }

        /* Adjust loading screen for mobile */
        .hack-animation-container {
          height: 300px;
        }

        .terminal-content {
          font-size: 12px;
        }

        /* Fix stats screen for mobile */
        #stats-chart {
          width: 100%;
          max-width: 300px;
          height: auto;
        }

        /* Make scrollable areas more touch-friendly */
        #rounds-data, #about-screen {
          -webkit-overflow-scrolling: touch;
          max-height: 60vh;
        }

        /* Mobile-specific adjustments for confirmation modal */
        .modal-overlay {
          align-items: flex-start;
          padding-top: 20%;
        }
        
        .modal-container {
          width: 90%;
          max-width: 300px;
          padding: 15px;
        }
        
        .modal-buttons {
          flex-direction: column;
          gap: 10px;
        }
        
        .modal-buttons button {
          width: 100%;
        }
        
        /* Matrix rain: subtle on mobile so panels stay readable */
        #matrix {
          /* Brighter on mobile too */
          opacity: 0.72;
        }
        
        .matrix-char {
          animation-duration: 2.5s; /* Slow down animations to reduce CPU usage */
        }
        
        /* Improve touch targets for navigation */
        .prominent-back-button, .lock-button, .pro-button {
          padding: 12px;
          font-size: 16px;
        }
        
        /* Optimize prediction animation for mobile */
        .prediction-animation {
          padding: 20px 10px;
        }
        
        /* Add mobile-friendly scrolling */
        #setup-screen, #input-screen, #predicted-screen,
        #results-screen, #review-screen, #customization-screen,
        #stats-screen, #about-screen, #recommendations-screen,
        #lucky-tiles-screen, #lockdown-setup-screen, #admin-dashboard {
          scrollbar-width: thin;
          -webkit-overflow-scrolling: touch;
        }
        
        /* Improved spacing for input fields on mobile */
        input, select {
          margin-bottom: 15px;
          font-size: 14px;
          padding: 8px;
          width: 90%;
          max-width: 250px;
          border-radius: 5px;
          box-sizing: border-box;
        }
        
        label {
          display: block;
          margin-bottom: 5px;
          font-weight: bold;
        }

        /* Adjust admin dashboard for mobile */
        #admin-dashboard {
          width: 90%;
          min-width: unset;
          padding: 15px;
        }

        /* Make form elements in admin dashboard more mobile-friendly */
        #admin-dashboard input,
        #admin-dashboard select,
        #admin-dashboard button {
          min-height: 44px; /* Better touch targets */
          font-size: 16px; /* Better readability on mobile */
        }

        /* Improve user items display on small screens */
        .user-item {
          flex-direction: column;
          align-items: flex-start;
        }

        .user-actions {
          width: 100%;
          flex-direction: row;
          flex-wrap: wrap;
          margin-top: 10px;
        }

        .user-actions button {
          flex: 1 1 auto;
        }

        /* Adjust grid layouts for smaller screens */
        .grid {
          grid-template-columns: repeat(5, 45px);
          gap: 3px;
          margin: 15px auto;
          max-width: 240px;
        }

        .grid-item {
          width: 45px;
          height: 45px;
          font-size: 14px;
        }

        .review-grid {
          grid-template-columns: repeat(5, 25px);
          gap: 2px;
          margin: 10px auto;
          max-width: 140px;
        }

        .review-grid-item {
          width: 25px;
          height: 25px;
          font-size: 12px;
        }
      }
      
      /* Mobile-specific body class */
      body.mobile-device {
        overflow-x: hidden; /* Prevent horizontal scrolling */
      }
      
      body.mobile-device .grid-item:active {
        transform: scale(0.95); /* Visual feedback for touch */
        transition: transform 0.1s;
      }
      
      body.mobile-device button:active {
        transform: scale(0.98);
        transition: transform 0.1s;
      }
      
      /* Mobile touch highlight prevention */
      * {
        -webkit-tap-highlight-color: transparent;
      }
      
      /* Loading indicator for mobile */
      .mobile-loading {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
      }
      
      .mobile-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 255, 0, 0.3);
        border-top: 4px solid #0f0;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      .mobile-loading .text {
        color: #0f0;
        margin-top: 15px;
        font-size: 16px;
        text-align: center;
      }

      /* Small mobile devices */
      @media (max-width: 480px) {
        /* Further reduce sizes for very small screens */
        .grid {
          grid-template-columns: repeat(5, 40px);
          gap: 2px;
          max-width: 210px;
        }

        .grid-item {
          width: 40px;
          height: 40px;
          font-size: 12px;
        }
        
        /* Input styling for mobile */
        input, select {
          padding: 8px 12px;
          font-size: 14px;
          height: 38px;
          margin-bottom: 10px;
          width: 192px; /* Approximately 2 inches wide */
          max-width: 95%;
          background-color: rgba(0, 5, 0, 0.95);
          border: 2px solid #0f0;
          box-shadow: 0 0 15px rgba(0, 255, 0, 0.6), inset 0 0 8px rgba(0, 255, 0, 0.2);
          text-shadow: 0 0 5px #0f0;
          font-family: 'Share Tech Mono', monospace;
          letter-spacing: 1px;
        }
        
        /* Enhance number inputs */
        input[type="number"] {
          width: 192px;
          max-width: 95%;
          text-align: center;
          font-size: 15px;
          font-weight: bold;
          border-color: #0f0;
          letter-spacing: 1px;
          position: relative;
          background-color: rgba(0, 10, 0, 0.97);
        }
        
        /* Special styling for lock screen input */
        #lock-screen input {
          width: min(200px, 86vw);
          max-width: 100%;
          font-size: 15px;
          padding: 10px 12px;
          letter-spacing: 1px;
          background-color: rgba(0, 0, 0, 0.97);
          border: 2px solid #0f0;
          box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
          position: relative;
        }

        #lock-screen input:focus {
          border-color: #0f0;
          box-shadow: 0 0 25px #0f0, inset 0 0 10px rgba(0, 255, 0, 0.4);
        }
        
        /* Enhance button styling */
        button {
          border: 2px solid #0f0;
          background-color: rgba(0, 30, 0, 0.95);
          font-weight: bold;
          text-transform: uppercase;
          letter-spacing: 1px;
          box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
          text-shadow: 0 0 8px #0f0;
        }

        .phase-legend-row button.phase-legend-chip {
          all: unset;
          box-sizing: border-box;
          display: inline-block;
          appearance: none;
          -webkit-appearance: none;
          margin: 0;
          max-width: none;
          min-width: 0;
          width: auto;
          font-size: 11px;
          font-weight: normal;
          letter-spacing: 0.08em;
          text-transform: uppercase;
          text-shadow: none;
          line-height: 1.35;
          cursor: pointer;
          border: 1px solid rgba(130, 210, 230, 0.4);
          border-radius: 999px;
          padding: 4px 10px;
          color: #b8d8dc;
          background: rgba(0, 26, 30, 0.72);
        }

        .phase-legend-row button.phase-legend-chip:hover,
        .phase-legend-row button.phase-legend-chip:active {
          background: rgba(0, 26, 30, 0.72);
          transform: none;
          text-shadow: none;
        }

        button:active {
          background-color: rgba(0, 60, 0, 0.95);
          box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
          transform: scale(0.97);
        }

        .phase-legend-row button.phase-legend-chip:active {
          background: rgba(0, 26, 30, 0.85);
          box-shadow: 0 0 8px rgba(120, 220, 255, 0.22);
          transform: none;
        }
        
        /* Make buttons stack when space is limited */
        .button-row, .export-options {
          flex-direction: column;
          gap: 5px;
        }

        /* Adjust fixed position elements to avoid overlap */
        .pro-button {
          top: 40px; /* Smaller distance on mobile */ display: none !important;
          right: 5px;
          padding: 2px 0;
          font-size: 10px;
          border-radius: 8px;
          width: 40px; /* Even smaller on mobile */
          min-width: 40px;
        }

        /* Better spacing for setup screen inputs */
        #setup-screen input,
        #setup-screen button {
          margin: 5px 0;
        }

        /* Enhance tap targets */
        .ai-toggle {
          flex-direction: column;
          align-items: flex-start;
          margin: 10px 0;
        }

        .ai-button {
          width: 100%;
          margin-top: 5px;
        }

        /* Better font sizes for small screens */
        h2, h3 {
          font-size: 1.2rem;
        }

        /* Make theme selection more accessible */
        .theme-option {
          width: 35px;
          height: 35px;
        }
      }

      /* Landscape orientation adjustments */
      @media (max-height: 500px) and (orientation: landscape) {
        /* Optimize for landscape phones */
        .mines-predictor {
          justify-content: flex-start;
          padding-top: 60px;
        }

        /* Make screens scrollable in landscape */
        #setup-screen, #input-screen, #predicted-screen,
        #results-screen, #review-screen, #customization-screen,
        #stats-screen, #about-screen, #recommendations-screen,
        #lucky-tiles-screen, #lockdown-setup-screen {
          max-height: 80vh;
          overflow-y: auto;
        }

        /* Adjust grids to be visible without scrolling too much */
        .grid, .review-grid {
          margin: 10px auto;
        }

        /* Place fixed buttons to avoid overlap with content */
        .prominent-back-button {
          top: 5px;
          left: 5px;
        }

        .lock-button {
          top: 5px;
          right: 5px;
        }
        
        /* Adjust PRO button in landscape */
        .pro-button {
          top: 40px; /* Below date-time in landscape */ display: none !important;
          right: 5px;
          padding: 2px 0;
          font-size: 9px;
          width: 36px;
          min-width: 36px;
        }
      }

      /* Data Management Section Styling */
      .data-management-section {
        background-color: rgba(0, 30, 0, 0.7);
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0 20px;
        border: 1px solid rgba(0, 200, 0, 0.3);
      }
      
      .data-management-section p {
        margin: 5px 0 10px;
        font-size: 0.9rem;
      }
      
      .data-stats {
        background-color: rgba(0, 40, 0, 0.5);
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        font-size: 0.85rem;
      }
      
      .data-stats p {
        margin: 5px 0;
      }
      
      .export-options {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 10px 0;
      }
      
      .export-btn {
        flex: 1;
        max-width: 150px;
        background-color: rgba(0, 60, 0, 0.8);
        border: 1px solid #0a0;
        color: #0f0;
        font-weight: bold;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }
      
      /* Prediction review section styling */
      .prediction-review-section {
        background-color: rgba(0, 40, 0, 0.6);
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
        border: 1px solid rgba(0, 255, 0, 0.4);
      }
      
      .prediction-review-title {
        color: #0f0;
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .prediction-review-grid {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        gap: 3px;
        margin: 15px auto;
        max-width: 215px;
      }
      
      .prediction-review-item {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 30, 0, 0.8);
        color: #0f0;
        border-radius: 5px;
        border: 1px solid #0f0;
        font-size: 14px;
        position: relative;
      }
      
      .prediction-review-item.mine-tile {
        background-color: #cc0000;
        border-color: #ff0000;
      }
      
      .prediction-review-item.mine-tile::before {
        content: '💣';
        position: absolute;
        font-size: 18px;
      }
      
      .prediction-review-item.safe-tile {
        background-color: rgba(0, 80, 0, 0.9);
        border-color: #0f0;
        color: #fff;
      }
      
      .prediction-review-item.safe-tile::before {
        content: '⭐';
        position: absolute;
        font-size: 18px;
        color: #ff0;
      }
      
      .prediction-review-info {
        background-color: rgba(0, 20, 0, 0.7);
        padding: 8px;
        border-radius: 5px;
        margin: 10px 0;
        font-size: 0.9rem;
        border-left: 3px solid #0f0;
      }
      
      .prediction-review-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 15px 0 5px;
      }
      
      .review-nav-button {
        background-color: rgba(0, 50, 0, 0.8);
        border: 1px solid #0a0;
        color: #0f0;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        flex: 1;
        max-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }
      
      .review-nav-button:hover {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      .review-nav-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .review-nav-button.review-nav-button--icon {
        font-size: 0;
        line-height: 0;
        flex: 0 0 auto;
        max-width: 48px;
        min-width: 40px;
        padding: 8px 10px;
        color: #0f0;
      }

      .review-nav-button.review-nav-button--icon .nav-back-svg {
        width: 16px;
        height: 16px;
      }
      
      .export-btn:hover {
        background-color: rgba(0, 100, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      /* Import/Export buttons on setup screen */
      .setup-data-controls {
        display: flex;
        gap: 10px;
        margin: 10px 0;
      }
      
      .setup-data-btn {
        background-color: rgba(0, 50, 0, 0.7);
        flex: 1;
        padding: 8px 5px;
        font-size: 0.9rem;
        min-height: 36px;
      }
      
      .setup-data-btn:hover {
        background-color: rgba(0, 80, 0, 0.9);
      }
      
      /* PRO Button Styling */
      
      /* User Management System Styles */
      .user-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        max-height: min(58vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid rgba(0, 255, 140, 0.35);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        background: linear-gradient(180deg, rgba(0, 18, 10, 0.65) 0%, rgba(0, 8, 6, 0.85) 100%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.05),
          0 12px 40px rgba(0, 0, 0, 0.45);
      }
      
      /* Large screen adjustments */
      @media (min-width: 1600px) {
        #admin-dashboard {
          width: 100%;
          max-width: 1100px;
        }
        
        /* Increase font size slightly for better readability on large screens */
        #admin-dashboard {
          font-size: 16px;
        }
        
        /* Enhance form elements for larger screens */
        .user-form {
          padding: 20px;
        }
        
        /* Make user list taller on large screens */
        .user-list {
          max-height: min(62vh, 720px);
        }
      }

      /* Admin dashboard content containers for future features */
      .admin-section {
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 8px;
        background-color: rgba(0, 20, 0, 0.5);
      }
      
      .admin-section-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: #0f0;
        text-align: center;
        text-shadow: 0 0 5px #0f0;
      }
      
      /* For future feature tabs or navigation in admin dashboard */
      .admin-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
      }
      
      .admin-nav-button {
        background-color: rgba(0, 40, 0, 0.6);
        border: 1px solid #0a0;
        color: #0f0;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
      }
      
      .admin-nav-button:hover, .admin-nav-button.active {
        background-color: rgba(0, 80, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }

      /* Lock screen animations */
      @keyframes glowText {
        0% { text-shadow: 0 0 5px var(--app-theme-accent); }
        50% { text-shadow: 0 0 20px var(--app-theme-accent), 0 0 30px var(--app-theme-accent); }
        100% { text-shadow: 0 0 5px var(--app-theme-accent); }
      }

      @keyframes borderGlow {
        0% { border-color: var(--app-theme-accent); }
        50% { border-color: var(--app-theme-accent); box-shadow: 0 0 20px var(--app-theme-accent); }
        100% { border-color: var(--app-theme-accent); }
      }

      /* Lock screen specific styles (uses --app-theme-* from Pro Settings) */
      #lock-screen {
        position: relative;
        z-index: 2;
        text-align: center;
        background: var(--app-theme-panel);
        padding: 20px;
        border-radius: 14px;
        color: var(--app-theme-text);
        max-width: 400px;
        margin: auto;
        box-shadow: 0 0 28px var(--app-theme-accent), inset 0 0 20px rgba(0, 0, 0, 0.25);
        border: 1px solid var(--app-theme-accent);
        animation: pulse 2s infinite alternate;
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      #lock-screen::before {
        content: "";
        position: absolute;
        left: calc(50% - 91px); /* Adjusting for the wider input field */
        top: 292px;
        color: var(--app-theme-text);
        font-weight: bold;
        font-size: 18px;
        text-shadow: 0 0 8px var(--app-theme-accent);
        font-family: 'Share Tech Mono', monospace;
        z-index: 5;
      }

      /* Lock screen input styling */
      #lock-screen input {
        margin: 8px auto;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid var(--app-theme-accent);
        color: var(--app-theme-text);
        padding: 10px 12px;
        width: min(200px, 86vw);
        max-width: 100%;
        border-radius: 5px;
        font-size: 15px;
        text-align: center;
        outline: none;
        box-shadow: 0 0 15px var(--app-theme-accent);
        caret-color: var(--app-theme-accent);
      }

      #lock-screen input::placeholder {
        opacity: 0.55;
      }

      #lock-screen input:hover,
      #lock-screen input:focus {
        box-shadow: 0 0 15px var(--app-theme-accent);
        outline: none;
        border-color: var(--app-theme-accent);
        animation: borderGlow 1.5s infinite;
        background: rgba(0, 0, 0, 0.75);
      }

      #lock-screen button {
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid var(--app-theme-accent);
        color: var(--app-theme-text);
        padding: 12px 16px;
        width: min(200px, 86vw);
        max-width: 100%;
        margin: 10px auto 16px;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace;
        font-size: 1.05em;
        transition: all 0.3s ease;
        border-radius: 5px;
        letter-spacing: 1px;
      }

      #lock-screen button:hover {
        background: rgba(0, 0, 0, 0.65);
        box-shadow: 0 0 20px var(--app-theme-accent);
        transform: scale(1.02);
        animation: borderGlow 1.5s infinite;
      }

      /* Brand logo - lock screen (prominent) */
      .brand-logo-lock {
        width: 100%;
        max-width: 140px;
        height: 140px;
        margin: 0 auto 16px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--app-theme-accent);
        box-shadow: 0 0 25px var(--app-theme-accent), inset 0 0 15px rgba(0, 0, 0, 0.3);
        background: rgba(0, 0, 0, 0.35);
      }
      .brand-logo-lock img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      /* Brand logo - global (visible on every screen over matrix rain) */
      .brand-logo-global {
        position: fixed;
        bottom: 14px;
        left: 14px;
        z-index: 5000;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--app-theme-accent);
        box-shadow: 0 0 18px var(--app-theme-accent), 0 0 35px rgba(0, 0, 0, 0.4);
        background: rgba(0, 0, 0, 0.5);
        pointer-events: auto;
        cursor: pointer;
        padding: 0;
        margin: 0;
        font: inherit;
        line-height: 0;
        -webkit-appearance: none;
        appearance: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      .brand-logo-global:hover {
        transform: scale(1.06);
        box-shadow: 0 0 22px var(--app-theme-accent), 0 0 40px rgba(0, 0, 0, 0.45);
      }
      .brand-logo-global:focus-visible {
        outline: 2px solid var(--app-theme-accent, #0f0);
        outline-offset: 3px;
      }
      .brand-logo-global img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
      }
      @media (max-width: 480px) {
        .brand-logo-global { width: 44px; height: 44px; bottom: 10px; left: 10px; }
        .brand-logo-lock { max-width: 110px; height: 110px; }
      }

      /* Lock screen v2 — motion (lightweight, theme-aware) */
      @keyframes lock-screen-v2-halo {
        0%, 100% {
          box-shadow: 0 0 28px rgba(0, 0, 0, 0.55), 0 0 22px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        50% {
          box-shadow: 0 0 40px rgba(0, 0, 0, 0.42), 0 0 48px var(--app-theme-accent, #0f0), inset 0 0 32px rgba(0, 255, 0, 0.05);
        }
      }
      @keyframes lock-screen-v2-logo-pulse {
        0%, 100% {
          box-shadow: 0 0 20px var(--app-theme-accent, #0f0), inset 0 0 18px rgba(0, 255, 0, 0.07);
          filter: brightness(1);
        }
        50% {
          box-shadow: 0 0 40px var(--app-theme-accent, #0f0), 0 0 56px rgba(0, 255, 0, 0.2);
          filter: brightness(1.09);
        }
      }
      @keyframes lock-screen-v2-cta-pulse {
        0%, 100% {
          box-shadow: 0 0 16px rgba(0, 255, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        50% {
          box-shadow: 0 0 28px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
      }
      @keyframes lock-screen-v2-key-glow {
        0%, 100% { box-shadow: 0 0 12px rgba(0, 255, 0, 0.25); }
        50% { box-shadow: 0 0 22px var(--app-theme-accent, #0f0); }
      }
      @keyframes lock-screen-v2-scanlines {
        0%, 100% { opacity: 0.22; }
        50% { opacity: 0.38; }
      }

      /* Lock screen v2 — compact but never clips on mobile */
      #lock-screen.lock-screen-v2 {
        width: min(100%, 420px) !important;
        max-width: 420px !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 auto !important;
        padding: 8px 14px 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: stretch !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        animation: lock-screen-v2-halo 3.8s ease-in-out infinite !important;
      }
      #lock-screen.lock-screen-v2::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
      }
      .lock-screen-v2-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: clamp(5px, 1vh, 8px);
        min-height: 0;
        flex: 1 1 auto;
        overflow: visible;
        justify-content: flex-start;
        z-index: 0;
      }
      .lock-screen-v2-inner::before {
        content: '';
        position: absolute;
        pointer-events: none;
        inset: 0;
        border-radius: 12px;
        background: repeating-linear-gradient(
          0deg,
          transparent,
          transparent 3px,
          rgba(0, 255, 0, 0.04) 3px,
          rgba(0, 255, 0, 0.04) 4px
        );
        animation: lock-screen-v2-scanlines 5s ease-in-out infinite;
        z-index: 0;
      }
      .lock-screen-v2-inner > * {
        position: relative;
        z-index: 1;
      }
      .lock-screen-v2 .brand-logo-lock {
        width: clamp(92px, 17vh, 124px) !important;
        height: clamp(92px, 17vh, 124px) !important;
        max-width: 124px !important;
        margin: 0 auto 2px !important;
        border-width: 3px !important;
        animation: lock-screen-v2-logo-pulse 2.6s ease-in-out infinite alternate !important;
      }
      .lock-screen-v2-greet {
        margin: 4px 0 2px;
        text-align: center;
        font-size: clamp(0.82rem, 2.8vw, 1.05rem);
        color: rgba(210, 255, 220, 0.95);
        font-weight: 600;
        letter-spacing: 0.045em;
        line-height: 1.25;
        max-width: 92%;
        padding: 0 10px;
        text-wrap: balance;
        overflow-wrap: anywhere;
        text-shadow: 0 0 14px rgba(0, 255, 100, 0.35);
      }
      .lock-screen-v2-title-main {
        margin: 0;
        text-align: center;
        font-size: clamp(1.05rem, 4vw, 1.35rem);
        font-weight: 800;
        letter-spacing: 0.07em;
        line-height: 1.12;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 14px var(--app-theme-accent, #0f0);
        animation: glowText 2.8s ease-in-out infinite alternate;
      }
      .lock-screen-v2-title-main.lock-screen-v2-title-main--temp-brand {
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-family: 'Orbitron', 'Share Tech Mono', monospace;
        font-weight: 900;
        background: linear-gradient(90deg, #8bffbd 0%, #39ff9c 35%, #00ffc8 68%, #7fffd4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        text-shadow:
          0 0 10px rgba(57, 255, 156, 0.55),
          0 0 20px rgba(0, 255, 200, 0.35),
          0 0 34px rgba(0, 180, 120, 0.25);
        filter: drop-shadow(0 0 6px rgba(80, 255, 170, 0.45));
      }
      .lock-screen-v2-title-sub {
        margin: 0;
        text-align: center;
        font-size: clamp(0.95rem, 3.4vw, 1.15rem);
        font-weight: 800;
        letter-spacing: 0.09em;
        line-height: 1.12;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 12px var(--app-theme-accent, #0f0);
        animation: glowText 3.2s ease-in-out infinite alternate-reverse;
      }
      .lock-screen-v2-tag {
        margin: 0;
        text-align: center;
        font-size: clamp(0.75rem, 2.4vw, 0.88rem);
        color: rgba(140, 220, 155, 0.95);
        font-style: italic;
        text-shadow: 0 0 10px rgba(0, 255, 80, 0.25);
      }
      .lock-screen-v2-last {
        margin: 0;
        text-align: center;
        font-size: clamp(0.68rem, 2.1vw, 0.8rem);
        color: rgba(120, 185, 135, 0.92);
      }
      .lock-screen-v2-last--name {
        margin-top: 4px;
        font-size: clamp(0.85rem, 2.8vw, 1.05rem);
        font-weight: 800;
        letter-spacing: 0.08em;
        color: rgba(170, 255, 200, 0.98);
        text-shadow: 0 0 14px rgba(0, 255, 120, 0.22);
      }
      #account-policy-block-screen {
        min-height: 100dvh;
        box-sizing: border-box;
        padding: max(20px, env(safe-area-inset-top, 0px)) max(18px, 4vw) max(24px, env(safe-area-inset-bottom, 0px));
        background: #0a0203;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .account-policy-block-panel {
        width: 100%;
        max-width: 520px;
        border: 2px solid #ff2a2a;
        border-radius: 12px;
        background: linear-gradient(180deg, #1a0508 0%, #0d0204 100%);
        box-shadow: 0 0 32px rgba(255, 40, 40, 0.35), inset 0 0 60px rgba(80, 0, 0, 0.25);
        padding: 22px 20px;
        font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'Courier New', monospace;
      }
      .account-policy-block-panel--burned {
        border-color: #882222;
        box-shadow: 0 0 28px rgba(40, 0, 0, 0.85);
      }
      .account-policy-block-row {
        display: flex;
        gap: 16px;
        align-items: flex-start;
      }
      .account-policy-block-x {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 2px solid #ff4a4a;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1;
        font-weight: 700;
        background: rgba(60, 0, 0, 0.6);
      }
      .account-policy-block-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ff3a3a;
        flex-shrink: 0;
        background: #200808;
      }
      .account-policy-block-title {
        margin: 0 0 10px 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.02em;
      }
      .account-policy-block-lead {
        margin: 0 0 14px 0;
        color: #f0e8e8;
        font-size: 0.88rem;
        line-height: 1.55;
      }
      .account-policy-block-list {
        margin: 0 0 16px 0;
        padding-left: 1.2em;
        color: rgba(255, 230, 230, 0.92);
        font-size: 0.82rem;
        line-height: 1.6;
      }
      .account-policy-block-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
      }
      .account-policy-block-btn {
        font-family: inherit;
        cursor: pointer;
        padding: 10px 14px;
        border-radius: 6px;
        border: 1px solid #ff4a4a;
        background: rgba(80, 0, 0, 0.45);
        color: #fff;
        font-size: 0.8rem;
      }
      .account-policy-block-btn:hover {
        background: rgba(120, 20, 20, 0.55);
      }
      .lock-screen-v2-status-stack {
        width: 100%;
        display: grid;
        gap: 2px;
        justify-items: center;
      }
      .lock-screen-v2-livepanel {
        width: 100%;
        border: 1px solid rgba(80, 255, 170, 0.35);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(0, 24, 18, 0.88), rgba(0, 12, 9, 0.92));
        box-shadow: 0 0 16px rgba(0, 255, 140, 0.12), inset 0 0 10px rgba(0, 255, 120, 0.08);
        padding: 7px 9px;
        box-sizing: border-box;
      }
      .lock-screen-v2-live-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        color: #9ff7d1;
        letter-spacing: 0.08em;
        font-weight: 700;
      }
      .lock-screen-v2-live-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #41ff9a;
        box-shadow: 0 0 12px rgba(65, 255, 154, 0.9);
        animation: lock-screen-v2-live-dot 1.2s ease-in-out infinite;
      }
      .lock-screen-v2-live-grid {
        margin-top: 6px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 8px;
      }
      .lock-screen-v2-live-cell {
        border: 1px solid rgba(100, 255, 180, 0.25);
        border-radius: 7px;
        padding: 4px 6px;
        background: rgba(0, 22, 16, 0.55);
      }
      .lock-screen-v2-live-k {
        display: block;
        font-size: clamp(0.55rem, 1.8vw, 0.64rem);
        color: rgba(150, 235, 200, 0.82);
        letter-spacing: 0.06em;
      }
      .lock-screen-v2-live-v {
        display: block;
        margin-top: 2px;
        font-size: clamp(0.72rem, 2.2vw, 0.84rem);
        color: #d4ffe9;
        font-weight: 700;
      }
      .lock-screen-v2-live-feed {
        margin-top: 6px;
        border: 1px solid rgba(120, 255, 200, 0.3);
        border-radius: 8px;
        padding: 5px 7px;
        font-size: clamp(0.62rem, 2vw, 0.74rem);
        color: #bafde0;
        background: rgba(0, 18, 12, 0.65);
        letter-spacing: 0.04em;
        min-height: 1.8em;
      }
      .lock-screen-v2-live-bar {
        margin-top: 6px;
        height: 5px;
        border-radius: 999px;
        background: rgba(40, 120, 80, 0.35);
        overflow: hidden;
      }
      .lock-screen-v2-mech-strip {
        margin-top: 6px;
        border: 1px solid rgba(100, 255, 190, 0.25);
        border-radius: 7px;
        padding: 4px 6px;
        font-size: clamp(0.54rem, 1.8vw, 0.64rem);
        text-align: center;
        color: #9be8c9;
        letter-spacing: 0.08em;
        background: rgba(0, 16, 11, 0.55);
      }
      .lock-screen-v2.lock-screen-ai-heavy {
        box-shadow: 0 0 36px rgba(74, 255, 173, 0.35), 0 0 60px rgba(122, 76, 255, 0.2) !important;
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-livepanel {
        border-color: rgba(129, 255, 215, 0.55);
        box-shadow: 0 0 24px rgba(0, 255, 170, 0.2), inset 0 0 20px rgba(109, 71, 255, 0.14);
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-title-main,
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-title-sub {
        text-shadow: 0 0 18px var(--app-theme-accent, #0f0), 0 0 30px rgba(114, 71, 255, 0.3);
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-mech-strip {
        border-color: rgba(153, 255, 222, 0.45);
        box-shadow: 0 0 14px rgba(109, 255, 196, 0.16);
      }
      .lock-screen-v2.lock-screen-ai-stealth {
        box-shadow: 0 0 14px rgba(70, 255, 170, 0.14) !important;
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-livepanel {
        border-color: rgba(100, 220, 190, 0.22);
        box-shadow: 0 0 8px rgba(0, 255, 140, 0.08), inset 0 0 8px rgba(0, 255, 120, 0.05);
        background: linear-gradient(180deg, rgba(0, 16, 14, 0.82), rgba(0, 10, 9, 0.9));
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-title-main,
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-title-sub {
        text-shadow: 0 0 8px rgba(106, 255, 181, 0.35);
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-mech-strip {
        border-color: rgba(100, 210, 180, 0.22);
        background: rgba(0, 12, 10, 0.5);
      }
      .lock-screen-v2-live-bar-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #47ff9f, #ffd66e);
        box-shadow: 0 0 10px rgba(71, 255, 159, 0.6);
        transition: width 0.45s ease;
      }
      @keyframes lock-screen-v2-live-dot {
        0%, 100% { opacity: 0.5; transform: scale(0.8); }
        50% { opacity: 1; transform: scale(1); }
      }
      .lock-screen-v2-status-line {
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: clamp(0.72rem, 2.3vw, 0.86rem);
        letter-spacing: 0.05em;
        color: rgba(168, 240, 180, 0.95);
        text-shadow: 0 0 10px rgba(0, 255, 80, 0.24);
      }
      .lock-screen-v2-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #46ff74;
        box-shadow: 0 0 10px rgba(70, 255, 116, 0.95), 0 0 2px rgba(255, 255, 255, 0.6) inset;
        animation: lock-screen-v2-status-ping 1.3s ease-in-out infinite;
        flex-shrink: 0;
      }
      @keyframes lock-screen-v2-status-ping {
        0%, 100% { opacity: 0.55; transform: scale(0.86); }
        50% { opacity: 1; transform: scale(1); }
      }
      .lock-screen-v2-key {
        width: 100%;
        box-sizing: border-box;
        padding: clamp(8px, 1.6vh, 12px) 12px;
        margin: 0;
        font-size: clamp(0.85rem, 2.6vw, 1rem);
        text-align: center;
        font-family: 'Share Tech Mono', monospace;
        background: rgba(0, 0, 0, 0.58);
        border: 1px solid var(--app-theme-accent, #0f0);
        border-radius: 10px;
        color: var(--app-theme-text, #0f0);
        outline: none;
        animation: lock-screen-v2-key-glow 2.4s ease-in-out infinite;
        caret-color: var(--app-theme-accent, #0f0);
      }
      .lock-screen-v2-key:focus {
        animation: none;
        box-shadow: 0 0 20px var(--app-theme-accent, #0f0), 0 0 8px rgba(255, 255, 255, 0.08) inset;
      }
      .lock-screen-v2-key:disabled {
        opacity: 0.65;
        animation: none;
      }
      .lock-screen-v2-key-wrap {
        width: 100%;
        position: relative;
      }
      .lock-screen-v2-actions {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
      }
      .lock-screen-v2-actions--single button {
        width: 166px !important;
        max-width: 166px !important;
        flex: 0 0 166px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .lock-screen-v2-actions button {
        flex: 0 0 auto;
        margin: 0 !important;
        width: 166px !important;
        max-width: 166px !important;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 7px 9px !important;
        font-size: clamp(0.66rem, 2.05vw, 0.8rem) !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
        letter-spacing: 0.055em !important;
        border-radius: 10px !important;
        border: 1px solid var(--app-theme-accent, #0f0) !important;
        background: rgba(0, 28, 0, 0.62) !important;
        color: var(--app-theme-text, #0f0) !important;
        box-shadow: 0 0 18px rgba(0, 255, 0, 0.36), 0 0 34px rgba(0, 255, 120, 0.14),
          inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace !important;
        transition: filter 0.18s ease, transform 0.15s ease;
        animation: lock-screen-v2-cta-pulse 2.1s ease-in-out infinite;
      }
      .lock-screen-v2-actions button:hover:not(:disabled) {
        filter: brightness(1.15);
        transform: translateY(-1px);
        animation: none;
        box-shadow: 0 0 26px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
      }
      .lock-screen-v2-actions button:disabled {
        cursor: wait;
        opacity: 0.75;
        animation: none;
      }
      .lock-screen-v2-mode {
        width: 100%;
        border: 1px solid rgba(0, 255, 160, 0.4);
        border-radius: 16px;
        padding: 8px;
        background: linear-gradient(180deg, rgba(0, 44, 18, 0.82), rgba(0, 17, 9, 0.78));
        box-shadow: inset 0 0 16px rgba(0, 255, 140, 0.18), 0 0 22px rgba(0, 255, 120, 0.14);
      }
      .lock-screen-v2-mode-title {
        margin: 0 0 10px 0;
        text-align: center;
        font-size: clamp(0.78rem, 2.2vw, 0.98rem);
        letter-spacing: 0.11em;
        color: #d9fff1;
        font-weight: 800;
      }
      .lock-screen-v2-mode-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
      }
      .lock-screen-v2-mode-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 12px;
        border-radius: 12px;
        border: 1px solid rgba(0, 255, 130, 0.45);
        background: linear-gradient(180deg, rgba(0, 50, 21, 0.9), rgba(0, 26, 13, 0.92));
        color: #e2ffef;
        font-size: clamp(0.7rem, 2.2vw, 0.9rem);
        font-weight: 800;
        letter-spacing: 0.05em;
        cursor: pointer;
        box-shadow: 0 0 14px rgba(0, 255, 120, 0.18);
        transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
      }
      .lock-screen-v2-mode-btn:hover {
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 0 20px rgba(0, 255, 130, 0.28);
      }
      .lock-screen-v2-mode-btn.is-active {
        border-color: rgba(120, 255, 180, 0.92);
        box-shadow: 0 0 12px rgba(80, 255, 150, 0.35);
      }
      .mode-select-screen {
        position: relative;
        z-index: 8;
        min-height: 100dvh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(8px, 1.8vw, 14px);
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(3, 17, 12, 0.97) 0%, rgba(2, 11, 7, 0.98) 100%);
        overflow-x: hidden;
        overflow-y: auto;
      }
      body.mode-select-active #matrix,
      body.mode-select-active #date-time {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
      }
      body.mode-select-active {
        overflow: hidden !important;
        height: 100dvh;
      }
      .mode-select-card {
        width: min(860px, 100%);
        border: 1px solid rgba(123, 255, 196, 0.55);
        border-radius: 20px;
        padding: clamp(10px, 2vw, 14px);
        background: rgba(4, 22, 14, 0.95);
        box-shadow: 0 0 20px rgba(0, 255, 130, 0.16);
      }
      .mode-select-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 6px 10px;
        border: 1px solid #7dffc4;
        border-radius: 999px;
        font-size: clamp(0.58rem, 1.8vw, 0.72rem);
        color: #d7fff0;
        background: #052915;
        box-shadow: 0 0 18px rgba(0, 255, 120, 0.14);
      }
      .mode-select-sub {
        margin: 6px 0 8px 0;
        text-align: center;
        font-size: clamp(0.64rem, 1.8vw, 0.78rem);
        line-height: 1.25;
        color: #c9ffe6;
      }
      .mode-select-hint {
        margin: 6px 0 0 0;
        text-align: center;
        font-size: clamp(0.52rem, 1.45vw, 0.6rem);
        color: #cbffe4;
      }
      .mode-game-previews {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(120, 255, 190, 0.2);
      }
      .mode-game-previews-title {
        margin: 0 0 6px 0;
        text-align: center;
        color: #dfffee;
        font-size: clamp(0.5rem, 1.4vw, 0.62rem);
        letter-spacing: 0.08em;
        font-weight: 800;
        text-transform: uppercase;
      }
      .mode-game-previews-slider {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
      }
      .mode-game-previews-slider::before,
      .mode-game-previews-slider::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 18px;
        pointer-events: none;
        z-index: 2;
      }
      .mode-game-previews-slider::before {
        left: 0;
        background: linear-gradient(90deg, rgba(1, 12, 8, 0.72), rgba(1, 12, 8, 0));
      }
      .mode-game-previews-slider::after {
        right: 0;
        background: linear-gradient(270deg, rgba(1, 12, 8, 0.72), rgba(1, 12, 8, 0));
      }
      .mode-game-previews-track {
        display: flex;
        transition: transform 0.35s ease;
        will-change: transform;
      }
      .mode-game-preview-card {
        margin: 0;
        border: 1px solid rgba(120, 255, 190, 0.22);
        border-radius: 8px;
        overflow: hidden;
        background: rgba(3, 18, 12, 0.76);
        min-width: 100%;
        box-sizing: border-box;
      }
      .mode-game-preview-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        aspect-ratio: 16 / 9;
        /* Dim + transparent preview blend */
        opacity: 0.55;
        filter: brightness(0.72) saturate(0.9) contrast(0.95);
      }
      .mode-game-previews-dots {
        margin-top: 6px;
        display: flex;
        justify-content: center;
        gap: 5px;
      }
      .mode-game-previews-dot {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        border: 0;
        cursor: pointer;
        background: rgba(185, 255, 215, 0.4);
        padding: 0;
      }
      .mode-game-previews-dot.is-active {
        background: #94ffd0;
        box-shadow: 0 0 8px rgba(148, 255, 208, 0.55);
      }
      .mode-game-preview-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border-radius: 999px;
        border: 1px solid rgba(130, 255, 200, 0.6);
        background: rgba(2, 18, 12, 0.84);
        color: #b8ffe2;
        cursor: pointer;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        line-height: 1;
      }
      .mode-game-preview-arrow--prev { left: 6px; }
      .mode-game-preview-arrow--next { right: 6px; }
      .mode-game-preview-arrow:hover { filter: brightness(1.1); }
      .setup-platforms-toggle {
        margin: 10px auto 8px;
        width: 100%;
        max-width: 360px;
        display: flex;
        justify-content: center;
      }
      .setup-platforms-wrap {
        margin: 4px auto 12px;
        width: 100%;
        max-width: 360px;
      }
      .mode-platforms {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(120, 255, 190, 0.26);
      }
      .mode-platforms-title {
        margin: 0 0 6px 0;
        text-align: center;
        color: #ddfff0;
        font-size: clamp(0.52rem, 1.45vw, 0.6rem);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 800;
      }
      .mode-platforms-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
      }
      .mode-platform-link {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid rgba(120, 255, 190, 0.28);
        background: rgba(4, 20, 14, 0.72);
      }
      .mode-platform-link:hover {
        filter: brightness(1.08);
      }
      .mode-platform-logo {
        width: 100%;
        max-width: 84px;
        height: 28px;
        object-fit: contain;
        display: block;
      }
      .platform-logo-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 84px;
        min-height: 28px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: rgba(220, 245, 230, 0.95);
        text-align: center;
      }
      .platform-angel-card__logo.platform-logo-fallback,
      .mode-platform-logo.platform-logo-fallback {
        max-width: 120px;
        min-height: 28px;
      }
      .mode-platform-note {
        margin: 0;
        text-align: center;
        font-size: clamp(0.44rem, 1.25vw, 0.5rem);
        color: #c9ffe7;
        letter-spacing: 0.03em;
      }
      .mode-select-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(10px, 3vw, 18px);
        align-items: stretch;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
      }
      .mode-select-option {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        cursor: pointer;
        transition: transform 0.14s ease, filter 0.14s ease;
        position: relative;
        overflow: visible;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        text-align: center;
      }
      .mode-select-option-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px 8px 12px;
        border-radius: 14px;
        border: 2px solid rgba(120, 255, 190, 0.35);
        background: rgba(2, 18, 12, 0.88);
        box-shadow: 0 0 16px rgba(0, 255, 120, 0.1);
        min-height: 100%;
        box-sizing: border-box;
      }
      .mode-select-option--pc .mode-select-option-frame {
        border-color: rgba(100, 180, 255, 0.55);
        box-shadow: 0 0 18px rgba(60, 140, 255, 0.15);
      }
      .mode-select-option--mobile .mode-select-option-frame {
        border-color: rgba(80, 255, 180, 0.55);
        box-shadow: 0 0 18px rgba(0, 255, 140, 0.14);
      }
      .mode-select-option-label {
        display: block;
        font-size: clamp(0.72rem, 2.2vw, 0.88rem);
        font-weight: 800;
        letter-spacing: 0.14em;
        color: #e8fff4;
      }
      .mode-select-option-caption {
        display: block;
        font-size: clamp(0.52rem, 1.6vw, 0.62rem);
        color: #9fd;
        line-height: 1.25;
        opacity: 0.92;
      }
      .mode-select-option::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.16s ease;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.08) inset;
      }
      .mode-select-option:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: none;
      }
      .mode-select-option:hover::after {
        opacity: 1;
      }
      .mode-select-option--pc {
        border-color: transparent;
        box-shadow: none;
      }
      .mode-select-option--pc:hover {
        box-shadow: none;
      }
      .mode-select-option--mobile {
        border-color: transparent;
        box-shadow: none;
      }
      .mode-select-option--mobile:hover {
        box-shadow: none;
      }
      @keyframes mode-cta-pulse {
        0% { transform: translateY(0); filter: brightness(1); }
        50% { transform: translateY(-1px); filter: brightness(1.08); }
        100% { transform: translateY(0); filter: brightness(1); }
      }
      @keyframes mode-cta-glow {
        0% { box-shadow: 0 0 18px rgba(0, 255, 120, 0.18), inset 0 0 22px rgba(0,0,0,0.35); }
        50% { box-shadow: 0 0 30px rgba(0, 255, 150, 0.28), inset 0 0 22px rgba(0,0,0,0.35); }
        100% { box-shadow: 0 0 18px rgba(0, 255, 120, 0.18), inset 0 0 22px rgba(0,0,0,0.35); }
      }
      .mode-select-option--pc {
        animation: mode-cta-pulse 2.2s ease-in-out infinite, mode-cta-glow 2.2s ease-in-out infinite;
      }
      .mode-select-option--mobile {
        animation: mode-cta-pulse 2.6s ease-in-out infinite, mode-cta-glow 2.6s ease-in-out infinite;
      }
      .mode-select-option:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
      }
      .mode-select-option-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
      }
      .mode-select-option-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        border: 1px solid #eafff3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #0f5b35, #08311f);
        box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08), 0 10px 18px rgba(0, 0, 0, 0.32);
      }
      .mode-select-option--pc .mode-select-option-icon {
        background: linear-gradient(180deg, #2a74ff, #10307a);
      }
      .mode-select-option--mobile .mode-select-option-icon {
        background: linear-gradient(180deg, #1de9b6, #0b5f46);
      }
      .mode-select-option-title {
        font-size: clamp(0.84rem, 2.1vw, 1rem);
        font-weight: 900;
        letter-spacing: 0.06em;
      }
      .mode-select-option-desc {
        margin: 0;
        font-size: clamp(0.64rem, 1.8vw, 0.78rem);
        line-height: 1.35;
        color: #d1ffe7;
      }
      .mode-select-option-img {
        display: block;
        width: 100%;
        max-width: 140px;
        max-height: clamp(64px, 16vw, 96px);
        height: auto;
        margin: 0 auto;
        object-fit: contain;
        object-position: center bottom;
        border-radius: 0;
        background: transparent;
      }
      .mode-select-option-media {
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        min-height: clamp(64px, 16vw, 96px);
      }
      .mode-select-option:hover .mode-select-option-frame {
        transform: translateY(-2px);
        filter: brightness(1.06);
      }
      @media (max-width: 760px) {
        .lock-screen-v2 .brand-logo-lock {
          width: 82px;
          height: 82px;
          margin-bottom: 6px;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(1.02rem, 5.1vw, 1.28rem);
          margin: 2px 0 4px 0;
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(0.74rem, 3.2vw, 0.86rem);
          margin: 0 0 4px 0;
        }
        .mode-select-grid,
        .lock-screen-v2-mode-row {
          grid-template-columns: 1fr 1fr;
        }
        .mode-select-option-img {
          max-height: 72px;
          max-width: 120px;
        }
        .mode-select-option-media {
          min-height: 72px;
        }
        .mode-platforms-row {
          grid-template-columns: 1fr 1fr;
        }
        .mode-platform-logo {
          max-width: 76px;
          height: 24px;
        }
      }
      @media (min-width: 1024px) {
        .mode-select-screen {
          padding: 22px;
          align-items: center;
        }
        .mode-select-card {
          width: min(980px, 100%);
          padding: 20px 22px;
          border-radius: 24px;
        }
        .lock-screen-v2 .brand-logo-lock {
          width: 120px;
          height: 120px;
          margin-bottom: 10px;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(2rem, 2.4vw, 2.5rem);
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(1.05rem, 1.25vw, 1.3rem);
        }
        .mode-select-sub {
          font-size: 0.95rem;
          margin: 10px 0 14px;
          line-height: 1.4;
        }
        .lock-screen-v2-mode {
          padding: 14px;
        }
        .mode-select-option-img {
          max-height: 110px;
          max-width: 180px;
        }
        .mode-select-option-media {
          min-height: 110px;
        }
        .mode-select-grid {
          max-width: 620px;
          gap: 20px;
        }
        .mode-platforms {
          margin-top: 12px;
          padding-top: 10px;
        }
        .mode-platforms-title {
          font-size: 0.78rem;
          margin-bottom: 8px;
        }
        .mode-platforms-row {
          gap: 12px;
        }
        .mode-platform-link {
          padding: 10px;
          gap: 7px;
        }
        .mode-platform-logo {
          max-width: 130px;
          height: 46px;
        }
        .mode-platform-note {
          font-size: 0.66rem;
        }
        .mode-select-chip {
          margin-top: 12px;
          font-size: 0.72rem;
          padding: 8px 12px;
        }
        .mode-select-hint {
          font-size: 0.75rem;
          margin-top: 10px;
        }
        .mode-game-previews {
          margin-top: 12px;
          padding-top: 12px;
        }
        .mode-game-previews-title {
          font-size: 0.74rem;
          margin-bottom: 8px;
        }
        .mode-game-previews-slider {
          max-width: 860px;
          margin: 0 auto;
        }
        .mode-game-preview-arrow {
          width: 28px;
          height: 28px;
          font-size: 14px;
        }
      }
      .lock-screen-v2-mode-note {
        margin: 6px 0 0 0;
        font-size: clamp(0.56rem, 1.7vw, 0.7rem);
        color: rgba(172, 255, 204, 0.84);
      }
      .lock-screen-v2-status {
        min-height: 1.15em;
        text-align: center;
        font-size: clamp(0.65rem, 2vw, 0.78rem);
        font-weight: 700;
        margin: 0;
      }
      .lock-screen-v2-status--busy {
        color: #7eecff;
        text-shadow: 0 0 10px rgba(100, 230, 255, 0.55);
      }
      .lock-screen-v2-status--caps {
        color: #ffea00;
        text-shadow: 0 0 10px rgba(255, 234, 0, 0.65);
      }
      .lock-screen-v2-newrow {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 0;
        border: 1px solid rgba(0, 255, 0, 0.38);
        border-radius: 10px;
        padding: clamp(4px, 0.8vh, 6px) 8px;
        background: rgba(0, 20, 0, 0.58);
        box-sizing: border-box;
        box-shadow: 0 0 12px rgba(0, 255, 0, 0.12);
      }
      .lock-screen-v2-newrow-btn {
        flex: 0 0 auto;
        padding: clamp(5px, 1vh, 7px) 10px !important;
        font-size: clamp(0.62rem, 1.9vw, 0.74rem) !important;
        font-weight: 800 !important;
        letter-spacing: 0.045em !important;
        border-radius: 8px !important;
        border: 1px solid #0c6 !important;
        background: #013a1d !important;
        color: #d8ffe8 !important;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace !important;
        white-space: nowrap;
        box-shadow: 0 0 12px rgba(0, 255, 100, 0.2);
        transition: filter 0.15s ease, box-shadow 0.15s ease;
      }
      .lock-screen-v2-newrow-btn:hover {
        filter: brightness(1.12);
        box-shadow: 0 0 18px rgba(0, 255, 120, 0.35);
      }
      .lock-screen-v2-newrow-pay {
        flex: 1;
        min-width: 0;
        font-size: clamp(0.6rem, 1.8vw, 0.72rem);
        line-height: 1.3;
        color: rgba(185, 255, 205, 0.95);
        text-align: left;
        overflow: hidden;
        white-space: nowrap;
      }
      .lock-screen-v2-newrow-pay-live {
        display: block;
        min-width: 100%;
        max-width: 100%;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.45s ease, transform 0.45s ease;
        font-size: clamp(0.72rem, 2vw, 0.94rem);
        color: rgba(192, 255, 225, 0.98);
        font-family: 'Share Tech Mono', 'VT323', 'Courier New', monospace;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-shadow: 0 0 8px rgba(112, 255, 170, 0.35), 0 0 18px rgba(80, 255, 150, 0.22);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 1.06;
      }
      .lock-screen-v2-newrow-pay-live.dir-up {
        transform: translateY(9px);
      }
      .lock-screen-v2-newrow-pay-live.dir-down {
        transform: translateY(-9px);
      }
      .lock-screen-v2-newrow-pay-live.is-visible {
        opacity: 1;
        transform: translateY(0);
      }
      .lock-screen-v2-newopts {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-top: 4px;
      }
      .lock-screen-v2-newopts button {
        flex: 1;
        padding: 7px 6px !important;
        font-size: clamp(0.65rem, 2vw, 0.76rem) !important;
        margin: 0 !important;
        width: auto !important;
        border-radius: 8px !important;
      }
      /* Create Account — distinct blue CTA vs green theme */
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type {
        background: linear-gradient(165deg, #1d4ed8 0%, #2563eb 45%, #1e40af 100%);
        border: 1px solid rgba(147, 197, 253, 0.85);
        color: #f0f7ff;
        text-shadow:
          0 0 10px rgba(96, 165, 250, 0.55),
          0 1px 0 rgba(0, 20, 60, 0.45);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.12),
          0 0 14px rgba(37, 99, 235, 0.35);
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type:hover {
        background: linear-gradient(165deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
        border-color: rgba(191, 219, 254, 0.95);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.18),
          0 0 22px rgba(59, 130, 246, 0.55);
        animation: none;
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type:focus-visible {
        outline: 2px solid rgba(147, 197, 253, 0.95);
        outline-offset: 2px;
      }
      /* Payment Proof — silver / chrome secondary CTA */
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type {
        background: linear-gradient(
          165deg,
          #e4e7ec 0%,
          #bcc1cc 38%,
          #8f96a3 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.72);
        color: #1c1f26;
        text-shadow:
          0 1px 0 rgba(255, 255, 255, 0.45),
          0 0 1px rgba(0, 0, 0, 0.15);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.55),
          inset 0 -1px 0 rgba(0, 0, 0, 0.12),
          0 0 12px rgba(200, 210, 225, 0.28);
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type:hover {
        background: linear-gradient(
          165deg,
          #eef1f6 0%,
          #c8cdd8 40%,
          #9aa2b0 100%
        );
        border-color: rgba(255, 255, 255, 0.92);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.65),
          inset 0 -1px 0 rgba(0, 0, 0, 0.1),
          0 0 18px rgba(220, 228, 238, 0.45);
        animation: none;
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type:focus-visible {
        outline: 2px solid rgba(226, 232, 240, 0.95);
        outline-offset: 2px;
      }
      .lock-screen-v2-admin {
        flex: 0 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(0, 255, 0, 0.42);
        border-radius: 11px;
        padding: clamp(6px, 1.1vh, 9px) 9px 7px;
        background: rgba(0, 14, 0, 0.55);
        box-shadow: 0 0 18px rgba(0, 255, 0, 0.16);
      }
      .lock-screen-v2-admin-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 6px;
        font-size: clamp(0.68rem, 2.1vw, 0.8rem);
        letter-spacing: 0.2em;
        font-weight: 800;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 10px var(--app-theme-accent, #0f0);
      }
      .lock-screen-v2-admin-banner::before,
      .lock-screen-v2-admin-banner::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--app-theme-accent, #0f0), transparent);
        opacity: 0.75;
      }
      .lock-screen-v2-admin-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 6px;
      }

      /* ADMIN INFO toggle: hide the lock-key UI to give space */
      #lock-screen.lock-screen-v2:not(.lock-screen-v2--admin-open) .lock-screen-v2-admin-grid {
        display: none !important;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-key-wrap,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-actions,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-status,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-newrow,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-newopts {
        display: none !important;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-admin {
        flex: 1 1 auto;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-admin-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px 6px;
      }
      .lock-screen-v2-admin-cell {
        border: 1px solid rgba(0, 255, 0, 0.32);
        border-radius: 9px;
        padding: 6px 7px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        background: rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
      }
      .lock-screen-v2-admin-cell:hover {
        border-color: rgba(0, 255, 0, 0.55);
        box-shadow: 0 0 14px rgba(0, 255, 0, 0.15);
      }
      .lock-screen-v2-admin-cell-top {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: clamp(0.62rem, 1.9vw, 0.72rem);
        font-weight: 700;
        color: rgba(200, 255, 210, 0.98);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      .lock-screen-v2-admin-cell-top svg {
        flex-shrink: 0;
        width: 19px;
        height: 19px;
      }
      .lock-screen-v2-admin-cell a {
        font-size: clamp(0.58rem, 1.85vw, 0.7rem);
        color: #e8fff0;
        text-decoration: underline;
        word-break: break-word;
        line-height: 1.25;
      }
      .lock-screen-v2-admin-cell a:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 255, 100, 0.45);
      }
      .lock-screen-v2-copyright {
        margin: 6px 0 0;
        text-align: center;
        font-size: clamp(0.62rem, 2vw, 0.72rem);
        letter-spacing: 0.06em;
        color: rgba(150, 215, 170, 0.82);
        text-shadow: 0 0 10px rgba(0, 255, 100, 0.14);
        user-select: none;
      }
      .lock-screen-v2-codebar {
        margin-top: 6px;
        min-height: 84px;
        max-height: 104px;
        overflow: auto;
        border: 1px solid rgba(60, 210, 255, 0.28);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(0, 16, 28, 0.88), rgba(0, 10, 18, 0.92));
        box-shadow:
          inset 0 0 18px rgba(0, 180, 255, 0.16),
          0 0 10px rgba(0, 150, 220, 0.14);
        padding: 7px 8px;
        text-align: left;
      }
      .reactive-code-line {
        font-family: 'Share Tech Mono', monospace;
        font-size: 0.58rem;
        line-height: 1.28;
        letter-spacing: 0.02em;
        color: rgba(150, 255, 230, 0.92);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.98;
        text-shadow: 0 0 8px rgba(70, 255, 205, 0.22);
      }
      .reactive-code-line:nth-child(2n) {
        color: rgba(120, 220, 255, 0.86);
      }
      .reactive-code-line--muted {
        color: rgba(120, 180, 210, 0.72);
      }
      .reactive-code-line--hot {
        color: #e8fff7 !important;
        text-shadow:
          0 0 8px rgba(80, 255, 180, 0.75),
          0 0 16px rgba(110, 220, 255, 0.45);
        font-weight: 700;
      }
      .input-screen-reactive-rails {
        pointer-events: none;
        position: absolute;
        top: 122px;
        bottom: 102px;
        left: 0;
        right: 0;
        z-index: 1;
      }
      .input-screen-reactive-rail {
        position: absolute;
        width: 44px;
        border: 1px solid rgba(60, 210, 255, 0.24);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(0, 16, 25, 0.55), rgba(0, 8, 16, 0.4));
        box-shadow: inset 0 0 18px rgba(0, 140, 255, 0.12);
        padding: 6px 4px;
        overflow: hidden;
      }
      .input-screen-reactive-rail--left { left: -52px; }
      .input-screen-reactive-rail--right { right: -52px; }
      .input-screen-reactive-rail .reactive-code-line {
        font-size: 0.5rem;
        line-height: 1.18;
      }
      .input-mobile-code-stream {
        margin: 10px auto 8px;
        width: 100%;
        max-width: 360px;
        min-height: 74px;
        max-height: 116px;
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid rgba(60, 210, 255, 0.3);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(0, 18, 28, 0.58), rgba(0, 10, 20, 0.44));
        box-shadow: inset 0 0 20px rgba(0, 140, 255, 0.14);
        padding: 7px 8px;
        text-align: left;
        -webkit-overflow-scrolling: touch;
      }
      .input-special-features-toggle {
        margin-top: 8px;
      }
      .input-special-features-panel {
        margin: 8px auto 0;
        width: 100%;
        max-width: 360px;
        padding: 10px;
        border: 1px solid rgba(0, 255, 170, 0.42);
        border-radius: 10px;
        background: rgba(0, 22, 12, 0.72);
        box-shadow: inset 0 0 14px rgba(0, 255, 140, 0.1);
      }
      .lock-screen-v2-contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding: 7px 7px;
        border-radius: 9px;
        border: 1px solid rgba(0, 255, 0, 0.38);
        background: rgba(0, 0, 0, 0.35);
        color: #e8fff0;
        text-decoration: none;
        font-size: clamp(0.6rem, 1.9vw, 0.72rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      .lock-screen-v2-contact-btn:hover {
        border-color: rgba(0, 255, 0, 0.62);
        box-shadow: 0 0 14px rgba(0, 255, 0, 0.18);
        color: #fff;
      }
      .lock-screen-v2-contact-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
      }
      @media (max-height: 640px) {
        #lock-screen.lock-screen-v2 {
          padding: 6px 12px 8px !important;
        }
        .lock-screen-v2-inner {
          gap: 4px;
        }
        .lock-screen-v2 .brand-logo-lock {
          width: clamp(80px, 16vh, 102px) !important;
          height: clamp(80px, 16vh, 102px) !important;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(0.92rem, 3.5vw, 1.12rem) !important;
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(0.82rem, 3vw, 1rem) !important;
        }
      }
      @media (max-width: 430px) {
        #lock-screen.lock-screen-v2 {
          width: min(100%, 372px) !important;
          max-width: 372px !important;
          padding: 6px 10px 8px !important;
        }
        .lock-screen-v2-inner {
          gap: 4px;
        }
        .lock-screen-v2 .brand-logo-lock {
          width: clamp(74px, 15vh, 98px) !important;
          height: clamp(74px, 15vh, 98px) !important;
          border-width: 2px !important;
        }
        .lock-screen-v2-greet {
          font-size: clamp(0.76rem, 2.7vw, 0.96rem) !important;
          margin: 2px 0 1px !important;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(0.92rem, 3.5vw, 1.14rem) !important;
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(0.82rem, 3.1vw, 1.02rem) !important;
        }
        .lock-screen-v2-livepanel {
          padding: 6px 8px !important;
        }
        .lock-screen-v2-key {
          min-height: 40px !important;
          font-size: 0.9rem !important;
          padding: 10px 11px !important;
        }
        .lock-screen-v2-actions button,
        .lock-screen-v2-newrow-btn,
        .lock-screen-v2-newopts button,
        .lock-screen-v2-contact-btn {
          min-height: 38px !important;
          font-size: 0.74rem !important;
          padding: 8px 10px !important;
        }
        .lock-screen-v2-copyright {
          font-size: 0.62rem !important;
          margin-top: 2px !important;
        }
        .lock-screen-v2-codebar {
          min-height: 70px;
          max-height: 92px;
          padding: 5px 6px;
        }
      }
      @media (max-width: 460px), (min-width: 780px) {
        .input-screen-reactive-rails {
          display: none;
        }
      }
      @media (min-width: 1025px) {
        .input-mobile-code-stream,
        .input-special-features-toggle,
        .input-special-features-panel {
          display: none;
        }
      }
      @media (max-height: 560px) {
        #lock-screen.lock-screen-v2 { overflow-y: auto !important; }
        .lock-screen-v2-title-main { font-size: 0.88rem !important; }
        .lock-screen-v2-title-sub { font-size: 0.78rem !important; }
        .lock-screen-v2-admin-cell a { font-size: 0.58rem !important; }
        .lock-screen-v2 .brand-logo-lock {
          width: 72px !important;
          height: 72px !important;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        #lock-screen.lock-screen-v2,
        .lock-screen-v2 .brand-logo-lock,
        .lock-screen-v2-title-main,
        .lock-screen-v2-title-sub,
        .lock-screen-v2-key:not(:focus),
        .lock-screen-v2-actions button:not(:hover),
        .lock-screen-v2-inner::before {
          animation: none !important;
        }
      }

      /* Blinking cursor effect for inputs */
      @keyframes blink-caret {
        from, to { border-right-color: transparent; }
        50% { border-right-color: #0f0; }
      }

      input:focus {
        caret-color: var(--app-theme-accent);
        animation: blink-caret 1s step-end infinite;
      }

      #lock-screen h2.glitch,
      #lock-screen h3.glitch {
        color: var(--app-theme-text);
        margin: 10px 0;
        animation: glowText 2s infinite;
      }

      #lock-screen h2.glitch {
        font-size: 2em;
        margin-bottom: 5px;
      }

      #lock-screen h3.glitch {
        font-size: 1.5em;
        margin-top: 0;
      }

      #lock-screen p.glitch {
        font-size: 1.2em;
        margin: 20px 0;
        color: var(--app-theme-text);
        animation: glowText 3s infinite;
      }

      #lock-screen .wake-up-text {
        font-size: 1.5em;
        margin: 20px 0;
        color: var(--app-theme-text);
        animation: glowText 2s infinite;
        font-weight: bold;
        letter-spacing: 2px;
      }

      #lock-screen .contact-info {
        text-align: left;
        color: #bfffd7;
        padding: 12px;
        background: rgba(0, 10, 0, 0.7);
        border: 1px solid rgba(0, 255, 110, 0.35);
        margin-top: 20px;
        transition: all 0.3s ease;
        border-radius: 8px;
        max-height: 160px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 255, 120, 0.7) rgba(0, 30, 0, 0.5);
      }

      #lock-screen .contact-info:hover {
        border-color: #0f0;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
        background: rgba(0, 20, 0, 0.6);
      }

      #lock-screen .contact-info p {
        margin: 8px 0;
        transition: all 0.3s ease;
        cursor: pointer;
        padding: 7px 10px;
        border-radius: 3px;
        border: 1px solid rgba(0, 255, 120, 0.12);
      }

      #lock-screen .contact-info p strong {
        color: #00ff99;
      }

      #lock-screen .contact-info p:hover {
        color: #fff;
        text-shadow: 0 0 5px #0f0;
        transform: translateX(3px);
        background: rgba(0, 40, 10, 0.7);
        border-color: rgba(0, 255, 120, 0.45);
      }

      #lock-screen .contact-info::-webkit-scrollbar {
        width: 8px;
      }

      #lock-screen .contact-info::-webkit-scrollbar-track {
        background: rgba(0, 22, 0, 0.55);
        border-radius: 8px;
      }

      #lock-screen .contact-info::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(0, 255, 110, 0.9), rgba(0, 140, 70, 0.9));
        border-radius: 8px;
      }

      @media (max-width: 768px) {
        #lock-screen {
          max-width: 90%;
          padding: 20px;
        }

        #lock-screen h2.glitch {
          font-size: 1.5em;
        }

        #lock-screen h3.glitch {
          font-size: 1.2em;
        }

        #lock-screen input,
        #lock-screen button {
          padding: 12px;
          font-size: 1em;
        }
      }

      /* Add new calculator mode styles */
      .mode-switch {
        background-color: rgba(0, 40, 0, 0.8);
        color: #0f0;
        border: 1px solid #0f0;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
      }

      .mode-switch.active {
        background-color: #0f0;
        color: #000;
      }

      .mode-switch:hover {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }

      .scientific-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        margin-bottom: 1px;
      }

      .scientific-row .calc-button {
        font-size: 14px;
        background-color: rgba(0, 60, 0, 0.8);
        color: #0f0;
        border: 1px solid rgba(0, 255, 0, 0.3);
      }

      .scientific-row .calc-button:hover {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
      }

      @media (max-width: 480px) {
        .scientific-row .calc-button {
          font-size: 12px;
          padding: 8px 4px;
        }
      }

      /* Add currency converter styles */
      .currency-converter {
        padding: 10px;
        margin-bottom: 10px;
        background-color: rgba(0, 20, 0, 0.8);
        border-radius: 5px;
      }

      .currency-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        gap: 10px;
      }

      .currency-select {
        flex: 1;
        padding: 8px;
        background-color: rgba(0, 40, 0, 0.8);
        color: #0f0;
        border: 1px solid #0f0;
        border-radius: 4px;
        font-family: 'Share Tech Mono', monospace;
        cursor: pointer;
      }

      .currency-select option {
        background-color: #000;
        color: #0f0;
      }

      .currency-arrow {
        color: #0f0;
        font-size: 20px;
        padding: 0 10px;
      }

      .convert-button {
        width: 100%;
        margin-top: 5px;
        background-color: rgba(0, 60, 0, 0.8) !important;
        color: #0f0 !important;
      }

      .convert-button:hover {
        background-color: rgba(0, 80, 0, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
      }

      @media (max-width: 480px) {
        .currency-row {
          flex-direction: column;
          gap: 5px;
        }
        
        .currency-arrow {
          transform: rotate(90deg);
          padding: 5px;
        }
      }

      /* User Management System Styles (duplicate block — keep in sync with earlier .user-list) */
      .user-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        max-height: min(58vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid rgba(0, 255, 140, 0.35);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        background: linear-gradient(180deg, rgba(0, 18, 10, 0.65) 0%, rgba(0, 8, 6, 0.85) 100%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.05),
          0 12px 40px rgba(0, 0, 0, 0.45);
      }

      /* Enhanced user management styles */
      .user-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        margin-bottom: 5px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 5px;
        background-color: rgba(0, 20, 0, 0.5);
        transition: all 0.3s ease;
      }

      .user-item:hover {
        background-color: rgba(0, 30, 0, 0.7);
        border-color: rgba(0, 255, 0, 0.6);
      }

      .user-item.expired {
        border-color: rgba(255, 0, 0, 0.5);
        background-color: rgba(30, 0, 0, 0.5);
      }

      .user-info {
        flex: 1;
        min-width: 0;
      }

      .user-name {
        font-size: 16px;
        color: #0f0;
        margin-bottom: 3px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .user-meta {
        display: flex;
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        gap: 10px;
        flex-wrap: wrap;
      }

      .user-type {
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 11px;
        text-transform: uppercase;
      }

      .user-type.admin {
        background-color: rgba(0, 100, 0, 0.6);
        color: #fff;
      }

      .user-type.temporary {
        background-color: rgba(100, 100, 0, 0.6);
        color: #fff;
      }

      .user-expiry {
        font-style: italic;
      }

      .expired .user-expiry {
        color: #f55;
      }

      .user-actions {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-start;
      }

      .user-actions button {
        padding: 4px 8px;
        min-height: unset;
        min-width: 60px;
        font-size: 12px;
        margin: 2px;
      }

      .admin-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
        background-color: rgba(0, 20, 0, 0.4);
        border-radius: 5px;
        border: 1px solid rgba(0, 255, 0, 0.2);
      }

      .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        background-color: rgba(0, 30, 0, 0.5);
        border-radius: 5px;
      }

      .stat-label {
        font-size: 12px;
        color: rgba(0, 255, 0, 0.8);
        margin-bottom: 5px;
      }

      .stat-value {
        font-size: 18px;
        font-weight: bold;
        color: #0f0;
      }

      .add-user-btn {
        margin-top: 10px;
        background-color: rgba(0, 80, 0, 0.8);
        font-weight: bold;
      }

      .clear-expired-btn {
        margin-top: 10px;
        background-color: rgba(80, 20, 0, 0.8);
        color: #ffaa99;
      }

      .clear-expired-btn:hover {
        background-color: rgba(120, 30, 0, 0.9);
      }

      /* Mobile adjustments for user management */
      @media (max-width: 768px) {
        .user-item {
          flex-direction: column;
          align-items: flex-start;
        }
        
        .user-actions {
          width: 100%;
          margin-top: 10px;
          justify-content: space-between;
        }
        
        .user-actions button {
          flex: 1;
        }
        
        .admin-stats {
          grid-template-columns: repeat(2, 1fr);
        }
        /* Reduce overly-wide form controls inside admin dashboard only */
        #admin-dashboard input,
        #admin-dashboard select,
        #admin-dashboard button {
          width: 100%;
        }
      }

      /* User Login Screen Styles */
      #user-login-screen {
        position: relative;
        z-index: 5;
        max-width: 500px;
        margin: 0 auto;
        padding: 30px;
        background-color: rgba(0, 10, 0, 0.9);
        border: 1px solid #0f0;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
        text-align: center;
      }

      #user-login-screen h2.glitch {
        color: #0f0;
        margin: 10px 0 20px;
        animation: glowText 2s infinite;
      }

      .login-user-list {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid rgba(0, 255, 0, 0.5);
        border-radius: 8px;
      }

      .login-user-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: rgba(0, 20, 0, 0.7);
      }

      .login-user-item:last-child {
        border-bottom: none;
      }

      .login-user-item:hover {
        background-color: rgba(0, 40, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.4) inset;
      }

      .login-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(0, 80, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        margin-right: 15px;
        border: 2px solid rgba(0, 255, 0, 0.6);
      }

      .login-user-info {
        flex: 1;
        text-align: left;
      }

      .login-user-name {
        font-size: 16px;
        font-weight: bold;
        color: #0f0;
        margin-bottom: 5px;
      }

      .login-user-type {
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        text-transform: uppercase;
      }

      .login-user-arrow {
        margin-left: 10px;
        font-size: 20px;
        color: rgba(0, 255, 0, 0.7);
      }

      .login-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
      }

      .create-user-btn {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
        font-weight: bold;
      }

      .back-to-lock-btn {
        background-color: rgba(60, 0, 0, 0.7);
        color: #f99;
      }

      /* Mobile adjustments for login screen */
      @media (max-width: 768px) {
        #user-login-screen {
          max-width: 90%;
          padding: 20px;
        }
        
        .login-user-avatar {
          width: 35px;
          height: 35px;
          font-size: 16px;
        }
        
        .login-user-name {
          font-size: 14px;
        }
        
        .login-user-type {
          font-size: 10px;
        }
      }

      /* Enhanced user management styles */
      .user-meta {
        display: flex;
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        gap: 10px;
        flex-wrap: wrap;
      }

      .user-age,
      .user-phone,
      .user-access-key {
        background-color: rgba(0, 40, 0, 0.5);
        padding: 2px 6px;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
        display: inline-block;
      }

      .user-access-key {
        font-family: monospace;
        background-color: rgba(40, 40, 0, 0.5);
        border: 1px dashed rgba(255, 255, 0, 0.3);
        cursor: help;
      }

      .user-actions {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
      }

      .user-actions button {
        padding: 4px 8px;
        min-height: unset;
        min-width: 60px;
        font-size: 12px;
      }

      .user-actions button:nth-child(3) {
        background-color: rgba(60, 60, 0, 0.6);
      }

      .user-actions button:nth-child(3):hover {
        background-color: rgba(80, 80, 0, 0.8);
      }

      @media (max-width: 768px) {
        .user-meta {
          flex-direction: column;
          gap: 5px;
          margin-top: 5px;
        }
        
        .user-age,
        .user-phone,
        .user-access-key {
          max-width: 100%;
        }
        
        .user-actions {
          width: 100%;
          margin-top: 10px;
        }
        
        .user-item {
          padding: 10px;
        }
      }

      /* Admin view toggle buttons */
      .admin-view-toggle {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin: 15px 0;
      }
      
      .view-toggle-btn {
        flex: 1;
        padding: 12px 10px;
        background-color: rgba(0, 30, 0, 0.7);
        border: 1px solid #0a0;
        color: #0f0;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 5px;
      }
      
      .view-toggle-btn:hover {
        background-color: rgba(0, 50, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        transform: translateY(-2px);
      }
      
      .view-toggle-btn.active {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        border-color: #0f0;
        transform: translateY(-2px);
      }
      
      .view-toggle-btn .btn-icon {
        font-size: 18px;
      }
      
      .admin-title {
        font-size: 1.2em;
        color: #ff9900;
        margin: 10px 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
      }
      
      .admin-section-title {
        border-bottom: 1px solid #0f0;
        padding-bottom: 8px;
        margin-top: 20px;
      }

      /* Cinematic admin shell */
      .admin-hero-bar {
        position: relative;
        margin: 12px 0 20px;
        padding: 18px 20px 20px;
        border-radius: 16px;
        background:
          linear-gradient(135deg, rgba(0, 45, 28, 0.55) 0%, rgba(0, 12, 22, 0.92) 50%, rgba(20, 0, 35, 0.45) 100%);
        border: 1px solid rgba(0, 255, 160, 0.28);
        box-shadow:
          0 0 0 1px rgba(0, 0, 0, 0.4),
          0 20px 50px rgba(0, 0, 0, 0.55),
          inset 0 1px 0 rgba(255, 255, 255, 0.07);
        overflow: hidden;
      }

      .admin-hero-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 255, 120, 0.12), transparent 55%),
          radial-gradient(ellipse 60% 50% at 100% 100%, rgba(120, 0, 255, 0.1), transparent 50%);
        pointer-events: none;
      }

      .admin-hero-bar__inner {
        position: relative;
        z-index: 1;
      }

      .admin-hero-bar h4.admin-section-title {
        margin-top: 0;
        border-bottom: none;
        font-size: 1.05rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #b8ffd4;
        text-shadow: 0 0 20px rgba(0, 255, 120, 0.35);
      }

      .admin-stats--cinematic {
        background: rgba(0, 0, 0, 0.28);
        border-radius: 12px;
        border: 1px solid rgba(0, 255, 160, 0.15);
      }

      .admin-stats--cinematic .stat-item {
        background: linear-gradient(180deg, rgba(0, 35, 22, 0.65), rgba(0, 18, 14, 0.9));
        border: 1px solid rgba(0, 255, 140, 0.12);
        border-radius: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .admin-stats--cinematic .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      }

      .direct-access-strip {
        position: relative;
        margin: 0 0 22px;
        padding: 16px 18px;
        border-radius: 14px;
        border: 1px solid rgba(0, 220, 255, 0.35);
        background: linear-gradient(100deg, rgba(0, 40, 55, 0.75), rgba(0, 22, 18, 0.9));
        box-shadow: 0 12px 36px rgba(0, 30, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
      }

      .direct-access-strip__copy {
        flex: 1;
        min-width: 220px;
      }

      .direct-access-strip__copy h5 {
        margin: 0 0 6px;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #7ef;
      }

      .direct-access-strip__copy p {
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.45;
        color: rgba(180, 240, 255, 0.88);
        max-width: 520px;
      }

      .direct-access-strip__cta {
        flex-shrink: 0;
      }

      .direct-access-strip--compact {
        justify-content: center;
        padding: 12px 16px;
        margin: 0 0 18px;
      }

      .direct-access-strip--compact .direct-access-strip__cta {
        width: 100%;
        display: flex;
        justify-content: center;
      }

      .admin-enforcement-terminal {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(0, 255, 180, 0.25);
        background: linear-gradient(165deg, rgba(0, 18, 22, 0.98) 0%, rgba(12, 0, 8, 0.96) 50%, rgba(0, 22, 18, 0.95) 100%);
        box-shadow:
          0 0 0 1px rgba(0, 0, 0, 0.5),
          0 16px 48px rgba(0, 0, 0, 0.55),
          inset 0 1px 0 rgba(0, 255, 200, 0.08),
          inset 0 -40px 80px rgba(255, 40, 40, 0.04);
        font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
      }

      .admin-enforcement-terminal::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: repeating-linear-gradient(
          0deg,
          transparent,
          transparent 2px,
          rgba(0, 255, 160, 0.03) 2px,
          rgba(0, 255, 160, 0.03) 4px
        );
        opacity: 0.45;
      }

      .admin-enforcement-terminal__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        background: rgba(0, 40, 35, 0.55);
        border-bottom: 1px solid rgba(0, 255, 200, 0.2);
      }

      .admin-enforcement-terminal__bar-title {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #6fe;
        text-shadow: 0 0 12px rgba(0, 255, 220, 0.35);
      }

      .admin-enforcement-terminal__bar-pulse {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #0f8;
        box-shadow: 0 0 10px #0f8;
        animation: admin-enf-pulse 1.4s ease-in-out infinite;
      }

      @keyframes admin-enf-pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.45; transform: scale(0.85); }
      }

      .admin-enforcement-terminal__body {
        position: relative;
        padding: 14px;
        z-index: 1;
      }

      .admin-enforcement-terminal__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        margin-top: 12px;
      }

      .admin-enforcement-terminal__panel {
        border: 1px solid rgba(255, 180, 80, 0.35);
        border-radius: 8px;
        padding: 10px 12px;
        background: rgba(0, 0, 0, 0.35);
      }

      .admin-enforcement-terminal__panel--due {
        border-color: rgba(255, 200, 100, 0.45);
      }

      .admin-enforcement-terminal__panel--paid {
        border-color: rgba(80, 255, 160, 0.4);
      }

      .admin-enforcement-terminal__panel h6 {
        margin: 0 0 8px;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #9ec;
      }

      .admin-enforcement-terminal__mono {
        font-size: 0.8rem;
        line-height: 1.5;
        color: #cfe;
      }

      .admin-enforcement-terminal__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
      }

      .admin-command-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
        margin: 18px 0 22px;
      }

      .admin-command-tile {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 16px 16px 18px;
        min-height: 88px;
        text-align: left;
        border: none;
        cursor: pointer;
        border-radius: 14px;
        color: #dfffe8;
        font-family: inherit;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(145deg, rgba(0, 32, 20, 0.92), rgba(0, 10, 14, 0.96));
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

      .admin-command-tile::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.25s ease;
        background: radial-gradient(circle at 30% 20%, rgba(0, 255, 140, 0.15), transparent 55%);
        pointer-events: none;
      }

      .admin-command-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 120, 0.12);
      }

      .admin-command-tile:hover::before {
        opacity: 1;
      }

      .admin-command-tile:focus-visible {
        outline: 2px solid #0f8;
        outline-offset: 3px;
      }

      .admin-command-tile__icon {
        font-size: 1.65rem;
        line-height: 1;
        filter: drop-shadow(0 0 10px rgba(0, 255, 120, 0.35));
        flex-shrink: 0;
      }

      .admin-command-tile__text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
      }

      .admin-command-tile__title {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.11em;
        text-transform: uppercase;
        color: #cfffdd;
      }

      .admin-command-tile__sub {
        font-size: 0.72rem;
        line-height: 1.35;
        color: rgba(160, 220, 190, 0.75);
      }

      .admin-command-tile--accent {
        border-color: rgba(0, 200, 255, 0.45);
        background: linear-gradient(145deg, rgba(0, 38, 52, 0.92), rgba(0, 14, 22, 0.96));
      }

      .admin-command-tile--accent .admin-command-tile__title {
        color: #b8f6ff;
      }

      .admin-command-tile--vault {
        border-color: rgba(100, 140, 255, 0.35);
        background: linear-gradient(145deg, rgba(12, 22, 48, 0.92), rgba(4, 10, 24, 0.96));
      }

      .admin-command-tile--commerce {
        border-color: rgba(255, 200, 80, 0.35);
        background: linear-gradient(145deg, rgba(40, 32, 8, 0.9), rgba(12, 10, 4, 0.95));
      }

      .admin-command-tile--alert {
        border-color: rgba(255, 120, 80, 0.45);
        background: linear-gradient(145deg, rgba(48, 14, 10, 0.9), rgba(18, 6, 4, 0.95));
      }

      .admin-command-tile--alert .admin-command-tile__title {
        color: #ffccb8;
      }

      /* Admin dashboard responsiveness: compact on phones, wider grid on desktop */
      @media (max-width: 520px) {
        #admin-dashboard {
          padding: 12px;
          border-radius: 12px;
          max-height: 92vh;
        }
        #admin-dashboard h3.glitch {
          font-size: 1.02rem;
          margin-bottom: 10px;
        }
        .admin-title {
          font-size: 0.95rem;
          margin-bottom: 10px;
        }
        .admin-hero-bar {
          padding: 12px 12px 14px;
          border-radius: 14px;
          margin: 10px 0 14px;
        }
        .admin-stats {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 8px;
          padding: 8px;
        }
        .stat-item {
          padding: 7px 6px;
        }
        .stat-label {
          font-size: 11px;
        }
        .stat-value {
          font-size: 16px;
        }
        .direct-access-strip {
          padding: 12px;
          border-radius: 14px;
          margin-bottom: 16px;
        }
        .direct-access-strip__copy {
          min-width: 0;
        }
        .direct-access-strip__copy p {
          font-size: 0.78rem;
        }
        .admin-command-grid {
          grid-template-columns: 1fr;
          gap: 10px;
          margin: 14px 0 18px;
        }
        .admin-command-tile {
          padding: 12px 12px 12px 14px;
          min-height: 72px;
          border-radius: 14px;
        }
        .admin-command-tile__icon {
          font-size: 1.35rem;
        }
        .admin-command-tile__title {
          font-size: 0.74rem;
        }
        .admin-command-tile__sub {
          font-size: 0.7rem;
        }
      }

      @media (min-width: 900px) {
        #admin-dashboard {
          padding: 22px 24px 28px;
        }
        .admin-command-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      .admin-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100020;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(0, 0, 0, 0.82);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        box-sizing: border-box;
      }

      .admin-modal {
        width: 100%;
        max-width: 460px;
        border-radius: 16px;
        padding: 22px 22px 18px;
        border: 1px solid rgba(0, 255, 180, 0.35);
        background: linear-gradient(165deg, rgba(0, 36, 24, 0.97), rgba(0, 10, 12, 0.99));
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 80, 60, 0.2);
        box-sizing: border-box;
        max-height: none;
        overflow: visible;
      }

      @media (max-width: 600px) {
        .admin-modal-backdrop {
          align-items: flex-start;
          justify-content: center;
          padding: max(8px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px));
          overflow-y: auto;
          overflow-x: hidden;
          -webkit-overflow-scrolling: touch;
        }
        .admin-modal {
          width: 100%;
          max-width: min(420px, 100%);
          margin: 0 auto;
          padding: 14px 14px 12px;
          max-height: min(86dvh, 560px);
          overflow-y: auto;
          overflow-x: hidden;
          -webkit-overflow-scrolling: touch;
          overscroll-behavior: contain;
          border-radius: 12px;
        }
        .admin-modal h3 {
          font-size: 0.88rem;
          letter-spacing: 0.06em;
        }
        .admin-modal p.sub {
          font-size: 0.76rem;
          margin-bottom: 12px;
        }
        .admin-modal label {
          font-size: 0.65rem;
        }
        .admin-modal input[type="text"],
        .admin-modal input[type="number"] {
          padding: 8px 10px;
          font-size: 16px;
          margin-bottom: 10px;
        }
        .admin-modal .preset-row {
          gap: 6px;
          margin-bottom: 10px;
        }
        .admin-modal .preset-row button {
          padding: 8px 10px;
          font-size: 0.7rem;
          min-height: 40px;
        }
        .admin-modal .modal-actions {
          margin-top: 12px;
          justify-content: stretch;
        }
        .admin-modal .modal-actions button {
          flex: 1;
          min-height: 44px;
          padding: 10px 12px;
        }
      }

      .admin-modal h3 {
        margin: 0 0 6px;
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #9fd;
      }

      .admin-modal p.sub {
        margin: 0 0 16px;
        font-size: 0.82rem;
        line-height: 1.45;
        color: rgba(180, 230, 200, 0.85);
      }

      .admin-modal label {
        display: block;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(140, 220, 170, 0.9);
        margin-bottom: 5px;
      }

      .admin-modal input[type="text"],
      .admin-modal input[type="number"] {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.25);
        background: rgba(0, 14, 10, 0.9);
        color: #d8ffe8;
        font-size: 0.95rem;
      }

      .admin-modal .preset-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
      }

      .admin-modal .preset-row button {
        padding: 6px 12px;
        font-size: 0.72rem;
        border-radius: 8px;
        border: 1px solid rgba(0, 200, 255, 0.35);
        background: rgba(0, 30, 40, 0.8);
        color: #9ef;
        cursor: pointer;
      }

      .admin-modal .preset-row button:hover {
        background: rgba(0, 50, 65, 0.95);
      }

      .admin-modal .modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        justify-content: flex-end;
      }

      .admin-modal .modal-actions button {
        padding: 10px 18px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid rgba(0, 255, 120, 0.4);
      }

      .admin-modal .modal-actions .btn-ghost {
        background: transparent;
        color: #9c9;
      }

      .admin-modal .modal-actions .btn-primary {
        background: linear-gradient(180deg, rgba(0, 120, 70, 0.95), rgba(0, 60, 36, 0.98));
        color: #efe;
      }

      .badge-direct {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: linear-gradient(90deg, rgba(0, 180, 220, 0.35), rgba(120, 0, 200, 0.35));
        border: 1px solid rgba(120, 240, 255, 0.45);
        color: #dff;
        vertical-align: middle;
      }

      .admin-user-card.user-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: linear-gradient(160deg, rgba(0, 28, 16, 0.88), rgba(0, 10, 8, 0.94));
        border: 1px solid rgba(0, 255, 130, 0.22);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }

      .admin-user-card .user-info {
        width: 100%;
      }

      .admin-user-card__head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
      }

      .admin-user-card__name-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        min-width: 0;
      }

      .admin-user-card .user-name {
        margin-bottom: 0;
        font-size: 1.05rem;
      }

      .admin-user-card .user-meta {
        gap: 8px 14px;
        line-height: 1.5;
      }

      .admin-user-card .user-actions {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 12px;
      }

      .admin-user-card .user-actions .user-action-btn {
        max-width: none;
        width: 100%;
        justify-content: center;
        min-height: 38px;
        box-sizing: border-box;
      }

      .admin-user-card .user-permissions {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 255, 120, 0.15);
        width: 100%;
        clear: both;
      }

      .admin-user-card .user-permissions label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        color: rgba(180, 255, 200, 0.9);
        cursor: pointer;
      }

      .admin-user-card .dropdown {
        grid-column: 1 / -1;
      }

      @media (min-width: 520px) {
        .admin-user-card .dropdown {
          grid-column: auto;
        }
      }
      
      .regenerate-key-btn {
        background-color: #330000;
        border-color: #ff3300;
        color: #ff3300;
      }
      
      .regenerate-key-btn:hover {
        background-color: #550000;
        box-shadow: 0 0 10px rgba(255, 51, 0, 0.7);
      }
      
      /* Enhanced Admin Dashboard Styles */
      .admin-action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 15px 0;
      }
      
      .admin-btn {
        padding: 10px 15px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        min-width: 120px;
      }
      
      .add-user-btn {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
      }
      
      .add-user-btn:hover {
        background-color: rgba(0, 130, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
      }
      
      .backup-btn {
        background-color: rgba(0, 60, 100, 0.8);
        color: #9cf;
      }
      
      .backup-btn:hover {
        background-color: rgba(0, 80, 130, 0.9);
        box-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
      }
      
      .import-btn {
        background-color: rgba(30, 70, 30, 0.8);
        color: #9f9;
      }
      
      .import-btn:hover {
        background-color: rgba(40, 90, 40, 0.9);
        box-shadow: 0 0 10px rgba(80, 255, 80, 0.6);
      }
      
      .refresh-btn {
        background-color: rgba(60, 60, 0, 0.8);
        color: #ff9;
      }
      
      .refresh-btn:hover {
        background-color: rgba(80, 80, 0, 0.9);
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
      }
      
      .clear-expired-btn {
        background-color: rgba(80, 20, 0, 0.8);
        color: #ffaa99;
      }
      
      .clear-expired-btn:hover {
        background-color: rgba(120, 30, 0, 0.9);
        box-shadow: 0 0 10px rgba(255, 100, 50, 0.6);
      }
      
      /* User action buttons */
      .user-action-btn {
        padding: 8px;
        border-radius: 4px;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: all 0.2s ease;
        max-width: 180px;
        width: auto;
      }
      
      .edit-btn {
        background-color: rgba(60, 60, 0, 0.7);
        color: #ff9;
      }
      
      .edit-btn:hover {
        background-color: rgba(80, 80, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
      }
      
      .delete-btn {
        background-color: rgba(80, 0, 0, 0.7);
        color: #faa;
      }
      
      .delete-btn:hover {
        background-color: rgba(100, 0, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
      }
      
      .copy-btn {
        background-color: rgba(0, 60, 80, 0.7);
        color: #9df;
      }
      
      .copy-btn:hover {
        background-color: rgba(0, 80, 100, 0.8);
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
      }
      
      .extend-btn {
        background-color: rgba(60, 30, 80, 0.7);
        color: #d9f;
      }
      
      .extend-btn:hover {
        background-color: rgba(80, 40, 100, 0.8);
        box-shadow: 0 0 8px rgba(180, 0, 255, 0.5);
      }
      
      .download-btn {
        background-color: rgba(0, 70, 40, 0.7);
        color: #9fd;
      }
      
      .download-btn:hover {
        background-color: rgba(0, 90, 50, 0.8);
        box-shadow: 0 0 8px rgba(0, 255, 150, 0.5);
      }
      
      /* Admin dropdown styling */
      .dropdown {
        position: relative;
        display: inline-block;
      }
      
      .dropdown-btn {
        background-color: rgba(40, 40, 40, 0.7);
        color: #ccc;
      }
      
      .dropdown-btn:hover {
        background-color: rgba(60, 60, 60, 0.8);
        box-shadow: 0 0 8px rgba(200, 200, 200, 0.5);
      }
      
      .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(10, 10, 10, 0.95);
        min-width: 120px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 0, 0.3);
      }
      
      .dropdown:hover .dropdown-content {
        display: block;
      }
      
      .dropdown-item {
        padding: 10px;
        width: 100%;
        text-align: left;
        border: none;
        background-color: transparent;
        color: #0f0;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
      }
      
      .dropdown-item:hover {
        background-color: rgba(0, 40, 0, 0.7);
      }
      
      /* Button icon styling */
      .btn-icon {
        font-size: 14px;
        display: inline-block;
      }

      @media print {
        body * {
          visibility: hidden;
        }
        #admin-finance-print-root,
        #admin-finance-print-root * {
          visibility: visible;
        }
        #admin-finance-print-root {
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          background: #fff !important;
          color: #111 !important;
        }
        .admin-finance-table th,
        .admin-finance-table td {
          color: #111 !important;
          border-color: #333 !important;
        }
        #admin-finance-print-root .app-data-table,
        #admin-finance-print-root .app-data-table th,
        #admin-finance-print-root .app-data-table td,
        #admin-finance-print-root .app-data-table caption {
          color: #111 !important;
          background: #fff !important;
          border-color: #333 !important;
        }
      }
      
      /* Admin/expired user styling */
      .admin-user {
        border-left: 3px solid #ff9900;
      }
      
      .user-item.expired {
        background-color: rgba(60, 0, 0, 0.2);
        border-left: 3px solid #ff3300;
      }
      
      /* User watermark styling */
      .user-watermark {
        position: fixed;
        top: 10px;
        right: 120px;
        color: rgba(185, 255, 210, 0.95);
        font-size: 11px;
        font-weight: 800;
        pointer-events: none;
        z-index: 110;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        transform: none;
        text-shadow: 0 0 8px rgba(0, 255, 100, 0.22);
        font-family: 'Share Tech Mono', 'VT323', monospace;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 3px 6px;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 0, 0.25);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.22);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        overflow: hidden;
        white-space: nowrap;
        max-width: min(55vw, 240px);
        text-overflow: ellipsis;
        animation: none;
      }
      
      /* Admin greeting styling */
      .admin-greeting {
        position: fixed;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        color: #ff9900;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 1000;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 5px rgba(255, 153, 0, 0.6);
        background-color: rgba(0, 0, 0, 0.7);
        padding: 5px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 153, 0, 0.5);
        pointer-events: none;
        animation: admin-pulse 3s infinite alternate;
        box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
      }

      /* User greeting: same position as admin greeting */
      .admin-greeting.user-greeting {
        color: rgba(185, 255, 210, 0.96);
        text-shadow: 0 0 6px rgba(0, 255, 100, 0.35);
        border: 1px solid rgba(80, 255, 160, 0.45);
        background-color: rgba(0, 0, 0, 0.62);
        box-shadow: 0 0 10px rgba(0, 255, 140, 0.18);
        animation: none;
      }
      
      @keyframes admin-pulse {
        from {
          text-shadow: 0 0 8px rgba(255, 153, 0, 0.5);
          box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
        }
        to {
          text-shadow: 0 0 15px rgba(255, 153, 0, 0.9);
          box-shadow: 0 0 20px rgba(255, 153, 0, 0.6);
        }
      }

      /* Bottom admin navigation buttons */
      .bottom-admin-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        gap: 15px;
      }
      
      .primary-admin-btn {
        flex: 1;
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        background-color: rgba(0, 50, 0, 0.8);
        color: #0f0;
        border: 2px solid #0f0;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
      }
      
      .primary-admin-btn:hover {
        background-color: rgba(0, 70, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
        transform: translateY(-3px);
      }
      
      .primary-admin-btn .btn-icon {
        font-size: 20px;
      }
      
      .active-users-btn {
        background-color: rgba(0, 60, 20, 0.8);
      }
      
      .add-user-btn {
        background-color: rgba(20, 60, 0, 0.8);
      }

      /* User view modal */
      .user-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 9999;
      }
      
      .user-modal-content {
        background-color: rgba(0, 30, 0, 0.95);
        border: 1px solid #0f0;
        border-radius: 10px;
        padding: 20px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
        max-height: 80vh;
        overflow-y: auto;
      }
      
      /* Add max-width to all action buttons to prevent them from being too wide */
      button[class*="action"], 
      [class*="action-btn"],
      .dropdown-btn,
      .user-action-btn,
      .edit-btn,
      .delete-btn,
      .copy-btn,
      .extend-btn,
      .download-btn {
        max-width: 180px !important;
        width: auto !important;
      }
      
      .user-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #0f0;
      }
      
      .user-modal-title {
        color: #0f0;
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .user-modal-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #0f0;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
      }
      
      .user-modal-close:hover {
        transform: scale(1.2);
        color: #ff0;
      }
      
      .user-modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
      }

      /* Full opaque account lockdown — no see-through to lock screen / matrix */
      body.account-lockdown-fullscreen #matrix {
        visibility: hidden !important;
      }
      body.account-lockdown-fullscreen .brand-logo-global {
        visibility: hidden !important;
      }
      .account-lockdown-overlay {
        position: fixed;
        inset: 0;
        z-index: 50000;
        background-color: #0b0000;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        color: #ff6b6b;
        font-family: 'Share Tech Mono', monospace;
        text-align: center;
        box-shadow: inset 0 0 100px rgba(60, 0, 0, 0.65);
      }
      .account-lockdown-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: #0b0000;
        z-index: 0;
        pointer-events: none;
      }
      .account-lockdown-overlay .glitch.lockdown-title-glitch {
        color: #ff2222 !important;
      }
      .account-lockdown-scroll-inner {
        justify-content: center;
      }
      .lockdown-avatar-ring {
        width: clamp(96px, 32vw, 132px);
        height: clamp(96px, 32vw, 132px);
        box-sizing: border-box;
      }
      .lockdown-emoji {
        font-size: clamp(56px, 15vw, 88px);
        line-height: 1;
      }
      .lockdown-title-glitch {
        font-size: clamp(1.35rem, 5.8vw, 2.1rem);
      }
      .lockdown-user-line {
        font-size: clamp(0.8rem, 3.6vw, 0.95rem);
      }
      .lockdown-subline {
        font-size: clamp(0.68rem, 3.1vw, 0.8rem);
      }
      .lockdown-body-text {
        font-size: clamp(0.88rem, 3.6vw, 1.15rem);
      }
      .lockdown-countdown-box {
        font-size: clamp(1.25rem, 6.5vw, 2rem);
        padding: clamp(12px, 3.5vw, 18px) clamp(18px, 5vw, 28px);
      }
      .lockdown-footer-line {
        font-size: clamp(0.75rem, 3.2vw, 0.95rem);
      }

      /* Self-control lock modal — tighter on phones */
      .self-lock-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 20000;
        background-color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        font-family: 'Share Tech Mono', monospace;
        color: #0f0;
        text-align: center;
        box-sizing: border-box;
      }
      .self-lock-modal-card {
        position: relative;
        background: linear-gradient(180deg, #061412, #030a09);
        border: 1px solid rgba(120, 255, 245, 0.45);
        border-radius: 12px;
        padding: 18px 16px;
        max-width: 400px;
        width: 100%;
        margin: auto;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
        flex-shrink: 0;
        box-sizing: border-box;
      }
      .self-lock-modal-card h3.self-lock-modal-title {
        margin-top: 0;
        margin-bottom: 6px;
        font-size: clamp(0.95rem, 3.8vw, 1.25rem);
        color: #cffff6;
        font-weight: bold;
      }
      .self-lock-modal-card .self-lock-help {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        color: #9fd;
        margin-bottom: 10px;
        line-height: 1.4;
        text-align: left;
      }
      .self-lock-unit-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 10px;
      }
      .self-lock-unit-btn {
        padding: 6px 4px;
        min-height: 32px;
        min-width: 0;
        border-radius: 6px;
        cursor: pointer;
        font-size: clamp(10px, 2.9vw, 12px);
        font-weight: bold;
        text-transform: capitalize;
        box-sizing: border-box;
      }
      .self-lock-field-label {
        display: block;
        margin-bottom: 4px;
        font-size: clamp(0.65rem, 2.6vw, 0.75rem);
        color: #bdeeee;
        text-align: left;
      }
      .self-lock-select {
        width: 100%;
        min-height: 34px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: #001f1f;
        color: #dffffb;
        padding: 0 8px;
        font-family: inherit;
        font-size: clamp(12px, 3.2vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-input-row {
        display: flex;
        gap: 6px;
        align-items: stretch;
      }
      .self-lock-num-input {
        flex: 1;
        min-width: 0;
        min-height: 34px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: #001f1f;
        color: #dffffb;
        padding: 0 8px;
        font-family: inherit;
        font-size: clamp(12px, 3.2vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-apply-btn {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: rgba(0, 74, 78, 0.95);
        color: #e6fffc;
        cursor: pointer;
        font-weight: bold;
        font-size: clamp(11px, 2.8vw, 12px);
        white-space: nowrap;
        flex-shrink: 0;
      }
      .self-lock-selected-line {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        color: #9fc;
        margin-bottom: 10px;
      }
      .self-lock-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .self-lock-actions button {
        padding: 7px 12px;
        min-height: 36px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        font-size: clamp(11px, 2.9vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-history-block {
        margin-top: 12px;
        text-align: left;
        border-top: 1px solid rgba(120, 255, 255, 0.3);
        padding-top: 8px;
      }
      @media (max-width: 480px) {
        .self-lock-modal-backdrop {
          align-items: flex-start;
        }
        .self-lock-modal-card {
          padding: 12px 10px;
          max-width: 100%;
          border-radius: 10px;
        }
        .self-lock-unit-btn {
          min-height: 30px;
          padding: 5px 2px;
        }
        .self-lock-actions {
          flex-direction: column;
        }
        .self-lock-actions button {
          width: 100%;
          min-height: 38px;
        }
        .account-lockdown-scroll-inner {
          min-height: 100dvh;
          min-height: 100vh;
          justify-content: center;
          padding-top: max(12px, env(safe-area-inset-top, 0px));
          padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        }
        .lockdown-avatar-ring {
          width: clamp(104px, 36vw, 140px);
          height: clamp(104px, 36vw, 140px);
        }
      }
      
      .user-modal-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      
      .user-modal-item {
        background-color: rgba(0, 40, 0, 0.5);
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 5px;
        border-left: 3px solid #0f0;
        transition: all 0.2s;
      }
      
      .user-modal-item:hover {
        background-color: rgba(0, 60, 0, 0.5);
        transform: translateX(5px);
      }
      
      .user-modal-item-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
      }
      
      .user-modal-item-name {
        font-weight: bold;
        font-size: 1.1rem;
        color: #0f0;
      }
      
      .user-modal-item-type {
        font-size: 0.9rem;
        padding: 2px 8px;
        border-radius: 10px;
        background-color: rgba(0, 100, 0, 0.7);
        color: #0f0;
      }
      
      .user-modal-item-details {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.9rem;
      }
      
      .user-modal-item-detail {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      
      .user-modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #0f0;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }
      
      .user-modal-button {
        padding: 8px 15px;
        background-color: rgba(0, 50, 0, 0.8);
        border: 1px solid #0f0;
        color: #0f0;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.2s;
      }
      
      .user-modal-button:hover {
        background-color: rgba(0, 80, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      .no-users-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        color: #0f0;
        text-align: center;
      }
      
      .no-users-icon {
        font-size: 3rem;
        margin-bottom: 20px;
        opacity: 0.7;
      }
      
      .no-users-text {
        font-size: 1.2rem;
        margin-bottom: 15px;
      }
      
      .no-users-subtext {
        font-size: 0.9rem;
        opacity: 0.7;
      }

      /* Admin button styling */
      .admin-button {
        background-color: #300;
        border-color: #f00;
        color: #ff0;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      
      .admin-button:hover {
        background-color: #500;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
      }
      
      /* User welcome message styling */
      .user-welcome {
        font-size: 1.2rem;
        color: #0f0;
        margin: 15px 0 5px;
        font-weight: bold;
        text-align: center;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: anywhere;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .access-info {
        color: #0f0;
        font-size: 0.9rem;
        margin: 0 0 20px;
        padding: 5px 10px;
        background-color: rgba(0, 50, 0, 0.3);
        border-radius: 5px;
        display: inline-block;
      }

      @keyframes float-up {
        0% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0); }
      }
      
      /* Fix for wide action buttons */
      .user-action-btn, button[class*="action"], [class*="btn"] {
        max-width: 180px !important;
        width: auto !important;
      }
      
      .user-actions, div[class*="actions"], div[class*="action"] {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        max-width: 100%;
        overflow-x: hidden;
      }

      /* App content layout improvements */
      .app-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95%;
        max-width: 500px;
        margin: 0 auto;
      }

      /* Form group styling for better organization */
      .form-group {
        width: 100%;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      /* Make inputs look consistent */
      input, select, button {
        border: 1px solid #00ff00;
        background: rgba(0, 0, 0, 0.7);
        color: #00ff00;
        padding: 10px;
        border-radius: 5px;
        outline: none;
        transition: all 0.3s ease;
      }

      /* Specific styling for number inputs */
      input[type="number"] {
        text-align: center;
        width: 80px;
        margin: 5px 0;
      }

      /* Focus states */
      input:focus, select:focus {
        box-shadow: 0 0 5px #00ff00;
        background: rgba(0, 255, 0, 0.1);
      }

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


/* Session setup (legacy-mobile UI) */
.session-setup-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow-y: auto;
        background: rgba(0, 6, 2, 0.88);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }
      .session-setup-card {
        width: 100%;
        max-width: 440px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        border-radius: 18px;
        border: 1px solid rgba(0, 255, 160, 0.45);
        background: linear-gradient(165deg, rgba(0, 28, 14, 0.97) 0%, rgba(0, 10, 6, 0.98) 55%, rgba(0, 4, 2, 0.99) 100%);
        box-shadow: 0 0 40px rgba(0, 255, 140, 0.12), 0 24px 48px rgba(0, 0, 0, 0.55);
        padding: 18px 16px 16px;
        color: #cfe;
      }
      .session-setup-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 14px;
      }
      .session-stat-pill {
        border-radius: 12px;
        padding: 10px 8px;
        text-align: center;
        border: 1px solid rgba(120, 255, 200, 0.22);
        background: rgba(0, 22, 12, 0.65);
      }
      .session-stat-pill .val {
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.02em;
      }
      .session-stat-pill .lbl {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #8aa;
        margin-top: 4px;
      }
      .session-stat-pill.target .val { color: #6ef; }
      .session-stat-pill.done .val { color: #6f6; }
      .session-stat-pill.left .val { color: #fd6; }
      .session-progress-track {
        height: 6px;
        border-radius: 99px;
        background: rgba(0, 40, 20, 0.8);
        margin-top: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 255, 120, 0.15);
      }
      .session-progress-fill {
        height: 100%;
        border-radius: 99px;
        background: linear-gradient(90deg, #0a8, #0f8, #6fc);
        transition: width 0.35s ease;
      }
      .session-setup-section {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(120, 255, 200, 0.14);
      }
      .session-setup-confirm-btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(0, 255, 140, 0.65);
        background: linear-gradient(180deg, rgba(0, 80, 40, 0.85), rgba(0, 45, 22, 0.9));
        color: #e8fff4;
        font-weight: 800;
        letter-spacing: 0.06em;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 0.78rem;
        box-shadow: 0 0 20px rgba(0, 255, 120, 0.2);
      }
      .session-setup-confirm-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
      }
      .session-setup-warn {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(255, 200, 0, 0.35);
        background: rgba(40, 32, 0, 0.35);
        color: #fd9;
        font-size: 11px;
        line-height: 1.45;
        text-align: center;
      }

      /* Admin rounds — mini 5×5 grid gallery (like Prediction Review) */
      .admin-rounds-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
      }
      .admin-rounds-toolbar__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      .admin-rounds-toolbar__btn {
        min-height: auto !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        font-size: 0.72rem !important;
      }
      .admin-rounds-toolbar__btn--active {
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
        border-color: #0f8 !important;
      }
      .admin-rounds-api-missing {
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid rgba(255, 180, 80, 0.45);
        background: rgba(40, 24, 0, 0.35);
        color: #fd9;
        font-size: 0.88rem;
        line-height: 1.5;
      }
      .admin-rounds-summary {
        margin: 0 0 0.85rem;
        opacity: 0.9;
        font-size: 0.88rem;
        line-height: 1.45;
      }
      .admin-rounds-user-panel {
        margin-bottom: 1rem;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(0, 255, 120, 0.2);
        background: rgba(0, 12, 6, 0.55);
      }
      .admin-rounds-user-panel__label {
        display: block;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #8aa;
        margin-bottom: 8px;
      }
      .admin-user-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .admin-user-chip {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.35);
        background: rgba(0, 24, 12, 0.7);
        color: #cfc;
        cursor: pointer;
        min-height: auto;
        margin: 0;
        font-size: 0.8rem;
        text-align: left;
      }
      .admin-user-chip:hover {
        border-color: #0f8;
        background: rgba(0, 40, 20, 0.85);
      }
      .admin-user-chip--active {
        border-color: #6ef;
        box-shadow: 0 0 14px rgba(0, 200, 255, 0.25);
        background: rgba(0, 48, 32, 0.9);
      }
      .admin-user-chip__name {
        font-weight: 700;
        color: #afa;
      }
      .admin-user-chip__meta {
        font-size: 0.68rem;
        opacity: 0.75;
        color: #8aa;
      }
      .admin-rounds-gallery-header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.65rem;
      }
      .admin-rounds-gallery-title {
        margin: 0;
        font-size: 0.95rem;
        color: #afa;
      }
      .admin-rounds-gallery-legend {
        font-size: 0.72rem;
        color: #8aa;
      }
      .admin-rounds-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 12px;
        max-height: min(72vh, 920px);
        overflow-y: auto;
        padding: 4px 2px 12px;
      }
      .admin-round-card {
        border: 1px solid rgba(0, 255, 120, 0.35);
        border-radius: 10px;
        padding: 8px;
        background: rgba(0, 8, 4, 0.75);
      }
      .admin-round-card__meta {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin-bottom: 6px;
        font-size: 0.65rem;
        line-height: 1.35;
        color: #9bb;
      }
      .admin-round-card__meta time {
        color: #bfb;
        font-weight: 600;
      }
      .admin-round-card__user {
        color: #8dd;
      }
      .admin-round-card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
      }
      .admin-round-tag {
        padding: 1px 5px;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 120, 0.25);
        font-size: 0.6rem;
        text-transform: uppercase;
        color: #8aa;
      }
      .admin-round-tag--angel {
        border-color: rgba(255, 200, 80, 0.5);
        color: #fd9;
      }
      .admin-round-card__tiles {
        font-size: 0.58rem;
        opacity: 0.8;
        word-break: break-all;
      }
      .admin-round-card__grid.review-grid {
        grid-template-columns: repeat(5, 18px);
        gap: 2px;
        margin: 0 auto;
        max-width: 98px;
        justify-content: center;
      }
      .admin-round-card__grid .review-grid-item {
        width: 18px;
        height: 18px;
        font-size: 8px;
        border-radius: 3px;
      }
      .admin-round-card__grid .review-grid-item.mine::before {
        font-size: 10px;
      }
      .admin-round-card__grid .review-grid-item.money-tile {
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.65);
        border-color: #da0 !important;
      }
      .admin-rounds-load-more {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
      }
      .admin-rounds-empty-hint {
        opacity: 0.7;
        font-size: 0.88rem;
      }
      .admin-rounds-user-pick {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }
      .admin-rounds-user-pick__search {
        flex: 1 1 200px;
        min-width: 160px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.4);
        background: rgba(0, 16, 8, 0.9);
        color: #cfc;
        font-size: 0.85rem;
        margin: 0;
        min-height: 40px;
      }
      .admin-rounds-user-pick__select {
        flex: 1 1 240px;
        min-width: 200px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.4);
        background: rgba(0, 16, 8, 0.9);
        color: #afa;
        font-size: 0.82rem;
        margin: 0;
        min-height: 40px;
        cursor: pointer;
      }
      .admin-rounds-user-pick__clear {
        flex: 0 0 auto;
      }
      .admin-rounds-view-controls {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 0.75rem 0;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px dashed rgba(0, 255, 120, 0.25);
        background: rgba(0, 8, 4, 0.5);
      }
      .admin-rounds-view-controls__view {
        font-weight: 700;
      }
      .admin-rounds-view-controls__dismiss {
        opacity: 0.85;
      }
      .admin-rounds-view-controls__hint {
        font-size: 0.72rem;
        color: #8aa;
        flex: 1 1 140px;
      }
      .admin-rounds-collapsed-summary {
        margin: 0.5rem 0 0;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.2);
        background: rgba(0, 12, 6, 0.45);
        font-size: 0.85rem;
        line-height: 1.45;
        color: #9bb;
      }



/* Angel's Cake */
.angels-cake-panel {
        margin: 14px 0 10px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid rgba(255, 180, 220, 0.45);
        background: linear-gradient(145deg, rgba(48, 12, 36, 0.55), rgba(12, 28, 18, 0.75));
        box-shadow: inset 0 0 24px rgba(255, 120, 180, 0.08), 0 0 20px rgba(255, 100, 160, 0.12);
        text-align: left;
      }
      .angels-cake-panel h4 {
        margin: 0 0 6px;
        font-size: 12px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #ffb8e0;
      }
      .angels-cake-panel .cake-hint {
        font-size: 11px;
        line-height: 1.45;
        color: #c9e8d4;
        margin-bottom: 10px;
      }
      .angels-cake-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 10px;
        color: #9ab;
        margin-bottom: 10px;
      }
      .angels-cake-stake-row {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 10px;
      }
      .angels-cake-stake-row input {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 14px;
      }
      .angels-cake-bet-btn {
        width: 100%;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 150, 200, 0.65);
        background: linear-gradient(180deg, rgba(120, 40, 80, 0.85), rgba(60, 20, 45, 0.9));
        color: #fff0f8;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-size: 11px;
        cursor: pointer;
      }
      .angels-cake-bet-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .mini-bet-cell.is-cake-safe {
        box-shadow: 0 0 0 2px rgba(255, 158, 216, 0.95);
        color: #ffd0ec;
      }
      .mini-bet-cell.is-mine-pick {
        background: rgba(180, 30, 30, 0.75) !important;
        border-color: rgba(255, 120, 120, 0.95) !important;
        color: #fff;
      }
      .mini-bet-cell.mini-bet-cell--interactive {
        cursor: pointer;
      }
      .mini-bet-cell.mini-bet-cell--interactive:active {
        transform: scale(0.96);
      }
      .angels-cake-mine-submit-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
      }
      .angels-cake-mine-submit-btn {
        flex: 1 1 140px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 150, 200, 0.6);
        background: rgba(80, 20, 50, 0.85);
        color: #ffd0ec;
        font-weight: bold;
        cursor: pointer;
      }
      .angels-cake-mine-submit-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .angels-cake-mine-submit-btn--secondary {
        background: transparent;
        border-color: rgba(150, 200, 200, 0.4);
        color: #9dd;
        font-weight: normal;
      }
      .angels-cake-pending-banner {
        margin: 0 auto 12px;
        max-width: 520px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(255, 150, 200, 0.5);
        background: rgba(40, 10, 30, 0.65);
        color: #ffd0ec;
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
      }
      .mini-bet-grid.tone-special .mini-bet-cell.is-primary.reappear-level-1 {
        background: rgba(0, 190, 255, 0.34);
        border-color: rgba(110, 225, 255, 0.98);
        box-shadow: 0 0 14px rgba(0, 200, 255, 0.45);
        animation: mini-bet-first-reappear-blink 1s ease-in-out infinite;
      }
      .mini-bet-grid.tone-special .mini-bet-cell.is-primary.reappear-level-2 {
        background: rgba(255, 220, 0, 0.34);
        border-color: rgba(255, 236, 130, 0.98);
        box-shadow: 0 0 14px rgba(255, 220, 0, 0.4);
      }
      .mini-bet-grid.tone-special .mini-bet-cell.is-primary.reappear-level-3 {
        background: rgba(255, 145, 0, 0.36);
        border-color: rgba(255, 188, 90, 0.98);
        box-shadow: 0 0 14px rgba(255, 145, 0, 0.42);
      }
      .mini-bet-grid.tone-special .mini-bet-cell.is-primary.reappear-level-4 {
        background: rgba(255, 50, 50, 0.38);
        border-color: rgba(255, 120, 120, 1);
        box-shadow: 0 0 16px rgba(255, 40, 40, 0.55);
      }
      .attention-alert-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 14px 22px;
        border-radius: 999px;
        border: 2px solid var(--attention-accent);
        background: rgba(25, 45, 22, 0.96);
        color: #fff;
        font-family: inherit;
        font-size: clamp(13px, 3.2vw, 16px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        cursor: pointer;
        box-shadow: 0 0 22px rgba(255, 200, 0, 0.22);
      }
      .attention-alert-btn:hover {
        background: rgba(40, 72, 35, 0.98);
        box-shadow: 0 0 32px rgba(255, 220, 0, 0.42);
      }

      @media (max-width: 640px), (max-height: 760px) {
        .attention-alert-backdrop {
          align-items: flex-start;
          padding-top: max(10px, env(safe-area-inset-top, 0px));
          padding-bottom: max(12px, env(safe-area-inset-bottom, 10px));
        }
        .attention-alert-card {
          max-width: min(96vw, 440px);
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          border-radius: 14px;
        }
        .attention-alert-title {
          margin-bottom: 12px;
          letter-spacing: 0.07em;
        }
        .attention-alert-body {
          margin-bottom: 14px;
          padding: 10px 11px;
          line-height: 1.55;
          max-height: min(38vh, 280px);
        }
        .mini-bet-grid {
          max-width: min(72vw, 180px);
          margin: 8px auto 10px;
          padding: 6px;
          gap: 1px;
        }
        .mini-bet-cell {
          height: 22px;
          font-size: 10px;
        }
        .attention-alert-btn {
          padding: 11px 16px;
          max-width: 240px;
        }
      }

      /* Money Time: step before mine grid — must acknowledge */
      .money-mine-gate-layer {
        position: absolute;
        inset: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 12px;
        animation: attention-alert-bg-in 0.2s ease-out;
      }
      .money-mine-gate-card {
        width: 100%;
        max-width: 560px;
        min-width: min(92vw, 420px);
        max-height: min(88vh, 760px);
        padding: 30px 26px 24px;
        border-radius: 16px;
        border: 2px solid rgba(255, 215, 0, 0.9);
        background: linear-gradient(160deg, rgba(20, 38, 18, 0.98), rgba(0, 12, 0, 0.99));
        box-shadow: 0 0 40px rgba(255, 200, 0, 0.35), inset 0 0 30px rgba(0, 50, 0, 0.3);
        text-align: center;
        font-family: 'Share Tech Mono', ui-monospace, monospace;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .money-mine-gate-title {
        font-size: clamp(22px, 4.2vw, 34px);
        font-weight: bold;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: linear-gradient(90deg, #fff8dc, #ffd700, #ffec8b);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 14px;
        filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.5));
      }
      .money-mine-gate-body {
        font-size: clamp(18px, 3.2vw, 24px);
        line-height: 1.75;
        color: #d5f0d8;
        text-align: left;
        margin-bottom: 24px;
        padding: 20px 22px;
        border-radius: 10px;
        background: rgba(0, 40, 18, 0.5);
        border: 1px solid rgba(255, 215, 0, 0.22);
        max-height: min(56vh, 500px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .money-mine-gate-btn {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: block;
        min-height: 62px;
        padding: 16px 24px;
        border-radius: 999px;
        border: 2px solid #ffd700;
        background: linear-gradient(180deg, rgba(90, 70, 0, 0.95), rgba(30, 24, 0, 0.98));
        color: #fff;
        font-family: inherit;
        font-size: clamp(18px, 3vw, 24px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        box-shadow: 0 0 22px rgba(255, 200, 0, 0.35);
      }
      .money-mine-gate-btn:hover {
        box-shadow: 0 0 32px rgba(255, 220, 0, 0.5);
      }

      .money-intro-hero-tile {
        margin: 12px auto 8px;
        width: min(88vw, 200px);
        aspect-ratio: 1;
        max-height: 34vh;
        border-radius: 16px;
        border: 3px solid #ffd700;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(42px, 18vw, 72px);
        font-weight: bold;
        color: #2a1f00;
        background: radial-gradient(circle at 40% 35%, #fffacd 0%, #ffd700 40%, #b8860b 92%);
        box-shadow: 0 0 28px rgba(255, 200, 0, 0.55);
        animation: money-cell-pulse 1.15s ease-in-out infinite;
      }
      .money-intro-deck {
        text-align: center;
        color: #c8f5c8;
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.5;
        margin: 0 4px 8px;
      }
      .money-moment-footer-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
      }
      .money-moment-btn--ghost {
        flex: 1 1 100px;
        min-height: 48px;
        max-width: 160px;
        border-color: rgba(255, 215, 0, 0.45);
        background: rgba(0, 24, 20, 0.85);
        color: #cfa;
      }
      .money-moment-fullscreen-card {
        max-height: min(96dvh, 720px);
      }
      @media (max-width: 640px), (max-height: 760px) {
        .money-moment-fullscreen-backdrop {
          align-items: flex-start;
          padding-top: max(10px, env(safe-area-inset-top, 0px));
          padding-bottom: max(12px, env(safe-area-inset-bottom, 10px));
        }
        .money-moment-fullscreen-card {
          max-width: min(96vw, 420px);
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          border-radius: 12px;
        }
        .money-moment-fullscreen-scroll {
          padding: 12px 12px 6px;
        }
        .money-moment-fullscreen-footer {
          padding: 10px 12px 12px;
        }
        .money-mine-gate-card {
          max-width: min(96vw, 560px);
          min-width: 0;
          max-height: calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px)));
          padding: 16px 12px 14px;
          border-radius: 12px;
        }
      }
      .money-moment-mines-only .money-moment-title {
        font-size: clamp(16px, 4vw, 22px);
      }

      .admin-finance-actions {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 8px;
        margin-bottom: 14px;
      }
      .admin-finance-user-layout {
        display: grid;
        gap: 14px;
        grid-template-columns: 1fr;
      }
      @media (min-width: 720px) {
        .admin-finance-user-layout {
          grid-template-columns: minmax(220px, 320px) 1fr;
          align-items: start;
        }
      }
      .admin-finance-user-picker {
        border: 1px solid rgba(0, 170, 102, 0.55);
        border-radius: 10px;
        padding: 12px;
        background: rgba(0, 22, 18, 0.92);
        text-align: left;
      }
      .admin-finance-user-picker label {
        display: block;
        color: #8ec;
        font-size: 0.82rem;
        margin-bottom: 6px;
      }
      .admin-finance-user-picker input[type='search'],
      .admin-finance-user-picker input[type='text'] {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border-radius: 8px;
        border: 2px solid #0c8;
        background: #011910;
        color: #f5fff5;
        font-size: 16px;
        margin-bottom: 0;
        -webkit-appearance: none;
        appearance: none;
      }
      .admin-finance-user-picker input[type='search']::placeholder {
        color: rgba(180, 220, 190, 0.65);
      }
      .admin-finance-search-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 10px;
      }
      .admin-finance-search-row input {
        flex: 1 1 160px;
        min-width: 0;
        margin-bottom: 0 !important;
      }
      .admin-finance-search-btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 8px;
        border: 2px solid #0f0;
        background: rgba(0, 55, 28, 0.95);
        color: #cfc;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
        font-family: inherit;
        -webkit-tap-highlight-color: rgba(0, 255, 100, 0.25);
      }
      .admin-finance-search-btn:active {
        background: rgba(0, 80, 40, 0.98);
      }
      .admin-finance-suggest-wrap {
        margin-top: 8px;
        border: 2px solid rgba(0, 200, 120, 0.45);
        border-radius: 10px;
        background: #021612;
        overflow: hidden;
      }
      .admin-finance-suggest-head {
        padding: 8px 12px;
        font-size: 0.78rem;
        color: #9cdb9c;
        background: rgba(0, 40, 28, 0.95);
        border-bottom: 1px solid rgba(0, 180, 100, 0.25);
      }
      .admin-finance-suggest-list {
        list-style: none;
        margin: 0;
        padding: 4px 0;
        max-height: min(48vh, 380px);
        min-height: 120px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .admin-finance-user-option {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 14px 12px;
        min-height: 52px;
        border: none;
        border-bottom: 1px solid rgba(0, 100, 60, 0.35);
        background: transparent;
        color: #e8fff0;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.35;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 255, 120, 0.2);
      }
      .admin-finance-user-option:last-child {
        border-bottom: none;
      }
      .admin-finance-user-option:hover,
      .admin-finance-user-option:focus-visible {
        background: rgba(0, 80, 50, 0.45);
        outline: none;
      }
      .admin-finance-user-option.is-selected {
        background: rgba(0, 90, 55, 0.65);
        box-shadow: inset 3px 0 0 #0f6;
      }
      .admin-finance-user-opt-id {
        display: inline-block;
        font-weight: bold;
        color: #ffd78a;
        margin-right: 8px;
      }
      .admin-finance-user-opt-name {
        color: #e8fff0;
      }
      .admin-finance-user-opt-phone {
        display: block;
        margin-top: 4px;
        font-size: 0.88rem;
        color: #9ec;
      }
      .admin-finance-clear-user {
        margin-top: 8px;
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
        border: 1px solid rgba(255, 120, 100, 0.45);
        background: rgba(40, 12, 8, 0.6);
        color: #fca;
        font-size: 14px;
        cursor: pointer;
        font-family: inherit;
      }
      .admin-finance-metric-card {
        border: 1px solid rgba(255, 200, 100, 0.35);
        border-radius: 10px;
        padding: 12px 14px;
        background: rgba(25, 22, 0, 0.88);
        text-align: left;
      }
      .admin-finance-metric-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: clamp(0.8rem, 2.8vw, 0.92rem);
        color: #fec;
      }
      .admin-finance-metric-row:last-child {
        border-bottom: none;
      }
      .admin-finance-metric-row span:first-child {
        color: #9ec;
        flex: 0 1 55%;
      }
      .admin-finance-metric-row span:last-child {
        text-align: right;
        word-break: break-word;
      }
      .admin-finance-bet-card {
        border: 1px solid rgba(0, 170, 102, 0.25);
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: rgba(0, 20, 16, 0.85);
        text-align: left;
        font-size: clamp(0.78rem, 2.6vw, 0.88rem);
        word-break: break-word;
      }

      .user-performance-shell {
        max-width: min(720px, 100%);
        margin: 0 auto;
        padding: 0 12px 24px;
        box-sizing: border-box;
        text-align: left;
      }
      .user-performance-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
      }
      @media (min-width: 400px) {
        .user-performance-grid {
          grid-template-columns: 1fr 1fr;
        }
      }
      .user-performance-stat {
        border: 1px solid rgba(255, 200, 80, 0.35);
        border-radius: 10px;
        padding: 12px 14px;
        background: rgba(28, 22, 0, 0.88);
      }
      .user-performance-stat label {
        display: block;
        font-size: 0.75rem;
        color: #9ec;
        margin-bottom: 4px;
      }
      .user-performance-stat strong {
        font-size: 1.05rem;
        color: #ffd78a;
      }
      .user-performance-round {
        border-bottom: 1px solid rgba(0, 120, 80, 0.25);
        padding: 10px 0;
        font-size: clamp(0.78rem, 2.6vw, 0.88rem);
        color: #dfe;
        word-break: break-word;
      }

      .app-data-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 14px;
        border: 1px solid rgba(0, 170, 102, 0.4);
        border-radius: 10px;
        background: rgba(0, 14, 12, 0.94);
        box-sizing: border-box;
      }
      .app-data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: clamp(0.7rem, 2.3vw, 0.84rem);
        color: #dfe;
      }
      .app-data-table caption {
        caption-side: top;
        text-align: left;
        padding: 10px 12px 6px;
        font-weight: 700;
        color: #9ec;
        font-size: clamp(0.78rem, 2.5vw, 0.9rem);
      }
      .app-data-table th,
      .app-data-table td {
        padding: 8px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        text-align: left;
        vertical-align: top;
      }
      .app-data-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: rgba(0, 42, 32, 0.98);
        color: #bfe;
        font-weight: 600;
        white-space: nowrap;
      }
      .app-data-table tbody tr:hover td {
        background: rgba(0, 80, 50, 0.15);
      }
      .app-data-table tbody tr:last-child td {
        border-bottom: none;
      }
      .app-data-table .num {
        text-align: right;
        font-variant-numeric: tabular-nums;
      }
      .app-data-table .out-win {
        color: #8f8;
        font-weight: 600;
      }
      .app-data-table .out-loss {
        color: #f88;
        font-weight: 600;
      }
      .app-data-table .pl-pos {
        color: #8f8;
      }
      .app-data-table .pl-neg {
        color: #f88;
      }
      .app-data-table .mono {
        font-size: 0.92em;
        color: #bde;
      }

      .money-moment-sub-readable {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.65;
        font-size: clamp(12px, 3.1vw, 15px);
      }
      .money-moment-sub-readable .money-moment-lead {
        display: block;
        margin-bottom: 10px;
        color: #e0ffe8;
      }
      .money-moment-sub-readable .money-moment-meta {
        display: block;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0, 36, 16, 0.55);
        border: 1px solid rgba(255, 215, 0, 0.2);
        color: #c8f5d0;
        font-size: clamp(11px, 2.9vw, 13px);
      }

      #notification {
        margin: 10px 0;
        color: #ff0;
        background-color: #300;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ff0;
      }

      #date-time,
      #version-info,
      #watermark {
        position: fixed;
        color: #0f0;
        z-index: 100;
        text-shadow: 0 0 5px #0f0;
      }

      #date-time {
        font-size: 12px;
        line-height: 1.25;
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 3px 6px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.8);
      }

      #version-info {
        font-size: 12px;
        bottom: 10px;
        left: 10px;
      }

      #watermark {
        font-size: 14px;
        bottom: 10px;
        right: 10px;
        color: #ff0;
        text-shadow: 0 0 5px #ff0;
      }

      .glitch {
        animation: glitch 1s linear infinite;
      }

      @keyframes glitch {
        2%,
        64% {
          transform: translate(2px, 0) skew(0deg);
        }
        4%,
        60% {
          transform: translate(-2px, 0) skew(0deg);
        }
        62% {
          transform: translate(0, 0) skew(5deg);
        }
      }

      .back-button,
      .stats-button {
        position: absolute;
        top: 10px;
        padding: 5px 10px;
        font-size: 12px;
        background-color: #300;
        border-color: #f00;
      }

      .back-button {
        left: 10px;
      }

      .back-button.back-button--icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        min-width: 32px;
        min-height: 28px;
        font-size: 0;
        line-height: 0;
        color: #f88;
      }

      .back-button.back-button--icon .nav-back-svg {
        display: block;
      }

      .prominent-back-button.prominent-back-button--icon {
        padding: 6px 10px;
        font-size: 0;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #0f0;
      }

      .prominent-back-button.prominent-back-button--icon .nav-back-svg {
        width: 18px;
        height: 18px;
      }

      .calc-back-btn.calc-back-btn--icon {
        padding: 6px 8px;
        font-size: 0;
        min-width: 34px;
        justify-content: center;
      }

      .calc-back-btn.calc-back-btn--icon .nav-back-svg {
        width: 18px;
        height: 18px;
      }

      .stats-button {
        right: 50px;
      }

      #rounds-data {
        max-height: 200px;
        overflow-y: auto;
        margin-bottom: 10px;
      }

      .customization-panel {
        margin-bottom: 20px;
      }

      .slider-container {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
      }

      .slider-container label {
        flex: 1;
      }

      .slider-container input {
        flex: 2;
        margin: 0 10px;
      }

      .slider-container span {
        flex: 0 0 40px;
      }

      .ai-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 10px 0;
      }

      .ai-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .ai-button.ai-active {
        background-color: #060;
      }

      .hidden {
        display: none;
      }

      .modal {
        display: block;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0, 0, 0);
        background-color: rgba(0, 0, 0, 0.4);
      }

      .modal-content {
        background-color: rgba(139, 0, 0, 0.8); /* Dark red with 80% opacity */
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%; /* Make it responsive */
        max-width: 400px; /* Set a max width */
        border-radius: 10px; /* Optional: add rounded corners */
        text-align: center; /* Center the text */
      }

      .modal-content p {
        font-weight: bold; /* Make the text bold */
        color: #fff; /* Change text color to white for better contrast */
      }

      /* Calculator styles */
      #calculator-screen {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #001500; /* Dark green background */
        padding: 0;
        border-radius: 8px;
        color: #0f0; /* Matrix green text */
        width: 45%;
        max-width: 800px;
        min-width: 320px;
        margin: auto;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); /* Green glow */
        border: 1px solid #0f0; /* Matrix green border */
        overflow: hidden;
        animation: none;
      }

      /* Calculator header */
      .calculator-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #002800; /* Darker green background */
        width: 100%;
        padding: 15px;
        color: #0f0;
        border-bottom: 1px solid #0f0;
      }

      #calculator-display {
        width: 100%;
        font-size: 40px;
        padding: 20px;
        background-color: #001800;
        color: #0f0;
        border: none;
        text-align: right;
        font-family: 'Share Tech Mono', monospace;
        min-height: 120px;
        max-height: 200px; /* Add maximum height */
        display: block; /* Change to block */
        box-sizing: border-box;
        margin: 0;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
        overflow-x: auto;
        overflow-y: auto;
        white-space: pre-wrap; /* Allow text to wrap */
        word-wrap: break-word; /* Break long words */
        scrollbar-width: thin;
        scrollbar-color: #0f0 #001800;
        position: relative; /* Add position relative */
      }

      /* Webkit scrollbar styling */
      #calculator-display::-webkit-scrollbar {
        width: 10px;
        height: 10px;
      }

      #calculator-display::-webkit-scrollbar-track {
        background: #001800;
        border-radius: 4px;
      }

      #calculator-display::-webkit-scrollbar-thumb {
        background: #0f0;
        border-radius: 4px;
        border: 2px solid #001800;
      }

      #calculator-display::-webkit-scrollbar-thumb:hover {
        background: #00ff00;
        cursor: pointer;
      }

      /* Add a container for the display content */
      #calculator-display-content {
        padding: 10px;
        min-width: min-content; /* Ensure content doesn't shrink below its minimum width */
      }

      /* Calculator grid container */
      .calculator-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        background-color: #001500;
      }

      /* Top row special buttons */
      .calc-top-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        background-color: #001500;
      }

      /* Calculator button styles */
      .calc-button {
        margin: 1px;
        padding: 15px;
        font-size: 26px;
        background-color: #004400; /* Lighter green background */
        color: #ffffff; /* White text */
        border: 1px solid rgba(0, 255, 0, 0.3);
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Share Tech Mono', monospace;
        width: auto;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        font-weight: bold;
      }

      /* Operation buttons with special styling */
      .calc-button.operation {
        background-color: #003366; /* Blue background */
        color: #00ffff; /* Cyan text */
        border-color: rgba(0, 255, 255, 0.3);
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
      }

      /* Clear and Delete buttons special styling */
      .calc-button.clear {
        background-color: #660000; /* Dark red background */
        color: #ff3333; /* Bright red text */
        border-color: rgba(255, 0, 0, 0.3);
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
        font-weight: bold;
      }

      .calc-button.delete {
        background-color: #663300; /* Dark orange background */
        color: #ff9933; /* Bright orange text */
        border-color: rgba(255, 153, 51, 0.3);
        text-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
        font-weight: bold;
      }

      /* Equal button with special styling */
      .calc-button.equal {
        background-color: #006600; /* Darker green background */
        color: #00ff00; /* Bright green text */
        border-color: rgba(0, 255, 0, 0.4);
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
      }

      .calc-button:hover {
        background-color: #005500;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
      }

      .calc-button.operation:hover {
        background-color: #004477;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
      }

      .calc-button.clear:hover {
        background-color: #770000;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
      }

      .calc-button.delete:hover {
        background-color: #774400;
        box-shadow: 0 0 15px rgba(255, 153, 51, 0.4);
      }

      .calc-button.equal:hover {
        background-color: #007700;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
      }

      /* Back button styling */
      .calc-back-btn {
        background-color: transparent;
        color: #0f0;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        transition: background-color 0.2s;
        font-family: 'Share Tech Mono', monospace;
      }

      .calc-back-btn:hover {
        background-color: rgba(0, 255, 0, 0.1);
        text-shadow: 0 0 5px #0f0;
      }

      .calculator-header h3 {
        margin: 0;
        font-size: 18px;
      }

      .calculator-icons {
        display: flex;
        gap: 15px;
      }

      /* Responsive adjustments for calculator */
      @media (max-width: 1200px) {
        #calculator-screen {
          width: 60%;
        }
      }
      
      @media (max-width: 768px) {
        #calculator-screen {
          width: 80%;
        }
        
        #calculator-display {
          font-size: 36px;
          min-height: 100px;
        }
        
        .calc-button {
          font-size: 22px;
          min-height: 55px;
        }
      }
      
      @media (max-width: 480px) {
        #calculator-screen {
          width: 95%;
          min-width: unset;
        }
        
        #calculator-display {
          font-size: 32px;
          min-height: 80px;
          padding: 20px 15px;
        }
        
        .calc-button {
          font-size: 18px;
          min-height: 50px;
          padding: 10px;
        }
        
        .calculator-header h3 {
          font-size: 16px;
        }
      }

      /* Add improved mobile responsiveness for small screens */
      @media (max-width: 400px) {
        body, html {
          overflow-x: hidden;
          overflow-y: auto;
        }
        
        .mines-predictor {
          min-height: auto;
          padding: 10px 0;
        }
        
        #setup-screen, #calculator-screen {
          margin: 0 auto;
          max-height: 85vh;
          overflow-y: auto;
          padding: 10px;
        }
        
        #calculator-screen {
          width: 98%;
          min-width: unset;
          transform: scale(0.95);
          transform-origin: top center;
        }
        
        .calc-button {
          font-size: 16px;
          min-height: 45px;
          padding: 8px 5px;
        }
        
        .scientific-row .calc-button {
          font-size: 11px;
          padding: 6px 2px;
        }
        
        #calculator-display {
          font-size: 28px;
          min-height: 70px;
          padding: 15px 10px;
        }
        
        .calculator-header {
          padding: 10px;
        }
      }
      
      /* Add specific styling for very small screens */
      @media (max-width: 360px) {
        #calculator-screen {
          transform: scale(0.9);
        }
        
        .calc-button {
          font-size: 14px;
          min-height: 40px;
        }
        
        .scientific-row .calc-button {
          font-size: 10px;
          padding: 5px 2px;
        }
      }

      /* Styles for the review screen grid */
      .review-grid {
        display: grid;
        grid-template-columns: repeat(5, 30px); /* Smaller size for review */
        gap: 2px; /* Smaller gap */
        margin: 20px 0;
      }

      .review-grid-item {
        width: 30px; /* Smaller size for review */
        height: 30px; /* Smaller size for review */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #020;
        color: #0f0;
        border-radius: 5px;
        border: 1px solid #0f0;
      }

      #about-screen {
        max-height: 80vh; /* Limit the height to 80% of the viewport height */
        overflow-y: auto; /* Enable vertical scrolling */
        padding: 20px; /* Add some padding for better appearance */
      }

      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        z-index: 10; /* Ensure it is above other content */
        display: none; /* Initially hidden */
      }

      .loader {
        border: 8px solid rgba(255, 255, 255, 0.3); /* Light border */
        border-top: 8px solid #00ff00; /* Sharp green border */
        border-radius: 50%;
        width: 50px; /* Size of the loader */
        height: 50px; /* Size of the loader */
        animation: spin 1s linear infinite; /* Spin animation */
        margin: 20px auto; /* Center the loader */
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      .loading-message {
        color: #fff; /* Text color */
        text-align: center; /* Center the text */
        margin-top: 10px; /* Space above the text */
      }

      .hacker-style {
        font-family: 'Share Tech Mono', monospace; /* Monospace font */
        color: #00ff00; /* Bright green text */
        text-align: center; /* Center the text */
        margin: 20px; /* Space around the text */
        font-weight: bold; /* Make the text bold */
        font-size: 24px; /* Increase font size */
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00; /* Glowing effect */
      }

      .contact-info {
        font-family: 'Share Tech Mono', monospace; /* Monospace font */
        color: #ffffff; /* White text */
        text-align: center; /* Center the text */
        margin: 10px; /* Space around the text */
        font-weight: bold; /* Make the text bold */
        font-size: 18px; /* Slightly smaller font size */
      }

      /* Pro Version Styling */
      .pro-badge {
        position: absolute; display: none !important;
        top: 10px;
        left: 10px;
        background: linear-gradient(135deg, #ff0 0%, #f90 100%);
        color: #000;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
        z-index: 100;
        visibility: hidden; /* Hide badge but keep functionality */
      }
      
      /* Advanced prediction animation */
      .prediction-animation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #0f0;
      }
      
      .prediction-animation .progress {
        width: 80%;
        max-width: 400px;
        height: 20px;
        border: 1px solid #0f0;
        margin: 20px 0;
        position: relative;
        overflow: hidden;
      }
      
      .prediction-animation .progress-bar {
        background-color: #0f0;
        height: 100%;
        width: 0%;
        transition: width 2s linear;
      }
      
      /* Prediction confidence indicator */
      .confidence-indicator {
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
        padding: 5px;
        border: 1px solid #0f0;
        border-radius: 5px;
      }
      
      .confidence-level {
        height: 10px;
        border-radius: 5px;
        background: linear-gradient(90deg, #f00, #ff0, #0f0);
      }
      
      /* Enhanced grid styles */
      .pro-grid-item {
        position: relative;
        overflow: hidden;
      }
      
      .pro-grid-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
        z-index: -1;
      }
      
      .heatmap-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.6;
        pointer-events: none;
      }
      
      /* Pro themes */
      .theme-selector {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
      }
      
      .theme-option {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.3s ease;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .theme-option:hover {
        transform: scale(1.2);
      }
      
      .theme-option.selected {
        transform: scale(1.2);
        box-shadow: 0 0 10px #0f0, 0 0 15px #0f0;
      }
      
      /* Export data section */
      .export-options {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 10px 0;
      }
      
      .export-btn {
        flex: 1;
        max-width: 120px;
      }

      /* Enhanced mine visualization in review screen */
      .review-grid-item.mine {
        background-color: #cc0000;
        border-color: #ff0000;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .review-grid-item.mine::before {
        content: '💣';
        font-size: 14px;
      }
      
      /* Hide the number in mine tiles */
      .review-grid-item.mine .tile-number {
        display: none;
      }
      
      /* Enhanced styling for predicted safe tiles with stars */
      .grid-item.predicted-safe {
        background-color: #020;
        border-color: #0f0;
        position: relative;
      }
      
      /* Remove the number from safe tiles */
      .grid-item.predicted-safe span {
        display: none;
      }
      
      /* Add the star to safe tiles */
      .grid-item.predicted-safe::before {
        content: '⭐';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        color: #ff0;
        text-shadow: 0 0 10px #ff0;
        animation: star-blink 1.5s infinite alternate;
      }
      
      @keyframes star-blink {
        0% { transform: translate(-50%, -50%) scale(0.9); filter: brightness(0.9); }
        100% { transform: translate(-50%, -50%) scale(1.1); filter: brightness(1.3); text-shadow: 0 0 15px #ff0, 0 0 20px #ff0; }
      }
      
      /* Styling for mine tiles */
      .grid-item.mine-tile {
        background-color: #cc0000;
        border-color: #ff0000;
        position: relative;
      }
      
      /* Remove the number from mine tiles */
      .grid-item.mine-tile span {
        display: none;
      }
      
      /* Add the bomb to mine tiles */
      .grid-item.mine-tile::before {
        content: '💣';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        animation: mine-pulse 1.5s infinite alternate;
      }
      
      @keyframes mine-pulse {
        0% { transform: translate(-50%, -50%) scale(0.9); }
        100% { transform: translate(-50%, -50%) scale(1.1); }
      }
      
      /* Results screen styling */
      #results-screen {
        text-align: center;
        padding: 15px;
        background-color: rgba(0, 10, 0, 0.9);
        border-radius: 8px;
        border: 1px solid #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
        max-width: 600px;
        margin: 0 auto;
      }
      
      .results-content {
        text-align: center;
        margin: 20px 0;
      }
      
      .results-subtitle {
        font-size: 1.2rem;
        color: #0f0;
        margin: 15px 0;
      }
      
      .safe-tiles {
        font-size: 1.1rem;
        background-color: rgba(0, 40, 0, 0.6);
        padding: 10px;
        border-radius: 5px;
        margin: 20px 0;
        display: inline-block;
        min-width: 50%;
      }
      
      .statistics-header {
        font-size: 1.2rem;
        color: #0f0;
        border-bottom: 1px solid #0f0;
        padding-bottom: 5px;
        margin: 25px 0 15px;
        text-align: center;
      }
      
      .statistics-grid {
        display: grid;
        gap: 10px;
        justify-content: center;
        margin: 15px 0 25px;
      }
      
      .statistics-grid p {
        margin: 5px 0;
        font-size: 1.05rem;
      }
      
      .button-row {
        display: flex;
        justify-content: center;
        gap: 10px;
      }
      
      .secondary-button {
        background-color: rgba(0, 80, 0, 0.6);
        border: 1px solid #0a0;
      }
      
      .secondary-button:hover {
        background-color: rgba(0, 100, 0, 0.8);
      }
      
      /* Prominent back button */
      .prominent-back-button {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        background-color: rgba(0, 100, 0, 0.8);
        color: #0f0;
        border: 2px solid #0f0;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 100;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        font-family: 'Courier New', monospace;
        transition: all 0.2s ease;
      }
      
      .prominent-back-button:hover {
        background-color: rgba(0, 150, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
        transform: scale(1.05);
      }
      
      /* Container for bottom buttons */
      .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        align-items: center;
      }
      
      .button-container button {
        min-width: 200px;
      }
      
      /* Adjust lock button position */
      .lock-button {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 100;
      }
      
      /* Make space for the absolute positioned elements */
      #input-screen, #predicted-screen, #results-screen, #review-screen {
        position: relative;
        padding-top: 50px;
      }
      
      /* PRO indicator button */
      .pro-indicator {
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: #333;
        color: #ffd700;
        padding: 5px 10px;
        border-radius: 15px;
        font-weight: bold;
        font-family: 'Courier New', monospace;
        cursor: pointer;
        border: 1px solid #ffd700;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        z-index: 1000;
        transition: all 0.3s ease;
      }
      
      .pro-indicator.active {
        background-color: #ffd700;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      }
      
      .pro-indicator:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      }
      
      /* Enhanced notification system styling */
      .notification-container {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 400px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: none;
      }
      
      .enhanced-notification {
        background-color: rgba(0, 20, 0, 0.95);
        border: 2px solid #0f0;
        color: #0f0;
        padding: 12px 15px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: auto;
        font-family: 'Courier New', monospace;
        font-size: 16px;
      }
      
      .enhanced-notification.show {
        opacity: 1;
        transform: translateY(0);
      }
      
      .enhanced-notification.hide {
        opacity: 0;
        transform: translateY(-20px);
      }
      
      .enhanced-notification .notification-icon {
        font-size: 20px;
        min-width: 24px;
        text-align: center;
      }

      .enhanced-notification.notification-multiline .notification-message {
        white-space: pre-line;
        max-height: min(38vh, 280px);
        overflow-y: auto;
        line-height: 1.35;
        font-size: 14px;
        text-align: left;
      }
      
      .enhanced-notification.success {
        border-color: #00ff00;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
        background-color: rgba(0, 80, 0, 0.98);
        color: #adff2f;
      }
      
      .enhanced-notification.error {
        border-color: #ff0000;
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
        background-color: rgba(80, 0, 0, 0.98);
        color: #ffb3b3;
      }
      
      .enhanced-notification.warning {
        border-color: #ff0;
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
        color: #ff0;
      }
      
      /* Reset stats button styling */
      .reset-stats-button {
        background-color: rgba(80, 0, 0, 0.7);
        border: 1px solid #f55;
        color: #f99;
        padding: 5px 10px;
        font-size: 0.85rem;
        margin-top: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .reset-stats-button:hover {
        background-color: rgba(120, 0, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
      }
      
      /* Make all screens scrollable */
      html, body {
        height: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0;
      }
      
      .app-container {
        height: 100vh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: var(--app-theme-bg);
        color: var(--app-theme-text);
      }

      .app-container #lock-screen.lock-screen-v2 {
        flex: 1 1 auto;
        min-height: 0;
        align-self: center;
      }
      
      #setup-screen, #input-screen, #predicted-screen, #results-screen, #review-screen, #pro-settings-screen {
        max-height: 100vh;
        overflow-y: auto;
        padding: 60px 15px 20px;
        scrollbar-width: thin;
        scrollbar-color: var(--app-theme-accent) var(--app-theme-bg);
      }
      
      /* Custom scrollbar styling */
      ::-webkit-scrollbar {
        width: 8px;
      }
      
      ::-webkit-scrollbar-track {
        background: var(--app-theme-bg);
      }
      
      ::-webkit-scrollbar-thumb {
        background: var(--app-theme-accent);
        border-radius: 4px;
      }
      
      ::-webkit-scrollbar-thumb:hover {
        filter: brightness(1.2);
      }
      
      /* Fixed navigation elements */
      .prominent-back-button, .lock-button {
        position: fixed;
        z-index: 1000;
      }
      
      .prominent-back-button {
        top: 10px;
        left: 10px;
      }
      
      .lock-button {
        top: 10px;
        right: 10px;
      }
      
      /* Confirmation modal styling */
      .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
      }
      
      .modal-container {
        background-color: #001500;
        border: 2px solid #0f0;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        padding: 20px;
        border-radius: 8px;
        width: 80%;
        max-width: 400px;
        text-align: center;
        color: #0f0;
        font-family: 'Courier New', monospace;
      }

      /* Learned Money Time — credential modal */
      .learned-money-cred-overlay {
        position: fixed;
        inset: 0;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        background: rgba(2, 6, 4, 0.76);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
      }
      .learned-money-cred-card {
        position: relative;
        width: 100%;
        max-width: 420px;
        border-radius: 18px;
        padding: 28px 26px 22px;
        text-align: center;
        color: var(--app-theme-text, #c8e6c9);
        background: linear-gradient(165deg, rgba(22, 30, 26, 0.94) 0%, rgba(6, 10, 8, 0.98) 55%, rgba(4, 8, 6, 0.99) 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
          0 1px 0 rgba(255, 255, 255, 0.06) inset,
          0 22px 56px rgba(0, 0, 0, 0.72),
          0 0 0 1px rgba(0, 0, 0, 0.45);
        font-family: 'Share Tech Mono', monospace;
      }
      .learned-money-cred-accent-bar {
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: linear-gradient(90deg, transparent, var(--app-theme-accent, #0f0), transparent);
        opacity: 0.9;
        pointer-events: none;
      }
      .learned-money-cred-icon {
        font-size: 2rem;
        line-height: 1;
        margin-bottom: 10px;
        filter: drop-shadow(0 0 12px var(--app-theme-accent, #0f0));
        opacity: 0.95;
      }
      .learned-money-cred-title {
        margin: 0 0 12px;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--app-theme-text, #e8f5e9);
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
      }
      .learned-money-cred-body {
        margin: 0 0 18px;
        font-size: 0.82rem;
        line-height: 1.55;
        color: rgba(200, 220, 205, 0.88);
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
      }
      .learned-money-cred-body strong {
        color: #ffe082;
        font-weight: 600;
      }
      .learned-money-cred-field {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        margin-bottom: 20px;
        font-family: inherit;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        color: var(--app-theme-text, #e8f5e9);
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        caret-color: var(--app-theme-accent, #0f0);
      }
      .learned-money-cred-field:focus {
        border-color: var(--app-theme-accent, #0f0);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 16px var(--app-theme-accent, #0f0);
      }
      .learned-money-cred-field::placeholder {
        color: rgba(180, 200, 185, 0.45);
      }
      .learned-money-cred-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
      }
      .learned-money-cred-btn-secondary {
        padding: 11px 20px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(230, 235, 230, 0.9);
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
      }
      .learned-money-cred-btn-secondary:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.28);
      }
      .learned-money-cred-btn-secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      .learned-money-cred-btn-primary {
        padding: 11px 22px;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.35);
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        cursor: pointer;
        color: #061208;
        background: var(--app-theme-accent, #0f0);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
        transition: filter 0.2s ease, transform 0.15s ease;
      }
      .learned-money-cred-btn-primary:hover:not(:disabled) {
        filter: brightness(1.08);
        transform: translateY(-1px);
      }
      .learned-money-cred-btn-primary:disabled {
        cursor: wait;
        opacity: 0.75;
      }
      
      .modal-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
      }
      
      .confirm-button {
        background-color: rgba(120, 0, 0, 0.8);
        border: 1px solid #f55;
        color: #fff;
        padding: 8px 15px;
      }
      
      .confirm-button:hover {
        background-color: rgba(180, 0, 0, 0.9);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
      }
      
      .cancel-button {
        background-color: rgba(0, 40, 0, 0.8);
        border: 1px solid #0f0;
        color: #0f0;
        padding: 8px 15px;
      }
      
      .cancel-button:hover {
        background-color: rgba(0, 60, 0, 0.9);
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
      }
      
      /* PRO Button Styling */
      .pro-button {
        position: fixed;
        top: 50px; /* Position it below the date-time which is at top: 10px */
        right: 10px; /* Align with date-time element */
        z-index: 1001; /* Ensure it's above other fixed elements */
        padding: 4px 5px; /* Smaller padding */
        background-color: #222;
        color: #ffd700;
        border-radius: 10px;
        font-weight: bold;
        font-family: 'Share Tech Mono', monospace;
        cursor: pointer;
        border: 1px solid #ffd700;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
        transition: all 0.3s ease;
        -webkit-user-select: none;
        user-select: none;
        font-size: 12px; /* Smaller font size */
        width: 48px; /* Approximately half an inch at 96 DPI */
        text-align: center;
        min-width: 48px;
      }
      
      .pro-button.active {
        background-color: #ffd700;
        color: #222;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
      }
      
      .pro-button:hover {
        background-color: #333;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
      }
      
      /* PRO Features Styling */
      .pro-features {
        padding: 15px;
        border: 1px solid #ffd700;
        background-color: rgba(0, 20, 0, 0.8);
        border-radius: 5px;
      }
      
      .pro-section-title {
        color: #ffd700;
        margin-top: 0;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.1rem;
      }
      
      .pro-feature-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 5px 0;
      }
      
      .toggle-button {
        background-color: rgba(60, 60, 60, 0.7);
        border: 1px solid #888;
        color: #ddd;
        font-size: 0.8rem;
        padding: 3px 10px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .toggle-button.active {
        background-color: rgba(0, 100, 0, 0.8);
        border-color: #0f0;
        color: #0f0;
      }
      
      .confidence-meter {
        width: 100px;
        height: 8px;
        background-color: rgba(40, 40, 40, 0.7);
        border-radius: 4px;
        overflow: hidden;
        margin: 0 10px;
      }
      
      .confidence-level {
        height: 100%;
        background-color: #0f0;
        border-radius: 4px;
      }
      
      /* Fixed selector issues */
      .matrix-char {
        display: inline-block;
        margin: 0 2px;
        animation: fadeInOut 1.5s infinite;
      }
      
      /* Loading Screen Styles - Fixed */
      #loading-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background-color: #000;
        padding: 20px;
        position: relative;
        overflow: hidden;
      }
      
      .loading-spinner {
        border: 5px solid rgba(0, 50, 0, 0.3);
        border-radius: 50%;
        border-top: 5px solid #0f0;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 30px 0;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      
      .progress-container {
        width: 80%;
        max-width: 400px;
        height: 10px;
        background: rgba(0, 40, 0, 0.5);
        border-radius: 5px;
        margin: 20px 0;
        overflow: hidden;
      }
      
      .progress-bar {
        height: 100%;
        background: #0f0;
        width: 0%;
        border-radius: 5px;
        animation: progressAnimation 2s ease-in-out forwards;
      }
      
      @keyframes progressAnimation {
        0% { width: 0%; }
        20% { width: 30%; }
        50% { width: 60%; }
        70% { width: 80%; }
        90% { width: 95%; }
        100% { width: 100%; }
      }
      
      .loading-message {
        font-family: 'Courier New', monospace;
        color: #0f0;
        text-align: center;
        margin-top: 20px;
      }

      /* Advanced Loading Screen Styles */
      #loading-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background-color: #000;
        color: #0f0;
        font-family: 'Courier New', monospace;
        position: relative;
        overflow: hidden;
        padding: 20px;
      }
      
      .glitch-title {
        font-size: 24px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 20px;
        position: relative;
        color: #0f0;
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
        animation: glitch 1s infinite;
      }
      
      @keyframes glitch {
        0% { text-shadow: 0 0 5px #0f0, 0 0 10px #0f0; }
        25% { text-shadow: 2px 0 5px #0f0, -2px 0 10px #0f0; }
        50% { text-shadow: -2px 0 5px #0f0, 2px 0 10px #0f0; }
        75% { text-shadow: 0 2px 5px #0f0, 0 -2px 10px #0f0; }
        100% { text-shadow: 0 0 5px #0f0, 0 0 10px #0f0; }
      }
      
      .hack-animation-container {
        width: 90%;
        max-width: 800px;
        height: 400px;
        position: relative;
        margin: 20px 0;
        overflow: hidden;
        border: 1px solid #0f0;
        border-radius: 5px;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
      }
      
      .code-rain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 10, 0, 0.7);
        overflow: hidden;
        z-index: 1;
      }
      
      .code-line {
        color: #0f0;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        animation: rain 7s linear infinite;
        opacity: 0.5;
      }
      
      @keyframes rain {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100%); }
      }
      
      .grid {
        display: grid;
        grid-template-columns: repeat(5, 60px); /* Normal size for input rounds */
        gap: 5px; /* Normal gap */
        margin: 20px auto;
        justify-content: center;
      }

      .grid-item {
        width: 60px; /* Normal size for input rounds */
        height: 60px; /* Normal size for input rounds */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #020;
        color: #0f0;
        cursor: pointer;
        border-radius: 5px;
        border: 1px solid #0f0;
        transition: all 0.3s ease;
      }
      
      .terminal {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 70%;
        background-color: rgba(0, 20, 0, 0.9);
        border: 2px solid #0f0;
        border-radius: 5px;
        z-index: 2;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
      }
      
      .terminal-header {
        background-color: #0f0;
        color: #000;
        padding: 5px 10px;
        font-weight: bold;
        font-size: 14px;
      }
      
      .terminal-content {
        padding: 10px;
        height: calc(100% - 30px);
        overflow-y: auto;
      }
      
      .command-line {
        color: #0f0;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        animation: typing 1s steps(40, end);
      }
      
      .command-output {
        color: #0f0;
        margin: 5px 0;
        padding-left: 10px;
        border-left: 2px solid #0a0;
        animation: fadeIn 0.5s;
      }
      
      .command-output.success {
        color: #0ff;
        font-weight: bold;
        border-left: 2px solid #0ff;
      }
      
      @keyframes typing {
        from { width: 0 }
        to { width: 100% }
      }
      
      @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }
      
      .blinking-cursor {
        display: inline-block;
        width: 8px;
        height: 15px;
        background-color: #0f0;
        margin-left: 2px;
        animation: blink 1s infinite;
      }
      
      @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
      }
      
      .progress-container {
        width: 90%;
        max-width: 500px;
        height: 20px;
        background-color: rgba(0, 30, 0, 0.6);
        border-radius: 10px;
        margin-top: 20px;
        position: relative;
        overflow: hidden;
        border: 1px solid #0f0;
      }
      
      .progress-bar {
        height: 100%;
        background: linear-gradient(to right, #020, #0a0, #0f0);
        border-radius: 10px;
        transition: width 0.5s ease;
      }
      
      .progress-percentage {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: bold;
        text-shadow: 0 0 3px #000;
      }
      
      /* Replace any problematic CSS with cleaned up versions */
      .mines-selected {
        margin-left: 10px;
        font-weight: bold;
        color: #0f0;
      }
      
      button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      
      .instruction {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
      }

      .confidence-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
      }

      .confidence-table th,
      .confidence-table td {
        border: 1px solid #0f0;
        padding: 8px;
        text-align: center;
      }

      .confidence-table th {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
      }

      .confidence-table tr:nth-child(even) {
        background-color: rgba(0, 50, 0, 0.5);
      }

      /* Responsive Design - Mobile Improvements */
      @media (max-width: 768px) {
        /* General responsive adjustments */
        body, html {
          font-size: 14px;
        }

        /* Adjust grid layouts for smaller screens */
        .grid {
          grid-template-columns: repeat(5, 45px);
          gap: 3px;
          margin: 15px auto;
          max-width: 240px;
        }

        .grid-item {
          width: 45px;
          height: 45px;
          font-size: 14px;
        }

        .review-grid {
          grid-template-columns: repeat(5, 25px);
          gap: 2px;
          margin: 10px auto;
          max-width: 140px;
        }

        .review-grid-item {
          width: 25px;
          height: 25px;
          font-size: 12px;
        }

        /* Adjust screens to fit mobile viewports */
        #lock-screen, #setup-screen, #input-screen, #predicted-screen, 
        #results-screen, #review-screen, #customization-screen, 
        #clear-data-modal, #stats-screen, #about-screen, 
        #recommendations-screen, #calculator-screen, #admin-dashboard, 
        #pro-settings-screen, #lucky-tiles-screen, #lockdown-setup-screen {
          max-width: 90%;
          margin: 10px auto;
          padding: 15px 10px;
        }

        /* Make buttons larger and more touch-friendly */
        button, input, select {
          padding: 12px;
          margin: 8px 0;
          font-size: 16px;
          min-height: 44px; /* Minimum touch target size */
        }

        /* Adjust navigation buttons */
        .prominent-back-button, .lock-button {
          padding: 10px;
          min-width: 44px;
          min-height: 44px;
        }

        /* Fix positioning of fixed elements */
        #date-time {
          font-size: 10px;
          top: 5px;
          right: 5px;
          padding: 2px 5px;
        }

        #version-info, #watermark {
          font-size: 10px;
        }

        /* Adjust notification styles */
        .notification-container {
          width: 90%;
          left: 50%;
          transform: translateX(-50%);
          top: 40px;
        }

        .enhanced-notification {
          padding: 10px;
          font-size: 14px;
        }

        /* Better table display on mobile */
        .confidence-table {
          font-size: 12px;
        }

        .confidence-table th,
        .confidence-table td {
          padding: 5px 3px;
        }

        /* Adjust prediction animation for mobile */
        .prediction-animation .progress {
          width: 90%;
        }

        /* Fix modal display on mobile */
        .modal-container {
          width: 90%;
          padding: 15px 10px;
        }

        .modal-buttons {
          gap: 10px;
        }

        /* Fix customization screen controls */
        .slider-container {
          flex-direction: column;
          align-items: flex-start;
        }

        .slider-container input {
          width: 100%;
          margin: 5px 0;
        }

        /* Adjust loading screen for mobile */
        .hack-animation-container {
          height: 300px;
        }

        .terminal-content {
          font-size: 12px;
        }

        /* Fix stats screen for mobile */
        #stats-chart {
          width: 100%;
          max-width: 300px;
          height: auto;
        }

        /* Make scrollable areas more touch-friendly */
        #rounds-data, #about-screen {
          -webkit-overflow-scrolling: touch;
          max-height: 60vh;
        }

        /* Mobile-specific adjustments for confirmation modal */
        .modal-overlay {
          align-items: flex-start;
          padding-top: 20%;
        }
        
        .modal-container {
          width: 90%;
          max-width: 300px;
          padding: 15px;
        }
        
        .modal-buttons {
          flex-direction: column;
          gap: 10px;
        }
        
        .modal-buttons button {
          width: 100%;
        }
        
        /* Matrix rain: subtle on mobile so panels stay readable */
        #matrix {
          /* Brighter on mobile too */
          opacity: 0.72;
        }
        
        .matrix-char {
          animation-duration: 2.5s; /* Slow down animations to reduce CPU usage */
        }
        
        /* Improve touch targets for navigation */
        .prominent-back-button, .lock-button, .pro-button {
          padding: 12px;
          font-size: 16px;
        }
        
        /* Optimize prediction animation for mobile */
        .prediction-animation {
          padding: 20px 10px;
        }
        
        /* Add mobile-friendly scrolling */
        #setup-screen, #input-screen, #predicted-screen,
        #results-screen, #review-screen, #customization-screen,
        #stats-screen, #about-screen, #recommendations-screen,
        #lucky-tiles-screen, #lockdown-setup-screen, #admin-dashboard {
          scrollbar-width: thin;
          -webkit-overflow-scrolling: touch;
        }
        
        /* Improved spacing for input fields on mobile */
        input, select {
          margin-bottom: 15px;
          font-size: 14px;
          padding: 8px;
          width: 90%;
          max-width: 250px;
          border-radius: 5px;
          box-sizing: border-box;
        }
        
        label {
          display: block;
          margin-bottom: 5px;
          font-weight: bold;
        }

        /* Adjust admin dashboard for mobile */
        #admin-dashboard {
          width: 90%;
          min-width: unset;
          padding: 15px;
        }

        /* Make form elements in admin dashboard more mobile-friendly */
        #admin-dashboard input,
        #admin-dashboard select,
        #admin-dashboard button {
          min-height: 44px; /* Better touch targets */
          font-size: 16px; /* Better readability on mobile */
        }

        /* Improve user items display on small screens */
        .user-item {
          flex-direction: column;
          align-items: flex-start;
        }

        .user-actions {
          width: 100%;
          flex-direction: row;
          flex-wrap: wrap;
          margin-top: 10px;
        }

        .user-actions button {
          flex: 1 1 auto;
        }

        /* Adjust grid layouts for smaller screens */
        .grid {
          grid-template-columns: repeat(5, 45px);
          gap: 3px;
          margin: 15px auto;
          max-width: 240px;
        }

        .grid-item {
          width: 45px;
          height: 45px;
          font-size: 14px;
        }

        .review-grid {
          grid-template-columns: repeat(5, 25px);
          gap: 2px;
          margin: 10px auto;
          max-width: 140px;
        }

        .review-grid-item {
          width: 25px;
          height: 25px;
          font-size: 12px;
        }
      }
      
      /* Mobile-specific body class */
      body.mobile-device {
        overflow-x: hidden; /* Prevent horizontal scrolling */
      }
      
      body.mobile-device .grid-item:active {
        transform: scale(0.95); /* Visual feedback for touch */
        transition: transform 0.1s;
      }
      
      body.mobile-device button:active {
        transform: scale(0.98);
        transition: transform 0.1s;
      }
      
      /* Mobile touch highlight prevention */
      * {
        -webkit-tap-highlight-color: transparent;
      }
      
      /* Loading indicator for mobile */
      .mobile-loading {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
      }
      
      .mobile-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 255, 0, 0.3);
        border-top: 4px solid #0f0;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      .mobile-loading .text {
        color: #0f0;
        margin-top: 15px;
        font-size: 16px;
        text-align: center;
      }

      /* Small mobile devices */
      @media (max-width: 480px) {
        /* Further reduce sizes for very small screens */
        .grid {
          grid-template-columns: repeat(5, 40px);
          gap: 2px;
          max-width: 210px;
        }

        .grid-item {
          width: 40px;
          height: 40px;
          font-size: 12px;
        }
        
        /* Input styling for mobile */
        input, select {
          padding: 8px 12px;
          font-size: 14px;
          height: 38px;
          margin-bottom: 10px;
          width: 192px; /* Approximately 2 inches wide */
          max-width: 95%;
          background-color: rgba(0, 5, 0, 0.95);
          border: 2px solid #0f0;
          box-shadow: 0 0 15px rgba(0, 255, 0, 0.6), inset 0 0 8px rgba(0, 255, 0, 0.2);
          text-shadow: 0 0 5px #0f0;
          font-family: 'Share Tech Mono', monospace;
          letter-spacing: 1px;
        }
        
        /* Enhance number inputs */
        input[type="number"] {
          width: 192px;
          max-width: 95%;
          text-align: center;
          font-size: 15px;
          font-weight: bold;
          border-color: #0f0;
          letter-spacing: 1px;
          position: relative;
          background-color: rgba(0, 10, 0, 0.97);
        }
        
        /* Special styling for lock screen input */
        #lock-screen input {
          width: min(200px, 86vw);
          max-width: 100%;
          font-size: 15px;
          padding: 10px 12px;
          letter-spacing: 1px;
          background-color: rgba(0, 0, 0, 0.97);
          border: 2px solid #0f0;
          box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
          position: relative;
        }

        #lock-screen input:focus {
          border-color: #0f0;
          box-shadow: 0 0 25px #0f0, inset 0 0 10px rgba(0, 255, 0, 0.4);
        }
        
        /* Enhance button styling */
        button {
          border: 2px solid #0f0;
          background-color: rgba(0, 30, 0, 0.95);
          font-weight: bold;
          text-transform: uppercase;
          letter-spacing: 1px;
          box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
          text-shadow: 0 0 8px #0f0;
        }

        .phase-legend-row button.phase-legend-chip {
          all: unset;
          box-sizing: border-box;
          display: inline-block;
          appearance: none;
          -webkit-appearance: none;
          margin: 0;
          max-width: none;
          min-width: 0;
          width: auto;
          font-size: 11px;
          font-weight: normal;
          letter-spacing: 0.08em;
          text-transform: uppercase;
          text-shadow: none;
          line-height: 1.35;
          cursor: pointer;
          border: 1px solid rgba(130, 210, 230, 0.4);
          border-radius: 999px;
          padding: 4px 10px;
          color: #b8d8dc;
          background: rgba(0, 26, 30, 0.72);
        }

        .phase-legend-row button.phase-legend-chip:hover,
        .phase-legend-row button.phase-legend-chip:active {
          background: rgba(0, 26, 30, 0.72);
          transform: none;
          text-shadow: none;
        }

        button:active {
          background-color: rgba(0, 60, 0, 0.95);
          box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
          transform: scale(0.97);
        }

        .phase-legend-row button.phase-legend-chip:active {
          background: rgba(0, 26, 30, 0.85);
          box-shadow: 0 0 8px rgba(120, 220, 255, 0.22);
          transform: none;
        }
        
        /* Make buttons stack when space is limited */
        .button-row, .export-options {
          flex-direction: column;
          gap: 5px;
        }

        /* Adjust fixed position elements to avoid overlap */
        .pro-button {
          top: 40px; /* Smaller distance on mobile */ display: none !important;
          right: 5px;
          padding: 2px 0;
          font-size: 10px;
          border-radius: 8px;
          width: 40px; /* Even smaller on mobile */
          min-width: 40px;
        }

        /* Better spacing for setup screen inputs */
        #setup-screen input,
        #setup-screen button {
          margin: 5px 0;
        }

        /* Enhance tap targets */
        .ai-toggle {
          flex-direction: column;
          align-items: flex-start;
          margin: 10px 0;
        }

        .ai-button {
          width: 100%;
          margin-top: 5px;
        }

        /* Better font sizes for small screens */
        h2, h3 {
          font-size: 1.2rem;
        }

        /* Make theme selection more accessible */
        .theme-option {
          width: 35px;
          height: 35px;
        }
      }

      /* Landscape orientation adjustments */
      @media (max-height: 500px) and (orientation: landscape) {
        /* Optimize for landscape phones */
        .mines-predictor {
          justify-content: flex-start;
          padding-top: 60px;
        }

        /* Make screens scrollable in landscape */
        #setup-screen, #input-screen, #predicted-screen,
        #results-screen, #review-screen, #customization-screen,
        #stats-screen, #about-screen, #recommendations-screen,
        #lucky-tiles-screen, #lockdown-setup-screen {
          max-height: 80vh;
          overflow-y: auto;
        }

        /* Adjust grids to be visible without scrolling too much */
        .grid, .review-grid {
          margin: 10px auto;
        }

        /* Place fixed buttons to avoid overlap with content */
        .prominent-back-button {
          top: 5px;
          left: 5px;
        }

        .lock-button {
          top: 5px;
          right: 5px;
        }
        
        /* Adjust PRO button in landscape */
        .pro-button {
          top: 40px; /* Below date-time in landscape */ display: none !important;
          right: 5px;
          padding: 2px 0;
          font-size: 9px;
          width: 36px;
          min-width: 36px;
        }
      }

      /* Data Management Section Styling */
      .data-management-section {
        background-color: rgba(0, 30, 0, 0.7);
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0 20px;
        border: 1px solid rgba(0, 200, 0, 0.3);
      }
      
      .data-management-section p {
        margin: 5px 0 10px;
        font-size: 0.9rem;
      }
      
      .data-stats {
        background-color: rgba(0, 40, 0, 0.5);
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        font-size: 0.85rem;
      }
      
      .data-stats p {
        margin: 5px 0;
      }
      
      .export-options {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 10px 0;
      }
      
      .export-btn {
        flex: 1;
        max-width: 150px;
        background-color: rgba(0, 60, 0, 0.8);
        border: 1px solid #0a0;
        color: #0f0;
        font-weight: bold;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }
      
      /* Prediction review section styling */
      .prediction-review-section {
        background-color: rgba(0, 40, 0, 0.6);
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
        border: 1px solid rgba(0, 255, 0, 0.4);
      }
      
      .prediction-review-title {
        color: #0f0;
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .prediction-review-grid {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        gap: 3px;
        margin: 15px auto;
        max-width: 215px;
      }
      
      .prediction-review-item {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 30, 0, 0.8);
        color: #0f0;
        border-radius: 5px;
        border: 1px solid #0f0;
        font-size: 14px;
        position: relative;
      }
      
      .prediction-review-item.mine-tile {
        background-color: #cc0000;
        border-color: #ff0000;
      }
      
      .prediction-review-item.mine-tile::before {
        content: '💣';
        position: absolute;
        font-size: 18px;
      }
      
      .prediction-review-item.safe-tile {
        background-color: rgba(0, 80, 0, 0.9);
        border-color: #0f0;
        color: #fff;
      }
      
      .prediction-review-item.safe-tile::before {
        content: '⭐';
        position: absolute;
        font-size: 18px;
        color: #ff0;
      }
      
      .prediction-review-info {
        background-color: rgba(0, 20, 0, 0.7);
        padding: 8px;
        border-radius: 5px;
        margin: 10px 0;
        font-size: 0.9rem;
        border-left: 3px solid #0f0;
      }
      
      .prediction-review-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 15px 0 5px;
      }
      
      .review-nav-button {
        background-color: rgba(0, 50, 0, 0.8);
        border: 1px solid #0a0;
        color: #0f0;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        flex: 1;
        max-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }
      
      .review-nav-button:hover {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      .review-nav-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .review-nav-button.review-nav-button--icon {
        font-size: 0;
        line-height: 0;
        flex: 0 0 auto;
        max-width: 48px;
        min-width: 40px;
        padding: 8px 10px;
        color: #0f0;
      }

      .review-nav-button.review-nav-button--icon .nav-back-svg {
        width: 16px;
        height: 16px;
      }
      
      .export-btn:hover {
        background-color: rgba(0, 100, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      /* Import/Export buttons on setup screen */
      .setup-data-controls {
        display: flex;
        gap: 10px;
        margin: 10px 0;
      }
      
      .setup-data-btn {
        background-color: rgba(0, 50, 0, 0.7);
        flex: 1;
        padding: 8px 5px;
        font-size: 0.9rem;
        min-height: 36px;
      }
      
      .setup-data-btn:hover {
        background-color: rgba(0, 80, 0, 0.9);
      }
      
      /* PRO Button Styling */
      
      /* User Management System Styles */
      .user-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        max-height: min(58vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid rgba(0, 255, 140, 0.35);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        background: linear-gradient(180deg, rgba(0, 18, 10, 0.65) 0%, rgba(0, 8, 6, 0.85) 100%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.05),
          0 12px 40px rgba(0, 0, 0, 0.45);
      }
      
      /* Large screen adjustments */
      @media (min-width: 1600px) {
        #admin-dashboard {
          width: 100%;
          max-width: 1100px;
        }
        
        /* Increase font size slightly for better readability on large screens */
        #admin-dashboard {
          font-size: 16px;
        }
        
        /* Enhance form elements for larger screens */
        .user-form {
          padding: 20px;
        }
        
        /* Make user list taller on large screens */
        .user-list {
          max-height: min(62vh, 720px);
        }
      }

      /* Admin dashboard content containers for future features */
      .admin-section {
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 8px;
        background-color: rgba(0, 20, 0, 0.5);
      }
      
      .admin-section-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: #0f0;
        text-align: center;
        text-shadow: 0 0 5px #0f0;
      }
      
      /* For future feature tabs or navigation in admin dashboard */
      .admin-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
      }
      
      .admin-nav-button {
        background-color: rgba(0, 40, 0, 0.6);
        border: 1px solid #0a0;
        color: #0f0;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
      }
      
      .admin-nav-button:hover, .admin-nav-button.active {
        background-color: rgba(0, 80, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }

      /* Lock screen animations */
      @keyframes glowText {
        0% { text-shadow: 0 0 5px var(--app-theme-accent); }
        50% { text-shadow: 0 0 20px var(--app-theme-accent), 0 0 30px var(--app-theme-accent); }
        100% { text-shadow: 0 0 5px var(--app-theme-accent); }
      }

      @keyframes borderGlow {
        0% { border-color: var(--app-theme-accent); }
        50% { border-color: var(--app-theme-accent); box-shadow: 0 0 20px var(--app-theme-accent); }
        100% { border-color: var(--app-theme-accent); }
      }

      /* Lock screen specific styles (uses --app-theme-* from Pro Settings) */
      #lock-screen {
        position: relative;
        z-index: 2;
        text-align: center;
        background: var(--app-theme-panel);
        padding: 20px;
        border-radius: 14px;
        color: var(--app-theme-text);
        max-width: 400px;
        margin: auto;
        box-shadow: 0 0 28px var(--app-theme-accent), inset 0 0 20px rgba(0, 0, 0, 0.25);
        border: 1px solid var(--app-theme-accent);
        animation: pulse 2s infinite alternate;
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      #lock-screen::before {
        content: "";
        position: absolute;
        left: calc(50% - 91px); /* Adjusting for the wider input field */
        top: 292px;
        color: var(--app-theme-text);
        font-weight: bold;
        font-size: 18px;
        text-shadow: 0 0 8px var(--app-theme-accent);
        font-family: 'Share Tech Mono', monospace;
        z-index: 5;
      }

      /* Lock screen input styling */
      #lock-screen input {
        margin: 8px auto;
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid var(--app-theme-accent);
        color: var(--app-theme-text);
        padding: 10px 12px;
        width: min(200px, 86vw);
        max-width: 100%;
        border-radius: 5px;
        font-size: 15px;
        text-align: center;
        outline: none;
        box-shadow: 0 0 15px var(--app-theme-accent);
        caret-color: var(--app-theme-accent);
      }

      #lock-screen input::placeholder {
        opacity: 0.55;
      }

      #lock-screen input:hover,
      #lock-screen input:focus {
        box-shadow: 0 0 15px var(--app-theme-accent);
        outline: none;
        border-color: var(--app-theme-accent);
        animation: borderGlow 1.5s infinite;
        background: rgba(0, 0, 0, 0.75);
      }

      #lock-screen button {
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid var(--app-theme-accent);
        color: var(--app-theme-text);
        padding: 12px 16px;
        width: min(200px, 86vw);
        max-width: 100%;
        margin: 10px auto 16px;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace;
        font-size: 1.05em;
        transition: all 0.3s ease;
        border-radius: 5px;
        letter-spacing: 1px;
      }

      #lock-screen button:hover {
        background: rgba(0, 0, 0, 0.65);
        box-shadow: 0 0 20px var(--app-theme-accent);
        transform: scale(1.02);
        animation: borderGlow 1.5s infinite;
      }

      /* Brand logo - lock screen (prominent) */
      .brand-logo-lock {
        width: 100%;
        max-width: 140px;
        height: 140px;
        margin: 0 auto 16px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--app-theme-accent);
        box-shadow: 0 0 25px var(--app-theme-accent), inset 0 0 15px rgba(0, 0, 0, 0.3);
        background: rgba(0, 0, 0, 0.35);
      }
      .brand-logo-lock img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      /* Brand logo - global (visible on every screen over matrix rain) */
      .brand-logo-global {
        position: fixed;
        bottom: 14px;
        left: 14px;
        z-index: 5000;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--app-theme-accent);
        box-shadow: 0 0 18px var(--app-theme-accent), 0 0 35px rgba(0, 0, 0, 0.4);
        background: rgba(0, 0, 0, 0.5);
        pointer-events: auto;
        cursor: pointer;
        padding: 0;
        margin: 0;
        font: inherit;
        line-height: 0;
        -webkit-appearance: none;
        appearance: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      .brand-logo-global:hover {
        transform: scale(1.06);
        box-shadow: 0 0 22px var(--app-theme-accent), 0 0 40px rgba(0, 0, 0, 0.45);
      }
      .brand-logo-global:focus-visible {
        outline: 2px solid var(--app-theme-accent, #0f0);
        outline-offset: 3px;
      }
      .brand-logo-global img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
      }
      @media (max-width: 480px) {
        .brand-logo-global { width: 44px; height: 44px; bottom: 10px; left: 10px; }
        .brand-logo-lock { max-width: 110px; height: 110px; }
      }

      /* Lock screen v2 — motion (lightweight, theme-aware) */
      @keyframes lock-screen-v2-halo {
        0%, 100% {
          box-shadow: 0 0 28px rgba(0, 0, 0, 0.55), 0 0 22px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        50% {
          box-shadow: 0 0 40px rgba(0, 0, 0, 0.42), 0 0 48px var(--app-theme-accent, #0f0), inset 0 0 32px rgba(0, 255, 0, 0.05);
        }
      }
      @keyframes lock-screen-v2-logo-pulse {
        0%, 100% {
          box-shadow: 0 0 20px var(--app-theme-accent, #0f0), inset 0 0 18px rgba(0, 255, 0, 0.07);
          filter: brightness(1);
        }
        50% {
          box-shadow: 0 0 40px var(--app-theme-accent, #0f0), 0 0 56px rgba(0, 255, 0, 0.2);
          filter: brightness(1.09);
        }
      }
      @keyframes lock-screen-v2-cta-pulse {
        0%, 100% {
          box-shadow: 0 0 16px rgba(0, 255, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        50% {
          box-shadow: 0 0 28px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
      }
      @keyframes lock-screen-v2-key-glow {
        0%, 100% { box-shadow: 0 0 12px rgba(0, 255, 0, 0.25); }
        50% { box-shadow: 0 0 22px var(--app-theme-accent, #0f0); }
      }
      @keyframes lock-screen-v2-scanlines {
        0%, 100% { opacity: 0.22; }
        50% { opacity: 0.38; }
      }

      /* Lock screen v2 — compact but never clips on mobile */
      #lock-screen.lock-screen-v2 {
        width: min(100%, 420px) !important;
        max-width: 420px !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 auto !important;
        padding: 8px 14px 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: stretch !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        animation: lock-screen-v2-halo 3.8s ease-in-out infinite !important;
      }
      #lock-screen.lock-screen-v2::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
      }
      .lock-screen-v2-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: clamp(5px, 1vh, 8px);
        min-height: 0;
        flex: 1 1 auto;
        overflow: visible;
        justify-content: flex-start;
        z-index: 0;
      }
      .lock-screen-v2-inner::before {
        content: '';
        position: absolute;
        pointer-events: none;
        inset: 0;
        border-radius: 12px;
        background: repeating-linear-gradient(
          0deg,
          transparent,
          transparent 3px,
          rgba(0, 255, 0, 0.04) 3px,
          rgba(0, 255, 0, 0.04) 4px
        );
        animation: lock-screen-v2-scanlines 5s ease-in-out infinite;
        z-index: 0;
      }
      .lock-screen-v2-inner > * {
        position: relative;
        z-index: 1;
      }
      .lock-screen-v2 .brand-logo-lock {
        width: clamp(92px, 17vh, 124px) !important;
        height: clamp(92px, 17vh, 124px) !important;
        max-width: 124px !important;
        margin: 0 auto 2px !important;
        border-width: 3px !important;
        animation: lock-screen-v2-logo-pulse 2.6s ease-in-out infinite alternate !important;
      }
      .lock-screen-v2-greet {
        margin: 4px 0 2px;
        text-align: center;
        font-size: clamp(0.82rem, 2.8vw, 1.05rem);
        color: rgba(210, 255, 220, 0.95);
        font-weight: 600;
        letter-spacing: 0.045em;
        line-height: 1.25;
        max-width: 92%;
        padding: 0 10px;
        text-wrap: balance;
        overflow-wrap: anywhere;
        text-shadow: 0 0 14px rgba(0, 255, 100, 0.35);
      }
      .lock-screen-v2-title-main {
        margin: 0;
        text-align: center;
        font-size: clamp(0.92rem, 3.2vw, 1.12rem);
        font-weight: 800;
        letter-spacing: 0.07em;
        line-height: 1.12;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 14px var(--app-theme-accent, #0f0);
        animation: glowText 2.8s ease-in-out infinite alternate;
      }
      .lock-screen-v2-title-main.lock-screen-v2-title-main--temp-brand {
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }
      .lock-screen-v2-title-sub {
        margin: 0;
        text-align: center;
        font-size: clamp(0.95rem, 3.4vw, 1.15rem);
        font-weight: 800;
        letter-spacing: 0.09em;
        line-height: 1.12;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 12px var(--app-theme-accent, #0f0);
        animation: glowText 3.2s ease-in-out infinite alternate-reverse;
      }
      .lock-screen-v2-tag {
        margin: 0;
        text-align: center;
        font-size: clamp(0.75rem, 2.4vw, 0.88rem);
        color: rgba(140, 220, 155, 0.95);
        font-style: italic;
        text-shadow: 0 0 10px rgba(0, 255, 80, 0.25);
      }
      .lock-screen-v2-last {
        margin: 0;
        text-align: center;
        font-size: clamp(0.68rem, 2.1vw, 0.8rem);
        color: rgba(120, 185, 135, 0.92);
      }
      .lock-screen-v2-last--name {
        margin-top: 4px;
        font-size: clamp(0.85rem, 2.8vw, 1.05rem);
        font-weight: 800;
        letter-spacing: 0.08em;
        color: rgba(170, 255, 200, 0.98);
        text-shadow: 0 0 14px rgba(0, 255, 120, 0.22);
      }
      #account-policy-block-screen {
        min-height: 100dvh;
        box-sizing: border-box;
        padding: max(20px, env(safe-area-inset-top, 0px)) max(18px, 4vw) max(24px, env(safe-area-inset-bottom, 0px));
        background: #0a0203;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .account-policy-block-panel {
        width: 100%;
        max-width: 520px;
        border: 2px solid #ff2a2a;
        border-radius: 12px;
        background: linear-gradient(180deg, #1a0508 0%, #0d0204 100%);
        box-shadow: 0 0 32px rgba(255, 40, 40, 0.35), inset 0 0 60px rgba(80, 0, 0, 0.25);
        padding: 22px 20px;
        font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'Courier New', monospace;
      }
      .account-policy-block-panel--burned {
        border-color: #882222;
        box-shadow: 0 0 28px rgba(40, 0, 0, 0.85);
      }
      .account-policy-block-row {
        display: flex;
        gap: 16px;
        align-items: flex-start;
      }
      .account-policy-block-x {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 2px solid #ff4a4a;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1;
        font-weight: 700;
        background: rgba(60, 0, 0, 0.6);
      }
      .account-policy-block-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ff3a3a;
        flex-shrink: 0;
        background: #200808;
      }
      .account-policy-block-title {
        margin: 0 0 10px 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.02em;
      }
      .account-policy-block-lead {
        margin: 0 0 14px 0;
        color: #f0e8e8;
        font-size: 0.88rem;
        line-height: 1.55;
      }
      .account-policy-block-list {
        margin: 0 0 16px 0;
        padding-left: 1.2em;
        color: rgba(255, 230, 230, 0.92);
        font-size: 0.82rem;
        line-height: 1.6;
      }
      .account-policy-block-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
      }
      .account-policy-block-btn {
        font-family: inherit;
        cursor: pointer;
        padding: 10px 14px;
        border-radius: 6px;
        border: 1px solid #ff4a4a;
        background: rgba(80, 0, 0, 0.45);
        color: #fff;
        font-size: 0.8rem;
      }
      .account-policy-block-btn:hover {
        background: rgba(120, 20, 20, 0.55);
      }
      .lock-screen-v2-status-stack {
        width: 100%;
        display: grid;
        gap: 2px;
        justify-items: center;
      }
      .lock-screen-v2-livepanel {
        width: 100%;
        border: 1px solid rgba(80, 255, 170, 0.35);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(0, 24, 18, 0.88), rgba(0, 12, 9, 0.92));
        box-shadow: 0 0 16px rgba(0, 255, 140, 0.12), inset 0 0 10px rgba(0, 255, 120, 0.08);
        padding: 7px 9px;
        box-sizing: border-box;
      }
      .lock-screen-v2-live-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        color: #9ff7d1;
        letter-spacing: 0.08em;
        font-weight: 700;
      }
      .lock-screen-v2-live-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #41ff9a;
        box-shadow: 0 0 12px rgba(65, 255, 154, 0.9);
        animation: lock-screen-v2-live-dot 1.2s ease-in-out infinite;
      }
      .lock-screen-v2-live-grid {
        margin-top: 6px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 8px;
      }
      .lock-screen-v2-live-cell {
        border: 1px solid rgba(100, 255, 180, 0.25);
        border-radius: 7px;
        padding: 4px 6px;
        background: rgba(0, 22, 16, 0.55);
      }
      .lock-screen-v2-live-k {
        display: block;
        font-size: clamp(0.55rem, 1.8vw, 0.64rem);
        color: rgba(150, 235, 200, 0.82);
        letter-spacing: 0.06em;
      }
      .lock-screen-v2-live-v {
        display: block;
        margin-top: 2px;
        font-size: clamp(0.72rem, 2.2vw, 0.84rem);
        color: #d4ffe9;
        font-weight: 700;
      }
      .lock-screen-v2-live-feed {
        margin-top: 6px;
        border: 1px solid rgba(120, 255, 200, 0.3);
        border-radius: 8px;
        padding: 5px 7px;
        font-size: clamp(0.62rem, 2vw, 0.74rem);
        color: #bafde0;
        background: rgba(0, 18, 12, 0.65);
        letter-spacing: 0.04em;
        min-height: 1.8em;
      }
      .lock-screen-v2-live-bar {
        margin-top: 6px;
        height: 5px;
        border-radius: 999px;
        background: rgba(40, 120, 80, 0.35);
        overflow: hidden;
      }
      .lock-screen-v2-mech-strip {
        margin-top: 6px;
        border: 1px solid rgba(100, 255, 190, 0.25);
        border-radius: 7px;
        padding: 4px 6px;
        font-size: clamp(0.54rem, 1.8vw, 0.64rem);
        text-align: center;
        color: #9be8c9;
        letter-spacing: 0.08em;
        background: rgba(0, 16, 11, 0.55);
      }
      .lock-screen-v2.lock-screen-ai-heavy {
        box-shadow: 0 0 36px rgba(74, 255, 173, 0.35), 0 0 60px rgba(122, 76, 255, 0.2) !important;
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-livepanel {
        border-color: rgba(129, 255, 215, 0.55);
        box-shadow: 0 0 24px rgba(0, 255, 170, 0.2), inset 0 0 20px rgba(109, 71, 255, 0.14);
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-title-main,
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-title-sub {
        text-shadow: 0 0 18px var(--app-theme-accent, #0f0), 0 0 30px rgba(114, 71, 255, 0.3);
      }
      .lock-screen-v2.lock-screen-ai-heavy .lock-screen-v2-mech-strip {
        border-color: rgba(153, 255, 222, 0.45);
        box-shadow: 0 0 14px rgba(109, 255, 196, 0.16);
      }
      .lock-screen-v2.lock-screen-ai-stealth {
        box-shadow: 0 0 14px rgba(70, 255, 170, 0.14) !important;
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-livepanel {
        border-color: rgba(100, 220, 190, 0.22);
        box-shadow: 0 0 8px rgba(0, 255, 140, 0.08), inset 0 0 8px rgba(0, 255, 120, 0.05);
        background: linear-gradient(180deg, rgba(0, 16, 14, 0.82), rgba(0, 10, 9, 0.9));
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-title-main,
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-title-sub {
        text-shadow: 0 0 8px rgba(106, 255, 181, 0.35);
      }
      .lock-screen-v2.lock-screen-ai-stealth .lock-screen-v2-mech-strip {
        border-color: rgba(100, 210, 180, 0.22);
        background: rgba(0, 12, 10, 0.5);
      }
      .lock-screen-v2-live-bar-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #47ff9f, #ffd66e);
        box-shadow: 0 0 10px rgba(71, 255, 159, 0.6);
        transition: width 0.45s ease;
      }
      @keyframes lock-screen-v2-live-dot {
        0%, 100% { opacity: 0.5; transform: scale(0.8); }
        50% { opacity: 1; transform: scale(1); }
      }
      .lock-screen-v2-status-line {
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: clamp(0.72rem, 2.3vw, 0.86rem);
        letter-spacing: 0.05em;
        color: rgba(168, 240, 180, 0.95);
        text-shadow: 0 0 10px rgba(0, 255, 80, 0.24);
      }
      .lock-screen-v2-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #46ff74;
        box-shadow: 0 0 10px rgba(70, 255, 116, 0.95), 0 0 2px rgba(255, 255, 255, 0.6) inset;
        animation: lock-screen-v2-status-ping 1.3s ease-in-out infinite;
        flex-shrink: 0;
      }
      @keyframes lock-screen-v2-status-ping {
        0%, 100% { opacity: 0.55; transform: scale(0.86); }
        50% { opacity: 1; transform: scale(1); }
      }
      .lock-screen-v2-key {
        width: 100%;
        box-sizing: border-box;
        padding: clamp(8px, 1.6vh, 12px) 12px;
        margin: 0;
        font-size: clamp(0.85rem, 2.6vw, 1rem);
        text-align: center;
        font-family: 'Share Tech Mono', monospace;
        background: rgba(0, 0, 0, 0.58);
        border: 1px solid var(--app-theme-accent, #0f0);
        border-radius: 10px;
        color: var(--app-theme-text, #0f0);
        outline: none;
        animation: lock-screen-v2-key-glow 2.4s ease-in-out infinite;
        caret-color: var(--app-theme-accent, #0f0);
      }
      .lock-screen-v2-key:focus {
        animation: none;
        box-shadow: 0 0 20px var(--app-theme-accent, #0f0), 0 0 8px rgba(255, 255, 255, 0.08) inset;
      }
      .lock-screen-v2-key:disabled {
        opacity: 0.65;
        animation: none;
      }
      .lock-screen-v2-key-wrap {
        width: 100%;
        position: relative;
      }
      .lock-screen-v2-actions {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
      }
      .lock-screen-v2-actions--single button {
        width: 166px !important;
        max-width: 166px !important;
        flex: 0 0 166px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .lock-screen-v2-actions button {
        flex: 0 0 auto;
        margin: 0 !important;
        width: 166px !important;
        max-width: 166px !important;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 7px 9px !important;
        font-size: clamp(0.66rem, 2.05vw, 0.8rem) !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
        letter-spacing: 0.055em !important;
        border-radius: 10px !important;
        border: 1px solid var(--app-theme-accent, #0f0) !important;
        background: rgba(0, 28, 0, 0.62) !important;
        color: var(--app-theme-text, #0f0) !important;
        box-shadow: 0 0 18px rgba(0, 255, 0, 0.36), 0 0 34px rgba(0, 255, 120, 0.14),
          inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace !important;
        transition: filter 0.18s ease, transform 0.15s ease;
        animation: lock-screen-v2-cta-pulse 2.1s ease-in-out infinite;
      }
      .lock-screen-v2-actions button:hover:not(:disabled) {
        filter: brightness(1.15);
        transform: translateY(-1px);
        animation: none;
        box-shadow: 0 0 26px var(--app-theme-accent, #0f0), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
      }
      .lock-screen-v2-actions button:disabled {
        cursor: wait;
        opacity: 0.75;
        animation: none;
      }
      .lock-screen-v2-status {
        min-height: 1.15em;
        text-align: center;
        font-size: clamp(0.65rem, 2vw, 0.78rem);
        font-weight: 700;
        margin: 0;
      }
      .lock-screen-v2-status--busy {
        color: #7eecff;
        text-shadow: 0 0 10px rgba(100, 230, 255, 0.55);
      }
      .lock-screen-v2-status--caps {
        color: #ffea00;
        text-shadow: 0 0 10px rgba(255, 234, 0, 0.65);
      }
      .lock-screen-v2-newrow {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 0;
        border: 1px solid rgba(0, 255, 0, 0.38);
        border-radius: 10px;
        padding: clamp(4px, 0.8vh, 6px) 8px;
        background: rgba(0, 20, 0, 0.58);
        box-sizing: border-box;
        box-shadow: 0 0 12px rgba(0, 255, 0, 0.12);
      }
      .lock-screen-v2-newrow-btn {
        flex: 0 0 auto;
        padding: clamp(5px, 1vh, 7px) 10px !important;
        font-size: clamp(0.62rem, 1.9vw, 0.74rem) !important;
        font-weight: 800 !important;
        letter-spacing: 0.045em !important;
        border-radius: 8px !important;
        border: 1px solid #0c6 !important;
        background: #013a1d !important;
        color: #d8ffe8 !important;
        cursor: pointer;
        font-family: 'Share Tech Mono', monospace !important;
        white-space: nowrap;
        box-shadow: 0 0 12px rgba(0, 255, 100, 0.2);
        transition: filter 0.15s ease, box-shadow 0.15s ease;
      }
      .lock-screen-v2-newrow-btn:hover {
        filter: brightness(1.12);
        box-shadow: 0 0 18px rgba(0, 255, 120, 0.35);
      }
      .lock-screen-v2-newrow-pay {
        flex: 1;
        min-width: 0;
        font-size: clamp(0.6rem, 1.8vw, 0.72rem);
        line-height: 1.3;
        color: rgba(185, 255, 205, 0.95);
        text-align: left;
        overflow: hidden;
        white-space: nowrap;
      }
      .lock-screen-v2-newrow-pay-live {
        display: block;
        min-width: 100%;
        max-width: 100%;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.45s ease, transform 0.45s ease;
        font-size: clamp(0.72rem, 2vw, 0.94rem);
        color: rgba(192, 255, 225, 0.98);
        font-family: 'Share Tech Mono', 'VT323', 'Courier New', monospace;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-shadow: 0 0 8px rgba(112, 255, 170, 0.35), 0 0 18px rgba(80, 255, 150, 0.22);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 1.06;
      }
      .lock-screen-v2-newrow-pay-live.dir-up {
        transform: translateY(9px);
      }
      .lock-screen-v2-newrow-pay-live.dir-down {
        transform: translateY(-9px);
      }
      .lock-screen-v2-newrow-pay-live.is-visible {
        opacity: 1;
        transform: translateY(0);
      }
      .lock-screen-v2-newopts {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-top: 4px;
      }
      .lock-screen-v2-newopts button {
        flex: 1;
        padding: 7px 6px !important;
        font-size: clamp(0.65rem, 2vw, 0.76rem) !important;
        margin: 0 !important;
        width: auto !important;
        border-radius: 8px !important;
      }
      /* Create Account — distinct blue CTA vs green theme */
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type {
        background: linear-gradient(165deg, #1d4ed8 0%, #2563eb 45%, #1e40af 100%);
        border: 1px solid rgba(147, 197, 253, 0.85);
        color: #f0f7ff;
        text-shadow:
          0 0 10px rgba(96, 165, 250, 0.55),
          0 1px 0 rgba(0, 20, 60, 0.45);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.12),
          0 0 14px rgba(37, 99, 235, 0.35);
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type:hover {
        background: linear-gradient(165deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
        border-color: rgba(191, 219, 254, 0.95);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.18),
          0 0 22px rgba(59, 130, 246, 0.55);
        animation: none;
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:first-of-type:focus-visible {
        outline: 2px solid rgba(147, 197, 253, 0.95);
        outline-offset: 2px;
      }
      /* Payment Proof — silver / chrome secondary CTA */
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type {
        background: linear-gradient(
          165deg,
          #e4e7ec 0%,
          #bcc1cc 38%,
          #8f96a3 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.72);
        color: #1c1f26;
        text-shadow:
          0 1px 0 rgba(255, 255, 255, 0.45),
          0 0 1px rgba(0, 0, 0, 0.15);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.55),
          inset 0 -1px 0 rgba(0, 0, 0, 0.12),
          0 0 12px rgba(200, 210, 225, 0.28);
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type:hover {
        background: linear-gradient(
          165deg,
          #eef1f6 0%,
          #c8cdd8 40%,
          #9aa2b0 100%
        );
        border-color: rgba(255, 255, 255, 0.92);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.65),
          inset 0 -1px 0 rgba(0, 0, 0, 0.1),
          0 0 18px rgba(220, 228, 238, 0.45);
        animation: none;
      }
      #lock-screen.lock-screen-v2 .lock-screen-v2-newopts button:last-of-type:focus-visible {
        outline: 2px solid rgba(226, 232, 240, 0.95);
        outline-offset: 2px;
      }
      .lock-screen-v2-admin {
        flex: 0 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(0, 255, 0, 0.42);
        border-radius: 11px;
        padding: clamp(6px, 1.1vh, 9px) 9px 7px;
        background: rgba(0, 14, 0, 0.55);
        box-shadow: 0 0 18px rgba(0, 255, 0, 0.16);
      }
      .lock-screen-v2-admin-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 6px;
        font-size: clamp(0.68rem, 2.1vw, 0.8rem);
        letter-spacing: 0.2em;
        font-weight: 800;
        color: var(--app-theme-text, #0f0);
        text-shadow: 0 0 10px var(--app-theme-accent, #0f0);
      }
      .lock-screen-v2-admin-banner::before,
      .lock-screen-v2-admin-banner::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--app-theme-accent, #0f0), transparent);
        opacity: 0.75;
      }
      .lock-screen-v2-admin-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 6px;
      }

      /* ADMIN INFO toggle: hide the lock-key UI to give space */
      #lock-screen.lock-screen-v2:not(.lock-screen-v2--admin-open) .lock-screen-v2-admin-grid {
        display: none !important;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-key-wrap,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-actions,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-status,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-newrow,
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-newopts {
        display: none !important;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-admin {
        flex: 1 1 auto;
      }
      #lock-screen.lock-screen-v2--admin-open .lock-screen-v2-admin-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px 6px;
      }
      .lock-screen-v2-admin-cell {
        border: 1px solid rgba(0, 255, 0, 0.32);
        border-radius: 9px;
        padding: 6px 7px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        background: rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
      }
      .lock-screen-v2-admin-cell:hover {
        border-color: rgba(0, 255, 0, 0.55);
        box-shadow: 0 0 14px rgba(0, 255, 0, 0.15);
      }
      .lock-screen-v2-admin-cell-top {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: clamp(0.62rem, 1.9vw, 0.72rem);
        font-weight: 700;
        color: rgba(200, 255, 210, 0.98);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      .lock-screen-v2-admin-cell-top svg {
        flex-shrink: 0;
        width: 19px;
        height: 19px;
      }
      .lock-screen-v2-admin-cell a {
        font-size: clamp(0.58rem, 1.85vw, 0.7rem);
        color: #e8fff0;
        text-decoration: underline;
        word-break: break-word;
        line-height: 1.25;
      }
      .lock-screen-v2-admin-cell a:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 255, 100, 0.45);
      }
      .lock-screen-v2-copyright {
        margin: 6px 0 0;
        text-align: center;
        font-size: clamp(0.62rem, 2vw, 0.72rem);
        letter-spacing: 0.06em;
        color: rgba(150, 215, 170, 0.82);
        text-shadow: 0 0 10px rgba(0, 255, 100, 0.14);
        user-select: none;
      }
      .lock-screen-v2-codebar {
        margin-top: 6px;
        min-height: 46px;
        max-height: 60px;
        overflow: hidden;
        border: 1px solid rgba(60, 210, 255, 0.28);
        border-radius: 8px;
        background: rgba(0, 14, 24, 0.45);
        box-shadow: inset 0 0 16px rgba(0, 180, 255, 0.12);
        padding: 5px 7px;
        text-align: left;
      }
      .reactive-code-line {
        font-family: 'Share Tech Mono', monospace;
        font-size: 0.56rem;
        line-height: 1.24;
        letter-spacing: 0.03em;
        color: rgba(130, 255, 220, 0.88);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.95;
      }
      .reactive-code-line:nth-child(2n) {
        color: rgba(120, 220, 255, 0.86);
      }
      .reactive-code-line--muted {
        color: rgba(120, 180, 210, 0.72);
      }
      .input-screen-reactive-rails {
        pointer-events: none;
        position: absolute;
        top: 122px;
        bottom: 102px;
        left: 0;
        right: 0;
        z-index: 1;
      }
      .input-screen-reactive-rail {
        position: absolute;
        width: 44px;
        border: 1px solid rgba(60, 210, 255, 0.24);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(0, 16, 25, 0.55), rgba(0, 8, 16, 0.4));
        box-shadow: inset 0 0 18px rgba(0, 140, 255, 0.12);
        padding: 6px 4px;
        overflow: hidden;
      }
      .input-screen-reactive-rail--left { left: -52px; }
      .input-screen-reactive-rail--right { right: -52px; }
      .input-screen-reactive-rail .reactive-code-line {
        font-size: 0.5rem;
        line-height: 1.18;
      }
      .lock-screen-v2-contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding: 7px 7px;
        border-radius: 9px;
        border: 1px solid rgba(0, 255, 0, 0.38);
        background: rgba(0, 0, 0, 0.35);
        color: #e8fff0;
        text-decoration: none;
        font-size: clamp(0.6rem, 1.9vw, 0.72rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      .lock-screen-v2-contact-btn:hover {
        border-color: rgba(0, 255, 0, 0.62);
        box-shadow: 0 0 14px rgba(0, 255, 0, 0.18);
        color: #fff;
      }
      .lock-screen-v2-contact-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
      }
      @media (max-height: 640px) {
        #lock-screen.lock-screen-v2 {
          padding: 6px 12px 8px !important;
        }
        .lock-screen-v2-inner {
          gap: 4px;
        }
        .lock-screen-v2 .brand-logo-lock {
          width: clamp(80px, 16vh, 102px) !important;
          height: clamp(80px, 16vh, 102px) !important;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(0.92rem, 3.5vw, 1.12rem) !important;
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(0.82rem, 3vw, 1rem) !important;
        }
      }
      @media (max-width: 430px) {
        #lock-screen.lock-screen-v2 {
          width: min(100%, 372px) !important;
          max-width: 372px !important;
          padding: 6px 10px 8px !important;
        }
        .lock-screen-v2-inner {
          gap: 4px;
        }
        .lock-screen-v2 .brand-logo-lock {
          width: clamp(74px, 15vh, 98px) !important;
          height: clamp(74px, 15vh, 98px) !important;
          border-width: 2px !important;
        }
        .lock-screen-v2-greet {
          font-size: clamp(0.76rem, 2.7vw, 0.96rem) !important;
          margin: 2px 0 1px !important;
        }
        .lock-screen-v2-title-main {
          font-size: clamp(0.92rem, 3.5vw, 1.14rem) !important;
        }
        .lock-screen-v2-title-sub {
          font-size: clamp(0.82rem, 3.1vw, 1.02rem) !important;
        }
        .lock-screen-v2-livepanel {
          padding: 6px 8px !important;
        }
        .lock-screen-v2-key {
          min-height: 40px !important;
          font-size: 0.9rem !important;
          padding: 10px 11px !important;
        }
        .lock-screen-v2-actions button,
        .lock-screen-v2-newrow-btn,
        .lock-screen-v2-newopts button,
        .lock-screen-v2-contact-btn {
          min-height: 38px !important;
          font-size: 0.74rem !important;
          padding: 8px 10px !important;
        }
        .lock-screen-v2-copyright {
          font-size: 0.62rem !important;
          margin-top: 2px !important;
        }
        .lock-screen-v2-codebar {
          min-height: 40px;
          max-height: 52px;
          padding: 4px 6px;
        }
      }
      @media (max-width: 460px), (min-width: 780px) {
        .input-screen-reactive-rails {
          display: none;
        }
      }
      @media (max-height: 560px) {
        #lock-screen.lock-screen-v2 { overflow-y: auto !important; }
        .lock-screen-v2-title-main { font-size: 0.88rem !important; }
        .lock-screen-v2-title-sub { font-size: 0.78rem !important; }
        .lock-screen-v2-admin-cell a { font-size: 0.58rem !important; }
        .lock-screen-v2 .brand-logo-lock {
          width: 72px !important;
          height: 72px !important;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        #lock-screen.lock-screen-v2,
        .lock-screen-v2 .brand-logo-lock,
        .lock-screen-v2-title-main,
        .lock-screen-v2-title-sub,
        .lock-screen-v2-key:not(:focus),
        .lock-screen-v2-actions button:not(:hover),
        .lock-screen-v2-inner::before {
          animation: none !important;
        }
      }

      /* Blinking cursor effect for inputs */
      @keyframes blink-caret {
        from, to { border-right-color: transparent; }
        50% { border-right-color: #0f0; }
      }

      input:focus {
        caret-color: var(--app-theme-accent);
        animation: blink-caret 1s step-end infinite;
      }

      #lock-screen h2.glitch,
      #lock-screen h3.glitch {
        color: var(--app-theme-text);
        margin: 10px 0;
        animation: glowText 2s infinite;
      }

      #lock-screen h2.glitch {
        font-size: 2em;
        margin-bottom: 5px;
      }

      #lock-screen h3.glitch {
        font-size: 1.5em;
        margin-top: 0;
      }

      #lock-screen p.glitch {
        font-size: 1.2em;
        margin: 20px 0;
        color: var(--app-theme-text);
        animation: glowText 3s infinite;
      }

      #lock-screen .wake-up-text {
        font-size: 1.5em;
        margin: 20px 0;
        color: var(--app-theme-text);
        animation: glowText 2s infinite;
        font-weight: bold;
        letter-spacing: 2px;
      }

      #lock-screen .contact-info {
        text-align: left;
        color: #bfffd7;
        padding: 12px;
        background: rgba(0, 10, 0, 0.7);
        border: 1px solid rgba(0, 255, 110, 0.35);
        margin-top: 20px;
        transition: all 0.3s ease;
        border-radius: 8px;
        max-height: 160px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 255, 120, 0.7) rgba(0, 30, 0, 0.5);
      }

      #lock-screen .contact-info:hover {
        border-color: #0f0;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
        background: rgba(0, 20, 0, 0.6);
      }

      #lock-screen .contact-info p {
        margin: 8px 0;
        transition: all 0.3s ease;
        cursor: pointer;
        padding: 7px 10px;
        border-radius: 3px;
        border: 1px solid rgba(0, 255, 120, 0.12);
      }

      #lock-screen .contact-info p strong {
        color: #00ff99;
      }

      #lock-screen .contact-info p:hover {
        color: #fff;
        text-shadow: 0 0 5px #0f0;
        transform: translateX(3px);
        background: rgba(0, 40, 10, 0.7);
        border-color: rgba(0, 255, 120, 0.45);
      }

      #lock-screen .contact-info::-webkit-scrollbar {
        width: 8px;
      }

      #lock-screen .contact-info::-webkit-scrollbar-track {
        background: rgba(0, 22, 0, 0.55);
        border-radius: 8px;
      }

      #lock-screen .contact-info::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(0, 255, 110, 0.9), rgba(0, 140, 70, 0.9));
        border-radius: 8px;
      }

      @media (max-width: 768px) {
        #lock-screen {
          max-width: 90%;
          padding: 20px;
        }

        #lock-screen h2.glitch {
          font-size: 1.5em;
        }

        #lock-screen h3.glitch {
          font-size: 1.2em;
        }

        #lock-screen input,
        #lock-screen button {
          padding: 12px;
          font-size: 1em;
        }
      }

      /* Add new calculator mode styles */
      .mode-switch {
        background-color: rgba(0, 40, 0, 0.8);
        color: #0f0;
        border: 1px solid #0f0;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
      }

      .mode-switch.active {
        background-color: #0f0;
        color: #000;
      }

      .mode-switch:hover {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }

      .scientific-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        margin-bottom: 1px;
      }

      .scientific-row .calc-button {
        font-size: 14px;
        background-color: rgba(0, 60, 0, 0.8);
        color: #0f0;
        border: 1px solid rgba(0, 255, 0, 0.3);
      }

      .scientific-row .calc-button:hover {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
      }

      @media (max-width: 480px) {
        .scientific-row .calc-button {
          font-size: 12px;
          padding: 8px 4px;
        }
      }

      /* Add currency converter styles */
      .currency-converter {
        padding: 10px;
        margin-bottom: 10px;
        background-color: rgba(0, 20, 0, 0.8);
        border-radius: 5px;
      }

      .currency-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        gap: 10px;
      }

      .currency-select {
        flex: 1;
        padding: 8px;
        background-color: rgba(0, 40, 0, 0.8);
        color: #0f0;
        border: 1px solid #0f0;
        border-radius: 4px;
        font-family: 'Share Tech Mono', monospace;
        cursor: pointer;
      }

      .currency-select option {
        background-color: #000;
        color: #0f0;
      }

      .currency-arrow {
        color: #0f0;
        font-size: 20px;
        padding: 0 10px;
      }

      .convert-button {
        width: 100%;
        margin-top: 5px;
        background-color: rgba(0, 60, 0, 0.8) !important;
        color: #0f0 !important;
      }

      .convert-button:hover {
        background-color: rgba(0, 80, 0, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
      }

      @media (max-width: 480px) {
        .currency-row {
          flex-direction: column;
          gap: 5px;
        }
        
        .currency-arrow {
          transform: rotate(90deg);
          padding: 5px;
        }
      }

      /* User Management System Styles (duplicate block — keep in sync with earlier .user-list) */
      .user-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        max-height: min(58vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        border: 1px solid rgba(0, 255, 140, 0.35);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        background: linear-gradient(180deg, rgba(0, 18, 10, 0.65) 0%, rgba(0, 8, 6, 0.85) 100%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.05),
          0 12px 40px rgba(0, 0, 0, 0.45);
      }

      /* Enhanced user management styles */
      .user-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        margin-bottom: 5px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 5px;
        background-color: rgba(0, 20, 0, 0.5);
        transition: all 0.3s ease;
      }

      .user-item:hover {
        background-color: rgba(0, 30, 0, 0.7);
        border-color: rgba(0, 255, 0, 0.6);
      }

      .user-item.expired {
        border-color: rgba(255, 0, 0, 0.5);
        background-color: rgba(30, 0, 0, 0.5);
      }

      .user-info {
        flex: 1;
        min-width: 0;
      }

      .user-name {
        font-size: 16px;
        color: #0f0;
        margin-bottom: 3px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .user-meta {
        display: flex;
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        gap: 10px;
        flex-wrap: wrap;
      }

      .user-type {
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 11px;
        text-transform: uppercase;
      }

      .user-type.admin {
        background-color: rgba(0, 100, 0, 0.6);
        color: #fff;
      }

      .user-type.temporary {
        background-color: rgba(100, 100, 0, 0.6);
        color: #fff;
      }

      .user-expiry {
        font-style: italic;
      }

      .expired .user-expiry {
        color: #f55;
      }

      .user-actions {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-start;
      }

      .user-actions button {
        padding: 4px 8px;
        min-height: unset;
        min-width: 60px;
        font-size: 12px;
        margin: 2px;
      }

      .admin-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
        background-color: rgba(0, 20, 0, 0.4);
        border-radius: 5px;
        border: 1px solid rgba(0, 255, 0, 0.2);
      }

      .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        background-color: rgba(0, 30, 0, 0.5);
        border-radius: 5px;
      }

      .stat-label {
        font-size: 12px;
        color: rgba(0, 255, 0, 0.8);
        margin-bottom: 5px;
      }

      .stat-value {
        font-size: 18px;
        font-weight: bold;
        color: #0f0;
      }

      .add-user-btn {
        margin-top: 10px;
        background-color: rgba(0, 80, 0, 0.8);
        font-weight: bold;
      }

      .clear-expired-btn {
        margin-top: 10px;
        background-color: rgba(80, 20, 0, 0.8);
        color: #ffaa99;
      }

      .clear-expired-btn:hover {
        background-color: rgba(120, 30, 0, 0.9);
      }

      /* Mobile adjustments for user management */
      @media (max-width: 768px) {
        .user-item {
          flex-direction: column;
          align-items: flex-start;
        }
        
        .user-actions {
          width: 100%;
          margin-top: 10px;
          justify-content: space-between;
        }
        
        .user-actions button {
          flex: 1;
        }
        
        .admin-stats {
          grid-template-columns: repeat(2, 1fr);
        }
        /* Reduce overly-wide form controls inside admin dashboard only */
        #admin-dashboard input,
        #admin-dashboard select,
        #admin-dashboard button {
          width: 100%;
        }
      }

      /* User Login Screen Styles */
      #user-login-screen {
        position: relative;
        z-index: 5;
        max-width: 500px;
        margin: 0 auto;
        padding: 30px;
        background-color: rgba(0, 10, 0, 0.9);
        border: 1px solid #0f0;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
        text-align: center;
      }

      #user-login-screen h2.glitch {
        color: #0f0;
        margin: 10px 0 20px;
        animation: glowText 2s infinite;
      }

      .login-user-list {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid rgba(0, 255, 0, 0.5);
        border-radius: 8px;
      }

      .login-user-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 255, 0, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: rgba(0, 20, 0, 0.7);
      }

      .login-user-item:last-child {
        border-bottom: none;
      }

      .login-user-item:hover {
        background-color: rgba(0, 40, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.4) inset;
      }

      .login-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(0, 80, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        margin-right: 15px;
        border: 2px solid rgba(0, 255, 0, 0.6);
      }

      .login-user-info {
        flex: 1;
        text-align: left;
      }

      .login-user-name {
        font-size: 16px;
        font-weight: bold;
        color: #0f0;
        margin-bottom: 5px;
      }

      .login-user-type {
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        text-transform: uppercase;
      }

      .login-user-arrow {
        margin-left: 10px;
        font-size: 20px;
        color: rgba(0, 255, 0, 0.7);
      }

      .login-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
      }

      .create-user-btn {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
        font-weight: bold;
      }

      .back-to-lock-btn {
        background-color: rgba(60, 0, 0, 0.7);
        color: #f99;
      }

      /* Mobile adjustments for login screen */
      @media (max-width: 768px) {
        #user-login-screen {
          max-width: 90%;
          padding: 20px;
        }
        
        .login-user-avatar {
          width: 35px;
          height: 35px;
          font-size: 16px;
        }
        
        .login-user-name {
          font-size: 14px;
        }
        
        .login-user-type {
          font-size: 10px;
        }
      }

      /* Enhanced user management styles */
      .user-meta {
        display: flex;
        font-size: 12px;
        color: rgba(0, 255, 0, 0.7);
        gap: 10px;
        flex-wrap: wrap;
      }

      .user-age,
      .user-phone,
      .user-access-key {
        background-color: rgba(0, 40, 0, 0.5);
        padding: 2px 6px;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
        display: inline-block;
      }

      .user-access-key {
        font-family: monospace;
        background-color: rgba(40, 40, 0, 0.5);
        border: 1px dashed rgba(255, 255, 0, 0.3);
        cursor: help;
      }

      .user-actions {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
      }

      .user-actions button {
        padding: 4px 8px;
        min-height: unset;
        min-width: 60px;
        font-size: 12px;
      }

      .user-actions button:nth-child(3) {
        background-color: rgba(60, 60, 0, 0.6);
      }

      .user-actions button:nth-child(3):hover {
        background-color: rgba(80, 80, 0, 0.8);
      }

      @media (max-width: 768px) {
        .user-meta {
          flex-direction: column;
          gap: 5px;
          margin-top: 5px;
        }
        
        .user-age,
        .user-phone,
        .user-access-key {
          max-width: 100%;
        }
        
        .user-actions {
          width: 100%;
          margin-top: 10px;
        }
        
        .user-item {
          padding: 10px;
        }
      }

      /* Admin view toggle buttons */
      .admin-view-toggle {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin: 15px 0;
      }
      
      .view-toggle-btn {
        flex: 1;
        padding: 12px 10px;
        background-color: rgba(0, 30, 0, 0.7);
        border: 1px solid #0a0;
        color: #0f0;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 5px;
      }
      
      .view-toggle-btn:hover {
        background-color: rgba(0, 50, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        transform: translateY(-2px);
      }
      
      .view-toggle-btn.active {
        background-color: rgba(0, 80, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
        border-color: #0f0;
        transform: translateY(-2px);
      }
      
      .view-toggle-btn .btn-icon {
        font-size: 18px;
      }
      
      .admin-title {
        font-size: 1.2em;
        color: #ff9900;
        margin: 10px 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
      }
      
      .admin-section-title {
        border-bottom: 1px solid #0f0;
        padding-bottom: 8px;
        margin-top: 20px;
      }

      /* Cinematic admin shell */
      .admin-hero-bar {
        position: relative;
        margin: 12px 0 20px;
        padding: 18px 20px 20px;
        border-radius: 16px;
        background:
          linear-gradient(135deg, rgba(0, 45, 28, 0.55) 0%, rgba(0, 12, 22, 0.92) 50%, rgba(20, 0, 35, 0.45) 100%);
        border: 1px solid rgba(0, 255, 160, 0.28);
        box-shadow:
          0 0 0 1px rgba(0, 0, 0, 0.4),
          0 20px 50px rgba(0, 0, 0, 0.55),
          inset 0 1px 0 rgba(255, 255, 255, 0.07);
        overflow: hidden;
      }

      .admin-hero-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 255, 120, 0.12), transparent 55%),
          radial-gradient(ellipse 60% 50% at 100% 100%, rgba(120, 0, 255, 0.1), transparent 50%);
        pointer-events: none;
      }

      .admin-hero-bar__inner {
        position: relative;
        z-index: 1;
      }

      .admin-hero-bar h4.admin-section-title {
        margin-top: 0;
        border-bottom: none;
        font-size: 1.05rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #b8ffd4;
        text-shadow: 0 0 20px rgba(0, 255, 120, 0.35);
      }

      .admin-stats--cinematic {
        background: rgba(0, 0, 0, 0.28);
        border-radius: 12px;
        border: 1px solid rgba(0, 255, 160, 0.15);
      }

      .admin-stats--cinematic .stat-item {
        background: linear-gradient(180deg, rgba(0, 35, 22, 0.65), rgba(0, 18, 14, 0.9));
        border: 1px solid rgba(0, 255, 140, 0.12);
        border-radius: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .admin-stats--cinematic .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      }

      .direct-access-strip {
        position: relative;
        margin: 0 0 22px;
        padding: 16px 18px;
        border-radius: 14px;
        border: 1px solid rgba(0, 220, 255, 0.35);
        background: linear-gradient(100deg, rgba(0, 40, 55, 0.75), rgba(0, 22, 18, 0.9));
        box-shadow: 0 12px 36px rgba(0, 30, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
      }

      .direct-access-strip__copy {
        flex: 1;
        min-width: 220px;
      }

      .direct-access-strip__copy h5 {
        margin: 0 0 6px;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #7ef;
      }

      .direct-access-strip__copy p {
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.45;
        color: rgba(180, 240, 255, 0.88);
        max-width: 520px;
      }

      .direct-access-strip__cta {
        flex-shrink: 0;
      }

      .admin-command-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
        margin: 18px 0 22px;
      }

      .admin-command-tile {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 16px 16px 18px;
        min-height: 88px;
        text-align: left;
        border: none;
        cursor: pointer;
        border-radius: 14px;
        color: #dfffe8;
        font-family: inherit;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(145deg, rgba(0, 32, 20, 0.92), rgba(0, 10, 14, 0.96));
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

      .admin-command-tile::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.25s ease;
        background: radial-gradient(circle at 30% 20%, rgba(0, 255, 140, 0.15), transparent 55%);
        pointer-events: none;
      }

      .admin-command-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 120, 0.12);
      }

      .admin-command-tile:hover::before {
        opacity: 1;
      }

      .admin-command-tile:focus-visible {
        outline: 2px solid #0f8;
        outline-offset: 3px;
      }

      .admin-command-tile__icon {
        font-size: 1.65rem;
        line-height: 1;
        filter: drop-shadow(0 0 10px rgba(0, 255, 120, 0.35));
        flex-shrink: 0;
      }

      .admin-command-tile__text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
      }

      .admin-command-tile__title {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.11em;
        text-transform: uppercase;
        color: #cfffdd;
      }

      .admin-command-tile__sub {
        font-size: 0.72rem;
        line-height: 1.35;
        color: rgba(160, 220, 190, 0.75);
      }

      .admin-command-tile--accent {
        border-color: rgba(0, 200, 255, 0.45);
        background: linear-gradient(145deg, rgba(0, 38, 52, 0.92), rgba(0, 14, 22, 0.96));
      }

      .admin-command-tile--accent .admin-command-tile__title {
        color: #b8f6ff;
      }

      .admin-command-tile--vault {
        border-color: rgba(100, 140, 255, 0.35);
        background: linear-gradient(145deg, rgba(12, 22, 48, 0.92), rgba(4, 10, 24, 0.96));
      }

      .admin-command-tile--commerce {
        border-color: rgba(255, 200, 80, 0.35);
        background: linear-gradient(145deg, rgba(40, 32, 8, 0.9), rgba(12, 10, 4, 0.95));
      }

      .admin-command-tile--alert {
        border-color: rgba(255, 120, 80, 0.45);
        background: linear-gradient(145deg, rgba(48, 14, 10, 0.9), rgba(18, 6, 4, 0.95));
      }

      .admin-command-tile--alert .admin-command-tile__title {
        color: #ffccb8;
      }

      /* Admin dashboard responsiveness: compact on phones, wider grid on desktop */
      @media (max-width: 520px) {
        #admin-dashboard {
          padding: 12px;
          border-radius: 12px;
          max-height: 92vh;
        }
        #admin-dashboard h3.glitch {
          font-size: 1.02rem;
          margin-bottom: 10px;
        }
        .admin-title {
          font-size: 0.95rem;
          margin-bottom: 10px;
        }
        .admin-hero-bar {
          padding: 12px 12px 14px;
          border-radius: 14px;
          margin: 10px 0 14px;
        }
        .admin-stats {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 8px;
          padding: 8px;
        }
        .stat-item {
          padding: 7px 6px;
        }
        .stat-label {
          font-size: 11px;
        }
        .stat-value {
          font-size: 16px;
        }
        .direct-access-strip {
          padding: 12px;
          border-radius: 14px;
          margin-bottom: 16px;
        }
        .direct-access-strip__copy {
          min-width: 0;
        }
        .direct-access-strip__copy p {
          font-size: 0.78rem;
        }
        .admin-command-grid {
          grid-template-columns: 1fr;
          gap: 10px;
          margin: 14px 0 18px;
        }
        .admin-command-tile {
          padding: 12px 12px 12px 14px;
          min-height: 72px;
          border-radius: 14px;
        }
        .admin-command-tile__icon {
          font-size: 1.35rem;
        }
        .admin-command-tile__title {
          font-size: 0.74rem;
        }
        .admin-command-tile__sub {
          font-size: 0.7rem;
        }
      }

      @media (min-width: 900px) {
        #admin-dashboard {
          padding: 22px 24px 28px;
        }
        .admin-command-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      .admin-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100020;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(0, 0, 0, 0.82);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        box-sizing: border-box;
      }

      .admin-modal {
        width: 100%;
        max-width: 460px;
        border-radius: 16px;
        padding: 22px 22px 18px;
        border: 1px solid rgba(0, 255, 180, 0.35);
        background: linear-gradient(165deg, rgba(0, 36, 24, 0.97), rgba(0, 10, 12, 0.99));
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 80, 60, 0.2);
        box-sizing: border-box;
        max-height: none;
        overflow: visible;
      }

      @media (max-width: 600px) {
        .admin-modal-backdrop {
          align-items: flex-start;
          justify-content: center;
          padding: max(8px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px));
          overflow-y: auto;
          overflow-x: hidden;
          -webkit-overflow-scrolling: touch;
        }
        .admin-modal {
          width: 100%;
          max-width: min(420px, 100%);
          margin: 0 auto;
          padding: 14px 14px 12px;
          max-height: min(86dvh, 560px);
          overflow-y: auto;
          overflow-x: hidden;
          -webkit-overflow-scrolling: touch;
          overscroll-behavior: contain;
          border-radius: 12px;
        }
        .admin-modal h3 {
          font-size: 0.88rem;
          letter-spacing: 0.06em;
        }
        .admin-modal p.sub {
          font-size: 0.76rem;
          margin-bottom: 12px;
        }
        .admin-modal label {
          font-size: 0.65rem;
        }
        .admin-modal input[type="text"],
        .admin-modal input[type="number"] {
          padding: 8px 10px;
          font-size: 16px;
          margin-bottom: 10px;
        }
        .admin-modal .preset-row {
          gap: 6px;
          margin-bottom: 10px;
        }
        .admin-modal .preset-row button {
          padding: 8px 10px;
          font-size: 0.7rem;
          min-height: 40px;
        }
        .admin-modal .modal-actions {
          margin-top: 12px;
          justify-content: stretch;
        }
        .admin-modal .modal-actions button {
          flex: 1;
          min-height: 44px;
          padding: 10px 12px;
        }
      }

      .admin-modal h3 {
        margin: 0 0 6px;
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #9fd;
      }

      .admin-modal p.sub {
        margin: 0 0 16px;
        font-size: 0.82rem;
        line-height: 1.45;
        color: rgba(180, 230, 200, 0.85);
      }

      .admin-modal label {
        display: block;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(140, 220, 170, 0.9);
        margin-bottom: 5px;
      }

      .admin-modal input[type="text"],
      .admin-modal input[type="number"] {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.25);
        background: rgba(0, 14, 10, 0.9);
        color: #d8ffe8;
        font-size: 0.95rem;
      }

      .admin-modal .preset-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
      }

      .admin-modal .preset-row button {
        padding: 6px 12px;
        font-size: 0.72rem;
        border-radius: 8px;
        border: 1px solid rgba(0, 200, 255, 0.35);
        background: rgba(0, 30, 40, 0.8);
        color: #9ef;
        cursor: pointer;
      }

      .admin-modal .preset-row button:hover {
        background: rgba(0, 50, 65, 0.95);
      }

      .admin-modal .modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        justify-content: flex-end;
      }

      .admin-modal .modal-actions button {
        padding: 10px 18px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid rgba(0, 255, 120, 0.4);
      }

      .admin-modal .modal-actions .btn-ghost {
        background: transparent;
        color: #9c9;
      }

      .admin-modal .modal-actions .btn-primary {
        background: linear-gradient(180deg, rgba(0, 120, 70, 0.95), rgba(0, 60, 36, 0.98));
        color: #efe;
      }

      .badge-direct {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: linear-gradient(90deg, rgba(0, 180, 220, 0.35), rgba(120, 0, 200, 0.35));
        border: 1px solid rgba(120, 240, 255, 0.45);
        color: #dff;
        vertical-align: middle;
      }

      .admin-user-card.user-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: linear-gradient(160deg, rgba(0, 28, 16, 0.88), rgba(0, 10, 8, 0.94));
        border: 1px solid rgba(0, 255, 130, 0.22);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }

      .admin-user-card .user-info {
        width: 100%;
      }

      .admin-user-card__head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
      }

      .admin-user-card__name-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        min-width: 0;
      }

      .admin-user-card .user-name {
        margin-bottom: 0;
        font-size: 1.05rem;
      }

      .admin-user-card .user-meta {
        gap: 8px 14px;
        line-height: 1.5;
      }

      .admin-user-card .user-actions {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 12px;
      }

      .admin-user-card .user-actions .user-action-btn {
        max-width: none;
        width: 100%;
        justify-content: center;
        min-height: 38px;
        box-sizing: border-box;
      }

      .admin-user-card .user-permissions {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 255, 120, 0.15);
        width: 100%;
        clear: both;
      }

      .admin-user-card .user-permissions label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        color: rgba(180, 255, 200, 0.9);
        cursor: pointer;
      }

      .admin-user-card .dropdown {
        grid-column: 1 / -1;
      }

      @media (min-width: 520px) {
        .admin-user-card .dropdown {
          grid-column: auto;
        }
      }
      
      .regenerate-key-btn {
        background-color: #330000;
        border-color: #ff3300;
        color: #ff3300;
      }
      
      .regenerate-key-btn:hover {
        background-color: #550000;
        box-shadow: 0 0 10px rgba(255, 51, 0, 0.7);
      }
      
      /* Enhanced Admin Dashboard Styles */
      .admin-action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 15px 0;
      }
      
      .admin-btn {
        padding: 10px 15px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        min-width: 120px;
      }
      
      .add-user-btn {
        background-color: rgba(0, 100, 0, 0.8);
        color: #fff;
      }
      
      .add-user-btn:hover {
        background-color: rgba(0, 130, 0, 0.9);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
      }
      
      .backup-btn {
        background-color: rgba(0, 60, 100, 0.8);
        color: #9cf;
      }
      
      .backup-btn:hover {
        background-color: rgba(0, 80, 130, 0.9);
        box-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
      }
      
      .import-btn {
        background-color: rgba(30, 70, 30, 0.8);
        color: #9f9;
      }
      
      .import-btn:hover {
        background-color: rgba(40, 90, 40, 0.9);
        box-shadow: 0 0 10px rgba(80, 255, 80, 0.6);
      }
      
      .refresh-btn {
        background-color: rgba(60, 60, 0, 0.8);
        color: #ff9;
      }
      
      .refresh-btn:hover {
        background-color: rgba(80, 80, 0, 0.9);
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
      }
      
      .clear-expired-btn {
        background-color: rgba(80, 20, 0, 0.8);
        color: #ffaa99;
      }
      
      .clear-expired-btn:hover {
        background-color: rgba(120, 30, 0, 0.9);
        box-shadow: 0 0 10px rgba(255, 100, 50, 0.6);
      }
      
      /* User action buttons */
      .user-action-btn {
        padding: 8px;
        border-radius: 4px;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: all 0.2s ease;
        max-width: 180px;
        width: auto;
      }
      
      .edit-btn {
        background-color: rgba(60, 60, 0, 0.7);
        color: #ff9;
      }
      
      .edit-btn:hover {
        background-color: rgba(80, 80, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
      }
      
      .delete-btn {
        background-color: rgba(80, 0, 0, 0.7);
        color: #faa;
      }
      
      .delete-btn:hover {
        background-color: rgba(100, 0, 0, 0.8);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
      }
      
      .copy-btn {
        background-color: rgba(0, 60, 80, 0.7);
        color: #9df;
      }
      
      .copy-btn:hover {
        background-color: rgba(0, 80, 100, 0.8);
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
      }
      
      .extend-btn {
        background-color: rgba(60, 30, 80, 0.7);
        color: #d9f;
      }
      
      .extend-btn:hover {
        background-color: rgba(80, 40, 100, 0.8);
        box-shadow: 0 0 8px rgba(180, 0, 255, 0.5);
      }
      
      .download-btn {
        background-color: rgba(0, 70, 40, 0.7);
        color: #9fd;
      }
      
      .download-btn:hover {
        background-color: rgba(0, 90, 50, 0.8);
        box-shadow: 0 0 8px rgba(0, 255, 150, 0.5);
      }
      
      /* Admin dropdown styling */
      .dropdown {
        position: relative;
        display: inline-block;
      }
      
      .dropdown-btn {
        background-color: rgba(40, 40, 40, 0.7);
        color: #ccc;
      }
      
      .dropdown-btn:hover {
        background-color: rgba(60, 60, 60, 0.8);
        box-shadow: 0 0 8px rgba(200, 200, 200, 0.5);
      }
      
      .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(10, 10, 10, 0.95);
        min-width: 120px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 0, 0.3);
      }
      
      .dropdown:hover .dropdown-content {
        display: block;
      }
      
      .dropdown-item {
        padding: 10px;
        width: 100%;
        text-align: left;
        border: none;
        background-color: transparent;
        color: #0f0;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
      }
      
      .dropdown-item:hover {
        background-color: rgba(0, 40, 0, 0.7);
      }
      
      /* Button icon styling */
      .btn-icon {
        font-size: 14px;
        display: inline-block;
      }

      @media print {
        body * {
          visibility: hidden;
        }
        #admin-finance-print-root,
        #admin-finance-print-root * {
          visibility: visible;
        }
        #admin-finance-print-root {
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          background: #fff !important;
          color: #111 !important;
        }
        .admin-finance-table th,
        .admin-finance-table td {
          color: #111 !important;
          border-color: #333 !important;
        }
        #admin-finance-print-root .app-data-table,
        #admin-finance-print-root .app-data-table th,
        #admin-finance-print-root .app-data-table td,
        #admin-finance-print-root .app-data-table caption {
          color: #111 !important;
          background: #fff !important;
          border-color: #333 !important;
        }
      }
      
      /* Admin/expired user styling */
      .admin-user {
        border-left: 3px solid #ff9900;
      }
      
      .user-item.expired {
        background-color: rgba(60, 0, 0, 0.2);
        border-left: 3px solid #ff3300;
      }
      
      /* User watermark styling */
      .user-watermark {
        position: fixed;
        top: 10px;
        right: 120px;
        color: rgba(185, 255, 210, 0.95);
        font-size: 11px;
        font-weight: 800;
        pointer-events: none;
        z-index: 110;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        transform: none;
        text-shadow: 0 0 8px rgba(0, 255, 100, 0.22);
        font-family: 'Share Tech Mono', 'VT323', monospace;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 3px 6px;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 0, 0.25);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.22);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        overflow: hidden;
        white-space: nowrap;
        max-width: min(55vw, 240px);
        text-overflow: ellipsis;
        animation: none;
      }
      
      /* Admin greeting styling */
      .admin-greeting {
        position: fixed;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        color: #ff9900;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 1000;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 5px rgba(255, 153, 0, 0.6);
        background-color: rgba(0, 0, 0, 0.7);
        padding: 5px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 153, 0, 0.5);
        pointer-events: none;
        animation: admin-pulse 3s infinite alternate;
        box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
      }

      /* User greeting: same position as admin greeting */
      .admin-greeting.user-greeting {
        color: rgba(185, 255, 210, 0.96);
        text-shadow: 0 0 6px rgba(0, 255, 100, 0.35);
        border: 1px solid rgba(80, 255, 160, 0.45);
        background-color: rgba(0, 0, 0, 0.62);
        box-shadow: 0 0 10px rgba(0, 255, 140, 0.18);
        animation: none;
      }
      
      @keyframes admin-pulse {
        from {
          text-shadow: 0 0 8px rgba(255, 153, 0, 0.5);
          box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
        }
        to {
          text-shadow: 0 0 15px rgba(255, 153, 0, 0.9);
          box-shadow: 0 0 20px rgba(255, 153, 0, 0.6);
        }
      }

      /* Bottom admin navigation buttons */
      .bottom-admin-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        gap: 15px;
      }
      
      .primary-admin-btn {
        flex: 1;
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        background-color: rgba(0, 50, 0, 0.8);
        color: #0f0;
        border: 2px solid #0f0;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
      }
      
      .primary-admin-btn:hover {
        background-color: rgba(0, 70, 0, 0.9);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
        transform: translateY(-3px);
      }
      
      .primary-admin-btn .btn-icon {
        font-size: 20px;
      }
      
      .active-users-btn {
        background-color: rgba(0, 60, 20, 0.8);
      }
      
      .add-user-btn {
        background-color: rgba(20, 60, 0, 0.8);
      }

      /* User view modal */
      .user-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 9999;
      }
      
      .user-modal-content {
        background-color: rgba(0, 30, 0, 0.95);
        border: 1px solid #0f0;
        border-radius: 10px;
        padding: 20px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
        max-height: 80vh;
        overflow-y: auto;
      }
      
      /* Add max-width to all action buttons to prevent them from being too wide */
      button[class*="action"], 
      [class*="action-btn"],
      .dropdown-btn,
      .user-action-btn,
      .edit-btn,
      .delete-btn,
      .copy-btn,
      .extend-btn,
      .download-btn {
        max-width: 180px !important;
        width: auto !important;
      }
      
      .user-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #0f0;
      }
      
      .user-modal-title {
        color: #0f0;
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .user-modal-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #0f0;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
      }
      
      .user-modal-close:hover {
        transform: scale(1.2);
        color: #ff0;
      }
      
      .user-modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
      }

      /* Full opaque account lockdown — no see-through to lock screen / matrix */
      body.account-lockdown-fullscreen #matrix {
        visibility: hidden !important;
      }
      body.account-lockdown-fullscreen .brand-logo-global {
        visibility: hidden !important;
      }
      .account-lockdown-overlay {
        position: fixed;
        inset: 0;
        z-index: 50000;
        background-color: #0b0000;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        color: #ff6b6b;
        font-family: 'Share Tech Mono', monospace;
        text-align: center;
        box-shadow: inset 0 0 100px rgba(60, 0, 0, 0.65);
      }
      .account-lockdown-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: #0b0000;
        z-index: 0;
        pointer-events: none;
      }
      .account-lockdown-overlay .glitch.lockdown-title-glitch {
        color: #ff2222 !important;
      }
      .account-lockdown-scroll-inner {
        justify-content: center;
      }
      .lockdown-avatar-ring {
        width: clamp(96px, 32vw, 132px);
        height: clamp(96px, 32vw, 132px);
        box-sizing: border-box;
      }
      .lockdown-emoji {
        font-size: clamp(56px, 15vw, 88px);
        line-height: 1;
      }
      .lockdown-title-glitch {
        font-size: clamp(1.35rem, 5.8vw, 2.1rem);
      }
      .lockdown-user-line {
        font-size: clamp(0.8rem, 3.6vw, 0.95rem);
      }
      .lockdown-subline {
        font-size: clamp(0.68rem, 3.1vw, 0.8rem);
      }
      .lockdown-body-text {
        font-size: clamp(0.88rem, 3.6vw, 1.15rem);
      }
      .lockdown-countdown-box {
        font-size: clamp(1.25rem, 6.5vw, 2rem);
        padding: clamp(12px, 3.5vw, 18px) clamp(18px, 5vw, 28px);
      }
      .lockdown-footer-line {
        font-size: clamp(0.75rem, 3.2vw, 0.95rem);
      }

      /* Self-control lock modal — tighter on phones */
      .self-lock-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 20000;
        background-color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        font-family: 'Share Tech Mono', monospace;
        color: #0f0;
        text-align: center;
        box-sizing: border-box;
      }
      .self-lock-modal-card {
        position: relative;
        background: linear-gradient(180deg, #061412, #030a09);
        border: 1px solid rgba(120, 255, 245, 0.45);
        border-radius: 12px;
        padding: 18px 16px;
        max-width: 400px;
        width: 100%;
        margin: auto;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
        flex-shrink: 0;
        box-sizing: border-box;
      }
      .self-lock-modal-card h3.self-lock-modal-title {
        margin-top: 0;
        margin-bottom: 6px;
        font-size: clamp(0.95rem, 3.8vw, 1.25rem);
        color: #cffff6;
        font-weight: bold;
      }
      .self-lock-modal-card .self-lock-help {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        color: #9fd;
        margin-bottom: 10px;
        line-height: 1.4;
        text-align: left;
      }
      .self-lock-unit-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 10px;
      }
      .self-lock-unit-btn {
        padding: 6px 4px;
        min-height: 32px;
        min-width: 0;
        border-radius: 6px;
        cursor: pointer;
        font-size: clamp(10px, 2.9vw, 12px);
        font-weight: bold;
        text-transform: capitalize;
        box-sizing: border-box;
      }
      .self-lock-field-label {
        display: block;
        margin-bottom: 4px;
        font-size: clamp(0.65rem, 2.6vw, 0.75rem);
        color: #bdeeee;
        text-align: left;
      }
      .self-lock-select {
        width: 100%;
        min-height: 34px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: #001f1f;
        color: #dffffb;
        padding: 0 8px;
        font-family: inherit;
        font-size: clamp(12px, 3.2vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-input-row {
        display: flex;
        gap: 6px;
        align-items: stretch;
      }
      .self-lock-num-input {
        flex: 1;
        min-width: 0;
        min-height: 34px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: #001f1f;
        color: #dffffb;
        padding: 0 8px;
        font-family: inherit;
        font-size: clamp(12px, 3.2vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-apply-btn {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 6px;
        border: 1px solid rgba(120, 255, 245, 0.45);
        background: rgba(0, 74, 78, 0.95);
        color: #e6fffc;
        cursor: pointer;
        font-weight: bold;
        font-size: clamp(11px, 2.8vw, 12px);
        white-space: nowrap;
        flex-shrink: 0;
      }
      .self-lock-selected-line {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        color: #9fc;
        margin-bottom: 10px;
      }
      .self-lock-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .self-lock-actions button {
        padding: 7px 12px;
        min-height: 36px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        font-size: clamp(11px, 2.9vw, 13px);
        box-sizing: border-box;
      }
      .self-lock-history-block {
        margin-top: 12px;
        text-align: left;
        border-top: 1px solid rgba(120, 255, 255, 0.3);
        padding-top: 8px;
      }
      @media (max-width: 480px) {
        .self-lock-modal-backdrop {
          align-items: flex-start;
        }
        .self-lock-modal-card {
          padding: 12px 10px;
          max-width: 100%;
          border-radius: 10px;
        }
        .self-lock-unit-btn {
          min-height: 30px;
          padding: 5px 2px;
        }
        .self-lock-actions {
          flex-direction: column;
        }
        .self-lock-actions button {
          width: 100%;
          min-height: 38px;
        }
        .account-lockdown-scroll-inner {
          min-height: 100dvh;
          min-height: 100vh;
          justify-content: center;
          padding-top: max(12px, env(safe-area-inset-top, 0px));
          padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        }
        .lockdown-avatar-ring {
          width: clamp(104px, 36vw, 140px);
          height: clamp(104px, 36vw, 140px);
        }
      }
      
      .user-modal-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      
      .user-modal-item {
        background-color: rgba(0, 40, 0, 0.5);
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 5px;
        border-left: 3px solid #0f0;
        transition: all 0.2s;
      }
      
      .user-modal-item:hover {
        background-color: rgba(0, 60, 0, 0.5);
        transform: translateX(5px);
      }
      
      .user-modal-item-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
      }
      
      .user-modal-item-name {
        font-weight: bold;
        font-size: 1.1rem;
        color: #0f0;
      }
      
      .user-modal-item-type {
        font-size: 0.9rem;
        padding: 2px 8px;
        border-radius: 10px;
        background-color: rgba(0, 100, 0, 0.7);
        color: #0f0;
      }
      
      .user-modal-item-details {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.9rem;
      }
      
      .user-modal-item-detail {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      
      .user-modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #0f0;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }
      
      .user-modal-button {
        padding: 8px 15px;
        background-color: rgba(0, 50, 0, 0.8);
        border: 1px solid #0f0;
        color: #0f0;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.2s;
      }
      
      .user-modal-button:hover {
        background-color: rgba(0, 80, 0, 0.8);
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
      }
      
      .no-users-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        color: #0f0;
        text-align: center;
      }
      
      .no-users-icon {
        font-size: 3rem;
        margin-bottom: 20px;
        opacity: 0.7;
      }
      
      .no-users-text {
        font-size: 1.2rem;
        margin-bottom: 15px;
      }
      
      .no-users-subtext {
        font-size: 0.9rem;
        opacity: 0.7;
      }

      /* Admin button styling */
      .admin-button {
        background-color: #300;
        border-color: #f00;
        color: #ff0;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      
      .admin-button:hover {
        background-color: #500;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
      }
      
      /* User welcome message styling */
      .user-welcome {
        font-size: 1.2rem;
        color: #0f0;
        margin: 15px 0 5px;
        font-weight: bold;
        text-align: center;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: anywhere;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
      
      .access-info {
        color: #0f0;
        font-size: 0.9rem;
        margin: 0 0 20px;
        padding: 5px 10px;
        background-color: rgba(0, 50, 0, 0.3);
        border-radius: 5px;
        display: inline-block;
      }

      @keyframes float-up {
        0% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0); }
      }
      
      /* Fix for wide action buttons */
      .user-action-btn, button[class*="action"], [class*="btn"] {
        max-width: 180px !important;
        width: auto !important;
      }
      
      .user-actions, div[class*="actions"], div[class*="action"] {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        max-width: 100%;
        overflow-x: hidden;
      }

      /* App content layout improvements */
      .app-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95%;
        max-width: 500px;
        margin: 0 auto;
      }

      /* Form group styling for better organization */
      .form-group {
        width: 100%;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      /* Make inputs look consistent */
      input, select, button {
        border: 1px solid #00ff00;
        background: rgba(0, 0, 0, 0.7);
        color: #00ff00;
        padding: 10px;
        border-radius: 5px;
        outline: none;
        transition: all 0.3s ease;
      }

      /* Specific styling for number inputs */
      input[type="number"] {
        text-align: center;
        width: 80px;
        margin: 5px 0;
      }

      /* Focus states */
      input:focus, select:focus {
        box-shadow: 0 0 5px #00ff00;
        background: rgba(0, 255, 0, 0.1);
      }

      .session-setup-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow-y: auto;
        background: rgba(0, 6, 2, 0.88);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }
      .session-setup-card {
        width: 100%;
        max-width: 440px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        border-radius: 18px;
        border: 1px solid rgba(0, 255, 160, 0.45);
        background: linear-gradient(165deg, rgba(0, 28, 14, 0.97) 0%, rgba(0, 10, 6, 0.98) 55%, rgba(0, 4, 2, 0.99) 100%);
        box-shadow: 0 0 40px rgba(0, 255, 140, 0.12), 0 24px 48px rgba(0, 0, 0, 0.55);
        padding: 18px 16px 16px;
        color: #cfe;
      }
      .session-setup-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 14px;
      }
      .session-stat-pill {
        border-radius: 12px;
        padding: 10px 8px;
        text-align: center;
        border: 1px solid rgba(120, 255, 200, 0.22);
        background: rgba(0, 22, 12, 0.65);
      }
      .session-stat-pill .val {
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.02em;
      }
      .session-stat-pill .lbl {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #8aa;
        margin-top: 4px;
      }
      .session-stat-pill.target .val { color: #6ef; }
      .session-stat-pill.done .val { color: #6f6; }
      .session-stat-pill.left .val { color: #fd6; }
      .session-progress-track {
        height: 6px;
        border-radius: 99px;
        background: rgba(0, 40, 20, 0.8);
        margin-top: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 255, 120, 0.15);
      }
      .session-progress-fill {
        height: 100%;
        border-radius: 99px;
        background: linear-gradient(90deg, #0a8, #0f8, #6fc);
        transition: width 0.35s ease;
      }
      .session-setup-section {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(120, 255, 200, 0.14);
      }
      .session-setup-confirm-btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(0, 255, 140, 0.65);
        background: linear-gradient(180deg, rgba(0, 80, 40, 0.85), rgba(0, 45, 22, 0.9));
        color: #e8fff4;
        font-weight: 800;
        letter-spacing: 0.06em;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 0.78rem;
        box-shadow: 0 0 20px rgba(0, 255, 120, 0.2);
      }
      .session-setup-confirm-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
      }
      .session-setup-warn {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(255, 200, 0, 0.35);
        background: rgba(40, 32, 0, 0.35);
        color: #fd9;
        font-size: 11px;
        line-height: 1.45;
        text-align: center;
      }

      /* Admin rounds — mini 5×5 grid gallery (like Prediction Review) */
      .admin-rounds-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
      }
      .admin-rounds-toolbar__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      .admin-rounds-toolbar__btn {
        min-height: auto !important;
        padding: 6px 12px !important;
        margin: 0 !important;
        font-size: 0.72rem !important;
      }
      .admin-rounds-toolbar__btn--active {
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
        border-color: #0f8 !important;
      }
      .admin-rounds-api-missing {
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid rgba(255, 180, 80, 0.45);
        background: rgba(40, 24, 0, 0.35);
        color: #fd9;
        font-size: 0.88rem;
        line-height: 1.5;
      }
      .admin-rounds-summary {
        margin: 0 0 0.85rem;
        opacity: 0.9;
        font-size: 0.88rem;
        line-height: 1.45;
      }
      .admin-rounds-user-panel {
        margin-bottom: 1rem;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(0, 255, 120, 0.2);
        background: rgba(0, 12, 6, 0.55);
      }
      .admin-rounds-user-panel__label {
        display: block;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #8aa;
        margin-bottom: 8px;
      }
      .admin-user-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .admin-user-chip {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.35);
        background: rgba(0, 24, 12, 0.7);
        color: #cfc;
        cursor: pointer;
        min-height: auto;
        margin: 0;
        font-size: 0.8rem;
        text-align: left;
      }
      .admin-user-chip:hover {
        border-color: #0f8;
        background: rgba(0, 40, 20, 0.85);
      }
      .admin-user-chip--active {
        border-color: #6ef;
        box-shadow: 0 0 14px rgba(0, 200, 255, 0.25);
        background: rgba(0, 48, 32, 0.9);
      }
      .admin-user-chip__name {
        font-weight: 700;
        color: #afa;
      }
      .admin-user-chip__meta {
        font-size: 0.68rem;
        opacity: 0.75;
        color: #8aa;
      }
      .admin-rounds-gallery-header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.65rem;
      }
      .admin-rounds-gallery-title {
        margin: 0;
        font-size: 0.95rem;
        color: #afa;
      }
      .admin-rounds-gallery-legend {
        font-size: 0.72rem;
        color: #8aa;
      }
      .admin-rounds-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 12px;
        max-height: min(72vh, 920px);
        overflow-y: auto;
        padding: 4px 2px 12px;
      }
      .admin-round-card {
        border: 1px solid rgba(0, 255, 120, 0.35);
        border-radius: 10px;
        padding: 8px;
        background: rgba(0, 8, 4, 0.75);
      }
      .admin-round-card__meta {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin-bottom: 6px;
        font-size: 0.65rem;
        line-height: 1.35;
        color: #9bb;
      }
      .admin-round-card__meta time {
        color: #bfb;
        font-weight: 600;
      }
      .admin-round-card__user {
        color: #8dd;
      }
      .admin-round-card__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
      }
      .admin-round-tag {
        padding: 1px 5px;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 120, 0.25);
        font-size: 0.6rem;
        text-transform: uppercase;
        color: #8aa;
      }
      .admin-round-tag--angel {
        border-color: rgba(255, 200, 80, 0.5);
        color: #fd9;
      }
      .admin-round-card__tiles {
        font-size: 0.58rem;
        opacity: 0.8;
        word-break: break-all;
      }
      .admin-round-card__grid.review-grid {
        grid-template-columns: repeat(5, 18px);
        gap: 2px;
        margin: 0 auto;
        max-width: 98px;
        justify-content: center;
      }
      .admin-round-card__grid .review-grid-item {
        width: 18px;
        height: 18px;
        font-size: 8px;
        border-radius: 3px;
      }
      .admin-round-card__grid .review-grid-item.mine::before {
        font-size: 10px;
      }
      .admin-round-card__grid .review-grid-item.money-tile {
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.65);
        border-color: #da0 !important;
      }
      .admin-rounds-load-more {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
      }
      .admin-rounds-empty-hint {
        opacity: 0.7;
        font-size: 0.88rem;
      }
      .admin-rounds-user-pick {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }
      .admin-rounds-user-pick__search {
        flex: 1 1 200px;
        min-width: 160px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.4);
        background: rgba(0, 16, 8, 0.9);
        color: #cfc;
        font-size: 0.85rem;
        margin: 0;
        min-height: 40px;
      }
      .admin-rounds-user-pick__select {
        flex: 1 1 240px;
        min-width: 200px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.4);
        background: rgba(0, 16, 8, 0.9);
        color: #afa;
        font-size: 0.82rem;
        margin: 0;
        min-height: 40px;
        cursor: pointer;
      }
      .admin-rounds-user-pick__clear {
        flex: 0 0 auto;
      }
      .admin-rounds-view-controls {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 0.75rem 0;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px dashed rgba(0, 255, 120, 0.25);
        background: rgba(0, 8, 4, 0.5);
      }
      .admin-rounds-view-controls__view {
        font-weight: 700;
      }
      .admin-rounds-view-controls__dismiss {
        opacity: 0.85;
      }
      .admin-rounds-view-controls__hint {
        font-size: 0.72rem;
        color: #8aa;
        flex: 1 1 140px;
      }
      .admin-rounds-collapsed-summary {
        margin: 0.5rem 0 0;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 120, 0.2);
        background: rgba(0, 12, 6, 0.45);
        font-size: 0.85rem;
        line-height: 1.45;
        color: #9bb;
      }

