  /* ── RESET & BASE ─────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #1a1a1a;
    --card: #252525;
    --card2: #2a2a2a;
    --card3: #2e2e2e;
    --mod-bg: #333;
    --border: #3a3a3a;
    --border-subtle: #2f2f2f;
    --blue: #3b82f6;
    --blue-glow: rgba(59,130,246,0.15);
    --purple: #7c3aed;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #666;
    --green: #22c55e;
    --red: #ef4444;
    --gold: #f59e0b;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
  }

  .ai-text {

    background: linear-gradient(
      135deg,
      #ff2fb3 0%,
      #8a5cff 50%,
      #3aa0ff 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }

  .czc-wrap {
    max-width: 85%;
    margin: 0 auto;
    padding: 32px 20px 120px;
  }

  /* ── SECTION CARDS ─────────────────────────────────────── */
  .czc-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
  }

  .czc-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }

  .czc-sub-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
  }

  /* ── SECTION DIVIDER ──────────────────────────────────── */
  .czc-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
  }

  /* ══════════════════════════════════════════════════
     GAME CARDS
  ══════════════════════════════════════════════════ */
  .game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .game-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: visible;
    transition: border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    animation: fadeInCard 0.2s ease-out forwards;
  }

  .game-card-wrapper:nth-child(1) { animation-delay: 0s; }
  .game-card-wrapper:nth-child(2) { animation-delay: 0.03s; }
  .game-card-wrapper:nth-child(3) { animation-delay: 0.06s; }
  .game-card-wrapper:nth-child(4) { animation-delay: 0.09s; }
  .game-card-wrapper:nth-child(5) { animation-delay: 0.12s; }
  .game-card-wrapper:nth-child(6) { animation-delay: 0.15s; }
  .game-card-wrapper:nth-child(7) { animation-delay: 0.18s; }
  .game-card-wrapper:nth-child(8) { animation-delay: 0.21s; }
  .game-card-wrapper:nth-child(9) { animation-delay: 0.24s; }
  .game-card-wrapper:nth-child(10) { animation-delay: 0.27s; }

  @keyframes fadeInCard {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  .game-card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .game-card-wrapper.selected-game {
    border-color: var(--blue);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .game-card-wrapper.selected-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .game-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--card2);
  }

  .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .game-card-wrapper[style*="pointer-events:none"] .game-card img {
    background: #333;
  }

  .game-card-wrapper[style*="pointer-events:none"] .game-card {
    background: #333;
  }

  .game-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2a3a, #111);
    font-size: 28px;
  }

  .cod-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .cod-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .game-card-label {
    background: #313538;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    border-radius: 0;
  }

  /* ══════════════════════════════════════════════════
     PLATFORM / CONTROLLER / GAME-SELECTOR (optional toggles)
  ══════════════════════════════════════════════════ */
  .toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
  }

  .toggle-btn {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
  }

  .toggle-btn:hover { border-color: var(--blue); }
  .toggle-btn.active { background: var(--blue-glow); border-color: var(--blue); color: var(--blue); }

  /* on/off switch */
  .czc-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
  }

  .czc-switch {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: var(--border);
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .czc-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
  }

  .czc-switch.on { background: var(--blue); }
  .czc-switch.on::after { transform: translateX(22px); }

  /* ══════════════════════════════════════════════════
     MOD BUTTONS
  ══════════════════════════════════════════════════ */
  .mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
  }

  .mod-option {
    position: relative;
    background: var(--mod-bg);
    border: 1px solid #444;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    white-space: normal;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.7;
    letter-spacing: -0.28px;
    width: 100%;
    min-width: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: riseUp 0.2s ease-out forwards;
  }

  .mod-option { animation-delay: 0s; }

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

  .mod-option:hover {
    border-color: var(--blue);
    background: #3a3a3a;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }
  .mod-option.selected-mod { border-color: var(--blue); background: var(--blue-glow); color: var(--text); }

  /* recommended badge */
  .rec-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.3px;
  }

  .new-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.3px;
    z-index: 10;
  }

  .mod-option.has-badge {
    padding-top: 18px;
    min-height: 60px;
    box-sizing: border-box;
  }

  /* single-select shooting / aim */
  .mod-option.single-mod.selected-mod {
    border-color: var(--blue);
    background: var(--blue-glow);
  }

  /* ══════════════════════════════════════════════════
     PUBG - CYCLE ATTACHMENTS DEPENDENCY
  ══════════════════════════════════════════════════ */
  .pubg-cycle-attachments-dep.mod-disabled {
    color: #ef4444;
    border-color: #ef4444;
    opacity: 0.7;
    cursor: not-allowed;
  }

  .pubg-cycle-attachments-dep.mod-disabled:hover {
    background: var(--mod-bg);
    box-shadow: none;
  }

  .pubg-cycle-attachments-dep.mod-disabled::before {
    content: attr(data-exclusion-message);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ef4444;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .pubg-cycle-attachments-dep.mod-disabled:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* ═══════════════════════════════════════════════════════
     RUST - QUICK SWAP DEPENDENCY
  ═══════════════════════════════════════════════════════════ */
  .rust-quick-swap-dep.mod-disabled {
    color: #ef4444;
    border-color: #ef4444;
    opacity: 0.7;
    cursor: not-allowed;
  }

  .rust-quick-swap-dep.mod-disabled:hover {
    background: var(--mod-bg);
    box-shadow: none;
  }

  .rust-quick-swap-dep.mod-disabled::before {
    content: attr(data-exclusion-message);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ef4444;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .rust-quick-swap-dep.mod-disabled:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* ══════════════════════════════════════════════════
     GAME MOD PANELS (show/hide per game)
  ══════════════════════════════════════════════════ */
  .game-mods-panel { display: none; }
  .game-mods-panel.active { display: block; }

  /* ══════════════════════════════════════════════════
     AIM ASSIST
  ══════════════════════════════════════════════════ */
  .creator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 5px;
  }

  .creator-section-highlight {
    padding: 16px;
    margin: -16px;
    border-radius: 8px;
    background: rgba(59,130,246,0.1);
    border: 2px solid var(--blue);
    animation: pulse 1s ease-in-out 2, fadeOutHighlight 0.5s ease-out 2.5s forwards;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }

  @keyframes fadeOutHighlight {
    0% {
      background: rgba(59,130,246,0.1);
      border-color: var(--blue);
      opacity: 1;
    }
    100% {
      background: transparent;
      border-color: transparent;
      opacity: 1;
    }
  }

  .aim-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card3);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .aim-card:hover { border-color: var(--blue); }
  .aim-card.selected-aim { border-color: var(--blue); background: var(--blue-glow); }

  .aim-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3a5c, #1a2040);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--blue);
    flex-shrink: 0;
    border: 2px solid var(--border);
  }

  .aim-info { flex: 1; min-width: 0; }
  .aim-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aim-stars { display: flex; gap: 3px; margin-top: 3px; }
  .aim-stars svg { width: 13px; height: 13px; }

  /* ══════════════════════════════════════════════════
     KEYBIND BUTTON
  ══════════════════════════════════════════════════ */
  .czc-grey-btn {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
  }

  .czc-grey-btn:hover { border-color: var(--blue); }

  /* ══════════════════════════════════════════════════
     CUSTOMIZATION
  ══════════════════════════════════════════════════ */
  .customization-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }

  .device-card {
    background: var(--card2);
    border-radius: var(--radius);
    padding: 20px;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-subtle);
  }

  .device-preview {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #1c2a3e, #111827);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }

  .device-preview img { width: 100%; height: 100%; object-fit: contain; }

  .oled-preview {
    width: 100%;
    max-width: 170px;
    image-rendering: pixelated;
    display: none;
  }

  .czc-outline-btn {
    background: transparent;
    border: 2px solid var(--blue);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
  }

  .czc-outline-btn:hover { background: var(--blue-glow); }

  /* LED picker */
  .led-card {
    background: var(--card2);
    border-radius: var(--radius);
    padding: 20px;
    flex: 1;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .led-preview-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #00008f;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
  }

  .led-preview-circle:hover { transform: scale(1.05); }

  .led-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .led-info { font-size: 14px; color: var(--text-muted); }
  .led-rgb-display { font-size: 16px; font-weight: 600; color: var(--text); font-family: 'Inter', sans-serif; }

  /* colour picker popover */
  .led-popover {
    position: fixed;
    z-index: 999;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    display: none;
  }

  .led-popover.open { display: block; }

  .led-popover input[type="color"] {
    width: 240px; height: 190px;
    border: none; padding: 0;
    cursor: pointer;
    background: none;
    border-radius: 4px;
    display: block;
    margin-bottom: 12px;
  }

  .led-sliders { display: flex; flex-direction: column; gap: 10px; }
  .led-slider-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
  .led-slider-row label { width: 16px; color: var(--text-muted); }

  .led-slider-row input[type="range"] {
    flex: 1; height: 5px;
    accent-color: var(--blue);
    cursor: pointer;
  }

  .led-slider-row span { width: 32px; text-align: right; font-size: 14px; color: var(--text-muted); }

  .led-apply-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
  }

  /* ══════════════════════════════════════════════════
     DROPDOWNS / SELECTS
  ══════════════════════════════════════════════════ */
  .czc-select {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s;
    min-width: 160px;
  }

  .czc-select:focus { outline: none; border-color: var(--blue); }

  .czc-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--card3);
  }

  .czc-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .czc-form-label { font-size: 15px; color: var(--text); font-weight: 500; white-space: nowrap; min-width: 120px; }

  #panel-NBA .czc-form-row .czc-select { width: 200px; }

  /* ══════════════════════════════════════════════════
     SLIDERS
  ══════════════════════════════════════════════════ */
  .czc-slider-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }

  input[type="range"].czc-range {
    flex: 1;
    height: 4px;
    accent-color: var(--blue);
    cursor: pointer;
  }

  .czc-slider-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    min-width: 32px;
    text-align: right;
    font-family: 'Inter', sans-serif;
  }

  #r6s-deadzone-val {
    color: var(--blue);
    font-size: 16px;
  }

  #rust-deadzone-val {
    color: var(--blue);
    font-size: 16px;
  }

  /* ══════════════════════════════════════════════════
     2K RELEASE SPEED PREVIEW BOX
  ══════════════════════════════════════════════════ */
  .release-preview-box {
    background: linear-gradient(135deg, #0f1a2e, #1a2540);
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .release-preview-box .grade {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    min-width: 60px;
    text-align: center;
  }

  .release-preview-box .timings {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .timing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .timing-label { color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; min-width: 80px; }
  .timing-value { color: var(--text); font-weight: 600; font-family: 'Inter', sans-serif; font-size: 16px; }

  /* ══════════════════════════════════════════════════
     DPAD MODS (2K dribble / FIFA skill moves)
  ══════════════════════════════════════════════════ */
  .dpad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
  }

  .dpad-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dpad-icon {
    width: 28px; height: 28px;
    background: var(--card3);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .dpad-row select.none-selected {
    border-color: var(--red);
  }

  /* ══════════════════════════════════════════════════
     GENERATE BUTTON (sticky)
  ══════════════════════════════════════════════════ */
  .czc-sticky-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, var(--bg) 70%, transparent);
    padding: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
  }

  .generate-btn {
    max-width: 920px;
    width: 100%;
    background: #1f1f1f;
    border: 2px solid var(--blue);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .generate-btn:hover { background: rgba(59,130,246,0.25); box-shadow: 0 0 24px rgba(59,130,246,0.2); }
  .generate-btn:active { transform: scale(0.99); }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
  }

  .generate-btn.shake {
    animation: shake 0.5s;
  }

  .generate-btn.warning {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
  }

  .generate-btn.upgrade-required {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
  }

  .generate-btn.upgrade-required:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(251, 191, 36, 0.3) 100%);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
  }

  /* Fade slide-in animation for sections */
  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-slide-in {
    animation: fadeSlideIn 0.3s ease-out 0.15s forwards;
    opacity: 0;
  }

  .fade-slide-in-delayed-1 {
    animation: fadeSlideIn 0.3s ease-out 0.2s forwards;
    opacity: 0;
  }

  .fade-slide-in-delayed-2 {
    animation: fadeSlideIn 0.3s ease-out 0.25s forwards;
    opacity: 0;
  }

  .fade-slide-in-delayed-3 {
    animation: fadeSlideIn 0.3s ease-out 0.3s forwards;
    opacity: 0;
  }

  .warning-message {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    animation: flashMessage 2.5s ease-out;
    pointer-events: none;
  }

  @keyframes flashMessage {
    0% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    8% { opacity: 1; transform: translateX(-50%) translateY(0); }
    92% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
  }

  .generate-btn .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
  }

  .generate-btn.loading .spinner { display: block; }
  .generate-btn.loading .btn-text { opacity: 0.7; }

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

  /* ══════════════════════════════════════════════════
     MODAL / DIALOG (keybinds + guides)
  ══════════════════════════════════════════════════ */
  .czc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .czc-modal-overlay.open {
    display: flex;
    opacity: 1;
  }

  .czc-modal-overlay.closing {
    opacity: 0;
  }

  .czc-modal {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 1000px;
    width: 94%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .czc-modal-overlay.open .czc-modal {
    opacity: 1;
    transform: translateY(0);
  }

  .czc-modal-overlay.closing .czc-modal {
    opacity: 0;
    transform: translateY(20px);
  }

  /* Keybind modal panel switching animations */
  .czc-modal.slide-out-up {
    animation: slideOutUp 0.2s ease forwards;
  }

  .czc-modal.slide-in-down {
    animation: slideInDown 0.2s ease forwards;
  }

  @keyframes slideOutUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
  }

  @keyframes slideInDown {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .czc-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    text-align: center;
    justify-content: space-between;
    align-items: center;
  }

  .czc-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    font-family: 'Inter', sans-serif;
  }

  .czc-modal-close:hover { color: #fff; }

  /* Keybind rows inside modal - SVG style */
  .keybind-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 60px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .keybind-row:last-child { border-bottom: none; }

  .keybind-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px;
  }

  .action-label {
    font-size: 14px;
    color: var(--text-muted);
    width: 130px;
    flex-shrink: 0;
    text-align: left;
    white-space: nowrap;
  }

  .keybind-svg-btn {
    width: 72px;
    height: 48px;
    min-width: 72px;
    background: transparent;
    border: 2px solid #2596be;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 6px 9px;
  }

  .keybind-svg-btn:hover {
    background: rgba(37, 150, 190, 0.2);
    border-color: #3bb5e5;
  }

  .keybind-svg-btn svg {
    width: 100%;
    height: 100%;
    max-width: 36px;
    max-height: 30px;
    display: block;
    margin: auto;
  }

  .currbind {
    background: var(--card3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    min-width: 80px;
    text-align: center;
    transition: border-color 0.15s;
  }

  .currbind:hover { border-color: var(--blue); }

  /* keybind select panel */
  .keybind-select-panel {
    display: none;
    width: 100%;
  }
  .keybind-select-panel.active {
    display: block;
  }
  .active-keybinds-panel {
    display: block;
    width: 100%;
  }
  .active-keybinds-panel.hidden {
    display: none;
  }

  .keybind-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .keybind-option {
    background: var(--card3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
  }

  .keybind-option:hover { border-color: var(--blue); background: var(--blue-glow); }

  .modal-back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
  }

  .modal-back-btn:hover { color: #fff; }

  .modal-save-btn {
    background: var(--blue);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
  }

  /* guides modal */
  .guides-content { font-size: 13px; line-height: 1.7; color: var(--text-muted); }
  .guides-content h3 { color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; margin: 16px 0 8px; }
  .guides-content p { margin-bottom: 8px; }
  .guides-content ol, .guides-content ul { padding-left: 20px; margin-bottom: 8px; }
  .guides-content li { margin-bottom: 4px; }
  .guides-content strong { color: var(--text); }
  .guides-content hr { border-color: var(--border-subtle); margin: 16px 0; }

  .guide-game-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .guide-tab {
    background: var(--card3);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
  }

  .guide-tab.active { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); }

  .guide-section { display: none; }
  .guide-section.active { display: block; }

  /* ══════════════════════════════════════════════════
     UTILITY
  ══════════════════════════════════════════════════ */
  .row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .flex-col { display: flex; flex-direction: column; gap: 6px; }
  .optional-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--card3);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.3px;
  }

  .section-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  /* tooltip */
  #mod-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    max-width: 230px;
    word-wrap: break-word;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid #404040;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    line-height: 1.4;
  }

  /* R6S deadzone */
  .r6s-side-toggle {
    display: flex;
    background: var(--card3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .r6s-side-btn {
    flex: 1;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
  }

  .r6s-side-btn.active { background: var(--blue-glow); color: var(--blue); }

  /* ══════════════════════════════════════════════════
     SCROLLBAR
  ══════════════════════════════════════════════════ */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

  .humanizer-badge {
    font-size: 10px; font-weight: 700; color: var(--green);
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
    border-radius: 4px; padding: 1px 6px; letter-spacing: 0.3px;
  }
