/* ── RESET ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ── DESIGN TOKENS ── */
    :root {
      --green:        #14b362;
      --green-dim:    rgba(20,179,98,0.12);
      --green-border: rgba(20,179,98,0.28);
      --gold:         #ead77a;
      --gold-dim:     rgba(234,215,122,0.16);
      --gold-border:  rgba(234,215,122,0.36);
      --bg:           #09120d;
      --surface:      #16241b;
      --surface2:     #203428;
      --border:       #355243;
      --text:         #ffffff;
      --text2:        rgba(255,255,255,0.74);
      --header-core-h: 62px;
      --nav-core-h:    66px;
      --header-h:      calc(var(--header-core-h) + env(safe-area-inset-top, 0px));
      --nav-h:         calc(var(--nav-core-h) + env(safe-area-inset-bottom, 0px));
      --sidebar-w:    210px;
      --radius:       14px;
    }

    html, body {
      height: 100%;
      height: 100svh;
      height: 100dvh;
      overflow: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    button { font-family: inherit; }

    button, a {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .pwa-install-toast {
      position: fixed;
      right: 16px;
      bottom: calc(var(--nav-h) + 16px);
      z-index: 950;
      display: none;
      align-items: center;
      gap: 12px;
      max-width: min(390px, calc(100vw - 32px));
      padding: 10px 12px 10px 10px;
      border: 1px solid rgba(234,215,122,0.32);
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(9,18,13,0.97), rgba(22,36,27,0.97));
      box-shadow: 0 18px 48px rgba(0,0,0,0.46), 0 0 34px rgba(20,179,98,0.13);
      color: var(--text);
      overflow: hidden;
      transform: translateY(12px);
      opacity: 0;
      transition: transform .24s ease, opacity .24s ease;
    }

    .pwa-install-toast.show {
      display: flex;
      transform: translateY(0);
      opacity: 1;
    }

    .pwa-install-toast::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.08) 42%, transparent 58%);
      transform: translateX(-120%);
      animation: pwaToastShine 4.8s ease-in-out infinite;
      pointer-events: none;
    }

    .pwa-install-logo {
      position: relative;
      width: 46px;
      height: 46px;
      flex: 0 0 46px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(234,215,122,0.34);
      box-shadow: 0 0 0 1px rgba(20,179,98,0.16), 0 0 22px rgba(20,179,98,0.24);
      animation: pwaLogoPulse 2.8s ease-in-out infinite;
    }

    .pwa-install-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .pwa-install-copy {
      min-width: 0;
      flex: 1;
      position: relative;
      z-index: 1;
    }

    .pwa-install-title {
      font-size: 12px;
      font-weight: 900;
      color: var(--gold);
    }

    .pwa-install-sub {
      margin-top: 2px;
      font-size: 11px;
      line-height: 1.32;
      color: var(--text2);
    }

    .pwa-install-action,
    .pwa-install-close {
      position: relative;
      z-index: 1;
      border: 1px solid rgba(20,179,98,0.38);
      border-radius: 999px;
      background: rgba(20,179,98,0.14);
      color: var(--text);
      font-size: 11px;
      font-weight: 850;
      padding: 7px 10px;
      cursor: pointer;
      white-space: nowrap;
    }

    .pwa-install-action:hover {
      background: rgba(20,179,98,0.22);
    }

    .pwa-install-close {
      width: 28px;
      height: 28px;
      padding: 0;
      flex-shrink: 0;
      background: transparent;
      color: var(--text2);
    }

    @keyframes pwaToastShine {
      0%, 58% { transform: translateX(-120%); }
      78%, 100% { transform: translateX(120%); }
    }

    @keyframes pwaLogoPulse {
      0%, 100% { box-shadow: 0 0 0 1px rgba(20,179,98,0.16), 0 0 18px rgba(20,179,98,0.18); }
      50% { box-shadow: 0 0 0 1px rgba(234,215,122,0.32), 0 0 30px rgba(20,179,98,0.34); }
    }

    @media (max-width: 600px) {
      .pwa-install-toast {
        left: 10px;
        right: 10px;
        bottom: calc(var(--nav-h) + 10px);
        max-width: none;
      }
    }

    @media (max-width: 360px) {
      .pwa-install-toast {
        gap: 8px;
        padding: 8px;
      }

      .pwa-install-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
      }

      .pwa-install-sub {
        display: none;
      }

      .pwa-install-action {
        padding: 6px 8px;
        font-size: 10px;
      }

      .pwa-install-close {
        width: 26px;
        height: 26px;
      }
    }

    /* ────────────────────────────────────────
       HEADER
    ──────────────────────────────────────── */
    #app-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--header-h);
      background: rgba(12,18,13,0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--gold-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: env(safe-area-inset-top, 0px) 20px 0;
      z-index: 600;
    }

    .app-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: inherit;
    }

    .brand-logo-img { height: 44px; max-width: 220px; object-fit: contain; display: block; }
    .brand-mark { font-size: 26px; line-height: 1; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
    .brand-mark.has-image { border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.04); }
    .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

    .brand-text { display: flex; flex-direction: column; gap: 2px; }

    body.site-assets-loading .brand-logo-img,
    body.site-assets-loading .brand-mark,
    body.site-assets-loading .brand-text,
    body.site-assets-loading #creator-contact-btn,
    body.site-assets-loading #mob-radio-pill {
      visibility: hidden;
    }

    .brand-kicker {
      font-size: 8px;
      letter-spacing: 3px;
      color: var(--gold);
      text-transform: uppercase;
      font-weight: 700;
    }

    .brand-title {
      font-size: 17px;
      font-weight: 900;
      letter-spacing: 2px;
      line-height: 1;
      color: #fff;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    #creator-contact-btn,
    #mob-radio-pill {
      background: var(--surface2);
      border: 1px solid var(--gold-border);
      color: var(--text2);
      border-radius: 20px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-width: 0;
      transition: color .15s, border-color .15s, background .15s;
    }

    .header-action-icon {
      line-height: 1;
      flex: 0 0 auto;
    }

    .header-action-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #creator-contact-btn:hover,
    #creator-contact-btn.open,
    #mob-radio-pill.playing,
    #mob-radio-pill.open,
    #mob-radio-pill:hover {
      color: var(--gold);
      border-color: var(--gold);
      background: var(--gold-dim);
    }

    @media (max-width: 600px) {
      #app-header {
        gap: 8px;
        padding: 0 10px;
      }

      .app-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
        overflow: hidden;
      }

      .brand-logo-img {
        height: 40px;
        max-width: min(44vw, 178px);
        flex: 1 1 auto;
      }

      .brand-mark {
        width: 28px;
        height: 28px;
        font-size: 22px;
        flex-shrink: 0;
      }

      .brand-text {
        min-width: 0;
      }

      .brand-kicker {
        font-size: 7px;
        letter-spacing: 1.8px;
      }

      .brand-title {
        font-size: 14px;
        letter-spacing: 1px;
      }

      .header-actions {
        flex: 0 0 auto;
        gap: 6px;
      }

      #creator-contact-btn,
      #mob-radio-pill {
        height: 34px;
        padding: 0 9px;
        font-size: 11px;
        border-radius: 17px;
      }
    }

    @media (max-width: 430px) {
      .brand-logo-img {
        max-width: min(48vw, 160px);
      }

      #creator-contact-btn,
      #mob-radio-pill {
        width: 34px;
        padding: 0;
        gap: 0;
      }

      .header-action-icon {
        font-size: 15px;
      }

      .header-action-label {
        display: none;
      }
    }

    @media (max-width: 340px) {
      .brand-logo-img {
        max-width: 132px;
      }
    }

    #creator-contact-modal {
      position: fixed;
      inset: 0;
      z-index: 10020;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
    }

    #creator-contact-modal[hidden] { display: none !important; }

    .creator-contact-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.78);
      backdrop-filter: blur(4px);
    }

    .creator-contact-box {
      position: relative;
      z-index: 1;
      width: min(430px, 100%);
      max-height: calc(100dvh - 32px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 14px;
      border: 1px solid rgba(234,215,122,0.32);
      background: linear-gradient(180deg, #07160c 0%, #040e08 100%);
      box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
    }

    .creator-contact-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(234,215,122,0.18);
      background: rgba(234,215,122,0.08);
    }

    .creator-contact-title {
      color: var(--gold);
      font-size: 14px;
      font-weight: 900;
    }

    .creator-contact-close {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(234,215,122,0.24);
      background: transparent;
      color: var(--text2);
      cursor: pointer;
      font-size: 16px;
    }

    .creator-contact-body {
      display: grid;
      gap: 10px;
      padding: 16px;
      overflow-y: auto;
    }

    .creator-contact-textarea {
      min-height: 130px;
      resize: vertical;
      line-height: 1.45;
    }

    .creator-contact-note {
      min-height: 16px;
      color: var(--text2);
      font-size: 11px;
      line-height: 1.4;
    }

    /* ────────────────────────────────────────
       MAIN CONTENT AREA
    ──────────────────────────────────────── */
    #app-main {
      position: fixed;
      top: var(--header-h);
      bottom: var(--nav-h);
      left: 0; right: 0;
      overflow: hidden;
    }

    .tab-panel {
      display: none;
      flex-direction: column;
      width: 100%;
      height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(212,175,55,.18) transparent;
    }

    .tab-panel::-webkit-scrollbar { width: 4px; }
    .tab-panel::-webkit-scrollbar-thumb { background: rgba(212,175,55,.22); border-radius: 4px; }
    .tab-panel.active { display: flex; }

    #tab-home.active {
      gap: 14px;
      padding-bottom: 14px;
    }

    .panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

    #modal-body {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(212,175,55,.18) transparent;
      display: flex;
      flex-direction: column;
      z-index: 1;
    }

    #modal-body::-webkit-scrollbar { width: 4px; }
    #modal-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,.22); border-radius: 4px; }

    /* ────────────────────────────────────────
       BOTTOM NAV (mobile)
    ──────────────────────────────────────── */
    #app-nav {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: rgba(8,11,9,0.98);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-top: 1px solid var(--gold-border);
      display: flex;
      z-index: 500;
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .nav-btn {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      background: none;
      border: none;
      color: var(--text2);
      cursor: pointer;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      padding: 0;
      transition: color .15s;
      position: relative;
    }

    .nav-icon {
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 20px;
      line-height: 1;
    }
    .nav-label {
      display: block;
      max-width: 100%;
      text-align: center;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nav-btn:focus-visible,
    #creator-contact-btn:focus-visible,
    #mob-radio-pill:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: -3px;
    }
    .site-icon-slot { display: inline-flex; align-items: center; justify-content: center; line-height: 1; vertical-align: -0.12em; }
    .site-icon-img { width: 1em; height: 1em; object-fit: contain; display: block; }
    .brand-mark .site-icon-img, .nav-icon .site-icon-img { width: 22px; height: 22px; }
    .chat-widget-icon .site-icon-img, .chat-pinned-icon .site-icon-img, .chat-vote-icon .site-icon-img { width: 18px; height: 18px; }

    .nav-btn.active { color: var(--gold); background: var(--gold-dim); }

    body.chat-public-disabled [data-chat-public-only] {
      display: none !important;
    }

    .nav-btn.active::after {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 28px; height: 2px;
      background: var(--gold);
      border-radius: 0 0 3px 3px;
    }

    /* ────────────────────────────────────────
       HOME TAB
    ──────────────────────────────────────── */
    .hero {
      padding: 28px 20px 24px;
      background: linear-gradient(155deg, rgba(20,179,98,0.18) 0%, rgba(234,215,122,0.14) 50%, rgba(20,179,98,0.06) 100%);
      border-bottom: 1px solid var(--green-border);
      flex-shrink: 0;
    }

    .hero-kicker {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.5px;
      color: var(--gold);
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .live-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--green);
      flex-shrink: 0;
      animation: blink 2.4s ease-in-out infinite;
    }

    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

    .sport-pill {
      background: var(--gold-dim);
      border: 1px solid var(--gold-border);
      border-radius: 10px;
      padding: 2px 9px;
      font-size: 10px;
      color: var(--gold);
    }

    .hero-title {
      font-size: clamp(22px, 6vw, 30px);
      font-weight: 900;
      line-height: 1.15;
      letter-spacing: -0.5px;
      margin-bottom: 8px;
    }

    .hero-score {
      font-size: clamp(34px, 10vw, 48px);
      font-weight: 900;
      color: var(--green);
      letter-spacing: 2px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .hero-meta { font-size: 13px; color: var(--text2); margin-bottom: 20px; }

    .hero-btns { display: flex; gap: 10px; }

    .btn-primary {
      flex: 1;
      background: var(--green);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 13px 16px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      transition: background .15s;
    }
    .btn-primary:hover { background: #02944f; }

    .btn-ghost {
      flex: 1;
      background: transparent;
      color: var(--gold);
      border: 1px solid var(--gold-border);
      border-radius: 12px;
      padding: 13px 16px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background .15s, border-color .15s;
    }
    .btn-ghost:hover { background: var(--gold-dim); border-color: var(--gold); }

    .sport-rail {
      display: flex;
      gap: 8px;
      padding: 12px 18px;
      overflow-x: auto;
      border-bottom: 1px solid var(--border);
      scrollbar-width: none;
      flex-shrink: 0;
    }
    .sport-rail::-webkit-scrollbar { display: none; }

    .sport-chip {
      flex-shrink: 0;
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      background: var(--surface2);
      color: var(--text2);
      border: 1px solid var(--border);
      transition: background .15s, color .15s, border-color .15s;
    }
    .sport-chip.active {
      background: var(--green);
      color: #fff;
      border-color: var(--green);
      font-weight: 800;
    }
    .sport-chip:hover:not(.active) { border-color: var(--gold-border); color: var(--text); }

    .home-section {
      padding: 18px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .home-section-hd {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
    }

    .home-section-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--gold);
    }

    .home-section-more {
      font-size: 12px;
      color: var(--green);
      background: none;
      border: none;
      cursor: pointer;
      font-weight: 700;
      padding: 0;
    }

    .experience-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .experience-list {
      display: grid;
      gap: 8px;
    }

    .experience-card {
      width: 100%;
      min-height: 78px;
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text);
      text-align: left;
      cursor: pointer;
    }

    .experience-card:hover { border-color: var(--gold-border); }

    .experience-thumb {
      width: 72px;
      height: 56px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface2);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      color: var(--gold);
      font-weight: 900;
    }

    .experience-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .experience-kicker {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .experience-title {
      font-size: 13px;
      font-weight: 800;
      line-height: 1.32;
      color: var(--text);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .experience-sub {
      font-size: 11px;
      line-height: 1.42;
      color: var(--text2);
      margin-top: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .experience-panel {
      border: 1px solid var(--border);
      border-radius: 8px;
      background: linear-gradient(135deg, var(--surface), rgba(0,165,80,.08));
      padding: 14px;
    }

    .experience-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .experience-panel-title {
      font-size: 15px;
      font-weight: 900;
      color: var(--text);
      line-height: 1.2;
    }

    .experience-badge {
      flex-shrink: 0;
      border: 1px solid var(--gold-border);
      border-radius: 999px;
      padding: 4px 8px;
      color: var(--gold);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    .experience-scoreline {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 12px 0;
      font-size: 22px;
      font-weight: 950;
      color: var(--gold);
    }

    .experience-teams {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
    }

    .experience-teams span:last-child { text-align: right; }

    .experience-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 12px;
    }

    .experience-action-btn {
      border: 1px solid var(--green-border);
      border-radius: 8px;
      background: var(--green-dim);
      color: var(--text);
      min-height: 34px;
      padding: 0 12px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .experience-action-btn:hover { border-color: var(--gold-border); }

    .experience-recap {
      font-size: 13px;
      line-height: 1.58;
      color: var(--text2);
    }

    .experience-recap strong {
      display: block;
      color: var(--text);
      font-size: 16px;
      line-height: 1.25;
      margin-bottom: 6px;
    }

    .g13-alert-popup[hidden] {
      display: none !important;
    }

    .g13-alert-popup {
      position: fixed;
      right: 18px;
      bottom: 22px;
      z-index: 12000;
      width: min(380px, calc(100vw - 36px));
      color: var(--text);
    }

    .g13-alert-popup-box {
      position: relative;
      border: 1px solid var(--green-border);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(0,165,80,0.18), rgba(240,212,110,0.07)),
        var(--surface);
      box-shadow: 0 18px 44px rgba(0,0,0,0.52);
      padding: 15px;
      overflow: hidden;
    }

    .g13-alert-popup-close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: rgba(0,0,0,0.22);
      color: var(--text2);
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .g13-alert-popup-close:hover {
      border-color: var(--gold-border);
      color: var(--gold);
    }

    .g13-alert-popup-kicker {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      border: 1px solid var(--gold-border);
      border-radius: 999px;
      padding: 0 8px;
      color: var(--gold);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      margin-bottom: 9px;
    }

    .g13-alert-popup-title {
      padding-right: 34px;
      color: var(--text);
      font-size: 17px;
      line-height: 1.25;
      font-weight: 950;
      margin-bottom: 7px;
    }

    .g13-alert-popup-text {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.45;
      margin-bottom: 12px;
    }

    .g13-alert-popup-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .g13-alert-popup-btn {
      min-height: 36px;
      border: 1px solid var(--green-border);
      border-radius: 8px;
      background: rgba(0,165,80,0.22);
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      padding: 0 12px;
      cursor: pointer;
    }

    .g13-alert-popup-btn.secondary {
      border-color: var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text2);
    }

    .g13-alert-popup-btn:hover {
      border-color: var(--gold-border);
      color: var(--gold);
    }

    @media (max-width: 640px) {
      .g13-alert-popup {
        left: 12px;
        right: 12px;
        bottom: 86px;
        width: auto;
      }
    }

    .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

    .quick-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 14px;
      text-align: left;
      cursor: default;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: border-color .15s;
    }
    .quick-card:hover { border-color: var(--gold-border); }
    .quick-card--result { border-color: var(--green-border); background: linear-gradient(135deg, var(--surface), var(--green-dim)); }
    .quick-card--next   { border-color: var(--gold-border);  background: linear-gradient(135deg, var(--surface), var(--gold-dim)); }

    .quick-label {
      display: block;
      font-size: 9px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text2);
      font-weight: 700;
    }
    .quick-value { display: block; font-size: 17px; font-weight: 900; color: var(--gold); line-height: 1.1; }
    .quick-sub   { display: block; font-size: 11px; color: var(--text2); line-height: 1.4; }

    #mob-news-list { display: flex; flex-direction: column; }

    .mob-news-card {
      display: flex;
      gap: 12px;
      padding: 11px 0;
      background: none;
      border: none;
      cursor: pointer;
      text-align: left;
      border-bottom: 1px solid var(--border);
      width: 100%;
    }
    .mob-news-card:last-child { border-bottom: none; }
    .mob-news-card:active { opacity: .8; }

    .mob-news-thumb {
      width: 58px; height: 58px;
      border-radius: 10px;
      background: var(--surface2);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
      overflow: hidden;
    }
    .mob-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .mob-news-copy { flex: 1; min-width: 0; }
    .mob-news-source {
      font-size: 9px;
      letter-spacing: 1px;
      color: var(--gold);
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 3px;
    }
    .mob-news-title {
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
      color: var(--text);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .mob-news-meta { font-size: 11px; color: var(--text2); margin-top: 4px; }
    .mob-news-desc { font-size: 11px; color: var(--text2); margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ────────────────────────────────────────
       RADIO DOCK
    ──────────────────────────────────────── */
    .radio-dock {
      position: fixed;
      right: 16px;
      bottom: calc(var(--nav-h) + 12px);
      z-index: 600;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px 16px 14px;
      width: min(340px, calc(100vw - 24px));
      background: rgba(12,20,14,0.96);
      border: 1px solid rgba(234,215,122,0.32);
      border-radius: var(--radius);
      box-shadow: 0 16px 40px rgba(0,0,0,0.48), 0 0 0 1px rgba(234,215,122,0.10);
      backdrop-filter: blur(12px);
      transition: opacity .2s, transform .2s;
    }

    .radio-dock.hidden {
      opacity: 0;
      transform: translateY(16px);
      pointer-events: none;
    }

    .radio-dock-stations { display: flex; gap: 6px; }

    .rds-btn {
      flex: 1;
      padding: 6px 8px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text2);
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: border-color .15s, color .15s, background .15s;
    }
    .rds-btn span { font-weight: 500; color: rgba(212,175,55,0.45); margin-left: 3px; }
    .rds-btn.active { border-color: var(--gold); background: var(--gold-dim); color: #fff; }
    .rds-btn.active span { color: var(--gold); }
    .rds-btn:hover:not(.active) { border-color: var(--gold-border); color: var(--text); }

    .radio-dock-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .radio-dock-info { flex: 1; }
    .radio-dock-title { font-size: 14px; font-weight: 800; color: #fff; }
    .radio-dock-status { font-size: 11px; color: var(--green); font-weight: 700; margin-top: 2px; }
    .radio-dock-actions { display: flex; gap: 8px; align-items: center; }

    .radio-dock-toggle {
      width: 38px; height: 38px;
      border-radius: 50%;
      background: var(--green);
      color: #fff;
      border: none;
      cursor: pointer;
      font-size: 15px;
      font-weight: 900;
      transition: background .15s;
    }
    .radio-dock-toggle:hover { background: #02944f; }

    .radio-dock-close,
    .radio-dock-minimize {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text2);
      cursor: pointer;
      font-size: 13px;
      transition: border-color .15s, color .15s;
    }
    .radio-dock-close:hover { border-color: var(--gold-border); color: var(--gold); }
    .radio-dock-minimize:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

    /* ────────────────────────────────────────
       DESKTOP LAYOUT (≥ 900px)
       Sidebar nav replaces bottom nav
    ──────────────────────────────────────── */
    @media (min-width: 900px) {
      :root { --nav-h: 0px; }

      #app-nav {
        flex-direction: column;
        align-items: stretch;
        width: var(--sidebar-w);
        height: auto;
        top: var(--header-h);
        bottom: 0;
        left: 0;
        right: auto;
        border-top: none;
        border-right: 1px solid var(--gold-border);
        padding-bottom: 0;
        padding-top: 12px;
        gap: 2px;
      }

      #app-header {
        padding-top: env(safe-area-inset-top, 0px);
      }

      .nav-btn {
        flex: none;
        flex-direction: row;
        justify-content: flex-start;
        padding: 13px 22px;
        gap: 13px;
        font-size: 12px;
        letter-spacing: 0.6px;
        border-radius: 0;
        text-transform: none;
        border-left: 3px solid transparent;
      }

      .nav-icon { font-size: 18px; }
      .nav-label {
        text-align: left;
        white-space: nowrap;
        overflow-wrap: normal;
      }
      .nav-btn.active {
        color: var(--gold);
        background: var(--gold-dim);
        border-left-color: var(--gold);
      }

      .nav-btn.active::after { display: none; }
      .nav-btn:hover:not(.active) { background: rgba(255,255,255,0.06); color: #fff; }

      #app-main {
        left: var(--sidebar-w);
        bottom: 0;
      }

      .radio-dock {
        bottom: 24px;
        right: 28px;
        width: 320px;
        left: auto;
      }
    }

    @media (min-width: 900px) and (max-width: 1199px) {
      :root { --sidebar-w: 180px; }
    }

    @media (max-width: 500px) {
      .radio-dock {
        left: 10px;
        right: 10px;
        width: auto;
      }
    }

    /* ─────────────────────────────────────────
       CONTENT CSS — article, chat, news feed,
       match center, standings, stats, predictor
    ───────────────────────────────────────── */
    .article-frame-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      border-bottom: 1px solid var(--border);
      gap: 8px;
      flex-shrink: 0;
    }

    .article-frame-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .article-frame-source {
      font-size: 10px;
      font-weight: 700;
      color: #00a550;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .article-frame-title {
      font-size: 12px;
      color: var(--text2);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #article-iframe {
      flex: 1;
      width: 100%;
      height: 0;
      min-height: 0;
      border: none;
      background: #fff;
      display: block;
    }

    .iframe-blocked {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 32px;
      text-align: center;
      color: var(--text2);
      font-size: 14px;
    }

    .iframe-blocked a {
      display: inline-block;
      background: #00a550;
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      padding: 10px 20px;
      border-radius: 8px;
      text-decoration: none;
    }

    .iframe-blocked a:hover { background: #007a3a; }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .modal-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
    }

    .modal-icon { font-size: 28px; }

    .modal-header h2 {
      color: #00a550;
      font-size: 18px;
      letter-spacing: 2px;
      text-transform: uppercase;
      flex: 1;
    }

    .modal-close {
      background: none;
      border: none;
      color: var(--text2);
      font-size: 22px;
      cursor: pointer;
      line-height: 1;
      padding: 4px;
      transition: color 0.2s;
    }

    .modal-close:hover { color: var(--text); }

    .modal-body {
      padding: 20px 24px 24px;
      color: var(--text2);
      font-size: 14px;
      line-height: 1.7;
    }

    .modal-body p { margin-bottom: 12px; }

    .coming-soon {
      display: inline-block;
      background: var(--surface2);
      color: var(--green);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      padding: 4px 10px;
      border-radius: 20px;
      text-transform: uppercase;
      margin-top: 8px;
    }

    .chat-shell {
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 100%;
      color: var(--text);
    }

    .chat-summary {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 18px;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(0,165,80,0.18), rgba(6,18,11,0.95));
      border: 1px solid rgba(0,165,80,0.28);
      box-shadow: 0 18px 42px rgba(0,0,0,0.28);
    }

    .chat-summary-kicker {
      color: rgba(0,165,80,0.8);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2.4px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .chat-summary-title {
      color: var(--text);
      font-size: 20px;
      font-weight: 900;
      letter-spacing: 0.3px;
      margin-bottom: 6px;
    }

    .chat-summary-copy {
      color: var(--text2);
      font-size: 13px;
      line-height: 1.55;
      max-width: 42ch;
    }

    .chat-summary-stats {
      display: flex;
      gap: 10px;
      align-items: stretch;
      flex-shrink: 0;
    }

    .chat-auth {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px 18px;
      border-radius: 18px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    }

    .chat-auth-kicker {
      color: rgba(0,165,80,0.8);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2.4px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .chat-auth-title {
      color: var(--text);
      font-size: 18px;
      font-weight: 900;
      letter-spacing: 0.2px;
      margin-bottom: 6px;
    }

    .chat-auth-copy {
      color: var(--text2);
      font-size: 13px;
      line-height: 1.55;
      max-width: 46ch;
    }

    .chat-auth-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .chat-auth-badge {
      flex-shrink: 0;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(0,165,80,0.22);
      background: rgba(0,165,80,0.09);
      color: #d9ffe8;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .chat-provider-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }

    .chat-provider-card {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
      background: var(--surface2);
    }

    .chat-provider-card.is-disabled {
      opacity: 0.82;
    }

    .chat-provider-card-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .chat-provider-card-head span {
      color: #fff;
      font-size: 14px;
      font-weight: 800;
    }

    .chat-provider-card-head small {
      color: var(--text2);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .chat-google-host {
      min-height: 42px;
      display: flex;
      align-items: center;
    }

    .chat-provider-copy {
      margin-top: 10px;
      color: var(--text2);
      font-size: 11px;
      line-height: 1.5;
    }

    .chat-provider-btn {
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      background: var(--surface);
      color: var(--text);
      text-align: left;
      cursor: pointer;
      transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
    }

    .chat-provider-btn:hover {
      border-color: rgba(0,165,80,0.28);
      background: rgba(0,165,80,0.07);
      transform: translateY(-1px);
    }

    .chat-provider-btn.is-disabled {
      opacity: 0.78;
    }

    .chat-provider-btn span {
      display: block;
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .chat-provider-btn small {
      display: block;
      color: var(--text2);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .chat-divider {
      position: relative;
      text-align: center;
      color: var(--text2);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.6px;
      text-transform: uppercase;
    }

    .chat-divider::before {
      content: '';
      position: absolute;
      inset: 50% 0 auto;
      border-top: 1px solid rgba(255,255,255,0.08);
      transform: translateY(-50%);
    }

    .chat-divider span {
      position: relative;
      display: inline-block;
      padding: 0 10px;
      background: var(--bg);
    }

    .chat-auth-form {
      display: grid;
      gap: 10px;
    }

    .chat-auth-form .chat-auth-input {
      min-width: 0;
    }

    .chat-auth-input[hidden] {
      display: none !important;
    }

    .chat-auth-actions {
      display: flex;
      align-items: stretch;
      gap: 10px;
      flex-wrap: wrap;
    }

    .chat-auth-note {
      color: var(--text2);
      font-size: 11px;
      line-height: 1.45;
    }

    .chat-auth-note.is-error,
    .chat-auth-note.is-success {
      max-width: none;
      padding: 8px 10px;
      border-radius: 8px;
      text-align: left;
      font-weight: 800;
    }

    .chat-auth-note.is-error {
      color: #ffd8d8;
      background: rgba(239,118,118,0.13);
      border: 1px solid rgba(239,118,118,0.35);
    }

    .chat-auth-note.is-success {
      color: #d5ffe5;
      background: rgba(0,165,80,0.13);
      border: 1px solid rgba(0,165,80,0.32);
    }

    .chat-auth-btn {
      border: none;
      border-radius: 999px;
      padding: 12px 18px;
      background: linear-gradient(135deg, #00a550, #0b7a3c);
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.2px;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
      box-shadow: 0 14px 28px rgba(0,165,80,0.25);
    }

    .chat-auth-btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
    }

    .chat-auth-btn:active {
      transform: translateY(0);
    }

    .chat-auth-btn-secondary {
      background: var(--surface2);
      border: 1px solid var(--border);
      box-shadow: none;
      color: var(--text);
    }

    .chat-auth-btn-ghost {
      background: transparent;
      border: 1px solid var(--border);
      box-shadow: none;
      color: var(--text);
    }

    .chat-auth-btn[hidden] {
      display: none;
    }

    .chat-stat {
      min-width: 74px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 3px;
      padding: 10px 12px;
      border-radius: 14px;
      background: var(--surface2);
      border: 1px solid var(--border);
      text-align: center;
    }

    .chat-stat span {
      color: var(--text);
      font-size: 20px;
      font-weight: 900;
      line-height: 1;
    }

    .chat-stat small {
      color: var(--text2);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.6px;
      text-transform: uppercase;
    }

    .chat-feed {
      flex: 1;
      min-height: 0;
      overflow: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-right: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(0, 165, 80, 0.34) transparent;
    }

    .chat-feed::-webkit-scrollbar {
      width: 8px;
    }

    .chat-feed::-webkit-scrollbar-thumb {
      background: rgba(0, 165, 80, 0.34);
      border-radius: 999px;
    }

    .chat-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 180px;
      border-radius: 18px;
      border: 1px dashed var(--green-border);
      background: var(--surface2);
      color: var(--text2);
      font-size: 13px;
      text-align: center;
      padding: 24px;
    }

    .chat-message {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .chat-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: linear-gradient(135deg, rgba(0,165,80,0.22), rgba(0,165,80,0.08));
      border: 1px solid rgba(0,165,80,0.28);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }

    .chat-message.system .chat-avatar {
      background: linear-gradient(135deg, rgba(0,165,80,0.3), rgba(0,165,80,0.12));
      color: #d9ffe8;
    }

    .chat-bubble {
      flex: 1;
      padding: 12px 14px;
      border-radius: 16px;
      background: var(--surface2);
      border: 1px solid var(--border);
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .chat-message.system .chat-bubble {
      background: rgba(0,165,80,0.07);
      border-color: rgba(0,165,80,0.16);
    }

    .chat-meta {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 6px;
    }

    .chat-meta-left {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .chat-name {
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
    }

    .chat-role {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1;
      padding: 3px 7px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text2);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.4px;
      text-transform: uppercase;
    }

    .chat-role.system {
      background: var(--green-dim);
      border-color: var(--green-border);
      color: #9ef0bc;
    }

    .chat-time {
      color: var(--text2);
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
    }

    .chat-text {
      color: var(--text);
      font-size: 13px;
      line-height: 1.65;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .chat-message-actions {
      display: inline-flex;
      gap: 4px;
      margin-left: 4px;
    }

    .chat-action-icon,
    .chat-action-label,
    .chat-action-count {
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .chat-action-icon {
      font-size: 12px;
      font-weight: 900;
    }

    .chat-action-count {
      min-width: 8px;
      justify-content: center;
      color: #6deba0;
      font-size: 10px;
      font-weight: 900;
    }

    .chat-message-action-btn,
    .chat-tool-btn {
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.03);
      color: var(--text2);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 8px;
      cursor: pointer;
    }

    .chat-message-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      line-height: 1.2;
    }

    .chat-message-action-btn:hover,
    .chat-tool-btn:hover {
      border-color: rgba(0,165,80,0.38);
      color: #6deba0;
      background: rgba(0,165,80,0.08);
    }

    .chat-media-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
      gap: 6px;
      margin-top: 8px;
    }

    .chat-media-link {
      position: relative;
      display: block;
      min-width: 0;
    }

    .chat-media-grid img {
      width: 100%;
      max-height: 190px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid rgba(212,234,217,0.12);
      background: rgba(0,0,0,0.22);
    }

    .chat-media-credit {
      position: absolute;
      right: 6px;
      bottom: 6px;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(0,0,0,0.58);
      color: #fff;
      font-size: 8px;
      font-weight: 900;
      letter-spacing: .4px;
      text-transform: uppercase;
      pointer-events: none;
    }

    .chat-user-badges {
      display: inline-flex;
      gap: 3px;
      margin-left: 4px;
      vertical-align: middle;
    }

    .chat-user-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      border: 1px solid currentColor;
      border-radius: 999px;
      padding: 1px 5px;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
      text-align: center;
      background: rgba(0,0,0,0.18);
    }

    .chat-user-badge-icon,
    .chat-user-badge-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      line-height: 1;
    }

    .chat-user-badge-label {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-meta-badges {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 3px;
      min-width: 0;
    }

    .chat-meta-badges .chat-user-badges,
    .chat-meta-badges .chat-rep-pill {
      margin-left: 0;
    }

    .chat-user-trigger {
      cursor: pointer;
      border-bottom: 1px dotted rgba(109,235,160,0.38);
      outline: none;
    }

    .chat-user-trigger:hover,
    .chat-user-trigger:focus-visible {
      filter: brightness(1.16);
      border-bottom-color: rgba(255,211,106,0.7);
    }

    .chat-rep-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      margin-left: 4px;
      border: 1px solid rgba(109,235,160,0.28);
      border-radius: 999px;
      padding: 1px 6px;
      color: #9ee8ba;
      background: rgba(20,179,98,0.08);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: .2px;
      line-height: 1;
      text-align: center;
      vertical-align: middle;
      white-space: nowrap;
    }

    .chat-rep-pill.rising { color: #b9dfc6; border-color: rgba(185,223,198,0.28); background: rgba(185,223,198,0.06); }
    .chat-rep-pill.clean { color: #6deba0; border-color: rgba(109,235,160,0.34); background: rgba(20,179,98,0.10); }
    .chat-rep-pill.trusted { color: #ffd36a; border-color: rgba(255,211,106,0.38); background: rgba(255,211,106,0.08); }
    .chat-rep-pill.legend { color: #ffffff; border-color: rgba(255,211,106,0.52); background: linear-gradient(135deg, rgba(20,179,98,0.18), rgba(255,211,106,0.14)); }

    .chat-user-card-head {
      display: grid;
      grid-template-columns: 48px 1fr;
      gap: 10px;
      align-items: center;
    }

    .chat-user-card-avatar {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 17px;
      font-weight: 900;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px rgba(0,0,0,0.28);
    }

    .chat-user-stat-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }

    .chat-user-stat {
      border: 1px solid rgba(212,234,217,0.08);
      border-radius: 8px;
      padding: 8px 7px;
      background: rgba(255,255,255,0.035);
    }

    .chat-user-stat strong {
      display: block;
      color: #f4ffe9;
      font-size: 14px;
      line-height: 1;
    }

    .chat-user-stat span {
      display: block;
      margin-top: 4px;
      color: var(--text2);
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .chat-tool-row,
    .chat-sticker-tray,
    .chat-media-preview {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }

    .chat-sticker-tray[hidden],
    .chat-media-preview:empty {
      display: none;
    }

    .chat-tool-row {
      position: relative;
    }

    .chat-sticker-btn {
      min-width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid rgba(212,234,217,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      cursor: pointer;
      font-weight: 900;
    }

    .chat-tool-btn.chat-icon-tool {
      min-width: 36px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 4px 10px;
      font-size: 16px;
      line-height: 1;
    }

    .chat-tool-btn .chat-tool-label {
      font-size: 10px;
      letter-spacing: .4px;
      text-transform: uppercase;
    }

    .chat-sticker-tray.chat-emoji-panel {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      width: min(420px, 100%);
      padding: 10px;
      border: 1px solid rgba(0,165,80,0.24);
      border-radius: 16px;
      background:
        radial-gradient(circle at 20% 0%, rgba(20,179,98,0.22), transparent 34%),
        linear-gradient(180deg, rgba(7,24,13,0.98), rgba(3,10,6,0.98));
      box-shadow: 0 18px 44px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    }

    .chat-emoji-tabs {
      display: flex;
      gap: 5px;
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 2px;
    }

    .chat-emoji-tabs::-webkit-scrollbar {
      display: none;
    }

    .chat-emoji-tab {
      width: 34px;
      height: 30px;
      flex: 0 0 auto;
      border: 1px solid rgba(212,234,217,0.1);
      border-radius: 999px;
      background: rgba(255,255,255,0.04);
      color: var(--text2);
      cursor: pointer;
      font-size: 15px;
    }

    .chat-emoji-tab.active {
      border-color: rgba(20,179,98,0.55);
      background: rgba(20,179,98,0.18);
      color: #fff;
      box-shadow: 0 0 18px rgba(20,179,98,0.18);
    }

    .chat-emoji-grid {
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      gap: 5px;
      max-height: 178px;
      overflow-y: auto;
      padding-right: 2px;
    }

    .chat-emoji-grid .chat-sticker-btn {
      width: 100%;
      min-width: 0;
      height: 36px;
      border-radius: 10px;
      font-size: 20px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }

    .chat-emoji-grid .chat-sticker-btn:hover {
      transform: translateY(-1px) scale(1.04);
      border-color: rgba(20,179,98,0.42);
      background: rgba(20,179,98,0.14);
    }

    .chat-emoji-hint {
      color: rgba(212,234,217,0.56);
      font-size: 10px;
      line-height: 1.35;
    }

    .chat-gif-panel {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: min(520px, 100%);
      padding: 10px;
      border: 1px solid rgba(0,165,80,0.24);
      border-radius: 16px;
      background:
        radial-gradient(circle at 20% 0%, rgba(20,179,98,0.18), transparent 34%),
        linear-gradient(180deg, rgba(7,24,13,0.98), rgba(3,10,6,0.98));
      box-shadow: 0 18px 44px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    }

    .chat-gif-panel[hidden] {
      display: none;
    }

    .chat-gif-search {
      display: flex;
      gap: 6px;
    }

    .chat-gif-search input {
      flex: 1;
      min-width: 0;
      border: 1px solid rgba(212,234,217,0.12);
      border-radius: 12px;
      background: rgba(0,0,0,0.22);
      color: var(--text);
      padding: 8px 10px;
      font-size: 13px;
      outline: none;
    }

    .chat-gif-search button {
      border: 1px solid rgba(0,165,80,0.28);
      border-radius: 12px;
      background: rgba(0,165,80,0.12);
      color: #6deba0;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .4px;
      padding: 0 12px;
      cursor: pointer;
      text-transform: uppercase;
    }

    .chat-gif-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      max-height: 240px;
      overflow-y: auto;
      padding-right: 2px;
    }

    .chat-gif-item {
      position: relative;
      aspect-ratio: 1;
      border: 1px solid rgba(212,234,217,0.1);
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255,255,255,0.04);
      cursor: pointer;
      padding: 0;
    }

    .chat-gif-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .chat-gif-item:hover {
      border-color: rgba(20,179,98,0.46);
      transform: translateY(-1px);
    }

    .chat-gif-foot {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      color: rgba(212,234,217,0.56);
      font-size: 10px;
      line-height: 1.35;
    }

    .chat-gif-credit {
      color: #6deba0;
      font-weight: 900;
      letter-spacing: .4px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .chat-media-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(0,165,80,0.2);
      border-radius: 999px;
      padding: 4px 8px;
      color: var(--text2);
      font-size: 11px;
      background: rgba(0,165,80,0.06);
    }

    .chat-media-chip img {
      width: 26px;
      height: 26px;
      object-fit: cover;
      border-radius: 7px;
      border: 1px solid rgba(212,234,217,0.12);
    }

    .chat-media-chip button {
      border: none;
      background: none;
      color: #e87070;
      cursor: pointer;
      font-weight: 900;
    }

    #chat-thread-panel {
      position: absolute;
      right: 10px;
      bottom: 10px;
      z-index: 180;
      width: min(360px, calc(100% - 20px));
      max-height: min(520px, calc(100% - 20px));
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0,165,80,0.25);
      border-radius: 12px;
      background: linear-gradient(180deg,#07160c,#040e08);
      box-shadow: 0 16px 42px rgba(0,0,0,0.55);
      overflow: hidden;
    }

    #chat-thread-panel[hidden] { display: none !important; }

    .chat-thread-body {
      overflow: auto;
      padding: 10px;
      display: grid;
      gap: 8px;
    }

    .chat-feed-wrap {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }

    @media (max-width: 600px) {
      #modal-body:has(#chat-shell) {
        padding: 8px;
        overflow: hidden;
      }

      .chat-shell {
        height: calc(100dvh - var(--header-h) - var(--nav-h) - 18px);
        min-height: 0;
        gap: 8px;
      }

      .chat-widget-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        border-radius: 10px;
      }

      .chat-widget-header-left {
        min-width: 0;
      }

      .chat-widget-icon {
        width: 32px;
        height: 32px;
      }

      .chat-widget-title {
        font-size: 13px;
      }

      .chat-widget-header-right {
        width: 100%;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
      }

      .chat-widget-header-right::-webkit-scrollbar,
      .chat-channel-bar::-webkit-scrollbar {
        display: none;
      }

      .chat-stat-pill,
      .chat-widget-badge,
      .chat-tool-btn,
      .profile-btn,
      .chat-widget-logout {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
      }

      .chat-channel-bar {
        min-height: 34px;
        padding: 4px 6px;
        gap: 4px;
        flex-shrink: 0;
      }

      .chat-channel-item {
        padding: 5px 8px;
        font-size: 11px;
      }

      .chat-engagement-wrap {
        padding: 0;
        max-height: 150px;
        overflow-y: auto;
      }

      .chat-feed-wrap {
        min-height: 0;
        flex: 1 1 auto;
      }

      .chat-feed {
        flex: 1 1 auto;
        min-height: 0;
        padding: 10px 8px;
        border-radius: 10px;
      }

      .chat-bubble {
        max-width: 88%;
      }

      .chat-bubble-card {
        padding: 8px 10px;
      }

      .chat-reactions {
        opacity: 1;
        pointer-events: auto;
        flex-wrap: wrap;
      }

      .chat-composer {
        flex-shrink: 0;
        gap: 7px;
        padding: 9px;
        border-radius: 10px;
      }

      .chat-composer-inner .chat-message-input {
        height: 40px;
        font-size: 13px;
      }

      .chat-composer-inner .chat-send {
        width: 40px;
        height: 40px;
      }

      .chat-tool-row,
      .chat-sticker-tray,
      .chat-media-preview {
        gap: 5px;
      }

      .chat-sticker-btn {
        min-width: 28px;
        height: 28px;
      }

      .chat-guest-bar {
        padding: 8px 10px;
        gap: 8px;
        flex-shrink: 0;
      }

      .chat-guest-label {
        font-size: 10px;
      }

      #chat-thread-panel,
      #chat-profile-panel {
        inset: 8px;
        width: auto;
        max-height: none;
      }
    }

    .chat-composer {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(5, 14, 8, 0.92);
      border: 1px solid rgba(0,165,80,0.22);
      box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    }

    .chat-composer.is-locked {
      border-color: rgba(255,255,255,0.08);
      background: rgba(10, 14, 11, 0.9);
    }

    .chat-composer.is-locked .chat-message-input {
      border-color: var(--border);
      background: var(--surface2);
      color: var(--text2);
      cursor: not-allowed;
    }

    .chat-auth-input,
    .chat-message-input {
      width: 100%;
      border: 1px solid var(--green-border);
      border-radius: 12px;
      background: var(--surface2);
      color: var(--text);
      font: inherit;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .chat-auth-input {
      padding: 11px 12px;
    }

    .chat-message-input {
      min-height: 88px;
      padding: 12px;
      resize: vertical;
    }

    .chat-auth-input:focus,
    .chat-message-input:focus {
      border-color: rgba(0,165,80,0.5);
      box-shadow: 0 0 0 3px rgba(0,165,80,0.12);
    }

    .chat-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .chat-note {
      color: var(--text2);
      font-size: 11px;
      line-height: 1.45;
      flex: 1;
    }

    .chat-send {
      border: none;
      border-radius: 999px;
      padding: 12px 18px;
      background: linear-gradient(135deg, #00a550, #0b7a3c);
      color: #fff;
      font-size: 0;
      font-weight: 900;
      line-height: 0;
      letter-spacing: 0.4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      white-space: nowrap;
      box-shadow: 0 12px 26px rgba(0,165,80,0.18);
      transition: transform 0.15s ease, filter 0.15s ease;
    }

    .chat-send svg {
      width: 24px;
      height: 24px;
      display: block;
      flex: 0 0 auto;
      color: #fff;
    }

    .chat-send:hover {
      filter: brightness(1.05);
    }

    .chat-send:active {
      transform: scale(0.97);
    }

    .chat-send:disabled {
      opacity: 0.72;
      cursor: wait;
      filter: saturate(0.85);
    }

    /* ── Modern Chat Bubble Styles ── */
    .chat-shell {
      gap: 12px;
      color: var(--text);
    }

    .chat-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(0,165,80,0.10), var(--surface));
      border: 1px solid var(--green-border);
      box-shadow: 0 12px 28px rgba(0,0,0,0.24);
    }

    .chat-summary-side {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .chat-summary-kicker,
    .chat-auth-kicker {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 2px;
      margin-bottom: 4px;
    }

    .chat-summary-title,
    .chat-auth-title {
      font-size: 18px;
      font-weight: 900;
      letter-spacing: 0.2px;
      margin-bottom: 4px;
    }

    .chat-auth-title {
      font-size: 16px;
    }

    .chat-summary-copy,
    .chat-auth-copy {
      font-size: 12px;
      line-height: 1.5;
      max-width: 54ch;
    }

    .chat-summary-stats {
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .chat-auth-inline {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      min-width: 220px;
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface2);
    }

    .chat-auth-inline.is-disabled {
      opacity: 0.78;
    }

    .chat-auth-inline .chat-auth-badge {
      padding: 5px 10px;
      font-size: 10px;
    }

    .chat-google-host {
      min-height: 42px;
      width: 100%;
      justify-content: flex-end;
    }

    .chat-google-note {
      color: var(--text2);
      font-size: 10px;
      line-height: 1.4;
      text-align: right;
      max-width: 28ch;
    }

    .chat-auth {
      gap: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .chat-auth[hidden] {
      display: none !important;
    }

    .chat-auth-head {
      gap: 12px;
    }

    .chat-auth-badge {
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(0,165,80,0.22);
      background: rgba(0,165,80,0.09);
      color: #d9ffe8;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .chat-auth-form {
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
      gap: 8px;
    }

    .chat-auth-form .chat-auth-input {
      min-width: 0;
    }

    .chat-auth-actions {
      gap: 8px;
      justify-content: flex-end;
    }

    .chat-auth-note {
      color: var(--text2);
      font-size: 10px;
      line-height: 1.45;
      text-align: right;
      max-width: 30ch;
    }

    .chat-auth-note.is-error,
    .chat-auth-note.is-success {
      max-width: none;
      text-align: left;
    }

    .chat-auth-btn {
      padding: 10px 16px;
      font-size: 12px;
      white-space: nowrap;
    }

    .chat-stat {
      min-width: 64px;
      gap: 2px;
      padding: 8px 10px;
      border-radius: 12px;
    }

    .chat-stat span {
      font-size: 17px;
    }

    .chat-stat small {
      font-size: 9px;
      letter-spacing: 1.4px;
    }

    .chat-feed {
      gap: 10px;
      padding: 14px 12px;
      border-radius: 14px;
      background: var(--surface2);
      border: 1px solid var(--green-border);
    }

    /* ── Message bubbles ── */
    .chat-message {
      display: flex;
      gap: 8px;
      align-items: flex-end;
      padding: 0;
      border: none;
      background: none;
      transition: none;
    }

    .chat-message:hover {
      background: none;
      border-color: transparent;
    }

    .chat-message.system {
      background: none;
      border-color: transparent;
    }

    .chat-message.system:hover {
      border-color: transparent;
    }

    .chat-msg-avatar {
      width: 30px;
      min-width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      color: rgba(255,255,255,0.9);
      letter-spacing: 0.5px;
      text-transform: uppercase;
      flex-shrink: 0;
      align-self: flex-end;
    }

    .chat-message.mine .chat-msg-avatar { display: none; }

    .chat-bubble {
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: min(75%, 360px);
    }

    .chat-message.mine .chat-bubble {
      align-items: flex-end;
      margin-left: auto;
    }

    .chat-bubble-card {
      padding: 9px 12px 8px;
      border-radius: 16px 16px 16px 4px;
      background: var(--surface);
      border: 1px solid var(--border);
    }

    .chat-message.mine .chat-bubble-card {
      background: rgba(0,165,80,0.14);
      border-color: rgba(0,165,80,0.28);
      border-radius: 16px 16px 4px 16px;
    }

    .chat-message.system .chat-bubble-card {
      background: rgba(0,165,80,0.07);
      border-color: rgba(0,165,80,0.18);
      border-radius: 12px;
    }

    .chat-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 4px;
    }

    .chat-message.mine .chat-meta { justify-content: flex-end; }

    .chat-meta-left {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
    }

    .chat-name {
      font-size: 12px;
      font-weight: 800;
    }

    .chat-message.mine .chat-name { display: none; }

    .chat-role {
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text2);
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .chat-role.system {
      background: var(--green-dim);
      border-color: var(--green-border);
      color: #9ef0bc;
    }

    .chat-time {
      color: var(--text2);
      font-size: 10px;
      font-weight: 600;
      white-space: nowrap;
      flex-shrink: 0;
      margin-left: auto;
    }

    .chat-message.mine .chat-time {
      margin-left: 0;
      order: -1;
    }

    .chat-text {
      font-size: 13px;
      color: var(--text);
      line-height: 1.6;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .chat-message.mine .chat-text { color: #e2f5e9; }
    .chat-message.system .chat-text { color: #d2f0d9; }

    /* ── Vote Reactions ── */
    .chat-reactions {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      opacity: 0;
      transition: opacity 0.18s;
      pointer-events: none;
    }

    .chat-message:hover .chat-reactions,
    .chat-message:focus-within .chat-reactions {
      opacity: 1;
      pointer-events: auto;
    }

    @media (hover: none) {
      .chat-reactions { opacity: 1; pointer-events: auto; }
    }

    .chat-vote-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 9px 3px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text2);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.18s ease;
      line-height: 1.4;
      user-select: none;
    }

    .chat-vote-icon {
      font-size: 12px;
      display: inline-block;
      transition: transform 0.2s ease;
      line-height: 1;
    }

    .chat-vote-btn:hover .chat-vote-icon {
      transform: scale(1.3);
    }

    .chat-vote-btn.is-popping .chat-vote-icon,
    .chat-sticker-btn.is-popping {
      animation: chat-tap-pop .26s ease-out;
    }

    @keyframes chat-tap-pop {
      0% { transform: scale(1); }
      45% { transform: scale(1.28); }
      100% { transform: scale(1); }
    }

    .chat-vote-up:hover {
      border-color: rgba(0, 180, 90, 0.45);
      background: rgba(0, 180, 90, 0.08);
      color: #6deba0;
    }

    .chat-vote-up.voted {
      border-color: rgba(0, 165, 80, 0.55);
      background: rgba(0, 165, 80, 0.12);
      color: #6deba0;
    }

    .chat-vote-down:hover {
      border-color: rgba(255, 130, 60, 0.45);
      background: rgba(255, 130, 60, 0.07);
      color: #ffaa70;
    }

    .chat-vote-down.voted {
      border-color: rgba(255, 130, 60, 0.5);
      background: rgba(255, 130, 60, 0.1);
      color: #ffaa70;
    }

    .chat-vote-btn.voted .chat-vote-icon {
      transform: scale(1.1);
    }

    @keyframes vote-pop {
      0%   { transform: scale(1); }
      40%  { transform: scale(1.55); }
      100% { transform: scale(1.1); }
    }

    .chat-vote-btn.just-voted .chat-vote-icon {
      animation: vote-pop 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    }

    .chat-vote-count {
      font-size: 11px;
      min-width: 4px;
    }

    /* ── Pinned message ── */
    .chat-pinned {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 9px 12px;
      border-radius: 12px;
      background: rgba(0,165,80,0.08);
      border: 1px solid rgba(0,165,80,0.28);
    }

    .chat-pinned-icon {
      font-size: 13px;
      flex-shrink: 0;
      opacity: 0.85;
      margin-top: 1px;
    }

    .chat-pinned-label {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(0,165,80,0.85);
      margin-bottom: 3px;
    }

    .chat-pinned-text {
      font-size: 13px;
      color: #d4ead9;
      line-height: 1.5;
      word-break: break-word;
    }

    /* ── Mentions ── */
    .chat-mention {
      color: #4fd98b;
      font-weight: 800;
    }

    /* ── Quote block ── */
    .chat-quote {
      border-left: 2px solid rgba(0,165,80,0.45);
      padding: 3px 10px;
      margin-bottom: 5px;
      color: var(--text2);
      font-size: 12px;
      line-height: 1.5;
      border-radius: 0 6px 6px 0;
      background: rgba(0,165,80,0.05);
    }

    /* ── Reply button ── */
    .chat-message-reply,
    .chat-inline-reply {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 10px;
      margin-bottom: 8px;
      border-radius: 12px;
      border: 1px solid rgba(0,165,80,0.22);
      background: rgba(0,165,80,0.08);
    }

    .chat-inline-reply[hidden] {
      display: none !important;
    }

    .chat-message-reply {
      padding: 7px 10px;
      margin-bottom: 8px;
      background: rgba(0,165,80,0.06);
    }

    .chat-message-reply-body,
    .chat-inline-reply-body {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .chat-message-reply-label,
    .chat-inline-reply-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: rgba(109,235,160,0.9);
    }

    .chat-message-reply-name,
    .chat-inline-reply-name {
      color: #e7f8ec;
    }

    .chat-message-reply-text,
    .chat-inline-reply-text {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.45;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-inline-reply-close {
      width: 28px;
      height: 28px;
      border: 1px solid rgba(0,165,80,0.22);
      border-radius: 999px;
      background: rgba(255,255,255,0.02);
      color: var(--text2);
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      flex-shrink: 0;
      transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .chat-inline-reply-close:hover {
      border-color: rgba(0,165,80,0.35);
      background: rgba(0,165,80,0.08);
      color: #6deba0;
    }

    .chat-reply-btn {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 9px 3px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text2);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
      margin-left: 4px;
    }

    .chat-reply-btn:hover {
      border-color: rgba(0,165,80,0.35);
      background: rgba(0,165,80,0.07);
      color: #6deba0;
    }

    /* ── Composer ── */
    .chat-composer {
      gap: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      background: var(--surface);
      border: 1px solid var(--green-border);
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    .chat-composer.is-locked {
      border-color: var(--border);
      background: var(--surface2);
    }

    .chat-composer.is-locked .chat-message-input {
      border-color: var(--border);
      background: var(--surface2);
      color: var(--text2);
      cursor: not-allowed;
    }

    .chat-auth-input,
    .chat-message-input {
      border-radius: 10px;
      background: var(--surface2);
      border: 1px solid var(--green-border);
      color: var(--text);
    }

    .chat-auth-input {
      padding: 10px 12px;
    }

    .chat-message-input {
      min-height: 40px;
      padding: 10px 12px;
      resize: none;
      line-height: 1.4;
    }

    .chat-actions {
      gap: 10px;
    }

    .chat-note {
      color: var(--text2);
      font-size: 10px;
      line-height: 1.4;
      flex: 1;
    }

    .chat-send {
      padding: 10px 16px;
      font-size: 0;
      line-height: 0;
      box-shadow: 0 12px 26px rgba(20,179,98,0.18);
    }

    @media (max-width: 600px) {
      .chat-summary {
        grid-template-columns: 1fr;
      }

      .chat-summary-copy {
        max-width: none;
      }

      .chat-summary-side {
        align-items: stretch;
      }

      .chat-summary-stats {
        width: 100%;
        justify-content: flex-start;
      }

      .chat-stat {
        flex: 1;
        min-width: 0;
      }

      .chat-provider-grid {
        grid-template-columns: 1fr;
      }

      .chat-auth-head {
        flex-direction: column;
      }

      .chat-auth-form {
        grid-template-columns: 1fr;
      }

      .chat-auth-actions,
      .chat-auth-btn {
        width: 100%;
      }

      .chat-auth-note {
        text-align: left;
        max-width: none;
      }

      .chat-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .chat-send {
        width: 100%;
      }
    }

    /* ── MODERN CHAT WIDGET ── */
    .chat-widget-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(0,165,80,0.14), rgba(6,15,10,0.97));
      border: 1px solid rgba(0,165,80,0.25);
    }
    .chat-widget-header-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1 1 auto;
      min-width: 0;
    }
    .chat-widget-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(0,165,80,0.18);
      border: 1px solid rgba(0,165,80,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }
    .chat-widget-title {
      font-size: 15px;
      font-weight: 900;
      color: var(--text);
      letter-spacing: 0.3px;
    }
    .chat-widget-sub {
      font-size: 11px;
      color: var(--text2);
      margin-top: 1px;
    }
    .chat-widget-header-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .chat-stat-pill {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text2);
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface2);
      font: inherit;
      cursor: pointer;
    }
    .chat-hall-shortcut {
      margin-left: auto;
      border: 1px solid rgba(247,201,72,0.34);
      border-radius: 999px;
      background: rgba(247,201,72,0.10);
      color: #ffe8a1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 30px;
      padding: 5px 10px;
      font: inherit;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .chat-hall-shortcut .site-icon-img {
      width: 14px;
      height: 14px;
    }

    .chat-stat-pill:hover,
    .chat-stat-pill:focus-visible,
    .chat-hall-shortcut:hover,
    .chat-hall-shortcut:focus-visible,
    .chat-widget-badge:hover,
    .chat-widget-badge:focus-visible,
    .chat-xp-wrap[role="button"]:hover,
    .chat-xp-wrap[role="button"]:focus-visible {
      outline: none;
      border-color: rgba(20,179,98,0.42);
      background: rgba(20,179,98,0.12);
    }
    .chat-stat-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #00c85a;
      box-shadow: 0 0 6px rgba(0,200,90,0.7);
      animation: pulse-dot 2s infinite;
    }
    @keyframes pulse-dot {
      0%,100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    .chat-widget-badge {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0,165,80,0.22);
      background: rgba(0,165,80,0.09);
      color: #d9ffe8;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      max-width: 132px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-protection-badge {
      border-color: rgba(247,201,72,0.35);
      background: rgba(247,201,72,0.14);
      color: #ffe8a1;
    }
    .chat-widget-logout {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 4px 12px;
      color: var(--text2);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: color .15s, border-color .15s;
    }
    .chat-widget-logout:hover {
      color: var(--text);
      border-color: rgba(0,165,80,0.3);
    }
    .chat-auth-compact-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: rgba(0,165,80,0.8);
      margin-bottom: 10px;
    }
    .chat-auth-compact {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      align-items: stretch;
    }
    .chat-auth-compact-actions {
      display: flex;
      gap: 6px;
      grid-column: 1 / -1;
    }
    .chat-composer-inner {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .chat-composer-inner .chat-message-input {
      flex: 1;
      min-height: unset;
      height: 44px;
      resize: none;
      padding: 10px 14px;
    }
    .chat-composer-inner .chat-send {
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    @media (max-width: 600px) {
      .chat-auth-compact {
        grid-template-columns: 1fr;
      }
      .chat-auth-compact-actions {
        grid-column: 1 / -1;
      }
      .chat-widget-sub { display: none; }
    }

    /* ══════════════════════════════════════════
       GAMIFICATION — Chat G13 Experience System
       ══════════════════════════════════════════ */

    /* ── Chat background ── */
    .chat-feed { position: relative; }

    /* ── Floating particles ── */
    #chat-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      border-radius: inherit;
      z-index: 0;
    }
    .chat-particle {
      position: absolute;
      font-size: 14px;
      opacity: 0;
      animation: particle-rise linear infinite;
      user-select: none;
    }
    @keyframes particle-rise {
      0%   { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
      10%  { opacity: 0.55; }
      90%  { opacity: 0.35; }
      100% { transform: translateY(-420px) scale(1.1) rotate(30deg); opacity: 0; }
    }

    /* ── Avatar frames ── */
    .chat-msg-avatar { position: relative; transition: box-shadow .25s; }
    .chat-msg-avatar.frame-green,
    .profile-avatar-big.frame-green,
    .profile-character-avatar.frame-green,
    .chat-user-card-avatar.frame-green { box-shadow: 0 0 0 2px #00c85a, 0 0 12px rgba(0,200,90,0.5); }
    .chat-msg-avatar.frame-gold,
    .profile-avatar-big.frame-gold,
    .profile-character-avatar.frame-gold,
    .chat-user-card-avatar.frame-gold { box-shadow: 0 0 0 2px #ffd700, 0 0 14px rgba(255,215,0,0.55); }
    .chat-msg-avatar.frame-gate13,
    .profile-avatar-big.frame-gate13,
    .profile-character-avatar.frame-gate13,
    .chat-user-card-avatar.frame-gate13 { box-shadow: 0 0 0 2px #00a550, 0 0 0 4px rgba(0,165,80,0.35), 0 0 18px rgba(0,165,80,0.6); }
    .chat-msg-avatar.frame-diamond,
    .profile-avatar-big.frame-diamond,
    .profile-character-avatar.frame-diamond,
    .chat-user-card-avatar.frame-diamond {
      box-shadow: 0 0 0 2px #a8f0ff, 0 0 14px rgba(168,240,255,0.6);
      animation: frame-diamond-pulse 3s ease-in-out infinite;
    }
    .chat-msg-avatar.frame-phantom,
    .profile-avatar-big.frame-phantom,
    .profile-character-avatar.frame-phantom,
    .chat-user-card-avatar.frame-phantom { animation: frame-phantom 4s ease-in-out infinite; }
    @keyframes frame-diamond-pulse {
      0%,100% { box-shadow: 0 0 0 2px #a8f0ff, 0 0 14px rgba(168,240,255,0.6); }
      50%     { box-shadow: 0 0 0 2px #e0faff, 0 0 24px rgba(168,240,255,0.9); }
    }
    @keyframes frame-phantom {
      0%,100% { box-shadow: 0 0 0 2px #9b59b6, 0 0 16px rgba(155,89,182,0.7), 0 0 30px rgba(155,89,182,0.3); }
      50%     { box-shadow: 0 0 0 2px #d2b4de, 0 0 20px rgba(210,180,222,0.9), 0 0 40px rgba(155,89,182,0.5); }
    }
    @keyframes frame-rainbow {
      0%   { box-shadow: 0 0 0 2px #ff4040, 0 0 12px rgba(255,64,64,0.5); }
      17%  { box-shadow: 0 0 0 2px #ff9900, 0 0 12px rgba(255,153,0,0.5); }
      33%  { box-shadow: 0 0 0 2px #ffe800, 0 0 12px rgba(255,232,0,0.5); }
      50%  { box-shadow: 0 0 0 2px #00c85a, 0 0 12px rgba(0,200,90,0.5); }
      67%  { box-shadow: 0 0 0 2px #00aaff, 0 0 12px rgba(0,170,255,0.5); }
      83%  { box-shadow: 0 0 0 2px #a855f7, 0 0 12px rgba(168,85,247,0.5); }
      100% { box-shadow: 0 0 0 2px #ff4040, 0 0 12px rgba(255,64,64,0.5); }
    }

    /* ── Level badge on avatar ── */
    .chat-level-badge {
      position: absolute;
      bottom: -3px;
      right: -3px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: linear-gradient(135deg, #00a550, #004d22);
      border: 1.5px solid #040c07;
      color: #fff;
      font-size: 7px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      letter-spacing: 0;
      line-height: 1;
      z-index: 2;
    }
    .chat-level-badge.lv5  { background: linear-gradient(135deg, #00c85a, #007030); }
    .chat-level-badge.lv7  { background: linear-gradient(135deg, #ffd700, #b8860b); color: #1a0; }
    .chat-level-badge.lv9  { background: linear-gradient(135deg, #a8f0ff, #0099cc); color: #004; }
    .chat-level-badge.lv10 { background: linear-gradient(135deg, #ff4488, #a855f7, #00c8ff); animation: lvmax-glow 2s linear infinite; }
    @keyframes lvmax-glow {
      0%,100% { box-shadow: 0 0 4px #ff4488; }
      33%     { box-shadow: 0 0 4px #a855f7; }
      66%     { box-shadow: 0 0 4px #00c8ff; }
    }

    /* ── Name colors ── */
    .chat-name.nc-green   { color: #00ff88 !important; }
    .chat-name.nc-gold    { color: #ffd700 !important; text-shadow: 0 0 8px rgba(255,215,0,0.4); }
    .chat-name.nc-fire    { background: linear-gradient(90deg, #ff6a00, #ee0979); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .chat-name.nc-ice     { background: linear-gradient(90deg, #4facfe, #00f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .chat-name.nc-cosmic { background: linear-gradient(90deg, #a855f7, #6366f1, #06b6d4, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200%; animation: nc-cosmic-shift 4s linear infinite; }
    @keyframes nc-cosmic-shift { 0% { background-position: 0% } 100% { background-position: 200% } }

    /* ── Most liked message ── */
    .chat-message.top-liked .chat-bubble-card {
      border-color: rgba(255,215,0,0.6) !important;
      box-shadow: 0 0 0 1px rgba(255,215,0,0.25), 0 0 18px rgba(255,215,0,0.18);
      background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(6,15,10,0.9)) !important;
    }
    .chat-message.top-liked .chat-bubble-card::before {
      content: '🏆';
      position: absolute;
      top: -8px;
      right: 8px;
      font-size: 14px;
    }
    .chat-bubble-card { position: relative; }

    /* ── Message slide-in animation ── */
    @keyframes msg-in {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .chat-message { animation: msg-in .22s ease-out both; }
    .chat-send.is-sending svg {
      opacity: 0.72;
      transform: translateX(1px);
    }

    /* ── Scene backgrounds (user's own messages) ── */
    .chat-message.mine.scene-g13bg    .chat-bubble-card { background-image: url('/G13BG.jpg'); background-size: cover; background-position: center; }
    .chat-message.mine.scene-pg13bg   .chat-bubble-card { background-image: url('/PG13BG.jpg'); background-size: cover; background-position: center; }
    .chat-message.mine.scene-g13bg    .chat-bubble-card,
    .chat-message.mine.scene-pg13bg   .chat-bubble-card { position: relative; overflow: hidden; }
    .chat-message.mine.scene-g13bg    .chat-bubble-card::after,
    .chat-message.mine.scene-pg13bg   .chat-bubble-card::after { content:''; position:absolute; inset:0; background:rgba(3,10,6,0.7); }
    .chat-message.mine.scene-g13bg    .chat-text,
    .chat-message.mine.scene-pg13bg   .chat-text { position: relative; z-index: 1; }
    .chat-message.mine.scene-forest   .chat-bubble-card { background: linear-gradient(135deg, rgba(0,60,20,0.9), rgba(0,30,10,0.95)); border-color: rgba(0,165,80,0.4); }
    .chat-message.mine.scene-midnight .chat-bubble-card { background: linear-gradient(135deg, rgba(5,5,30,0.95), rgba(10,10,50,0.9)); border-color: rgba(100,100,255,0.3); }
    .chat-message.mine.scene-galaxy   .chat-bubble-card { background: radial-gradient(ellipse at 30% 30%, rgba(168,85,247,0.25), transparent), linear-gradient(135deg, rgba(5,5,25,0.97), rgba(20,5,40,0.95)); border-color: rgba(168,85,247,0.35); }

    /* ── XP bar in header ── */
    .chat-xp-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 132px;
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 3px 5px;
      cursor: pointer;
    }
    .chat-xp-label {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: rgba(0,200,90,0.85);
      display: flex;
      justify-content: space-between;
      gap: 8px;
    }
    .chat-xp-side {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }
    .chat-xp-bar {
      height: 5px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }
    .chat-xp-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #00a550, #00ff88);
      transition: width .6s ease;
      box-shadow: 0 0 8px rgba(0,200,90,0.6);
    }

    /* ── Profile panel ── */
    #chat-profile-panel {
      position: absolute;
      inset: 0;
      z-index: 100;
      background: linear-gradient(180deg, rgba(3,10,6,0.98) 0%, rgba(5,14,9,0.99) 100%);
      border-radius: 14px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #chat-profile-panel[hidden] { display: none !important; }
    .profile-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(0,165,80,0.2);
      background: linear-gradient(135deg, rgba(0,165,80,0.12), transparent);
      flex-shrink: 0;
    }
    .profile-panel-title {
      font-size: 13px;
      font-weight: 900;
      color: #00c85a;
      letter-spacing: 0.5px;
    }
    .profile-panel-close {
      width: 28px; height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(0,165,80,0.25);
      background: rgba(255,255,255,0.03);
      color: var(--text2);
      font-size: 16px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
    }
    .profile-panel-close:hover { border-color: rgba(0,165,80,0.4); color: #6deba0; }
    .profile-panel-body {
      flex: 1;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      scrollbar-width: thin;
      scrollbar-color: rgba(0,165,80,0.3) transparent;
    }
    .profile-user-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(0,165,80,0.06);
      border: 1px solid rgba(0,165,80,0.18);
    }
    .profile-avatar-big {
      width: 48px; height: 48px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 900;
      color: #fff;
      flex-shrink: 0;
    }
    .profile-user-info { min-width: 0; }
    .profile-username { font-size: 15px; font-weight: 900; color: var(--text); }
    .profile-level-title { font-size: 11px; color: #00c85a; font-weight: 700; margin-top: 2px; }
    .profile-xp-wrap { margin-top: 6px; }
    .profile-section-title {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(0,165,80,0.75);
      margin-bottom: 8px;
    }
    .profile-items-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
      gap: 8px;
    }
    .profile-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      padding: 10px 6px 8px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: inherit;
      font: inherit;
      cursor: pointer;
      transition: all .18s;
      text-align: center;
      appearance: none;
      width: 100%;
      min-height: 92px;
    }
    button.profile-item:disabled { pointer-events: none; }
    .profile-item:not(.locked):hover { border-color: rgba(0,165,80,0.4); background: rgba(0,165,80,0.08); }
    .profile-item.active { border-color: #00a550; background: rgba(0,165,80,0.14); box-shadow: 0 0 12px rgba(0,165,80,0.2); }
    .profile-item.shop { border-color: rgba(255, 211, 106, 0.36); background: rgba(255, 211, 106, 0.06); }
    .profile-item.locked { opacity: 0.45; cursor: not-allowed; }
    .profile-item-preview { font-size: 22px; line-height: 1; }
    .profile-item-label { font-size: 11px; font-weight: 800; color: var(--text2); letter-spacing: 0; line-height: 1.2; }
    .profile-item-req { font-size: 10px; color: rgba(0,165,80,0.74); font-weight: 800; line-height: 1.2; }
    .profile-item-state {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 17px;
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid rgba(212,234,217,0.1);
      color: rgba(212,234,217,0.62);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .profile-item.active .profile-item-state { color:#6deba0; border-color:rgba(109,235,160,.35); }
    .profile-item.shop .profile-item-state { color:#ffd36a; border-color:rgba(255,211,106,.34); }

    .profile-badge-album {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      margin-top: 8px;
    }

    .profile-badge-card {
      border: 1px solid rgba(212,234,217,0.08);
      border-radius: 8px;
      padding: 8px;
      background: rgba(255,255,255,0.035);
      min-width: 0;
    }

    .profile-badge-card.locked {
      opacity: .56;
      filter: grayscale(.32);
    }

    .profile-badge-card-head {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .profile-badge-icon {
      width: 24px;
      height: 24px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: rgba(0,0,0,0.18);
      flex: 0 0 auto;
    }

    .profile-badge-name {
      color: var(--text);
      font-size: 10px;
      font-weight: 900;
      line-height: 1.15;
      overflow-wrap: anywhere;
    }

    .profile-badge-desc {
      margin-top: 5px;
      color: var(--text2);
      font-size: 9px;
      line-height: 1.25;
    }

    .profile-badge-progress {
      margin-top: 7px;
      height: 4px;
      border-radius: 99px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }

    .profile-badge-progress div {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg,#00a550,#ffd36a);
    }

    .profile-badge-count {
      margin-top: 4px;
      color: rgba(212,234,217,0.48);
      font-size: 8px;
      font-weight: 800;
    }

    .profile-page {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      display: grid;
      gap: 14px;
      color: var(--text);
    }
    .profile-page-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 4px 0 8px;
      border-bottom: 1px solid rgba(0,165,80,0.16);
    }
    .profile-head-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .profile-page-kicker {
      color: #6deba0;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .profile-page-title {
      margin-top: 3px;
      color: var(--text);
      font-size: 24px;
      line-height: 1.08;
      font-weight: 900;
      overflow-wrap: anywhere;
    }
    .profile-back-btn {
      border: 1px solid rgba(0,165,80,0.28);
      border-radius: 999px;
      background: rgba(0,165,80,0.08);
      color: #6deba0;
      min-height: 34px;
      padding: 7px 12px;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }
    .profile-share-status {
      min-width: 100%;
      color: #6deba0;
      font-size: 11px;
      font-weight: 800;
      text-align: right;
    }
    .leaderboard-profile-link {
      display: inline-flex;
      align-items: center;
      max-width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-weight: 900;
      text-align: left;
      cursor: pointer;
      overflow-wrap: anywhere;
    }
    .leaderboard-profile-link:hover,
    .leaderboard-profile-link:focus-visible {
      color: #6deba0;
      text-decoration: underline;
      outline: none;
    }
    .profile-hero {
      display: grid;
      grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
      gap: 14px;
      align-items: stretch;
    }
    .profile-character-stage,
    .profile-room-card,
    .profile-page-section {
      border: 1px solid rgba(0,165,80,0.18);
      border-radius: 14px;
      background: rgba(6,18,10,0.72);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }
    .profile-character-stage {
      min-height: 286px;
      padding: 18px;
      display: grid;
      place-items: center;
      text-align: center;
    }
    .profile-character-avatar {
      width: 112px;
      height: 112px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      margin: 0 auto 12px;
      color: #fff;
      font-size: 36px;
      font-weight: 900;
      letter-spacing: 0;
    }
    .profile-character-name {
      font-size: 21px;
      font-weight: 900;
      line-height: 1.15;
      overflow-wrap: anywhere;
    }
    .profile-character-sub {
      margin-top: 5px;
      color: #6deba0;
      font-size: 13px;
      font-weight: 800;
    }
    .profile-room-card {
      min-height: 286px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      overflow: hidden;
      position: relative;
    }
    .profile-room-card.scene-g13bg,
    .profile-room-card.scene-pg13bg {
      background-size: cover;
      background-position: center;
    }
    .profile-room-card.scene-g13bg { background-image: linear-gradient(rgba(3,10,6,0.76), rgba(3,10,6,0.82)), url('/G13BG.jpg'); }
    .profile-room-card.scene-pg13bg { background-image: linear-gradient(rgba(3,10,6,0.72), rgba(3,10,6,0.84)), url('/PG13BG.jpg'); }
    .profile-room-card.scene-forest { background: linear-gradient(135deg, rgba(0,60,24,0.82), rgba(4,22,11,0.96)); }
    .profile-room-card.scene-midnight { background: linear-gradient(135deg, rgba(7,12,28,0.94), rgba(3,10,6,0.98)); }
    .profile-room-card.scene-galaxy { background: radial-gradient(ellipse at 24% 18%, rgba(168,85,247,0.22), transparent 36%), linear-gradient(135deg, rgba(6,12,28,0.94), rgba(5,18,10,0.98)); }
    .profile-room-card.accent-gold { border-color: rgba(255,211,106,0.32); }
    .profile-room-card.accent-dark { background: linear-gradient(135deg, rgba(2,8,5,0.96), rgba(8,20,12,0.94)); }
    .profile-room-card.accent-derby { border-color: rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(0,165,80,0.08); }
    .profile-room-label {
      color: #6deba0;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .profile-room-title {
      margin-top: 6px;
      color: var(--text);
      font-size: 22px;
      line-height: 1.12;
      font-weight: 900;
      overflow-wrap: anywhere;
    }
    .profile-room-note {
      margin-top: 10px;
      max-width: 680px;
      color: rgba(212,234,217,0.82);
      font-size: 14px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }
    .profile-stat-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .profile-stat-card {
      min-height: 68px;
      padding: 10px;
      border: 1px solid rgba(212,234,217,0.08);
      border-radius: 10px;
      background: rgba(0,0,0,0.16);
    }
    .profile-stat-card strong {
      display: block;
      color: #ffd36a;
      font-size: 18px;
      line-height: 1;
    }
    .profile-stat-card span {
      display: block;
      margin-top: 6px;
      color: var(--text2);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .profile-page-section {
      padding: 14px;
      display: grid;
      gap: 10px;
    }
    .profile-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .profile-section-heading {
      color: var(--text);
      font-size: 16px;
      font-weight: 900;
    }
    .profile-edit-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .profile-edit-grid .wide { grid-column: 1 / -1; }
    .profile-input,
    .profile-textarea,
    .profile-select {
      width: 100%;
      border: 1px solid rgba(0,165,80,0.24);
      border-radius: 10px;
      background: rgba(0,0,0,0.22);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      padding: 10px 11px;
    }
    .profile-textarea {
      min-height: 74px;
      resize: vertical;
      line-height: 1.4;
    }
    .profile-help-text {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.35;
    }
    .profile-save-status.ok { color: #6deba0; }
    .profile-save-status.err { color: #f09090; }
    .profile-wardrobe-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
      gap: 8px;
    }
    .profile-wardrobe-grid .profile-item {
      min-height: 104px;
    }
    .profile-empty {
      border: 1px dashed rgba(0,165,80,0.22);
      border-radius: 12px;
      padding: 22px;
      color: var(--text2);
      text-align: center;
      font-size: 13px;
      line-height: 1.4;
    }

    @media (max-width: 760px) {
      .profile-page-title { font-size: 21px; }
      .profile-hero { grid-template-columns: 1fr; }
      .profile-character-stage,
      .profile-room-card { min-height: 240px; }
      .profile-stat-grid,
      .profile-edit-grid { grid-template-columns: 1fr; }
      .profile-wardrobe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* ── Level-up toast ── */
    #chat-levelup-toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      z-index: 9999;
      background: linear-gradient(135deg, #00a550, #004d22);
      border: 1px solid rgba(0,200,90,0.5);
      border-radius: 14px;
      padding: 12px 20px;
      color: #fff;
      font-size: 14px;
      font-weight: 900;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0,165,80,0.5), 0 0 0 1px rgba(255,255,255,0.08);
      opacity: 0;
      transition: opacity .35s, transform .35s;
      pointer-events: none;
      white-space: pre-line;
    }
    #chat-levelup-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .profile-btn {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0,165,80,0.35);
      background: rgba(0,165,80,0.08);
      color: #6deba0;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: all .15s;
    }
    .profile-btn:hover { background: rgba(0,165,80,0.16); border-color: rgba(0,165,80,0.5); }

    /* ── Channel bar ── */
    .chat-channel-bar {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 5px 10px;
      border-bottom: 1px solid rgba(0,165,80,0.1);
      background: rgba(0,0,0,0.18);
      overflow-x: auto;
      flex-shrink: 0;
      scrollbar-width: none;
    }
    .chat-channel-bar::-webkit-scrollbar { display: none; }
    .chat-channel-item {
      padding: 3px 9px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      color: rgba(212,234,217,0.55);
      border: 1px solid transparent;
      transition: all .15s;
      white-space: nowrap;
      user-select: none;
      letter-spacing: 0.2px;
    }
    .chat-channel-item:hover { color: #6deba0; border-color: rgba(0,165,80,0.2); }
    .chat-channel-item.active { color: #00ff88; border-color: rgba(0,165,80,0.4); background: rgba(0,165,80,0.08); }
    .chat-channel-add {
      width: 22px; height: 22px;
      border-radius: 50%;
      border: 1px solid rgba(0,165,80,0.3);
      background: rgba(0,165,80,0.06);
      color: #6deba0;
      font-size: 15px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
      flex-shrink: 0;
      margin-left: 4px;
    }
    .chat-channel-add:hover { background: rgba(0,165,80,0.14); border-color: rgba(0,165,80,0.5); }

    .chat-matchday-banner {
      margin: -4px 10px 0;
      padding: 10px 12px;
      border: 1px solid rgba(0,165,80,0.28);
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(0,165,80,0.16), rgba(0,0,0,0.28));
      color: #d4ead9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }
    .chat-matchday-banner[hidden] { display: none; }
    .chat-matchday-title { font-size: 12px; font-weight: 900; }
    .chat-matchday-meta { font-size: 11px; color: rgba(212,234,217,.65); margin-top: 2px; }
    .chat-matchday-reward {
      font-size: 11px;
      font-weight: 900;
      color: #6deba0;
      border: 1px solid rgba(0,165,80,.25);
      border-radius: 999px;
      padding: 5px 8px;
      background: rgba(0,165,80,.08);
    }

    /* ── Auth modal ── */
    .chat-engagement-wrap {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 0 10px;
      flex-shrink: 0;
    }
    .chat-engagement-wrap:empty { display: none; }
    .chat-engagement-card {
      border: 1px solid rgba(0,165,80,0.18);
      border-radius: 10px;
      background: rgba(0,0,0,0.18);
      padding: 10px;
    }
    .chat-hall-section {
      border: 1px solid rgba(0,165,80,0.16);
      border-radius: 10px;
      background: rgba(0,0,0,0.12);
      padding: 10px;
    }
    .chat-hall-section-title {
      display: block;
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      margin-bottom: 8px;
    }
    .chat-hall-row {
      border: 1px solid rgba(212,234,217,0.08);
      border-radius: 8px;
      background: rgba(255,255,255,0.025);
      padding: 9px 10px;
      min-height: 44px;
    }
    .chat-engagement-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }
    .chat-engagement-type {
      font-size: 9px;
      line-height: 1;
      font-weight: 900;
      letter-spacing: 1.4px;
      color: #00c85a;
      text-transform: uppercase;
    }
    .chat-engagement-count {
      color: rgba(212,234,217,0.45);
      font-size: 10px;
      white-space: nowrap;
    }
    .chat-engagement-deadline {
      margin-top: 6px;
      color: rgba(255,211,106,0.78);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.35;
    }
    .chat-engagement-title {
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.3;
    }
    .chat-engagement-desc {
      color: var(--text2);
      font-size: 11px;
      line-height: 1.45;
      margin-top: 4px;
    }
    .chat-engagement-options {
      display: grid;
      gap: 6px;
      margin-top: 9px;
    }
    .chat-engagement-option {
      position: relative;
      width: 100%;
      min-height: 40px;
      border-radius: 8px;
      border: 1px solid rgba(212,234,217,0.12);
      background: rgba(255,255,255,0.035);
      color: var(--text);
      font: inherit;
      overflow: hidden;
      cursor: pointer;
      text-align: left;
      padding: 0;
      appearance: none;
    }
    .chat-engagement-option:disabled {
      cursor: not-allowed;
      opacity: 0.72;
    }
    .chat-engagement-bar {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      background: rgba(0,165,80,0.18);
      transition: width .25s ease;
    }
    .chat-engagement-option.voted {
      border-color: rgba(0,200,90,0.55);
      background: rgba(0,165,80,0.10);
    }
    .chat-engagement-option.correct { border-color: rgba(0,200,90,0.7); }
    .chat-engagement-option.wrong { border-color: rgba(220,80,80,0.55); }
    .chat-engagement-option-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 800;
    }
    .chat-engagement-pct {
      color: rgba(212,234,217,0.55);
      font-size: 10px;
      white-space: nowrap;
    }
    .chat-engagement-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 10px;
      padding: 8px 12px;
      border-radius: 8px;
      background: rgba(0,165,80,0.16);
      border: 1px solid rgba(0,165,80,0.32);
      color: #6deba0;
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
    }
    .chat-engagement-note {
      margin-top: 8px;
      color: rgba(212,234,217,0.42);
      font-size: 10px;
    }

    .chat-wow-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(72px, 1fr));
      gap: 6px;
      padding: 8px;
      border: 1px solid rgba(20,179,98,0.2);
      border-radius: 14px;
      background:
        linear-gradient(90deg, rgba(20,179,98,0.12), rgba(247,201,72,0.06), rgba(20,179,98,0.08)),
        rgba(0,0,0,0.14);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .chat-header-shortcuts {
      flex: 1 1 520px;
      max-width: 620px;
      min-width: 360px;
      margin: 0 12px;
      align-self: center;
    }

    .chat-widget-header > .chat-widget-header-left {
      flex: 0 1 auto;
    }

    .chat-header-shortcuts .chat-wow-chip {
      flex: 1 1 0;
      min-width: 0;
    }

    .chat-wow-strip::-webkit-scrollbar {
      display: none;
    }

    .chat-wow-chip {
      min-width: 72px;
      border: 1px solid rgba(212,234,217,0.1);
      border-radius: 12px;
      padding: 7px 6px;
      background: rgba(255,255,255,0.035);
      color: rgba(255,255,255,0.9);
      text-align: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      cursor: pointer;
      font: inherit;
      transition: transform .14s ease, border-color .14s ease, background .14s ease;
    }

    .chat-wow-chip:hover,
    .chat-wow-chip:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(20,179,98,0.34);
      background: rgba(20,179,98,0.12);
      outline: none;
    }

    .chat-wow-chip span {
      display: block;
      font-size: 17px;
      line-height: 1;
      margin-bottom: 4px;
    }

    .chat-wow-chip strong {
      display: block;
      font-size: 9px;
      line-height: 1.15;
      letter-spacing: .3px;
      text-transform: uppercase;
    }

    .chat-effect-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 5000;
      overflow: hidden;
    }

    .chat-effect-emoji {
      position: fixed;
      left: var(--x);
      top: var(--y);
      font-size: var(--size, 28px);
      line-height: 1;
      transform: translate(-50%, -50%);
      opacity: 0;
      filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
      animation: chat-emoji-float var(--dur, 900ms) cubic-bezier(.18,.78,.22,1) forwards;
      will-change: transform, opacity;
    }

    @keyframes chat-emoji-float {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.35) rotate(0deg);
      }
      14% {
        opacity: 1;
        transform: translate(calc(-50% + var(--dx) * .18), calc(-50% + var(--dy) * .18)) scale(1.2) rotate(calc(var(--rot) * .25));
      }
      100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.72) rotate(var(--rot));
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .chat-effect-emoji {
        animation-duration: 1ms;
      }
    }

    #chat-auth-modal {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
      pointer-events: auto;
    }
    #chat-auth-modal[hidden] { display: none !important; }
    .chat-auth-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 0;
      background: rgba(0,0,0,0.78);
      backdrop-filter: blur(4px);
    }
    .chat-auth-modal-box {
      position: relative;
      z-index: 1;
      width: min(380px, 100%);
      max-height: min(640px, calc(100dvh - 32px));
      background: linear-gradient(180deg, #07160c 0%, #040e08 100%);
      border: 1px solid rgba(0,165,80,0.28);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
      pointer-events: auto;
    }
    .chat-auth-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0,165,80,0.15);
      background: rgba(0,165,80,0.07);
    }
    .chat-auth-modal-title { font-size: 14px; font-weight: 900; color: #00c85a; }
    .chat-auth-modal-close {
      width: 26px; height: 26px; border-radius: 50%;
      border: 1px solid rgba(0,165,80,0.2);
      background: none; color: var(--text2); font-size: 16px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
    }
    .chat-auth-modal-close:hover { color: var(--text); border-color: rgba(0,165,80,0.4); }
    .chat-auth-modal-body { padding: 16px; max-height: calc(80vh - 60px); overflow-y: auto; }
    .chat-auth-compact-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }
    .chat-auth-compact-actions .chat-auth-btn {
      width: 100%;
      min-height: 42px;
      padding-left: 10px;
      padding-right: 10px;
    }

    /* ── Guest bar (simple) ── */
    .chat-guest-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      border-top: 1px solid rgba(0,165,80,0.1);
      background: rgba(0,0,0,0.12);
      gap: 10px;
      flex-shrink: 0;
    }
    .chat-guest-label { font-size: 11px; color: rgba(212,234,217,0.45); }
    .chat-guest-actions { display: flex; gap: 7px; }

    /* ── Create channel popover ── */
    #chat-channel-create-popover {
      position: absolute;
      top: 38px;
      left: 0;
      z-index: 200;
      background: linear-gradient(180deg, #07160c, #040e08);
      border: 1px solid rgba(0,165,80,0.3);
      border-radius: 10px;
      padding: 12px;
      width: 240px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }
    #chat-channel-create-popover[hidden] { display: none !important; }

    /* ── Group tag on messages ── */
    .chat-group-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1px 5px 1px 4px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 800;
      margin-left: 4px;
      vertical-align: middle;
      letter-spacing: 0.3px;
      line-height: 1;
      text-align: center;
    }

    /* ── Gami event toast (lucky/streak/milestone) ── */
    #chat-gami-toast {
      position: fixed;
      bottom: 120px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      z-index: 9998;
      background: linear-gradient(135deg, #1a3a1a, #0d260d);
      border: 1px solid rgba(0,200,90,0.45);
      border-radius: 12px;
      padding: 10px 18px;
      color: #6deba0;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      box-shadow: 0 6px 24px rgba(0,165,80,0.35);
      opacity: 0;
      transition: opacity .3s, transform .3s;
      pointer-events: none;
      max-width: 280px;
      white-space: pre-line;
    }
    #chat-gami-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    .chat-toast-stack {
      position: fixed;
      right: max(14px, env(safe-area-inset-right));
      bottom: calc(84px + env(safe-area-inset-bottom));
      z-index: 9999;
      display: grid;
      gap: 8px;
      width: min(320px, calc(100vw - 28px));
      pointer-events: none;
    }

    .chat-toast-card {
      border: 1px solid rgba(0,165,80,0.26);
      border-radius: 10px;
      background: linear-gradient(180deg, rgba(8,30,15,0.98), rgba(4,14,8,0.98));
      box-shadow: 0 14px 36px rgba(0,0,0,0.34);
      color: var(--text);
      padding: 10px 12px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .18s ease, transform .18s ease;
    }

    .chat-toast-card.show { opacity: 1; transform: translateY(0); }
    .chat-toast-card.success { border-color: rgba(109,235,160,0.4); }
    .chat-toast-card.warn { border-color: rgba(255,211,106,0.42); }
    .chat-toast-card.error { border-color: rgba(232,112,112,0.45); }
    .chat-toast-title { color: #6deba0; font-size: 12px; font-weight: 900; }
    .chat-toast-card.warn .chat-toast-title { color: #ffd36a; }
    .chat-toast-card.error .chat-toast-title { color: #ff9b9b; }
    .chat-toast-text { color: var(--text2); font-size: 11px; line-height: 1.45; margin-top: 3px; white-space: pre-line; }

    @media (max-width: 600px) {
      .chat-toast-stack {
        right: 10px;
        left: 10px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        width: auto;
      }
    }

    /* ── Group browser in profile ── */
    .group-card {
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface2);
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .group-card-tag {
      width: auto !important;
      min-width: 68px;
      max-width: 104px;
      height: 34px !important;
      padding: 0 9px;
      border-radius: 999px !important;
      display: flex; align-items: center; justify-content: center;
      font-size: 10px; font-weight: 900; color: #fff;
      flex-shrink: 0;
      letter-spacing: 0;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }
    .group-card-info { flex: 1; min-width: 0; }
    .group-card-name { font-size: 12px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .group-card-meta { font-size: 10px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .group-form-input {
      width: 100%;
      background: rgba(0,0,0,0.3);
      border: 1px solid rgba(0,165,80,0.25);
      border-radius: 8px;
      color: var(--text);
      font-size: 12px;
      padding: 6px 10px;
      outline: none;
      box-sizing: border-box;
    }
    .group-form-input:focus { border-color: rgba(0,165,80,0.5); }
    .group-create-btn {
      width: 100%;
      padding: 8px;
      border-radius: 8px;
      border: 1px solid rgba(0,165,80,0.4);
      background: rgba(0,165,80,0.12);
      color: #6deba0;
      font-size: 12px; font-weight: 800;
      cursor: pointer;
      transition: all .15s;
      margin-top: 4px;
    }
    .group-create-btn:hover { background: rgba(0,165,80,0.22); }
    .group-create-btn.danger { border-color: rgba(255,80,80,0.4); background: rgba(255,80,80,0.08); color: #f08080; }
    .group-create-btn.danger:hover { background: rgba(255,80,80,0.16); }

    /* ── STATS / HISTORY MODAL ── */
    .stats-tab-nav {
      display: flex;
      gap: 6px;
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .stats-tab-btn {
      background: none;
      border: 1px solid var(--border);
      color: var(--text2);
      padding: 7px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 13px;
      transition: all .18s;
    }
    .stats-tab-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
    .stats-tab-btn:hover:not(.active) { border-color: var(--green-border); color: var(--text); }
    .stats-panel { display: none; }
    .stats-panel.active { display: block; }
    .public-hall-board {
      display: grid;
      gap: 10px;
    }
    .public-hall-page {
      display: grid;
      gap: 16px;
    }
    .public-hall-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(0,165,80,0.16);
    }
    .public-hall-kicker {
      color: #6deba0;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 1.4px;
      text-transform: uppercase;
    }
    .public-hall-title {
      margin-top: 4px;
      color: var(--text);
      font-size: 22px;
      line-height: 1.08;
      font-weight: 900;
    }
    .public-hall-live {
      color: #ffd36a;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }
    .public-hall-section {
      display: grid;
      gap: 8px;
    }
    .public-hall-section + .public-hall-section {
      margin-top: 16px;
    }
    .public-hall-section-title {
      color: #6deba0;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .public-hall-row {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      min-height: 58px;
      padding: 12px;
      border: 1px solid rgba(0,165,80,0.16);
      border-radius: 10px;
      background: rgba(255,255,255,0.03);
      width: 100%;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    button.public-hall-row:hover { border-color: rgba(109,235,160,0.32); background: rgba(0,165,80,0.08); }
    .public-hall-rank {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      border: 1px solid rgba(0,165,80,0.24);
      background: rgba(0,165,80,0.10);
      color: #6deba0;
      font-size: 12px;
      font-weight: 900;
    }
    .public-hall-name {
      color: var(--text);
      font-size: 14px;
      font-weight: 900;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }
    .public-hall-sub {
      margin-top: 4px;
      color: var(--text2);
      font-size: 11px;
      line-height: 1.35;
    }
    .public-hall-score {
      color: #ffd36a;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      text-align: right;
    }
    @media (max-width: 560px) {
      .public-hall-row {
        grid-template-columns: 34px minmax(0, 1fr);
      }
      .public-hall-score {
        grid-column: 2;
        text-align: left;
      }
      .public-hall-rank {
        width: 30px;
        height: 30px;
      }
    }

    .sport-selector {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .sport-btn {
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text2);
      padding: 6px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 12px;
      transition: all .18s;
    }
    .sport-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
    .sport-btn:hover:not(.active) { border-color: var(--green-border); color: var(--text); }

    /* History timeline */
    .stats-history {
      display: flex;
      flex-direction: column;
      gap: 0;
      border-left: 2px solid rgba(0, 165, 80, 0.30);
      margin-left: 6px;
      padding-left: 0;
    }
    .history-block {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      padding: 12px 0 12px 18px;
      position: relative;
    }
    .history-block::before {
      content: '';
      position: absolute;
      left: -5px;
      top: 18px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00a550;
      box-shadow: 0 0 8px rgba(0, 165, 80, 0.55);
    }
    .history-block:last-child {
      padding-bottom: 4px;
    }
    .history-year {
      background: linear-gradient(135deg, #00a550, #007a3b);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 6px;
      white-space: nowrap;
      flex-shrink: 0;
      margin-top: 1px;
      letter-spacing: 1px;
      box-shadow: 0 2px 8px rgba(0, 165, 80, 0.30);
    }
    .history-text { color: var(--text); font-size: 13px; line-height: 1.6; }

    /* Trophy grid */
    .trophy-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 12px;
    }
    .trophy-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 12px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .trophy-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, rgba(0, 165, 80, 0.60), transparent);
    }
    .trophy-card--gold { border-color: #b8860b; background: #1a1500; }
    .trophy-card--gold::before {
      background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.70), transparent);
    }
    .trophy-card--special { border-color: #333; }
    .trophy-count {
      font-size: 32px;
      font-weight: 800;
      color: #00a550;
      line-height: 1;
      margin-bottom: 6px;
    }
    .trophy-card--gold .trophy-count { color: #ffd700; }
    .trophy-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }
    .trophy-years {
      font-size: 11px;
      color: var(--text2);
      line-height: 1.5;
    }

    .sport-subtitle {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #00a550;
      margin-bottom: 10px;
    }

    .titles-content {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .titles-group + .titles-group { margin-top: 16px; }
    .titles-loading-msg { text-align: center; color: var(--text2); padding: 28px 0; font-size: 13px; }

    /* Standings embeds */
    .standings-loading-msg { text-align: center; color: var(--text2); padding: 28px 0; font-size: 13px; }
    .standings-shell {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .standings-sport-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 2px;
    }
    .standings-sport-left {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      min-width: 0;
    }
    .standings-sport-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,165,80,.12);
      border: 1px solid rgba(0,165,80,.28);
      font-size: 18px;
      flex: 0 0 auto;
    }
    .standings-sport-name {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.2;
    }
    .standings-gender-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: flex-start;
      margin-left: auto;
      padding-top: 2px;
    }
    /* "Άλλα αθλήματα" — many sports, grid layout */
    .standings-sport-head--other {
      flex-direction: column;
      gap: 10px;
    }
    .standings-sport-head--other .standings-gender-badges {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 5px;
      margin-left: 0;
      padding-top: 0;
      width: 100%;
      justify-content: unset;
    }
    .standings-sport-head--other .standings-gender-badge {
      font-size: 11px;
      padding: 5px 8px;
      border-radius: 8px;
      justify-content: flex-start;
      align-items: center;
      gap: 5px;
      min-height: 34px;
      line-height: 1.15;
      white-space: normal;
    }
    .standings-sport-head--other .standings-gender-badge span:last-child {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .standings-gender-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 11px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      color: #e9f7ee;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .3px;
      white-space: nowrap;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      font: inherit;
      outline: none;
      transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
    }
    .standings-gender-badge:hover {
      transform: translateY(-1px);
      border-color: rgba(0,165,80,.45);
    }
    .standings-gender-badge-icon {
      font-size: 13px;
      line-height: 1;
    }
    .standings-gender-badge--men {
      border-color: rgba(0,165,80,.35);
      background: rgba(0,165,80,.10);
      color: #bff2cf;
    }
    .standings-gender-badge--women {
      border-color: rgba(255,255,255,.10);
      background: rgba(255,255,255,.05);
      color: #f4f0ff;
    }
    .standings-gender-badge.is-active {
      box-shadow: 0 0 0 1px rgba(0,165,80,.28), 0 8px 18px rgba(0,0,0,.24);
      transform: translateY(-1px);
    }
    .standings-gender-block {
      background: rgba(0,0,0,.18);
      border: 1px solid rgba(255,255,255,.05);
      border-radius: 14px;
      padding: 14px;
    }
    .standings-gender-block[hidden] {
      display: none !important;
    }
    .standings-gender-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #00a550;
      margin-bottom: 12px;
    }
    .standings-group-notice {
      margin: -2px 0 12px;
      padding: 10px 12px;
      border: 1px solid rgba(0,165,80,.2);
      border-radius: 10px;
      background: rgba(0,165,80,.08);
      color: var(--text2);
      font-size: 12px;
      line-height: 1.45;
    }
    .standings-competition-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .standings-competition-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
    }
    .standings-competition-head {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .standings-competition-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
    }
    .standings-competition-meta {
      font-size: 11px;
      color: var(--text2);
      margin-top: 4px;
      line-height: 1.45;
    }
    .standings-competition-source {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #8fe1ab;
      font-size: 11px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }
    .standings-card-body {
      min-height: 120px;
    }
    .standings-card-loader,
    .standings-card-error {
      border-radius: 10px;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.05);
      padding: 14px;
      color: #cfe8d6;
      font-size: 12px;
      line-height: 1.6;
    }
    .standings-card-loader {
      color: #9fc4aa;
    }
    .standings-card-error {
      color: #f2d3d3;
      border-color: rgba(255,120,120,.16);
      background: rgba(120,20,20,.12);
    }
    .standings-card-error-btn {
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      color: #fff;
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
    }
    .standings-table-shell {
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.06);
      background: rgba(4,12,6,.66);
    }
    .standings-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .standings-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 640px;
      font-size: 12px;
    }
    .standings-table thead th {
      position: sticky;
      top: 0;
      background: #102216;
      color: #b9d8c2;
      font-size: 10px;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-weight: 800;
      padding: 10px 8px;
      text-align: center;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .standings-table thead th:first-child,
    .standings-table tbody td:first-child {
      padding-left: 12px;
    }
    .standings-table thead th:last-child,
    .standings-table tbody td:last-child {
      padding-right: 12px;
    }
    .standings-table tbody tr {
      border-bottom: 1px solid rgba(255,255,255,.05);
    }
    .standings-table tbody tr:last-child {
      border-bottom: 0;
    }
    .standings-table tbody tr:nth-child(even) {
      background: rgba(255,255,255,.015);
    }
    .standings-table tbody tr.standings-row--pao {
      background: linear-gradient(90deg, rgba(0,165,80,.20), rgba(0,165,80,.06));
    }
    .standings-table td {
      padding: 11px 8px;
      color: #eef7f1;
      text-align: center;
      vertical-align: middle;
      font-variant-numeric: tabular-nums;
    }
    .standings-table td.standings-cell--team {
      text-align: left;
      min-width: 180px;
    }
    .standings-team-name {
      color: #fff;
      font-weight: 700;
      line-height: 1.3;
    }
    .standings-row--pao .standings-team-name {
      color: #8ff0b1;
    }
    .standings-team-meta {
      margin-top: 3px;
      color: var(--text2);
      font-size: 10px;
      line-height: 1.4;
    }
    .standings-cell--rank {
      width: 42px;
      color: #b9d8c2;
      font-weight: 800;
    }
    .standings-cell--accent {
      color: #8ff0b1;
      font-weight: 800;
    }
    .standings-table-note {
      padding: 10px 12px;
      border-top: 1px solid rgba(255,255,255,.05);
      color: #8ea294;
      font-size: 10px;
      line-height: 1.5;
      background: rgba(255,255,255,.02);
    }
    .standings-section-title {
      padding: 10px 12px 0;
      color: #8fe1ab;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }
    .standings-updated {
      margin-top: 8px;
      color: var(--text2);
      font-size: 10px;
      line-height: 1.4;
    }

    /* ── RADIO PLAYER ── */
    .radio-player {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      margin-top: 8px;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .radio-player .station-info { flex: 1; }

    .radio-player .station-name {
      color: #fff;
      font-weight: 700;
      font-size: 15px;
    }

    .radio-player .station-freq {
      color: #00a550;
      font-size: 12px;
      letter-spacing: 1px;
    }

    #play-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #00a550;
      border: none;
      padding: 0;
      line-height: 1;
      font-family: inherit;
      appearance: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      transition: background 0.2s;
    }

    #play-btn:hover { background: #007a3a; }

    .radio-live {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--surface2);
      color: #00a550;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      padding: 3px 8px;
      border-radius: 20px;
      margin-top: 10px;
    }

    .radio-live .dot-live {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #00a550;
      animation: blink 1s ease infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.2; }
    }

    /* ── STATION PICKER ── */
    .radio-station-picker {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      margin-bottom: 4px;
    }

    .radio-station-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      padding: 10px 8px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      color: var(--text2);
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .radio-station-btn.active {
      background: var(--green-dim);
      border-color: var(--green);
      color: var(--text);
    }

    .radio-station-btn:hover:not(.active) {
      border-color: var(--green-border);
      color: var(--text);
    }

    .rsb-name { font-size: 13px; font-weight: 700; }
    .rsb-freq { font-size: 11px; color: #00a550; font-weight: 600; opacity: 0.8; }
    .radio-station-btn:not(.active) .rsb-freq { opacity: 0.4; }

    @media (max-width: 500px) {
      .radio-dock { left: 12px; right: 12px; width: auto; }
    }

    body.radio-dock-open #modal-body {
      padding-bottom: 120px;
    }

    /* ── FLAG IMAGES ── */
    .flag-img {
      width: 18px;
      height: 13px;
      border-radius: 2px;
      vertical-align: middle;
      flex-shrink: 0;
      object-fit: cover;
    }

    .flag-gr {
      display: inline-block;
      position: relative;
      overflow: hidden;
      background:
        repeating-linear-gradient(
          to bottom,
          #0d5eaf 0,
          #0d5eaf 1.44px,
          #fff 1.44px,
          #fff 2.88px
        );
      box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
    }

    .flag-gr::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 7.2px;
      height: 7.2px;
      background: #0d5eaf;
    }

    .flag-gr::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 7.2px;
      height: 7.2px;
      background:
        linear-gradient(to right, transparent 0 2.55px, #fff 2.55px 4.65px, transparent 4.65px),
        linear-gradient(to bottom, transparent 0 2.55px, #fff 2.55px 4.65px, transparent 4.65px);
    }

    /* ── NEWS FEED ── */
    .news-loading {
      color: var(--text2);
      text-align: center;
      padding: 24px 0;
      font-size: 13px;
    }

    .news-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .news-tab {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      cursor: pointer;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text2);
      transition: all 0.2s;
    }

    .news-tab-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 14px;
      font-size: 13px;
      line-height: 1;
      flex-shrink: 0;
    }

    .news-tab.active {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .news-list { display: flex; flex-direction: column; gap: 0; padding-bottom: 0; margin-bottom: 0; }

    .news-item {
      border-bottom: 1px solid var(--border);
      padding: 10px 0;
      cursor: pointer;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      transition: background 0.15s;
      border-radius: 6px;
    }

    .news-item:hover { background: rgba(0,165,80,0.07); padding-left: 6px; }
    .news-item:last-child { border-bottom: none; }

    .news-thumb {
      width: 72px;
      height: 54px;
      object-fit: cover;
      border-radius: 6px;
      flex-shrink: 0;
      background: var(--surface2);
    }

    .news-thumb-placeholder {
      width: 72px;
      height: 54px;
      border-radius: 6px;
      flex-shrink: 0;
      background: var(--surface2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
    }

    .news-thumb-placeholder.src-init {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 800;
      color: #00a550;
      letter-spacing: 0.5px;
    }

    .news-meta { flex: 1; min-width: 0; }

    .news-source {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      color: #00a550;
      text-transform: uppercase;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .news-title {
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      color: var(--text);
      font-size: 13px;
      line-height: 1.45;
      margin-bottom: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .news-date { font-size: 10px; color: var(--text2); }

    .post-share-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .post-share-row[hidden] { display: none; }

    .post-share-btn {
      appearance: none;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text2);
      border-radius: 7px;
      min-width: 34px;
      height: 28px;
      padding: 0 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .post-share-btn:hover,
    .post-share-btn:focus-visible {
      border-color: var(--green);
      color: #fff;
      background: rgba(0,165,80,0.12);
      outline: none;
    }

    .post-share-btn.whatsapp { color: #25D366; }
    .post-share-btn.viber { color: #7360F2; }
    .post-share-btn.facebook { color: #1877F2; }
    .post-share-btn.x { color: #f2f2f2; }
    .post-share-btn.copy { color: var(--gold); }

    .article-share-toggle {
      appearance: none;
      border: 1px solid var(--green);
      background: rgba(0,165,80,0.12);
      color: #fff;
      border-radius: 999px;
      width: 34px;
      height: 34px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .article-share-toggle:hover,
    .article-share-toggle:focus-visible {
      background: rgba(0,165,80,0.2);
      outline: none;
    }

    .article-share-toggle svg {
      width: 17px;
      height: 17px;
      display: block;
      fill: currentColor;
    }

    .article-share-inline {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .article-share-inline .post-share-row {
      margin-top: 0;
      gap: 5px;
    }

    .article-share-inline .post-share-btn {
      width: 32px;
      min-width: 32px;
      height: 32px;
      padding: 0;
      border-radius: 999px;
      font-size: 13px;
    }

    .post-share-btn svg {
      width: 17px;
      height: 17px;
      display: block;
      fill: currentColor;
    }

    /* ── ARTICLE DETAIL VIEW ── */
    .article-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 8px;
    }

    .article-nav.bottom {
      margin-bottom: 0;
      margin-top: 20px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .article-back {
      background: none;
      border: none;
      color: #00a550;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .article-back:hover { opacity: 0.7; }

    .article-next {
      background: none;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--green);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      padding: 6px 12px;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: border-color 0.2s, color 0.2s;
      flex-shrink: 0;
    }

    .article-next:hover { border-color: var(--green); color: var(--green); }

    .article-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 14px;
      display: block;
      cursor: zoom-in;
      transition: opacity 0.2s, transform 0.2s;
    }

    .article-img:hover { opacity: 0.92; transform: translateY(-1px); }

    .article-img.no-zoom {
      cursor: default;
    }

    .article-img.no-zoom:hover {
      opacity: 1;
      transform: none;
    }

    .article-image-viewer {
      position: fixed;
      inset: 0;
      z-index: 10020;
      background: rgba(0, 0, 0, 0.88);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .article-image-viewer[hidden] { display: none !important; }

    .article-image-viewer img {
      max-width: min(96vw, 1200px);
      max-height: 88vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 22px 60px rgba(0,0,0,0.55);
      background: #07110b;
    }

    .article-image-viewer-close {
      position: fixed;
      top: 14px;
      right: 14px;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255,255,255,0.24);
      border-radius: 50%;
      background: rgba(6, 16, 10, 0.82);
      color: #fff;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .article-image-viewer-close:hover { border-color: #00a550; color: #00ff84; }

    .article-source {
      font-size: 10px;
      font-weight: 700;
      color: #00a550;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .article-title {
      color: var(--text);
      font-size: 15px;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 6px;
    }

    .article-date {
      font-size: 11px;
      color: var(--text2);
      margin-bottom: 14px;
    }

    .article-desc {
      color: var(--text2);
      font-size: 13px;
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .article-content p {
      font-family: 'Inter', sans-serif;
      color: var(--text);
      font-size: 15px;
      font-weight: 400;
      line-height: 1.85;
      margin-bottom: 18px;
      text-align: left;
      word-spacing: normal;
      overflow-wrap: break-word;
      hyphens: manual;
      -webkit-hyphens: manual;
    }

    .article-embeds {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin: 16px 0 20px;
    }

    .article-embed-frame,
    .article-embed-video {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 0;
      border-radius: 8px;
      background: #000;
      display: block;
    }

    .article-embed-video {
      height: auto;
      object-fit: contain;
    }

    .article-embed-yt {
      position: relative;
      cursor: pointer;
      background: #000;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border-radius: 8px;
      display: block;
    }
    .article-embed-yt img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: opacity 0.2s;
    }
    .article-embed-yt:hover img { opacity: 0.85; }
    .yt-play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 68px;
      height: 48px;
      background: rgba(200,0,0,0.92);
      border: none;
      border-radius: 12px;
      cursor: pointer;
      pointer-events: none;
      transition: background 0.15s;
    }
    .article-embed-yt:hover .yt-play-btn { background: #f00; }
    .yt-play-btn::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 56%;
      transform: translate(-50%, -50%);
      border-style: solid;
      border-color: transparent transparent transparent #fff;
      border-width: 11px 0 11px 20px;
    }
    .yt-watch-link {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(0,0,0,0.72);
      color: #fff;
      font-size: 12px;
      padding: 4px 9px;
      border-radius: 4px;
      text-decoration: none;
      line-height: 1.4;
    }
    .yt-watch-link:hover { background: rgba(0,0,0,0.92); }

    .article-title {
      font-family: 'Inter', sans-serif;
      font-weight: 800 !important;
      font-size: 20px !important;
      line-height: 1.3 !important;
      margin-bottom: 10px !important;
      letter-spacing: -0.3px;
    }

    .article-source {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .article-date {
      font-family: 'Inter', sans-serif;
      margin-bottom: 18px !important;
    }

    .article-reader {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: -2px 0 18px;
      padding: 10px 0 12px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .article-reader[hidden] {
      display: none !important;
    }

    .article-reader-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 34px;
      padding: 7px 12px;
      border: 1px solid rgba(0,165,80,0.35);
      border-radius: 8px;
      background: rgba(0,165,80,0.12);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .article-reader-btn:hover {
      border-color: #00a550;
      background: rgba(0,165,80,0.2);
      color: #fff;
    }

    .article-reader-btn:disabled {
      cursor: not-allowed;
      opacity: 0.58;
      background: rgba(255,255,255,0.05);
      border-color: var(--border);
      color: var(--text2);
    }

    .article-reader-btn:disabled:hover {
      background: rgba(255,255,255,0.05);
      border-color: var(--border);
      color: var(--text2);
    }

    .article-reader-btn.stop {
      background: rgba(255,255,255,0.06);
      border-color: var(--border);
      color: var(--text2);
    }

    .article-reader-btn.stop:hover {
      border-color: rgba(255,255,255,0.24);
      color: var(--text);
    }

    .article-reader-btn[hidden] { display: none; }

    .article-reader-icon {
      min-width: 12px;
      text-align: center;
      line-height: 1;
    }

    .article-reader-status {
      min-height: 18px;
      color: var(--text2);
      font-size: 11px;
      line-height: 1.35;
    }

    .article-reader-voice {
      flex: 1 1 160px;
      min-width: 140px;
      max-width: 100%;
      min-height: 34px;
      padding: 7px 28px 7px 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(255,255,255,0.06);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 700;
      outline: none;
    }

    .article-reader-voice:focus {
      border-color: rgba(0,165,80,0.55);
    }

    .article-reader-voice[hidden] { display: none; }

    .article-img {
      height: 240px !important;
    }

    .article-link-btn {
      display: inline-block;
      margin-top: 8px;
      padding: 8px 16px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--green);
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }
    .article-link-btn:hover { border-color: #00a550; color: #fff; }

    .frontpages-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
    }

    .frontpage-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      appearance: none;
      color: inherit;
      font: inherit;
      padding: 0;
      text-align: left;
      width: 100%;
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .frontpage-card:hover {
      transform: translateY(-3px);
      border-color: #00a550;
      box-shadow: 0 10px 24px rgba(0,165,80,0.15);
    }

    .frontpage-card:focus-visible {
      outline: 2px solid #00a550;
      outline-offset: 3px;
    }

    .frontpage-card img {
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      display: block;
      background: var(--surface2);
    }

    .frontpage-card-meta {
      padding: 10px 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .frontpage-card-title {
      color: var(--text);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      line-height: 1.4;
      text-transform: uppercase;
    }

    .frontpage-card-date {
      color: #00a550;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .frontpage-view {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .frontpage-toolbar {
      position: sticky;
      top: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      padding: 8px;
      background: rgba(8, 11, 9, 0.9);
      border: 1px solid var(--border);
      border-radius: 12px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .frontpage-zoom-controls {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .frontpage-zoom-btn,
    .frontpage-zoom-status {
      min-width: 38px;
      height: 34px;
      padding: 0 10px;
      border: 1px solid rgba(0, 165, 80, 0.35);
      border-radius: 8px;
      background: rgba(0, 165, 80, 0.08);
      color: var(--text);
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
    }

    .frontpage-zoom-btn:hover,
    .frontpage-zoom-status:hover {
      border-color: #00a550;
      color: #00e676;
    }

    .frontpage-stage {
      background: linear-gradient(180deg, #f4f0e6, #ebe3d3);
      border: 1px solid #c9b892;
      border-radius: 16px;
      cursor: zoom-in;
      max-height: 72dvh;
      overflow: auto;
      overscroll-behavior: contain;
      padding: 12px;
      scrollbar-color: rgba(0, 0, 0, 0.32) transparent;
      touch-action: pan-x pan-y pinch-zoom;
    }

    .frontpage-stage.zoomed {
      cursor: grab;
    }

    .frontpage-stage::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    .frontpage-stage::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.28);
      border-radius: 999px;
    }

    .frontpage-stage img {
      width: var(--frontpage-zoom-width, 100%);
      min-width: var(--frontpage-zoom-width, 100%);
      max-width: none;
      max-height: none !important;
      flex: 0 0 auto;
      height: auto;
      display: block;
      border-radius: 10px;
      background: #fff;
      margin: 0 auto;
      transition: width 0.18s ease;
      user-select: none;
      -webkit-user-drag: none;
    }

    .frontpage-stage img.is-zoomed {
      margin: 0;
    }

    .frontpage-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .frontpage-title {
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .frontpage-date {
      color: #00a550;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    /* ── PREDICTOR ── */
    .predictor-shell {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-height: 100%;
      color: var(--text);
    }

    .predictor-hero {
      position: relative;
      overflow: hidden;
      padding: 20px;
      border-radius: 22px;
      background:
        radial-gradient(circle at 18% 0%, rgba(20, 179, 98, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(11, 22, 15, 0.98), rgba(22, 39, 28, 0.92));
      border: 1px solid rgba(20, 179, 98, 0.24);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    }

    .predictor-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 28%);
      pointer-events: none;
    }

    .predictor-hero-top {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .predictor-kicker {
      color: rgba(0, 165, 80, 0.88);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .predictor-title {
      color: #fff;
      font-size: clamp(22px, 4vw, 32px);
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: 0.2px;
      max-width: 18ch;
    }

    .predictor-copy {
      margin-top: 10px;
      color: #c7d1c9;
      font-size: 14px;
      line-height: 1.6;
      max-width: 64ch;
    }

    .predictor-rules {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .predictor-rule {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: #e5ece6;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.2px;
      white-space: nowrap;
    }

    .predictor-rule strong {
      color: #00a550;
      font-weight: 900;
    }

    .predictor-stats {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .predictor-stat {
      min-width: 0;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .predictor-stat-value {
      color: #fff; /* inside green hero — white is correct */
      font-size: 22px;
      font-weight: 900;
      line-height: 1;
      margin-bottom: 4px;
    }

    .predictor-stat-label {
      color: rgba(214, 221, 215, 0.7);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      line-height: 1.4;
    }

    .predictor-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
      gap: 14px;
      align-items: start;
    }

    .predictor-column {
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-width: 0;
    }

    .predictor-panel {
      padding: 16px;
      border-radius: 20px;
      background: var(--surface);
      border: 1px solid var(--green-border);
      box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    }

    .predictor-panel-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .predictor-panel-kicker {
      color: rgba(0, 165, 80, 0.85);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .predictor-panel-title {
      color: var(--text);
      font-size: 16px;
      font-weight: 900;
      line-height: 1.3;
      letter-spacing: 0.2px;
    }

    .predictor-panel-subtitle {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.5;
      margin-top: 4px;
    }

    .predictor-panel-badge {
      flex-shrink: 0;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(0, 165, 80, 0.12);
      border: 1px solid rgba(0, 165, 80, 0.24);
      color: var(--green);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .predictor-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 2px;
    }

    .predictor-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 12px;
      border-radius: 999px;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .predictor-chip:hover,
    .predictor-chip.active {
      transform: translateY(-1px);
      border-color: rgba(0, 165, 80, 0.5);
      background: rgba(0, 165, 80, 0.14);
      color: #fff;
    }

    .predictor-queue {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .predictor-fixture {
      width: 100%;
      text-align: left;
      padding: 14px;
      border-radius: 18px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text);
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .predictor-fixture:hover {
      transform: translateY(-1px);
      border-color: rgba(0, 165, 80, 0.35);
    }

    .predictor-fixture.active {
      border-color: rgba(0, 165, 80, 0.62);
      background: rgba(0, 165, 80, 0.1);
      box-shadow: 0 0 0 1px rgba(0, 165, 80, 0.08);
    }

    .predictor-fixture.locked {
      opacity: 0.82;
    }

    .predictor-fixture-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .predictor-fixture-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 1.8px;
      text-transform: uppercase;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text2);
    }

    .predictor-fixture-badge.live {
      background: rgba(0, 165, 80, 0.12);
      border-color: rgba(0, 165, 80, 0.24);
      color: var(--green);
    }

    .predictor-fixture-badge.final {
      background: rgba(255, 255, 255, 0.06);
      color: #c8d1c9;
    }

    .predictor-fixture-title {
      color: var(--text);
      font-size: 14px;
      font-weight: 900;
      line-height: 1.35;
      margin-bottom: 4px;
    }

    .predictor-fixture-meta {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.45;
    }

    .predictor-fixture-score {
      color: var(--text);
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
      margin-top: 10px;
    }

    .predictor-editor {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .predictor-score-presets {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .predictor-score-inputs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .predictor-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .predictor-field label {
      color: rgba(214, 221, 215, 0.72);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.8px;
      text-transform: uppercase;
    }

    .predictor-field input,
    .predictor-field textarea {
      width: 100%;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text);
      border-radius: 14px;
      padding: 11px 12px;
      font: inherit;
      outline: none;
      transition: border-color 0.16s ease, background 0.16s ease;
    }

    .predictor-field input:focus,
    .predictor-field textarea:focus {
      border-color: rgba(0, 165, 80, 0.5);
      background: rgba(0, 165, 80, 0.07);
    }

    .predictor-field textarea {
      min-height: 92px;
      resize: vertical;
    }

    .predictor-confidence {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .predictor-confidence-btn {
      min-width: 44px;
      justify-content: center;
      padding: 9px 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
    }

    .predictor-confidence-btn:hover,
    .predictor-confidence-btn.active {
      transform: translateY(-1px);
      border-color: rgba(0, 165, 80, 0.5);
      background: rgba(0, 165, 80, 0.14);
      color: #fff;
    }

    .predictor-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .predictor-action {
      padding: 11px 14px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
    }

    .predictor-action:hover {
      transform: translateY(-1px);
      border-color: rgba(0, 165, 80, 0.5);
      background: rgba(0, 165, 80, 0.1);
      color: #fff;
    }

    .predictor-action.primary {
      background: rgba(0, 165, 80, 0.18);
      border-color: rgba(0, 165, 80, 0.35);
      color: #fff;
    }

    .predictor-action.danger {
      background: rgba(255, 255, 255, 0.03);
      color: #c8d0ca;
    }

    .predictor-result {
      padding: 14px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(0, 165, 80, 0.12), rgba(5, 11, 7, 0.94));
      border: 1px solid rgba(0, 165, 80, 0.18);
    }

    .predictor-result-title {
      color: var(--green);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .predictor-result-line {
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.5;
    }

    .predictor-result-points {
      color: var(--text2);
      font-size: 12px;
      line-height: 1.5;
      margin-top: 6px;
    }

    .predictor-board {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .predictor-board-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 13px 14px;
      border-radius: 16px;
      background: var(--surface2);
      border: 1px solid var(--border);
    }

    .predictor-board-label {
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.4;
      margin-bottom: 2px;
    }

    .predictor-board-note {
      color: var(--text2);
      font-size: 11px;
      line-height: 1.4;
    }

    .predictor-board-score {
      color: var(--green);
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
      white-space: nowrap;
    }

    .predictor-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .predictor-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 999px;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.3;
    }

    .predictor-history {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .predictor-history-item {
      width: 100%;
      text-align: left;
      padding: 13px 14px;
      border-radius: 16px;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text);
      cursor: pointer;
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    .predictor-history-item:hover {
      transform: translateY(-1px);
      border-color: rgba(0, 165, 80, 0.35);
    }

    .predictor-history-item.active {
      border-color: rgba(0, 165, 80, 0.58);
      background: rgba(0, 165, 80, 0.1);
    }

    .predictor-history-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .predictor-history-title {
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
    }

    .predictor-history-meta {
      color: var(--text2);
      font-size: 11px;
      line-height: 1.45;
      margin-bottom: 8px;
    }

    .predictor-history-score {
      color: var(--green);
      font-size: 14px;
      font-weight: 900;
      line-height: 1.4;
    }

    .predictor-empty {
      padding: 18px;
      border-radius: 18px;
      border: 1px dashed var(--green-border);
      background: var(--surface2);
      color: var(--text2);
      font-size: 13px;
      line-height: 1.6;
    }

    .predictor-empty strong {
      color: var(--text);
    }

    .predictor-muted {
      color: var(--text2);
    }

    @media (max-width: 900px) {
      .predictor-layout {
        grid-template-columns: 1fr;
      }

      .predictor-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 600px) {
      .predictor-hero {
        padding: 16px;
        border-radius: 18px;
      }

      .predictor-panel {
        padding: 14px;
        border-radius: 18px;
      }

      .predictor-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .predictor-score-inputs {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* ── MATCH CENTER ── */
    .match-center {
      flex: 0 0 auto;
      min-height: auto;
      overflow: visible;
      width: 100%;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      background:
        radial-gradient(circle at 14% 0%, rgba(20, 179, 98, 0.20), transparent 32%),
        radial-gradient(circle at 100% 8%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(180deg, #09140e 0%, #060b08 100%);
      isolation: isolate;
      scrollbar-width: thin;
      scrollbar-color: rgba(0, 165, 80, 0.34) transparent;
    }

    .match-center--empty {
      min-height: 100%;
    }

    .match-center--empty .match-hero {
      min-height: 420px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 18px;
    }

    .match-empty-state {
      position: relative;
      z-index: 1;
      max-width: 760px;
      padding: 26px 28px;
      border-radius: 22px;
      border: 1px solid rgba(0, 165, 80, 0.16);
      background: rgba(6, 14, 8, 0.94);
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

    .match-empty-kicker {
      color: rgba(0, 165, 80, 0.88);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .match-empty-title {
      margin-top: 8px;
      color: #fff;
      font-size: clamp(22px, 4vw, 34px);
      line-height: 1.08;
      font-weight: 900;
    }

    .match-empty-copy {
      margin-top: 12px;
      color: #c6d6cc;
      font-size: 15px;
      line-height: 1.6;
      max-width: 64ch;
    }

    .match-picker {
      position: relative;
      z-index: 1;
      margin-top: 4px;
      padding: 14px;
      border-radius: 20px;
      border: 1px solid rgba(0, 165, 80, 0.16);
      background: rgba(6, 14, 8, 0.84);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }

    .match-picker-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .match-picker-kicker {
      color: rgba(0, 165, 80, 0.92);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .match-picker-title {
      margin-top: 6px;
      color: #fff;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 0.4px;
    }

    .match-picker-count {
      color: #93a79a;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .match-picker-hint {
      margin-top: 6px;
      color: #9fb0a4;
      font-size: 12px;
      line-height: 1.45;
    }

    .match-picker-list {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(0, 165, 80, 0.34) transparent;
    }

    .match-picker-list::-webkit-scrollbar {
      height: 8px;
    }

    .match-picker-list::-webkit-scrollbar-thumb {
      background: rgba(0, 165, 80, 0.34);
      border-radius: 999px;
    }

    .match-choice {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 7px;
      padding: 14px 14px 12px;
      border-radius: 16px;
      border: 1px solid rgba(0, 165, 80, 0.18);
      border-left: 3px solid rgba(0, 165, 80, 0.42);
      background: linear-gradient(150deg, rgba(14, 36, 20, 0.98), rgba(8, 16, 10, 0.97));
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
      color: #dfe9e1;
      text-align: left;
      cursor: pointer;
      touch-action: manipulation;
      -webkit-tap-highlight-color: rgba(0, 165, 80, 0.18);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .match-choice:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 165, 80, 0.52);
      border-left-color: rgba(0, 165, 80, 0.9);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 16px rgba(0, 165, 80, 0.1);
    }

    .match-choice.active {
      border-color: rgba(0, 165, 80, 0.82);
      border-left-color: #00a550;
      background: linear-gradient(150deg, rgba(0, 165, 80, 0.16), rgba(9, 18, 11, 0.98));
      box-shadow: 0 0 0 1px rgba(0, 165, 80, 0.2), 0 12px 30px rgba(0, 0, 0, 0.28), 0 0 20px rgba(0, 165, 80, 0.12);
    }

    .match-choice-top {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #93a79a;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .match-choice-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 54px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
    }

    .match-choice-badge.live {
      background: rgba(0, 165, 80, 0.22);
      color: #8dffbc;
    }

    .match-choice-badge.final {
      background: rgba(255, 255, 255, 0.08);
      color: #d7d7d7;
    }

    .match-choice-badge.upcoming {
      background: rgba(0, 165, 80, 0.14);
      color: #5dffa8;
      border: 1px solid rgba(0, 165, 80, 0.32);
    }

    .match-choice-title {
      color: #fff;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.25;
      letter-spacing: -0.01em;
    }

    .match-choice-meta {
      color: #8fa898;
      font-size: 11px;
      line-height: 1.45;
      letter-spacing: 0.3px;
    }

    .match-choice-score {
      margin-top: auto;
      padding-top: 4px;
      color: #00d468;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .match-choice-score .match-score-num.pao {
      color: #00d468;
    }

    .match-choice-score .match-score-num.opponent {
      color: #e05555;
    }

    .match-choice-score .match-score-separator {
      color: #8b968e;
      margin: 0 3px;
    }


    .match-picker-launch {
      border: 1px solid rgba(0, 165, 80, 0.18);
      background: rgba(0, 165, 80, 0.12);
      color: #dff7e8;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    }

    .match-picker-launch:hover {
      border-color: rgba(0, 165, 80, 0.42);
      background: rgba(0, 165, 80, 0.2);
      color: #fff;
      transform: translateY(-1px);
    }

    .match-selector {
      position: relative;
      width: 100%;
      min-height: auto;
      padding: 18px;
      border-radius: 28px;
      border: 1px solid rgba(0, 165, 80, 0.16);
      background:
        radial-gradient(circle at 50% 28%, rgba(0, 165, 80, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(7, 18, 10, 0.98), rgba(5, 12, 7, 0.96));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 22px 54px rgba(0, 0, 0, 0.34);
      overflow: hidden;
    }

    .match-selector::before,
    .match-selector::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }

    .match-selector::before {
      inset: auto auto -120px -90px;
      width: 260px;
      height: 260px;
      background: radial-gradient(circle, rgba(0, 165, 80, 0.22), transparent 68%);
      filter: blur(2px);
      opacity: 0.7;
    }

    .match-selector::after {
      top: -100px;
      right: -100px;
      width: 240px;
      height: 240px;
      background: radial-gradient(circle, rgba(0, 165, 80, 0.18), transparent 66%);
      opacity: 0.8;
    }

    .match-selector-shell {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
      height: 100%;
    }

    .match-selector-top {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-width: 760px;
    }

    .match-selector-kicker {
      color: rgba(0, 165, 80, 0.92);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 2.4px;
      text-transform: uppercase;
    }

    .match-selector-title {
      color: #fff;
      font-size: clamp(24px, 4vw, 38px);
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -0.02em;
    }

    .match-selector-copy {
      color: #b4c6bc;
      font-size: 14px;
      line-height: 1.6;
      max-width: 62ch;
    }

    .match-selector-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .match-selector-group + .match-selector-group {
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid rgba(0, 165, 80, 0.12);
    }

    .match-selector-group-label {
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: rgba(0, 165, 80, 0.7);
    }

    .match-selector-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 12px;
    }

    .match-selector-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 48px 20px;
      text-align: center;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(8, 18, 11, 0.6);
      color: #8fa898;
      font-size: 14px;
      line-height: 1.7;
    }

    .match-selector-empty-icon {
      font-size: 40px;
      opacity: 0.7;
    }

    .match-selector-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      color: #9fb0a4;
      font-size: 12px;
      line-height: 1.5;
    }

    .match-selector-refresh {
      border: 1px solid rgba(0, 165, 80, 0.26);
      background: rgba(0, 165, 80, 0.06);
      color: #c8ddd0;
      padding: 8px 14px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    }

    .match-selector-refresh:hover {
      border-color: rgba(0, 165, 80, 0.36);
      background: rgba(0, 165, 80, 0.08);
      color: #fff;
      transform: translateY(-1px);
    }

    .match-center::-webkit-scrollbar,
    .match-center *::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    .match-center::-webkit-scrollbar-thumb,
    .match-center *::-webkit-scrollbar-thumb {
      background: rgba(0, 165, 80, 0.34);
      border-radius: 999px;
    }

    .match-hero {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(20, 179, 98, 0.20);
      border-radius: 24px;
      padding: 18px;
      background:
        linear-gradient(180deg, rgba(18, 32, 24, 0.98), rgba(12, 20, 15, 0.95)),
        radial-gradient(circle at 0% 0%, rgba(20, 179, 98, 0.24), transparent 35%);
      box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32), 0 0 30px rgba(20, 179, 98, 0.14);
    }

    .match-hero::after {
      content: '';
      position: absolute;
      right: -90px;
      bottom: -90px;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(20, 179, 98, 0.26), transparent 68%);
      pointer-events: none;
      opacity: 0.75;
    }

    .match-hero-top {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .match-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(0, 165, 80, 0.32);
      background: rgba(0, 0, 0, 0.24);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .match-status-pill .match-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00a550;
      box-shadow: 0 0 10px rgba(0, 165, 80, 0.8);
      animation: pulse 1.8s ease-out infinite;
    }

    .match-status-pill.final {
      border-color: rgba(155, 232, 107, 0.35);
      color: #dff7cd;
    }

    .match-status-pill.final .match-dot {
      animation: none;
      background: #9be86b;
    }

    .match-meta-line {
      color: #a8b5aa;
      font-size: 12px;
      letter-spacing: 1px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .match-broadcast-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(0, 165, 80, 0.12);
      color: #8df0b4;
      border: 1px solid rgba(0, 165, 80, 0.18);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .match-hero-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
      margin-left: auto;
    }

    .match-sport-switcher {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
      position: relative;
      z-index: 1;
    }

    .match-sport-btn {
      border: 1px solid rgba(0, 165, 80, 0.2);
      background: rgba(0, 165, 80, 0.06);
      color: #b0c4b8;
      padding: 9px 16px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
    }

    .match-sport-btn:hover {
      border-color: rgba(0, 165, 80, 0.6);
      color: #fff;
      background: rgba(0, 165, 80, 0.14);
      transform: translateY(-1px);
    }

    .match-sport-btn.active {
      border-color: #00a550;
      color: #fff;
      background: rgba(0, 165, 80, 0.22);
      box-shadow: 0 0 0 1px rgba(0, 165, 80, 0.3) inset, 0 4px 12px rgba(0, 165, 80, 0.15);
    }

    .match-scoreboard {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr) minmax(0, 1fr);
      gap: 14px;
      align-items: stretch;
      margin-top: 16px;
    }

    .match-team-panel {
      position: relative;
      overflow: hidden;
      border-radius: 18px;
      padding: 16px;
      background: rgba(4, 14, 8, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 148px;
    }

    .match-team-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      border-top: 3px solid var(--team-accent, #00a550);
      pointer-events: none;
      opacity: 0.75;
    }

    .match-team-panel.home {
      --team-accent: #00a550;
    }

    .match-team-panel.away {
      --team-accent: #d83a3a;
    }

    .match-team-panel.pao {
      --team-accent: #00a550;
    }

    .match-team-panel.opponent {
      --team-accent: #d83a3a;
    }

    .match-team-top {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
      z-index: 1;
    }

    .match-team-avatar {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, rgba(0, 165, 80, 0.16), rgba(0, 165, 80, 0.04));
      border: 1px solid rgba(0, 165, 80, 0.22);
      color: #fff;
      font-weight: 800;
      letter-spacing: 1px;
      font-size: 14px;
      flex-shrink: 0;
    }

    .match-team-avatar img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      padding: 8px;
    }

    .match-team-avatar-fallback {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 800;
      letter-spacing: 1px;
      font-size: 14px;
    }

    .match-team-avatar--sm {
      width: 42px;
      height: 42px;
      border-radius: 13px;
    }

    .match-team-avatar--sm img {
      padding: 6px;
    }

    .match-team-avatar--sm .match-team-avatar-fallback {
      font-size: 12px;
    }

    .match-team-avatar--xs {
      width: 22px;
      height: 22px;
      border-radius: 8px;
    }

    .match-team-avatar--xs img {
      padding: 2px;
    }

    .match-team-avatar--xs .match-team-avatar-fallback {
      font-size: 8px;
      letter-spacing: 0.5px;
    }

    .match-team-panel.away .match-team-avatar {
      background: linear-gradient(180deg, rgba(216, 58, 58, 0.16), rgba(216, 58, 58, 0.04));
      border-color: rgba(216, 58, 58, 0.24);
    }

    .match-team-panel.pao .match-team-avatar,
    .lineup-team.home .match-team-avatar,
    .match-timeline-item.home .match-team-avatar,
    .lineup-team.pao .match-team-avatar,
    .match-timeline-item.pao .match-team-avatar {
      background: linear-gradient(180deg, rgba(0, 165, 80, 0.16), rgba(0, 165, 80, 0.04));
      border-color: rgba(0, 165, 80, 0.22);
    }

    .match-team-panel.opponent .match-team-avatar,
    .lineup-team.away .match-team-avatar,
    .match-timeline-item.away .match-team-avatar,
    .lineup-team.opponent .match-team-avatar,
    .match-timeline-item.opponent .match-team-avatar {
      background: linear-gradient(180deg, rgba(216, 58, 58, 0.16), rgba(216, 58, 58, 0.04));
      border-color: rgba(216, 58, 58, 0.24);
    }

    .match-team-name {
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.25;
    }

    .match-team-meta {
      color: #98a49b;
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-top: 4px;
    }

    .match-team-score {
      color: #fff;
      font-size: 44px;
      font-weight: 900;
      line-height: 0.95;
      letter-spacing: -1px;
    }

    .match-team-score.pao {
      color: #00d468;
    }

    .match-team-score.opponent {
      color: #e05555;
    }

    .match-team-note {
      color: #8f9f92;
      font-size: 11px;
      line-height: 1.5;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .match-score-panel {
      border-radius: 20px;
      padding: 16px;
      background: linear-gradient(180deg, rgba(0, 165, 80, 0.11), rgba(0, 0, 0, 0.2));
      border: 1px solid rgba(0, 165, 80, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      text-align: center;
      min-height: 148px;
    }

    .match-score {
      display: flex;
      align-items: baseline;
      gap: 12px;
      color: #fff;
      font-size: clamp(46px, 6vw, 72px);
      font-weight: 900;
      letter-spacing: -2px;
      line-height: 0.9;
    }

    .match-score span {
      color: #00a550;
      font-size: 0.55em;
      letter-spacing: 0;
    }

    .match-score .match-score-num {
      font-size: 1em;
    }

    .match-score .match-score-num.pao {
      color: #00d468;
    }

    .match-score .match-score-num.opponent {
      color: #e05555;
    }

    .match-score .match-score-separator {
      color: #7d897f;
      font-size: 0.55em;
    }

    .match-clock {
      color: #00a550;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .match-summary {
      color: #d1d8d2;
      font-size: 13px;
      line-height: 1.55;
      max-width: 30ch;
    }

    .match-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
      position: relative;
      z-index: 1;
    }

    .match-fact {
      border-radius: 16px;
      padding: 12px;
      background: rgba(0, 0, 0, 0.22);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .match-fact-label {
      color: #93a095;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .match-fact-values {
      display: flex;
      align-items: baseline;
      gap: 8px;
      color: #fff;
      font-size: 18px;
      font-weight: 800;
    }

    .match-fact-values span {
      color: #00a550;
    }

    .match-fact-note {
      color: #758178;
      font-size: 11px;
      margin-top: 6px;
      line-height: 1.45;
    }

    .match-nav {
      position: sticky;
      top: 0;
      z-index: 4;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 4px 0 6px;
      background: linear-gradient(180deg, rgba(7, 18, 10, 0.98), rgba(7, 18, 10, 0.72) 65%, rgba(7, 18, 10, 0));
      backdrop-filter: blur(10px);
    }

    .match-nav-btn {
      border: 1px solid rgba(0, 165, 80, 0.16);
      background: rgba(255, 255, 255, 0.03);
      color: #cfd8d1;
      padding: 7px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
    }

    .match-nav-btn:hover {
      border-color: #00a550;
      color: #fff;
      background: rgba(0, 165, 80, 0.12);
    }

    .match-nav-btn:active {
      transform: translateY(1px);
    }

    .match-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.95fr);
      gap: 16px;
      align-items: start;
    }

    .match-column {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 0;
    }

    .match-card {
      border-radius: 20px;
      padding: 16px;
      background: rgba(8, 21, 12, 0.92);
      border: 1px solid rgba(0, 165, 80, 0.14);
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
      scroll-margin-top: 16px;
    }

    .match-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .match-card-kicker {
      color: #00a550;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .match-card-title {
      color: #fff;
      font-size: 17px;
      font-weight: 800;
      line-height: 1.3;
    }

    .match-card-subtitle {
      color: #8f9f92;
      font-size: 12px;
      line-height: 1.45;
      margin-top: 4px;
    }

    .match-card-badge {
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(0, 165, 80, 0.12);
      color: #9be86b;
      border: 1px solid rgba(0, 165, 80, 0.18);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .match-timeline {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .match-timeline-item {
      display: grid;
      grid-template-columns: 72px 18px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      padding: 10px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .match-timeline-item:first-child {
      border-top: none;
      padding-top: 0;
    }

    .match-timeline-time {
      color: #8e9a90;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .match-timeline-marker {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-top: 4px;
      background: #00a550;
      box-shadow: 0 0 0 4px rgba(0, 165, 80, 0.12);
    }

    .match-timeline-item.away .match-timeline-marker {
      background: #d83a3a;
      box-shadow: 0 0 0 4px rgba(216, 58, 58, 0.12);
    }

    .match-timeline-item.pao .match-timeline-marker {
      background: #00a550;
      box-shadow: 0 0 0 4px rgba(0, 165, 80, 0.12);
    }

    .match-timeline-item.opponent .match-timeline-marker {
      background: #d83a3a;
      box-shadow: 0 0 0 4px rgba(216, 58, 58, 0.12);
    }

    .match-timeline-item.neutral .match-timeline-marker {
      background: #9aa59b;
      box-shadow: 0 0 0 4px rgba(154, 165, 155, 0.12);
    }

    .match-timeline-body {
      min-width: 0;
    }

    .match-timeline-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      margin-bottom: 2px;
    }

    .match-timeline-title-row .match-team-avatar {
      flex-shrink: 0;
    }

    .match-timeline-title {
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
    }

    .match-timeline-detail {
      color: #a1aca4;
      font-size: 12px;
      line-height: 1.55;
      margin-top: 4px;
    }

    .match-timeline-score {
      color: #00a550;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-top: 6px;
    }

    .match-commentary {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .match-commentary-item {
      border-radius: 14px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .match-commentary-time {
      color: #00a550;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .match-commentary-text {
      color: #d6ddd7;
      font-size: 13px;
      line-height: 1.65;
    }

    .match-lineups-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .lineup-team {
      border-radius: 16px;
      padding: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .lineup-team.home {
      --accent: #00a550;
    }

    .lineup-team.away {
      --accent: #d83a3a;
    }

    .lineup-team.pao {
      --accent: #00a550;
    }

    .lineup-team.opponent {
      --accent: #d83a3a;
    }

    .lineup-team.home .lineup-group-title {
      color: #00c45f;
    }

    .lineup-team.away .lineup-group-title {
      color: #ef6c6c;
    }

    .lineup-team.pao .lineup-group-title {
      color: #00c45f;
    }

    .lineup-team.opponent .lineup-group-title {
      color: #ef6c6c;
    }

    .lineup-team-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 12px;
    }

    .lineup-team-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .lineup-team-copy {
      min-width: 0;
    }

    .lineup-team-name {
      color: #fff;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.3;
    }

    .lineup-team-meta {
      color: #98a49b;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .lineup-group {
      margin-top: 12px;
    }

    .lineup-group-title {
      color: #00a550;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .lineup-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .lineup-player {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.22);
    }

    .lineup-number {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 165, 80, 0.16);
      border: 1px solid rgba(0, 165, 80, 0.2);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }

    .lineup-team.away .lineup-number {
      background: rgba(216, 58, 58, 0.16);
      border-color: rgba(216, 58, 58, 0.2);
    }

    .lineup-team.pao .lineup-number {
      background: rgba(0, 165, 80, 0.16);
      border-color: rgba(0, 165, 80, 0.2);
    }

    .lineup-team.opponent .lineup-number {
      background: rgba(216, 58, 58, 0.16);
      border-color: rgba(216, 58, 58, 0.2);
    }

    .lineup-player-name {
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.3;
      flex: 1;
    }

    .lineup-role {
      color: #8f9f92;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      flex-shrink: 0;
    }

    .lineup-bench {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .lineup-bench span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.22);
      color: #d4dbd5;
      font-size: 11px;
      font-weight: 700;
    }

    .match-stats {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .match-stat-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .match-stat-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      color: #d7ded8;
    }

    .match-stat-label {
      font-size: 12px;
      font-weight: 700;
    }

    .match-stat-value {
      font-size: 12px;
      font-weight: 800;
      color: #fff;
      letter-spacing: 1px;
    }

    .match-stat-bar {
      position: relative;
      height: 10px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.06);
      display: flex;
    }

    .match-stat-home,
    .match-stat-away {
      height: 100%;
    }

    .match-stat-home {
      background: linear-gradient(90deg, rgba(0, 165, 80, 0.85), rgba(0, 165, 80, 0.55));
    }

    .match-stat-away {
      background: linear-gradient(90deg, rgba(16, 26, 18, 0.92), rgba(0, 165, 80, 0.32));
    }

    .match-center--home-pao .match-stat-home,
    .match-center--away-pao .match-stat-away {
      background: linear-gradient(90deg, rgba(0, 165, 80, 0.85), rgba(0, 165, 80, 0.55));
    }

    .match-center--home-opponent .match-stat-home,
    .match-center--away-opponent .match-stat-away {
      background: linear-gradient(90deg, rgba(216, 58, 58, 0.85), rgba(216, 58, 58, 0.55));
    }

    .match-stat-caption {
      color: #8f9f92;
      font-size: 11px;
      line-height: 1.45;
      margin-top: 4px;
    }

    .match-mvp {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .mvp-card {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(0, 165, 80, 0.12), rgba(0, 0, 0, 0.18));
      border: 1px solid rgba(0, 165, 80, 0.18);
    }

    .mvp-avatar {
      width: 56px;
      height: 56px;
      border-radius: 18px;
      background: rgba(0, 165, 80, 0.16);
      border: 1px solid rgba(0, 165, 80, 0.24);
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .mvp-name {
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.3;
    }

    .mvp-meta {
      color: #00a550;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-top: 4px;
    }

    .mvp-note {
      color: #cfd8d1;
      font-size: 12px;
      line-height: 1.55;
      margin-top: 6px;
    }

    .match-heat {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .match-momentum {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .match-momentum-row {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) 44px;
      gap: 8px;
      align-items: center;
    }

    .match-momentum-phase {
      color: #8f9f92;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .match-momentum-track {
      display: flex;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.05);
      height: 12px;
    }

    .match-momentum-home {
      background: linear-gradient(90deg, rgba(0, 165, 80, 0.85), rgba(0, 165, 80, 0.6));
    }

    .match-momentum-away {
      background: linear-gradient(90deg, rgba(16, 26, 18, 0.9), rgba(0, 165, 80, 0.34));
    }

    .match-center--home-pao .match-momentum-home,
    .match-center--away-pao .match-momentum-away {
      background: linear-gradient(90deg, rgba(0, 165, 80, 0.85), rgba(0, 165, 80, 0.6));
    }

    .match-center--home-opponent .match-momentum-home,
    .match-center--away-opponent .match-momentum-away {
      background: linear-gradient(90deg, rgba(216, 58, 58, 0.85), rgba(216, 58, 58, 0.58));
    }

    .match-momentum-score {
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      text-align: right;
      letter-spacing: 1px;
    }

    .match-heat-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .match-heat-cell {
      min-height: 78px;
      border-radius: 16px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(0, 165, 80, 0.16);
    }

    .match-heat-cell.away {
      background: rgba(16, 26, 18, 0.16);
    }

    .match-heat-cell.pao {
      background: rgba(0, 165, 80, 0.16);
    }

    .match-heat-cell.opponent {
      background: rgba(216, 58, 58, 0.16);
    }

    .match-heat-zone {
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.3;
    }

    .match-heat-value {
      color: #fff;
      font-size: 24px;
      font-weight: 900;
      line-height: 1;
    }

    .match-heat-note {
      color: #d2d9d3;
      font-size: 10px;
      line-height: 1.4;
    }

    .match-watch {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .watch-card {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .watch-label {
      color: #00a550;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .watch-title {
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.4;
    }

    .watch-note {
      color: #8f9f92;
      font-size: 11px;
      line-height: 1.5;
    }

    .match-recap {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .recap-card {
      padding: 16px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(0, 165, 80, 0.12), rgba(0, 0, 0, 0.22));
      border: 1px solid rgba(0, 165, 80, 0.18);
    }

    .recap-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(0, 165, 80, 0.12);
      color: #9be86b;
      border: 1px solid rgba(0, 165, 80, 0.18);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .recap-text {
      color: #fff;
      font-size: 15px;
      line-height: 1.75;
      margin-top: 12px;
    }

    .recap-points {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .recap-points li {
      list-style: none;
      color: #d8dfd9;
      font-size: 12px;
      line-height: 1.55;
      padding-left: 16px;
      position: relative;
    }

    /* ── SIMPLE MATCH WIDGET ── */
    .smw-wrap { padding-bottom: 32px; }
    .smw-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 12px;
      border-bottom: 1px solid var(--border);
    }
    .smw-title { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
    .smw-refresh {
      background: none; border: 1px solid var(--border); color: var(--text2);
      font-size: 12px; padding: 5px 14px; border-radius: 20px; cursor: pointer;
    }
    .smw-refresh:hover { border-color: var(--gold); color: var(--gold); }
    .smw-sport-row {
      display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px;
      overflow-x: visible; border-bottom: 1px solid var(--border);
      scrollbar-width: none;
    }
    .smw-sport-row::-webkit-scrollbar { display: none; }
    .smw-sport-btn {
      flex: 0 0 auto; min-width: 0;
      display: inline-flex; align-items: center; justify-content: center; gap: 5px;
      padding: 6px 14px; border-radius: 20px;
      border: 1px solid var(--border); background: none;
      color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer;
      white-space: nowrap;
    }
    .smw-sport-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
    .smw-section { padding: 16px 16px 0; }
    .smw-section-label {
      font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
      text-transform: uppercase; color: var(--text2); margin-bottom: 10px;
    }
    .smw-card {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 14px 16px; border-radius: var(--radius);
      background: var(--surface); border: 1px solid var(--border);
      margin-bottom: 8px;
    }
    .smw-card--next { border-color: var(--gold-border); background: linear-gradient(135deg, var(--surface), var(--gold-dim)); }
    .smw-card-date { min-width: 42px; text-align: center; }
    .smw-card-day { font-size: 20px; font-weight: 800; line-height: 1; color: var(--gold); }
    .smw-card-month { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
    .smw-card-divider { width: 1px; background: var(--border); align-self: stretch; }
    .smw-card-body { flex: 1; min-width: 0; align-self: center; }
    .smw-card-teams { font-size: 13px; font-weight: 700; line-height: 1.25; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
    .smw-card-comp { font-size: 11px; color: var(--text2); margin-top: 4px; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
    .smw-card-right { min-width: 60px; text-align: right; flex-shrink: 0; align-self: center; }
    .smw-card-score { font-size: 15px; font-weight: 800; }
    .smw-card-score .match-score-num.pao { color: var(--green); font-weight: 900; }
    .smw-card-score .match-score-num.opponent { color: #e05555; font-weight: 900; }
    .smw-card-score .match-score-separator { color: var(--text2); font-weight: 400; font-size: 13px; margin: 0 2px; }
    .smw-card-badge {
      display: inline-block; font-size: 9px; font-weight: 700;
      letter-spacing: 1px; padding: 2px 7px; border-radius: 4px;
      text-transform: uppercase; margin-top: 4px;
    }
    .smw-card-badge.live { background: rgba(255,50,50,0.18); color: #ff6060; }
    .smw-card-badge.upcoming { background: var(--gold-dim); color: var(--gold); }
    .smw-card-badge.final { background: var(--green-dim); color: var(--green); }
    .smw-empty { text-align: center; padding: 56px 20px; color: var(--text2); font-size: 13px; line-height: 2; }
    .smw-status { text-align: center; padding: 56px 20px; color: var(--text2); font-size: 13px; }

    @media (max-width: 700px) {
      .smw-sport-btn {
        flex: 1 1 calc(50% - 6px);
        padding: 9px 12px;
        gap: 7px;
      }
    }

    /* ── NAV RADIAL POPUP ── */
    #nav-popup-overlay {
      display: none;
      position: fixed; inset: 0;
      z-index: 690;
    }
    #nav-popup-overlay.visible { display: block; }
    #nav-popup {
      position: fixed;
      z-index: 700;
      pointer-events: none;
      transform-origin: center center;
    }
    #nav-popup.hidden { display: none; }
    .nav-popup-item {
      position: absolute;
      width: 80px; height: 80px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--gold-border);
      color: var(--text);
      font-size: 9px;
      font-weight: 600;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 3px;
      cursor: pointer;
      pointer-events: all;
      transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.18s;
      transform: scale(0);
      opacity: 0;
      text-align: center; padding: 4px;
      white-space: normal;
      overflow-wrap: anywhere;
      text-wrap: balance;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    .nav-popup-item.active {
      background: rgba(0, 165, 80, 0.22);
      border-color: var(--green);
      color: #fff;
    }
    .nav-popup-item.show {
      transform: scale(1);
      opacity: 1;
    }
    .nav-popup-item:hover, .nav-popup-item:focus {
      background: var(--gold-dim);
      border-color: var(--gold);
      color: var(--gold);
    }
    .nav-popup-item .npi-icon { font-size: 18px; line-height: 1; }
    .nav-popup-item .npi-label {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      line-height: 1.05;
      max-width: 100%;
    }
    @media (max-width: 899px) {
      #nav-popup.mobile-sheet {
        left: 12px !important;
        right: 12px;
        top: auto !important;
        bottom: calc(var(--bottom-nav-h, 78px) + env(safe-area-inset-bottom, 0px) + 10px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-height: min(52vh, 360px);
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: all;
        padding: 10px;
        border: 1px solid var(--gold-border);
        border-radius: 18px;
        background: rgba(6, 18, 10, 0.96);
        box-shadow: 0 18px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
        backdrop-filter: blur(12px);
      }
      #nav-popup.mobile-sheet .nav-popup-item {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100%;
        height: 64px;
        border-radius: 14px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 10px;
        font-size: 11px;
        text-align: left;
        transform: translateY(8px) scale(.98);
      }
      #nav-popup.mobile-sheet .nav-popup-item.show {
        transform: translateY(0) scale(1);
      }
      #nav-popup.mobile-sheet .nav-popup-item .npi-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
      }
      #nav-popup.mobile-sheet .nav-popup-item .npi-label {
        -webkit-line-clamp: 2;
        line-height: 1.12;
      }
    }
    @media (max-width: 380px) {
      #nav-popup.mobile-sheet {
        grid-template-columns: 1fr;
        max-height: min(58vh, 390px);
      }
      #nav-popup.mobile-sheet .nav-popup-item {
        height: 58px;
      }
    }

    .chat-exit-btn {
      display: none;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(234,215,122,0.32);
      border-radius: 999px;
      background: rgba(255,255,255,0.04);
      color: #ead77a;
      font-size: 26px;
      line-height: 1;
      font-weight: 800;
      cursor: pointer;
    }

    .chat-welcome-card {
      position: relative;
      overflow: hidden;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(234,215,122,0.3);
      background:
        radial-gradient(circle at 12% 0%, rgba(20,179,98,0.24), transparent 38%),
        linear-gradient(135deg, rgba(10,24,15,0.98), rgba(3,10,6,0.98));
      box-shadow: 0 16px 42px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
    }

    .chat-welcome-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 62%);
      transform: translateX(-120%);
      animation: chatWelcomeShine 5.5s ease-in-out infinite;
      pointer-events: none;
    }

    .chat-welcome-kicker {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #ead77a;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .chat-welcome-title {
      position: relative;
      z-index: 1;
      margin-top: 7px;
      color: #fff;
      font-size: 16px;
      font-weight: 950;
      line-height: 1.2;
    }

    .chat-welcome-text {
      position: relative;
      z-index: 1;
      margin-top: 6px;
      color: rgba(255,255,255,0.76);
      font-size: 12px;
      line-height: 1.45;
    }

    .chat-feature-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      margin-top: 12px;
    }

    .chat-feature-chip {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      padding: 8px 9px;
      border-radius: 12px;
      border: 1px solid rgba(20,179,98,0.22);
      background: rgba(255,255,255,0.045);
      color: rgba(255,255,255,0.86);
      font-size: 11px;
      font-weight: 850;
    }

    .chat-feature-chip span:first-child {
      width: 22px;
      height: 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: rgba(20,179,98,0.18);
      flex-shrink: 0;
    }

    @keyframes chatWelcomeShine {
      0%, 55% { transform: translateX(-120%); }
      78%, 100% { transform: translateX(120%); }
    }

    @media (max-width: 700px) {
      body.chat-tab-active #app-header,
      body.chat-tab-active #app-nav {
        display: none;
      }

      body.chat-tab-active #app-main {
        top: 0;
        bottom: 0;
      }

      body.chat-tab-active #modal-body {
        padding: 0 !important;
        overflow: hidden;
        background:
          radial-gradient(circle at 50% -10%, rgba(20,179,98,0.2), transparent 42%),
          linear-gradient(180deg, #061109 0%, #020604 100%);
      }

      body.chat-tab-active .chat-shell {
        position: relative;
        box-sizing: border-box;
        height: 100dvh !important;
        width: 100%;
        gap: 7px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
        border: 0;
        border-radius: 0;
        background:
          linear-gradient(rgba(2,8,4,0.86), rgba(2,8,4,0.95)),
          url('/G13BG.jpg') center / cover;
      }

      body.chat-tab-active .chat-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
          radial-gradient(circle at 18% 4%, rgba(234,215,122,0.12), transparent 28%),
          radial-gradient(circle at 90% 14%, rgba(20,179,98,0.14), transparent 34%);
      }

      body.chat-tab-active .chat-shell > * {
        position: relative;
        z-index: 1;
      }

      body.chat-tab-active .chat-exit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      body.chat-tab-active .chat-widget-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(5,18,10,0.82);
        border-color: rgba(234,215,122,0.28);
        box-shadow: 0 12px 34px rgba(0,0,0,0.34);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
      }

      body.chat-tab-active .chat-header-shortcuts {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
      }

      body.chat-tab-active .chat-widget-header-left {
        width: 100%;
        min-width: 0;
        gap: 8px;
      }

      body.chat-tab-active .chat-hall-shortcut {
        min-width: 64px;
        height: 34px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-widget-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        box-shadow: 0 0 18px rgba(20,179,98,0.28);
      }

      body.chat-tab-active .chat-widget-title {
        font-size: 18px;
        line-height: 1;
      }

      body.chat-tab-active .chat-widget-sub {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        color: rgba(234,215,122,0.76);
      }

      body.chat-tab-active .chat-widget-header-right {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 6px;
        overflow: visible;
        padding: 0;
      }

      body.chat-tab-active .chat-stat-pill,
      body.chat-tab-active .chat-widget-badge,
      body.chat-tab-active .chat-tool-btn,
      body.chat-tab-active .profile-btn,
      body.chat-tab-active .chat-widget-logout {
        min-height: 30px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-xp-wrap {
        min-width: 0;
      }

      body.chat-tab-active .chat-channel-bar {
        min-height: 34px;
        padding: 0 2px;
        border: 0;
        background: transparent;
      }

      body.chat-tab-active .chat-channel-item {
        padding: 7px 10px;
        border-radius: 12px;
        font-size: 12px;
        background: rgba(4,16,8,0.74);
        border: 1px solid rgba(20,179,98,0.26);
      }

      body.chat-tab-active .chat-channel-add {
        width: 34px;
        height: 34px;
        border-radius: 14px;
      }

      body.chat-tab-active .chat-engagement-wrap {
        display: flex;
        padding: 0 4px;
        gap: 6px;
      }

      body.chat-tab-active .chat-wow-strip {
        display: flex;
        padding: 7px;
      }

      body.chat-tab-active .chat-wow-chip {
        flex: 0 0 68px;
        padding: 6px 5px;
      }

      body.chat-tab-active .chat-feed-wrap {
        flex: 1 1 auto;
        min-height: 0;
      }

      body.chat-tab-active .chat-feed-wrap:has(#chat-profile-panel:not([hidden])) {
        z-index: 40;
      }

      body.chat-tab-active .chat-feed {
        flex: 1 1 auto;
        min-height: 0;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
        border: 1px solid rgba(20,179,98,0.28);
        background: rgba(2,10,5,0.64);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      body.chat-tab-active .chat-message {
        gap: 7px;
      }

      body.chat-tab-active .chat-msg-avatar {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-bubble {
        max-width: 86%;
      }

      body.chat-tab-active .chat-bubble-card {
        padding: 9px 11px;
        border-radius: 15px 15px 15px 5px;
        background: rgba(14,33,21,0.86);
        border-color: rgba(255,255,255,0.09);
      }

      body.chat-tab-active .chat-message.mine .chat-bubble-card {
        border-radius: 15px 15px 5px 15px;
        background: linear-gradient(135deg, rgba(20,179,98,0.25), rgba(14,58,31,0.9));
        border-color: rgba(109,235,160,0.28);
        box-shadow: 0 8px 22px rgba(20,179,98,0.12);
      }

      body.chat-tab-active .chat-message.system .chat-bubble,
      body.chat-tab-active .chat-message.system .chat-bubble-card {
        max-width: 100%;
        width: 100%;
      }

      body.chat-tab-active .chat-text {
        font-size: 14px;
        line-height: 1.5;
      }

      body.chat-tab-active .chat-reactions {
        opacity: 1;
        pointer-events: auto;
      }

      body.chat-tab-active .chat-guest-bar {
        position: absolute;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
        z-index: 20;
        width: auto;
        padding: 0;
        gap: 5px;
        border: 0;
        background: transparent;
      }

      body.chat-tab-active .chat-guest-label {
        display: none;
      }

      body.chat-tab-active .chat-guest-actions {
        gap: 5px;
      }

      body.chat-tab-active .chat-guest-actions .chat-auth-btn {
        min-height: 28px;
        padding: 5px 9px;
        border-radius: 999px;
        font-size: 10px;
        box-shadow: none;
      }

      body.chat-tab-active .chat-composer {
        flex-shrink: 0;
        gap: 7px;
        padding: 8px;
        border-radius: 18px;
        background: rgba(4,16,8,0.82);
        border-color: rgba(20,179,98,0.28);
        box-shadow: 0 -10px 34px rgba(0,0,0,0.22);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
      }

      body.chat-tab-active .chat-composer-inner {
        gap: 7px;
      }

      body.chat-tab-active .chat-composer-inner .chat-message-input {
        height: 42px;
        min-height: 42px;
        border-radius: 14px;
        font-size: 13px;
      }

      body.chat-tab-active .chat-composer-inner .chat-send {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        box-shadow: 0 0 26px rgba(20,179,98,0.28);
      }

      body.chat-tab-active .chat-tool-row {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
      }

      body.chat-tab-active .chat-tool-row::-webkit-scrollbar {
        display: none;
      }

      body.chat-tab-active .chat-tool-row .chat-tool-btn {
        min-height: 26px;
        padding: 4px 9px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-tool-btn.chat-icon-tool {
        min-width: 40px;
        height: 32px;
        font-size: 16px;
      }

      body.chat-tab-active .chat-tool-btn .chat-tool-label {
        font-size: 9px;
      }

      body.chat-tab-active .chat-sticker-tray.chat-emoji-panel {
        width: 100%;
        padding: 9px;
        border-radius: 15px;
      }

      body.chat-tab-active .chat-emoji-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        max-height: 164px;
      }

      body.chat-tab-active .chat-emoji-grid .chat-sticker-btn {
        height: 34px;
        font-size: 19px;
      }

      body.chat-tab-active .chat-note {
        font-size: 10px;
        color: rgba(255,255,255,0.58);
      }

      body.chat-tab-active #chat-auth-modal {
        align-items: center;
        justify-content: center;
        padding: 14px;
      }

      body.chat-tab-active .chat-auth-modal-box {
        width: min(380px, 100%);
        max-height: calc(100dvh - 28px);
        border-radius: 14px;
      }

      body.chat-tab-active .chat-auth-modal-header {
        padding: 10px 12px;
      }

      body.chat-tab-active .chat-auth-modal-body {
        padding: 12px;
        max-height: min(520px, 72dvh);
      }

      body.chat-tab-active .chat-auth-input {
        padding: 9px 10px;
        font-size: 13px;
      }

      body.chat-tab-active .chat-auth-compact-actions .chat-auth-btn,
      body.chat-tab-active #chat-reset-panel .chat-auth-btn {
        padding: 8px 10px;
        font-size: 11px;
      }

      body.chat-tab-active .chat-auth-note {
        max-width: none;
        text-align: left;
        font-size: 10px;
      }

      body.chat-tab-active #chat-thread-panel,
      body.chat-tab-active #chat-profile-panel {
        position: fixed;
        inset: 10px;
        width: auto;
        max-height: none;
        border-radius: 18px;
      }

      .chat-feature-grid {
        grid-template-columns: 1fr 1fr;
      }

      .chat-welcome-title {
        font-size: 15px;
      }
    }

    @media (max-width: 700px) {
      body.chat-tab-active [hidden] {
        display: none !important;
      }

      body.chat-tab-active .chat-widget-header {
        gap: 7px;
        padding: 8px;
        border-radius: 16px;
      }

      body.chat-tab-active .chat-widget-header-left {
        gap: 7px;
      }

      body.chat-tab-active .chat-exit-btn {
        width: 32px;
        height: 32px;
        font-size: 23px;
      }

      body.chat-tab-active .chat-widget-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
      }

      body.chat-tab-active .chat-widget-title {
        font-size: 17px;
      }

      body.chat-tab-active .chat-hall-shortcut {
        min-width: 62px;
        height: 32px;
        padding: 0 9px;
      }

      @media (max-width: 360px) {
        body.chat-tab-active .chat-hall-shortcut {
          min-width: 34px;
          padding: 0 8px;
        }

        body.chat-tab-active .chat-hall-shortcut-label {
          display: none;
        }
      }

      body.chat-tab-active .chat-widget-sub {
        font-size: 10px;
      }

      body.chat-tab-active .chat-widget-header-right {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: stretch;
        gap: 5px;
        overflow: visible;
        scrollbar-width: none;
        padding-bottom: 1px;
      }

      body.chat-tab-active .chat-widget-header-right::-webkit-scrollbar {
        display: none;
      }

      body.chat-tab-active .chat-stat-pill,
      body.chat-tab-active .chat-widget-badge,
      body.chat-tab-active .chat-tool-btn,
      body.chat-tab-active .profile-btn,
      body.chat-tab-active .chat-widget-logout {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-xp-wrap {
        min-width: 0;
        padding: 3px 6px;
      }

      body.chat-tab-active .chat-widget-badge {
        max-width: 82px;
        min-width: 0;
      }

      body.chat-tab-active .chat-widget-logout {
        width: 32px;
        min-width: 32px;
        padding: 0;
      }

      body.chat-tab-active .chat-feed {
        gap: 8px;
        padding: 8px;
      }

      body.chat-tab-active .chat-message {
        gap: 6px;
      }

      body.chat-tab-active .chat-msg-avatar {
        width: 24px;
        min-width: 24px;
        height: 24px;
        font-size: 9px;
      }

      body.chat-tab-active .chat-bubble {
        max-width: calc(100% - 30px);
      }

      body.chat-tab-active .chat-message.system .chat-bubble {
        max-width: calc(100% - 30px);
      }

      body.chat-tab-active .chat-bubble-card {
        padding: 8px 9px;
      }

      body.chat-tab-active .chat-text {
        font-size: 13px;
        line-height: 1.42;
      }

      body.chat-tab-active .chat-name {
        font-size: 11px;
      }

      body.chat-tab-active .chat-role,
      body.chat-tab-active .chat-time {
        font-size: 9px;
      }

      body.chat-tab-active .chat-reply-btn,
      body.chat-tab-active .chat-vote-btn,
      body.chat-tab-active .chat-message-action-btn {
        min-width: 32px;
        min-height: 26px;
        padding: 2px 8px;
        font-size: 10px;
        justify-content: center;
      }

      body.chat-tab-active .chat-message-actions {
        gap: 5px;
        margin-left: 0;
      }

      body.chat-tab-active .chat-action-label {
        display: none;
      }

      body.chat-tab-active .chat-action-icon {
        font-size: 13px;
      }

      body.chat-tab-active .chat-action-count {
        font-size: 10px;
      }

      body.chat-tab-active .chat-welcome-card {
        padding: 10px;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(0,0,0,0.28);
      }

      body.chat-tab-active .chat-welcome-kicker {
        font-size: 9px;
      }

      body.chat-tab-active .chat-welcome-title {
        margin-top: 4px;
        font-size: 13px;
      }

      body.chat-tab-active .chat-welcome-text {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.35;
      }

      body.chat-tab-active .chat-feature-grid {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        margin-top: 8px;
        scrollbar-width: none;
      }

      body.chat-tab-active .chat-feature-grid::-webkit-scrollbar {
        display: none;
      }

      body.chat-tab-active .chat-feature-chip {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 999px;
      }

      body.chat-tab-active .chat-feature-chip span:first-child {
        width: 18px;
        height: 18px;
        border-radius: 999px;
      }

      body.chat-tab-active .chat-composer {
        padding: 7px;
        gap: 6px;
        border-radius: 16px;
      }

      body.chat-tab-active .chat-composer-inner .chat-message-input {
        height: 40px;
        min-height: 40px;
      }

      body.chat-tab-active .chat-composer-inner .chat-send {
        width: 40px;
        height: 40px;
      }

      body.chat-tab-active .chat-guest-bar[hidden],
      body.chat-tab-active .chat-guest-actions .chat-auth-btn[hidden],
      body.chat-tab-active .profile-btn[hidden],
      body.chat-tab-active .chat-widget-logout[hidden],
      body.chat-tab-active #chat-xp-wrap[hidden] {
        display: none !important;
      }
    }

    @media (max-width: 700px) {
      body.chat-tab-active .chat-guest-bar {
        position: static !important;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0 2px !important;
        margin: -2px 0 0;
        z-index: 1;
        pointer-events: auto;
      }

      body.chat-tab-active .chat-guest-bar[hidden] {
        display: none !important;
      }

      body.chat-tab-active .chat-guest-actions {
        display: inline-flex;
        gap: 6px;
      }

      body.chat-tab-active .chat-guest-actions .chat-auth-btn {
        min-height: 26px !important;
        padding: 4px 10px !important;
        font-size: 10px !important;
        border-radius: 999px !important;
        line-height: 1.1;
      }

      body.chat-tab-active .chat-composer {
        margin-top: 0;
      }

      body.chat-tab-active .chat-composer.is-locked .chat-send {
        opacity: 0.45;
        box-shadow: none;
      }

      body.chat-tab-active .chat-feed {
        padding-bottom: 10px;
      }
    }

    /* Chat layout cleanup */
    body.chat-tab-active #modal-body {
      box-sizing: border-box;
      overflow: hidden;
      padding: 18px 30px;
    }

    body.chat-tab-active [hidden] {
      display: none !important;
    }

    body.chat-tab-active .chat-shell {
      height: 100%;
      min-height: 0;
      width: 100%;
      overflow: hidden;
      gap: 10px;
    }

    body.chat-tab-active .chat-widget-header {
      flex: 0 0 auto;
      padding: 12px 14px;
      border-radius: 12px;
    }

    body.chat-tab-active .chat-widget-header-left {
      min-width: 0;
    }

    body.chat-tab-active .chat-widget-header-right {
      min-width: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    body.chat-tab-active .chat-channel-bar {
      flex: 0 0 auto;
      min-height: 36px;
      padding: 5px 10px;
      border: 1px solid rgba(0,165,80,0.14);
      border-radius: 10px;
      background: rgba(2,12,6,0.72);
    }

    body.chat-tab-active #chat-channels-list {
      min-width: 0;
    }

    body.chat-tab-active .chat-engagement-wrap {
      flex: 0 0 auto;
      padding: 0;
    }

    body.chat-tab-active .chat-wow-strip {
      display: flex;
      gap: 6px;
      padding: 6px;
      border-radius: 12px;
    }

    body.chat-tab-active .chat-wow-chip {
      flex: 1 1 0;
      min-width: 112px;
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 6px 8px;
      border-radius: 10px;
    }

    body.chat-tab-active .chat-header-shortcuts .chat-wow-chip {
      flex: 1 1 0;
      min-width: 0;
    }

    body.chat-tab-active .chat-wow-chip span,
    body.chat-tab-active .chat-wow-chip strong {
      display: inline-flex;
      margin: 0;
    }

    body.chat-tab-active .chat-wow-chip span {
      font-size: 16px;
    }

    body.chat-tab-active .chat-feed-wrap {
      flex: 1 1 0;
      min-height: 180px !important;
      overflow: hidden;
    }

    body.chat-tab-active .chat-feed {
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      padding: 12px;
      border-radius: 12px;
    }

    body.chat-tab-active .chat-guest-bar {
      flex: 0 0 auto;
      min-height: 42px;
      padding: 8px 12px;
      border: 1px solid rgba(0,165,80,0.14);
      border-radius: 12px;
      background: rgba(2,12,6,0.64);
    }

    body.chat-tab-active .chat-composer {
      position: relative;
      flex: 0 0 auto;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 12px;
    }

    body.chat-tab-active .chat-composer.is-locked {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "input auth"
        "tools note";
      align-items: center;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-composer-inner {
      grid-area: input;
      min-width: 0;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-send {
      display: none;
    }

    body.chat-tab-active .chat-composer.is-locked #chat-auth-wrap {
      grid-area: auth;
      align-self: center;
      justify-content: flex-end;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-guest-label {
      display: none;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-guest-actions {
      display: flex;
      gap: 8px;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-guest-actions .chat-auth-btn {
      min-height: 42px;
      padding: 0 18px;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-tool-row {
      grid-area: tools;
    }

    body.chat-tab-active .chat-composer.is-locked .chat-note {
      grid-area: note;
      justify-self: end;
      text-align: right;
    }

    body.chat-tab-active .chat-composer-inner .chat-message-input {
      height: 42px;
      min-height: 42px;
    }

    body.chat-tab-active .chat-tool-row {
      flex: 0 0 auto;
    }

    body.chat-tab-active .chat-sticker-tray.chat-emoji-panel {
      position: absolute;
      left: 12px;
      bottom: calc(100% + 8px);
      z-index: 90;
      width: min(420px, calc(100% - 24px));
      max-height: min(310px, 46vh);
      overflow: hidden;
    }

    body.chat-tab-active .chat-emoji-grid {
      max-height: 184px;
    }

    body.chat-tab-active .chat-note:empty {
      display: none;
    }

    @media (max-width: 700px) {
      body.chat-tab-active #modal-body {
        padding: 0 !important;
      }

      body.chat-tab-active .chat-shell {
        gap: 7px;
      }

      body.chat-tab-active .chat-feed-wrap {
        min-height: 130px !important;
      }

      body.chat-tab-active .chat-widget-header-right {
        flex-wrap: nowrap;
        justify-content: flex-start;
      }

      body.chat-tab-active .chat-wow-chip {
        flex: 1 1 58px;
        min-width: 58px;
        min-height: 38px;
        flex-direction: column;
        gap: 4px;
      }

      body.chat-tab-active .chat-sticker-tray.chat-emoji-panel {
        left: 7px;
        bottom: calc(100% + 7px);
        width: calc(100% - 14px);
        max-height: min(260px, 40dvh);
      }

      body.chat-tab-active .chat-emoji-grid {
        max-height: 154px;
      }

      body.chat-tab-active .chat-composer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
          "reply reply"
          "input input"
          "media media"
          "status tools";
        align-items: center;
        gap: 6px;
      }

      body.chat-tab-active .chat-composer.is-locked {
        grid-template-areas:
          "reply reply"
          "input input"
          "auth auth"
          "media media"
          "status tools";
      }

      body.chat-tab-active .chat-composer.is-locked #chat-auth-wrap {
        justify-content: flex-end;
      }

      body.chat-tab-active .chat-composer.is-locked .chat-note {
        grid-area: status;
        justify-self: stretch;
        text-align: left;
      }

      body.chat-tab-active .chat-inline-reply {
        grid-area: reply;
      }

      body.chat-tab-active .chat-composer-inner {
        grid-area: input;
      }

      body.chat-tab-active .chat-media-preview {
        grid-area: media;
      }

      body.chat-tab-active .chat-tool-row {
        grid-area: tools;
        justify-content: flex-end;
        gap: 4px;
        overflow: visible;
      }

      body.chat-tab-active .chat-note {
        grid-area: status;
        min-width: 0;
        min-height: 30px;
        display: flex;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
      }

      body.chat-tab-active .chat-composer-inner .chat-message-input {
        font-size: 16px;
        line-height: 1.25;
      }

      body.chat-tab-active .chat-tool-btn {
        background: rgba(255,255,255,0.07);
        border-color: rgba(109,235,160,0.24);
      }

      body.chat-tab-active .chat-tool-btn.chat-icon-tool {
        width: 34px;
        min-width: 34px;
        height: 30px;
        padding: 0;
        gap: 0;
      }

      body.chat-tab-active .chat-tool-btn .chat-tool-label {
        display: none;
      }

      body.chat-tab-active .chat-message,
      body.chat-tab-active .chat-stat-dot {
        animation: none !important;
      }

      body.chat-tab-active .chat-stat-dot {
        opacity: 1;
      }

      body.chat-tab-active #chat-profile-panel,
      body.chat-tab-active #chat-thread-panel {
        inset: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
        z-index: 120;
        border-radius: 16px;
        border: 1px solid rgba(20,179,98,0.28);
        box-shadow: 0 18px 46px rgba(0,0,0,0.52);
      }

      body.chat-tab-active .profile-panel-header {
        min-height: 48px;
        padding: 9px 11px;
      }

      body.chat-tab-active .profile-panel-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }

      body.chat-tab-active .profile-panel-body {
        padding: 11px;
        gap: 12px;
      }

      body.chat-tab-active .profile-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body.chat-tab-active .profile-item {
        min-height: 106px;
        padding: 11px 8px 9px;
      }

      body.chat-tab-active .profile-item-label {
        font-size: 10px;
        line-height: 1.25;
      }

      body.chat-tab-active .profile-item-req,
      body.chat-tab-active .profile-item-state {
        font-size: 9px;
      }

      body.chat-tab-active .chat-engagement-option {
        min-height: 42px;
        border-radius: 10px;
      }

      body.chat-tab-active .chat-engagement-option-inner {
        padding: 10px 11px;
        font-size: 12px;
      }
    }

    /* Desktop visual pass */
    @media (min-width: 900px) {
      #app-main {
        background:
          radial-gradient(circle at 26% 0%, rgba(20,179,98,0.10), transparent 30%),
          linear-gradient(180deg, rgba(3,12,7,0.98), rgba(2,9,5,1));
      }

      #tab-home.active {
        align-items: center;
        padding: 22px 24px 28px;
        gap: 18px;
      }

      #tab-home .home-section {
        width: min(100%, 1120px);
        margin: 0 auto;
        padding: 20px;
        border: 1px solid rgba(20,179,98,0.18);
        border-radius: 14px;
        background: rgba(6,18,10,0.64);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
      }

      body:not(.chat-tab-active) #modal-body {
        padding: 22px 24px 28px;
        align-items: center;
      }

      body:not(.chat-tab-active) #modal-body > * {
        width: min(100%, 1420px);
        margin-left: auto;
        margin-right: auto;
      }

      body:not(.chat-tab-active) #modal-body > #news-feed {
        width: min(100%, 1120px);
      }

      #home-news-list-inner,
      .news-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      #home-news-list-inner .mob-news-card,
      .news-item {
        min-height: 88px;
        padding: 10px 12px;
        border: 1px solid rgba(20,179,98,0.18);
        border-radius: 12px;
        background: rgba(9,25,14,0.68);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
      }

      #home-news-list-inner .mob-news-card:hover,
      .news-item:hover {
        padding-left: 14px;
        background: rgba(12,34,19,0.82);
        border-color: rgba(109,235,160,0.32);
      }

      .mob-news-thumb,
      .news-thumb,
      .news-thumb-placeholder {
        width: 84px;
        height: 66px;
        border-radius: 9px;
      }

      .mob-news-title,
      .news-title {
        font-size: 14px;
        line-height: 1.34;
      }

      .mob-news-desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .news-tabs {
        margin-bottom: 16px;
        padding: 0 2px;
      }

      .brand-kicker {
        font-size: 9px;
      }

      .nav-btn {
        font-size: 13px;
      }

      .home-section-label {
        font-size: 12px;
      }

      .home-section-more,
      .news-tab {
        font-size: 12px;
      }

      .mob-news-source,
      .news-source {
        font-size: 11px;
      }

      .mob-news-title,
      .news-title {
        font-size: 15px;
      }

      .mob-news-desc,
      .mob-news-meta,
      .news-date {
        font-size: 12px;
      }

      .chat-widget-title {
        font-size: 18px;
      }

      .chat-widget-sub,
      .chat-stat-pill,
      .chat-widget-badge,
      .chat-tool-btn,
      .chat-guest-label,
      .chat-note {
        font-size: 12px;
      }

      .chat-wow-chip strong,
      .chat-tool-btn .chat-tool-label,
      .chat-xp-label {
        font-size: 11px;
      }

      .chat-name,
      .profile-panel-title,
      .profile-section-title,
      .profile-page-kicker,
      .profile-help-text,
      .public-hall-section-title {
        font-size: 13px;
      }

      .profile-page-title {
        font-size: 28px;
      }

      .profile-section-heading { font-size: 18px; }
      .profile-room-title { font-size: 24px; }

      .profile-room-note,
      .profile-input,
      .profile-textarea,
      .profile-select {
        font-size: 14px;
      }

      .profile-item-label,
      .profile-item-req,
      .profile-item-state,
      .group-card-meta {
        font-size: 10px;
      }

      .public-hall-page,
      .stats-panel.active,
      .predictor-shell {
        border: 1px solid rgba(20,179,98,0.16);
        border-radius: 14px;
        background: rgba(6,18,10,0.60);
        padding: 18px;
      }

      .match-center {
        border: 1px solid rgba(20,179,98,0.16);
        border-radius: 14px;
        overflow: hidden;
      }

      .public-hall-board {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: start;
      }

      body.chat-tab-active #modal-body {
        padding: 12px 18px;
        align-items: stretch;
        background:
          radial-gradient(circle at 38% 0%, rgba(20,179,98,0.12), transparent 30%),
          linear-gradient(180deg, rgba(2,10,5,0.98), rgba(1,6,3,1));
      }

      body.chat-tab-active #modal-body > .chat-shell {
        width: min(100%, 1540px);
        margin-left: auto;
        margin-right: auto;
      }

      body.chat-tab-active .chat-shell {
        border: 1px solid rgba(20,179,98,0.16);
        border-radius: 16px;
        padding: 10px;
        gap: 8px;
        background: rgba(5,17,9,0.62);
        box-shadow: 0 18px 48px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
      }

      body.chat-tab-active .chat-widget-header {
        min-height: 62px;
        padding: 9px 14px;
      }

      body.chat-tab-active .chat-widget-icon {
        width: 34px;
        height: 34px;
      }

      body.chat-tab-active .chat-channel-bar {
        min-height: 34px;
        padding: 4px 10px;
      }

      body.chat-tab-active .chat-wow-strip {
        padding: 4px;
      }

      body.chat-tab-active .chat-wow-chip {
        min-height: 34px;
        padding: 4px 8px;
      }

      body.chat-tab-active .chat-guest-bar {
        min-height: 44px;
        padding: 6px 12px;
      }

      body.chat-tab-active .chat-widget-header,
      body.chat-tab-active .chat-channel-bar,
      body.chat-tab-active .chat-wow-strip,
      body.chat-tab-active .chat-feed,
      body.chat-tab-active .chat-guest-bar,
      body.chat-tab-active .chat-composer {
        border-color: rgba(109,235,160,0.20);
      }

      body.chat-tab-active .chat-feed {
        background: rgba(10,31,17,0.74);
      }

      body.chat-tab-active .chat-bubble {
        max-width: min(74%, 620px);
      }

      body.chat-tab-active .chat-message.system .chat-bubble {
        max-width: min(100%, 780px);
      }

      body.chat-tab-active #chat-profile-panel,
      body.chat-tab-active #chat-thread-panel {
        inset: 12px;
        border: 1px solid rgba(109,235,160,0.22);
        box-shadow: 0 18px 46px rgba(0,0,0,0.42);
      }
    }

    @media (min-width: 1400px) {
      #app-header {
        padding-right: 28px;
      }

      body.chat-tab-active #modal-body > .chat-shell {
        width: min(100%, 1620px);
      }

      body.chat-tab-active .chat-bubble {
        max-width: min(72%, 660px);
      }
    }

    /* Final mobile compact pass */
    @media (max-width: 700px) {
      body.chat-tab-active .chat-widget-header {
        gap: 6px;
        padding: 7px;
        border-radius: 12px;
      }

      body.chat-tab-active .chat-widget-header-left {
        min-height: 30px;
        gap: 6px;
      }

      body.chat-tab-active .chat-widget-header-left > div:not(.chat-widget-icon) {
        min-width: 0;
      }

      body.chat-tab-active .chat-exit-btn {
        width: 30px;
        height: 30px;
        font-size: 22px;
      }

      body.chat-tab-active .chat-widget-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 15px;
      }

      body.chat-tab-active .chat-widget-title {
        font-size: 15px;
      }

      body.chat-tab-active .chat-widget-sub {
        margin-top: 2px;
        font-size: 9px;
      }

      body.chat-tab-active .chat-hall-shortcut {
        min-width: 50px;
        height: 28px;
        min-height: 28px;
        padding: 0 7px;
        border-radius: 10px;
        font-size: 9px;
      }

      body.chat-tab-active .chat-wow-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        border-radius: 10px;
      }

      body.chat-tab-active .chat-wow-chip {
        min-width: 0;
        min-height: 30px;
        padding: 4px;
        border-radius: 8px;
        gap: 3px;
        flex-direction: row;
      }

      body.chat-tab-active .chat-wow-chip span {
        font-size: 13px;
        margin: 0;
      }

      body.chat-tab-active .chat-wow-chip strong {
        font-size: 8px;
        line-height: 1;
        letter-spacing: .2px;
      }

      body.chat-tab-active .chat-widget-header-right {
        grid-template-columns: auto minmax(78px, 1fr) auto auto;
        gap: 4px;
        align-items: center;
      }

      body.chat-tab-active .chat-stat-pill,
      body.chat-tab-active .chat-widget-badge,
      body.chat-tab-active .chat-widget-logout {
        min-height: 26px;
        padding: 3px 7px;
        border-radius: 11px;
        font-size: 9px;
        letter-spacing: .2px;
      }

      body.chat-tab-active .chat-widget-badge {
        max-width: 72px;
      }

      body.chat-tab-active .chat-xp-wrap {
        min-width: 0;
        padding: 2px 4px;
        border-radius: 8px;
      }

      body.chat-tab-active .chat-xp-label {
        gap: 4px;
        font-size: 8px;
        letter-spacing: .5px;
      }

      body.chat-tab-active .chat-xp-side {
        gap: 4px;
      }

      body.chat-tab-active .chat-xp-bar {
        height: 4px;
      }

      body.chat-tab-active .chat-channel-bar {
        min-height: 30px;
        padding: 3px 7px;
      }

      body.chat-tab-active .chat-channel-item {
        padding: 5px 8px;
        border-radius: 9px;
        font-size: 10px;
      }

      body.chat-tab-active .chat-channel-add {
        width: 28px;
        height: 28px;
      }

      body.chat-tab-active .chat-engagement-wrap {
        max-height: 96px;
        overflow-y: auto;
      }

      body.chat-tab-active .chat-meta {
        gap: 4px;
        margin-bottom: 3px;
        align-items: flex-start;
      }

      body.chat-tab-active .chat-meta-left {
        gap: 3px;
      }

      body.chat-tab-active .chat-user-badges {
        gap: 2px;
        margin-left: 2px;
        max-width: 100%;
      }

      body.chat-tab-active .chat-meta-badges {
        flex: 1 1 100%;
        max-width: 100%;
        gap: 3px;
      }

      body.chat-tab-active .chat-meta-badges .chat-user-badges {
        display: contents;
        margin-left: 0;
      }

      body.chat-tab-active .chat-meta-badges .chat-user-badge {
        width: 20px;
        min-width: 20px;
        max-width: 20px;
        justify-content: center;
        padding: 1px 0;
      }

      body.chat-tab-active .chat-meta-badges .chat-user-badge-label {
        display: none;
      }

      body.chat-tab-active .chat-user-badge,
      body.chat-tab-active .chat-rep-pill,
      body.chat-tab-active .chat-group-tag,
      body.chat-tab-active .chat-role {
        align-items: center;
        justify-content: center;
        min-height: 16px;
        max-width: 82px;
        padding: 1px 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
        line-height: 1;
        letter-spacing: 0;
        text-align: center;
      }

      body.chat-tab-active .chat-user-badge {
        max-width: 74px;
      }

      body.chat-tab-active .chat-role {
        max-width: 108px;
      }

      body.chat-tab-active .chat-time {
        font-size: 8px;
      }

      body.chat-tab-active .chat-bubble-card {
        padding: 7px 8px;
        border-radius: 12px 12px 12px 4px;
      }

      body.chat-tab-active .chat-message.mine .chat-bubble-card {
        border-radius: 12px 12px 4px 12px;
      }

      body.chat-tab-active .chat-text {
        font-size: 12px;
        line-height: 1.38;
      }
    }

    .vault-shell{width:100%;max-width:980px;margin:0 auto;padding:4px 0 28px;color:var(--text)}
    .vault-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}
    .vault-kicker{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
    .vault-title{font-size:28px;line-height:1.1;font-weight:950;margin-top:3px}
    .vault-count{font-size:12px;color:var(--text2);white-space:nowrap}
    .vault-section-nav{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;margin-bottom:4px;scrollbar-width:none}
    .vault-section-nav::-webkit-scrollbar{display:none}
    .vault-section-btn{border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--text2);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
    .vault-section-btn.active{background:var(--green);border-color:var(--green);color:#fff}
    .vault-section-btn:hover{border-color:var(--green-border);color:var(--text)}
    .vault-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
    .vault-card{border:1px solid var(--border);background:rgba(255,255,255,.035);border-radius:8px;overflow:hidden;text-align:left;color:inherit;cursor:pointer;min-height:170px;display:flex;flex-direction:column}
    .vault-cover{aspect-ratio:16/9;background:linear-gradient(135deg,rgba(0,165,80,.34),rgba(212,175,55,.22));display:flex;align-items:center;justify-content:center;color:#fff;font-size:34px;font-weight:950}
    .vault-cover img{width:100%;height:100%;object-fit:cover;display:block}
    .vault-card-body{padding:13px 14px 15px}
    .vault-card-meta{display:flex;align-items:center;gap:6px;color:var(--green);font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}
    .vault-card-title{font-size:16px;font-weight:950;line-height:1.22;margin-bottom:7px}
    .vault-card-excerpt{font-size:12px;color:var(--text2);line-height:1.45}
    .vault-empty{border:1px dashed var(--border);border-radius:8px;padding:28px 18px;color:var(--text2);text-align:center;font-size:13px}
    .vault-detail{width:100%;max-width:760px;margin:0 auto;padding-bottom:34px}
    .vault-back{border:1px solid var(--border);background:rgba(255,255,255,.04);color:var(--text);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer;margin-bottom:14px}
    .vault-detail-cover{width:100%;aspect-ratio:16/8;border-radius:8px;object-fit:cover;background:rgba(255,255,255,.04);margin-bottom:18px}
    .vault-detail h1{font-size:30px;line-height:1.12;margin:0 0 10px}
    .vault-detail-excerpt{font-size:15px;color:var(--text2);line-height:1.55;margin-bottom:22px}
    .vault-content{font-size:16px;line-height:1.75;color:var(--text)}
    .vault-content h2,.vault-content h3{line-height:1.2;margin:24px 0 10px}
    .vault-content p{margin:0 0 14px}
    .vault-content blockquote{border-left:3px solid var(--green);margin:18px 0;padding:8px 0 8px 14px;color:var(--text2);background:rgba(0,165,80,.06)}
    .vault-content img{max-width:100%;border-radius:8px;margin:12px 0}
    .vault-content a{color:var(--green);font-weight:800}
    .vault-content table{width:100%;border-collapse:collapse;margin:16px 0}
    .vault-content th,.vault-content td{border:1px solid var(--border);padding:9px;text-align:left}
    .vault-content hr{border:0;border-top:1px solid var(--border);margin:22px 0}
    .vault-content pre{background:rgba(0,0,0,.35);border:1px solid var(--border);border-radius:8px;padding:12px;overflow:auto}
    .vault-cta-button{display:inline-block;background:var(--green);color:#fff!important;border-radius:8px;padding:10px 14px;font-weight:950;text-decoration:none;margin:8px 0}
    .chants-page{display:grid;gap:18px;max-width:950px;margin:0 auto 8px}
    .chants-hero{border:1px solid rgba(0,200,90,.32);background:linear-gradient(120deg,rgba(0,165,80,.16),rgba(212,175,55,.08));border-radius:8px;padding:28px;min-height:150px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
    .chants-hero-kicker{font-size:12px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#f0d46e;margin-bottom:10px}
    .chants-hero h2{font-size:30px;line-height:1.12;font-weight:950;margin:0 0 24px;color:var(--text)}
    .chants-count{display:inline-flex;align-items:center;min-height:38px;border:1px solid rgba(240,212,110,.36);background:rgba(240,212,110,.07);border-radius:999px;padding:0 14px;color:#ffe36d;font-size:13px;font-weight:950}
    .chants-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
    .chant-card{border:1px solid rgba(212,234,217,.24);background:rgba(255,255,255,.025);border-radius:8px;padding:16px 16px 18px;min-height:160px}
    .chant-card-head{border-bottom:1px solid rgba(212,234,217,.09);padding-bottom:12px;margin-bottom:14px}
    .chant-number{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:42px;border:1px solid rgba(0,200,90,.42);background:rgba(0,165,80,.24);border-radius:8px;color:#ffe36d;font-size:14px;font-weight:950}
    .chant-lines{display:grid;gap:3px}
    .chant-line{margin:0!important;color:var(--text);font-size:14px;line-height:1.58}
    .vault-embedded-stats .stats-tab-nav{display:none}
    .vault-embedded-stats .stats-panel{margin-top:0}
    .vault-under-construction{border:1px dashed var(--border);border-radius:8px;padding:30px 18px;text-align:center;background:rgba(255,255,255,.025)}
    .vault-under-construction-icon{font-size:34px;margin-bottom:10px}
    .vault-under-construction-title{font-size:18px;font-weight:950;color:var(--text);margin-bottom:6px}
    .vault-under-construction-text{font-size:13px;color:var(--text2);line-height:1.55;max-width:460px;margin:0 auto}
    @media (max-width:640px){
      .vault-head{align-items:flex-start;flex-direction:column;gap:6px}
      .vault-title{font-size:24px}
      .vault-detail h1{font-size:25px}
      .chants-page{gap:14px}
      .chants-hero{padding:22px;min-height:138px}
      .chants-hero h2{font-size:25px;margin-bottom:18px}
      .chants-grid{grid-template-columns:1fr;gap:12px}
      .chant-card{padding:14px;min-height:0}
    }
