:root {
      /* Dark Fantasy MMORPG Theme (Default) */
      --font-title: 'Cinzel', serif;
      --font-hud: 'Rajdhani', sans-serif;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

      --bg-dark: #070a14;
      --bg-body-gradient: radial-gradient(circle at 50% 0%, #151e36 0%, #070a14 70%);
      --bg-panel: rgba(14, 20, 36, 0.85);
      --bg-card: rgba(18, 26, 46, 0.9);
      --bg-card-hover: rgba(26, 38, 68, 0.95);
      --border: rgba(56, 189, 248, 0.22);
      --border-gold: rgba(212, 175, 55, 0.35);
      --border-gold-glow: rgba(212, 175, 55, 0.6);
      
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --accent: #38bdf8;
      --accent-glow: rgba(56, 189, 248, 0.35);
      --gold: #f59e0b;
      --gold-light: #fbbf24;
      
      --sidebar-width: 280px;
      --sidebar-bg: linear-gradient(180deg, #0c1222 0%, #060912 100%);
      --topbar-bg: rgba(9, 14, 26, 0.92);
      
      --input-bg: rgba(9, 13, 24, 0.85);
      --box-bg: rgba(13, 19, 35, 0.92);
      --box-inner-bg: #070a12;
      --table-stripe: rgba(255, 255, 255, 0.02);
      --modal-backdrop: rgba(3, 5, 12, 0.88);
      --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
      
      --scrollbar-track: #070a14;
      --scrollbar-thumb: #1e293b;
      --scrollbar-thumb-hover: #334155;
      
      --grade-1: #94a3b8; /* Common */
      --grade-2: #22c55e; /* Uncommon / Elite */
      --grade-3: #38bdf8; /* Rare */
      --grade-4: #c084fc; /* Heroic */
      --grade-5: #f59e0b; /* Legendary */
      --grade-6: #06b6d4; /* Mythic */
      --grade-7: #ef4444; /* Ancient Mythic */
    }

    [data-theme="light"] {
      --bg-dark: #f1f5f9;
      --bg-body-gradient: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f1f5f9 70%);
      --bg-panel: rgba(255, 255, 255, 0.95);
      --bg-card: #ffffff;
      --bg-card-hover: #f8fafc;
      --border: #cbd5e1;
      --border-gold: rgba(180, 83, 9, 0.4);
      --border-gold-glow: rgba(180, 83, 9, 0.7);
      
      --text-main: #0f172a;
      --text-muted: #475569;
      --accent: #0284c7;
      --accent-glow: rgba(2, 132, 199, 0.25);
      --gold: #d97706;
      --gold-light: #b45309;
      
      --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
      --topbar-bg: rgba(255, 255, 255, 0.95);
      
      --input-bg: #f8fafc;
      --box-bg: #f8fafc;
      --box-inner-bg: #edf2f7;
      --table-stripe: rgba(0, 0, 0, 0.02);
      --modal-backdrop: rgba(15, 23, 42, 0.7);
      --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
      
      --scrollbar-track: #f1f5f9;
      --scrollbar-thumb: #cbd5e1;
      --scrollbar-thumb-hover: #94a3b8;
    }

    /* =========================================================================
       LIGHT THEME COMPLETE COMPONENT OVERRIDES
       ========================================================================= */
    [data-theme="light"] {
      color-scheme: light;
    }

    [data-theme="light"] body {
      background-color: #f1f5f9;
      color: #0f172a;
    }

    /* Topbar */
    [data-theme="light"] .app-topbar {
      background: rgba(255, 255, 255, 0.95);
      border-bottom-color: #cbd5e1;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    [data-theme="light"] .topbar-page-title {
      color: #0f172a !important;
    }
    [data-theme="light"] .t-badge {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #475569 !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    [data-theme="light"] .t-badge strong {
      color: #0f172a !important;
    }
    [data-theme="light"] .t-badge.total-badge {
      background: rgba(217, 119, 6, 0.12) !important;
      border-color: rgba(217, 119, 6, 0.35) !important;
      color: #b45309 !important;
    }
    [data-theme="light"] .t-badge.total-badge strong {
      color: #b45309 !important;
    }
    [data-theme="light"] .mobile-menu-btn {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }

    /* Sidebar */
    [data-theme="light"] .app-sidebar {
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
      border-right-color: #cbd5e1 !important;
      box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06) !important;
    }
    [data-theme="light"] .sidebar-brand {
      border-bottom-color: #e2e8f0 !important;
    }
    [data-theme="light"] .brand-crest {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(2, 132, 199, 0.15) 100%) !important;
      border-color: rgba(217, 119, 6, 0.3) !important;
    }
    [data-theme="light"] .brand-title {
      background: linear-gradient(90deg, #b45309 0%, #0284c7 100%) !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
    }
    [data-theme="light"] .brand-subtitle {
      color: #64748b !important;
    }
    [data-theme="light"] .sidebar-status-pill {
      background: rgba(34, 197, 94, 0.12) !important;
      border-color: rgba(34, 197, 94, 0.35) !important;
      color: #16a34a !important;
    }
    [data-theme="light"] .nav-section-title {
      color: #64748b !important;
    }
    [data-theme="light"] .nav-tab {
      background: transparent !important;
      color: #334155 !important;
      border-color: transparent !important;
    }
    [data-theme="light"] .nav-tab:hover {
      background: rgba(2, 132, 199, 0.08) !important;
      border-color: rgba(2, 132, 199, 0.25) !important;
      color: #0284c7 !important;
    }
    [data-theme="light"] .nav-tab.active {
      background: linear-gradient(90deg, rgba(2, 132, 199, 0.12) 0%, rgba(241, 245, 249, 0.8) 100%) !important;
      border-color: rgba(2, 132, 199, 0.35) !important;
      color: #0284c7 !important;
      box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12) !important;
    }
    [data-theme="light"] .tab-badge {
      background: #e2e8f0 !important;
      color: #475569 !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .nav-tab.active .tab-badge {
      background: rgba(2, 132, 199, 0.18) !important;
      color: #0284c7 !important;
      border-color: rgba(2, 132, 199, 0.35) !important;
    }
    [data-theme="light"] .sidebar-footer {
      border-top-color: #e2e8f0 !important;
    }
    [data-theme="light"] .sidebar-footer-stats {
      color: #475569 !important;
    }
    [data-theme="light"] .sidebar-footer-stats .val {
      color: #0284c7 !important;
    }
    [data-theme="light"] .theme-toggle-btn {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    [data-theme="light"] .theme-toggle-btn:hover {
      background: #f8fafc !important;
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }

    /* Controls Panel */
    [data-theme="light"] .controls-card {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    }
    [data-theme="light"] .search-input-wrap input {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .search-input-wrap input::placeholder {
      color: #94a3b8 !important;
    }
    [data-theme="light"] .search-input-wrap input:focus {
      border-color: #0284c7 !important;
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
    }
    [data-theme="light"] .filter-item label {
      color: #475569 !important;
    }
    [data-theme="light"] .filter-item select {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .filter-item select option {
      background: #ffffff !important;
      color: #0f172a !important;
    }
    [data-theme="light"] .filter-item select:focus {
      border-color: #0284c7 !important;
    }
    [data-theme="light"] .toolbar-actions {
      border-top-color: #e2e8f0 !important;
    }
    [data-theme="light"] .result-count {
      color: #475569 !important;
    }
    [data-theme="light"] .result-count span {
      color: #0f172a !important;
    }
    [data-theme="light"] .view-btn {
      background: #ffffff !important;
      color: #475569 !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .view-btn:hover {
      background: #f1f5f9 !important;
      color: #0f172a !important;
    }
    [data-theme="light"] .view-btn.active {
      background: #0284c7 !important;
      color: #ffffff !important;
      border-color: #0284c7 !important;
    }

    /* Cards & Grid */
    [data-theme="light"] .item-card {
      background: #ffffff !important;
      border-color: #e2e8f0 !important;
      box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
    }
    [data-theme="light"] .item-card:hover {
      border-color: #0284c7 !important;
      box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15) !important;
    }
    [data-theme="light"] .icon-box {
      background: #f8fafc !important;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    }
    [data-theme="light"] .item-name {
      color: #0f172a !important;
    }
    [data-theme="light"] .stats-row {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .stat-label {
      color: #64748b !important;
    }
    [data-theme="light"] .stat-val {
      color: #0f172a !important;
    }
    [data-theme="light"] .card-footer {
      border-top-color: #e2e8f0 !important;
      color: #64748b !important;
    }
    [data-theme="light"] .footer-id {
      color: #94a3b8 !important;
    }

    /* Sealed stone control box */
    [data-theme="light"] .sealed-control-box {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .stepper {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .step-btn {
      background: #f1f5f9 !important;
      color: #0f172a !important;
    }
    [data-theme="light"] .step-btn:hover {
      background: #0284c7 !important;
      color: #ffffff !important;
    }
    [data-theme="light"] .step-val {
      color: #0284c7 !important;
    }
    [data-theme="light"] .pill-btn {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #475569 !important;
    }
    [data-theme="light"] .pill-btn:hover,
    [data-theme="light"] .pill-btn.active {
      background: rgba(2, 132, 199, 0.15) !important;
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }

    /* Table View */
    [data-theme="light"] .table-wrap,
    [data-theme="light"] .table-container {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    }
    [data-theme="light"] th {
      background: #f8fafc !important;
      color: #475569 !important;
      border-bottom-color: #cbd5e1 !important;
    }
    [data-theme="light"] td {
      color: #1e293b !important;
      border-bottom-color: #f1f5f9 !important;
    }
    [data-theme="light"] tr:hover td {
      background: #f8fafc !important;
    }

    /* Modals */
    [data-theme="light"] .modal-dialog {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
    }
    [data-theme="light"] .modal-title h2 {
      color: #0f172a !important;
    }
    [data-theme="light"] .modal-section h3 {
      color: #0f172a !important;
      border-bottom-color: #e2e8f0 !important;
    }
    [data-theme="light"] .modal-stat-box {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .modal-stat-val {
      color: #0f172a !important;
    }
    [data-theme="light"] .modal-close {
      color: #64748b !important;
    }
    [data-theme="light"] .modal-close:hover {
      color: #0f172a !important;
    }

    /* Synthesis Simulator */
    [data-theme="light"] .synth-hero {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
      border-color: rgba(168, 85, 247, 0.3) !important;
    }
    [data-theme="light"] .synth-hero-left h2 {
      color: #0f172a !important;
    }
    [data-theme="light"] .synth-card {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .synth-card-header {
      color: #0f172a !important;
      border-bottom-color: #e2e8f0 !important;
    }
    [data-theme="light"] .synth-step-pill {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
      color: #475569 !important;
    }
    [data-theme="light"] .synth-slot {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .synth-slot.filled {
      background: #ffffff !important;
      border-color: #a855f7 !important;
    }
    [data-theme="light"] .synth-slot-name {
      color: #0f172a !important;
    }
    [data-theme="light"] .synth-pool-card {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
      color: #0f172a !important;
    }

    /* Box Drops Explorer */
    [data-theme="light"] .box-hero {
      background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
      border-color: rgba(234, 179, 8, 0.3) !important;
    }
    [data-theme="light"] .box-hero-left h2 {
      color: #0f172a !important;
    }
    [data-theme="light"] .box-card {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .box-card:hover {
      border-color: #d97706 !important;
    }
    [data-theme="light"] .box-name {
      color: #0f172a !important;
    }
    [data-theme="light"] .box-drops-preview {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .box-search-input {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .box-filter-select {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .box-filter-select option {
      background: #ffffff !important;
      color: #0f172a !important;
    }
    [data-theme="light"] .box-modal-drops-table th {
      background: #f8fafc !important;
      color: #475569 !important;
      border-bottom-color: #cbd5e1 !important;
    }
    [data-theme="light"] .box-modal-drops-table td {
      color: #1e293b !important;
      border-bottom-color: #f1f5f9 !important;
    }

    /* Fishing Spots & Drops */
    [data-theme="light"] .fish-hero {
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
      border-color: rgba(14, 165, 233, 0.3) !important;
    }
    [data-theme="light"] .fish-hero-left h2 {
      color: #0f172a !important;
    }
    [data-theme="light"] .fish-hero-stat {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-subnav {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-subnav-btn {
      color: #475569 !important;
    }
    [data-theme="light"] .fish-subnav-btn.active {
      background: rgba(2, 132, 199, 0.15) !important;
      color: #0284c7 !important;
      border-color: #0284c7 !important;
    }
    [data-theme="light"] .fish-sidebar {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-spot-item {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .fish-spot-item.active {
      background: rgba(2, 132, 199, 0.12) !important;
      border-color: #0284c7 !important;
    }
    [data-theme="light"] .fish-spot-name {
      color: #0f172a !important;
    }
    [data-theme="light"] .fish-spot-map {
      background: #e2e8f0 !important;
      color: #334155 !important;
    }
    [data-theme="light"] .fish-main {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-main-title h3 {
      color: #0f172a !important;
    }
    [data-theme="light"] .fish-tier-tabs {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }
    [data-theme="light"] .fish-tier-btn {
      color: #475569 !important;
    }
    [data-theme="light"] .fish-tier-btn.active {
      background: rgba(2, 132, 199, 0.18) !important;
      color: #0284c7 !important;
      border-color: #0284c7 !important;
    }
    [data-theme="light"] .fish-search-input {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-table th {
      background: #f8fafc !important;
      color: #475569 !important;
      border-bottom-color: #cbd5e1 !important;
    }
    [data-theme="light"] .fish-table td {
      color: #1e293b !important;
      border-bottom-color: #f1f5f9 !important;
    }
    [data-theme="light"] .fish-item-name {
      color: #0f172a !important;
    }
    [data-theme="light"] .fish-rate-cell span {
      color: #0f172a !important;
    }
    [data-theme="light"] .fish-rate-bar-wrap {
      background: #e2e8f0 !important;
    }
    [data-theme="light"] .fish-equip-card {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
    }

    /* Themed Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--scrollbar-track);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb);
      border-radius: 4px;
      border: 1px solid var(--scrollbar-track);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--scrollbar-thumb-hover);
    }
    * {
      scrollbar-width: thin;
      scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-dark);
      background-image: var(--bg-body-gradient);
      background-attachment: fixed;
      color: var(--text-main);
      font-family: var(--font-body);
      line-height: 1.5;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Full App Layout with Sidebar */
    .app-layout {
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    /* Left Sidebar Navigation */
    .app-sidebar {
      width: var(--sidebar-width);
      min-width: var(--sidebar-width);
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      z-index: 100;
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
      padding: 20px 16px;
    }

    .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 12px;
    }

    .brand-crest {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      overflow: hidden;
      background: #0f172a;
      border: 1px solid var(--border-gold);
      box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      flex-shrink: 0;
    }

    .brand-logo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 9px;
    }

    .brand-title {
      font-family: var(--font-title);
      font-size: 1.02rem;
      font-weight: 900;
      letter-spacing: 1.2px;
      background: linear-gradient(90deg, #fbbf24 0%, #38bdf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.2;
    }

    .brand-subtitle {
      font-family: var(--font-hud);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-top: 2px;
    }

    .sidebar-status-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.3);
      padding: 5px 12px;
      border-radius: 20px;
      font-family: var(--font-hud);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.8px;
      color: #4ade80;
      margin-bottom: 16px;
    }

    .status-pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 8px #22c55e;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.85); }
    }

    .nav-section-title {
      font-family: var(--font-title);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 1.5px;
      color: #64748b;
      margin-bottom: 8px;
      padding: 0 4px;
      text-transform: uppercase;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .nav-tab {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid transparent;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      font-family: var(--font-title);
      font-size: 0.86rem;
      letter-spacing: 0.4px;
      font-weight: 700;
      text-align: left;
      user-select: none;
      width: 100%;
    }

    .nav-tab:hover {
      background: rgba(56, 189, 248, 0.08);
      border-color: rgba(56, 189, 248, 0.25);
      color: #fff;
      transform: translateX(3px);
    }

    .nav-tab.active {
      background: linear-gradient(90deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.5) 100%);
      border-color: rgba(56, 189, 248, 0.5);
      color: #38bdf8;
      box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    }

    .nav-tab.active::before {
      content: "";
      position: absolute;
      left: 0;
      top: 6px;
      bottom: 6px;
      width: 4px;
      border-radius: 0 4px 4px 0;
      background: linear-gradient(180deg, #38bdf8, #818cf8);
      box-shadow: 0 0 8px #38bdf8;
    }

    .nav-icon {
      font-size: 1.15rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .nav-label {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tab-badge {
      font-family: var(--font-hud);
      font-size: 0.74rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.08);
      color: #cbd5e1;
      border: 1px solid rgba(255, 255, 255, 0.1);
      letter-spacing: 0.4px;
    }

    .nav-tab.active .tab-badge {
      background: rgba(56, 189, 248, 0.25);
      color: #38bdf8;
      border-color: rgba(56, 189, 248, 0.4);
    }

    .sidebar-footer {
      border-top: 1px solid var(--border);
      padding-top: 14px;
      margin-top: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .sidebar-footer-stats {
      display: flex;
      justify-content: space-between;
      font-family: var(--font-hud);
      font-size: 0.75rem;
      color: var(--text-muted);
      padding: 4px 2px;
    }

    .sidebar-footer-stats .val {
      color: #38bdf8;
      font-weight: 700;
    }

    /* Theme Toggle Button */
    .theme-toggle-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: var(--bg-card);
      color: var(--text-main);
      border: 1px solid var(--border);
      padding: 8px 14px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.82rem;
      font-family: var(--font-hud);
      font-weight: 700;
      letter-spacing: 0.5px;
      transition: all 0.2s ease;
      user-select: none;
      width: 100%;
    }
    .theme-toggle-btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* Multi-Language Selector */
    .lang-select {
      background: var(--input-bg);
      color: var(--text-main);
      border: 1px solid var(--border);
      padding: 7px 10px;
      border-radius: 8px;
      font-size: 0.82rem;
      font-family: var(--font-hud);
      font-weight: 700;
      cursor: pointer;
      outline: none;
      transition: all 0.2s ease;
      width: 100%;
    }
    .lang-select:hover, .lang-select:focus {
      border-color: var(--accent);
      color: var(--accent);
    }
    [data-theme="light"] .lang-select {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    [data-theme="light"] .lang-select:hover,
    [data-theme="light"] .lang-select:focus {
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }

    /* Right Content Wrapper */
    .app-content-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      min-height: 100vh;
    }

    /* Top Bar */
    .app-topbar {
      background: var(--topbar-bg);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 14px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 90;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
      flex-wrap: wrap;
      gap: 12px;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .topbar-badge-realm {
      font-family: var(--font-hud);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 1.2px;
      color: #f59e0b;
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.35);
      padding: 4px 10px;
      border-radius: 6px;
      text-transform: uppercase;
    }

    .topbar-page-title {
      font-family: var(--font-title);
      font-size: 1.18rem;
      font-weight: 800;
      letter-spacing: 0.8px;
      color: var(--text-main);
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .topbar-stats {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .t-badge {
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid var(--border);
      padding: 5px 12px;
      border-radius: 20px;
      font-family: var(--font-hud);
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.4px;
    }

    .t-badge strong {
      color: var(--text-main);
      font-weight: 700;
    }

    .t-badge.total-badge {
      border-color: rgba(212, 175, 55, 0.4);
      background: rgba(212, 175, 55, 0.1);
      color: #fbbf24;
    }

    .t-badge.total-badge strong {
      color: #fbbf24;
    }

    .t-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }

    .mobile-menu-btn {
      display: none;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-main);
      font-size: 1.2rem;
      padding: 6px 10px;
      border-radius: 6px;
      cursor: pointer;
    }

    /* Controls Bar */
    .controls-panel {
      margin: 18px 28px 0;
      width: auto;
    }

    .controls-card {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .search-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .search-input-wrap {
      flex: 1;
      min-width: 260px;
      position: relative;
    }

    .search-input-wrap input {
      width: 100%;
      background: var(--input-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 16px 10px 40px;
      color: var(--text-main);
      font-size: 0.95rem;
      outline: none;
      transition: all 0.2s;
    }

    .search-input-wrap input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      pointer-events: none;
    }

    .filter-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 12px;
    }

    .filter-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .filter-item label {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      font-weight: 600;
    }

    .filter-item select {
      background: var(--input-bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
      color: var(--text-main);
      font-size: 0.88rem;
      outline: none;
      cursor: pointer;
      transition: border 0.2s;
    }

    .filter-item select option {
      background: var(--bg-card);
      color: var(--text-main);
    }

    .filter-item select:focus {
      border-color: var(--accent);
    }

    .toolbar-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.05);
      flex-wrap: wrap;
      gap: 12px;
    }

    .result-count {
      font-size: 0.88rem;
      color: var(--text-muted);
    }

    .result-count span {
      color: var(--text-main);
      font-weight: 600;
    }

    .view-toggles {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .view-btn {
      background: var(--input-bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 6px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.2s;
    }

    .view-btn.active {
      background: var(--accent);
      color: #0b0f19;
      font-weight: 600;
      border-color: var(--accent);
    }

    /* Main Container & Compendium Grid/Table Wrappers */
    main,
    .items-grid,
    .item-grid,
    #gridContainer,
    .table-wrap,
    .table-container,
    #tableContainer,
    .empty-state {
      margin: 18px 28px 40px;
      padding: 0;
    }

    .items-grid,
    .item-grid,
    #gridContainer {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
      gap: 16px;
      align-items: stretch;
    }

    /* Item Card */
    .item-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
      min-width: 0;
      box-sizing: border-box;
    }

    .item-card:hover {
      transform: translateY(-3px);
      background: var(--bg-card-hover);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      border-color: var(--card-color, var(--accent));
    }

    .item-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--card-color, #94a3b8);
      box-shadow: 0 0 10px var(--card-color, #94a3b8);
    }

    .card-header {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      min-width: 0;
    }

    .icon-box {
      width: 58px;
      height: 58px;
      min-width: 58px;
      max-width: 58px;
      flex-shrink: 0;
      border-radius: 8px;
      background: var(--box-inner-bg);
      border: 2px solid var(--card-color, #334155);
      box-shadow: 0 0 12px rgba(0,0,0,0.5), inset 0 0 8px rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .icon-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .card-title-group {
      flex: 1;
      min-width: 0;
    }

    .item-name {
      font-family: var(--font-title);
      font-size: 0.96rem;
      font-weight: 700;
      letter-spacing: 0.4px;
      color: var(--card-color, #fff);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 5px;
      line-height: 1.3;
    }

    .item-sub {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      align-items: center;
    }

    .tag {
      font-size: 0.72rem;
      padding: 2px 7px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
      border: 1px solid rgba(255, 255, 255, 0.05);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      line-height: 1.3;
    }

    .tag-grade {
      background: rgba(255, 255, 255, 0.12);
      color: var(--card-color, #fff);
      font-weight: 600;
      border-color: currentColor;
    }

    .tag-flying {
      background: rgba(14, 165, 233, 0.15);
      color: #38bdf8;
      border-color: rgba(14, 165, 233, 0.4);
    }

    .tag-ground {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border-color: rgba(168, 85, 247, 0.4);
    }

    .stats-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px 12px;
      background: rgba(13, 19, 34, 0.5);
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .stat-entry {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .stat-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }

    .stat-val {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stat-entry[style*="span 2"] .stat-label {
      white-space: normal;
      line-height: 1.3;
    }

    .stat-entry[style*="span 2"] .stat-val {
      white-space: normal;
      line-height: 1.3;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.78rem;
      color: var(--text-muted);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 8px;
      margin-top: auto;
    }

    .footer-id {
      font-family: monospace;
      color: #64748b;
    }

    /* Sealed Stone Interactive Box on Cards & Modal */
    .sealed-control-box {
      background: var(--box-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .control-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .ctrl-label {
      font-size: 0.74rem;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      flex-shrink: 0;
    }

    .stepper {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: var(--box-inner-bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2px 4px;
      flex-shrink: 0;
    }

    .step-btn {
      background: rgba(255, 255, 255, 0.08);
      border: none;
      color: var(--text-main);
      width: 24px;
      height: 22px;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 700;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }

    .step-btn:hover {
      background: var(--accent);
      color: #0b0f19;
    }

    .step-val {
      min-width: 44px;
      text-align: center;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--accent);
    }

    .preset-pills {
      display: flex;
      gap: 4px;
      align-items: center;
      flex-wrap: wrap;
    }

    .pill-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 2px 7px;
      border-radius: 4px;
      font-size: 0.72rem;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .pill-btn:hover, .pill-btn.active {
      background: rgba(56, 189, 248, 0.2);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 600;
    }

    .pill-btn.pill-gold {
      border-color: #eab308;
      color: #facc15;
    }

    .pill-btn.pill-gold.active {
      background: rgba(234, 179, 8, 0.25);
    }

    /* Unlocked Reinforce Bonus Banner */
    .reinforce-bonus-banner {
      background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(249, 115, 22, 0.1));
      border: 1px solid rgba(234, 179, 8, 0.3);
      border-radius: 6px;
      padding: 6px 8px;
      font-size: 0.76rem;
      display: flex;
      align-items: center;
      gap: 6px;
      word-break: break-word;
    }

    .reinforce-bonus-banner.locked {
      background: rgba(255, 255, 255, 0.03);
      border-color: rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
    }

    .reinforce-bonus-banner.unlocked {
      color: #facc15;
      font-weight: 600;
      border-color: rgba(234, 179, 8, 0.5);
      box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
    }

    .reinforce-bonus-banner.max-unlocked {
      background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
      border-color: #f87171;
      color: #fca5a5;
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }

    /* Fellow action button */
    .action-btn {
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: var(--accent);
      padding: 7px 12px;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s;
      width: 100%;
      box-sizing: border-box;
    }

    .action-btn:hover {
      background: var(--accent);
      color: #0b0f19;
      box-shadow: 0 0 12px var(--accent-glow);
    }

    /* Table View */
    .table-wrap,
    .table-container {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow-x: auto;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow-x: auto;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.88rem;
    }

    th {
      font-family: var(--font-title);
      background: #0b1120;
      padding: 12px 16px;
      color: var(--text-muted);
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }

    td {
      padding: 10px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      color: #e2e8f0;
      vertical-align: middle;
    }

    tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    .tbl-icon {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      vertical-align: middle;
      margin-right: 10px;
      border: 1px solid #334155;
    }

    /* Modal Backdrop */
    .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--modal-backdrop);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    .modal-backdrop.show {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-dialog {
      background: var(--bg-panel);
      border: 1px solid var(--modal-border, var(--border));
      border-radius: 16px;
      width: 100%;
      max-width: 640px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--modal-glow, rgba(56, 189, 248, 0.2));
      padding: 24px;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
      line-height: 1;
      transition: color 0.2s;
    }

    .modal-close:hover {
      color: var(--text-main);
    }

    .modal-header {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .modal-icon-wrap {
      width: 80px;
      height: 80px;
      min-width: 80px;
      border-radius: 12px;
      background: var(--box-inner-bg);
      border: 2px solid var(--modal-border, #334155);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
      overflow: hidden;
    }

    .modal-icon-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .modal-title h2 {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--modal-border, #fff);
      margin-bottom: 6px;
    }

    .modal-grid-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 14px;
      background: var(--box-bg);
      padding: 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .obtain-section-card {
      background: var(--box-bg);
      border: 1px solid rgba(56, 189, 248, 0.25);
      border-radius: 10px;
      overflow: hidden;
      margin-top: 14px;
    }

    .obtain-header {
      background: rgba(56, 189, 248, 0.08);
      border-bottom: 1px solid rgba(56, 189, 248, 0.15);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .obtain-title-text {
      font-size: 0.9rem;
      font-weight: 700;
      color: #38bdf8;
      letter-spacing: 0.3px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .obtain-body {
      padding: 14px;
    }

    .obtain-cell {
      background: var(--box-inner-bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
    }

    .obtain-lbl {
      display: block;
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      margin-bottom: 3px;
      font-weight: 600;
    }

    .obtain-val {
      font-size: 0.92rem;
      color: var(--text-main);
    }

    .obtain-badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 500;
      line-height: 1.3;
      user-select: all;
    }

    .box-badge {
      background: rgba(168, 85, 247, 0.15);
      color: #d8b4fe;
      border: 1px solid rgba(168, 85, 247, 0.35);
    }

    .recipe-badge {
      background: rgba(245, 158, 11, 0.15);
      color: #fde68a;
      border: 1px solid rgba(245, 158, 11, 0.35);
    }

    /* =========================================================================
       SYNTHESIS SIMULATOR STYLES
       ========================================================================= */
    .synth-wrapper {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .synth-hero {
      background: linear-gradient(135deg, rgba(88, 28, 135, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
      border: 1px solid rgba(168, 85, 247, 0.3);
      border-radius: 12px;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .synth-hero-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .synth-hero-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 4px;
      max-width: 650px;
      line-height: 1.45;
    }

    .synth-subtabs {
      display: flex;
      gap: 8px;
      background: rgba(0, 0, 0, 0.3);
      padding: 4px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    .synth-subtab {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .synth-subtab.active {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
    }

    .synth-grid {
      display: grid;
      grid-template-columns: 420px 1fr;
      gap: 20px;
    }

    @media (max-width: 960px) {
      .synth-grid {
        grid-template-columns: 1fr;
      }
    }

    .synth-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .synth-card-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .grade-selector {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .grade-btn {
      background: var(--box-inner-bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .grade-btn:hover {
      border-color: rgba(255, 255, 255, 0.3);
      color: #fff;
    }

    .grade-btn.active {
      background: rgba(168, 85, 247, 0.2);
      border-color: #a855f7;
      color: #fff;
      box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    }

    .slots-wrap {
      display: flex;
      gap: 8px;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .slot-box {
      flex: 1;
      min-width: 50px;
      height: 65px;
      background: var(--box-inner-bg);
      border: 1px dashed var(--border);
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font-size: 0.72rem;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .slot-box.filled {
      border-style: solid;
      border-color: #a855f7;
      background: rgba(168, 85, 247, 0.12);
      color: #fff;
    }

    .slot-box.required {
      border-color: #38bdf8;
      background: rgba(56, 189, 248, 0.08);
    }

    .rate-breakdown-box {
      background: var(--box-inner-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .rate-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
    }

    .rate-progress-bar {
      height: 10px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 5px;
      overflow: hidden;
      display: flex;
    }

    .rate-segment {
      height: 100%;
      transition: width 0.3s;
    }

    .synth-pool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 12px;
      max-height: 520px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .synth-pool-card {
      background: var(--box-inner-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .synth-pool-card:hover {
      transform: translateY(-2px);
      border-color: rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .synth-pool-card img {
      width: 48px;
      height: 48px;
      border-radius: 6px;
      object-fit: cover;
    }

    .synth-pool-name {
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff;
      line-height: 1.2;
      max-height: 2.4em;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .synth-pool-rate {
      font-size: 0.72rem;
      font-weight: 700;
      color: #eab308;
      background: rgba(234, 179, 8, 0.15);
      padding: 2px 6px;
      border-radius: 4px;
      border: 1px solid rgba(234, 179, 8, 0.3);
    }

    .evolve-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 14px;
    }

    .evolve-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: all 0.2s;
    }

    .evolve-card:hover {
      border-color: rgba(56, 189, 248, 0.4);
    }


    .obtain-boxes-list::-webkit-scrollbar {
      width: 6px;
    }
    .obtain-boxes-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 3px;
    }

    .modal-id-copy {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--input-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .modal-id-copy code {
      color: var(--accent);
      font-weight: 600;
    }

    .copy-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid var(--border);
      color: #fff;
      padding: 4px 10px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
      transition: all 0.15s;
    }

    .copy-btn:hover {
      background: var(--accent);
      color: #0b0f19;
    }

    .empty-state {
      text-align: center;
      padding: 80px 20px;
      color: var(--text-muted);
    }

    .empty-state h3 {
      font-size: 1.2rem;
      color: var(--text-main);
    }

    /* =========================================================================
       BOX DROPS EXPLORER STYLES
       ========================================================================= */
    .box-hero {
      background: linear-gradient(135deg, rgba(234, 179, 8, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
      border: 1px solid rgba(234, 179, 8, 0.35);
      border-radius: 12px;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 20px;
    }
    .box-hero-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .box-hero-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 5px;
      max-width: 720px;
      line-height: 1.5;
    }
    .box-stats-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .box-stat-chip {
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid var(--border);
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.78rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .box-stat-chip strong {
      color: var(--text-main);
      font-weight: 700;
    }
    .box-controls {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 20px;
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .box-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
      gap: 16px;
    }
    .box-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
    }
    .box-card:hover {
      transform: translateY(-2px);
      border-color: rgba(234, 179, 8, 0.5);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }
    .box-card-header {
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .box-card-icon {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      border: 2px solid var(--border);
      object-fit: cover;
      flex-shrink: 0;
      background: #0b0f19;
    }
    .box-card-info {
      flex: 1;
      min-width: 0;
    }
    .box-card-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.25;
    }
    .box-drops-preview {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--box-inner-bg);
      padding: 8px 10px;
      border-radius: 6px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .box-drop-mini-icon {
      width: 28px;
      height: 28px;
      border-radius: 5px;
      object-fit: cover;
      background: #000;
      border: 1px solid rgba(255, 255, 255, 0.12);
      flex-shrink: 0;
    }
    .box-modal-drops-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }
    .box-modal-drops-table th {
      text-align: left;
      padding: 10px 12px;
      background: rgba(0, 0, 0, 0.35);
      color: var(--text-muted);
      font-weight: 600;
      border-bottom: 1px solid var(--border);
    }
    .box-modal-drops-table td {
      padding: 8px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .box-modal-drops-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* =========================================================================
       FISHING EXPLORER STYLES
       ========================================================================= */
    .fish-wrapper {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .fish-hero {
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
      border: 1px solid rgba(56, 189, 248, 0.3);
      border-radius: 12px;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .fish-hero-left h2 {
      font-size: 1.5rem;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .fish-hero-left p {
      color: var(--text-muted);
      font-size: 0.88rem;
      margin-top: 4px;
      max-width: 650px;
    }
    .fish-hero-stats {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }
    .fish-hero-stat {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(56, 189, 248, 0.3);
      padding: 8px 16px;
      border-radius: 8px;
      text-align: center;
    }
    .fish-hero-stat .val {
      font-size: 1.25rem;
      font-weight: 700;
      color: #38bdf8;
    }
    .fish-hero-stat .lbl {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .fish-subnav {
      display: flex;
      gap: 10px;
      background: var(--bg-panel);
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
    }
    .fish-subnav-btn {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.88rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }
    .fish-subnav-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }
    .fish-subnav-btn.active {
      background: rgba(14, 165, 233, 0.2);
      border-color: rgba(56, 189, 248, 0.4);
      color: #38bdf8;
    }
    .fish-layout {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 20px;
      align-items: start;
    }
    @media (max-width: 900px) {
      .fish-layout {
        grid-template-columns: 1fr;
      }
    }
    .fish-sidebar {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .fish-sidebar-title {
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .fish-spot-item {
      padding: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .fish-spot-item:hover {
      background: var(--bg-card-hover);
      border-color: rgba(56, 189, 248, 0.4);
      transform: translateX(2px);
    }
    .fish-spot-item.active {
      background: rgba(14, 165, 233, 0.15);
      border-color: #38bdf8;
      box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
    }
    .fish-spot-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .fish-spot-name {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-main);
    }
    .fish-spot-map {
      font-size: 0.75rem;
      padding: 2px 8px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      color: #cbd5e1;
    }
    .fish-spot-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .fish-main {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .fish-main-header {
      border-bottom: 1px solid var(--border);
      padding-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 12px;
    }
    .fish-main-title h3 {
      font-size: 1.3rem;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .fish-main-title p {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 4px;
    }
    .fish-tier-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      background: var(--bg-card);
      padding: 6px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .fish-tier-btn {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
    }
    .fish-tier-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }
    .fish-tier-btn.active {
      background: rgba(14, 165, 233, 0.25);
      border-color: rgba(56, 189, 248, 0.5);
      color: #38bdf8;
    }
    .fish-search-bar {
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .fish-search-input {
      flex: 1;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 12px;
      color: var(--text-main);
      font-size: 0.85rem;
    }
    .fish-search-input:focus {
      outline: none;
      border-color: #38bdf8;
    }
    .fish-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }
    .fish-table th {
      text-align: left;
      padding: 10px 12px;
      background: rgba(0, 0, 0, 0.35);
      color: var(--text-muted);
      font-weight: 600;
      border-bottom: 1px solid var(--border);
    }
    .fish-table td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      vertical-align: middle;
    }
    .fish-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }
    .fish-item-cell {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .fish-item-icon {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      object-fit: cover;
      background: #000;
      border: 1px solid rgba(255, 255, 255, 0.15);
      flex-shrink: 0;
    }
    .fish-item-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .fish-item-name {
      font-weight: 600;
      font-size: 0.9rem;
    }
    .fish-item-id {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-family: monospace;
    }
    .fish-rate-cell {
      min-width: 130px;
    }
    .fish-rate-bar-wrap {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 4px;
    }
    .fish-rate-bar {
      height: 100%;
      background: linear-gradient(90deg, #38bdf8, #818cf8);
      border-radius: 3px;
    }
    .fish-trade-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 500;
      white-space: nowrap;
    }
    .fish-equip-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 14px;
    }
    .fish-equip-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px;
      display: flex;
      gap: 12px;
      align-items: center;
      transition: all 0.2s;
    }
    .fish-equip-card:hover {
      background: var(--bg-card-hover);
      border-color: rgba(56, 189, 248, 0.4);
    }

    @media (max-width: 1024px) {
      .mobile-menu-btn {
        display: block !important;
      }
      .app-sidebar {
        position: fixed;
        left: -320px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
      }
      .app-sidebar.mobile-open,
      .app-sidebar.open {
        left: 0;
      }
      .app-topbar {
        padding: 12px 16px;
      }
      .topbar-stats {
        display: none;
      }
      .controls-panel {
        margin: 14px 16px 0;
      }
      main,
      .items-grid,
      .item-grid,
      #gridContainer,
      .table-container,
      .table-wrap,
      #tableContainer,
      .empty-state {
        margin: 14px 16px 40px;
      }
    }

    @media (max-width: 768px) {
      .filter-grid {
        grid-template-columns: 1fr 1fr;
      }
      .items-grid,
      .item-grid,
      #gridContainer {
        grid-template-columns: 1fr;
        gap: 12px;
      }
    }
  
    /* =========================================================================
       MAPS & MONSTER EXPLORER STYLES
       ========================================================================= */
    .maps-wrapper {
      padding: 18px 24px 60px;
      max-width: 1700px;
      margin: 0 auto;
    }

    .maps-hero {
      background: linear-gradient(135deg, rgba(20, 24, 38, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
      border: 1px solid var(--border-gold);
      border-radius: 12px;
      padding: 22px 28px;
      margin-bottom: 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }
    .maps-hero-left h2 {
      font-family: 'Cinzel', serif;
      font-size: 1.6rem;
      color: #f59e0b;
      margin: 0 0 6px;
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: 0.05em;
    }
    .maps-hero-left p {
      color: var(--text-muted);
      font-size: 0.88rem;
      margin: 0;
      max-width: 650px;
    }
    .maps-hero-stats {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }
    .maps-hero-stat {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 8px 16px;
      text-align: center;
      min-width: 90px;
    }
    .maps-hero-stat .val {
      font-family: 'Rajdhani', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      line-height: 1.1;
    }
    .maps-hero-stat .lbl {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    /* Maps Layout: Left Sticky Radar, Right Content */
    .maps-layout {
      display: grid;
      grid-template-columns: 420px 1fr;
      gap: 24px;
      align-items: start;
    }
    @media (max-width: 1100px) {
      .maps-layout {
        grid-template-columns: 1fr;
      }
      .maps-radar-panel {
        position: static !important;
      }
    }

    /* Left Radar Panel */
    .maps-radar-panel {
      position: sticky;
      top: 90px;
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
      z-index: 20;
    }
    .maps-selector-bar {
      margin-bottom: 14px;
    }
    .maps-select-input {
      width: 100%;
      background: var(--input-bg);
      border: 1px solid var(--border-gold);
      color: var(--text-main);
      padding: 10px 14px;
      border-radius: 8px;
      font-family: 'Cinzel', serif;
      font-size: 0.92rem;
      font-weight: 600;
      outline: none;
      cursor: pointer;
    }
    .maps-select-input option {
      background: #0f172a;
      color: #fff;
      font-family: 'Inter', sans-serif;
    }

    /* Radar Viewport */
    .maps-radar-viewport,\n    .maps-radar-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 10px;
      overflow: hidden;
      background: #090d16;
      border: 2px solid var(--border-gold);
      box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 4px 16px rgba(0,0,0,0.4);
    }
    .maps-radar-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }
    .maps-radar-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    /* Radar Compass & Grid Overlay */
    .radar-grid-lines {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: 
        radial-gradient(circle at 50% 50%, transparent 69%, rgba(217, 119, 6, 0.15) 70%, transparent 71%),
        radial-gradient(circle at 50% 50%, transparent 44%, rgba(217, 119, 6, 0.12) 45%, transparent 46%),
        radial-gradient(circle at 50% 50%, transparent 19%, rgba(217, 119, 6, 0.1) 20%, transparent 21%);
    }

    /* Radar Selected Monster Circle */
    
    .radar-reticle {
      position: absolute;
      width: 16px;
      height: 16px;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 15;
    }
    .radar-reticle::before, .radar-reticle::after {
      content: '';
      position: absolute;
      background: currentColor;
      box-shadow: 0 0 4px currentColor;
    }
    .radar-reticle::before {
      top: 50%;
      left: -4px;
      right: -4px;
      height: 2px;
      transform: translateY(-50%);
    }
    .radar-reticle::after {
      left: 50%;
      top: -4px;
      bottom: -4px;
      width: 2px;
      transform: translateX(-50%);
    }
    .radar-reticle.tameable { color: #22c55e; }
    .radar-reticle.boss { color: #e11d48; }
    .radar-reticle.regular { color: #38bdf8; }

    .radar-circle-halo {
      position: absolute;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      animation: radarPulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
    }
    .radar-circle-halo.tameable {
      border: 2px solid #22c55e;
      background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.05) 80%, transparent 100%);
      box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
    }
    .radar-circle-halo.boss {
      border: 2px solid #e11d48;
      background: radial-gradient(circle, rgba(225, 29, 72, 0.35) 0%, rgba(225, 29, 72, 0.05) 80%, transparent 100%);
      box-shadow: 0 0 25px rgba(225, 29, 72, 0.6);
    }
    .radar-circle-halo.regular {
      border: 2px solid #38bdf8;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.05) 80%, transparent 100%);
      box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }

    @keyframes radarPulse {
      0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.9;
      }
      50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.5;
      }
      100% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.9;
      }
    }

    .radar-pin {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      cursor: pointer;
      pointer-events: auto;
      transition: transform 0.2s;
    }
    .radar-pin:hover {
      transform: translate(-50%, -50%) scale(2.0);
      z-index: 20;
    }
    .radar-pin.tameable {
      background: #4ade80;
      box-shadow: 0 0 8px #22c55e, 0 0 2px #fff;
      border: 1px solid #fff;
    }
    .radar-pin.boss {
      background: #fb7185;
      box-shadow: 0 0 8px #e11d48, 0 0 2px #fff;
      border: 1px solid #fff;
    }
    .radar-pin.regular {
      background: #38bdf8;
      box-shadow: 0 0 8px #0284c7;
      border: 1px solid #fff;
    }

    /* Radar HUD info bar below map */
    .radar-hud-bar {
      margin-top: 12px;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 10px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
    }
    .radar-hud-target {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      color: #f59e0b;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .radar-legend {
      display: flex;
      gap: 12px;
      font-size: 0.72rem;
      color: var(--text-muted);
      margin-top: 10px;
      justify-content: center;
    }
    .radar-legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .radar-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    /* Right Content Panel */
    .maps-content-panel {
      min-width: 0;
    }

    /* Active Map Header */
    .maps-detail-header {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px 22px;
      margin-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }
    .maps-detail-title h3 {
      font-family: 'Cinzel', serif;
      font-size: 1.4rem;
      margin: 0 0 4px;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .maps-detail-title p {
      margin: 0;
      font-size: 0.84rem;
      color: var(--text-muted);
    }
    .maps-pills-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .maps-pill {
      font-size: 0.76rem;
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: #cbd5e1;
      font-weight: 600;
    }

    /* Monster Filters Row */
    .maps-controls-row {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 18px;
      margin-bottom: 16px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }
    .maps-search-box {
      flex: 1;
      min-width: 220px;
      position: relative;
    }
    .maps-search-input {
      width: 100%;
      background: var(--input-bg);
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 8px 12px 8px 34px;
      border-radius: 6px;
      font-size: 0.85rem;
      outline: none;
    }
    .maps-search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .maps-filter-buttons {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .maps-filter-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-muted);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.8rem;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.2s;
    }
    .maps-filter-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }
    .maps-filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: 0 0 10px var(--accent-glow);
    }
    .maps-select-filter {
      background: var(--input-bg);
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 7px 10px;
      border-radius: 6px;
      font-size: 0.82rem;
      outline: none;
      cursor: pointer;
    }

    /* Monster Card Grid */
    .maps-monster-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 14px;
    }
    .map-monster-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px;
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .map-monster-card:hover {
      transform: translateY(-2px);
      border-color: var(--border-gold-glow);
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    .map-monster-card.active-target {
      border: 2px solid #f59e0b;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
      box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    .map-mon-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }
    .map-mon-name {
      font-family: 'Cinzel', serif;
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 2px;
    }
    .map-mon-korean {
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .map-mon-badges {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
    }

    /* Tameability Banner inside card */
    .map-mon-tame-banner {
      background: rgba(34, 197, 94, 0.12);
      border: 1px solid rgba(34, 197, 94, 0.35);
      border-radius: 6px;
      padding: 7px 10px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .map-mon-tame-title {
      font-size: 0.78rem;
      font-weight: 700;
      color: #4ade80;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .map-mon-mark-tag {
      font-size: 0.72rem;
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(74, 222, 128, 0.3);
      padding: 2px 7px;
      border-radius: 4px;
      color: #facc15;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
    }

    .map-mon-untame-banner {
      background: rgba(148, 163, 184, 0.06);
      border: 1px solid rgba(148, 163, 184, 0.15);
      border-radius: 6px;
      padding: 5px 10px;
      margin-bottom: 10px;
      font-size: 0.75rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Monster Details Grid inside card */
    .map-mon-info-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px 12px;
      font-size: 0.76rem;
      color: var(--text-muted);
      margin-bottom: 12px;
    }
    .map-mon-info-item {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px dashed rgba(255,255,255,0.06);
      padding-bottom: 3px;
    }
    .map-mon-info-item strong {
      color: var(--text-main);
      font-family: 'Rajdhani', sans-serif;
      font-size: 0.88rem;
    }

    .map-mon-action-btn {
      width: 100%;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #f59e0b;
      padding: 7px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s;
    }
    .map-mon-action-btn:hover {
      background: #f59e0b;
      color: #000;
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    }

    /* Monster Avatar & Portrait */
    .map-mon-avatar-wrap {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      border: 2px solid var(--border);
      background: rgba(0, 0, 0, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
      box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }
    .map-mon-avatar {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .map-mon-avatar-fallback {
      font-size: 1.35rem;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }
    .map-mon-boss-crown {
      position: absolute;
      top: 0;
      right: 0;
      background: linear-gradient(135deg, #e11d48, #be123c);
      color: #fff;
      font-size: 0.55rem;
      padding: 1px 4px;
      border-bottom-left-radius: 4px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }

    /* Monster Loot Drops Box */
    .map-mon-drops-box {
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 7px;
      margin-bottom: 10px;
      overflow: hidden;
      transition: all 0.2s;
    }
    .map-mon-drops-head {
      padding: 6px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      font-size: 0.78rem;
      background: rgba(255, 255, 255, 0.02);
      transition: background 0.15s;
    }
    .map-mon-drops-head:hover {
      background: rgba(255, 255, 255, 0.06);
    }
    .map-mon-drops-title {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      color: var(--text-main);
    }
    .map-mon-drops-title strong {
      color: #f59e0b;
    }
    .map-drop-mini-preview {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .map-drop-mini-chip {
      width: 22px;
      height: 22px;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .map-drop-mini-chip img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .map-drop-mini-chip i {
      font-size: 0.65rem;
      color: var(--text-muted);
    }
    .map-drop-mini-count {
      font-size: 0.68rem;
      font-weight: 700;
      color: #f59e0b;
      background: rgba(245, 158, 11, 0.15);
      border-radius: 3px;
      padding: 1px 4px;
    }
    .map-drop-chevron {
      font-size: 0.68rem;
      color: var(--text-muted);
      transition: transform 0.2s;
      margin-left: 4px;
    }
    .map-drop-empty-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-style: italic;
    }
    .map-mon-drops-drawer {
      display: none;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 6px;
      background: rgba(0, 0, 0, 0.18);
      animation: fadeInDrawer 0.2s ease-in-out;
    }
    .map-mon-drops-drawer.open {
      display: block !important;
    }
    @keyframes fadeInDrawer {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .map-mon-drops-scroll {
      max-height: 180px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-right: 2px;
    }
    .map-mon-drops-scroll::-webkit-scrollbar {
      width: 4px;
    }
    .map-mon-drops-scroll::-webkit-scrollbar-thumb {
      background: rgba(245, 158, 11, 0.4);
      border-radius: 2px;
    }
    .map-drop-item {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-left: 3px solid #94a3b8;
      border-radius: 5px;
      padding: 4px 6px;
      transition: background 0.15s;
    }
    .map-drop-item:hover {
      background: rgba(255, 255, 255, 0.07);
    }
    .map-drop-item-icon-box {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }
    .map-drop-item-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .map-drop-item-details {
      flex: 1;
      min-width: 0;
    }
    .map-drop-item-name {
      font-size: 0.78rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.2;
    }
    .map-drop-item-sub {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.68rem;
      color: var(--text-muted);
      margin-top: 1px;
    }
    .map-drop-item-qty {
      font-weight: 600;
      color: var(--text-main);
    }
    .map-drop-item-chance {
      color: #38bdf8;
      font-weight: 700;
      background: rgba(56, 189, 248, 0.12);
      padding: 0 4px;
      border-radius: 3px;
    }
    .map-drop-item-grade {
      margin-left: auto;
      font-size: 0.66rem;
      font-weight: 600;
    }

    /* Radar HUD Avatar */
    .radar-hud-avatar {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      border: 1px solid var(--border);
      object-fit: cover;
      background: rgba(0,0,0,0.3);
      flex-shrink: 0;
    }

    /* Light Theme Additions */
    [data-theme="light"] .map-mon-avatar-wrap {
      background: #f1f5f9;
      border-color: #cbd5e1;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }
    [data-theme="light"] .map-mon-drops-box {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    [data-theme="light"] .map-mon-drops-head {
      background: #f8fafc;
    }
    [data-theme="light"] .map-mon-drops-head:hover {
      background: #f1f5f9;
    }
    [data-theme="light"] .map-mon-drops-drawer {
      border-top-color: #e2e8f0;
      background: #ffffff;
    }
    [data-theme="light"] .map-drop-mini-chip {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .map-drop-item {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    [data-theme="light"] .map-drop-item:hover {
      background: #f1f5f9;
    }
    [data-theme="light"] .map-drop-item-icon-box {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .map-drop-item-qty {
      color: #0f172a;
    }
    [data-theme="light"] .radar-hud-avatar {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }

    /* Light Theme Overrides for Maps */
    [data-theme="light"] .maps-hero {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border-color: #cbd5e1;
      box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }
    [data-theme="light"] .maps-hero-left h2 {
      color: #b45309;
    }
    [data-theme="light"] .maps-hero-stat {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .maps-hero-stat .val {
      color: #0f172a;
    }
    [data-theme="light"] .maps-radar-panel {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    [data-theme="light"] .maps-select-input {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    [data-theme="light"] .maps-select-input option {
      background: #ffffff;
      color: #0f172a;
    }
    [data-theme="light"] .radar-hud-bar {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #475569;
    }
    [data-theme="light"] .maps-detail-header {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .maps-detail-title h3 {
      color: #0f172a;
    }
    [data-theme="light"] .maps-pill {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #334155;
    }
    [data-theme="light"] .maps-controls-row {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .maps-search-input {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    [data-theme="light"] .maps-filter-btn {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #475569;
    }
    [data-theme="light"] .maps-filter-btn:hover {
      background: #e2e8f0;
      color: #0f172a;
    }
    [data-theme="light"] .maps-filter-btn.active {
      background: #0284c7;
      border-color: #0284c7;
      color: #fff;
    }
    [data-theme="light"] .maps-select-filter {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    [data-theme="light"] .map-monster-card {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    [data-theme="light"] .map-monster-card:hover {
      box-shadow: 0 6px 16px rgba(0,0,0,0.08);
      border-color: #b45309;
    }
    [data-theme="light"] .map-monster-card.active-target {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, #ffffff 100%);
      border-color: #d97706;
    }
    [data-theme="light"] .map-mon-info-item {
      border-bottom-color: rgba(0,0,0,0.06);
    }
    [data-theme="light"] .map-mon-info-item strong {
      color: #0f172a;
    }
    [data-theme="light"] .map-mon-untame-banner {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #64748b;
    }

/* Radar Overlays */
.radar-crosshair {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.radar-crosshair-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}
.radar-center-circle {
  position: absolute;
  border: 2px dashed rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.radar-multi-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* ==========================================================================
   DASHBOARD & 404 STYLES
   ========================================================================== */
.dash-container {
  padding: 24px 32px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 36px 40px;
  margin-bottom: 28px;
}

.dash-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dash-hero-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fbbf24 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.dash-hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.6;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.dash-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.dash-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.dash-stat-val {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.dash-stat-lbl {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-section-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.dash-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.dash-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #38bdf8);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: var(--bg-hover);
}

.dash-card:hover::after {
  opacity: 1;
}

.dash-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.dash-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dash-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.dash-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.dash-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.dash-card-badge {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.dash-card-action {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.dash-card:hover .dash-card-action {
  transform: translateX(4px);
}

/* 404 Error Page */
.error-layout {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.error-card {
  max-width: 640px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 48px 36px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.error-code {
  font-family: var(--font-title);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ef4444 0%, #fbbf24 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.error-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #000;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}
