:root {
      --bg-dark: #0a0e17;
      --card-bg: #121826;
      --card-border: #1e293b;
      --card-hover: #1a2337;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --primary-red: #f43f5e;
      --gold: #f59e0b;
      --cyan: #06b6d4;
      --emerald: #10b981;
      --purple: #a855f7;
      --blue-est: #3b82f6;
      --skyblue-est: #38bdf8;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    /* Modern Casino Loader & Spinner */
    .spinner {
      width: 34px;
      height: 34px;
      border: 3px solid rgba(244, 63, 94, 0.25);
      border-top-color: var(--primary-red);
      border-right-color: var(--gold);
      border-radius: 50%;
      animation: spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.9) infinite;
      display: inline-block;
      vertical-align: middle;
      flex-shrink: 0;
    }
    .spinner-sm {
      width: 14px;
      height: 14px;
      border-width: 2px;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .table-loader-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 4.5rem 1rem;
      gap: 1.1rem;
      color: var(--text-muted);
      font-size: 0.92rem;
      font-weight: 600;
      letter-spacing: 0.2px;
    }
    .modal-loader-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 5rem 1rem;
      gap: 1.25rem;
      color: var(--text-muted);
      font-size: 0.95rem;
      font-weight: 600;
    }
    .refresh-spinning svg {
      animation: spin 0.75s linear infinite;
    }
    .pulse-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--emerald);
      box-shadow: 0 0 8px var(--emerald);
      animation: pulse 1.5s infinite;
      flex-shrink: 0;
    }
    .pulse-dot-amber {
      background: var(--gold) !important;
      box-shadow: 0 0 8px var(--gold) !important;
    }
    .pulse-dot-red {
      background: var(--primary-red) !important;
      box-shadow: 0 0 8px var(--primary-red) !important;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.3; transform: scale(0.85); }
    }
    /* Live Toast Notification for Incoming Spins */
    .toast-banner {
      position: fixed;
      top: 1.5rem;
      right: 1.5rem;
      background: linear-gradient(135deg, #1e293b, #0f172a);
      border: 1px solid var(--primary-red);
      border-radius: 12px;
      padding: 0.85rem 1.25rem;
      display: none;
      align-items: center;
      gap: 0.85rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(244, 63, 94, 0.35);
      z-index: 100;
      animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      max-width: 440px;
    }
    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    .btn {
      background: #1e293b;
      border: 1px solid #334155;
      color: var(--text-main);
      padding: 0.5rem 0.95rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }
    .btn:hover { background: #334155; border-color: #475569; }
    main {
      flex: 1;
      max-width: 1440px;
      width: 100%;
      margin: 0 auto;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    /* --- LOBBY VIEW (Game Selection Page) --- */
    #lobbyView {
      display: block;
    }
    .lobby-hero {
      text-align: center;
      padding: 2.5rem 1rem 1.5rem;
    }
    .lobby-title {
      font-size: 2.2rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, #fff 40%, #94a3b8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .lobby-subtitle {
      color: var(--text-muted);
      font-size: 1rem;
      margin-top: 0.5rem;
      max-width: 550px;
      margin-left: auto;
      margin-right: auto;
    }
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 1.5rem;
      max-width: 980px;
      margin: 1.5rem auto 3rem;
      width: 100%;
    }
    .game-card {
      background: var(--card-bg);
      border: 2px solid var(--card-border);
      border-radius: 18px;
      padding: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      width: 100%;
    }
    .game-card.active-card {
      border-color: rgba(244, 63, 94, 0.5);
      background: linear-gradient(145deg, #161e30, #0f1523);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.2);
    }
    .game-card.active-card:hover {
      transform: translateY(-4px);
      border-color: var(--primary-red);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 63, 94, 0.35);
    }
    .game-card.upcoming-card {
      border-color: rgba(168, 85, 247, 0.4);
      background: linear-gradient(145deg, #18152e, #0e101f);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
      cursor: default;
      justify-content: center;
    }
    .game-card.upcoming-card:hover {
      transform: none;
      border-color: rgba(168, 85, 247, 0.4);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
    }
    .game-card-header {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }
    .game-card-logo {
      height: 72px;
      width: 72px;
      border-radius: 14px;
      object-fit: cover;
      box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
      border: 1px solid rgba(244, 63, 94, 0.3);
      background: #172033;
    }
    .game-badge-live {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.25rem 0.65rem;
      border-radius: 20px;
      font-size: 0.74rem;
      font-weight: 700;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: var(--emerald);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    /* --- TRACKER VIEW (Active Game Screen) --- */
    #trackerView {
      display: none;
    }
    /* Tracker Top Navigation Bar */
    .tracker-top-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    .btn-back-lobby {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.55rem 1.15rem;
      font-size: 0.82rem;
      font-weight: 700;
      color: #cbd5e1;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-back-lobby:hover {
      color: #fff;
      background: rgba(30, 41, 59, 0.9);
      border-color: rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }
    /* Table Switcher Tabs with Official CT Logo */
    .table-switch-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.75rem;
      width: 100%;
    }
    .table-tab {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      padding: 1.15rem 1.6rem;
      background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(15, 23, 42, 0.9));
      border: 2px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      text-align: left;
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    }
    .table-tab:hover {
      border-color: rgba(255, 255, 255, 0.2);
      color: var(--text-main);
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    }
    .table-tab.active {
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(234, 179, 8, 0.1));
      border-color: var(--primary-red);
      color: #fff;
      box-shadow: 0 8px 30px rgba(244, 63, 94, 0.28);
    }
    .table-tab-logo {
      height: 42px;
      width: 42px;
      border-radius: 10px;
      object-fit: cover;
      box-shadow: 0 0 14px rgba(244, 63, 94, 0.45);
      border: 1.5px solid rgba(244, 63, 94, 0.4);
      background: #172033;
    }
    .table-tab-title {
      font-weight: 800;
      font-size: 1.12rem;
      letter-spacing: -0.2px;
    }
    .table-tab-sub {
      font-size: 0.74rem;
      color: var(--text-muted);
      margin-top: 0.2rem;
    }
    .table-tab.active .table-tab-sub {
      color: rgba(255, 255, 255, 0.8);
    }
    .table-status-indicator {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      transition: all 0.2s ease;
    }
    .table-status-indicator.active-dot {
      background: var(--primary-red);
      box-shadow: 0 0 12px var(--primary-red);
      border-color: #fca5a5;
    }
    /* Dedicated Section Spacing Divider between Crazy Time and Tables/Graphs */
    .tracker-section-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.1) 85%, transparent);
      margin: 2.75rem 0 2.25rem 0;
      width: 100%;
    }
    /* Filters & Sorting Toolbar */
    .filters-sort-bar {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.25rem;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 14px;
      flex-wrap: wrap;
      margin-top: 0.5rem;
    }
    .filter-controls-group {
      display: flex;
      align-items: flex-end;
      gap: 0.75rem;
      flex-wrap: wrap;
      flex: 1;
    }
    .control-field {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .control-label {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .filter-select {
      background: #0f1523;
      border: 1px solid #27354a;
      color: var(--text-main);
      padding: 0.45rem 0.75rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      transition: border-color 0.2s;
    }
    .filter-select:focus, .filter-select:hover {
      border-color: #3b82f6;
    }
    .toggle-checkbox-label {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--gold);
      cursor: pointer;
      padding-bottom: 0.45rem;
      user-select: none;
    }
    .toggle-checkbox-label input {
      accent-color: var(--primary-red);
      width: 16px;
      height: 16px;
      cursor: pointer;
    }
    .filter-search-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.1rem;
    }
    .search-input {
      background: #0f1523;
      border: 1px solid #27354a;
      color: #fff;
      padding: 0.45rem 0.85rem;
      border-radius: 8px;
      font-size: 0.82rem;
      outline: none;
      min-width: 200px;
    }
    .search-input:focus {
      border-color: #3b82f6;
    }
    /* History Table Card */
    .table-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      margin-top: 0.5rem;
    }
    .table-header-info {
      padding: 1.1rem 1.4rem;
      border-bottom: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
      background: rgba(18, 24, 38, 0.4);
    }
    .spins-table, .data-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.88rem;
    }
    .spins-table th, .data-table th {
      background: #0f1523;
      color: var(--text-muted);
      font-weight: 700;
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      padding: 0.9rem 1.1rem;
      border-bottom: 1px solid var(--card-border);
      position: sticky;
      top: 0;
      z-index: 5;
    }
    .spins-table td, .data-table td {
      padding: 0.85rem 1.1rem;
      border-bottom: 1px solid #172033;
      vertical-align: middle;
    }
    .spins-table tr:hover td, .data-table tr:hover td {
      background: var(--card-hover);
      cursor: pointer;
    }
    .sessions-table-scroll {
      max-height: 660px;
      overflow-y: auto;
      overflow-x: auto;
    }
    .history-table-scroll {
      max-height: 2150px;
      overflow-y: auto;
      overflow-x: auto;
    }
    /* Flash highlight when new spin arrives */
    @keyframes highlightNew {
      0% { background-color: rgba(16, 185, 129, 0.4); box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.45); }
      50% { background-color: rgba(16, 185, 129, 0.18); }
      100% { background-color: transparent; }
    }
    .new-spin-highlight td {
      animation: highlightNew 3s ease-out;
    }
    /* Sector Badges */
    .sector-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-weight: 700;
      font-size: 0.82rem;
      padding: 0.3rem 0.65rem;
      border-radius: 6px;
      background: #1e293b;
      color: #fff;
    }
    .sector-badge-img {
      height: 28px;
      width: auto;
      border-radius: 4px;
      vertical-align: middle;
      display: inline-block;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      object-fit: contain;
    }
    .sector-badge-img:hover {
      transform: scale(1.08);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
    }
    .sector-badge-lg {
      height: 48px;
      border-radius: 6px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    }
    /* Top Slot Visuals (Sector image + multiplier) */
    .top-slot-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.25rem 0.6rem;
      border-radius: 7px;
      background: #172033;
      border: 1px solid #27354a;
      transition: all 0.2s ease;
    }
    .top-slot-img {
      height: 22px;
      width: auto;
      border-radius: 3px;
      vertical-align: middle;
    }
    .top-slot-mult {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 0.82rem;
      color: #fbbf24;
      background: rgba(245, 158, 11, 0.15);
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .top-slot-missed-tag {
      font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.74rem;
      color: #f43f5e; background: rgba(244, 63, 94, 0.15);
      padding: 0.12rem 0.45rem; border-radius: 4px; border: 1px solid rgba(244, 63, 94, 0.4);
      box-shadow: 0 0 6px rgba(244, 63, 94, 0.2); letter-spacing: 0.3px; text-transform: uppercase;
    }
    .top-slot-pill-missed { border-color: rgba(244, 63, 94, 0.25); }
    .top-slot-missed-label {
      font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.78rem;
      color: #f43f5e; background: rgba(244, 63, 94, 0.12);
      padding: 0.15rem 0.5rem; border-radius: 5px; border: 1px solid rgba(244, 63, 94, 0.35);
    }
    .top-slot-matched-glow {
      background: rgba(16, 185, 129, 0.15) !important;
      border: 1px solid #10b981 !important;
      box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    }
    .match-tag {
      font-size: 0.7rem;
      font-weight: 800;
      color: #34d399;
      letter-spacing: 0.4px;
    }
    .mult-pill {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 0.85rem;
      padding: 0.25rem 0.55rem;
      border-radius: 5px;
      display: inline-block;
    }
    .mult-normal { background: #1e293b; color: #cbd5e1; }
    .mult-mid { background: rgba(245, 158, 11, 0.18); border: 1px solid #f59e0b; color: #fbbf24; }
    .mult-high { background: rgba(244, 63, 94, 0.25); border: 1px solid #f43f5e; color: #ff4d6d; box-shadow: 0 0 10px rgba(244, 63, 94, 0.4); }
    /* Bottom Pagination */
    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.1rem 1.4rem;
      border-top: 1px solid var(--card-border);
      background: rgba(18, 24, 38, 0.65);
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .page-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.65rem 1.3rem;
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 9px;
      color: #fff;
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .page-nav-btn:hover:not(:disabled) {
      background: #334155;
      border-color: #475569;
      transform: translateY(-1px);
    }
    .page-nav-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      border-color: #1e293b;
    }
    .page-status {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    /* Modal Dialog */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(10, 14, 23, 0.85);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 1rem;
    }
    .modal-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      max-width: 650px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 25px rgba(244,63,94,0.25);
    }
    .modal-header {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .modal-title { font-weight: 800; font-size: 1.15rem; }
    .modal-close {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.4rem;
      cursor: pointer;
      line-height: 1;
    }
    .modal-body {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .outcome-hero {
      background: #0d131f;
      border: 1px solid #27354a;
      border-radius: 12px;
      padding: 1.25rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 1rem;
      text-align: center;
    }
    .hero-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: 0.35rem; }
    .hero-stat-val { font-size: 1.35rem; font-weight: 800; }
    .bonus-card {
      background: #0d131f;
      border: 1px solid #27354a;
      border-radius: 12px;
      padding: 1.25rem;
    }
    .coinflip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
    .coin-side { border-radius: 10px; padding: 1rem; text-align: center; }
    .coin-red { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
    .coin-blue { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
    .coin-winner { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); border-color: var(--gold); }
    .flapper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.5rem; }
    .flapper-box { border-radius: 8px; padding: 0.75rem; text-align: center; font-size: 0.8rem; }
    .flapper-green { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; }
    .flapper-blue { background: rgba(59, 130, 246, 0.15); border: 1px solid #3b82f6; }
    .flapper-yellow { background: rgba(245, 158, 11, 0.15); border: 1px solid #f59e0b; }
    .video-preview video { width: 100%; border-radius: 8px; max-height: 280px; background: #000; }
    /* Sub-Navigation Tabs: Tables vs Graphs */
    .view-tabs-container {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin-bottom: 2rem;
    }
    /* Collapsible Table Content */
    .card-collapsible-content {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card-collapsible-content.collapsed {
      display: none !important;
    }
    /* Collapse / Expand Toggle Button (Premium Pill Style) */
    .btn-collapse {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.42rem 0.95rem;
      font-size: 0.78rem;
      font-weight: 700;
      color: #cbd5e1;
      background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 9999px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
    }
    .btn-collapse:hover {
      color: #fff;
      background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(30, 41, 59, 0.95));
      border-color: rgba(244, 63, 94, 0.5);
      box-shadow: 0 0 16px rgba(244, 63, 94, 0.25);
      transform: translateY(-1px);
    }
    .btn-collapse.is-collapsed {
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(234, 179, 8, 0.12));
      border-color: rgba(244, 63, 94, 0.45);
      color: #fca5a5;
    }
    .collapse-icon {
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
    }
    .view-tabs-bar {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px;
      background: rgba(13, 19, 31, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      backdrop-filter: blur(12px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    .view-tab-btn {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.6rem 1.25rem;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: #94a3b8;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.6px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .view-tab-btn .tab-icon {
      transition: transform 0.2s ease, stroke 0.2s ease;
      stroke: #64748b;
    }
    .view-tab-btn .tab-title {
      font-size: 0.8rem;
      font-weight: 800;
      letter-spacing: 0.6px;
    }
    .view-tab-btn:hover {
      color: #f1f5f9;
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.08);
    }
    .view-tab-btn:hover .tab-icon {
      stroke: #cbd5e1;
      transform: scale(1.08);
    }
    .view-tab-btn.active {
      color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
      border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 18px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnGenStats {
      color: #fff; background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(126, 34, 206, 0.2) 100%);
      border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnGenStats .tab-icon { stroke: #c084fc; }
    .view-tab-btn.active#tabBtnTables {
      color: #fff; background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.2) 100%);
      border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnTables .tab-icon { stroke: #34d399; }
    .view-tab-btn.active#tabBtnGraphs {
      color: #fff; background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(2, 132, 199, 0.2) 100%);
      border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnGraphs .tab-icon { stroke: #38bdf8; }
    .view-tab-btn.active#tabBtnSimulator {
      color: #fff; background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.2) 100%);
      border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnSimulator .tab-icon { stroke: #fbbf24; }
    .view-tab-btn.active#tabBtnHistorySim {
      color: #fff; background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(126, 34, 206, 0.2) 100%);
      border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnHistorySim .tab-icon { stroke: #c084fc; }
    .view-tab-btn.active#tabBtnDonation {
      color: #fff; background: linear-gradient(135deg, rgba(244, 63, 94, 0.28) 0%, rgba(225, 29, 72, 0.2) 100%);
      border-color: rgba(244, 63, 94, 0.6); box-shadow: 0 0 20px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    .view-tab-btn.active#tabBtnDonation .tab-icon { stroke: #fb7185; fill: rgba(251, 113, 133, 0.35); }
    .tab-pill-badge {
      font-size: 0.65rem; padding: 0.15rem 0.45rem; border-radius: 9999px;
      font-weight: 800; letter-spacing: 0.3px;
      background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7;
    }
    .tab-pill-soon {
      background: rgba(147, 51, 234, 0.15); border: 1px solid rgba(147, 51, 234, 0.35); color: #c084fc;
    }
    /* Presenter Sessions Card */
    .sessions-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 1.25rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    .sessions-card-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
    }
    .sessions-card-title { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
    .table-tag-badge {
      font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem;
      background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35);
      color: #fca5a5; border-radius: 6px;
    }
    .sessions-count-text { font-size: 0.78rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
    .current-session-row { background: rgba(16, 185, 129, 0.04); border-left: 3px solid var(--emerald); }
    .badge-live-session {
      display: inline-flex; align-items: center; gap: 0.4rem;
      background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4);
      color: #6ee7b7; padding: 0.25rem 0.55rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
    }
    .badge-past-session { font-size: 0.78rem; color: #cbd5e1; font-family: 'JetBrains Mono', monospace; }
    .pulse-dot-sm {
      width: 6px; height: 6px; border-radius: 50%;
      background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulse 1.8s infinite;
    }
    /* Top 5 Win Chips in Sessions Table */
    .top-wins-chips-container {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
    }
    .win-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      padding: 0.25rem 0.45rem;
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .win-chip:hover {
      border-color: var(--gold);
      background: rgba(245, 158, 11, 0.15);
      transform: translateY(-1px);
    }
    .win-chip-mult {
      font-weight: 800;
      color: var(--gold);
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
    }
    .win-chip-payout {
      font-size: 0.7rem;
      color: #e2e8f0;
      font-family: 'JetBrains Mono', monospace;
    }
    /* Empty Graphs Placeholder */
    .empty-graphs-container {
      background: var(--card-bg);
      border: 1px dashed var(--card-border);
      border-radius: 16px;
      padding: 5rem 2rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 1rem;
    }
    .empty-graphs-icon {
      font-size: 3.5rem;
      margin-bottom: 1.25rem;
      filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.35));
    }
    .empty-graphs-title {
      font-size: 1.45rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 0.5rem;
    }
    .empty-graphs-subtitle {
      max-width: 520px;
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    .empty-graphs-badge {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      background: rgba(59, 130, 246, 0.12);
      border: 1px solid rgba(59, 130, 246, 0.35);
      color: #93c5fd;
      letter-spacing: 1px;
    }
    footer {
      border-top: 1px solid var(--card-border);
      padding: 1.15rem 1.5rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: auto;
      background: rgba(10, 14, 23, 0.45);
    }
