
    @import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');
    
    :root {
      color-scheme: light dark;
      --ink: #0f2038;
      --ink-2: #1e3a61;
      --paper: #e9eff7;
      --surface: #f4f8fd;
      --surface-2: #e2eaf4;
      --line: #cdd9e8;
      --muted: #627792;
      --blue: #2563eb;
      --blue-2: #38bdf8;
      --red: #ef4444;
      --red-dark: #dc2626;
      --white: #ffffff;
      --navy: #091322;
      --navy-card: #101e33;
      --success: #10b981;
      --gold: #f59e0b;
      --silver: #94a3b8;
      --bronze: #d97706;
      --card-radius: 26px;
      
      /* Claymorphism & Neumorphism (Soft UI) Variables - Light */
      --clay-bg: linear-gradient(145deg, #ffffff 0%, #e6eff9 100%);
      --clay-border: 1px solid rgba(255, 255, 255, 0.85);
      --clay-shadow: 10px 14px 28px rgba(166, 180, 200, 0.45), -8px -8px 22px rgba(255, 255, 255, 0.95), inset 3px 3px 6px rgba(255, 255, 255, 0.85), inset -3px -3px 8px rgba(166, 180, 200, 0.28);
      --clay-shadow-hover: 14px 20px 34px rgba(166, 180, 200, 0.55), -10px -10px 26px rgba(255, 255, 255, 1), inset 3px 3px 6px rgba(255, 255, 255, 0.9), inset -3px -3px 8px rgba(166, 180, 200, 0.32);
      --neu-inset: inset 4px 4px 8px #c5d2e3, inset -4px -4px 8px #ffffff;
      --neu-outset: 6px 6px 14px rgba(166, 180, 200, 0.5), -6px -6px 14px #ffffff;
      --shadow: var(--clay-shadow);
    }
    
    @media (prefers-color-scheme: dark) {
      :root {
        --ink: #eef7ff;
        --ink-2: #c8dff3;
        --paper: #061529;
        --surface: #0c213d;
        --surface-2: #122c4b;
        --line: #203c5b;
        --muted: #94a9bf;
        --blue: #57b5ff;
        --blue-2: #7bc7ff;
        --red: #ff5454;
        --red-dark: #ff7272;
        --navy: #031020;
        --navy-card: #091a30;
        --success: #22c55e;
        --shadow: 0 20px 50px rgba(0,0,0,.35);
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: 'Manrope', -apple-system, sans-serif;
      line-height: 1.6;
      overflow-x: hidden;
      padding-bottom: 90px;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    button, input, select { font-family: inherit; }

    .wrap {
      width: min(1280px, calc(100% - 32px));
      margin-inline: auto;
    }

    /* DESKTOP & TABLET ENHANCEMENTS */
    @media (min-width: 1024px) {
      .wrap {
        width: min(1240px, calc(100% - 48px));
      }
      .hero-title {
        font-size: 2.8rem;
      }
      .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
      }
      
    /* SCOPE PILL BUTTONS */
    .scope-pill-btn {
      background: transparent;
      border: none;
      color: var(--muted);
      font-size: 0.74rem;
      font-weight: 800;
      padding: 4px 10px;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .scope-pill-btn.active {
      background: var(--blue);
      color: #fff;
      box-shadow: 0 2px 6px rgba(37,99,235,0.3);
    }

    .stat-box {
        padding: 16px 20px;
      }
      .stat-val {
        font-size: 2.2rem;
      }
      .filters-row {
        grid-template-columns: minmax(220px, 1.8fr) minmax(160px, 1.1fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) auto;
        gap: 12px;
      }
      .podium-container {
        gap: 20px;
        margin-bottom: 32px;
      }
      .podium-card {
        padding: 24px 20px;
      }
      .roster-item {
        grid-template-columns: 56px 1fr auto;
        padding: 16px 24px;
        gap: 18px;
      }
      .item-name {
        max-width: 480px;
      }
      .item-score-main {
        font-size: 1.8rem;
      }
      .active-speaker-hero {
        padding: 28px 32px;
      }
    }

    @media (min-width: 681px) and (max-width: 1023px) {
      /* TABLET VIEW */
      .wrap {
        width: calc(100% - 40px);
      }
      .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
      .filters-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .podium-container {
        grid-template-columns: 1fr 1.15fr 1fr;
        gap: 12px;
      }
      .item-name {
        max-width: 320px;
      }
      .roster-item {
        padding: 14px 20px;
      }
    }

    /* TOPBAR */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 30%);
      background: color-mix(in srgb, var(--paper), transparent 12%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }
    .topbar .wrap {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand-mark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      letter-spacing: .04em;
      font-size: 1.15rem;
      color: var(--ink);
    }
    .brand-mark img {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      object-fit: cover;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .brand-tag {
      font-size: 0.68rem;
      background: var(--red);
      color: var(--white);
      padding: 2px 7px;
      border-radius: 6px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-family: 'Manrope', sans-serif;
      font-weight: 800;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn-portal {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      font-weight: 700;
      padding: 7px 12px;
      border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
      transition: all 0.2s;
    }
    .btn-portal:hover {
      border-color: var(--blue);
      color: var(--blue);
    }

    /* LIVE TICKER STRIP */
    .live-strip {
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      padding: 10px 0;
      overflow: hidden;
    }
    .live-strip-inner {
      display: flex;
      align-items: center;
      gap: 14px;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .live-strip-inner::-webkit-scrollbar { display: none; }
    .live-pill-head {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--success);
      padding: 4px 10px;
      background: color-mix(in srgb, var(--success), transparent 90%);
      border-radius: 20px;
      flex-shrink: 0;
    }
    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
      100% { opacity: 1; transform: scale(1); }
    }
    .live-members-list {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .live-item-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 12px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .live-item-badge:hover {
      border-color: var(--blue);
      color: var(--blue);
      transform: translateY(-1px);
    }

    /* HERO */
    .hero {
      position: relative;
      background: var(--navy);
      color: var(--white);
      padding: 44px 0 32px;
      overflow: hidden;
    }
    .hero:after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
    }
    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--blue-2);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .hero-eyebrow:before {
      content: "";
      width: 20px;
      height: 3px;
      background: var(--red);
    }
    .hero h1 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(2.3rem, 6vw, 3.8rem);
      line-height: 0.95;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.02em;
      margin: 0 0 12px;
    }
    .hero h1 .accent {
      color: var(--blue-2);
    }
    .hero-sub {
      color: #cfe2f5;
      font-size: 0.92rem;
      max-width: 600px;
      margin: 0 0 20px;
    }

    /* HERO STATS */
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
      margin-top: 10px;
    }
    .stat-box {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      padding: 12px 16px;
    }
    .stat-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      color: #9cb8d4;
      letter-spacing: 0.06em;
      display: block;
    }
    .stat-val {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.85rem;
      font-weight: 800;
      line-height: 1.1;
      color: var(--white);
      margin-top: 4px;
    }
    .stat-val span {
      font-size: 0.95rem;
      color: var(--blue-2);
      font-weight: 600;
    }

    /* MAIN CONTAINER */
    .main-body {
      padding: 24px 0 120px;
    }

    /* CONTROLS PANEL */
    .controls-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      padding: 18px;
      box-shadow: var(--shadow);
      margin-bottom: 22px;
    }

    .type-switcher {
      display: grid;
      grid-template-columns: 1fr 1fr 1.25fr;
      gap: 6px;
      background: var(--surface-2);
      padding: 5px;
      border-radius: 12px;
      margin-bottom: 16px;
    }
    @media (max-width: 640px) {
      .type-switcher {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 6px !important;
      }
      .type-tab {
        padding: 9px 10px !important;
        font-size: 0.78rem !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }
      .type-tab.tab-live {
        grid-column: span 1 !important;
      }
    }
    .type-tab.active.tab-live {
      color: var(--red);
    }
    .type-tab {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px;
      border-radius: 8px;
      border: none;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .type-tab.active {
      background: var(--surface);
      color: var(--ink);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .type-tab.tab-curmonth {
      border: 1px solid rgba(245, 158, 11, 0.35);
      background: color-mix(in srgb, var(--gold), transparent 92%);
      color: var(--ink);
    }
    .type-tab.tab-curmonth:hover {
      background: color-mix(in srgb, var(--gold), transparent 84%);
    }
    .type-tab.active.tab-curmonth {
      background: linear-gradient(135deg, #f59e0b, #d97706) !important;
      color: #ffffff !important;
      box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
    }
    .type-tab.active.tab-detik {
      color: var(--red);
    }
    .type-tab.active.tab-ptt {
      color: var(--blue);
    }

    /* FILTERS GRID */
    .filters-row {
      display: grid;
      grid-template-columns: minmax(220px, 1.8fr) minmax(160px, 1.1fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) auto;
      gap: 12px;
      align-items: center;
    }
    @media (max-width: 768px) {
      .filters-row {
        grid-template-columns: 1fr;
      }
    }
    .search-box {
      position: relative;
    }
    .search-input {
      width: 100%;
      height: 42px;
      padding: 9px 14px 9px 38px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--ink);
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .search-input:focus {
      border-color: var(--blue);
    }
    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.9rem;
      color: var(--muted);
      pointer-events: none;
    }
    .custom-select {
      width: 100%;
      height: 42px;
      padding: 0 12px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--ink);
      font-size: 0.86rem;
      font-weight: 700;
      outline: none;
      cursor: pointer;
    }
    .custom-select:focus {
      border-color: var(--blue);
    }

    /* PODIUM TOP 3 */
    .podium-container {
      display: grid;
      grid-template-columns: 1fr 1.15fr 1fr;
      gap: 12px;
      align-items: flex-end;
      margin-bottom: 24px;
    }
    @media (max-width: 680px) {
      .podium-container {
        grid-template-columns: 1fr;
        gap: 10px;
      }
    }
    .podium-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      padding: 18px 14px;
      text-align: center;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .podium-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    }
    .podium-card.rank-1 {
      border-top: 5px solid var(--gold);
      background: linear-gradient(180deg, color-mix(in srgb, var(--gold), transparent 93%) 0%, var(--surface) 35%);
      padding: 24px 16px;
    }
    .podium-card.rank-2 {
      border-top: 5px solid var(--silver);
    }
    .podium-card.rank-3 {
      border-top: 5px solid var(--bronze);
    }
    .podium-badge {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 1.4rem;
      margin-bottom: 6px;
      background: var(--surface-2);
      border: 1px solid var(--line);
    }
    .rank-1 .podium-badge {
      width: 50px;
      height: 50px;
      font-size: 1.7rem;
      background: #fef3c7;
      border-color: #fde68a;
    }
    .podium-callsign {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: 0.02em;
      margin: 2px 0 0;
    }
    .podium-name {
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 600;
      max-width: 90%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px;
    }
    .podium-city {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 10px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .podium-primary-val {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 2.1rem;
      font-weight: 900;
      line-height: 1;
      color: var(--red);
    }
    .podium-primary-val.is-ptt {
      color: var(--blue);
    }
    .podium-primary-unit {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
    }
    .podium-secondary {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 600;
    }

    /* LEADERBOARD LIST */
    .list-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      padding: 0 4px;
    }
    .list-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.35rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .list-count {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 600;
    }

    .roster-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .roster-item {
      display: grid;
      grid-template-columns: 46px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      transition: background-color 0.15s;
      cursor: pointer;
    }
    .roster-item:last-child {
      border-bottom: none;
    }
    .roster-item:hover {
      background: var(--surface-2);
    }
    .roster-item.highlighted {
      background: color-mix(in srgb, var(--blue), transparent 90%) !important;
      outline: 2px solid var(--blue);
    }

    .item-rank {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--muted);
      text-align: center;
    }
    .item-rank.rank-top {
      color: var(--ink);
    }

    .item-info {
      min-width: 0;
    }
    .item-headline {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .item-callsign {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: 0.02em;
    }
    .item-pill {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 6px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--muted);
    }
    .item-pill.kaltim {
      background: #dcfce7;
      color: #15803d;
      border-color: #bbf7d0;
    }
    .item-name {
      font-size: 0.84rem;
      color: var(--muted);
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .item-city {
      font-size: 0.74rem;
      color: var(--muted);
      margin-top: 1px;
    }

    .item-bar-bg {
      margin-top: 5px;
      height: 4px;
      background: var(--paper);
      border-radius: 4px;
      overflow: hidden;
      max-width: 220px;
    }
    .item-bar-fill {
      height: 100%;
      background: var(--red);
      border-radius: 4px;
    }
    .item-bar-fill.is-ptt {
      background: var(--blue);
    }

    .item-metrics {
      text-align: right;
      flex-shrink: 0;
    }
    .item-metric-primary {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.55rem;
      font-weight: 800;
      line-height: 1;
      color: var(--red);
    }
    .item-metric-primary.is-ptt {
      color: var(--blue);
    }
    .item-metric-primary small {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      margin-left: 2px;
    }
    .item-metric-secondary {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 2px;
      font-weight: 600;
    }

    
    .quick-pill {
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--ink);
      font-size: 0.76rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .quick-pill.active {
      background: var(--blue);
      border-color: var(--blue);
      color: var(--white);
    }
    .btn-export-csv {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 800;
      background: color-mix(in srgb, var(--success), transparent 90%);
      color: var(--success);
      border: 1px solid color-mix(in srgb, var(--success), transparent 75%);
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-export-csv:hover {
      background: var(--success);
      color: #fff;
    }
    .trend-indicator {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-size: 0.7rem;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
    }
    .trend-up {
      background: #dcfce7;
      color: #15803d;
    }
    .trend-down {
      background: #fee2e2;
      color: #b91c1c;
    }
    .trend-neutral {
      color: var(--muted);
    }
    .item-avg-box {
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 600;
      margin-top: 1px;
    }

    /* PAGINATION */
    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 16px 20px;
      background: var(--surface);
      border-top: 1px solid var(--line);
    }
    .page-btn {
      padding: 7px 14px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: var(--paper);
      color: var(--ink);
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
    }
    .page-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
    .page-info {
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 600;
    }

    
    /* LIVE MODULASI TAB VIEW STYLES */
    #live-modulasi-container, .live-modulasi-container {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      gap: 20px !important;
    }
    .active-speaker-hero {
      background: var(--surface);
      border: 1px solid var(--line);
      border-top: 5px solid var(--red);
      border-radius: var(--card-radius);
      padding: 24px 20px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }
    .active-speaker-hero.is-talking {
      border-top-color: #ef4444;
      background: linear-gradient(180deg, color-mix(in srgb, var(--red), transparent 94%) 0%, var(--surface) 40%);
      box-shadow: 0 0 35px rgba(239, 68, 68, 0.2);
    }
    .speaker-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }
    .speaker-live-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: color-mix(in srgb, var(--red), transparent 88%);
      color: var(--red);
      border: 1px solid color-mix(in srgb, var(--red), transparent 75%);
    }
    .speaker-live-status.standby {
      background: color-mix(in srgb, var(--success), transparent 88%);
      color: var(--success);
      border-color: color-mix(in srgb, var(--success), transparent 75%);
    }
    .sound-wave {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      height: 18px;
    }
    .sound-wave span {
      width: 3px;
      height: 100%;
      background: var(--red);
      border-radius: 2px;
      animation: wave 1.2s ease-in-out infinite;
    }
    .sound-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
    .sound-wave span:nth-child(3) { animation-delay: 0.4s; height: 100%; }
    .sound-wave span:nth-child(4) { animation-delay: 0.1s; height: 40%; }
    @keyframes wave {
      0%, 100% { transform: scaleY(0.3); }
      50% { transform: scaleY(1); }
    }
    .speaker-main-info {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
    }
    .speaker-avatar-mic {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      background: var(--surface-2);
      border: 2px solid var(--line);
      display: grid;
      place-items: center;
      font-size: 1.8rem;
      color: var(--red);
      flex-shrink: 0;
    }
    .speaker-details {
      min-width: 0;
      flex: 1;
    }
    .speaker-callsign {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 2.2rem;
      font-weight: 900;
      line-height: 1;
      color: var(--ink);
      letter-spacing: 0.02em;
    }
    .speaker-handle {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--muted);
      margin-top: 3px;
    }
    .speaker-loc {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 2px;
    }
    .speaker-metrics-box {
      text-align: right;
      flex-shrink: 0;
    }
    .speaker-dur-val {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 2.2rem;
      font-weight: 900;
      line-height: 1;
      color: var(--red);
    }
    .speaker-dur-lbl {
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .speaker-time-ago {
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 600;
      margin-top: 4px;
    }
    .live-control-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 12px;
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 600;
    }
    .btn-manual-refresh {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-manual-refresh:hover {
      border-color: var(--blue);
      color: var(--blue);
    }
    .live-feed-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .live-feed-header {
      padding: 16px 20px;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--surface-2);
    }
    .live-feed-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.3rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--ink);
    }
    .feed-item {
      display: grid;
      grid-template-columns: 48px 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      transition: background-color 0.15s;
      cursor: pointer;
    }
    .feed-item:last-child {
      border-bottom: none;
    }
    .feed-item:hover {
      background: var(--surface-2);
    }
    .feed-index {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--surface-2);
      border: 1px solid var(--line);
      display: grid;
      place-items: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--muted);
    }
    .feed-index.now {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #b91c1c;
    }
    .feed-info {
      min-width: 0;
    }
    .feed-callsign {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: 0.02em;
    }
    .feed-name {
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .feed-exact-time {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 1px;
    }
    .feed-metrics {
      text-align: right;
      flex-shrink: 0;
    }
    .feed-dur {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.55rem;
      font-weight: 800;
      line-height: 1;
      color: var(--red);
    }
    .feed-ago {
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 600;
      margin-top: 2px;
    }
    .online-members-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      padding: 20px;
      box-shadow: var(--shadow);
    }
    .online-card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
    }
    .online-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .online-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .online-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--ink);
      cursor: pointer;
      transition: all 0.2s;
    }
    .online-pill:hover {
      border-color: var(--blue);
      color: var(--blue);
      transform: translateY(-1px);
    }

    
    .badge-onair {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(16, 185, 129, 0.18);
      color: #10b981;
      font-size: 0.68rem;
      font-weight: 800;
      border: 1px solid rgba(16, 185, 129, 0.45);
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
      animation: channelBlinkPulseGreen 0.9s infinite alternate;
      letter-spacing: 0.03em;
    }
    .btn-fav {
      background: transparent;
      border: none;
      font-size: 1.15rem;
      cursor: pointer;
      color: var(--line);
      padding: 0 4px;
      transition: color 0.15s, transform 0.15s;
    }
    .btn-fav:hover {
      transform: scale(1.2);
    }
    .btn-fav.active {
      color: var(--gold);
    }
    .time-approx-hint {
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 500;
    }
    .handles-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }
    .handle-pill {
      font-size: 0.75rem;
      background: var(--paper);
      border: 1px solid var(--line);
      color: var(--muted);
      padding: 2px 8px;
      border-radius: 6px;
      font-family: monospace;
    }

    
    .btn-wa-share {
      background: #25d366 !important;
      color: #ffffff !important;
      border-color: #25d366 !important;
    }
    .btn-wa-share:hover {
      background: #1eb855 !important;
    }
    .sound-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .sound-toggle-btn.active {
      background: color-mix(in srgb, var(--blue), transparent 85%);
      border-color: var(--blue);
      color: var(--blue);
    }
    .badge-last-active {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 6px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--muted);
      white-space: nowrap;
      display: inline-block;
    }
    .badge-onair {
      white-space: nowrap;
    }
    .achievement-badge {
      white-space: nowrap;
    }
    .item-pill {
      white-space: nowrap;
    }
    .btn-back-to-top {
      position: fixed;
      bottom: 84px;
      right: 14px;
      z-index: 55;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 1.15rem;
      font-weight: 900;
      display: none;
      place-items: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      cursor: pointer;
    }
    .roster-item {
      display: grid;
      grid-template-columns: 46px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
      position: relative;
    }
    .item-rank {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      text-align: center;
      flex-shrink: 0;
    }
    .item-headline {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 3px;
    }
    .item-name {
      font-size: 0.86rem;
      color: var(--muted);
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: min(280px, 50vw);
    }
    .my-rank-score {
      font-size: 0.74rem;
      color: #b9d6f2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: min(450px, 60vw);
    }
    .badge-last-active.current {
      background: #e0f2fe;
      color: #0369a1;
      border-color: #bae6fd;
    }
    .city-summary-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      padding: 16px 20px;
      margin-bottom: 22px;
      box-shadow: var(--shadow);
    }
    .city-summary-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    .city-summary-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .city-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
    }
    .city-box {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 14px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .city-box:hover {
      border-color: var(--blue);
      transform: translateY(-2px);
    }
    .city-box-name {
      font-weight: 800;
      font-size: 0.88rem;
      color: var(--ink);
    }
    .city-box-dur {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.35rem;
      font-weight: 900;
      color: var(--red);
      line-height: 1.1;
      margin-top: 2px;
    }
    .city-box-sub {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 2px;
    }

    
    /* MANUAL THEME OVERRIDES */
    html[data-theme="light"] {
      --ink: #0b1e3b;
      --ink-2: #173358;
      --paper: #f4f8fc;
      --surface: #ffffff;
      --surface-2: #e8f2fb;
      --line: #b9cce0;
      --muted: #536881;
      --blue: #0c70c9;
      --blue-2: #82c9ff;
      --red: #e83232;
      --red-dark: #b51d2a;
      --navy: #071a35;
      --navy-card: #0c213d;
      --shadow: 0 16px 40px rgba(8,34,70,.10);
    }
    html[data-theme="dark"] {
      --ink: #f0f6fc;
      --ink-2: #c9d8eb;
      --paper: #09111e;
      --surface: #101c2e;
      --surface-2: #16263d;
      --line: #223753;
      --muted: #8ca3be;
      --blue: #38bdf8;
      --blue-2: #7dd3fc;
      --red: #f87171;
      --red-dark: #ef4444;
      --navy: #050b14;
      --navy-card: #0b1525;
      --success: #10b981;
      
      /* Claymorphism & Neumorphism (Soft UI) Variables - Dark */
      --clay-bg: linear-gradient(145deg, #15243a 0%, #0d1727 100%);
      --clay-border: 1px solid rgba(255, 255, 255, 0.08);
      --clay-shadow: 12px 18px 36px rgba(0, 0, 0, 0.55), -6px -6px 20px rgba(255, 255, 255, 0.035), inset 2px 2px 5px rgba(255, 255, 255, 0.12), inset -3px -3px 8px rgba(0, 0, 0, 0.5);
      --clay-shadow-hover: 16px 24px 42px rgba(0, 0, 0, 0.65), -8px -8px 24px rgba(255, 255, 255, 0.05), inset 2px 2px 5px rgba(255, 255, 255, 0.15), inset -3px -3px 8px rgba(0, 0, 0, 0.55);
      --neu-inset: inset 4px 4px 10px rgba(0, 0, 0, 0.65), inset -3px -3px 8px rgba(255, 255, 255, 0.04);
      --neu-outset: 8px 10px 22px rgba(0, 0, 0, 0.5), -4px -4px 14px rgba(255, 255, 255, 0.03);
      --shadow: var(--clay-shadow);
    }
    
    [data-theme="light"] {
      --ink: #0f2038;
      --ink-2: #1e3a61;
      --paper: #e9eff7;
      --surface: #f4f8fd;
      --surface-2: #e2eaf4;
      --line: #cdd9e8;
      --muted: #627792;
      --blue: #2563eb;
      --blue-2: #38bdf8;
      --red: #ef4444;
      --red-dark: #dc2626;
      --navy: #091322;
      --navy-card: #101e33;
      --success: #10b981;
      --clay-bg: linear-gradient(145deg, #ffffff 0%, #e6eff9 100%);
      --clay-border: 1px solid rgba(255, 255, 255, 0.85);
      --clay-shadow: 10px 14px 28px rgba(166, 180, 200, 0.45), -8px -8px 22px rgba(255, 255, 255, 0.95), inset 3px 3px 6px rgba(255, 255, 255, 0.85), inset -3px -3px 8px rgba(166, 180, 200, 0.28);
      --clay-shadow-hover: 14px 20px 34px rgba(166, 180, 200, 0.55), -10px -10px 26px rgba(255, 255, 255, 1), inset 3px 3px 6px rgba(255, 255, 255, 0.9), inset -3px -3px 8px rgba(166, 180, 200, 0.32);
      --neu-inset: inset 4px 4px 8px #c5d2e3, inset -4px -4px 8px #ffffff;
      --neu-outset: 6px 6px 14px rgba(166, 180, 200, 0.5), -6px -6px 14px #ffffff;
      --shadow: var(--clay-shadow);
    }

    .btn-theme-toggle {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 1.05rem;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: all 0.2s;
    }
    .btn-theme-toggle:hover {
      border-color: var(--blue);
      transform: scale(1.05);
    }

    .btn-clear-search {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--line);
      color: var(--paper);
      border: none;
      font-size: 0.72rem;
      font-weight: 800;
      cursor: pointer;
      display: none;
      place-items: center;
      line-height: 1;
    }
    .btn-clear-search.show {
      display: grid;
    }

    /* BADGE LENCANA PENGHARGAAN */
    .achievement-badges-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }
    .achievement-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 800;
      background: var(--surface-2);
      border: 1px solid var(--line);
      color: var(--ink);
    }
    .achievement-badge.badge-gold {
      background: #fef3c7;
      border-color: #fde68a;
      color: #92400e;
    }
    .achievement-badge.badge-blue {
      background: #e0f2fe;
      border-color: #bae6fd;
      color: #0369a1;
    }
    .achievement-badge.badge-red {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #b91c1c;
    }
    
    /* ROLE JABATAN BADGES */
    .badge-role-owner, .badge-role-korwil, .badge-role-posko, .badge-role-member, .badge-role-volunteer {
      max-width: 140px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .badge-role-owner {
      background: linear-gradient(135deg, #ef4444, #b91c1c);
      color: #ffffff !important;
      font-size: 0.65rem;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 4px;
      box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .badge-role-korwil {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #ffffff !important;
      font-size: 0.65rem;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 4px;
      box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
    }
    .badge-role-posko {
      background: linear-gradient(135deg, #059669, #047857);
      color: #ffffff !important;
      font-size: 0.65rem;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 4px;
      box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
    }
    .badge-role-member {
      background: rgba(37, 99, 235, 0.14);
      border: 1px solid rgba(37, 99, 235, 0.4);
      color: #60a5fa !important;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
    }
    .badge-role-volunteer {
      background: rgba(156, 163, 175, 0.14);
      border: 1px solid rgba(156, 163, 175, 0.3);
      color: var(--muted) !important;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
    }

    .achievement-badge.badge-green {
      background: #dcfce7;
      border-color: #bbf7d0;
      color: #15803d;
    }

    /* SVG TREND CHART */
    .chart-container {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 16px;
    }
    .chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .chart-svg {
      width: 100%;
      height: 120px;
      overflow: visible;
    }

    
    /* BACK TO TOP BUTTON */
    .btn-back-to-top {
      position: fixed;
      bottom: 74px;
      right: 16px;
      z-index: 45;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 1.2rem;
      font-weight: 900;
      display: none;
      place-items: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.25);
      cursor: pointer;
      transition: transform 0.2s, background-color 0.2s;
    }
    .btn-back-to-top:hover {
      transform: translateY(-3px);
      border-color: var(--blue);
      color: var(--blue);
    }
    .btn-back-to-top.show {
      display: grid;
    }

    
    /* LIVE INCREMENT ANIMATION */
    @keyframes liveScoreFlash {
      0% { background-color: color-mix(in srgb, var(--success), transparent 75%); }
      100% { background-color: transparent; }
    }
    .score-flash {
      animation: liveScoreFlash 2.5s ease-out;
    }
    .live-badge-plus {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--success);
      margin-left: 6px;
      animation: pulse 1s infinite;
    }

    
    .speaker-dur-val.active-ticking {
      color: #ff3333 !important;
      text-shadow: 0 0 12px rgba(255, 51, 51, 0.4);
    }

    /* STICKY BOTTOM BAR ("PERINGKAT SAYA") */
    .sticky-my-rank {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 40;
      background: color-mix(in srgb, var(--navy), transparent 4%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-top: 1px solid rgba(255,255,255,0.15);
      color: var(--white);
      padding: 10px 16px;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    .sticky-my-rank .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .my-rank-info {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .my-rank-badge {
      background: var(--red);
      color: var(--white);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.25rem;
      font-weight: 900;
      padding: 2px 10px;
      border-radius: 8px;
      flex-shrink: 0;
    }
    .my-rank-text {
      min-width: 0;
    }
    .my-rank-cs {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.2rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .my-rank-score {
      font-size: 0.74rem;
      color: #b9d6f2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .my-rank-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .btn-rank-action {
      padding: 7px 12px;
      border-radius: 8px;
      font-size: 0.76rem;
      font-weight: 800;
      border: 1px solid rgba(255,255,255,0.25);
      background: rgba(255,255,255,0.1);
      color: var(--white);
      cursor: pointer;
    }
    .btn-rank-action.primary {
      background: var(--blue);
      border-color: var(--blue);
    }

    /* MODAL DETAIL MEMBER */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(3, 16, 32, 0.78);
      backdrop-filter: blur(8px);
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-overlay.open {
      display: flex;
    }
    .modal-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--card-radius);
      width: min(560px, 100%);
      max-height: 88vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 60px rgba(0,0,0,0.4);
      animation: modalFadeIn 0.2s ease-out;
    }
    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.96); }
      to { opacity: 1; transform: scale(1); }
    }
    .modal-header {
      padding: 18px 22px;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal-title-cs {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.8rem;
      font-weight: 900;
      color: var(--ink);
      line-height: 1;
    }
    .modal-title-name {
      font-size: 0.85rem;
      color: var(--muted);
      font-weight: 600;
      margin-top: 2px;
    }
    .btn-close {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--ink);
      font-size: 1.2rem;
      cursor: pointer;
      display: grid;
      place-items: center;
    }
    .modal-body {
      padding: 20px 22px;
      overflow-y: auto;
    }
    .modal-summary-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 18px;
    }
    .modal-stat-card {
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      text-align: center;
    }
    .modal-stat-lbl {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .modal-stat-num {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.65rem;
      font-weight: 800;
      color: var(--ink);
      margin-top: 2px;
    }
    .monthly-timeline {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .month-row {
      display: grid;
      grid-template-columns: 74px 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 8px 12px;
      background: var(--paper);
      border-radius: 8px;
      font-size: 0.82rem;
    }
    .month-lbl {
      font-weight: 700;
      color: var(--ink);
    }
    .month-bar-wrap {
      height: 5px;
      background: var(--surface-2);
      border-radius: 3px;
      overflow: hidden;
    }
    .month-bar-fill {
      height: 100%;
      background: var(--red);
      border-radius: 3px;
    }
    .month-val {
      font-weight: 700;
      text-align: right;
      color: var(--ink);
    }

    /* MODAL ACTIONS (SHARE & POSTER) */
    .modal-action-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }
    .btn-modal-action {
      flex: 1;
      min-width: 140px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 800;
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--ink);
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-modal-action:hover {
      border-color: var(--blue);
      color: var(--blue);
    }
    .btn-modal-action.primary {
      background: var(--red);
      border-color: var(--red);
      color: var(--white);
    }
    .btn-modal-action.primary:hover {
      background: var(--red-dark);
    }

    /* TOAST ALERT */
    .toast-box {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%) translateY(-100px);
      z-index: 200;
      background: var(--navy);
      color: var(--white);
      padding: 12px 24px;
      border-radius: 30px;
      font-size: 0.86rem;
      font-weight: 700;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid rgba(255,255,255,0.2);
    }
    .toast-box.show {
      transform: translateX(-50%) translateY(0);
    }

    /* UTILS */
    .empty-state {
      padding: 50px 20px;
      text-align: center;
      color: var(--muted);
    }
    .empty-state h3 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.5rem;
      margin: 8px 0 4px;
      color: var(--ink);
    }

    @media (max-width: 650px) {
      .hero { padding: 32px 0 20px; }
      .hero-stats { grid-template-columns: 1fr 1fr; }
      .roster-item {
        grid-template-columns: 34px 1fr auto;
        padding: 12px 14px;
        gap: 10px;
      }
      .item-callsign { font-size: 1.15rem; }
      .item-metric-primary { font-size: 1.35rem; }
      .item-rank { font-size: 1.15rem; }
    }
  
    /* =======================================================
       PTT LIVE CHANNELS CARD & AGGRESSIVE BLINKING ANIMATIONS
       ======================================================= */
    #ptt-channels-grid::-webkit-scrollbar {
      width: 6px;
    }
    #ptt-channels-grid::-webkit-scrollbar-thumb {
      background: var(--line);
      border-radius: 4px;
    }
    .ch-card {
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      transition: all 0.2s;
      position: relative;
    }

    /* KARTU CHANNEL SEDANG BERMODULASI - BERKEDIP MERAH NEON */
    .ch-card.is-on-air {
      border: 2px solid #10b981 !important;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.12)) !important;
      animation: channelBlinkPulseGreen 0.85s infinite ease-in-out !important;
    }

    @keyframes channelBlinkPulseGreen {
      0% {
        border-color: #10b981;
        box-shadow: 0 0 22px rgba(16, 185, 129, 0.85), inset 0 0 10px rgba(16, 185, 129, 0.35);
        background-color: rgba(16, 185, 129, 0.22);
      }
      50% {
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.2), inset 0 0 2px rgba(16, 185, 129, 0.05);
        background-color: rgba(16, 185, 129, 0.06);
      }
      100% {
        border-color: #10b981;
        box-shadow: 0 0 22px rgba(16, 185, 129, 0.85), inset 0 0 10px rgba(16, 185, 129, 0.35);
        background-color: rgba(16, 185, 129, 0.22);
      }
    }

    .ch-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
    }
    .ch-name {
      font-weight: 800;
      color: var(--text);
    }
    .ch-users-badge {
      font-size: 0.72rem;
      color: var(--muted);
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* BADGE BERKEDIP ON-AIR */
    .live-beacon {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.7rem;
      font-weight: 900;
      color: #ffffff !important;
      background: #dc2626 !important;
      padding: 3px 8px;
      border-radius: 6px;
      animation: beaconBlinkFast 0.6s infinite alternate !important;
      box-shadow: 0 0 12px rgba(220, 38, 38, 0.85);
      letter-spacing: 0.03em;
    }

    @keyframes beaconBlinkFast {
      0% { opacity: 1; transform: scale(1.05); }
      100% { opacity: 0.35; transform: scale(0.92); }
    }

    /* EQUALIZER GELOMBANG SUARA */
    .mini-wave {
      display: inline-flex;
      align-items: flex-end;
      gap: 2.5px;
      height: 14px;
      margin-left: 4px;
    }
    .mini-wave span {
      display: inline-block;
      width: 3px;
      background: #ff3333;
      border-radius: 2px;
      animation: miniWaveAnim 0.65s infinite ease-in-out alternate;
    }
    .mini-wave span:nth-child(1) { height: 35%; animation-delay: 0.1s; }
    .mini-wave span:nth-child(2) { height: 95%; animation-delay: 0.25s; }
    .mini-wave span:nth-child(3) { height: 60%; animation-delay: 0.15s; }
    .mini-wave span:nth-child(4) { height: 100%; animation-delay: 0.35s; }

    @keyframes miniWaveAnim {
      0% { transform: scaleY(0.2); }
      100% { transform: scaleY(1); }
    }

    .pulse-glow-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 12px #10b981;
      animation: dotBlinkFast 0.6s infinite alternate;
      display: inline-block;
    }

    @keyframes dotBlinkFast {
      0% { opacity: 1; transform: scale(1.2); }
      100% { opacity: 0.25; transform: scale(0.8); }
    }

    .ch-speaker-line {
      font-size: 0.88rem;
      font-weight: 800;
      color: #ff3333;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 3px;
    }
        .ch-speaker-recent {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      margin-top: 2px;
    }
    .recent-badge {
      background: rgba(245, 158, 11, 0.18);
      color: #fbbf24;
      border-radius: 4px;
      padding: 1px 5px;
      font-size: 0.62rem;
      font-weight: 800;
      letter-spacing: 0.04em;
    }
    .recent-who {
      color: var(--ink);
    }
    .recent-when {
      color: var(--muted);
      font-weight: 600;
    }
.ch-speaker-standby {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 2px;
    }

    /* ============================================================
       CLAYMORPHISM, NEUMORPHISM (SOFT UI) & BENTO GRID THEME LAYER
       ============================================================ */

    /* Canvas background with soft clay ambience */
    body {
      background: var(--paper);
      color: var(--ink);
      font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
      transition: background-color 0.3s ease, color 0.3s ease;
      background-image: 
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(37, 99, 235, 0.07) 0%, transparent 45%);
      background-attachment: fixed;
    }

    /* Topbar with Soft Neumorphic floating bar */
    .topbar {
      background: var(--surface);
      border-bottom: var(--clay-border);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      backdrop-filter: blur(12px);
    }
    .brand-mark {
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    }

    /* BENTO HERO GRID */
    .hero {
      padding: 32px 0 20px;
    }
    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      border: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 12px;
    }

    .bento-hero-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
      margin-top: 24px;
    }
    .bento-card-main {
      grid-column: span 6;
    }
    .bento-card-sub {
      grid-column: span 6;
    }
    .bento-card-compact {
      grid-column: span 6;
    }
    @media (max-width: 860px) {
      .bento-card-main, .bento-card-sub, .bento-card-compact {
        grid-column: span 12;
      }
    }

    /* CLAYMORPHIC CARDS */
    .clay-card, .stat-box {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 26px;
      box-shadow: var(--clay-shadow);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 22px 26px;
      transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
    }
    .clay-card:hover, .stat-box:hover {
      transform: translateY(-4px) scale(1.008);
      box-shadow: var(--clay-shadow-hover);
    }
    .bento-content {
      flex: 1;
      min-width: 0;
      z-index: 2;
    }
    .bento-badge-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .clay-pill-tag {
      font-size: 0.66rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      padding: 3px 9px;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.15);
      color: var(--blue);
      box-shadow: inset 1px 1px 3px rgba(255,255,255,0.2), inset -1px -1px 3px rgba(0,0,0,0.1);
      border: 1px solid rgba(37, 99, 235, 0.25);
    }
    .clay-pill-tag.tag-orange {
      background: rgba(249, 115, 22, 0.15);
      color: #fb923c;
      border-color: rgba(249, 115, 22, 0.25);
    }
    .clay-pill-tag.tag-purple {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border-color: rgba(168, 85, 247, 0.25);
    }
    .clay-pill-tag.tag-teal {
      background: rgba(20, 184, 166, 0.15);
      color: #2dd4bf;
      border-color: rgba(20, 184, 166, 0.25);
    }
    .live-pill-mini {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.64rem;
      font-weight: 800;
      color: #10b981;
      background: rgba(16, 185, 129, 0.12);
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .bento-foot-note {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 6px;
      font-weight: 600;
    }
    .bento-illus-wrap {
      flex: none;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 12px;
      z-index: 1;
      filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
      transition: transform 0.3s ease;
    }
    .clay-card:hover .bento-illus-wrap {
      transform: scale(1.08) rotate(2deg);
    }
    .clay-3d-illus {
      width: 95px;
      height: 95px;
      display: block;
    }
    @media (max-width: 520px) {
      .clay-3d-illus {
        width: 72px;
        height: 72px;
      }
      .clay-card, .stat-box {
        padding: 16px 18px;
      }
    }

    /* CITY AGGREGATE SUMMARY AS BENTO CARD */
    .city-summary-card {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 26px;
      box-shadow: var(--clay-shadow);
      padding: 24px;
      margin-bottom: 24px;
    }
    .city-box {
      background: var(--surface-2);
      border-radius: 16px;
      padding: 12px 14px;
      box-shadow: var(--neu-outset);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .city-box:hover {
      transform: translateY(-2px);
      box-shadow: var(--clay-shadow-hover);
    }

    /* CONTROLS PANEL AS BENTO HUB */
    .controls-panel {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 26px;
      box-shadow: var(--clay-shadow);
      padding: 22px;
      margin-bottom: 24px;
    }
    .type-switcher {
      display: flex;
      gap: 10px;
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      padding: 6px;
      border-radius: 18px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .type-tab {
      flex: 1;
      min-width: 140px;
      border: none;
      background: transparent;
      color: var(--muted);
      padding: 12px 16px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 0.84rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .type-tab:hover {
      color: var(--ink);
    }
    .type-tab.active {
      background: var(--clay-bg);
      color: var(--blue);
      box-shadow: var(--clay-shadow);
      border: var(--clay-border);
      transform: translateY(-1px);
    }

    /* NEUMORPHIC INSET INPUTS & SELECTS */
    .search-box {
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      border-radius: 16px;
      padding: 4px 14px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .search-input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--ink);
      font-size: 0.9rem;
      font-weight: 700;
      width: 100%;
      padding: 10px 0;
    }
    .custom-select {
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: var(--ink);
      font-size: 0.86rem;
      font-weight: 700;
      padding: 12px 16px;
      outline: none;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .custom-select:focus {
      border-color: var(--blue);
    }

    /* PODIUM CARDS (CLAY 3D STEPS) */
    .podium-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-bottom: 28px;
      align-items: flex-end;
    }
    .podium-card {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 28px;
      box-shadow: var(--clay-shadow);
      padding: 26px 20px;
      text-align: center;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    }
    .podium-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: var(--clay-shadow-hover);
    }
    .podium-card.rank-1 {
      border: 2px solid rgba(245, 158, 11, 0.45);
      box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25), var(--clay-shadow);
      min-height: 290px;
      order: 2;
    }
    .podium-card.rank-2 {
      border: 2px solid rgba(148, 163, 184, 0.35);
      min-height: 260px;
      order: 1;
    }
    .podium-card.rank-3 {
      border: 2px solid rgba(217, 119, 6, 0.35);
      min-height: 240px;
      order: 3;
    }
    @media (max-width: 680px) {
      .podium-container {
        grid-template-columns: 1fr;
      }
      .podium-card.rank-1 { order: 1; min-height: auto; }
      .podium-card.rank-2 { order: 2; min-height: auto; }
      .podium-card.rank-3 { order: 3; min-height: auto; }
    }
    .podium-badge {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--surface);
      box-shadow: var(--clay-shadow);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      margin-bottom: 12px;
      border: 2px solid rgba(255, 255, 255, 0.4);
    }
    .podium-card.rank-1 .podium-badge {
      background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
      box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45), inset 2px 2px 4px #fff;
    }

    /* ROSTER LIST & ITEMS */
    .roster-card {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 26px;
      box-shadow: var(--clay-shadow);
      padding: 16px;
      overflow: hidden;
    }
    .roster-item {
      background: var(--surface);
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.08);
      padding: 14px 18px;
      margin-bottom: 10px;
      display: grid;
      grid-template-columns: 52px 1fr auto;
      gap: 16px;
      align-items: center;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .roster-item:hover {
      transform: translateY(-2px);
      box-shadow: var(--clay-shadow-hover);
      border-color: rgba(37, 99, 235, 0.3);
    }
    .item-rank {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--muted);
      text-align: center;
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      border-radius: 12px;
      padding: 6px 4px;
    }
    .item-bar-bg {
      background: var(--surface-2);
      box-shadow: var(--neu-inset);
      height: 8px;
      border-radius: 999px;
      overflow: hidden;
      margin-top: 6px;
    }
    .item-bar-fill {
      background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
      box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
      height: 100%;
      border-radius: 999px;
      transition: width 0.4s ease;
    }

    /* REALTIME CHANNEL CARDS WITH CLAY TACTILITY */
    .ch-card {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 18px;
      box-shadow: var(--clay-shadow);
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .ch-card:hover {
      transform: translateY(-2px);
    }
    .ch-card.is-on-air {
      background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(13, 23, 39, 0.95) 100%) !important;
      border: 2px solid #10b981 !important;
      box-shadow: 0 0 24px rgba(16, 185, 129, 0.55), var(--clay-shadow) !important;
      animation: channelBlinkPulseGreen 0.85s infinite alternate !important;
    }

    /* ACTIVE SPEAKER HERO */
    .active-speaker-hero {
      background: var(--clay-bg);
      border: var(--clay-border);
      border-radius: 28px;
      box-shadow: var(--clay-shadow);
      padding: 26px 30px;
      position: relative;
      overflow: hidden;
    }
    .active-speaker-hero.is-talking {
      border: 2px solid rgba(16, 185, 129, 0.65);
      box-shadow: 0 14px 45px rgba(16, 185, 129, 0.25), var(--clay-shadow);
    }

    /* BUTTONS: TACTILE CLAY BUTTONS */
    .btn-portal, .page-btn {
      background: var(--surface);
      box-shadow: var(--clay-shadow);
      border: var(--clay-border);
      border-radius: 14px;
      padding: 8px 16px;
      font-weight: 800;
      font-size: 0.84rem;
      color: var(--ink);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .btn-portal:hover, .page-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: var(--clay-shadow-hover);
      color: var(--blue);
    }
    .btn-portal:active, .page-btn:active:not(:disabled) {
      transform: translateY(1px);
      box-shadow: var(--neu-inset);
    }
    .btn-theme-toggle {
      background: var(--surface);
      box-shadow: var(--clay-shadow);
      border: var(--clay-border);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.15rem;
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .btn-theme-toggle:hover {
      transform: translateY(-2px) rotate(15deg);
      box-shadow: var(--clay-shadow-hover);
    }
    .btn-theme-toggle:active {
      transform: translateY(1px);
      box-shadow: var(--neu-inset);
    }

    /* STICKY BOTTOM BAR */
    .sticky-rank-bar {
      background: var(--surface);
      border: var(--clay-border);
      border-radius: 20px;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), var(--clay-shadow);
      backdrop-filter: blur(14px);
    }


    /* ============================================================
       MOBILE-FIRST CLAYMORPHISM & BENTO RESPONSIVE POLISH (< 640px)
       ============================================================ */
    @media (max-width: 640px) {
      /* TOPBAR */
      .topbar {
        padding: 8px 0 !important;
      }
      .topbar .wrap {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: calc(100% - 20px) !important;
      }
      .brand-mark {
        gap: 8px !important;
        font-size: 1rem !important;
        min-width: 0 !important;
        flex: 1 !important;
      }
      .brand-mark img {
        width: 28px !important;
        height: 28px !important;
      }
      .brand-text-group {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
      }
      .brand-title {
        font-size: 0.95rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
      }
      .brand-subtitle {
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        color: var(--muted) !important;
        letter-spacing: 0.05em !important;
        white-space: nowrap !important;
      }
      .brand-tag {
        display: none !important;
      }
      .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
      }
      .btn-portal {
        padding: 6px 9px !important;
        font-size: 0.72rem !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
      }
      .btn-theme-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
      }

      /* HERO SECTION */
      .hero {
        padding: 20px 0 14px !important;
      }
      .hero .wrap {
        width: calc(100% - 20px) !important;
      }
      .hero-eyebrow {
        font-size: 0.65rem !important;
        padding: 4px 10px !important;
        margin-bottom: 8px !important;
      }
      .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
      }
      .hero-sub {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 14px !important;
      }

      /* BENTO HERO GRID */
      .bento-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 14px !important;
      }
      .bento-card-main, .bento-card-sub, .bento-card-compact {
        grid-column: span 1 !important;
      }
      .clay-card, .stat-box {
        padding: 15px 16px !important;
        border-radius: 20px !important;
        align-items: center !important;
      }
      .bento-content {
        flex: 1 !important;
        padding-right: 6px !important;
      }
      .stat-label {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        color: var(--muted) !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        margin-bottom: 2px !important;
        display: block !important;
      }
      .stat-val {
        font-size: 1.55rem !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        color: var(--ink) !important;
        margin-top: 2px !important;
        word-break: break-word !important;
      }
      .stat-val span {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: var(--blue) !important;
      }
      #stat-hero-time {
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
      }
      .bento-foot-note {
        font-size: 0.68rem !important;
        margin-top: 4px !important;
      }
      .bento-illus-wrap {
        margin-left: 6px !important;
      }
      .clay-3d-illus {
        width: 58px !important;
        height: 58px !important;
      }

      /* CITY SUMMARY BENTO */
      .city-summary-card {
        padding: 16px 14px !important;
        border-radius: 20px !important;
        margin-bottom: 16px !important;
      }
      .city-summary-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
      }
      .city-summary-title {
        font-size: 0.95rem !important;
      }
      .city-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
      }

      /* CONTROLS & TABS */
      .controls-panel {
        padding: 16px 14px !important;
        border-radius: 20px !important;
        margin-bottom: 16px !important;
      }
      .type-switcher {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 5px !important;
      }
      .type-tab {
        min-width: 0 !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        justify-content: flex-start !important;
      }
      .filters-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
      }

      /* PODIUM CARDS */
      .podium-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
      }
      .podium-card {
        padding: 18px 16px !important;
        border-radius: 20px !important;
        min-height: auto !important;
      }
      .podium-card.rank-1 { order: 1 !important; }
      .podium-card.rank-2 { order: 2 !important; }
      .podium-card.rank-3 { order: 3 !important; }
      .podium-badge {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
      }

      /* ROSTER LIST */
      .roster-card {
        padding: 12px 10px !important;
        border-radius: 20px !important;
      }
      .roster-item {
        padding: 12px 14px !important;
        border-radius: 16px !important;
        grid-template-columns: 40px 1fr auto !important;
        gap: 10px !important;
      }
      .item-rank {
        font-size: 1.25rem !important;
        padding: 4px 2px !important;
        border-radius: 10px !important;
      }
      .item-callsign {
        font-size: 1.15rem !important;
      }

      
      /* ========================================================
         COMPREHENSIVE MOBILE OPTIMIZATIONS FOR LIVE MONITOR TAB
         ======================================================== */
      #tab-pane-live {
        padding: 4px 0 20px !important;
      }
      .live-modulasi-container {
        gap: 14px !important;
      }

      /* 1. CHANNEL SELECTOR BAR MOBILE */
      #tab-pane-live > div:first-child {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-radius: 18px !important;
      }
      #tab-pane-live > div:first-child > div:last-child {
        min-width: 100% !important;
        max-width: 100% !important;
      }
      #live-province-select {
        height: 42px !important;
        font-size: 0.85rem !important;
      }

      /* 2. PTT 52 CHANNELS GRID MOBILE */
      #ptt-channels-panel {
        padding: 14px !important;
        border-radius: 18px !important;
      }
      #ptt-channels-panel > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
      }
      #ptt-channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 8px !important;
        max-height: 260px !important;
        padding-right: 2px !important;
      }
      .ch-card {
        padding: 10px 12px !important;
        border-radius: 14px !important;
        gap: 4px !important;
      }
      .ch-name {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }
      .ch-users-badge {
        font-size: 0.68rem !important;
      }
      .ch-speaker-active {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
      }

      /* 3. ACTIVE SPEAKER HERO CARD MOBILE */
      .active-speaker-hero {
        padding: 16px 14px !important;
        border-radius: 20px !important;
      }
      .speaker-main-info {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
      }
      .speaker-main-info > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
      }
      .speaker-details {
        flex: 1 !important;
        min-width: 0 !important;
      }
      .speaker-callsign {
        font-size: 1.45rem !important;
        line-height: 1.1 !important;
      }
      .speaker-handle {
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }
      .speaker-loc {
        font-size: 0.72rem !important;
      }
      .speaker-metrics-box {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: var(--surface-2) !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
        border: 1px solid var(--line) !important;
      }
      .speaker-dur-val {
        font-size: 1.6rem !important;
        line-height: 1 !important;
      }
      .speaker-dur-lbl {
        font-size: 0.7rem !important;
      }

      /* 4. LIVE CONTROL / REFRESH BAR MOBILE */
      .live-control-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
      }
      .live-control-bar > div:first-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
      }
      .btn-manual-refresh {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
      }
      .sound-toggle-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
      }

      /* 5. 15 TRANSMISI TERAKHIR FEED MOBILE */
      .live-feed-card {
        border-radius: 20px !important;
        overflow: hidden !important;
      }
      .live-feed-header {
        padding: 14px 16px !important;
      }
      .live-feed-title {
        font-size: 1.1rem !important;
      }
      .feed-item {
        grid-template-columns: 28px 36px 1fr auto !important;
        gap: 8px !important;
        padding: 12px 14px !important;
      }
      .feed-index {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.72rem !important;
      }
      .feed-avatar-wrap {
        width: 36px !important;
        height: 36px !important;
      }
      .feed-callsign {
        font-size: 0.95rem !important;
      }
      .feed-name {
        font-size: 0.78rem !important;
        max-width: 140px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }
      .feed-exact-time {
        font-size: 0.68rem !important;
      }
      .feed-duration-badge {
        text-align: right !important;
      }
      .feed-duration-badge .val {
        font-size: 0.95rem !important;
      }
      .feed-duration-badge .time-ago {
        font-size: 0.65rem !important;
      }

      /* 6. OPERATOR ONLINE 10 MENIT TERAKHIR */
      .online-members-card {
        border-radius: 20px !important;
        padding: 16px 14px !important;
      }
      .online-cloud-list {
        gap: 6px !important;
      }
      .online-user-pill {
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        border-radius: 10px !important;
      }

      /* REALTIME VIEW */
      .active-speaker-hero {
        padding: 18px 16px !important;
        border-radius: 22px !important;
      }
      .ch-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
      }

      /* STICKY BOTTOM BAR */
      .sticky-rank-bar {
        left: 10px !important;
        right: 10px !important;
        bottom: 8px !important;
        padding: 8px 12px !important;
        border-radius: 16px !important;
      }
      body {
        padding-bottom: 78px !important;
      }
    }


    /* ============================================================
       AVATAR SYSTEM: PHOTO UPLOADS + 3D CLAY DYNAMIC INITIALS
       ============================================================ */
    .user-avatar-wrap {
      position: relative;
      flex-shrink: 0;
      border-radius: 50%;
      overflow: hidden;
      display: inline-block;
      user-select: none;
      box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.12), inset 1px 1px 2px rgba(255, 255, 255, 0.4);
    }
    .user-avatar-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 50%;
      z-index: 2;
    }
    .user-avatar-fallback {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
      border-radius: 50%;
      z-index: 1;
    }
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
      border-radius: 50%;
    }
    
    /* Podium Avatars */
    .podium-avatar-wrap {
      width: 68px;
      height: 68px;
      margin: 0 auto 10px auto;
      border: 3px solid rgba(255, 255, 255, 0.85);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
    .podium-avatar-wrap .user-avatar-fallback {
      font-size: 1.55rem;
    }
    
    /* Roster Item Avatars */
    .roster-avatar-wrap {
      width: 44px;
      height: 44px;
      border: 2px solid rgba(255, 255, 255, 0.7);
    }
    .roster-avatar-wrap .user-avatar-fallback {
      font-size: 1.05rem;
    }
    
    /* Live Modulation Hero Avatar */
    .speaker-avatar-wrap {
      width: 64px;
      height: 64px;
      border-radius: 20px;
      border: 2px solid var(--accent-green, #10b981);
      box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
    }
    .speaker-avatar-wrap .user-avatar-img {
      border-radius: 18px;
    }
    .speaker-avatar-wrap .user-avatar-fallback {
      border-radius: 18px;
      font-size: 1.45rem;
    }
    
    /* Feed / 15 Talkers Avatar */
    .feed-avatar-wrap {
      width: 40px;
      height: 40px;
      border: 1.5px solid rgba(255, 255, 255, 0.5);
    }
    .feed-avatar-wrap .user-avatar-fallback {
      font-size: 0.95rem;
    }

    /* Modal Detail Avatar */
    .modal-avatar-wrap {
      width: 58px;
      height: 58px;
      border: 2.5px solid rgba(255, 255, 255, 0.85);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }
    .modal-avatar-wrap .user-avatar-fallback {
      font-size: 1.35rem;
    }


    /* ============================================================
       MOBILE CRITICAL POLISH: SEARCH PADDING, TICKER, DOCK, TITLES
       ============================================================ */
    .search-box {
      position: relative !important;
      padding-left: 44px !important;
    }
    .search-box .search-icon {
      position: absolute !important;
      left: 14px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      font-size: 1rem !important;
      z-index: 2 !important;
    }
    .search-input {
      padding-left: 0 !important;
    }
    
    .live-strip-inner {
      overflow-x: auto !important;
      white-space: nowrap !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    .live-strip-inner::-webkit-scrollbar, .live-members-list::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
    .live-members-list {
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      overflow-x: auto !important;
      white-space: nowrap !important;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }

    body {
      padding-bottom: 110px !important;
    }

    .sticky-my-rank {
      padding: 8px 12px !important;
    }
    .my-rank-info {
      min-width: 0 !important;
      flex: 1 !important;
    }
    .my-rank-text {
      min-width: 0 !important;
    }
    .my-rank-score {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      font-size: 0.72rem !important;
      color: #94a3b8 !important;
      max-width: 170px !important;
    }
    .my-rank-cs {
      font-size: 1.05rem !important;
    }
    .my-rank-actions {
      flex-shrink: 0 !important;
    }
    .btn-rank-action {
      padding: 8px 12px !important;
      font-size: 0.78rem !important;
      white-space: nowrap !important;
    }


    /* HIGH CONTRAST FIX FOR BENTO HERO STAT VALS */
    .stat-val {
      color: var(--ink) !important;
    }
    .stat-val span {
      color: var(--muted) !important;
    }
    .stat-lbl {
      color: var(--muted) !important;
    }
    .bento-card-main .stat-val {
      color: #0f2038 !important;
    }
    [data-theme="dark"] .bento-card-main .stat-val {
      color: #f1f5f9 !important;
    }
    body {
      padding-bottom: 120px !important;
    }


    
    /* TOPBAR INTEGRATED NAV TABS */
    .topbar .wrap {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    .topbar-center-nav {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--surface-2);
      padding: 4px 6px;
      border-radius: 999px;
      border: 1px solid var(--line);
      box-shadow: var(--neu-inset);
      overflow-x: auto;
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
    }
    .topbar-center-nav::-webkit-scrollbar {
      display: none;
    }
    .topbar-nav-tab {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      font-size: 0.82rem;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
      text-decoration: none;
    }
    .topbar-nav-tab:hover {
      color: var(--ink);
      background: rgba(255, 255, 255, 0.05);
    }
    .topbar-nav-tab.active {
      background: linear-gradient(135deg, var(--blue), #1d4ed8) !important;
      color: #ffffff !important;
      box-shadow: 0 4px 14px rgba(37,99,235,0.4) !important;
      border-color: transparent !important;
    }
    .topbar-nav-tab.tab-gold.active {
      background: linear-gradient(135deg, #f59e0b, #d97706) !important;
      box-shadow: 0 4px 14px rgba(245,158,11,0.45) !important;
    }
    .topbar-nav-tab.tab-red.active {
      background: linear-gradient(135deg, #ef4444, #dc2626) !important;
      box-shadow: 0 4px 14px rgba(239,68,68,0.4) !important;
    }

    @media (max-width: 900px) {
      .topbar .wrap {
        padding: 8px 12px;
      }
      .topbar-center-nav {
        order: 3;
        width: 100%;
        margin-top: 6px;
        padding: 4px;
        justify-content: flex-start;
      }
      .topbar-nav-tab {
        padding: 6px 11px;
        font-size: 0.76rem;
      }
    }

  
    /* TAB CONTENT PANES SYSTEM */
    .tab-content-pane {
      display: none !important;
    }
    .tab-content-pane.active {
      display: block !important;
      animation: fadeInTab 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeInTab {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

  
    /* MARATHON PTT RECORDS RESPONSIVE & MOBILE-FRIENDLY STYLES */
    .marathon-record-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 10px 14px;
      gap: 12px;
      transition: all 0.2s ease;
    }
    .marathon-record-item:hover {
      border-color: var(--blue);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .marathon-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }
    .marathon-rank-wrap {
      font-size: 1.4rem;
      flex-shrink: 0;
      width: 28px;
      text-align: center;
      display: grid;
      place-items: center;
    }
    .marathon-rank-num {
      font-size: 0.85rem;
      font-weight: 900;
      color: var(--muted);
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 2px 6px;
    }
    .marathon-user-info {
      min-width: 0;
      flex: 1;
    }
    .marathon-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 2px;
    }
    .marathon-cs {
      font-weight: 900;
      color: var(--ink);
      font-size: 1rem;
      cursor: pointer;
      transition: color 0.15s;
    }
    .marathon-cs:hover {
      color: var(--blue);
      text-decoration: underline;
    }
    .scope-tag {
      font-size: 0.65rem;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 6px;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    .scope-tag.tag-prov {
      background: rgba(37, 99, 235, 0.15);
      color: #3b82f6;
      border: 1px solid rgba(59, 130, 246, 0.3);
    }
    .scope-tag.tag-kota {
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .marathon-channel-info {
      font-size: 0.76rem;
      color: var(--muted);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .marathon-channel-info .channel-name {
      font-weight: 800;
      color: var(--text);
    }
    .marathon-channel-info .loc-name {
      color: var(--muted);
    }
    .marathon-time {
      font-size: 0.68rem;
      color: var(--muted);
      margin-top: 2px;
    }
    .marathon-right {
      flex-shrink: 0;
      text-align: right;
    }
    .marathon-duration-pill {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
      padding: 6px 10px;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 65px;
    }
    .marathon-duration-pill .dur-num {
      font-weight: 900;
      color: #ef4444;
      font-size: 1.15rem;
      line-height: 1;
    }
    .marathon-duration-pill .dur-unit {
      font-size: 0.62rem;
      font-weight: 800;
      color: #f87171;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 2px;
    }

    @media (max-width: 640px) {
      .marathon-record-item {
        padding: 9px 10px;
        gap: 8px;
        border-radius: 12px;
      }
      .marathon-left {
        gap: 8px;
      }
      .marathon-rank-wrap {
        font-size: 1.15rem;
        width: 22px;
      }
      .marathon-cs {
        font-size: 0.92rem;
      }
      .scope-tag {
        font-size: 0.6rem;
        padding: 1px 5px;
      }
      .marathon-channel-info {
        font-size: 0.7rem;
      }
      .marathon-time {
        font-size: 0.64rem;
      }
      .marathon-duration-pill {
        padding: 4px 8px;
        min-width: 55px;
      }
      .marathon-duration-pill .dur-num {
        font-size: 1rem;
      }
    }

  
    
    /* STATS PANEL CARD: VERTICAL STACK ONLY (NEVER ROW) */
    .stats-panel-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      align-items: stretch !important;
      width: 100% !important;
      box-sizing: border-box !important;
      box-shadow: var(--clay-shadow);
      transition: transform 0.2s ease;
    }
    .stats-panel-header {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      width: 100% !important;
      margin-bottom: 14px !important;
    }

    /* STATS BENTO GRID */
    .stats-bento-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
      width: 100%;
      box-sizing: border-box;
    }
    @media (max-width: 768px) {
      .stats-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      #tab-pane-stats .stats-panel-card {
        padding: 14px 12px !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
      }
      #tab-pane-stats {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
      }
      #hourly-heatmap-bars {
        gap: 1.5px !important;
      }
    }

  
    /* SYMMETRIC MOBILE WRAPPER */
    @media (max-width: 640px) {
      .wrap, .main-body .wrap {
        width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
      }
      .main-body {
        padding-top: 14px !important;
        padding-bottom: 110px !important;
        overflow-x: hidden !important;
      }
    }

  
    /* MARATHON SCOPE TOGGLE */
    .marathon-scope-toggle {
      display: inline-flex;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 2px;
      gap: 2px;
    }
    .m-scope-btn {
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 800;
      padding: 4px 10px;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .m-scope-btn.active {
      background: var(--blue);
      color: #fff;
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    }

  
<style>
  /* 🗺️ RADAR NUSANTARA LIVE MAP STYLES */
  .radar-map-card {
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
  }
  .radar-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
  }
  .radar-sweep-beam {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(16, 185, 129, 0.15) 0deg, transparent 60deg, transparent 360deg);
    border-radius: 50%;
    animation: radarSweep 8s linear infinite;
    pointer-events: none;
    z-index: 1;
  }
  @keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .island-shape {
    fill: rgba(30, 41, 59, 0.85);
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .island-shape:hover, .island-group:hover .island-shape {
    fill: rgba(59, 130, 246, 0.35);
    stroke: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
  }
  .radar-node-pulse {
    animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  @keyframes radarPing {
    75%, 100% {
      transform: scale(2.2);
      opacity: 0;
    }
  }
  .radar-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #fff;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    display: none;
    transform: translate(-50%, -120%);
  }


/* === EXTRACTED CSS MODULE === */



  #tab-pane-live {
    padding-bottom: 140px !important;
  }
  #ptt-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }



/* === EXTRACTED CSS MODULE === */



  /* ==========================================================================
     📱💻 TABLET, LAPTOP, PC & HP UNIVERSAL RESPONSIVE ENGINE
     ========================================================================== */
  
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: 120px !important;
  }

  /* FLUID RESPONSIVE CONTAINER */
  .wrap, .main-body .wrap {
    width: 100% !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  @media (max-width: 640px) {
    .wrap, .main-body .wrap {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }

  /* 1. TOPBAR & NAVIGATION */
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
  }
  .topbar .wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 60px !important;
  }
  .topbar-center-nav {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .topbar-center-nav::-webkit-scrollbar {
    display: none !important;
  }
  @media (max-width: 960px) {
    .topbar .wrap {
      flex-wrap: wrap !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }
    .topbar-center-nav {
      order: 3 !important;
      width: 100% !important;
      margin-top: 6px !important;
      padding: 4px 0 !important;
    }
  }

  /* 2. HERO STATS BENTO */
  .bento-hero-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }
  @media (max-width: 1024px) {
    .bento-hero-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px !important;
    }
  }
  @media (max-width: 600px) {
    .bento-hero-grid {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
    }
  }
  .stat-box, .bento-card {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .bento-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .stat-val {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem) !important;
    word-break: break-word !important;
  }

  /* 3. CONTROLS, TYPE SWITCHER & FILTERS ROW */
  .controls-panel {
    width: 100% !important;
    overflow: hidden !important;
  }
  .type-switcher {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  @media (max-width: 640px) {
    .type-switcher {
      grid-template-columns: 1fr !important;
    }
  }
  .type-tab {
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .filters-row {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: center !important;
  }
  @media (max-width: 1024px) {
    .filters-row {
      grid-template-columns: 1fr 1fr !important;
    }
  }
  @media (max-width: 640px) {
    .filters-row {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
    }
  }
  .search-box, .custom-select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .custom-select {
    height: 42px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* 4. PODIUM TOP 3 (BALANCED & PROPORTIONAL) */
  .podium-container {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr 1fr !important;
    gap: 14px !important;
    align-items: flex-end !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  @media (max-width: 680px) {
    .podium-container {
      grid-template-columns: 1fr !important;
      gap: 12px !important;
    }
    .podium-card.rank-1 { order: 1 !important; }
    .podium-card.rank-2 { order: 2 !important; }
    .podium-card.rank-3 { order: 3 !important; }
  }
  .podium-card {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .podium-callsign {
    word-break: break-all !important;
  }

  /* 5. ROSTER LIST TABLE */
  .roster-card {
    width: 100% !important;
    overflow: hidden !important;
  }
  .roster-item {
    display: grid !important;
    grid-template-columns: 50px 1fr auto !important;
    gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .item-name {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  @media (max-width: 640px) {
    .roster-item {
      grid-template-columns: 36px 1fr auto !important;
      gap: 10px !important;
      padding: 10px 12px !important;
    }
    .item-info {
      min-width: 0 !important;
      overflow: hidden !important;
    }
    .item-headline {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      gap: 4px !important;
      max-width: 100% !important;
    }
    .badge-role-owner, .badge-role-korwil, .badge-role-posko, .badge-role-member, .badge-role-volunteer {
      max-width: 110px !important;
    }
    .item-metrics {
      min-width: 95px !important;
      text-align: right !important;
    }
    .item-score-main {
      font-size: 1.15rem !important;
    }
  }

  /* 6. LIVE MONITOR COMMAND CENTER (VERTICAL STACK, NO HORIZONTAL OVERFLOW) */
  #tab-pane-live {
    width: 100% !important;
    padding-bottom: 140px !important;
  }
  #live-modulasi-container, .live-modulasi-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
  }
  .radar-map-card {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }
  .radar-map-card svg {
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    display: block !important;
  }
  #ptt-channels-panel {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
  }
  #ptt-channels-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    width: 100% !important;
  }
  @media (max-width: 640px) {
    #ptt-channels-grid {
      grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
      max-height: 320px !important;
    }
  }

  /* 7. ACTIVE SPEAKER HERO CARD */
  .active-speaker-hero {
    width: 100% !important;
    min-width: 0 !important;
  }
  .speaker-main-info {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .speaker-details {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  @media (max-width: 680px) {
    .speaker-main-info {
      display: grid !important;
      grid-template-columns: auto 1fr !important;
      align-items: center !important;
      gap: 12px 14px !important;
    }
    .speaker-avatar-mic {
      grid-column: 1 !important;
      grid-row: 1 !important;
      width: 56px !important;
      height: 56px !important;
      margin: 0 !important;
    }
    .speaker-details {
      grid-column: 2 !important;
      grid-row: 1 !important;
      flex: none !important;
      height: auto !important;
      min-height: 0 !important;
    }
    .speaker-metrics-box {
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      width: 100% !important;
      margin-top: 2px !important;
    }
  }

  /* PERAMPINGAN MOBILE (CLEAN & TIDY VIEW) */
  @media (max-width: 640px) {
    /* Ringkaskan area Hero atas agar langsung terlihat konten */
    .hero {
      padding: 6px 0 2px !important;
      text-align: left !important;
    }
    .hero-eyebrow {
      display: none !important;
    }
    .hero h1 {
      display: none !important;
    }
    .hero-sub {
      display: none !important;
    }
    /* Sembunyikan 4 kotak angka raksasa di mobile */
    .hero-stats.bento-hero-grid {
      display: none !important;
    }
    /* FILTER & KONTROL DI MOBILE */
    .controls-panel {
      padding: 8px 10px !important;
      margin-bottom: 10px !important;
      border-radius: 14px !important;
    }
    .type-switcher {
      display: none !important; /* Di HP tombol Bulan Ini & Detik/PTT sudah ada di navigasi atas */
    }
    .filters-row {
      grid-template-columns: 1fr 1fr !important;
      gap: 6px !important;
    }
    .search-box {
      grid-column: 1 / -1 !important;
    }
    .custom-select, .search-box input {
      padding: 6px 8px !important;
      font-size: 0.74rem !important;
      border-radius: 8px !important;
    }
    .podium-header-row {
      margin-bottom: 6px !important;
    }
    .podium-title {
      font-size: 0.95rem !important;
    }
    .podium-actions {
      display: none !important; /* Sembunyikan tombol share di podium header agar hemat ruang */
    }
    .podium-container {
      grid-template-columns: 1fr 1.15fr 1fr !important;
      display: grid !important;
      margin-bottom: 12px !important;
      gap: 4px !important;
      align-items: flex-end !important;
    }
    .podium-card.rank-1 { order: 2 !important; min-height: auto !important; }
    .podium-card.rank-2 { order: 1 !important; min-height: auto !important; }
    .podium-card.rank-3 { order: 3 !important; min-height: auto !important; }
    .podium-card {
      padding: 8px 4px !important;
      border-radius: 12px !important;
    }
    .podium-badge {
      font-size: 1rem !important;
      width: 28px !important;
      height: 28px !important;
      margin: 0 auto 2px !important;
      line-height: 28px !important;
    }
    .podium-avatar-wrap {
      width: 36px !important;
      height: 36px !important;
      margin: 0 auto 2px !important;
    }
    .podium-callsign {
      font-size: 0.82rem !important;
      letter-spacing: 0 !important;
    }
    .podium-name {
      font-size: 0.6rem !important;
      max-width: 75px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    .podium-city {
      display: none !important;
    }
    .podium-card > div[style*="margin-top:4px"] {
      display: none !important; /* Sembunyikan badge jabatan di podium mobile */
    }
    .podium-primary-val {
      font-size: 0.88rem !important;
      margin-top: 2px !important;
    }
    .podium-primary-unit {
      font-size: 0.52rem !important;
    }
    .podium-secondary {
      font-size: 0.58rem !important;
    }
  }

  /* 8. STICKY BOTTOM RANK BAR (PERFECT CLEARANCE) */
  .sticky-my-rank {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 90 !important;
    width: 100% !important;
  }
  .sticky-my-rank .wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  .sticky-my-rank .my-rank-score {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: none !important;
  }
  @media (max-width: 640px) {
    .sticky-my-rank .btn-rank-action {
      padding: 6px 10px !important;
      font-size: 0.74rem !important;
    }
  }

  /* KANAL KOTA & KABUPATEN STYLING */
  .ch-card.is-kota-card {
    border-left: 3px solid #38bdf8 !important;
  }
  .ch-card.is-kota-card.is-on-air {
    border: 2px solid #ef4444 !important;
    border-left: 4px solid #38bdf8 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
  }
  .scope-pill-btn#ch-filter-kota.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
  }
  .ch-header {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  .ch-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.76rem !important;
  }
  .ch-name span {
    white-space: nowrap !important;
    font-size: 0.62rem !important;
  }

