/* ==========================================================================
   BPFC MATCH CENTER - STYLESHEET (style.css)
   ========================================================================== */

:root {
      color-scheme: dark;
      --bg-dark: #040d1f;
      --bg-radial: radial-gradient(circle at 50% 15%, #0c2752 0%, #071836 50%, #040d1f 100%);
      --header-bg: rgba(7, 24, 54, 0.88);
      --header-border: rgba(56, 189, 248, 0.25);
      --card-bg: linear-gradient(180deg, #091c38 0%, #0e264c 100%);
      --card-border: rgba(56, 189, 248, 0.35);
      --card-border-subtle: rgba(56, 189, 248, 0.18);
      --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --accent-cyan: #38bdf8;
      --accent-coral: #e05a47;
      --accent-green: #10b981;
      --accent-blue: #0284c7;
      --accent-red: #ef4444;
      --accent-amber: #fbbf24;
      --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    [data-theme="light"],
    body.theme-light {
      color-scheme: light;
      --bg-dark: #f1f5f9;
      --bg-radial: radial-gradient(circle at 50% 10%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
      --header-bg: rgba(255, 255, 255, 0.94);
      --header-border: rgba(2, 132, 199, 0.25);
      --card-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      --card-border: rgba(2, 132, 199, 0.25);
      --card-border-subtle: rgba(203, 213, 225, 0.8);
      --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      --text-main: #0f172a;
      --text-muted: #64748b;
      --accent-cyan: #0284c7;
      --accent-coral: #dc2626;
      --accent-green: #059669;
      --accent-blue: #2563eb;
      --accent-red: #dc2626;
      --accent-amber: #d97706;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type=number] {
      appearance: textfield;
      -moz-appearance: textfield;
    }

    body {
      background: var(--bg-radial) fixed;
      color: var(--text-main);
      font-family: var(--font-family);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding-bottom: 30px;
    }

    header {
      background: rgba(7, 24, 54, 0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1.5px solid rgba(56, 189, 248, 0.25);
      padding: 12px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
      min-height: 62px;
      box-sizing: border-box;
    }

    .brand {
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 1.1;
    }

    .brand-title {
      font-weight: 900;
      font-size: 1.15rem;
      letter-spacing: 0.8px;
      color: #ffffff;
      line-height: 1;
    }

    .brand-subtitle {
      font-weight: 800;
      font-size: 0.65rem;
      letter-spacing: 1.6px;
      color: var(--accent-cyan);
      text-transform: uppercase;
      line-height: 1;
      margin-top: 3px;
    }

    .header-right-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn-header-gear {
      background: rgba(4, 13, 31, 0.8);
      border: 1px solid rgba(56, 189, 248, 0.25);
      color: var(--text-muted);
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
    }

    .btn-header-gear:hover {
      background: rgba(56, 189, 248, 0.18);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      transform: rotate(45deg);
    }

    .btn-header-gear.active {
      background: rgba(56, 189, 248, 0.22);
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      box-shadow: none;
    }

    .btn-header-gear svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      display: inline-block;
    }

    .nav-tabs {
      display: flex;
      gap: 4px;
      background: rgba(4, 13, 31, 0.8);
      padding: 4px;
      border-radius: 10px;
      border: 1px solid rgba(56, 189, 248, 0.2);
    }

    .nav-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      font-size: 0.82rem;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .nav-tab-btn.active {
      background: rgba(56, 189, 248, 0.18);
      border-color: rgba(56, 189, 248, 0.4);
      color: var(--accent-cyan);
    }

    .container {
      width: 100%;
      max-width: 620px;
      margin: 0 auto;
      padding: 16px;
      flex: 1;
    }

    .card {
      background: var(--card-bg);
      border: 1.5px solid var(--card-border);
      border-radius: 16px;
      padding: 18px;
      margin-bottom: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
      position: relative;
    }


    .setup-mode-tab-btn {
      background: rgba(8, 22, 46, 0.85);
      border: 1.5px solid rgba(56, 189, 248, 0.22);
      border-radius: 12px;
      padding: 12px 10px;
      text-align: left;
      cursor: pointer;
      color: #94a3b8;
      transition: all 0.2s ease;
    }

    .setup-mode-tab-btn:hover {
      background: rgba(12, 39, 82, 0.5);
      border-color: rgba(56, 189, 248, 0.45);
      color: #ffffff;
    }

    .setup-mode-tab-btn.active {
      background: rgba(56, 189, 248, 0.16);
      border-color: var(--accent-cyan);
      color: #ffffff;
      box-shadow: none;
    }

    .card-title {
      font-size: 1rem;
      font-weight: 800;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #ffffff;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .btn-header-icon {
      font-size: 0.95rem;
      padding: 5px 9px;
      min-width: 36px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.8);
      border: 1.2px solid rgba(56, 189, 248, 0.35);
      color: var(--accent-cyan);
      cursor: pointer;
      line-height: 1;
      transition: all 0.15s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    }

    .btn-header-icon:hover,
    .btn-header-icon.active {
      background: rgba(56, 189, 248, 0.2);
      border-color: var(--accent-cyan);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .btn-header-icon:active {
      transform: scale(0.92);
      background: rgba(56, 189, 248, 0.1);
    }

    .btn-header-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      display: inline-block;
      vertical-align: middle;
    }

    .btn-row-icon {
      font-size: 0.88rem;
      padding: 3px 8px;
      min-width: 30px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: var(--accent-cyan);
      cursor: pointer;
      line-height: 1;
      transition: all 0.15s ease;
    }

    .btn-row-icon:hover {
      background: rgba(56, 189, 248, 0.2);
      border-color: var(--accent-cyan);
      color: #ffffff;
    }

    .btn-row-icon:active {
      transform: scale(0.92);
    }

    .btn-row-icon svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      display: inline-block;
      vertical-align: middle;
    }

    .view-section {
      display: none;
    }

    .view-section.active {
      display: block;
    }

    .input-group {
      margin-bottom: 14px;
    }

    label {
      display: block;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    input,
    select,
    textarea {
      width: 100%;
      background-color: #08162e;
      border: 1px solid rgba(56, 189, 248, 0.25);
      color: #fff;
      padding: 11px 14px;
      border-radius: 10px;
      font-size: 0.92rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    textarea {
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      resize: vertical !important;
      min-height: 120px;
      max-height: 380px;
      line-height: 1.5;
      scrollbar-width: thin;
      scrollbar-color: rgba(56, 189, 248, 0.4) rgba(8, 22, 46, 0.8);
    }

    textarea::-webkit-scrollbar {
      width: 7px;
    }

    textarea::-webkit-scrollbar-track {
      background: rgba(8, 22, 46, 0.7);
      border-radius: 6px;
    }

    textarea::-webkit-scrollbar-thumb {
      background: rgba(56, 189, 248, 0.35);
      border-radius: 6px;
      border: 1px solid rgba(8, 22, 46, 0.6);
    }

    textarea::-webkit-scrollbar-thumb:hover {
      background: rgba(56, 189, 248, 0.65);
    }

    select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: calc(100% - 10px) center;
      background-size: 14px 14px;
      padding-right: 36px !important;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      cursor: pointer;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent-cyan);
      box-shadow: none;
      outline: none;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 800;
      font-size: 0.92rem;
      padding: 11px 18px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      width: 100%;
      transition: opacity 0.15s, transform 0.05s;
      letter-spacing: 0.3px;
      box-shadow: none !important;
    }

    .btn:active {
      transform: scale(0.98);
      opacity: 0.9;
    }

    .btn:focus,
    .btn:focus-visible {
      outline: none;
      box-shadow: none !important;
    }

    .btn-green {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      border: 1px solid #10b981;
      color: #ffffff;
      box-shadow: none !important;
    }

    .btn-blue {
      background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
      border: 1px solid #38bdf8;
      color: #ffffff;
      box-shadow: none !important;
    }

    .btn-red {
      background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
      border: 1px solid #ef4444;
      color: #ffffff;
      box-shadow: none !important;
    }

    .btn-secondary {
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #f8fafc;
    }

    .btn-outline {
      background: rgba(56, 189, 248, 0.08);
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: var(--accent-cyan);
    }

    .pill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .pill {
      background: #08162e;
      border: 1px solid rgba(56, 189, 248, 0.25);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .pill-del {
      color: var(--accent-red);
      cursor: pointer;
      font-weight: bold;
    }

    .match-swipe-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      margin-bottom: 6px;
      background: rgba(15, 23, 42, 0.45);
      touch-action: pan-y;
      user-select: none;
    }

    body.theme-light .match-swipe-wrapper {
      background: #f1f5f9;
    }

    .match-swipe-actions {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 140px;
      display: flex;
      align-items: stretch;
      z-index: 1;
      border-radius: 0 10px 10px 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .match-swipe-wrapper.is-swiped .match-swipe-actions,
    .match-swipe-wrapper.is-swiping .match-swipe-actions {
      opacity: 1;
      pointer-events: auto;
      visibility: visible;
    }

    .match-swipe-btn {
      flex: 1;
      border: none;
      color: #ffffff;
      font-weight: 800;
      font-size: 0.72rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 0 6px;
      cursor: pointer;
      outline: none;
      transition: background 0.15s ease, opacity 0.15s ease;
      line-height: 1;
      text-align: center;
    }

    .match-swipe-btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      flex-shrink: 0;
    }

    .match-swipe-btn-download {
      background: #0284c7;
    }

    .match-swipe-btn-download:hover {
      background: #0369a1;
    }

    .match-swipe-btn-delete {
      background: #dc2626;
    }

    .match-swipe-btn-delete:hover {
      background: #b91c1c;
    }

    .match-round-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 16px 0 10px 0;
      color: var(--accent-cyan);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }

    .match-round-divider::before,
    .match-round-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.05));
    }

    .match-round-divider::before {
      background: linear-gradient(270deg, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.05));
    }

    .match-round-divider-badge {
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.35);
      border-radius: 20px;
      padding: 3px 12px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
    }

    .match-min-round {
      font-size: 0.68rem;
      font-weight: 800;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.3);
      padding: 1px 5px;
      border-radius: 4px;
      margin-left: 4px;
    }

    .match-btn-options {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: var(--text-muted);
      border-radius: 4px;
      padding: 3px 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: all 0.15s ease;
      margin-left: 6px;
    }

    .match-btn-options:hover {
      color: var(--accent-cyan);
      border-color: var(--accent-cyan);
      background: rgba(56, 189, 248, 0.12);
    }

    body.theme-light .match-btn-options {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #64748b;
    }

    body.theme-light .match-btn-options:hover {
      background: #e0f2fe;
      border-color: #0284c7;
      color: #0284c7;
    }

    .match-score-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      flex-shrink: 0;
      min-width: 50px;
    }

    .match-score-periods {
      font-size: 0.68rem;
      color: var(--text-muted);
      white-space: nowrap;
      font-weight: 700;
      letter-spacing: 0.2px;
      text-align: center;
      line-height: 1;
    }

    .match-card {
      position: relative;
      z-index: 2;
      user-select: none;
      background: #091c38;
      border: 1px solid var(--card-border-subtle);
      border-radius: 10px;
      padding: 9px 12px;
      margin-bottom: 0;
      cursor: pointer;
      transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      width: 100%;
    }

    .match-card:hover {
      border-color: var(--accent-cyan);
      background: #0d264a;
      transform: translateY(-1px);
    }

    .match-card.dragging {
      opacity: 0.45 !important;
      border: 2px dashed var(--accent-cyan) !important;
      transform: scale(0.98);
      box-shadow: none;
    }

    .match-card.drag-over {
      border: 2px solid var(--accent-cyan) !important;
      background: rgba(56, 189, 248, 0.16) !important;
      transform: translateY(-2px);
    }

    .drag-handle {
      cursor: grab;
      color: #64748b;
      font-size: 1rem;
      padding: 0 4px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      transition: color 0.2s ease;
    }

    .drag-handle:hover {
      color: var(--accent-cyan);
    }

    .match-min-meta {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .match-min-num {
      font-size: 0.75rem;
      font-weight: 900;
      color: var(--accent-cyan);
      background: rgba(56, 189, 248, 0.15);
      border: 1px solid rgba(56, 189, 248, 0.3);
      padding: 2px 6px;
      border-radius: 4px;
      line-height: 1;
    }

    .status-badge {
      padding: 2.5px 8px;
      border-radius: 5px;
      font-size: 0.72rem;
      text-transform: uppercase;
      font-weight: 800;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .status-upcoming {
      background: rgba(56, 189, 248, 0.12);
      color: #38bdf8;
      border: 1.2px solid rgba(56, 189, 248, 0.45);
    }

    .status-live {
      background: rgba(224, 90, 71, 0.2);
      color: #e05a47;
      border: 1.2px solid rgba(224, 90, 71, 0.55);
    }

    .status-paused {
      background: rgba(245, 158, 11, 0.2);
      color: #fbbf24;
      border: 1.2px solid rgba(245, 158, 11, 0.55);
    }

    .status-finished {
      background: rgba(16, 185, 129, 0.18);
      color: #34d399;
      border: 1.2px solid rgba(16, 185, 129, 0.55);
    }

    .match-badge-outline {
      display: inline-flex;
      align-items: center;
      font-size: 0.72rem;
      font-weight: 900;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.12);
      border: 1.2px solid rgba(56, 189, 248, 0.45);
      padding: 2.5px 8px;
      border-radius: 5px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    /* Match Card Status Variants (Finished vs Upcoming vs Live) */
    .match-card.match-card-finished {
      background: #081a33;
      border: 1px solid rgba(16, 185, 129, 0.25);
      border-left: 4.5px solid #10b981;
    }

    .match-card.match-card-finished:hover {
      background: #0b2242;
      border-color: rgba(16, 185, 129, 0.5);
      border-left-color: #34d399;
    }

    .match-card.match-card-upcoming {
      background: rgba(6, 16, 36, 0.62);
      border: 1.2px dashed rgba(56, 189, 248, 0.35);
      border-left: 4.5px solid #0284c7;
    }

    .match-card.match-card-upcoming:hover {
      background: rgba(10, 24, 52, 0.85);
      border-color: rgba(56, 189, 248, 0.6);
      border-left-color: #38bdf8;
    }

    .match-card.match-card-live {
      background: rgba(28, 10, 20, 0.85);
      border: 1.5px solid rgba(239, 68, 68, 0.6);
      border-left: 4.5px solid #ef4444;
      box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
    }

    /* Score and VS Pills */
    .match-score-pill.score-pill-finished {
      background: rgba(16, 185, 129, 0.16);
      border: 1.2px solid #10b981;
      color: #34d399;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
    }

    .match-score-pill.score-pill-live {
      background: rgba(239, 68, 68, 0.22);
      border: 1.2px solid #ef4444;
      color: #fca5a5;
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    .match-vs-pill {
      background: rgba(12, 24, 46, 0.85);
      border: 1.2px dashed rgba(56, 189, 248, 0.45);
      color: #38bdf8;
      font-size: 0.76rem;
      font-weight: 900;
      padding: 3px 12px;
      border-radius: 6px;
      letter-spacing: 1.5px;
      display: inline-block;
      text-align: center;
      line-height: 1.2;
    }

    .match-card-finished .match-min-num {
      background: rgba(16, 185, 129, 0.14);
      border-color: rgba(16, 185, 129, 0.35);
      color: #34d399;
    }

    .match-card-upcoming .match-min-num {
      background: rgba(56, 189, 248, 0.12);
      border-color: rgba(56, 189, 248, 0.3);
      color: #38bdf8;
    }

    .match-card-live .match-min-num {
      background: rgba(239, 68, 68, 0.18);
      border-color: rgba(239, 68, 68, 0.4);
      color: #f87171;
    }

    /* Winner vs Defeated Team Highlight */
    .team-winner .team-text-truncate {
      color: #ffffff;
      font-weight: 800;
    }

    .team-defeated .team-text-truncate {
      color: #94a3b8;
      font-weight: 600;
      opacity: 0.75;
    }

    .team-draw .team-text-truncate {
      color: #f1f5f9;
      font-weight: 700;
    }

    .team-upcoming .team-text-truncate {
      color: #e2e8f0;
      font-weight: 700;
    }

    .match-teams-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 0.9rem;
      min-width: 0;
    }

    .team-name {
      display: flex;
      align-items: center;
      min-width: 0;
      overflow: hidden;
    }

    .team-home {
      justify-content: flex-end;
      text-align: right;
      gap: 6px;
    }

    .team-away {
      justify-content: flex-start;
      text-align: left;
      gap: 6px;
    }

    .team-text-truncate {
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      line-height: 1.25;
      word-break: break-word;
      min-width: 0;
      white-space: normal;
    }

    /* Standings & Top Scorers Theme Classes */
    .standings-pts {
      color: #38bdf8;
      font-weight: 800;
    }

    .top-scorer-player-name {
      color: #ffffff;
      font-weight: 700;
    }

    .top-scorer-goals-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2.5px 6.5px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.15);
      border: 1px solid rgba(56, 189, 248, 0.45);
      color: #38bdf8;
      font-weight: 800;
      font-size: 0.78rem;
      letter-spacing: 0.2px;
      white-space: nowrap;
    }

    .top-scorer-assists-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2.5px 6.5px;
      border-radius: 4px;
      background: rgba(168, 85, 247, 0.18);
      border: 1px solid rgba(168, 85, 247, 0.45);
      color: #c084fc;
      font-weight: 800;
      font-size: 0.78rem;
      letter-spacing: 0.2px;
      white-space: nowrap;
    }

    .btn-edit-match-inline {
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 6px;
      width: auto;
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.4);
      background: transparent;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      transition: all 0.15s ease;
    }

    /* Assist Bottom Sheet & Modal Edit Theme Classes */
    .assist-sheet-title {
      font-size: 1.15rem;
      font-weight: 900;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .assist-sheet-subtitle {
      font-size: 0.8rem;
      font-weight: 800;
      color: #38bdf8;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 4px;
    }

    .assist-sheet-desc {
      font-size: 0.72rem;
      color: #94a3b8;
      margin-top: 2px;
    }

    .assist-picker-btn {
      padding: 10px 8px;
      font-weight: 800;
      font-size: 0.85rem;
      background: #1e293b;
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: #fff;
      border-radius: 8px;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: all 0.15s;
      cursor: pointer;
    }

    .assist-solo-btn {
      width: 100%;
      padding: 10px;
      font-weight: 800;
      font-size: 0.82rem;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    /* Ultra-Compact Minimalist Modal Edit Match Result */
    .edit-match-modal-card {
      max-width: 580px;
      max-height: 92vh;
      overflow-y: auto;
      border: 1.5px solid rgba(56, 189, 248, 0.35);
      border-radius: 14px;
      box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8);
      padding: 14px 16px;
    }

    .edit-compact-scoreboard {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      background: rgba(8, 22, 46, 0.9);
      border: 1.2px solid rgba(56, 189, 248, 0.25);
      border-radius: 10px;
      padding: 8px 12px;
      margin-bottom: 10px;
      gap: 10px;
    }

    .compact-score-team {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .compact-score-team.home {
      justify-content: flex-end;
      text-align: right;
    }

    .compact-score-team.away {
      justify-content: flex-start;
      text-align: left;
    }

    .compact-team-name {
      font-size: 0.88rem;
      font-weight: 800;
      color: #ffffff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
    }

    .main-score-control {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: rgba(15, 23, 42, 0.85);
      border: 1.2px solid rgba(56, 189, 248, 0.4);
      border-radius: 8px;
      padding: 2px 4px;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
      flex-shrink: 0;
    }

    .btn-main-score-step {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
      font-size: 1.15rem;
      font-weight: 900;
      cursor: pointer;
      line-height: 1;
      transition: all 0.12s ease;
      user-select: none;
      padding: 0;
    }

    .btn-main-score-step:hover {
      transform: scale(1.08);
    }

    .btn-main-score-step:active {
      transform: scale(0.92);
    }

    .btn-main-score-step.minus:hover {
      background: rgba(248, 113, 113, 0.25);
      border-color: #f87171;
      color: #f87171;
    }

    .btn-main-score-step.plus:hover {
      background: rgba(52, 211, 153, 0.25);
      border-color: #34d399;
      color: #34d399;
    }

    .compact-score-input {
      width: 38px;
      height: 28px;
      text-align: center;
      font-weight: 900;
      font-size: 1.25rem;
      padding: 0;
      background: transparent;
      border: none;
      color: #38bdf8;
      outline: none;
      flex-shrink: 0;
      appearance: textfield;
      -moz-appearance: textfield;
    }

    .compact-score-input::-webkit-outer-spin-button,
    .compact-score-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .compact-score-input:focus {
      outline: none;
    }

    body.theme-light .main-score-control {
      background: #f1f5f9;
      border-color: rgba(2, 132, 199, 0.4);
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    body.theme-light .btn-main-score-step {
      background: #e2e8f0;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    .compact-score-mid {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding: 0 4px;
    }

    .compact-match-badge {
      font-size: 0.65rem;
      font-weight: 900;
      color: #fbbf24;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.35);
      padding: 2px 6px;
      border-radius: 4px;
      margin-bottom: 2px;
      white-space: nowrap;
    }

    .compact-score-colon {
      font-size: 1.3rem;
      font-weight: 900;
      color: #64748b;
    }

    .compact-total-sub {
      font-size: 0.72rem;
      font-weight: 800;
      color: #34d399;
      margin-top: 2px;
      white-space: nowrap;
    }

    /* Dual Team Grid */
    .edit-dual-team-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
      margin-bottom: 10px;
    }

    @media (max-width: 520px) {
      .edit-dual-team-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .edit-team-column {
      background: rgba(10, 25, 52, 0.75);
      border: 1px solid rgba(56, 189, 248, 0.2);
      border-radius: 10px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      transition: border-color 0.2s ease, background 0.2s ease;
      min-width: 0;
      overflow: hidden;
    }

    .edit-team-column.col-state-winner {
      background: rgba(6, 78, 59, 0.22);
      border-color: rgba(16, 185, 129, 0.55);
    }

    .edit-team-column.col-state-winner .edit-col-title {
      color: #34d399 !important;
    }

    .edit-team-column.col-state-winner .btn-toggle-team-col {
      background: rgba(16, 185, 129, 0.25);
      border-color: #10b981;
      color: #34d399;
    }

    .edit-team-column.col-state-winner .btn-toggle-team-col:hover {
      background: rgba(16, 185, 129, 0.45);
      color: #ffffff;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    .edit-team-column.col-state-loser {
      background: rgba(69, 10, 10, 0.18);
      border-color: rgba(239, 68, 68, 0.4);
    }

    .edit-team-column.col-state-loser .edit-col-title {
      color: #f87171 !important;
    }

    .edit-team-column.col-state-loser .btn-toggle-team-col {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.45);
      color: #f87171;
    }

    .edit-team-column.col-state-loser .btn-toggle-team-col:hover {
      background: rgba(239, 68, 68, 0.35);
      color: #ffffff;
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    }

    .edit-team-column.col-state-draw {
      background: rgba(10, 25, 52, 0.75);
      border-color: rgba(148, 163, 184, 0.3);
    }

    .col-outcome-badge {
      font-size: 0.62rem;
      font-weight: 900;
      padding: 1.5px 6px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      line-height: 1.2;
    }

    .col-outcome-badge.outcome-win {
      background: rgba(16, 185, 129, 0.22);
      border: 1px solid #10b981;
      color: #34d399;
      box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
    }

    .col-outcome-badge.outcome-loss {
      background: rgba(239, 68, 68, 0.18);
      border: 1px solid rgba(239, 68, 68, 0.6);
      color: #f87171;
    }

    .col-outcome-badge.outcome-draw {
      background: rgba(148, 163, 184, 0.15);
      border: 1px solid #64748b;
      color: #94a3b8;
    }

    .edit-team-col-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 4px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      overflow: hidden;
      min-width: 0;
    }

    .edit-col-title {
      font-size: 0.8rem;
      font-weight: 800;
      color: #38bdf8;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
      flex-shrink: 1;
    }

    .edit-col-summary {
      font-size: 0.68rem;
      font-weight: 800;
      color: #94a3b8;
    }

    .btn-toggle-team-col {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.15);
      border: 1px solid rgba(56, 189, 248, 0.45);
      color: #38bdf8;
      cursor: pointer;
      transition: all 0.18s ease;
      padding: 0;
      flex-shrink: 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .btn-toggle-team-col:hover {
      background: rgba(56, 189, 248, 0.3);
      border-color: #38bdf8;
      color: #ffffff;
      transform: scale(1.08);
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
    }

    .btn-toggle-team-col:active {
      transform: scale(0.92);
    }

    .compact-gk-bar {
      display: flex;
      align-items: center;
      gap: 4px;
      background: rgba(8, 20, 42, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 3px 5px;
    }

    .compact-gk-select {
      flex: 1;
      min-width: 0;
      padding: 3px 4px;
      font-size: 0.72rem;
      font-weight: 700;
      border-radius: 4px;
      background: rgba(12, 30, 60, 0.95);
      border: 1px solid var(--card-border);
      color: var(--text-main);
    }

    .compact-saves-group {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: 4px;
      padding: 1px 3px;
      flex-shrink: 0;
    }

    .compact-btn-step {
      background: rgba(15, 34, 64, 0.95);
      border: 1.5px solid rgba(56, 189, 248, 0.45);
      color: #ffffff;
      font-size: 1.05rem;
      font-weight: 900;
      width: 24px;
      height: 24px;
      border-radius: 5px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      line-height: 1;
      transition: all 0.15s ease;
      touch-action: manipulation;
      user-select: none;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .compact-btn-step:hover {
      background: rgba(56, 189, 248, 0.35);
      border-color: #38bdf8;
      color: #ffffff;
      transform: scale(1.08);
      box-shadow: 0 0 6px rgba(56, 189, 248, 0.45);
    }

    .compact-btn-step:active {
      transform: scale(0.92);
    }

    .compact-btn-step.btn-minus {
      background: rgba(255, 255, 255, 0.08);
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      color: #cbd5e1;
    }

    .compact-btn-step.btn-minus:hover {
      background: rgba(255, 255, 255, 0.22);
      border-color: #ffffff;
      color: #ffffff;
    }

    .compact-btn-step.btn-minus.active {
      background: rgba(239, 68, 68, 0.25);
      border: 1.5px solid #ef4444;
      color: #fca5a5;
    }

    .compact-btn-step.btn-minus.active:hover {
      background: #ef4444;
      border-color: #f87171;
      color: #ffffff;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    }

    .compact-btn-step.add-green {
      background: rgba(16, 185, 129, 0.25);
      border: 1.5px solid #10b981;
      color: #34d399;
    }

    .compact-btn-step.add-green:hover {
      background: #10b981;
      border-color: #34d399;
      color: #ffffff;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }

    .compact-btn-step.add-gold {
      background: rgba(245, 158, 11, 0.25);
      border: 1.5px solid #f59e0b;
      color: #fbbf24;
    }

    .compact-btn-step.add-gold:hover {
      background: #f59e0b;
      border-color: #fbbf24;
      color: #0b172a;
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    }

    .compact-btn-step.add-cyan {
      background: rgba(56, 189, 248, 0.25);
      border: 1.5px solid #38bdf8;
      color: #38bdf8;
    }

    .compact-btn-step.add-cyan:hover {
      background: #38bdf8;
      border-color: #7dd3fc;
      color: #0b172a;
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    }

    .compact-step-val {
      font-size: 0.92rem;
      font-weight: 900;
      min-width: 18px;
      text-align: center;
      color: #f8fafc;
      font-variant-numeric: tabular-nums;
    }

    .compact-step-val.val-green {
      color: #34d399;
      text-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
    }

    .compact-step-val.val-gold {
      color: #fbbf24;
      text-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
    }

    .compact-step-val.val-cyan {
      color: #38bdf8;
      text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
    }

    .compact-cs-badge {
      font-size: 0.6rem;
      font-weight: 800;
      padding: 1px 4px;
      border-radius: 3px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .compact-cs-badge.cs-clean {
      background: rgba(16, 185, 129, 0.2);
      border: 1px solid #10b981;
      color: #34d399;
    }

    .compact-cs-badge.cs-conceded {
      background: rgba(100, 116, 139, 0.15);
      border: 1px solid #64748b;
      color: #94a3b8;
    }

    /* Compact Player Row */
    .compact-player-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(12, 30, 58, 0.55);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 7px;
      padding: 4px 7px;
      gap: 6px;
      transition: all 0.15s ease;
      overflow: hidden;
      min-width: 0;
    }

    .compact-player-row.has-active-stat {
      background: rgba(12, 38, 78, 0.85);
      border-color: rgba(56, 189, 248, 0.35);
    }

    .compact-player-name {
      font-size: 0.82rem;
      font-weight: 700;
      color: #f1f5f9;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
    }

    .compact-player-controls {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .compact-stat-box {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      border-radius: 7px;
      padding: 2.5px 5px;
      transition: all 0.2s ease;
      background: rgba(10, 24, 48, 0.9);
      border: 1.2px solid rgba(56, 189, 248, 0.35);
      opacity: 1;
    }

    /* GOL Stepper Box */
    .compact-stat-box.stat-box-gold {
      background: rgba(18, 25, 48, 0.95);
      border: 1.3px solid rgba(245, 158, 11, 0.45);
    }

    .compact-stat-box.stat-box-gold:hover {
      border-color: #fbbf24;
    }

    /* BERWARNA EMAS MENYALA ketika GOL > 0 */
    .compact-stat-box.stat-box-active-gold {
      background: rgba(245, 158, 11, 0.2);
      border: 1.5px solid #f59e0b;
      box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    }

    /* ASSIST Stepper Box */
    .compact-stat-box.stat-box-cyan {
      background: rgba(10, 26, 52, 0.95);
      border: 1.3px solid rgba(56, 189, 248, 0.45);
    }

    .compact-stat-box.stat-box-cyan:hover {
      border-color: #38bdf8;
    }

    /* BERWARNA CYAN MENYALA ketika ASSIST > 0 */
    .compact-stat-box.stat-box-active-cyan {
      background: rgba(56, 189, 248, 0.2);
      border: 1.5px solid #38bdf8;
      box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
    }

    .compact-stat-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.62rem;
      margin: 0 1px;
    }

    /* ==========================================================================
       DRAFT ARENA & SHUFFLE ANIMATION (ULTRA-MINIMALIST FIXED SLOTS)
       ========================================================================== */
    .draft-arena-card {
      max-width: 580px;
      width: 94%;
      max-height: 94vh;
      overflow-y: auto;
      background: #091c38;
      border: 1px solid #1e3a5f;
      border-radius: 12px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
      padding: 14px 16px;
      position: relative;
      animation: draftModalPop 0.2s ease-out;
    }

    @keyframes draftModalPop {
      0% {
        transform: scale(0.95);
        opacity: 0;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .draft-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      gap: 8px;
    }

    .draft-header-controls {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .btn-draft-speed {
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: #38bdf8;
      font-weight: 800;
      font-size: 0.72rem;
      padding: 3px 8px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .btn-draft-skip {
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #fbbf24;
      font-weight: 800;
      font-size: 0.72rem;
      padding: 3px 10px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    /* Minimal progress bar */
    .draft-progress-wrapper {
      width: 100%;
      height: 4px;
      background: rgba(15, 23, 42, 0.9);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 10px;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .draft-progress-bar {
      height: 100%;
      background: #10b981;
      transition: width 0.18s ease;
    }

    /* Teams Grid (Fixed slots layout) */
    .draft-teams-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }

    .draft-team-card {
      background: rgba(10, 24, 50, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 7px;
      padding: 7px 8px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      transition: border-color 0.15s ease;
      min-width: 0;
    }

    .draft-team-card.is-active-target {
      border-color: #38bdf8;
      background: #0f274a;
    }

    .draft-team-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 3px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .draft-team-card-name {
      font-size: 0.76rem;
      font-weight: 800;
      color: #ffffff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
    }

    .draft-team-count-badge {
      font-size: 0.65rem;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.12);
      flex-shrink: 0;
    }

    .draft-team-player-list {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    /* Pre-rendered Fixed Slot Item */
    .draft-player-pill {
      height: 26px;
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 0 6px;
      font-size: 0.72rem;
      font-weight: 700;
      color: #f1f5f9;
      background: rgba(15, 30, 60, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      min-width: 0;
      box-sizing: border-box;
      transition: all 0.12s ease;
    }

    .draft-player-pill.placeholder {
      color: #475569;
      background: rgba(15, 23, 42, 0.4);
      border: 1px dashed rgba(255, 255, 255, 0.08);
    }

    .draft-player-pill.is-spinning {
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.15);
      border: 1px solid #38bdf8;
      font-weight: 800;
    }

    .draft-player-pill.is-locked {
      color: #ffffff;
      background: rgba(15, 30, 60, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.12);
      font-weight: 700;
    }

    /* Minimalist Selesai Footer */
    .draft-celebration-footer {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px;
      padding-top: 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .op-goal-select {
      background-color: #090e17;
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: #fff;
      font-size: 0.82rem;
      font-weight: 700;
      border-radius: 6px;
      padding: 3px 18px 3px 6px;
      flex: 1;
      min-width: 0;
      outline: none;
      cursor: pointer;
      max-width: 160px;
    }

    .team-tag-dot {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0;
      vertical-align: middle;
    }

    .match-score-pill {
      background: rgba(56, 189, 248, 0.18);
      border: 1.2px solid var(--accent-cyan);
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.95rem;
      font-weight: 900;
      color: var(--accent-cyan);
      min-width: 44px;
      text-align: center;
    }

    .match-min-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .match-teams-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      margin: 2px 0;
    }

    @media (max-width: 650px) {
      .match-card {
        padding: 8px 10px;
      }
    }

    /* Scoreboard Operator Screen */
    .operator-header {
      background: rgba(8, 22, 46, 0.9);
      border: 1.5px solid var(--card-border);
      border-radius: 12px;
      padding: 8px 12px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-sizing: border-box;
    }

    .timer-info-side {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      flex-shrink: 0;
    }

    .timer-period-label {
      font-weight: 800;
      font-size: 0.78rem;
      color: #f59e0b;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      line-height: 1.1;
      margin-bottom: 2px;
    }

    .timer-display {
      font-size: 2.3rem;
      font-weight: 900;
      letter-spacing: 0.5px;
      color: #f8fafc;
      text-shadow: none;
      margin: 0;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }

    .timer-btn-side {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 1;
      justify-content: flex-end;
      min-width: 0;
    }

    .timer-btn-side .btn {
      height: 38px;
      padding: 0 6px;
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border-radius: 8px;
      white-space: nowrap;
      box-sizing: border-box;
      transition: all 0.15s ease;
      flex: 1;
      min-width: 0;
    }

    .timer-btn-side #btn-timer-toggle,
    .timer-btn-side #st-btn-timer-toggle {
      flex: 1.15;
    }

    .timer-btn-side #btn-finish-action,
    .timer-btn-side #st-btn-finish-action {
      flex: 1.15;
    }

    /* Teams Operator 2-Column Side-by-Side Grid */
    .teams-operator-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
      margin-bottom: 12px;
      width: 100%;
      box-sizing: border-box;
    }

    .team-op-box {
      background: rgba(8, 22, 46, 0.9);
      border: 1.5px solid var(--card-border);
      border-radius: 12px;
      padding: 8px 6px;
      text-align: center;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      min-width: 0;
      overflow: hidden;
      box-sizing: border-box;
    }

    .team-op-name {
      font-size: 0.88rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.3px;
    }

    .team-op-score {
      font-size: 2.5rem;
      font-weight: 900;
      line-height: 1;
      color: #ffffff;
      margin: 2px 0 6px 0;
      font-variant-numeric: tabular-nums;
      text-shadow: none;
    }

    .score-control-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 5px;
      margin-bottom: 8px;
    }

    .btn-goal {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      border: 1px solid #10b981;
      color: #ffffff;
      font-weight: 900;
      font-size: 0.82rem;
      padding: 6px 4px;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: none !important;
      transition: all 0.15s ease;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-goal:active {
      transform: scale(0.96);
    }

    .btn-minus {
      background: rgba(239, 68, 68, 0.2);
      border: 1px solid rgba(239, 68, 68, 0.4);
      color: #f87171;
      font-weight: 800;
      font-size: 0.78rem;
      padding: 6px 4px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-minus:active {
      transform: scale(0.96);
    }

    .foul-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(4, 13, 31, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 5px 8px;
      border-radius: 8px;
      margin-bottom: 10px;
      font-size: 0.78rem;
    }

    .foul-controls {
      display: flex;
      gap: 4px;
    }

    .btn-mini {
      background: #08162e;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 4px;
      cursor: pointer;
    }

    .btn-mini:active {
      transform: scale(0.92);
    }

    .st-dur-btn {
      padding: 4px 8px;
      font-size: 0.74rem;
      border-radius: 6px;
      transition: all 0.15s ease;
    }

    .st-dur-btn.active {
      background: rgba(56, 189, 248, 0.25);
      border-color: var(--accent-cyan);
      color: #ffffff;
      box-shadow: none;
    }

    .player-roster-box {
      border-top: 1px dashed rgba(56, 189, 248, 0.2);
      padding-top: 8px;
      text-align: left;
      flex: 1;
    }

    .roster-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .roster-title {
      font-size: 0.72rem;
      font-weight: 800;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .roster-actions-bottom {
      display: flex;
      gap: 5px;
      margin-top: 6px;
      width: 100%;
      box-sizing: border-box;
    }

    .btn-roster-bottom-gk {
      flex: 1;
      background: rgba(2, 132, 199, 0.2);
      border: 1px solid var(--accent-cyan);
      color: var(--accent-cyan);
      font-size: 0.72rem;
      font-weight: 800;
      padding: 5px 6px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      white-space: nowrap;
      transition: all 0.15s ease;
      min-width: 0;
    }

    .btn-roster-bottom-gk:hover {
      background: var(--accent-cyan);
      color: #041026;
    }

    .btn-roster-bottom-add {
      flex: 1;
      background: rgba(14, 165, 233, 0.14);
      border: 1px solid rgba(56, 189, 248, 0.4);
      color: #ffffff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 5px 6px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      white-space: nowrap;
      transition: all 0.15s ease;
      min-width: 0;
    }

    .btn-roster-bottom-add:hover {
      background: rgba(14, 165, 233, 0.32);
      border-color: #38bdf8;
    }

    body.theme-light .btn-roster-bottom-gk {
      background: #e0f2fe;
      border-color: #0284c7;
      color: #0369a1;
    }

    body.theme-light .btn-roster-bottom-gk:hover {
      background: #0284c7;
      color: #ffffff;
    }

    body.theme-light .btn-roster-bottom-add {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    body.theme-light .btn-roster-bottom-add:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
    }

    .roster-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 100%;
      box-sizing: border-box;
    }

    .unified-period-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(8, 22, 46, 0.88);
      border: 1.2px solid var(--card-border);
      border-radius: 12px;
      padding: 8px 12px;
      margin-bottom: 12px;
      gap: 10px;
    }

    .unified-periods-grid {
      display: flex;
      gap: 6px;
      flex: 1;
      min-width: 0;
    }

    .unified-period-btn {
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      padding: 5px 8px;
      text-align: center;
      cursor: pointer;
      color: #94a3b8;
      transition: all 0.15s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      min-width: 0;
    }

    .unified-period-btn:hover {
      background: rgba(56, 189, 248, 0.15);
      border-color: rgba(56, 189, 248, 0.4);
      color: #ffffff;
    }

    .unified-period-btn.active {
      background: rgba(56, 189, 248, 0.22);
      border-color: var(--accent-cyan);
      color: #ffffff;
      box-shadow: none;
    }

    .unified-period-btn.locked {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .btn-p-label {
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .btn-p-score {
      font-size: 0.84rem;
      font-weight: 900;
      color: var(--accent-cyan);
    }

    .unified-total-box {
      text-align: right;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .unified-total-label {
      font-size: 0.68rem;
      font-weight: 800;
      color: #94a3b8;
      letter-spacing: 0.5px;
    }

    .unified-total-val {
      font-size: 1.15rem;
      font-weight: 900;
      color: #ffffff;
      letter-spacing: 1px;
    }

    /* Roster Player Items */
    .roster-player-item {
      position: relative;
      background: rgba(8, 22, 46, 0.85);
      border: 1px solid rgba(56, 189, 248, 0.2);
      border-radius: 8px;
      margin-bottom: 4px;
      width: 100%;
      box-sizing: border-box;
    }

    .roster-player-inner {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 5px 8px;
      width: 100%;
      background: #091c38;
      border-radius: 7px;
      user-select: none;
      box-sizing: border-box;
      min-width: 0;
      gap: 3px;
    }

    .btn-p-set-gk {
      background: rgba(2, 132, 199, 0.22);
      border: 1px solid var(--accent-cyan);
      color: var(--accent-cyan);
      font-size: 0.72rem;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-p-set-gk:hover {
      background: var(--accent-cyan);
      color: #041026;
    }

    .btn-p-set-gk2 {
      background: rgba(14, 165, 233, 0.16);
      border: 1px dashed rgba(56, 189, 248, 0.6);
      color: #7dd3fc;
      font-size: 0.68rem;
      padding: 2px 6px;
    }

    .btn-p-set-gk2:hover {
      background: #0284c7;
      color: #ffffff;
      border-style: solid;
    }

    .player-row-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      gap: 6px;
    }

    .player-name-info {
      display: flex;
      align-items: center;
      overflow: hidden;
      flex: 1;
      min-width: 0;
      cursor: default;
    }

    .player-name-text {
      font-weight: 700;
      font-size: 0.88rem;
      color: var(--text-main);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      line-height: 1.2;
    }

    .player-badges-row {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 4px;
      overflow-x: auto;
      scrollbar-width: none;
      width: 100%;
      padding-top: 1px;
    }

    .player-badges-row::-webkit-scrollbar {
      display: none;
    }

    .badge-svg-icon {
      width: 10px;
      height: 10px;
      flex-shrink: 0;
      display: inline-block;
      vertical-align: middle;
      margin-right: 2.5px;
    }

    .gk-badge,
    .cleansheet-badge,
    .save-count-badge,
    .goal-count-badge,
    .assist-count-badge {
      font-size: 0.62rem;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      line-height: 1.15;
      flex-shrink: 0;
      letter-spacing: 0.2px;
      white-space: nowrap;
    }

    .gk-badge {
      background: rgba(2, 132, 199, 0.22);
      border: 1px solid #0284c7;
      color: #38bdf8;
    }

    .cleansheet-badge {
      background: rgba(16, 185, 129, 0.25);
      border: 1px solid #10b981;
      color: #34d399;
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
    }

    .save-count-badge,
    .goal-count-badge,
    .assist-count-badge {
      cursor: pointer;
      user-select: none;
      transition: all 0.15s ease;
    }

    .save-count-badge {
      background: rgba(16, 185, 129, 0.2);
      border: 1px solid #10b981;
      color: #34d399;
    }

    .goal-count-badge {
      background: rgba(245, 158, 11, 0.2);
      border: 1px solid #f59e0b;
      color: #fbbf24;
    }

    .assist-count-badge {
      background: rgba(168, 85, 247, 0.2);
      border: 1px solid #a855f7;
      color: #c084fc;
    }

    .save-count-badge:hover,
    .goal-count-badge:hover,
    .assist-count-badge:hover {
      background: rgba(239, 68, 68, 0.25);
      border-color: #ef4444;
      color: #fca5a5;
    }

    .save-count-badge:active,
    .goal-count-badge:active,
    .assist-count-badge:active {
      transform: scale(0.92);
    }

    .player-actions {
      display: flex;
      gap: 4px;
      align-items: center;
      flex-shrink: 0;
    }

    .btn-p-goal-add {
      background: rgba(16, 185, 129, 0.22);
      border: 1.2px solid #10b981;
      color: #34d399;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 800;
      font-size: 0.72rem;
      padding: 3px 7px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      white-space: nowrap;
      line-height: 1;
      transition: all 0.15s ease;
    }

    .btn-p-goal-add:hover {
      background: #10b981;
      color: #ffffff;
    }

    .btn-p-gk-select {
      background: rgba(2, 132, 199, 0.22);
      border: 1.2px solid #0284c7;
      color: #38bdf8;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 800;
      font-size: 0.72rem;
      padding: 3px 7px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      white-space: nowrap;
      line-height: 1;
      transition: all 0.15s ease;
    }

    .btn-p-gk-select:hover {
      background: #0284c7;
      color: #ffffff;
    }

    .btn-p-save-add {
      background: rgba(56, 189, 248, 0.22);
      border: 1.2px solid #38bdf8;
      color: #7dd3fc;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 800;
      font-size: 0.72rem;
      padding: 3px 7px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      white-space: nowrap;
      line-height: 1;
      transition: all 0.15s ease;
    }

    .btn-p-save-add:hover {
      background: #38bdf8;
      color: #07172e;
    }

    .save-count-badge {
      font-size: 0.68rem;
      font-weight: 800;
      background: rgba(56, 189, 248, 0.18);
      border: 1px solid rgba(56, 189, 248, 0.4);
      color: #38bdf8;
      border-radius: 4px;
      padding: 1.5px 5px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 2px;
      transition: all 0.12s ease;
    }

    .save-count-badge:hover {
      background: rgba(239, 68, 68, 0.25);
      border-color: #ef4444;
      color: #f87171;
    }

    .btn-p-goal-min {
      background: rgba(239, 68, 68, 0.25);
      border: 1.2px solid #ef4444;
      color: #f87171;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 900;
      font-size: 0.95rem;
      width: 26px;
      height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      padding: 0;
      line-height: 1;
    }

    /* Tables (Klasemen, Top Skor) */
    .table-container {
      overflow-x: auto;
      margin-bottom: 8px;
      border-radius: 10px;
      border: 1px solid var(--card-border-subtle);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }

    th {
      background: rgba(12, 39, 82, 0.75);
      color: var(--accent-cyan);
      font-weight: 800;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 10px 8px;
      text-align: center;
      border-bottom: 1.5px solid rgba(56, 189, 248, 0.3);
    }

    td {
      padding: 10px 8px;
      text-align: center;
      border-bottom: 1px solid rgba(56, 189, 248, 0.1);
      color: #f1f5f9;
    }

    tr:nth-child(even) td {
      background: rgba(8, 22, 46, 0.4);
    }

    th.team-col,
    td.team-col,
    th.player-col,
    td.player-col,
    th.text-left,
    td.text-left {
      text-align: left !important;
    }

    td.team-col {
      font-weight: 700;
    }

    .table-row-clickable {
      cursor: pointer;
      transition: background-color 0.18s ease, transform 0.1s ease;
      user-select: none;
    }

    .table-row-clickable:hover td {
      background-color: rgba(56, 189, 248, 0.12) !important;
    }

    .table-row-clickable:active {
      transform: scale(0.995);
    }

    .btn-filter-team-match {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #94a3b8;
      font-size: 0.74rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-filter-team-match:hover {
      background: rgba(56, 189, 248, 0.15);
      color: #ffffff;
    }

    .btn-filter-team-match.active {
      background: rgba(56, 189, 248, 0.22);
      border-color: #38bdf8;
      color: #38bdf8;
    }

    /* Modals & Dialogs */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(2, 8, 20, 0.8);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 999;
    }

    .modal-card {
      background: var(--card-bg);
      border: 2px solid var(--card-border);
      border-radius: 18px;
      width: 100%;
      padding: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    }

    .custom-dialog-card {
      background: #0f172a;
      border: 1px solid rgba(56, 189, 248, 0.4);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
      color: #ffffff;
      border-radius: 16px;
      max-width: 400px;
      text-align: center;
      padding: 22px 20px;
      animation: modalFadeIn 0.2s ease-out;
    }

    .custom-dialog-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 8px;
    }

    .custom-dialog-message {
      font-size: 0.88rem;
      color: #cbd5e1;
      margin-bottom: 14px;
      line-height: 1.4;
    }

    .custom-dialog-subdetail {
      background: rgba(30, 41, 59, 0.8);
      border: 1px solid rgba(56, 189, 248, 0.25);
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 18px;
      color: #38bdf8;
      font-size: 0.86rem;
      font-weight: 800;
    }

    .custom-prompt-stepper-btn {
      width: 44px;
      height: 46px;
      font-size: 1.3rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(30, 41, 59, 0.9);
      border: 1.5px solid rgba(56, 189, 248, 0.3);
      border-radius: 10px;
      color: #38bdf8;
      cursor: pointer;
      user-select: none;
    }

    .custom-prompt-input {
      background: rgba(30, 41, 59, 0.9);
      border: 1.5px solid rgba(56, 189, 248, 0.45);
      border-radius: 10px;
      color: #ffffff;
      outline: none;
    }

    /* Team Minimal Cards Player List */
    .team-min-player-name {
      color: #f1f5f9;
      font-weight: 700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      min-width: 0;
    }

    .team-min-player-num {
      color: #94a3b8;
      font-size: 0.68rem;
      font-weight: 700;
    }

    .team-min-no-player {
      color: #64748b;
      font-size: 0.74rem;
      font-style: italic;
      padding: 2px 0;
    }

    /* Team Quota Badges */
    .team-quota-badge {
      font-size: 0.72rem;
      padding: 2.5px 9px;
      border-radius: 6px;
      font-weight: 700;
      display: inline-block;
      border: 1px solid;
    }

    .team-quota-badge.quota-pending {
      background: rgba(245, 158, 11, 0.22);
      border-color: #f59e0b;
      color: #fef08a;
    }

    .team-quota-badge.quota-progress {
      background: rgba(234, 88, 12, 0.22);
      border-color: #fb923c;
      color: #fed7aa;
    }

    .team-quota-badge.quota-complete {
      background: rgba(16, 185, 129, 0.22);
      border-color: #10b981;
      color: #6ee7b7;
    }

    .team-quota-badge.quota-extra {
      background: rgba(56, 189, 248, 0.15);
      border-color: rgba(56, 189, 248, 0.35);
      color: #38bdf8;
    }

    .modal-player-add-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #0f172a;
      padding: 5px 8px;
      border-radius: 6px;
      border: 1px solid rgba(56, 189, 248, 0.3);
      margin-bottom: 6px;
    }

    .modal-player-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #0f172a;
      padding: 5px 8px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      margin-bottom: 5px;
    }

    .modal-player-input {
      flex: 1;
      min-width: 0;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid transparent;
      border-radius: 4px;
      padding: 5px 8px;
      color: #ffffff;
      font-weight: 700;
      font-size: 0.86rem;
      transition: all 0.15s ease;
    }

    .pwa-guide-box {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(56, 189, 248, 0.2);
      border-radius: 10px;
      padding: 10px 12px;
      margin-bottom: 10px;
      color: #cbd5e1;
    }

    .team-dist-detail-box {
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(56, 189, 248, 0.35);
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 0.78rem;
      color: #f1f5f9;
      text-align: left;
      line-height: 1.45;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
      margin-top: 6px;
      animation: fadeIn 0.15s ease-out;
    }

    body.theme-light .team-dist-detail-box {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #1e293b;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .team-dist-info-btn {
      border-radius: 50%;
      width: 25px;
      height: 25px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    /* Kondisi PAS (Hijau Emerald) */
    .team-dist-info-btn.state-exact {
      background: rgba(16, 185, 129, 0.18);
      border: 1.3px solid #10b981;
      color: #34d399;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
    }

    .team-dist-info-btn.state-exact:hover,
    .team-dist-info-btn.state-exact.is-active {
      background: #10b981;
      border-color: #34d399;
      color: #0f172a;
      box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
      transform: scale(1.08);
    }

    /* Kondisi LEBIH / CADANGAN (Cyan Biru Muda) */
    .team-dist-info-btn.state-extra {
      background: rgba(56, 189, 248, 0.18);
      border: 1.3px solid var(--accent-cyan);
      color: #38bdf8;
      box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
    }

    .team-dist-info-btn.state-extra:hover,
    .team-dist-info-btn.state-extra.is-active {
      background: var(--accent-cyan);
      border-color: #7dd3fc;
      color: #0f172a;
      box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
      transform: scale(1.08);
    }

    /* Kondisi KURANG (Amber / Oranye) */
    .team-dist-info-btn.state-needed {
      background: rgba(245, 158, 11, 0.18);
      border: 1.3px solid #f59e0b;
      color: #fbbf24;
      box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    }

    .team-dist-info-btn.state-needed:hover,
    .team-dist-info-btn.state-needed.is-active {
      background: #f59e0b;
      border-color: #fbbf24;
      color: #0f172a;
      box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
      transform: scale(1.08);
    }

    body.theme-light .team-dist-info-btn.state-exact {
      background: rgba(16, 185, 129, 0.15);
      border-color: #059669;
      color: #047857;
    }

    body.theme-light .team-dist-info-btn.state-extra {
      background: rgba(2, 132, 199, 0.15);
      border-color: #0284c7;
      color: #0369a1;
    }

    body.theme-light .team-dist-info-btn.state-needed {
      background: rgba(217, 119, 6, 0.15);
      border-color: #d97706;
      color: #b45309;
    }

    .team-dist-label {
      font-size: 0.75rem;
      color: #cbd5e1;
      font-weight: 700;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(56, 189, 248, 0.2);
      padding-bottom: 12px;
      margin-bottom: 14px;
    }

    .btn-close-modal {
      background: transparent;
      border: none;
      color: #94a3b8;
      cursor: pointer;
      line-height: 1;
      padding: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease, transform 0.15s ease;
    }

    .btn-close-modal:hover {
      color: #ffffff;
      transform: scale(1.1);
    }

    .assist-sheet-card {
      width: 92%;
      max-width: 440px;
      background: linear-gradient(180deg, #091c38 0%, #0e264c 100%);
      border-radius: 16px;
      border: 1.5px solid var(--accent-cyan);
      padding: 20px 18px 22px 18px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
      animation: modalFadeIn 0.2s ease-out;
      margin: auto;
    }

    .btn-approval-gk {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 700;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: var(--text-muted);
      cursor: pointer;
      user-select: none;
      transition: all 0.15s ease;
    }

    .btn-approval-gk:hover {
      border-color: rgba(255, 255, 255, 0.35);
      color: var(--text-main);
    }

    .btn-approval-gk:active {
      transform: scale(0.96);
    }

    .btn-approval-gk.active-home {
      background: rgba(2, 132, 199, 0.25);
      border: 1.5px solid #0284c7;
      color: #38bdf8;
      font-weight: 800;
      box-shadow: 0 0 10px rgba(2, 132, 199, 0.25);
    }

    .btn-approval-gk.active-away {
      background: rgba(239, 68, 68, 0.22);
      border: 1.5px solid #ef4444;
      color: #f87171;
      font-weight: 800;
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    }

    .btn:disabled,
    .btn[disabled] {
      opacity: 0.45 !important;
      cursor: not-allowed !important;
      filter: grayscale(60%) !important;
    }

    /* Toast Notification */
    .custom-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: #091c38;
      border: 1.5px solid var(--accent-cyan);
      color: #ffffff;
      padding: 10px 18px;
      border-radius: 30px;
      font-size: 0.86rem;
      font-weight: 800;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      z-index: 9999;
      pointer-events: none;
      letter-spacing: 0.3px;
    }

    /* Team Minimal Card in Dashboard (Nama Tim) */
    .dash-teams-minimal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 10px;
    }

    @media (max-width: 540px) {
      .dash-teams-minimal-grid {
        grid-template-columns: 1fr;
      }
    }

    .team-minimal-card {
      background: rgba(8, 22, 46, 0.88);
      border: 1.2px solid rgba(56, 189, 248, 0.22);
      border-radius: 12px;
      padding: 12px 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .team-minimal-card:hover {
      background: rgba(12, 39, 82, 0.65);
      border-color: var(--accent-cyan);
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .team-min-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-bottom: 8px;
    }

    .team-min-name {
      font-size: 0.92rem;
      font-weight: 800;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 6px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-min-badge {
      font-size: 0.72rem;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 20px;
      white-space: nowrap;
      border: 1px solid;
    }

    .team-min-players {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      max-height: 140px;
      overflow-y: auto;
    }

    .team-min-player-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 6px;
      padding: 3px 8px;
      font-size: 0.76rem;
      color: #e2e8f0;
      white-space: nowrap;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      overflow: hidden;
    }

    .team-tag-dot {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0;
      vertical-align: middle;
    }

    .op-goal-history-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 180px;
      overflow-y: auto;
    }

    .op-goal-history-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(8, 22, 46, 0.8);
      border: 1px solid rgba(56, 189, 248, 0.15);
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 0.84rem;
      transition: background 0.2s ease;
    }

    .op-goal-history-item:hover {
      background: rgba(12, 39, 82, 0.5);
      border-color: var(--accent-cyan);
    }

    /* ========================================================
       LIGHT THEME COMPONENT STYLES
       ======================================================== */
    body.theme-light {
      background: var(--bg-radial) fixed;
      color: var(--text-main);
    }

    body.theme-light header {
      background: var(--header-bg);
      border-bottom: 1.5px solid var(--header-border);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    body.theme-light .brand-title {
      color: #0f172a;
    }

    body.theme-light .brand-subtitle {
      color: #0284c7;
    }

    body.theme-light .nav-tabs {
      background: rgba(241, 245, 249, 0.95);
      border-color: rgba(203, 213, 225, 0.8);
    }

    body.theme-light .nav-tab-btn {
      color: #64748b;
    }

    body.theme-light .nav-tab-btn.active {
      background: rgba(2, 132, 199, 0.12);
      border-color: rgba(2, 132, 199, 0.35);
      color: #0284c7;
    }

    body.theme-light .card {
      background: var(--card-bg);
      border-color: var(--card-border);
      box-shadow: var(--card-shadow);
    }

    body.theme-light .card-title {
      color: #0f172a;
    }

    body.theme-light .btn-header-icon {
      background: #f1f5f9;
      border-color: rgba(2, 132, 199, 0.3);
      color: #0284c7;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    body.theme-light .btn-header-icon:hover {
      background: rgba(2, 132, 199, 0.15);
      color: #0369a1;
    }

    body.theme-light .btn-row-icon {
      background: #f1f5f9;
      border-color: rgba(2, 132, 199, 0.25);
      color: #0284c7;
    }

    body.theme-light .btn-row-icon:hover {
      background: rgba(2, 132, 199, 0.15);
      color: #0369a1;
    }

    body.theme-light input,
    body.theme-light select,
    body.theme-light textarea {
      background-color: #ffffff;
      border: 1px solid #cbd5e1;
      color: #0f172a;
    }

    body.theme-light textarea {
      scrollbar-color: #94a3b8 #f1f5f9;
    }

    body.theme-light textarea::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 6px;
    }

    body.theme-light textarea::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 6px;
    }

    body.theme-light textarea::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    body.theme-light select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }

    body.theme-light input:focus,
    body.theme-light select:focus,
    body.theme-light textarea:focus {
      border-color: #0284c7;
      box-shadow: none;
    }

    body.theme-light .btn-secondary {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155;
    }

    body.theme-light .btn-secondary:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    body.theme-light .btn-outline {
      background: rgba(2, 132, 199, 0.06);
      border-color: rgba(2, 132, 199, 0.35);
      color: #0284c7;
    }

    body.theme-light .match-card {
      background: #ffffff;
      border-color: #e2e8f0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    body.theme-light .match-card:hover {
      background: #f8fafc;
      border-color: #0284c7;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .match-card.match-card-finished {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-left: 4.5px solid #10b981;
    }

    body.theme-light .match-card.match-card-finished:hover {
      background: #dcfce7;
      border-color: #86efac;
    }

    body.theme-light .match-card.match-card-upcoming {
      background: #f8fafc;
      border: 1.2px dashed #cbd5e1;
      border-left: 4.5px solid #0284c7;
    }

    body.theme-light .match-card.match-card-upcoming:hover {
      background: #f1f5f9;
      border-color: #0284c7;
    }

    body.theme-light .match-card.match-card-live {
      background: #fef2f2;
      border: 1.5px solid #fca5a5;
      border-left: 4.5px solid #ef4444;
    }

    body.theme-light .match-min-num {
      color: #0284c7;
      background: rgba(2, 132, 199, 0.1);
      border-color: rgba(2, 132, 199, 0.25);
    }

    body.theme-light .match-card-finished .match-min-num {
      background: rgba(16, 185, 129, 0.12);
      border-color: rgba(16, 185, 129, 0.3);
      color: #047857;
    }

    body.theme-light .match-card-upcoming .match-min-num {
      background: rgba(2, 132, 199, 0.1);
      border-color: rgba(2, 132, 199, 0.25);
      color: #0284c7;
    }

    body.theme-light .match-score-pill {
      background: rgba(2, 132, 199, 0.1);
      border-color: #0284c7;
      color: #0284c7;
    }

    body.theme-light .match-score-pill.score-pill-finished {
      background: rgba(16, 185, 129, 0.15);
      border-color: #059669;
      color: #047857;
    }

    body.theme-light .match-vs-pill {
      background: #ffffff;
      border: 1.2px dashed #0284c7;
      color: #0284c7;
    }

    body.theme-light .team-name {
      color: #0f172a;
    }

    body.theme-light .team-winner .team-text-truncate {
      color: #0f172a;
      font-weight: 800;
    }

    body.theme-light .team-defeated .team-text-truncate {
      color: #64748b;
      font-weight: 600;
      opacity: 0.75;
    }

    body.theme-light .team-upcoming .team-text-truncate {
      color: #1e293b;
      font-weight: 700;
    }

    body.theme-light .pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    body.theme-light .match-round-divider {
      color: #0284c7;
    }

    body.theme-light .match-round-divider::before,
    body.theme-light .match-round-divider::after {
      background: linear-gradient(90deg, rgba(2, 132, 199, 0.35), rgba(2, 132, 199, 0.05));
    }

    body.theme-light .match-round-divider::before {
      background: linear-gradient(270deg, rgba(2, 132, 199, 0.35), rgba(2, 132, 199, 0.05));
    }

    body.theme-light .match-round-divider-badge {
      background: rgba(2, 132, 199, 0.08);
      border-color: rgba(2, 132, 199, 0.3);
      color: #0284c7;
      box-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
    }

    body.theme-light .match-min-round {
      background: rgba(2, 132, 199, 0.08);
      border-color: rgba(2, 132, 199, 0.25);
      color: #0284c7;
    }

    body.theme-light .table-container {
      border-color: #e2e8f0;
    }

    body.theme-light th {
      background: #f1f5f9;
      color: #0369a1;
      border-bottom: 1.5px solid #cbd5e1;
    }

    body.theme-light td {
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
    }

    body.theme-light tr:nth-child(even) td {
      background: #f8fafc;
    }

    body.theme-light .operator-header {
      background: #ffffff;
      border-color: rgba(2, 132, 199, 0.25);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .timer-display {
      color: #0f172a;
      text-shadow: none;
    }

    body.theme-light .team-op-box {
      background: #ffffff;
      border-color: rgba(2, 132, 199, 0.25);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .team-op-name {
      color: #0f172a;
    }

    body.theme-light .team-op-score {
      color: #0f172a;
      text-shadow: none;
    }

    body.theme-light .foul-box {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .btn-mini {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #334155;
    }

    /* Quick Settings Bar */
    .quick-settings-bar {
      background: rgba(8, 22, 46, 0.88);
      border: 1.2px solid var(--card-border);
      border-radius: 12px;
      padding: 10px 14px;
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Team Operator Inputs */
    .team-op-input {
      font-size: 0.95rem;
      font-weight: 800;
      border-radius: 8px;
      padding: 7px 8px;
      text-align: center;
      margin-bottom: 6px;
      width: 100%;
      box-sizing: border-box;
      transition: all 0.2s ease;
      outline: none;
    }

    .team-home-input {
      background: rgba(15, 23, 42, 0.7);
      border: 1.5px solid rgba(56, 189, 248, 0.35);
      color: #38bdf8;
    }

    .team-home-input:focus {
      border-color: #38bdf8;
      box-shadow: none;
    }

    .team-away-input {
      background: rgba(15, 23, 42, 0.7);
      border: 1.5px solid rgba(224, 90, 71, 0.35);
      color: #e05a47;
    }

    .team-away-input:focus {
      border-color: #e05a47;
      box-shadow: none;
    }

    .op-match-select-dropdown {
      background: rgba(8, 22, 46, 0.95);
      border: 1.5px solid var(--card-border);
      color: #38bdf8;
      font-weight: 800;
      font-size: 0.84rem;
      padding: 5px 8px;
      border-radius: 8px;
      outline: none;
      cursor: pointer;
      max-width: 230px;
    }

    body.theme-light .op-match-select-dropdown {
      background: #ffffff;
      border: 1.5px solid rgba(2, 132, 199, 0.35);
      color: #0284c7;
    }

    /* Smart Active Banner */
    .smart-active-banner {
      background: rgba(12, 39, 82, 0.88);
      border: 1.5px solid rgba(56, 189, 248, 0.45);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 14px;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    }

    .smart-active-banner .banner-title {
      font-size: 0.86rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 2px;
    }

    .smart-active-banner .banner-desc {
      font-size: 0.76rem;
      color: #cbd5e1;
      line-height: 1.4;
      margin-bottom: 8px;
    }

    /* ========================================================
       LIGHT THEME COMPONENT STYLES
       ======================================================== */
    body.theme-light {
      background: var(--bg-radial) fixed;
      color: var(--text-main);
    }

    body.theme-light header {
      background: var(--header-bg);
      border-bottom: 1.5px solid var(--header-border);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    body.theme-light .brand-title {
      color: #0f172a;
    }

    body.theme-light .brand-subtitle {
      color: #0284c7;
    }

    body.theme-light .nav-tabs {
      background: rgba(241, 245, 249, 0.95);
      border-color: rgba(203, 213, 225, 0.8);
    }

    body.theme-light .nav-tab-btn {
      color: #64748b;
    }

    body.theme-light .nav-tab-btn.active {
      background: #0284c7;
      border-color: #0284c7;
      color: #ffffff;
      box-shadow: none;
    }

    body.theme-light .card {
      background: var(--card-bg);
      border-color: var(--card-border);
      box-shadow: var(--card-shadow);
    }

    body.theme-light .card-title {
      color: #0f172a;
    }

    body.theme-light .btn-header-icon {
      background: #f1f5f9;
      border-color: rgba(2, 132, 199, 0.3);
      color: #0284c7;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    body.theme-light .btn-header-icon:hover {
      background: rgba(2, 132, 199, 0.15);
      color: #0369a1;
    }

    body.theme-light .btn-row-icon {
      background: #f1f5f9;
      border-color: rgba(2, 132, 199, 0.25);
      color: #0284c7;
    }

    body.theme-light .btn-row-icon:hover {
      background: rgba(2, 132, 199, 0.15);
      color: #0369a1;
    }

    body.theme-light input,
    body.theme-light select,
    body.theme-light textarea {
      background-color: #ffffff;
      border: 1.5px solid #cbd5e1;
      color: #0f172a;
    }

    body.theme-light select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }

    body.theme-light input:focus,
    body.theme-light select:focus,
    body.theme-light textarea:focus {
      border-color: #0284c7;
      box-shadow: none;
    }

    body.theme-light .btn-secondary {
      background: #f1f5f9;
      border: 1.5px solid #cbd5e1;
      color: #334155;
      font-weight: 800;
    }

    body.theme-light .btn-secondary:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    body.theme-light .btn-outline {
      background: rgba(2, 132, 199, 0.06);
      border-color: rgba(2, 132, 199, 0.35);
      color: #0284c7;
    }

    body.theme-light .quick-settings-bar {
      background: #ffffff;
      border: 1.5px solid rgba(2, 132, 199, 0.22);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .quick-settings-bar span {
      color: #64748b !important;
    }

    body.theme-light .quick-settings-bar .btn-mini {
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      color: #334155;
      font-weight: 700;
    }

    body.theme-light .quick-settings-bar .btn-mini:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    body.theme-light .quick-settings-bar .st-dur-btn.active {
      background: #0284c7;
      border-color: #0284c7;
      color: #ffffff;
      box-shadow: none;
    }

    body.theme-light .btn-reset-match-inline {
      background: #fee2e2 !important;
      border-color: #fca5a5 !important;
      color: #dc2626 !important;
      font-weight: 800;
    }

    body.theme-light .btn-reset-match-inline:hover {
      background: #fecaca !important;
      border-color: #ef4444 !important;
    }

    body.theme-light .team-home-input {
      background: #f0f9ff;
      border: 1.5px solid #7dd3fc;
      color: #0284c7;
    }

    body.theme-light .team-home-input:focus {
      border-color: #0284c7;
      box-shadow: none;
    }

    body.theme-light .team-away-input {
      background: #fff1f2;
      border: 1.5px solid #fda4af;
      color: #e11d48;
    }

    body.theme-light .team-away-input:focus {
      border-color: #e11d48;
      box-shadow: none;
    }

    body.theme-light .smart-active-banner {
      background: #eff6ff;
      border: 1.5px solid #93c5fd;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .smart-active-banner .banner-title {
      color: #1e3a8a !important;
    }

    body.theme-light .smart-active-banner .banner-desc {
      color: #334155 !important;
    }

    body.theme-light .match-card {
      background: #ffffff;
      border-color: #e2e8f0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    body.theme-light .match-card:hover {
      background: #f8fafc;
      border-color: #0284c7;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .match-min-num {
      color: #0284c7;
      background: rgba(2, 132, 199, 0.1);
      border-color: rgba(2, 132, 199, 0.25);
    }

    body.theme-light .match-score-pill {
      background: rgba(2, 132, 199, 0.1);
      border-color: #0284c7;
      color: #0284c7;
    }

    body.theme-light .team-name {
      color: #0f172a;
    }

    body.theme-light .pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    body.theme-light .table-container {
      border-color: #e2e8f0;
    }

    body.theme-light th {
      background: #f1f5f9;
      color: #0369a1;
      border-bottom: 1.5px solid #cbd5e1;
    }

    body.theme-light td {
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
    }

    body.theme-light tr:nth-child(even) td {
      background: #f8fafc;
    }

    body.theme-light .operator-header {
      background: #ffffff;
      border-color: rgba(2, 132, 199, 0.25);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .timer-display {
      color: #0f172a;
      text-shadow: none;
    }

    body.theme-light .team-op-box {
      background: #ffffff;
      border-color: rgba(2, 132, 199, 0.25);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .team-op-name {
      color: #0f172a;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
    }

    body.theme-light .team-op-score {
      color: #0f172a;
      text-shadow: none;
    }

    body.theme-light .btn-minus {
      background: #fee2e2;
      border: 1px solid #fca5a5;
      color: #dc2626;
      font-weight: 800;
    }

    body.theme-light .btn-minus:hover {
      background: #fecaca;
    }

    body.theme-light .foul-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }

    body.theme-light .foul-box span {
      color: #64748b !important;
    }

    body.theme-light .foul-box strong {
      color: #0f172a !important;
    }

    body.theme-light .btn-mini {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #334155;
    }

    body.theme-light .team-minimal-card {
      background: #ffffff;
      border-color: #e2e8f0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    body.theme-light .team-minimal-card:hover {
      background: #f8fafc;
      border-color: #0284c7;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .team-min-name {
      color: #0f172a;
    }

    body.theme-light .team-min-player-item {
      background: #f1f5f9;
      border-color: #e2e8f0;
      color: #334155;
    }

    body.theme-light .team-min-header {
      border-bottom-color: #e2e8f0;
    }

    body.theme-light .player-roster-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }

    body.theme-light .roster-title {
      color: #64748b;
    }

    body.theme-light .btn-add-player {
      background: #0284c7;
      color: #ffffff;
      border: none;
    }

    body.theme-light .player-roster-item {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      color: #0f172a;
    }

    body.theme-light .player-roster-item:hover {
      background: #f0f9ff;
      border-color: #0284c7;
    }

    body.theme-light .roster-player-inner {
      background: #ffffff;
      color: #0f172a;
    }

    body.theme-light .swipe-gk-actions {
      background: #e2e8f0;
    }

    body.theme-light .gk-badge {
      background: rgba(2, 132, 199, 0.12);
      border: 1px solid #0284c7;
      color: #0284c7;
    }

    body.theme-light .save-count-badge,
    body.theme-light .goal-count-badge,
    body.theme-light .assist-count-badge {
      cursor: pointer;
      user-select: none;
    }

    body.theme-light .save-count-badge {
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid #10b981;
      color: #059669;
    }

    body.theme-light .save-count-badge:hover,
    body.theme-light .goal-count-badge:hover,
    body.theme-light .assist-count-badge:hover {
      background: #fee2e2;
      border-color: #ef4444;
      color: #dc2626;
    }

    body.theme-light .modal-overlay {
      background: rgba(15, 23, 42, 0.55);
    }

    body.theme-light .modal-card {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    body.theme-light .modal-header {
      border-bottom-color: #e2e8f0;
    }

    body.theme-light .edit-match-modal-card {
      background: #ffffff;
      border-color: #cbd5e1;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    body.theme-light .edit-match-clash-box {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .edit-match-clash-title {
      color: #0f172a;
    }

    body.theme-light .edit-section-wrapper {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .edit-scorers-team-box,
    body.theme-light .edit-gk-card {
      background: #ffffff;
      border-color: #e2e8f0;
    }

    body.theme-light .edit-player-stat-row {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .edit-player-stat-row.has-active-stat {
      background: #f0fdf4;
      border-color: #86efac;
    }

    body.theme-light .edit-player-name-text {
      color: #0f172a;
    }

    body.theme-light .edit-stat-stepper {
      background: #ffffff;
      border-color: #cbd5e1;
    }

    body.theme-light .btn-mini-step {
      background: #f1f5f9;
      color: #334155;
    }

    body.theme-light .edit-gk-saves-row {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .edit-gk-saves-label {
      color: #334155;
    }

    body.theme-light .edit-gk-select {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
    }

    body.theme-light .custom-dialog-card {
      background: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
      color: #0f172a !important;
    }

    body.theme-light .custom-dialog-title {
      color: #0f172a !important;
    }

    body.theme-light .custom-dialog-message {
      color: #475569 !important;
    }

    body.theme-light .custom-dialog-subdetail {
      background: #f8fafc !important;
      border: 1px solid #cbd5e1 !important;
      color: #0284c7 !important;
    }

    body.theme-light .custom-prompt-stepper-btn {
      background: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .custom-prompt-stepper-btn:hover {
      background: #e2e8f0 !important;
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }

    body.theme-light .custom-prompt-input {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .team-min-player-name {
      color: #0f172a !important;
    }

    body.theme-light .team-min-player-num {
      color: #64748b !important;
    }

    body.theme-light .team-min-no-player {
      color: #94a3b8 !important;
    }

    body.theme-light .team-min-badge {
      background: #ffffff !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    body.theme-light .team-quota-badge.quota-pending {
      background: #fef3c7 !important;
      border-color: #f59e0b !important;
      color: #92400e !important;
    }

    body.theme-light .team-quota-badge.quota-progress {
      background: #ffedd5 !important;
      border-color: #ea580c !important;
      color: #9a3412 !important;
    }

    body.theme-light .team-quota-badge.quota-complete {
      background: #d1fae5 !important;
      border-color: #059669 !important;
      color: #065f46 !important;
    }

    body.theme-light .team-quota-badge.quota-extra {
      background: #e0f2fe !important;
      border-color: #0284c7 !important;
      color: #0369a1 !important;
    }

    body.theme-light .modal-player-add-row {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
    }

    body.theme-light .modal-player-row {
      background: #ffffff !important;
      border-color: #e2e8f0 !important;
    }

    body.theme-light .modal-player-input {
      color: #0f172a !important;
      background: #f1f5f9 !important;
    }

    body.theme-light .pwa-guide-box {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
      color: #334155 !important;
    }

    body.theme-light .team-dist-detail-box {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .team-dist-label {
      color: #475569 !important;
    }

    body.theme-light .assist-sheet-card {
      background: #ffffff;
      border-color: #0284c7;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    }

    body.theme-light .custom-toast {
      background: #ffffff;
      border-color: #0284c7;
      color: #0f172a;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    body.theme-light .standings-pts {
      color: #0284c7 !important;
    }

    body.theme-light .top-scorer-player-name {
      color: #0f172a !important;
    }

    body.theme-light .top-scorer-goals-badge {
      background: #e0f2fe !important;
      border: 1px solid #7dd3fc !important;
      color: #0284c7 !important;
    }

    body.theme-light .top-scorer-assists-badge {
      background: #f3e8ff !important;
      border: 1px solid #d8b4fe !important;
      color: #9333ea !important;
    }

    body.theme-light .btn-edit-match-inline {
      color: #0284c7 !important;
      border: 1.5px solid #7dd3fc !important;
      background: #f0f9ff !important;
    }

    body.theme-light .btn-edit-match-inline:hover {
      background: #e0f2fe !important;
      border-color: #0284c7 !important;
      color: #0369a1 !important;
    }

    body.theme-light .assist-sheet-title {
      color: #0f172a !important;
    }

    body.theme-light .assist-sheet-subtitle {
      color: #0284c7 !important;
    }

    body.theme-light .assist-sheet-desc {
      color: #64748b !important;
    }

    body.theme-light .assist-picker-btn {
      background: #f1f5f9 !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .assist-picker-btn:hover {
      background: #e2e8f0 !important;
      border-color: #0284c7 !important;
      color: #0284c7 !important;
    }

    body.theme-light .edit-match-period-box {
      background: #f8fafc !important;
      border: 1.5px solid #e2e8f0 !important;
    }

    body.theme-light .edit-score-input {
      background: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .edit-scorers-team-box {
      background: #f8fafc !important;
      border: 1.5px solid #e2e8f0 !important;
    }

    body.theme-light .edit-scorers-team-title {
      color: #0284c7 !important;
      border-bottom: 1px solid #e2e8f0 !important;
    }

    body.theme-light .edit-scorer-player-row {
      background: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
    }

    body.theme-light .edit-scorer-player-name {
      color: #0f172a !important;
    }

    body.theme-light .op-goal-select {
      background-color: #ffffff !important;
      border: 1.5px solid #cbd5e1 !important;
      color: #0f172a !important;
    }

    body.theme-light .op-goal-history-item {
      background: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }

    body.theme-light .op-goal-history-item:hover {
      background: #f1f5f9;
      border-color: #0284c7;
    }

    body.theme-light .op-goal-history-item strong {
      color: #0f172a !important;
    }

    body.theme-light .op-goal-history-item span {
      color: #64748b !important;
    }

    body.theme-light .setup-mode-tab-btn {
      background: #ffffff;
      border-color: #e2e8f0;
      color: #64748b;
    }

    body.theme-light .setup-mode-tab-btn:hover {
      background: #f8fafc;
      border-color: #0284c7;
      color: #0f172a;
    }

    body.theme-light .setup-mode-tab-btn.active {
      background: rgba(2, 132, 199, 0.08);
      border-color: #0284c7;
      color: #0284c7;
      box-shadow: none;
    }

    body.theme-light .unified-period-bar {
      background: #ffffff;
      border-color: #e2e8f0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    body.theme-light .unified-period-btn {
      background: #f8fafc;
      border-color: #e2e8f0;
      color: #64748b;
      font-weight: 700;
    }

    body.theme-light .unified-period-btn:hover {
      background: #f1f5f9;
      color: #0f172a;
      border-color: #cbd5e1;
    }

    body.theme-light .unified-period-btn.active {
      background: #0284c7;
      border-color: #0284c7;
      color: #ffffff;
      box-shadow: none;
      font-weight: 800;
    }

    body.theme-light .compact-player-row {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    body.theme-light .compact-player-row.has-active-stat {
      background: #f0f9ff;
      border-color: #bae6fd;
    }

    body.theme-light .compact-player-name {
      color: #0f172a;
    }

    body.theme-light .compact-stat-box {
      background: #ffffff;
      border-color: #cbd5e1;
    }

    body.theme-light .compact-stat-box.stat-box-gold {
      background: #fffdf5;
      border-color: #f59e0b;
    }

    body.theme-light .compact-stat-box.stat-box-cyan {
      background: #f0f9ff;
      border-color: #0284c7;
    }

    body.theme-light .compact-btn-step {
      background: #ffffff;
      border-color: #cbd5e1;
      color: #0f172a;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }

    body.theme-light .compact-btn-step.btn-minus {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #475569;
    }

    body.theme-light .compact-step-val {
      color: #0f172a;
    }

    /* Section Form Labels */
    .section-form-label {
      font-size: 0.88rem;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 6px;
      display: block;
      letter-spacing: 0.3px;
    }

    body.theme-light .section-form-label {
      color: #0f172a;
    }

    /* Action Nav Buttons (Dashboard & Pengaturan Pertandingan) */
    .btn-nav-action {
      width: auto;
      padding: 8px 16px;
      font-size: 0.85rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(7, 24, 54, 0.85);
      border: 1.5px solid rgba(56, 189, 248, 0.4);
      color: #38bdf8;
      border-radius: 10px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    body.theme-light .btn-nav-action {
      background: #ffffff;
      border: 1.5px solid rgba(2, 132, 199, 0.35);
      color: #0284c7;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    body.theme-light .btn-nav-action:hover {
      background: #f0f9ff;
      border-color: #0284c7;
      color: #0369a1;
    }

    /* Preset League Box */
    .preset-league-box {
      padding: 12px 14px;
      background: rgba(15, 23, 42, 0.65);
      border: 1px dashed rgba(56, 189, 248, 0.25);
      border-radius: 10px;
    }

    .preset-league-label {
      font-size: 0.74rem;
      color: #cbd5e1;
      font-weight: 700;
      display: block;
      margin-bottom: 6px;
    }

    body.theme-light .preset-league-box {
      background: #f8fafc;
      border: 1.5px dashed #cbd5e1;
    }

    body.theme-light .preset-league-label {
      color: #334155;
    }

    /* Setup Stepper & Sequential Step Cards (Kolom Terpisah) */
    .setup-stepper-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      padding: 10px 16px;
      background: rgba(8, 22, 46, 0.7);
      border: 1px solid var(--card-border-subtle);
      border-radius: 12px;
    }

    body.theme-light .setup-stepper-bar {
      background: #ffffff;
      border-color: #e2e8f0;
    }

    .stepper-step-item {
      display: flex;
      align-items: center;
      gap: 7px;
      cursor: default;
      user-select: none;
    }

    .stepper-circle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 800;
      background: rgba(148, 163, 184, 0.2);
      color: #94a3b8;
      border: 1.5px solid transparent;
      transition: all 0.2s ease;
    }

    .stepper-label {
      font-size: 0.74rem;
      font-weight: 700;
      color: var(--text-muted);
      transition: color 0.2s ease;
    }

    .stepper-step-item.active .stepper-circle {
      background: rgba(56, 189, 248, 0.2);
      border-color: var(--accent-cyan);
      color: #38bdf8;
    }

    .stepper-step-item.active .stepper-label {
      color: #ffffff;
      font-weight: 800;
    }

    body.theme-light .stepper-step-item.active .stepper-label {
      color: #0f172a;
    }

    .stepper-step-item.completed .stepper-circle {
      background: #10b981;
      border-color: #10b981;
      color: #ffffff;
    }

    .stepper-step-item.completed .stepper-label {
      color: #10b981;
      font-weight: 800;
    }

    .stepper-divider {
      flex: 1;
      height: 2px;
      margin: 0 10px;
      background: rgba(148, 163, 184, 0.2);
      transition: all 0.2s ease;
    }

    .stepper-divider.completed {
      background: #10b981;
    }

    .setup-step-card {
      transition: opacity 0.25s ease, border-color 0.25s ease;
      position: relative;
    }

    .setup-step-body {
      width: 100%;
      box-sizing: border-box;
    }

    .setup-step-card.step-locked {
      opacity: 0.52;
      border-style: dashed;
      border-color: rgba(148, 163, 184, 0.35);
    }

    .setup-step-card.step-locked input,
    .setup-step-card.step-locked select,
    .setup-step-card.step-locked button {
      cursor: not-allowed !important;
      pointer-events: none !important;
    }

    .setup-step-card.step-completed {
      border-color: rgba(16, 185, 129, 0.4);
    }

    .setup-step-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    }

    body.theme-light .setup-step-header {
      border-bottom-color: #e2e8f0;
    }

    .setup-step-badge {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 900;
      background: rgba(56, 189, 248, 0.16);
      color: var(--accent-cyan);
      border: 1.2px solid rgba(56, 189, 248, 0.35);
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .setup-step-card.step-completed .setup-step-badge {
      background: rgba(16, 185, 129, 0.18);
      color: #10b981;
      border-color: rgba(16, 185, 129, 0.4);
    }

    .setup-step-card.step-locked .setup-step-badge {
      background: rgba(148, 163, 184, 0.12);
      color: #64748b;
      border-color: rgba(148, 163, 184, 0.25);
    }

    .setup-step-title {
      font-size: 0.88rem;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: 0.2px;
      text-transform: uppercase;
      display: block;
    }

    body.theme-light .setup-step-title {
      color: #0f172a;
    }

    .setup-step-subtext {
      font-size: 0.72rem;
      color: var(--text-muted);
      display: block;
      margin-top: 1px;
    }

    .setup-step-status-pill {
      font-size: 0.7rem;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      user-select: none;
    }

    .setup-step-status-pill.status-locked {
      background: rgba(148, 163, 184, 0.15);
      color: #94a3b8;
      border: 1px solid rgba(148, 163, 184, 0.25);
    }

    .setup-step-status-pill.status-pending {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .setup-step-status-pill.status-done {
      background: rgba(16, 185, 129, 0.18);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.35);
    }

    .setup-step-status-pill.status-optional {
      background: rgba(56, 189, 248, 0.12);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.28);
    }

    .bpfc-step-badge-optional {
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.4px;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.35);
      display: inline-block;
      vertical-align: middle;
      margin-left: 6px;
    }

    .step-lock-notice {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(15, 23, 42, 0.75);
      border: 1px dashed rgba(245, 158, 11, 0.4);
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 0.76rem;
      color: #cbd5e1;
      margin-bottom: 12px;
      line-height: 1.4;
    }

    body.theme-light .step-lock-notice {
      background: #fffbeb;
      border-color: #fde68a;
      color: #92400e;
    }

    /* Backup Restore Card */
    .backup-restore-card {
      margin-top: 16px;
      border: 1.5px solid rgba(56, 189, 248, 0.35);
      background: rgba(15, 23, 42, 0.75);
    }

    .backup-restore-card-title {
      font-weight: 800;
      color: #38bdf8;
      font-size: 0.95rem;
    }

    .backup-restore-card-desc {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 12px;
      line-height: 1.4;
    }

    body.theme-light .backup-restore-card {
      background: #ffffff;
      border-color: #e2e8f0;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    body.theme-light .backup-restore-card-title {
      color: #0284c7;
    }

    body.theme-light .backup-restore-card-desc {
      color: #64748b;
    }

    .btn-restore-action {
      font-size: 0.82rem;
      padding: 10px 8px;
      font-weight: 800;
      background: rgba(16, 185, 129, 0.12);
      border: 1.5px solid rgba(52, 211, 153, 0.45);
      color: #34d399;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .btn-restore-action:hover {
      background: rgba(16, 185, 129, 0.24);
      border-color: #10b981;
      color: #ffffff;
    }

    body.theme-light .btn-restore-action {
      background: #ecfdf5;
      border: 1.5px solid #a7f3d0;
      color: #059669;
    }

    body.theme-light .btn-restore-action:hover {
      background: #d1fae5;
      border-color: #059669;
    }

    .btn-reset-all-data {
      font-size: 0.82rem;
      padding: 10px 14px;
      font-weight: 800;
      background: rgba(220, 38, 38, 0.14);
      border: 1.5px solid rgba(239, 68, 68, 0.45);
      color: #fca5a5;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s ease;
    }

    .btn-reset-all-data:hover {
      background: rgba(220, 38, 38, 0.3);
      border-color: #ef4444;
      color: #ffffff;
    }

    body.theme-light .btn-reset-all-data {
      background: #fee2e2;
      border: 1.5px solid #fca5a5;
      color: #dc2626;
    }

    body.theme-light .btn-reset-all-data:hover {
      background: #fecaca;
      border-color: #ef4444;
      color: #b91c1c;
    }

    .team-dist-hint-box {
      margin-bottom: 12px;
      padding: 10px 12px;
      background: rgba(8, 22, 46, 0.9);
      border: 1.2px solid rgba(56, 189, 248, 0.35);
      border-radius: 8px;
      font-size: 0.78rem;
      color: #cbd5e1;
      line-height: 1.4;
    }

    body.theme-light .team-dist-hint-box {
      background: #f0f9ff;
      border: 1.5px solid #bae6fd;
      color: #0369a1;
    }

    body.theme-light #btn-create-tournament:disabled {
      background: #e2e8f0 !important;
      color: #94a3b8 !important;
      border: 1px solid #cbd5e1 !important;
      box-shadow: none !important;
      cursor: not-allowed;
    }

    /* Header Burger Menu & Dropdown */
    .header-menu-wrapper {
      position: relative;
    }

    .btn-burger-menu {
      background: rgba(7, 24, 54, 0.85);
      border: 1.5px solid rgba(56, 189, 248, 0.3);
      color: #38bdf8;
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
      flex-shrink: 0;
      padding: 0;
    }

    .btn-burger-menu:hover,
    .btn-burger-menu.active {
      background: rgba(12, 38, 78, 0.95);
      border-color: #38bdf8;
      color: #ffffff;
    }

    body.theme-light .btn-burger-menu {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0284c7;
    }

    body.theme-light .btn-burger-menu:hover,
    body.theme-light .btn-burger-menu.active {
      background: #f1f5f9;
      border-color: #0284c7;
      color: #0369a1;
    }

    .header-burger-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 260px;
      background: rgba(7, 24, 54, 0.98);
      border: 1.5px solid rgba(56, 189, 248, 0.3);
      border-radius: 14px;
      padding: 6px;
      z-index: 1000;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    }

    body.theme-light .header-burger-dropdown {
      background: rgba(255, 255, 255, 0.98);
      border-color: #cbd5e1;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }

    .burger-dropdown-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border-bottom: 1px solid rgba(56, 189, 248, 0.16);
      margin-bottom: 4px;
    }

    body.theme-light .burger-dropdown-header {
      border-bottom-color: #e2e8f0;
    }

    .burger-dropdown-title {
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: #94a3b8;
    }

    body.theme-light .burger-dropdown-title {
      color: #64748b;
    }

    .burger-dropdown-badge {
      font-size: 0.65rem;
      font-weight: 900;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
    }

    body.theme-light .burger-dropdown-badge {
      background: #e0f2fe;
      color: #0284c7;
    }

    .burger-menu-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 9px 10px;
      border-radius: 10px;
      border: none;
      background: transparent;
      text-align: left;
      cursor: pointer;
      transition: background 0.18s ease;
      text-decoration: none;
    }

    .burger-menu-item:hover {
      background: rgba(56, 189, 248, 0.12);
    }

    body.theme-light .burger-menu-item:hover {
      background: #f1f5f9;
    }

    .burger-item-icon-box {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .burger-item-icon-box.cyan {
      background: rgba(56, 189, 248, 0.14);
      color: #38bdf8;
    }

    .burger-item-icon-box.gold {
      background: rgba(251, 191, 36, 0.14);
      color: #fbbf24;
    }

    .burger-item-icon-box.blue {
      background: rgba(14, 165, 233, 0.14);
      color: #0284c7;
    }

    body.theme-light .burger-item-icon-box.cyan {
      background: #e0f2fe;
      color: #0284c7;
    }

    body.theme-light .burger-item-icon-box.gold {
      background: #fef3c7;
      color: #d97706;
    }

    body.theme-light .burger-item-icon-box.blue {
      background: #e0f2fe;
      color: #0369a1;
    }

    .burger-item-content {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-width: 0;
    }

    .burger-item-label {
      font-size: 0.82rem;
      font-weight: 800;
      color: #f8fafc;
      line-height: 1.2;
    }

    body.theme-light .burger-item-label {
      color: #0f172a;
    }

    .burger-item-sub {
      font-size: 0.68rem;
      color: #94a3b8;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.theme-light .burger-item-sub {
      color: #64748b;
    }

    /* ===== TWIBBON STUDIO STYLES (COMPACT & MINIMALIST) ===== */
    .twibbon-modal-card {
      background: #091326;
      border: 1.5px solid #1e3a8a;
      border-radius: 14px;
      width: 95%;
      max-width: 660px;
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
      overflow: hidden;
      color: #f8fafc;
    }

    .twibbon-header {
      padding: 10px 14px;
      border-bottom: 1px solid #1e293b;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #0d1b38;
    }

    .twibbon-body {
      padding: 14px;
      overflow-y: auto;
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 16px;
      align-items: center;
    }

    @media (max-width: 580px) {
      .twibbon-body {
        grid-template-columns: 1fr;
        justify-items: center;
      }
    }

    .twibbon-preview-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .twibbon-canvas-wrap {
      width: 140px;
      height: 248px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
      border: 1.5px solid #38bdf8;
      background: #020617;
      position: relative;
      touch-action: none;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: height 0.2s ease;
    }

    .twibbon-canvas-wrap.square-ratio {
      height: 140px;
    }

    .btn-twibbon-fullscreen {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(3, 8, 20, 0.75);
      border: 1px solid #38bdf8;
      color: #38bdf8;
      border-radius: 5px;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 5;
      backdrop-filter: blur(4px);
      transition: all 0.15s ease;
      padding: 0;
    }

    .btn-twibbon-fullscreen:hover {
      background: #38bdf8;
      color: #030814;
    }

    .twibbon-fs-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      max-width: 95vw;
      max-height: 95vh;
    }

    .twibbon-fs-img {
      max-height: 80vh;
      max-width: 90vw;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
      border: 2px solid #38bdf8;
      display: block;
      object-fit: contain;
    }

    .twibbon-canvas-wrap canvas {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      cursor: grab;
    }

    .twibbon-canvas-wrap canvas:active {
      cursor: grabbing;
    }

    .twibbon-controls-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      min-width: 0;
    }

    .twibbon-theme-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .twibbon-theme-btn {
      background: #0f1f3d;
      border: 1px solid #1e3a8a;
      border-radius: 6px;
      padding: 5px 8px;
      font-size: 0.72rem;
      font-weight: 700;
      color: #cbd5e1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
    }

    .twibbon-theme-btn:hover {
      background: #1e293b;
      border-color: #38bdf8;
      color: #ffffff;
    }

    .twibbon-theme-btn.active {
      background: rgba(56, 189, 248, 0.2);
      border-color: #38bdf8;
      color: #38bdf8;
    }

    .twibbon-ratio-btn {
      background: #0f1f3d;
      border: 1px solid #1e3a8a;
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 0.7rem;
      font-weight: 700;
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .twibbon-ratio-btn.active {
      background: rgba(56, 189, 248, 0.2);
      border-color: #38bdf8;
      color: #38bdf8;
    }

    .twibbon-footer {
      padding: 10px 14px;
      border-top: 1px solid #1e293b;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      background: #0d1b38;
    }

    body.theme-light .twibbon-modal-card {
      background: #ffffff;
      border-color: #0284c7;
      color: #0f172a;
    }

    body.theme-light .twibbon-header,
    body.theme-light .twibbon-footer {
      background: #f0f9ff;
      border-color: #e2e8f0;
    }

    body.theme-light .twibbon-theme-btn,
    body.theme-light .twibbon-ratio-btn {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #334155;
    }

    body.theme-light .twibbon-theme-btn.active,
    body.theme-light .twibbon-ratio-btn.active {
      background: #e0f2fe;
      border-color: #0284c7;
      color: #0284c7;
    }

    /* Match Photo Poster Styles */
    .btn-export-photo-poster-trigger {
      width: 100%;
      padding: 11px 16px;
      font-size: 0.88rem;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.35) 100%);
      color: #ffffff;
      border: 1.5px solid #38bdf8;
      box-shadow: 0 4px 18px rgba(2, 132, 199, 0.32);
      cursor: pointer;
      transition: all 0.2s ease;
      letter-spacing: 0.3px;
    }

    .btn-export-photo-poster-trigger:hover {
      background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
      border-color: #7dd3fc;
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55);
    }

    .btn-export-photo-poster-trigger:active {
      transform: scale(0.98);
    }

    .poster-badge-sparkle {
      background: #fbbf24;
      color: #041026;
      font-size: 0.64rem;
      font-weight: 900;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    }

    .match-photo-modal-card {
      max-width: 680px;
    }

    .match-photo-canvas-wrap {
      width: 150px;
      height: 188px; /* 4:5 default */
    }

    .match-photo-canvas-wrap.story-ratio {
      height: 266px; /* 9:16 */
    }

    .match-photo-canvas-wrap.square-ratio {
      height: 150px; /* 1:1 */
    }

    body.theme-light .btn-export-photo-poster-trigger {
      background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
      border-color: #0284c7;
      color: #0369a1;
      box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
    }

    body.theme-light .btn-export-photo-poster-trigger:hover {
      background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
      color: #ffffff;
    }

/* ==========================================================================
   NATIVE MOBILE ONBOARDING SCREEN STYLES
   ========================================================================== */

:root {
      --ob-bg-overlay: rgba(4, 13, 31, 0.96);
      --ob-card-bg: #091c38;
      --ob-card-border: #1e3a5f;
      --ob-text-title: #f8fafc;
      --ob-text-body: #94a3b8;
      --ob-text-highlight: #38bdf8;
      --ob-accent-primary: #0284c7;
      --ob-badge-bg: #0f2744;
      --ob-badge-border: #1e3a5f;
      --ob-btn-back-bg: #0f2744;
      --ob-btn-back-border: #1e3a5f;
      --ob-btn-back-text: #cbd5e1;
      --ob-dot-inactive: #334155;
      --ob-dot-active: #38bdf8;
    }

    [data-theme="light"] :root,
    body.theme-light {
      --ob-bg-overlay: rgba(241, 245, 249, 0.96);
      --ob-card-bg: #ffffff;
      --ob-card-border: #cbd5e1;
      --ob-text-title: #0f172a;
      --ob-text-body: #475569;
      --ob-text-highlight: #0284c7;
      --ob-accent-primary: #0284c7;
      --ob-badge-bg: #f1f5f9;
      --ob-badge-border: #cbd5e1;
      --ob-btn-back-bg: #f1f5f9;
      --ob-btn-back-border: #cbd5e1;
      --ob-btn-back-text: #475569;
      --ob-dot-inactive: #cbd5e1;
      --ob-dot-active: #0284c7;
    }

    .bpfc-ob-overlay {
      position: fixed;
      inset: 0;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      height: 100dvh;
      background: var(--ob-bg-overlay);
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s;
    }

    .bpfc-ob-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .bpfc-ob-card {
      width: 100%;
      max-width: 410px;
      min-height: 480px;
      max-height: 92vh;
      max-height: 92dvh;
      background: var(--ob-card-bg);
      border: 1.5px solid var(--ob-card-border);
      border-radius: 24px;
      box-shadow: none !important;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
      box-sizing: border-box;
    }

    @media (max-width: 480px) {
      .bpfc-ob-overlay {
        padding: 0;
      }

      .bpfc-ob-card {
        max-width: 100%;
        width: 100%;
        height: 100%;
        height: 100dvh;
        min-height: 0;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
      }
    }

    .bpfc-ob-header {
      padding: 18px 22px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      z-index: 5;
    }

    .bpfc-ob-step-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--ob-badge-bg);
      border: 1px solid var(--ob-badge-border);
      color: var(--ob-text-highlight);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 20px;
    }

    .bpfc-ob-btn-skip {
      background: transparent;
      border: none;
      color: var(--ob-text-body);
      font-size: 0.84rem;
      font-weight: 700;
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 12px;
      transition: all 0.2s ease;
      outline: none;
    }

    .bpfc-ob-btn-skip:hover {
      color: var(--ob-text-title);
      background: rgba(255, 255, 255, 0.08);
    }

    .bpfc-ob-slider-viewport {
      flex: 1;
      min-height: 0;
      overflow: hidden;
      position: relative;
      width: 100%;
      display: flex;
    }

    .bpfc-ob-slider-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.35s ease;
      will-change: transform;
    }

    .bpfc-ob-slide {
      flex: 0 0 100%;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding: 8px 20px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow-y: auto;
    }

    .bpfc-ob-icon-wrapper {
      position: relative;
      width: 68px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    .bpfc-ob-icon-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    .bpfc-ob-icon-glow {
      display: none !important;
    }

    .bpfc-ob-icon-svg {
      width: 58px;
      height: 58px;
      display: block;
      filter: none !important;
    }

    .bpfc-ob-feature-chips {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
      max-width: 320px;
    }

    .bpfc-ob-chip {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 6px 11px;
      background: var(--ob-badge-bg);
      border: 1px solid var(--ob-badge-border);
      border-radius: 8px;
      color: var(--ob-text-highlight);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: none !important;
    }

    .bpfc-ob-chip svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
      flex-shrink: 0;
      display: inline-block;
      vertical-align: middle;
    }

    .bpfc-ob-title {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--ob-text-title);
      margin-bottom: 10px;
      line-height: 1.3;
      letter-spacing: -0.2px;
    }

    .bpfc-ob-desc {
      font-size: 0.88rem;
      color: var(--ob-text-body);
      line-height: 1.55;
      max-width: 330px;
      margin: 0 auto;
    }

    .bpfc-ob-footer {
      padding: 10px 20px max(20px, env(safe-area-inset-bottom, 20px));
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex-shrink: 0;
      z-index: 5;
    }

    .bpfc-ob-dots-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    .bpfc-ob-dot {
      width: 8px;
      height: 8px;
      border-radius: 4px;
      background: var(--ob-dot-inactive);
      cursor: pointer;
      transition: all 0.25s ease;
      border: none;
      padding: 0;
      box-shadow: none !important;
    }

    .bpfc-ob-dot:hover {
      background: var(--ob-text-highlight);
    }

    .bpfc-ob-dot.active {
      width: 24px;
      background: var(--ob-dot-active);
      box-shadow: none !important;
    }

    .bpfc-ob-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .bpfc-ob-btn-back {
      flex: 0 0 105px;
      padding: 12px 14px;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: var(--ob-btn-back-bg);
      border: 1.2px solid var(--ob-btn-back-border);
      color: var(--ob-btn-back-text);
      cursor: pointer;
      transition: background 0.2s ease;
      outline: none;
      box-shadow: none !important;
    }

    .bpfc-ob-btn-back:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.12);
      color: var(--ob-text-title);
      border-color: rgba(148, 163, 184, 0.45);
    }

    .bpfc-ob-btn-back.hidden {
      display: none !important;
    }

    .bpfc-ob-btn-next {
      flex: 1;
      width: 100%;
      padding: 12px 18px;
      min-height: 44px;
      border-radius: 12px;
      font-size: 0.9rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #0284c7;
      border: none;
      color: #ffffff;
      cursor: pointer;
      box-shadow: none !important;
      transition: background 0.2s ease;
      outline: none;
      text-shadow: none !important;
    }

    .bpfc-ob-btn-next:hover {
      background: #0369a1;
      box-shadow: none !important;
      transform: none !important;
    }

    .bpfc-ob-btn-next:active {
      background: #0284c7;
    }

    .bpfc-ob-btn-next.is-finish {
      background: #059669;
      box-shadow: none !important;
      animation: none !important;
    }

    .bpfc-ob-btn-next.is-finish:hover {
      background: #047857;
      box-shadow: none !important;
      animation: none !important;
    }

    .bpfc-ob-swipe-hint {
      font-size: 0.68rem;
      color: var(--ob-text-body);
      opacity: 0.65;
      text-align: center;
      margin-top: -3px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    /* Penyesuaian Responsif Layar HP (Mobile Viewport Height) */
    @media (max-width: 480px),
    (max-height: 760px) {
      .bpfc-ob-header {
        padding: 14px 18px 6px;
      }

      .bpfc-ob-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
      }

      .bpfc-ob-icon-svg {
        width: 40px;
        height: 40px;
      }

      .bpfc-ob-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
      }

      .bpfc-ob-desc {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 8px;
        max-width: 310px;
      }

      .bpfc-ob-feature-chips {
        margin-top: 4px;
        gap: 6px;
      }

      .bpfc-ob-chip {
        padding: 4px 10px;
        font-size: 0.72rem;
      }

      .bpfc-ob-footer {
        padding: 8px 18px max(20px, env(safe-area-inset-bottom, 20px));
        gap: 10px;
      }

      .bpfc-ob-btn-next {
        padding: 11px 16px;
        min-height: 42px;
      }

      .bpfc-ob-btn-back {
        padding: 11px 12px;
      }
    }

    @media (max-height: 640px) {
      .bpfc-ob-header {
        padding: 10px 16px 4px;
      }

      .bpfc-ob-icon-wrapper {
        width: 46px;
        height: 46px;
        margin-bottom: 8px;
      }

      .bpfc-ob-icon-svg {
        width: 32px;
        height: 32px;
      }

      .bpfc-ob-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
      }

      .bpfc-ob-desc {
        font-size: 0.76rem;
        line-height: 1.35;
        margin-bottom: 6px;
      }

      .bpfc-ob-feature-chips {
        margin-top: 2px;
        gap: 4px;
      }

      .bpfc-ob-chip {
        padding: 3px 8px;
        font-size: 0.66rem;
      }

      .bpfc-ob-footer {
        padding: 6px 16px max(16px, env(safe-area-inset-bottom, 16px));
        gap: 8px;
      }

      .bpfc-ob-btn-next {
        padding: 9px 14px;
        min-height: 38px;
      }

      .bpfc-ob-btn-back {
        padding: 9px 10px;
      }
    }
