    :root {
      --bg: #090d16;
      --surface: #111827;
      --surface-card: #1f293d;
      --surface-hover: #283650;
      --border: #2d3d59;
      --accent: #10b981;
      --accent-hover: #059669;
      --accent-glow: rgba(16, 185, 129, 0.25);
      --text: #f3f4f6;
      --text-muted: #9ca3af;
      --text-dim: #6b7280;
      
      --type-grass: #78c850;
      --type-fire: #f08030;
      --type-water: #6890f0;
      --type-bug: #a8b820;
      --type-normal: #a8a878;
      --type-poison: #a040a0;
      --type-electric: #f8d030;
      --type-ground: #e0c068;
      --type-fairy: #ee99ac;
      --type-fighting: #c03028;
      --type-psychic: #f85888;
      --type-rock: #b8a038;
      --type-steel: #b8b8d0;
      --type-ice: #98d8d8;
      --type-ghost: #705898;
      --type-dragon: #7038f8;
      --type-dark: #705848;
    }

    /* Light Mode Overrides for 100% Theme Consistency */
    body.light-mode {
      --bg: #f8fafc;
      --surface: #ffffff;
      --surface-card: #f1f5f9;
      --surface-hover: #e2e8f0;
      --border: #cbd5e1;
      --text: #0f172a;
      --text-muted: #475569;
      --text-dim: #64748b;
    }

    body.light-mode header {
      background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
      border: 1px solid #cbd5e1;
      border-top: 4px solid #ef4444;
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    }

    body.light-mode .brand h1 {
      background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    body.light-mode .brand p {
      color: #475569;
    }

    body.light-mode .stat-card {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    body.light-mode .stat-value {
      color: #059669;
    }

    body.light-mode .stat-label {
      color: #64748b;
    }

    body.light-mode .progress-bar-container {
      background: #e2e8f0;
      border-color: #cbd5e1;
    }

    body.light-mode .controls-panel {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    }

    body.light-mode .filter-category-card {
      background: #f8fafc;
      border-color: #cbd5e1;
    }

    body.light-mode .filter-category-header {
      color: #059669;
      border-bottom-color: #e2e8f0;
    }

    body.light-mode .filter-item-label {
      color: #475569;
    }

    body.light-mode select.gen-era-select {
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      color: #1e40af;
      border-color: #93c5fd;
    }

    body.light-mode select.game-select {
      background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
      color: #065f46;
      border-color: #6ee7b7;
    }

    body.light-mode select.mode-select {
      background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
      color: #6b21a8;
      border-color: #c084fc;
    }

    body.light-mode input[type="text"], 
    body.light-mode select {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    body.light-mode input[type="text"]:focus, 
    body.light-mode select:focus {
      background: #ffffff;
    }

    body.light-mode .search-icon {
      color: #64748b;
    }

    body.light-mode .btn {
      background: #ffffff;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    body.light-mode .btn:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }

    body.light-mode .card {
      background: #ffffff;
      border-color: #cbd5e1;
    }

    body.light-mode .card.caught {
      border-color: #10b981;
      background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    }

    body.light-mode .card-id {
      color: #64748b;
    }

    body.light-mode .card-name {
      color: #0f172a;
    }

    body.light-mode .card-nat-subid {
      color: #64748b;
    }

    body.light-mode .card:not(.caught) .card-status-badge {
      color: #64748b;
      background: #f1f5f9;
      border-color: #cbd5e1;
    }

    body.light-mode .card-info-btn {
      background: #f8fafc;
      color: #475569;
      border-top-color: #e2e8f0;
    }

    body.light-mode .card-info-btn:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    body.light-mode .app-footer-master {
      background: #ffffff;
      border-color: #cbd5e1;
      border-top-color: #10b981;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    }

    body.light-mode .footer-brand-box h3 {
      color: #0f172a;
    }

    body.light-mode .footer-brand-box p {
      color: #475569;
    }

    body.light-mode .footer-pill {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #475569;
    }

    body.light-mode .footer-links-list a {
      color: #475569;
    }

    body.light-mode .footer-links-list a:hover {
      color: #0f172a;
    }

    body.light-mode .footer-bottom-row {
      color: #64748b;
    }

    body.light-mode .footer-disclaimer {
      color: #94a3b8;
      border-top-color: #e2e8f0;
    }

    body.light-mode .modal {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    body.light-mode .modal-nav-bar {
      background: #f8fafc;
      border-bottom-color: #e2e8f0;
    }

    body.light-mode .modal-header {
      background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
      border-bottom-color: #e2e8f0;
    }

    body.light-mode .modal-sprite-wrapper {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }

    body.light-mode .modal-title-box h2 {
      color: #0f172a;
    }

    body.light-mode pre.json-code {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding: 24px 16px;
      background-image: 
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
      background-attachment: fixed;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    .container {
      max-width: 1440px;
      margin: 0 auto;
    }

    /* Header Modern Redesign */
    header {
      background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 22px 26px;
      margin-bottom: 24px;
      box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      position: relative;
      overflow: hidden;
    }

    header::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -20%;
      width: 60%;
      height: 200%;
      background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .header-top {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      margin-bottom: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .pokeball-icon {
      width: 46px;
      height: 46px;
      background: linear-gradient(135deg, #ef4444 46%, #1e293b 46%, #1e293b 54%, #f9fafb 54%);
      border-radius: 50%;
      border: 4px solid #0f172a;
      position: relative;
      box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), inset 0 -2px 6px rgba(0, 0, 0, 0.4);
      flex-shrink: 0;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .brand:hover .pokeball-icon {
      transform: rotate(180deg) scale(1.08);
    }

    .pokeball-icon::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 12px;
      background: #fff;
      border: 3.5px solid #0f172a;
      border-radius: 50%;
      box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }

    .brand-title-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .brand-header-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .brand h1 {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.6px;
      background: linear-gradient(135deg, #ffffff 40%, #34d399 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.2;
    }

    .brand-tag {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 99px;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: #34d399;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }

    .brand p {
      font-size: 13px;
      color: var(--text-muted);
    }

    .header-right-group {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .lang-select-wrapper {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .lang-select-wrapper select.lang-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background: var(--surface-card);
      color: var(--text);
      border: 1px solid var(--border);
      padding: 9px 34px 9px 14px;
      border-radius: 12px;
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
      outline: none;
      transition: all 0.25s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .lang-select-wrapper select.lang-select:hover,
    .lang-select-wrapper select.lang-select:focus {
      border-color: var(--accent);
      background: var(--surface-hover);
      box-shadow: 0 0 12px var(--accent-glow);
    }

    .lang-select-wrapper::after {
      content: '▾';
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 13px;
      pointer-events: none;
    }

    /* Modern Stats KPI Grid */
    .stats-box {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .stat-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, var(--surface-card) 0%, rgba(17, 24, 39, 0.8) 100%);
      padding: 10px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      min-width: 105px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: all 0.25s ease;
    }

    .stat-card:hover {
      border-color: rgba(16, 185, 129, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    .stat-value {
      font-size: 19px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent);
      line-height: 1.1;
    }

    .stat-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .progress-bar-container {
      width: 100%;
      height: 10px;
      background: rgba(15, 23, 42, 0.6);
      border-radius: 99px;
      overflow: hidden;
      border: 1px solid var(--border);
      position: relative;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .progress-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
      border-radius: 99px;
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 16px var(--accent-glow);
      position: relative;
    }

    .progress-bar-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
      animation: progressShimmer 2.5s infinite;
    }

    @keyframes progressShimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }


    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--surface-card);
      border: 1px solid var(--accent);
      color: var(--text);
      padding: 12px 20px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 2000;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    pre.json-code {
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 16px;
      border-radius: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      max-height: 300px;
      overflow-y: auto;
      white-space: pre-wrap;
      word-break: break-all;
    }

    /* Header Hero Banner (Diferenciado del menú de selección) */
    header {
      background: linear-gradient(135deg, #091224 0%, #112044 50%, #0c1833 100%);
      border: 1px solid rgba(59, 130, 246, 0.35);
      border-top: 4px solid #ef4444;
      border-radius: 20px;
      padding: 24px 28px;
      margin-bottom: 24px;
      box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.15);
      position: relative;
      overflow: hidden;
    }

    header::after {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 220px;
      height: 220px;
      background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
      pointer-events: none;
    }

    .brand h1 {
      font-size: 26px;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.2;
    }

    .brand-tag {
      font-size: 11px;
      font-weight: 800;
      padding: 4px 12px;
      border-radius: 99px;
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
      color: #ffffff;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
    }

    .stat-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.85);
      padding: 12px 20px;
      border-radius: 14px;
      border: 1px solid rgba(59, 130, 246, 0.3);
      min-width: 110px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
      transition: all 0.25s ease;
    }

    .stat-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    }


    /* Master Footer Redesign - Fixed Syntax */
    .app-footer-master {
      margin-top: 56px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 4px solid var(--accent);
      border-radius: 20px;
      padding: 32px 28px 24px 28px;
      box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.5);
    }

    .footer-top-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 28px;
      padding-bottom: 8px;
      border-bottom: none;
    }

    .footer-brand-box {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-brand-box h3 {
      font-size: 18px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
    }

    .footer-brand-box p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .footer-pills-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      width: 100%;
      margin: 16px 0 20px 0;
      padding: 0;
      border: none;
    }

    .footer-pill {
      font-size: 12px;
      font-weight: 700;
      padding: 10px 14px;
      border-radius: 10px;
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      transition: all 0.2s ease;
    }

    .footer-pill:hover {
      border-color: var(--accent);
      color: var(--text);
      transform: translateY(-2px);
    }

    @media (max-width: 768px) {
      .footer-pills-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }
    }

    .footer-section-heading {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .footer-links-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .footer-links-list a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      transition: color 0.2s, transform 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .footer-links-list a:hover {
      color: var(--text);
      transform: translateX(3px);
    }

    .footer-bottom-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding-top: 20px;
      font-size: 12.5px;
      color: var(--text-muted);
    }

    .footer-credit a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 700;
    }

    .footer-credit a:hover {
      text-decoration: underline;
    }

    .heart {
      display: inline-block;
      animation: heartPulse 1.5s infinite;
    }

    @keyframes heartPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.25); }
    }

    .footer-disclaimer {
      font-size: 11.5px;
      color: var(--text-dim);
      text-align: center;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px dashed rgba(255, 255, 255, 0.05);
    }

    .pokeball-icon-sm {
      width: 22px;
      height: 22px;
      background: linear-gradient(135deg, #ef4444 48%, #111827 48%, #111827 52%, #f9fafb 52%);
      border-radius: 50%;
      border: 2px solid var(--border);
      position: relative;
      display: inline-block;
    }

    .pokeball-icon-sm::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 6px;
      height: 6px;
      background: #fff;
      border: 2px solid var(--border);
      border-radius: 50%;
    }

    /* Responsive Media Queries */
    @media (max-width: 1024px) {
      .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .filter-category-body {
        flex-direction: column;
        align-items: stretch;
      }
      .select-wrapper, .search-wrapper {
        width: 100%;
        min-width: 100%;
      }
    }

    @media (max-width: 768px) {
      header {
        padding: 18px 20px;
      }
      .header-top {
        flex-direction: column;
        align-items: flex-start;
      }
      .stats-box {
        width: 100%;
        justify-content: space-between;
      }
      .controls-panel {
        padding: 16px;
      }
    }