
    * { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg: #07071a;
      --bgCard: rgba(18,16,32,0.75);
      --bgInput: rgba(22,18,38,0.8);
      --bgHover: rgba(30,27,48,0.8);
      --purple: #7c3aed;
      --purpleLight: #a78bfa;
      --purpleDark: #1a0a3e;
      --cyan: #06b6d4;
      --green: #10b981;
      --red: #ef4444;
      --orange: #f59e0b;
      --pink: #ec4899;
      --blue: #3b82f6;
      --lime: #84cc16;
      --textPrimary: #f7f5fc;
      --textSecondary: #d8d0f2;
      --textMuted: #aaa2cc;
      --border: rgba(70,58,120,0.55);
      --borderLight: rgba(90,75,145,0.45);
      --glass: rgba(20,16,40,0.55);
      --glassBorder: rgba(120,100,200,0.2);
      --glassHover: rgba(30,24,55,0.7);
    }

    body {
      background:
        radial-gradient(ellipse at 15% 50%, rgba(147,51,234,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(0,229,255,0.11) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 85%, rgba(255,62,181,0.10) 0%, transparent 40%),
        #07071a;
      color: var(--textPrimary);
      font-family: 'Rajdhani', 'Exo 2', sans-serif;
      font-weight: 500;
      min-height: 100vh;
      overflow-x: hidden;
    }

    #app::before {
      content: '';
      position: fixed; inset: 0;
      background-image:
        linear-gradient(rgba(147,51,234,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147,51,234,0.05) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none; z-index: -1;
      
    }

    #app { position: relative; z-index: 1; }
    button, .btn, .tab, .company-item, .card[onclick], [onclick], input, select, textarea, a {
      touch-action: manipulation;
    }

    *:focus { outline: none; }
    
    body.kb-nav *:focus-visible {
      outline: 1px solid rgba(124,58,237,0.45) !important;
      outline-offset: 2px !important;
      box-shadow: 0 0 0 3px rgba(124,58,237,0.08) !important;
    }
    body.kb-nav input:focus-visible,
    body.kb-nav textarea:focus-visible {
      outline: 1px solid rgba(6,182,212,0.5) !important;
      outline-offset: 1px !important;
      box-shadow: 0 0 0 3px rgba(6,182,212,0.07) !important;
    }
    body.kb-nav .company-item:focus-visible {
      outline: 1px solid rgba(6,182,212,0.5) !important;
      outline-offset: 2px !important;
    }
    body.kb-nav .tab:focus-visible {
      outline: 1px solid rgba(52,211,153,0.5) !important;
      outline-offset: 2px !important;
    }
    
    .dropdown-item.kb-focused,
    .pm-drop-opt.kb-focused,
    .bb-ac-item.kb-focused {
      background: rgba(124,58,237,0.25) !important;
      outline: 1px solid rgba(124,58,237,0.35) !important;
    }
    
    .ac-item { cursor: pointer; padding: 6px 10px; font-size:13px; }
    .ac-item:focus, .ac-item.ac-focused {
      background: rgba(124,58,237,0.25) !important;
      outline: none;
    }
    
    .card { contain: layout style; }
    
    .page { contain: layout; }
    input, select, textarea, button { font-family: 'Rajdhani', sans-serif; font-weight: 500; }

    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
    ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background-clip: padding-box;
      background-color: rgba(124,58,237,0.42); background-image: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
    ::-webkit-scrollbar-thumb:hover { background-color: rgba(124,58,237,0.7); }
    ::-webkit-scrollbar-thumb:active { background-color: rgba(6,182,212,0.7); }
    @supports not selector(::-webkit-scrollbar) { html, .modal, .sa-chat-log, .sa-side { scrollbar-width: thin; scrollbar-color: rgba(124,58,237,0.55) transparent; } }

    @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
    @keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.5; } }
    @keyframes syncGlow { 0%,100%{ opacity:0.6; } 50%{ opacity:1; } }
    #lastSyncedIndicator.syncing svg { animation: syncGlow 1.4s ease-in-out infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .fade-in { animation: fadeIn 0.15s ease-out; }
    .co-page.fade-in { animation:none; }

    @keyframes popupSlideIn {
      from { opacity: 0; transform: translateY(-28px) scale(0.95); filter: blur(4px); }
      to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0px); }
    }
    @keyframes popupSlideOut {
      from { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0px); }
      to   { opacity: 0; transform: translateY(-20px) scale(0.95); filter: blur(3px); }
    }
    @keyframes overlayFadeIn  { from { opacity: 0; } to { opacity: 1; } }
    @keyframes overlayFadeOut { from { opacity: 1; } to { opacity: 0; } }
    @keyframes iconPulseRing {
      0%   { box-shadow: 0 0 0 0 var(--popup-ring-color, rgba(99,179,237,0.55)); }
      70%  { box-shadow: 0 0 0 14px transparent; }
      100% { box-shadow: 0 0 0 0 transparent; }
    }
    @keyframes shineSwipe {
      0%   { transform: translateX(-120%) rotate(25deg); }
      100% { transform: translateX(320%)  rotate(25deg); }
    }

    .popup-overlay {
      position: fixed; inset: 0; z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      background: rgba(4, 4, 14, 0.55);
      animation: overlayFadeIn 0.25s ease forwards;
    }
    .popup-overlay.closing {
      animation: overlayFadeOut 0.18s ease-in forwards;
    }

    .popup-glass {
      position: relative; overflow: hidden;
      width: min(400px, calc(100vw - 32px));
      border-radius: 28px;
      padding: 26px 24px 20px;
      background:
        linear-gradient(135deg,
          rgba(255,255,255,0.07) 0%,
          rgba(20,16,44,0.82) 40%,
          rgba(255,255,255,0.04) 100%);
      border: 1px solid rgba(255,255,255,0.14);
      box-shadow:
        0 24px 64px rgba(0,0,0,0.7),
        0 2px 0 rgba(255,255,255,0.09) inset,
        0 -1px 0 rgba(0,0,0,0.3) inset,
        0 0 80px rgba(124,58,237,0.08);

      animation: popupSlideIn 0.35s cubic-bezier(.22,.68,0,1.15) forwards;
    }
    .popup-glass.closing {
      animation: popupSlideOut 0.16s ease-in forwards;
    }
    
    .popup-glass::before {
      content: '';
      position: absolute; top: 0; left: 0; width: 60%; height: 100%;
      background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%);
      animation: shineSwipe 1.8s cubic-bezier(.4,0,.2,1) 0.5s 1 forwards;
      pointer-events: none; z-index: 0;
    }
    
    .popup-glass::after {
      content: '';
      position: absolute; top: 0; left: 12px; right: 12px; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
      border-radius: 50%;
      pointer-events: none; z-index: 0;
    }

    .popup-inner { position: relative; z-index: 1; }

    .popup-header-row {
      display: flex; align-items: center; justify-content: center;
      gap: 8px; margin-bottom: 14px; position: relative;
    }
    .popup-icon-wrap {
      width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      animation: iconPulseRing 2s ease-out 0.8s 2;
      position: absolute; left: 0;
    }
    .popup-icon-wrap svg { width: 14px; height: 14px; }
    .popup-icon-wrap.type-info    { background: linear-gradient(135deg,#1e40af,#3b82f6); --popup-ring-color: rgba(59,130,246,0.5); box-shadow: 0 3px 12px rgba(59,130,246,0.5); }
    .popup-icon-wrap.type-success { background: linear-gradient(135deg,#065f46,#10b981); --popup-ring-color: rgba(16,185,129,0.5); box-shadow: 0 3px 12px rgba(16,185,129,0.5); }
    .popup-icon-wrap.type-warning { background: linear-gradient(135deg,#92400e,#f59e0b); --popup-ring-color: rgba(245,158,11,0.5); box-shadow: 0 3px 12px rgba(245,158,11,0.5); }
    .popup-icon-wrap.type-error   { background: linear-gradient(135deg,#7f1d1d,#ef4444); --popup-ring-color: rgba(239,68,68,0.5);  box-shadow: 0 3px 12px rgba(239,68,68,0.5); }

    .popup-badge {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 4px 11px; border-radius: 20px; font-size: 11px;
      font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
      font-family: 'Orbitron', monospace;
    }
    .popup-badge.type-info    { background: rgba(59,130,246,0.18);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
    .popup-badge.type-success { background: rgba(16,185,129,0.18);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
    .popup-badge.type-warning { background: rgba(245,158,11,0.18);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
    .popup-badge.type-error   { background: rgba(239,68,68,0.18);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

    .popup-title {
      font-family: 'Orbitron', monospace;
      font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
      color: #f1f5f9; text-align: center; margin-bottom: 10px;
    }
    .popup-message {
      font-size: 14px; font-weight: 500; line-height: 1.65;
      color: rgba(226,232,240,0.9); text-align: center;
      margin-bottom: 20px;
    }

    .popup-actions {
      display: flex; gap: 10px; flex-direction: column;
    }
    .popup-btn {
      width: 100%; padding: 12px 20px;
      border: none; border-radius: 14px;
      font-family: 'Rajdhani', sans-serif;
      font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
      cursor: pointer; transition: all 0.15s ease;
      position: relative; overflow: hidden;
    }
    .popup-btn:hover {  }
    .popup-btn:active { transform: scale(0.97); transition: transform 0.08s; }

    .popup-btn-dismiss {
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
      color: #fff;
      box-shadow: 0 4px 20px rgba(124,58,237,0.55), 0 1px 0 rgba(255,255,255,0.18) inset;
    }
    .popup-btn-remind {
      background: rgba(255,255,255,0.06);
      color: rgba(203,213,225,0.88);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.07) inset;
    }
    .popup-btn-remind:hover { background: rgba(255,255,255,0.11); color: #e2e8f0; }

    .popup-counter {
      text-align: center; font-size: 11.5px; color: rgba(148,163,184,0.5);
      margin-top: 10px; font-weight: 500; letter-spacing: 0.3px;
    }
    .popup-more-dot {
      display: inline-block; width: 5px; height: 5px; border-radius: 50%;
      background: rgba(148,163,184,0.4); margin: 0 2px; vertical-align: middle;
    }
    
    .header {
      background: rgba(14,11,32,0.68);
      backdrop-filter: blur(20px) saturate(170%);
      -webkit-backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid rgba(120,100,200,0.12);
      padding: 0 16px; height: 56px; display: flex; align-items: center;
      justify-content: space-between;
      position: sticky; top: 0; z-index: 100;
      transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }
    .header-logo { display:flex; align-items:center; gap:10px; cursor:pointer; }
    .header-logo-icon {
      width:34px; height:34px; border-radius:8px;
      background: linear-gradient(135deg, var(--purple), var(--cyan));
      display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px;
    }
    .header-logo-text { font-family:'Orbitron',monospace; font-size:15px; font-weight:900; color:var(--purpleLight); letter-spacing:2px; white-space:nowrap; }
    .header-actions { display:flex; align-items:stretch; gap:8px; }
    .header.app-scrolled {
      background: rgba(12,10,28,0.5) !important;
      backdrop-filter: blur(24px) saturate(180%) brightness(1.06) !important;
      -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.06) !important;
      border-bottom: 1px solid rgba(167,139,250,0.18) !important;
      box-shadow: 0 2px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    }
    .utility-bar.app-scrolled {
      background: rgba(12,10,28,0.48) !important;
      backdrop-filter: blur(20px) saturate(170%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(170%) !important;
      border-bottom: 1px solid rgba(167,139,250,0.12) !important;
    }

    .utility-bar {
      background: rgba(12,10,28,0.65); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
      border-bottom: 1px solid var(--glassBorder);
      padding: 8px 16px; display: flex; align-items: center; justify-content: center;
      gap: 6px; position: sticky; top: 56px; z-index: 99;
      transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease;
    }
    .util-btn {
      padding: 6px 14px; font-size: 12px; font-weight: 600; border: none;
      border-radius: 8px; cursor: pointer; display: inline-flex;
      align-items: center; gap: 6px; transition: opacity 0.15s;
      font-family: 'Rajdhani', sans-serif; text-transform: uppercase;
      letter-spacing: 0.5px; background: var(--bgInput);
      color: var(--textSecondary); border: 1px solid var(--border);
    }
    .util-btn:hover { opacity: 0.8; color: var(--textPrimary); }
    .util-btn:active { opacity: 0.6; }
    .util-btn svg { width:15px; height:15px; flex-shrink:0; }
    .util-btn.syncing { animation: pulse 1s infinite; }

    .btn {
      padding: 7px 14px; font-size: 13px; font-weight: 600; border: none; border-radius: 10px;
      cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
      transition: opacity 0.15s, background 0.15s; letter-spacing: 0.5px; text-transform: uppercase;
      font-family: 'Rajdhani', sans-serif; white-space: nowrap;
    }
    .btn:hover { opacity: 0.88; }
    .btn:active { opacity: 0.75; }
    .btn-purple { background: var(--purple); color: #fff; }
    .btn-cyan { background: var(--cyan); color: #fff; }
    html { -webkit-tap-highlight-color:transparent; }
    button, .btn, a, summary, [role="button"], [role="tab"], [role="radio"], .dropdown-item, .tab, .subtab, .mg-row, .ph-r, .analytics-card, .ga-dd-btn { -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:manipulation; }
    @media (hover:none) {
      button:not(:disabled):active, .btn:not(:disabled):active, [role="button"]:active, [role="radio"]:active, .dropdown-item:active, .mg-row:active, .ph-r:active, .analytics-card:active, .ga-dd-btn:active { scale:0.97; filter:brightness(1.18); transition:scale 70ms ease-out, filter 70ms ease-out; }
      .dropdown-item:active, .mg-row:active, .ph-r:active { scale:0.99; }
      .tab:active, .subtab:active, [role="tab"]:active, .ga-section:active { scale:1 !important; filter:brightness(1.3); transition:none !important; }
      .mg-inv-tab:active, .emp-mg-tab:active { scale:1 !important; filter:none !important; transition:none !important; }
    }
    @media (prefers-reduced-motion: reduce) { button:active, .btn:active, [role="button"]:active, .tab:active, .subtab:active, .mg-row:active, .ph-r:active, .analytics-card:active { scale:1 !important; } }
    .bh-settled { font-size:9px; font-weight:700; padding:3px 8px; border-radius:6px; color:#c4b5fd; background:rgba(124,58,237,0.12); border:1px solid rgba(167,139,250,0.35); white-space:nowrap; }
    #payNeg .neg-zero { padding:10px 12px; border-radius:10px; font-size:12.5px; color:#c4b5fd; background:rgba(124,58,237,0.1); border:1px solid rgba(167,139,250,0.3); }
    #beSave, #beRedeem, #beInvoice, #beCopy, #beDelete { justify-content:center !important; color:#fff !important; font:700 13px 'Rajdhani',sans-serif !important; letter-spacing:0.8px !important; text-transform:uppercase; }
    #billEditModal #beCopy, #billEditModal #beCopy .be-l > span { color:#22d3ee !important; }
    #billEditModal .be-l { position:relative; display:inline-flex; align-items:center; line-height:1; }
    #billEditModal .be-l > svg { position:absolute; right:100%; margin-right:8px; top:50%; transform:translateY(-50%); stroke:currentColor; }
    #billEditModal .be-l > span { color:#fff; font:inherit; }
    .btn-green { background: var(--green); color: #fff; }
    .btn-yellow { background: #fbbf24; color: #000; font-weight: 700; }
    .btn-red { background: var(--red); color: #fff; }
    .btn-orange { background: #fbbf24; color: #000; }
    .btn-pink { background: var(--pink); color: #fff; }
    .btn-ghost { background: transparent; color: var(--textSecondary); }
    .btn-ghost:hover { background: var(--bgHover); }
    .btn-outline { background: rgba(80,70,120,0.15); border: 1px solid rgba(120,100,200,0.25); color: var(--textSecondary); }
    .btn-outline:hover { background: rgba(80,70,120,0.25); border-color: rgba(120,100,200,0.35); }
    .btn-outline-purple { background:transparent; border:1px solid var(--purple); color:var(--purpleLight); }
    .btn-outline-purple:hover { background: rgba(124,58,237,0.15); }
    .btn-outline-cyan { background:transparent; border:1px solid var(--cyan); color:var(--cyan); }
    .btn-outline-cyan:hover { background: rgba(6,182,212,0.15); }
    .btn-outline-green { background:transparent; border:1px solid var(--green); color:var(--green); }
    .btn-outline-red { background:transparent; border:1px solid var(--red); color:var(--red); }
    .btn-outline-orange { background:transparent; border:1px solid #fbbf24; color:#f6d25d; }
    .btn-sm { padding: 5px 10px; font-size: 12px; }
    .btn-lg { padding: 10px 20px; font-size: 15px; }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
    .btn-full { width: 100%; justify-content: center; }

    .input {
      width: 100%; padding: 10px 12px; background: rgba(15,12,28,0.6);
      border: 1px solid rgba(80,65,130,0.3); border-radius: 10px; color: var(--textPrimary);
      font-size: 14px; font-weight: 500; outline: none; 
      
    }
    .input:focus { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(124,58,237,0.15); }
    .input::placeholder { color: #9990b8; font-weight: 500; }
    .input-search {
      padding-left: 38px;
      background: rgba(18,14,40,0.42) !important;
      backdrop-filter: blur(16px) saturate(150%);
      -webkit-backdrop-filter: blur(16px) saturate(150%);
      border: 1px solid rgba(167,139,250,0.18) !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.03);
    }
    .input-search:focus {
      border-color: rgba(167,139,250,0.45) !important;
      box-shadow: 0 0 0 3px rgba(124,58,237,0.1) !important;
    }

    .input[type="date"], .input[type="datetime-local"], .input[type="time"] {
      color-scheme: dark;
      -webkit-appearance: none;
      min-height: 40px;
    }
    .input[type="date"]::-webkit-calendar-picker-indicator,
    .input[type="datetime-local"]::-webkit-calendar-picker-indicator {
      filter: invert(0.7) sepia(1) hue-rotate(220deg) saturate(3);
      cursor: pointer;
      opacity: 0.85;
      padding: 4px;
      min-width: 20px;
      min-height: 20px;
    }
    .input[type="date"]::-webkit-calendar-picker-indicator:hover,
    .input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
      opacity: 1;
      filter: invert(0.8) sepia(1) hue-rotate(220deg) saturate(4);
    }
    
    @media (max-width: 600px) {
      .input[type="datetime-local"] { font-size: 12px !important; padding-right: 4px; }
    }

    .card {
      background: rgba(16,13,32,0.65);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      border: 1px solid rgba(120,100,200,0.18);
      box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
      border-radius: 14px; padding: 20px;
    }

    .badge {
      display:inline-flex; align-items:center; padding:2px 10px; border-radius:20px;
      font-size:11px; font-weight:600; letter-spacing:0.5px; text-transform:uppercase;
    }
    .badge-purple { background:rgba(124,58,237,0.13); color:#a78bfa; border:1px solid rgba(124,58,237,0.25); }
    .badge-green { background:rgba(16,185,129,0.13); color:#6ee7b7; border:1px solid rgba(16,185,129,0.25); }
    .badge-red { background:rgba(239,68,68,0.13); color:#fca5a5; border:1px solid rgba(239,68,68,0.25); }
    .badge-orange { background:rgba(245,158,11,0.13); color:#fcd34d; border:1px solid rgba(245,158,11,0.25); }
    .badge-cyan { background:rgba(6,182,212,0.13); color:#67e8f9; border:1px solid rgba(6,182,212,0.25); }
    .badge-yellow { background:rgba(251,191,36,0.13); color:#f6d25d; border:1px solid rgba(251,191,36,0.25); }
    .badge-pink { background:rgba(236,72,153,0.13); color:#f9a8d4; border:1px solid rgba(236,72,153,0.25); }

    .label {
      font-size: 11px; color: #22d3ee; text-transform: uppercase;
      letter-spacing: 1px; margin-bottom: 5px; display: block; font-weight: 700;
    }

    .modal-overlay {
      position:fixed; inset:0; background:rgba(0,0,0,0.5);
      display:flex; align-items:center; justify-content:center; z-index:1000; padding:20px;
    }
    .modal {
      background:linear-gradient(150deg,rgba(255,255,255,0.12) 0%,rgba(56,36,116,0.42) 32%,rgba(22,15,50,0.62) 100%);
      backdrop-filter:blur(18px) saturate(160%);
      -webkit-backdrop-filter:blur(18px) saturate(160%);
      border:1px solid rgba(255,255,255,0.16); border-radius:22px;
      padding:24px; width:100%; max-width:550px; max-height:80vh; overflow-y:auto;
      box-shadow:0 30px 80px rgba(0,0,0,0.55),0 1px 0 rgba(255,255,255,0.18) inset,0 -1px 0 rgba(0,0,0,0.22) inset,0 0 70px rgba(124,58,237,0.12);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .modal { background:#1a1236; } }
    @media (min-width: 900px) { .inv-set-modal { max-width:680px !important; } }
    @supports not selector(::-webkit-scrollbar) { .modal { scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.55) transparent; } }
    .modal::-webkit-scrollbar, .modal *::-webkit-scrollbar { width:8px; height:8px; }
    .modal::-webkit-scrollbar-track, .modal *::-webkit-scrollbar-track { background:transparent; margin:18px 0; }
    .modal::-webkit-scrollbar-thumb, .modal *::-webkit-scrollbar-thumb { background-color:rgba(124,58,237,0.42); border-radius:8px; border:2px solid transparent; background-clip:padding-box; }
    .modal::-webkit-scrollbar-thumb:hover, .modal *::-webkit-scrollbar-thumb:hover { background-color:rgba(124,58,237,0.7); }
    .modal::-webkit-scrollbar-thumb:active, .modal *::-webkit-scrollbar-thumb:active { background-color:rgba(6,182,212,0.7); }
    @keyframes toastIn { 0% { opacity:0; transform:translateY(22px) scale(0.94); } 60% { opacity:1; } 100% { opacity:1; transform:none; } }
    @keyframes toastOut { to { opacity:0; transform:translateY(14px) scale(0.97); } }
    @keyframes toastIcon { 0% { transform:scale(0.3) rotate(-25deg); opacity:0; } 70% { transform:scale(1.15); opacity:1; } 100% { transform:none; } }
    @keyframes toastLife { from { transform:scaleX(1); } to { transform:scaleX(0); } }
    .app-toast {
      --tone: 6,182,212; --tone2: 124,58,237;
      position:fixed; left:0; right:0; bottom:20px; margin:0 auto; z-index:99999;
      width:max-content; max-width:min(88vw,520px);
      display:flex; align-items:center; gap:10px; padding:11px 18px 13px 12px; overflow:hidden;
      border-radius:14px; pointer-events:none; white-space:nowrap;
      font:700 14px 'Rajdhani',sans-serif; color:#f7f5fc;
      background:linear-gradient(135deg,rgba(255,255,255,0.08) 0%,rgba(18,12,40,0.78) 45%,rgba(var(--tone),0.10) 100%);
      backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%);
      border:1px solid rgba(var(--tone),0.38);
      box-shadow:0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.10), 0 0 28px rgba(var(--tone),0.22);
      animation:toastIn 0.42s cubic-bezier(0.34,1.46,0.64,1) both;
    }
    .app-toast.is-error { --tone: 239,68,68; --tone2: 185,28,28; }
    .app-toast button, .app-toast a { pointer-events:auto; cursor:pointer; }
    #payNeg .neg-warn { margin:10px 0 6px; font-size:12.5px; color:#fca5a5; font-weight:600; }
    #payNeg .neg-opt { display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:7px 4px; background:none; border:0; color:var(--textSecondary); font:600 13px 'Rajdhani',sans-serif; cursor:pointer; }
    #payNeg .neg-opt i { width:15px; height:15px; flex:none; border-radius:50%; border:2px solid rgba(167,139,250,0.6); }
    #payNeg .neg-opt.on { color:#fff; } #payNeg .neg-opt.on i { background:#7c3aed; border-color:#7c3aed; box-shadow:inset 0 0 0 2px #140f2a; }
    #payNeg .neg-pm { margin-top:10px; }
    #payNeg .neg-pm-row { display:flex; align-items:center; gap:10px; }
    #payNeg .neg-pm-row > span { font-size:11px; line-height:1.3; color:var(--textMuted); min-width:0; }
    .app-toast.wrap { white-space:normal; width:min(88vw,480px); }
    .app-toast.leaving { animation:toastOut 0.26s ease-in forwards; }
    .app-toast-icon {
      flex-shrink:0; width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center;
      color:#fff; background:linear-gradient(135deg,rgba(var(--tone),0.9),rgba(var(--tone2),0.85));
      box-shadow:0 0 14px rgba(var(--tone),0.45); animation:toastIcon 0.5s 0.08s cubic-bezier(0.34,1.46,0.64,1) both;
    }
    .app-toast-icon svg { display:block; }
    .app-toast-msg { min-width:0; }
    .app-toast-life {
      position:absolute; left:10px; right:10px; bottom:4px; height:2px; border-radius:2px;
      background:linear-gradient(90deg,rgba(var(--tone),0.9),rgba(var(--tone2),0.7)); transform-origin:left center;
      animation:toastLife var(--toast-ms,2500ms) linear both;
    }
    @media (max-width:519px) {
      .app-toast { max-width:calc(100vw - 16px); padding:9px 12px 11px 10px; font-size:12px; white-space:nowrap; }
      .app-toast.wrap { white-space:normal; width:calc(100vw - 16px); word-break:break-word; }
      .app-toast.wrap .app-toast-msg { line-height:1.3; max-height:40vh; overflow-y:auto; }
      .app-toast-icon { width:22px; height:22px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .app-toast, .app-toast-icon { animation:none; }
      .app-toast.leaving { animation:none; opacity:0; transition:opacity 0.2s; }
      .app-toast-life { animation:none; display:none; }
    }
    @media (prefers-reduced-transparency: reduce) { .app-toast { background:rgba(18,12,40,0.97); backdrop-filter:none; -webkit-backdrop-filter:none; } }
    .modal-header {
      display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;
    }
    .modal-title { font-family:'Orbitron',monospace; font-size:17px; color:var(--purpleLight); }
    .modal.mh-wrap { display:flex !important; flex-direction:column; overflow:hidden !important; }
    .modal.mh-wrap > .modal-header { flex:none; margin-bottom:12px; }
    .modal.mh-wrap > .ph-head { flex:none; }
    .mh-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0 -8px; padding:0 8px 4px; }
    .mh-body.mh-sc, #companySettingsModal .cs-body.mh-sc { -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0.35) 0,#000 8px); mask-image:linear-gradient(to bottom,rgba(0,0,0,0.35) 0,#000 8px); }
    #delRefreshBtn { height:30px; padding:0 12px !important; gap:6px; font-size:12.5px; border-radius:8px !important; }
    #delRefreshBtn svg { width:14px; height:14px; }
    @media (max-width:600px) { #delRefreshBtn span { display:none; } #delRefreshBtn { padding:0 9px !important; } }

    .dropdown { position: relative; }
    .dropdown-trigger {
      padding:9px 12px; background:var(--bgInput); border:1px solid var(--border);
      border-radius:8px; cursor:pointer; display:flex; justify-content:space-between;
      align-items:center; color:var(--textPrimary); font-size:14px; font-weight:500;
      transition: border-color 0.2s; min-height: 40px;
    }
    .dropdown-trigger:hover { border-color: var(--purple); }
    .dropdown-trigger.open { border-color: var(--purple); }
    .dropdown-trigger .placeholder { color: var(--textMuted); }
    .dropdown-menu {
      position:absolute; top:calc(100% + 4px); left:0; right:0;
      background:rgba(16,13,30,0.97); border:1px solid var(--glassBorder); border-radius:10px;
      z-index:200; max-height:220px; overflow-y:auto;
      box-shadow:0 12px 40px rgba(0,0,0,0.6);
    }
    .dropdown-item {
      padding:10px 12px; cursor:pointer; display:flex; align-items:center;
      justify-content:space-between; font-size:13px; transition:background 0.15s;
      color: var(--textPrimary);
    }
    .dropdown-item:hover { background: var(--bgHover); }
    .dropdown-item.selected { background: rgba(124,58,237,0.13); color: var(--purpleLight); }
    .dropdown-search { padding:8px; border-bottom:1px solid var(--border); }
    .dropdown-empty { padding:12px; color:var(--textMuted); font-size:13px; text-align:center; }

    .toggle { display:flex; align-items:center; gap:10px; cursor:pointer; }
    .toggle-track {
      width:44px; height:24px; border-radius:12px; position:relative;
      transition: background 0.2s; border: 1px solid var(--border);
    }
    .toggle-track.on { background:var(--green); border-color:rgba(16,185,129,0.4); }
    .toggle-track.off { background:rgba(239,68,68,0.25); }
    .toggle-thumb {
      width:18px; height:18px; border-radius:50%; position:absolute; top:2px;
      transition: left 0.2s, background 0.2s;
    }
    .toggle-track.on .toggle-thumb { left:22px; background:#fff; }
    .toggle-track.off .toggle-thumb { left:2px; background:var(--textMuted); }
    .toggle-label { font-size:14px; font-weight:600; }

    .search-wrap { position: relative; }
    #companySearch { padding-right: 46px; }
    .sa-voice-btn {
      position:absolute; right:5px; top:50%; transform:translateY(-50%);
      width:36px; height:36px; border-radius:9px; border:1px solid transparent;
      display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer;
      background:transparent; color:var(--textMuted); z-index:2;
      transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .12s cubic-bezier(0.23,1,0.32,1);
      -webkit-tap-highlight-color: transparent;
    }
    .sa-voice-btn[hidden] { display:none; }
    .sa-voice-btn:active { transform:translateY(-50%) scale(0.94); }
    .sa-voice-btn:focus-visible { outline:2px solid #06b6d4; outline-offset:1px; }
    @media (hover: hover) and (pointer: fine) {
      .sa-voice-btn:hover { color:#a78bfa; background:rgba(124,58,237,0.12); }
    }
    .sa-vb-mic, .sa-vb-wave {
      position:absolute; transition: opacity .18s cubic-bezier(0.23,1,0.32,1), transform .18s cubic-bezier(0.23,1,0.32,1);
    }
    .sa-vb-wave { display:flex; align-items:center; gap:2px; height:18px; opacity:0; transform:scale(0.9); }
    .sa-vb-wave i {
      display:block; width:2px; height:18px; border-radius:2px;
      background:linear-gradient(180deg,#06b6d4,#7c3aed); transform:scaleY(0.3);
    }
    .sa-voice-btn.listening { color:#06b6d4; background:transparent; border-color:transparent; }
    .sa-voice-btn.listening .sa-vb-mic { opacity:0; transform:scale(0.9); }
    .sa-voice-btn.listening .sa-vb-wave { opacity:1; transform:scale(1); }
    .sa-voice-btn.listening .sa-vb-wave i { animation: saTravel 1.1s ease-in-out infinite; }
    @keyframes saTravel { 0%,100% { transform:scaleY(.3); } 50% { transform:scaleY(var(--a, 1)); } }
    .sa-voice-btn.working .sa-vb-wave i { animation: saSeq 1.5s ease-in-out infinite !important; }
    .sa-voice-btn.working .sa-vb-wave i:nth-child(2) { animation-delay:.2s !important; } .sa-voice-btn.working .sa-vb-wave i:nth-child(3) { animation-delay:.4s !important; }
    .sa-voice-btn.working .sa-vb-wave i:nth-child(4) { animation-delay:.6s !important; } .sa-voice-btn.working .sa-vb-wave i:nth-child(5) { animation-delay:.8s !important; }
    .sa-vb-wave { gap:2.5px; }
    .sa-vb-wave i:nth-child(1) { --a:.55; animation-delay:0s; } .sa-vb-wave i:nth-child(2) { --a:.8; animation-delay:.14s; }
    .sa-vb-wave i:nth-child(3) { --a:1; animation-delay:.28s; } .sa-vb-wave i:nth-child(4) { --a:.8; animation-delay:.42s; }
    .sa-vb-wave i:nth-child(5) { --a:.55; animation-delay:.56s; }
    @keyframes saWave { 0%,100% { transform:scaleY(calc(.32 + var(--a, 1) * .12)); } 25% { transform:scaleY(calc(var(--a, 1) * .95)); } 50% { transform:scaleY(calc(.38 + var(--a, 1) * .2)); } 75% { transform:scaleY(var(--a, 1)); } }
    @keyframes saBreathe { 0%,100% { transform:scaleY(.38); opacity:.65; } 50% { transform:scaleY(.8); opacity:1; } }
    @keyframes saVoiceBar { 0%,100% { transform:scaleY(0.3); } 50% { transform:scaleY(1); } }
    @keyframes saVoiceFade { 0%,100% { opacity:.45; } 50% { opacity:1; } }
    @media (prefers-reduced-motion: reduce) {
      .sa-voice-btn.listening .sa-vb-wave i { animation: saVoiceFade 1.2s ease infinite; transform:scaleY(0.6); }
    }
    html[data-theme="light"] .sa-voice-btn { color:#6b6488; }
    html[data-theme="light"] .sa-voice-btn.listening { color:#0891b2; background:transparent; border-color:transparent; }
    #companyListItems { padding-bottom: 92px; }
    .sa-co-search .search-icon { left:23px; }
    #companySearch { padding-left:60px; padding-right:48px; }
    #companyVoiceBtn { right:9px; }
    @media (min-width: 768px) {
      .sa-co-search .search-icon { left:25px; }
      #companySearch { padding-left:62px; padding-right:50px; }
      #companyVoiceBtn { right:11px; }
    }

    .sa-chat-fab {
      position:fixed; right:max(16px, env(safe-area-inset-right)); bottom:max(16px, env(safe-area-inset-bottom)); z-index:140;
      width:64px; height:64px; padding:0; border:none; background:transparent; cursor:pointer;
      display:flex; align-items:center; justify-content:center; isolation:isolate;
      opacity:0; transform:scale(0.9) translateY(6px); pointer-events:none; visibility:hidden;
      transition: opacity .24s cubic-bezier(0.23,1,0.32,1), transform .24s cubic-bezier(0.23,1,0.32,1), visibility 0s linear .24s;
      -webkit-tap-highlight-color:transparent; color-scheme:only light;
    }
    .sa-chat-fab.show { opacity:1; transform:none; pointer-events:auto; visibility:visible; transition-delay:0s; }
    .sa-chat-fab:active { transform:scale(0.94); transition-duration:.12s; }
    .sa-chat-fab:focus-visible { outline:2px solid #06b6d4; outline-offset:2px; border-radius:50%; }
    .sa-chat-fab .sa-mascot { position:relative; width:56px; height:auto; filter:drop-shadow(0 4px 10px rgba(10,6,30,0.45));
      transition: transform .2s cubic-bezier(0.23,1,0.32,1); }
    .sa-mascot { display:block; user-select:none; -webkit-user-drag:none; }
    .sa-fab-glow { position:absolute; inset:4px 2px; border-radius:50%; z-index:-1; pointer-events:none;
      background:linear-gradient(90deg,#7c3aed,#06b6d4,#10b981);
      filter:blur(11px); opacity:.62; transition:opacity .2s ease; }
    @media (hover: hover) and (pointer: fine) {
      .sa-chat-fab:hover .sa-fab-glow { opacity:.75; }
    }

    .sa-chat {
      position:fixed; z-index:145; right:20px; bottom:20px; width:400px; height:min(640px, calc(100vh - 100px));
      display:flex; flex-direction:column; border-radius:22px; isolation:isolate;
      background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(18,12,40,0.9) 40%,rgba(255,255,255,0.03) 100%);
      backdrop-filter:blur(28px) saturate(180%); -webkit-backdrop-filter:blur(28px) saturate(180%);
      border:1px solid rgba(255,255,255,0.13);
      box-shadow:0 24px 64px rgba(0,0,0,0.7),0 2px 0 rgba(255,255,255,0.08) inset,0 -1px 0 rgba(0,0,0,0.25) inset,0 0 60px rgba(124,58,237,0.08);
      font-family:'Rajdhani',sans-serif; color:var(--textPrimary);
      opacity:0; transform-origin:center; transition: transform 0.32s cubic-bezier(0.34,1.46,0.64,1), opacity 0.2s ease;
    }
    .sa-chat.open { opacity:1; }
    .sa-chat[hidden] { display:none; }
    @media (max-width: 767px) {
      .sa-chat { left:8px; right:8px; bottom:max(8px, env(safe-area-inset-bottom)); width:auto; height:72vh; height:72dvh;
        background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(18,12,40,0.95) 40%,rgba(255,255,255,0.03) 100%); }
    }
    .sa-chat-ring { position:absolute; inset:-1px; border-radius:inherit; padding:1.5px; z-index:3; pointer-events:none; display:none;
      background:linear-gradient(90deg,#7c3aed,#06b6d4,#10b981,#06b6d4,#7c3aed) 0 0 / 300% 100%;
      -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
      animation: saRingFlow 1.6s linear infinite; }
    .sa-chat-ring i { display:none; }
    .sa-chat.glow .sa-chat-ring { display:block; }
    @keyframes saRingFlow { to { background-position:-300% 0; } }
    .sa-ava-trace { position:absolute; left:50%; top:50%; width:41px; aspect-ratio:100/92; height:auto; transform:translate(-50%,-50%); pointer-events:none; overflow:visible; display:none; z-index:2;
      filter:drop-shadow(0 0 3px rgba(34,211,238,0.55)); }
    .sa-ava-trace path { stroke-dasharray:62 38; animation: saTrace 1.3s linear infinite; }
    .sa-chat.glow .sa-ava-trace { display:block; }
    @keyframes saTrace { to { stroke-dashoffset:-100; } }
    @keyframes saSpin { to { transform:rotate(360deg); } }

    .sa-chat-head { display:flex; align-items:center; gap:12px; padding:16px 14px 12px 18px; border-bottom:1px solid rgba(255,255,255,0.07); }
    .sa-chat-ava { position:relative; width:42px; height:42px; flex-shrink:0; display:flex; align-items:center; justify-content:center; isolation:isolate; color-scheme:only light; }
    .sa-chat-ava .sa-fab-glow { display:none; }
    .sa-chat-ava .sa-mascot { width:41px; height:auto; position:relative; }
    .sa-chat.listening .sa-chat-ava .sa-fab-glow { animation: saListenGlow 1.1s ease-in-out infinite; }
    @keyframes saListenGlow { 0%,100% { opacity:.45; transform:scale(0.9); } 50% { opacity:1; transform:scale(1.15); } }
    .sa-chat-ttl { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
    .sa-chat-name { display:flex; align-items:center; flex-wrap:wrap; gap:2px 8px; min-width:0; }
    .sa-chat-name b { font-family:'Orbitron',monospace; font-size:14px; font-weight:700; color:var(--purpleLight); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
    @media (max-width: 420px) { .sa-chat-head { gap:10px; padding-right:8px; } .sa-chat-tag { font-size:9.5px; padding:0 6px; } .sa-chat-x { width:34px; height:34px; } }
    .sa-chat-tag { font-size:10px; font-weight:700; letter-spacing:.3px; padding:1px 7px; border-radius:999px; color:#fcd34d;
      background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.28); }
    .sa-chat-status { display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--textMuted); }
    .sa-chat-status i { width:7px; height:7px; border-radius:50%; background:#10b981; }
    .sa-chat-status[data-mode="listen"] i { background:#22d3ee; animation: saPulse 1s ease-in-out infinite; }
    .sa-chat-status[data-mode="work"] i { background:#f59e0b; animation: saPulse .7s ease-in-out infinite; }
    .sa-chat-status[data-mode="review"] i { background:#a78bfa; }
    .sa-chat-status[data-mode="think"] i { background:#22d3ee; animation: saPulse .8s ease-in-out infinite; }
    .sa-chat-status[data-mode="review"] span { color:#c4b5fd; }
    @keyframes saPulse { 50% { opacity:.35; } }
    .sa-chat-x { width:36px; height:36px; border-radius:10px; border:none; background:transparent; color:var(--textMuted); cursor:pointer; display:flex; align-items:center; justify-content:center;
      transition: background-color .15s ease, color .15s ease; }
    .sa-chat-x:focus-visible, .sa-chat-send:focus-visible, .sa-chat-mic:focus-visible { outline:2px solid #06b6d4; outline-offset:2px; }
    @media (hover: hover) and (pointer: fine) { .sa-chat-x:hover { background:rgba(255,255,255,0.07); color:var(--textPrimary); } }

    .sa-chat-log { flex:1; overflow-y:auto; padding:12px 16px 8px; display:flex; flex-direction:column; gap:10px; overscroll-behavior:contain;
      scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.55) transparent; }
    .sa-msg { max-width:86%; padding:9px 12px; border-radius:14px; font-size:15px; font-weight:600; line-height:1.38; word-wrap:break-word;
      animation: saMsgIn .2s cubic-bezier(0.23,1,0.32,1); }
    .sa-msg.bot { align-self:flex-start; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-bottom-left-radius:5px; color:var(--textSecondary); }
    .sa-msg.bot.card { background:transparent; border:none; padding:0; max-width:92%; }
    .sa-msg.me { align-self:flex-end; color:#f3f0ff; border-bottom-right-radius:5px; white-space:pre-wrap;
      background:rgba(124,58,237,0.22); border:1px solid rgba(167,139,250,0.3); }
    .sa-msg b { color:#67e8f9; font-weight:700; }
    @keyframes saMsgIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

    .sa-msg.typing { display:flex; gap:5px; align-items:center; padding:12px 14px; }
    .sa-msg.typing i { width:7px; height:7px; border-radius:50%; background:#a78bfa; opacity:.35; animation: saDot 1.2s ease-in-out infinite; }
    .sa-msg.typing i:nth-child(2) { animation-delay:.15s; background:#22d3ee; } .sa-msg.typing i:nth-child(3) { animation-delay:.3s; background:#10b981; }
    @keyframes saDot { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-3px); } }
    @media (prefers-reduced-motion: reduce) { .sa-msg.typing i { animation: saPulse 1.2s ease-in-out infinite; } }
    .sa-welcome { padding:6px 0 2px; }
    .sa-welcome h4 { font-family:'Orbitron',monospace; font-size:14px; font-weight:700; color:var(--textPrimary); margin:0 0 6px; }
    .sa-welcome p { margin:0 0 12px; font-size:14.5px; font-weight:600; color:var(--textMuted); line-height:1.4; max-width:36ch; }
    .sa-welcome p b { color:#34d399; }
    .sa-welcome .sa-mode-note { font-size:13px; color:var(--textMuted); padding:8px 10px; border-radius:10px; background:rgba(124,58,237,0.08); border:1px solid rgba(167,139,250,0.18); }
    .sa-chat-ex { display:flex; flex-direction:column; gap:8px; }
    .sa-chat-ex button { display:flex; align-items:flex-start; gap:10px; text-align:left; width:100%; min-height:44px; padding:10px 12px; border-radius:12px; cursor:pointer;
      font-family:'Rajdhani',sans-serif; font-size:14px; font-weight:600; color:var(--textSecondary); line-height:1.3;
      background:rgba(15,12,28,0.55); border:1px solid rgba(80,65,130,0.3);
      transition: background-color .15s ease, border-color .15s ease, transform .12s cubic-bezier(0.23,1,0.32,1); }
    .sa-chat-ex button svg { flex-shrink:0; margin-top:2px; color:var(--purpleLight); }
    .sa-opts { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
    .sa-msg.bot { position:relative; padding-right:32px; }
    .sa-msg.bot.card .sa-card-top { padding-right:38px; }
    .sa-msg.bot.card .sa-more { top:5px; right:5px; }
    .sa-msg.bot.card .sa-menu { top:36px; }
    .sa-more { position:absolute; top:4px; right:4px; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:transparent; color:var(--textMuted); cursor:pointer; opacity:.55; transition:opacity .15s, background .15s; }
    .sa-msg.bot:hover .sa-more, .sa-more:focus-visible, .sa-more[aria-expanded="true"] { opacity:1; }
    .sa-more:hover { background:rgba(167,139,250,0.14); color:#c4b5fd; }
    .sa-more:focus-visible { outline:2px solid #a78bfa; outline-offset:1px; }
    @media (hover:none) { .sa-more { opacity:.8; } }
    .sa-menu { position:absolute; top:32px; right:4px; z-index:5; min-width:120px; padding:4px; border-radius:10px; background:#1b1438; border:1px solid rgba(167,139,250,0.3); box-shadow:0 10px 26px rgba(0,0,0,0.45); animation:saMenuIn .12s ease-out; }
    .sa-menu button { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border:0; border-radius:7px; background:transparent; color:var(--textPrimary); font:600 13.5px 'Rajdhani',sans-serif; cursor:pointer; text-align:left; }
    .sa-menu button:hover, .sa-menu button:focus-visible { background:rgba(124,58,237,0.2); outline:none; }
    @keyframes saMenuIn { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:none; } }
    html[data-theme="light"] .sa-menu { background:#fff; border-color:rgba(109,40,217,0.2); box-shadow:0 10px 26px rgba(76,29,149,0.15); }
    html[data-theme="light"] .sa-menu button:hover { background:rgba(124,58,237,0.08); }
    .sa-opts button, .sa-chat-chips button {
      font-family:'Rajdhani',sans-serif; font-weight:700; font-size:14px; cursor:pointer; border-radius:10px; padding:6px 13px; min-height:36px;
      color:#a5f3fc; background:rgba(6,182,212,0.08); border:1px solid rgba(34,211,238,0.3);
      transition: background-color .15s ease, border-color .15s ease, transform .12s cubic-bezier(0.23,1,0.32,1); }
    .sa-chat-ex button:active, .sa-opts button:active, .sa-chat-chips button:active { transform:scale(0.97); }
    @media (hover: hover) and (pointer: fine) {
      .sa-chat-ex button:hover { border-color:rgba(167,139,250,0.45); background:rgba(124,58,237,0.1); }
      .sa-opts button:hover, .sa-chat-chips button:hover { background:rgba(6,182,212,0.16); border-color:rgba(34,211,238,0.5); }
    }

    .sa-card { min-width:240px; border-radius:14px; overflow:hidden; background:rgba(15,12,28,0.6); border:1px solid rgba(80,65,130,0.35); }
    .sa-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px 8px; background:rgba(124,58,237,0.12); }
    .sa-card-co { font-family:'Orbitron',monospace; font-size:11.5px; font-weight:700; color:var(--purpleLight); }
    .sa-card-n { font-size:12px; font-weight:700; color:var(--textMuted); white-space:nowrap; }
    .sa-card-ln { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; border-top:1px solid rgba(255,255,255,0.05); }
    .sa-card-g { display:flex; flex-direction:column; font-size:14.5px; font-weight:700; color:var(--textPrimary); line-height:1.2; }
    .sa-card-g i { font-style:normal; font-size:12.5px; font-weight:600; color:#f0abfc; }
    .sa-card-ln b { color:#22d3ee; font-family:'Orbitron',monospace; font-size:12px; white-space:nowrap; }
    .sa-card-pay { display:flex; align-items:center; gap:8px; padding:8px 12px 10px; border-top:1px solid rgba(255,255,255,0.05); }
    .sa-pill { font-size:12px; font-weight:700; padding:1px 9px; border-radius:999px; }
    .sa-pill.green { color:#34d399; background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); }
    .sa-pill.amber { color:#fbbf24; background:rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.3); }
    .sa-pill.red { color:#f87171; background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); }
    .sa-card-pm { font-size:13px; font-weight:700; color:var(--textSecondary); }

    .sa-chat-chips { display:flex; gap:6px; padding:4px 16px 2px; overflow-x:auto; scrollbar-width:none; }
    .sa-chat-chips[hidden] { display:none; }
    .sa-chat-chips button { flex-shrink:0; color:var(--textSecondary); background:rgba(15,12,28,0.55); border-color:rgba(80,65,130,0.35); }
    .sa-chat-chips button[data-cmd="save"] { color:#34d399; background:rgba(16,185,129,0.1); border-color:rgba(16,185,129,0.4); }

    .sa-chat-form { display:flex; align-items:flex-end; gap:8px; padding:10px 14px 14px; }
    .sa-chat-field { position:relative; flex:1; display:flex; align-items:flex-end; border-radius:12px; min-height:46px;
      background:rgba(15,12,28,0.6); border:1px solid rgba(80,65,130,0.35); transition: border-color .15s ease, box-shadow .15s ease; }
    .sa-chat-field:focus-within { border-color:var(--purple); box-shadow:0 0 0 2px rgba(124,58,237,0.15); }
    .sa-chat-field textarea {
      flex:1; resize:none; min-height:44px; max-height:120px; padding:12px 4px 11px 13px; border:none; outline:none; background:transparent; color:var(--textPrimary);
      font-family:'Rajdhani',sans-serif; font-size:16px; font-weight:600; line-height:1.3; }
    .sa-chat-field textarea::placeholder { color:#9990b8; }
    .sa-chat-mic { width:38px; height:38px; margin:3px 4px 3px 0; flex-shrink:0; border:none; border-radius:9px; cursor:pointer;
      display:flex; align-items:center; justify-content:center; color:var(--textMuted); background:transparent; transition: color .15s ease, background-color .15s ease; }
    .sa-chat-mic[hidden] { display:none; }
    @media (hover: hover) and (pointer: fine) { .sa-chat-mic:hover { color:var(--purpleLight); background:rgba(124,58,237,0.12); } }
    .sa-chat-live { position:absolute; inset:0 46px 0 0; display:none; align-items:center; gap:11px; padding:0 13px; pointer-events:none; overflow:hidden; }
    .sa-live-text { font-size:15px; font-weight:600; color:var(--textSecondary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .sa-live-wave { display:flex; align-items:center; gap:3px; height:22px; flex-shrink:0; }
    .sa-live-wave i { width:3px; height:22px; border-radius:3px; background:linear-gradient(180deg,#22d3ee,#7c3aed); transform:scaleY(.22); transform-origin:center;
      animation: saWave var(--d, 1.6s) cubic-bezier(.45,0,.55,1) infinite; box-shadow:0 0 6px rgba(34,211,238,0.25); }
    .sa-live-wave i:nth-child(1) { --a:.35; --d:1.8s; --f:.5; animation-delay:-.3s } .sa-live-wave i:nth-child(2) { --a:.6; --d:1.5s; --f:.75; animation-delay:-1s }
    .sa-live-wave i:nth-child(3) { --a:.85; --d:1.65s; --f:.95; animation-delay:-.55s } .sa-live-wave i:nth-child(4) { --a:1; --d:1.4s; --f:1; animation-delay:-1.2s }
    .sa-live-wave i:nth-child(5) { --a:.8; --d:1.7s; --f:.9; animation-delay:-.75s } .sa-live-wave i:nth-child(6) { --a:.55; --d:1.55s; --f:.7; animation-delay:-.2s }
    .sa-live-wave i:nth-child(7) { --a:.3; --d:1.9s; --f:.45; animation-delay:-.9s }
    .sa-chat-field.lvl .sa-live-wave { transform:scaleY(calc(.7 + var(--lv, 0) * .5)); transition:transform .12s cubic-bezier(.2,.8,.2,1); }
    .sa-chat-field.listening .sa-chat-live { display:flex; }
    .sa-chat-field.listening textarea, .sa-chat-field.listening textarea::placeholder { color:transparent; }
    .sa-chat-field.listening { border-color:rgba(6,182,212,0.5); }
    .sa-chat-field.listening .sa-chat-mic { color:#22d3ee; background:rgba(6,182,212,0.12); }
    .sa-chat-field.working .sa-chat-live { display:flex; }
    .sa-chat-field.working textarea, .sa-chat-field.working textarea::placeholder { color:transparent; }
    .sa-chat-field.working .sa-live-wave i { animation: saSeq 1.5s ease-in-out infinite; }
    .sa-chat-field.working .sa-live-wave i:nth-child(1) { animation-delay:0s } .sa-chat-field.working .sa-live-wave i:nth-child(2) { animation-delay:.16s } .sa-chat-field.working .sa-live-wave i:nth-child(3) { animation-delay:.32s }
    .sa-chat-field.working .sa-live-wave i:nth-child(4) { animation-delay:.48s } .sa-chat-field.working .sa-live-wave i:nth-child(5) { animation-delay:.64s } .sa-chat-field.working .sa-live-wave i:nth-child(6) { animation-delay:.8s }
    .sa-chat-field.working .sa-live-wave i:nth-child(7) { animation-delay:.96s }
    .sa-chat-send { width:46px; height:46px; flex-shrink:0; border-radius:12px; border:none; cursor:pointer; color:#fff; background:var(--purple);
      display:flex; align-items:center; justify-content:center; transition: transform .12s cubic-bezier(0.23,1,0.32,1), filter .15s ease; }
    .sa-chat-send:active { transform:scale(0.94); }
    @media (hover: hover) and (pointer: fine) { .sa-chat-send:hover { filter:brightness(1.12); } }

    .sa-chat-form { padding:8px 14px 14px; }
    .sa-chat-field { border-radius:28px; min-height:54px; padding:5px 6px 5px 4px; align-items:flex-end; }
    .sa-chat-field textarea { padding:12px 6px 11px 14px; min-height:42px; }
    .sa-chat-acts { display:flex; align-items:center; gap:4px; flex-shrink:0; align-self:flex-end; margin-bottom:4px; }
    .sa-chat-acts .sa-chat-mic, .sa-chat-acts .sa-chat-send { width:42px; height:42px; margin:0; border-radius:50%; }
    .sa-chat-acts .sa-chat-send { position:relative; overflow:hidden; color:#fff; box-shadow:0 4px 14px rgba(124,58,237,0.35);
      background:linear-gradient(135deg,#7c3aed 0%,#4f46e5 45%,#06b6d4 100%); }
    .sa-chat-acts .sa-chat-mic, .sa-chat-acts .sa-chat-send { width:36px; height:36px; }
    .sa-chat-acts .sa-chat-send { color-scheme:only light; }
    .sa-ai-wave, .sa-ai-arrow { position:absolute; left:50%; top:50%; transition: transform .22s cubic-bezier(0.23,1,0.32,1), opacity .18s ease; }
    .sa-ai-wave { display:flex; align-items:center; gap:2.5px; height:14px; transform:translate(-50%,-50%); }
    .sa-ai-wave i { display:block; width:2px; border-radius:2px; background:#fff !important; transform-origin:center; transition: transform .22s cubic-bezier(0.23,1,0.32,1); }
    .sa-ai-wave i:nth-child(1) { height:6px; } .sa-ai-wave i:nth-child(2) { height:12px; } .sa-ai-wave i:nth-child(3) { height:14px; } .sa-ai-wave i:nth-child(4) { height:8px; }
    .sa-ai-arrow { opacity:0; transform:translate(-50%,-50%) scale(.4) rotate(-90deg); stroke:#fff !important; }
    .sa-chat-field.has-text .sa-ai-wave { opacity:0; transform:translate(-50%,-50%) scale(.6); }
    .sa-chat-field.has-text .sa-ai-wave i { transform:scaleY(.2); }
    .sa-chat-field.has-text .sa-ai-arrow { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(0); }
    .sa-chat.glow .sa-ai-wave { opacity:1; transform:translate(-50%,-50%); }
    .sa-chat.glow .sa-ai-arrow { opacity:0; }
    .sa-chat.glow .sa-ai-wave i { animation: saSeq 1.5s ease-in-out infinite; }
    .sa-ai-wave i:nth-child(2) { animation-delay:.2s } .sa-ai-wave i:nth-child(3) { animation-delay:.4s } .sa-ai-wave i:nth-child(4) { animation-delay:.6s }
    @keyframes saSeq { 0%,100% { transform:scaleY(.35); } 40% { transform:scaleY(1.15); } 70% { transform:scaleY(.55); } }
    @media (hover: hover) and (pointer: fine) { .sa-chat-acts .sa-chat-send:hover { filter:brightness(1.12); } }
    .sa-chat-mic .sa-ic-stop { display:none; }
    .sa-chat-field.listening .sa-chat-mic .sa-ic-mic { display:none; }
    .sa-chat-field.listening .sa-chat-mic .sa-ic-stop { display:block; }
    .sa-chat-field.listening .sa-chat-mic { color:#fff; background:linear-gradient(135deg,#7c3aed,#06b6d4); }
    .sa-chat-live { inset:0 100px 0 0; padding:0 14px; }
    html[data-theme="light"] .sa-chat-field.listening .sa-chat-mic { color:#fff; }
    .sa-chat-field textarea:focus, .sa-chat-field textarea:focus-visible, body.kb-nav .sa-chat-field textarea:focus-visible { outline:none !important; box-shadow:none !important; }
    .sa-chat-status { line-height:1; }
    .sa-chat-status span { line-height:14px; display:block; }
    .sa-chat-status i { flex-shrink:0; }
    @media (max-width: 767px) { .sa-chat-head .sa-chat-tag { display:none; } }
    .sa-chat button:focus-visible { outline:2px solid #06b6d4; outline-offset:2px; }
    .sa-caps { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0 14px; }
    .sa-caps div { padding:10px 12px; border-radius:14px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); }
    .sa-caps b { display:block; font-family:'Orbitron',monospace; font-size:10px; letter-spacing:.5px; color:#c4b5fd; margin-bottom:4px; }
    .sa-caps span { display:block; font-size:13px; line-height:1.3; color:var(--textSecondary); }
    .sa-src { margin-top:8px; font-size:12px; color:var(--textMuted); }
    .sa-src a { color:#67e8f9; text-decoration:underline; text-underline-offset:2px; }
    .sa-chat-fullbtn .sa-ic-col, .sa-chat.full .sa-chat-fullbtn .sa-ic-exp { display:none; }
    .sa-chat.full .sa-chat-fullbtn .sa-ic-col { display:block; }
    body.sa-left .sa-chat-fab { right:auto; left:max(16px, env(safe-area-inset-left)); }

    body.sa-left:has(#bbMinPill) .sa-chat-fab { bottom:calc(max(16px, env(safe-area-inset-bottom)) + 58px); transition-property:opacity, transform, bottom; }
    @media (min-width: 768px) { body.sa-left .sa-chat { right:auto; left:20px; } }
    .sa-chat.full { left:0; right:0; top:0; bottom:0; width:auto; height:auto; border-radius:0; border:none; }
    .sa-chat.full .sa-chat-head { padding-top:max(16px, env(safe-area-inset-top)); }
    .sa-chat.full .sa-chat-form { padding-bottom:max(16px, env(safe-area-inset-bottom)); }
    .sa-chat.full .sa-msg { font-size:16px; max-width:min(760px, 82%); }
    .sa-side { display:none; }
    @media (min-width: 1024px) {
      .sa-chat.full:not([hidden]) { display:grid; grid-template-columns:300px minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr) auto auto; }
      .sa-chat.full .sa-chat-head { grid-column:1 / -1; padding-left:24px; padding-right:20px; }
      .sa-chat.full .sa-side { display:flex; flex-direction:column; gap:8px; grid-column:1; grid-row:2 / 5; padding:18px 18px 20px 24px; overflow-y:auto; border-right:1px solid rgba(255,255,255,0.07); }
      .sa-chat.full .sa-chat-log, .sa-chat.full .sa-chat-chips, .sa-chat.full .sa-chat-form { grid-column:2; }
      .sa-chat.full .sa-chat-log { padding:20px 28px 10px; }
      .sa-chat.full .sa-chat-chips { padding:4px 28px 2px; }
      .sa-chat.full .sa-chat-form { padding-left:28px; padding-right:28px; }
      .sa-chat.full .sa-welcome .sa-caps { display:none; }
      .sa-chat.full .sa-welcome h4 { font-size:22px; }
      .sa-chat.full .sa-chat-ex { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
    }
    @media (max-width: 767px) { .sa-chat.full { left:0; right:0; bottom:0; height:100vh; height:100dvh; } }
    body.sa-chat-fullpage { overflow:hidden; }
    .sa-side-sec { font-family:'Orbitron',monospace; font-size:9.5px; letter-spacing:1.2px; text-transform:uppercase; color:#c4b5fd; margin:6px 2px 2px; }
    .sa-side-card { padding:12px 14px; border-radius:16px; background:rgba(255,255,255,0.045); border:1px solid rgba(255,255,255,0.09); }
    .sa-side-row { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:14px; font-weight:600; color:var(--textSecondary); margin-top:8px; }
    .sa-side-row:first-child { margin-top:0; }
    .sa-side-row b { font-family:'Orbitron',monospace; font-size:13px; color:#67e8f9; }
    .sa-side-card small { display:block; font-size:12px; color:var(--textMuted); margin-top:1px; }
    .sa-side-alert, .sa-side-cap { display:block; width:100%; text-align:left; cursor:pointer; font:inherit; color:inherit; transition:background-color .15s ease, border-color .15s ease, transform .12s cubic-bezier(0.23,1,0.32,1); }
    .sa-side-alert { margin-top:12px; padding:9px 12px; border-radius:12px; border:1px solid rgba(245,158,11,0.35); background:rgba(245,158,11,0.1); color:#fcd34d; font-size:13.5px; font-weight:700; }
    .sa-side-ok { margin-top:12px; font-size:13px; font-weight:600; color:#34d399; }
    .sa-side-cap { padding:11px 13px; border-radius:14px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); }
    .sa-side-cap b { display:block; font-family:'Orbitron',monospace; font-size:10px; letter-spacing:.5px; color:#c4b5fd; margin-bottom:4px; }
    .sa-side-cap span { display:block; font-size:13px; line-height:1.3; color:var(--textSecondary); }
    .sa-side-alert:active, .sa-side-cap:active { transform:scale(0.98); }
    @media (hover: hover) and (pointer: fine) { .sa-side-cap:hover { background:rgba(124,58,237,0.1); border-color:rgba(124,58,237,0.35); } .sa-side-alert:hover { background:rgba(245,158,11,0.16); } }
    html[data-theme="light"] .sa-side-card, html[data-theme="light"] .sa-side-cap { background:#fff; border-color:rgba(124,58,237,0.16); }
    html[data-theme="light"] .sa-side-sec, html[data-theme="light"] .sa-side-cap b { color:#6d28d9; }
    html[data-theme="light"] .sa-side-row b { color:#0e7490; }
    html[data-theme="light"] .sa-side-alert { color:#b45309; }
    html[data-theme="light"] .sa-caps div { background:#fff; border-color:rgba(124,58,237,0.16); }
    html[data-theme="light"] .sa-caps b { color:#6d28d9; }
    html[data-theme="light"] .sa-src a { color:#0e7490; }
    .bill-item.sa-chat-new { animation: saNewLine 1.8s cubic-bezier(0.23,1,0.32,1); }
    @keyframes saNewLine { 0%,35% { box-shadow:0 0 0 2px rgba(6,182,212,0.75), 0 0 22px rgba(6,182,212,0.35); } 100% { box-shadow:0 0 0 0 rgba(6,182,212,0); } }
    @media (prefers-reduced-motion: reduce) {
      .sa-chat-fab { transition-property: opacity; transform:none !important; }
      .sa-chat { animation: fadeIn .15s ease-out both; }
      .sa-chat { transition: opacity .2s ease !important; transform:none !important; }
      .sa-chat-ring, .sa-ava-trace path, .sa-ai-wave i, .sa-msg, .sa-live-wave i { animation:none !important; }
      .sa-chat-fab:hover .sa-mascot { transform:none; }
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sa-chat { background:#15112e; } }

    html[data-theme="light"] .sa-chat { background:rgba(255,255,255,0.9); border-color:rgba(124,58,237,0.16); box-shadow:0 24px 64px rgba(60,40,120,0.2), inset 0 1px 0 #fff; }
    html[data-theme="light"] .sa-chat-head, html[data-theme="light"] .sa-card-ln, html[data-theme="light"] .sa-card-pay { border-color:rgba(30,27,58,0.08); }
    html[data-theme="light"] .sa-chat-name b, html[data-theme="light"] .sa-card-co { color:#6d28d9; }
    html[data-theme="light"] .sa-chat-tag { color:#b45309; border-color:rgba(217,119,6,0.35); }
    html[data-theme="light"] .sa-msg.bot { background:rgba(124,58,237,0.05); border-color:rgba(124,58,237,0.12); color:#2e2a52; }
    html[data-theme="light"] .sa-msg.bot.card { background:transparent; border:none; }
    html[data-theme="light"] .sa-msg.me { background:rgba(124,58,237,0.12); border-color:rgba(124,58,237,0.28); color:#2e1065; }
    html[data-theme="light"] .sa-msg b, html[data-theme="light"] .sa-card-ln b { color:#0e7490; }
    html[data-theme="light"] .sa-welcome h4, html[data-theme="light"] .sa-card-g { color:#1e1b3a; }
    html[data-theme="light"] .sa-welcome p b { color:#047857; }
    html[data-theme="light"] .sa-chat-ex button, html[data-theme="light"] .sa-chat-chips button, html[data-theme="light"] .sa-card, html[data-theme="light"] .sa-chat-field { background:#fff; border-color:rgba(124,58,237,0.2); color:#2e2a52; }
    html[data-theme="light"] .sa-card-top { background:rgba(124,58,237,0.07); }
    html[data-theme="light"] .sa-card-g i { color:#a21caf; }
    html[data-theme="light"] .sa-pill.green { color:#047857; } html[data-theme="light"] .sa-pill.amber { color:#b45309; } html[data-theme="light"] .sa-pill.red { color:#b91c1c; }
    html[data-theme="light"] .sa-opts button { color:#0e7490; background:rgba(8,145,178,0.06); border-color:rgba(8,145,178,0.35); }
    html[data-theme="light"] .sa-chat-chips button[data-cmd="save"] { color:#047857; border-color:rgba(5,150,105,0.4); background:rgba(16,185,129,0.08); }
    html[data-theme="light"] .sa-chat-field textarea { color:#1e1b3a; }
    html[data-theme="light"] .sa-chat-field textarea::placeholder { color:#7a7598; }
    .adv-nav-row { width:100%; display:flex; align-items:center; gap:12px; padding:14px 0; border:none; border-bottom:1px solid var(--border); background:none; cursor:pointer; text-align:left; color:inherit; font:inherit; }
    .adv-nav-row:focus-visible { outline:2px solid #06b6d4; outline-offset:2px; border-radius:8px; }
    @media (hover: hover) and (pointer: fine) { .adv-nav-row:hover { background:rgba(124,58,237,0.06); } }
    .sw-badge { font-size:9.5px; font-weight:700; letter-spacing:.3px; padding:1px 7px; border-radius:999px; color:#fcd34d; background:rgba(245,158,11,0.12); border:1px solid rgba(245,158,11,0.32); vertical-align:2px; margin-left:4px; font-family:'Rajdhani',sans-serif; }
    .sw-pane { animation: swIn .24s cubic-bezier(0.23,1,0.32,1); }
    @keyframes swIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }
    .sw-head { gap:6px; }
    .sw-back { padding:6px 8px; }
    .sw-sec { font-family:'Orbitron',monospace; font-size:9.5px; letter-spacing:1.2px; color:#c4b5fd; text-transform:uppercase; margin:18px 0 2px; }
    .sw-note { font-size:11.5px; line-height:1.5; color:var(--textSecondary); margin:6px 0 2px; }
    .sw-dd { flex-shrink:0; min-width:112px; }
    .sw-dd .dropdown-trigger { gap:8px; min-height:36px; padding:7px 11px; font-size:13px; font-weight:600; }
    .sw-dd .dropdown-trigger svg { color:var(--textMuted); transition:transform .18s cubic-bezier(0.23,1,0.32,1); }
    .sw-dd .dropdown-trigger.open svg { transform:rotate(180deg); }
    .sw-dd .dropdown-menu { left:auto; min-width:100%; backdrop-filter:blur(20px) saturate(160%); -webkit-backdrop-filter:blur(20px) saturate(160%); background:rgba(22,15,48,0.92); transform-origin:top right; animation: swDd .16s cubic-bezier(0.23,1,0.32,1); }
    @keyframes swDd { from { opacity:0; transform:scale(0.96) translateY(-4px); } to { opacity:1; transform:none; } }
    .sw-dd .dropdown-item:focus-visible { outline:none; background:var(--bgHover); }
    .sw-num { width:110px !important; flex-shrink:0; padding:7px 10px !important; font-size:13px !important; text-align:right; }
    .adv-tog, .sw-tog, .adv-nav-row img, img.sa-mascot { color-scheme:only light; }
    @media (prefers-reduced-motion: reduce) { .sw-pane, .sw-dd .dropdown-menu { animation:none; } }
    .sw-row { display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); }
    .sw-txt { flex:1; min-width:0; }
    .sw-t { font-size:13px; font-weight:600; color:var(--textPrimary); }
    .sw-d { font-size:11px; color:var(--textMuted); line-height:1.5; margin-top:2px; }
    .sw-seg { display:inline-flex; flex-shrink:0; padding:3px; border-radius:999px; background:rgba(120,100,200,0.14); border:1px solid rgba(120,100,200,0.22); }
    .sw-seg button { border:none; background:transparent; color:var(--textMuted); font:600 12.5px 'Rajdhani',sans-serif; padding:6px 12px; min-height:30px; border-radius:999px; cursor:pointer; transition:background-color .15s ease, color .15s ease; white-space:nowrap; }
    .sw-seg button.on { background:#7c3aed; color:#fff; }
    .sw-btn { flex-shrink:0; background:rgba(124,58,237,0.14); border:1px solid rgba(124,58,237,0.35); color:#c4b5fd; }
    .sw-btn:disabled { opacity:.5; cursor:default; }
    .sw-info { margin:16px 0 4px; border:1px solid rgba(120,100,200,0.22); border-radius:12px; background:rgba(255,255,255,0.03); }
    .sw-info summary { cursor:pointer; padding:12px 14px; font-size:13px; font-weight:600; color:#c4b5fd; list-style:none; display:flex; justify-content:space-between; align-items:center; }
    .sw-info summary::-webkit-details-marker { display:none; }
    .sw-info summary::after { content:"+"; font-size:16px; color:var(--textMuted); }
    .sw-info[open] summary::after { content:"−"; }
    .sw-info-body { padding:0 14px 12px; font-size:12px; color:var(--textSecondary); line-height:1.55; }
    .sw-info-body p { margin:0 0 8px; }
    .sw-info-body b { color:var(--textPrimary); }
    .sw-info-body i { color:#67e8f9; font-style:normal; }
    html[data-theme="light"] .sw-info-body i { color:#0e7490; }
    html[data-theme="light"] .sw-info summary, html[data-theme="light"] .sw-btn { color:#6d28d9; }
    html[data-theme="light"] .sw-badge { color:#b45309; }
    .sa-glass-tip { align-items:center; gap:8px; padding:7px 10px 7px 13px; border-radius:12px; font:600 12px 'Rajdhani',sans-serif; letter-spacing:.3px; color:#ede9fe;
      background:linear-gradient(135deg,rgba(255,255,255,0.12),rgba(24,16,52,0.62)); backdrop-filter:blur(18px) saturate(170%); -webkit-backdrop-filter:blur(18px) saturate(170%);
      border:1px solid rgba(255,255,255,0.16); box-shadow:0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
    .sa-glass-tip button { color:#a78bfa; }
    html[data-theme="light"] .sa-glass-tip { color:#3b2a7a; background:rgba(255,255,255,0.72); border-color:rgba(124,58,237,0.2); box-shadow:0 10px 30px rgba(60,40,120,0.18), inset 0 1px 0 #fff; }
    html[data-theme="light"] .sa-glass-tip button { color:#6d28d9; }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sa-glass-tip { background:#1a1530; } html[data-theme="light"] .sa-glass-tip { background:#fff; } }
    .search-icon {
      position:absolute; left:12px; top:calc(50% - 1px); transform:translateY(-50%);
      color:var(--textMuted); font-size:14px; pointer-events:none;
      z-index:2; display:flex; align-items:center;
    }

    #btnMasterGames, #bulkBillBtn {
      border: 1px solid rgba(120,100,200,0.22) !important;
      border-radius: 10px !important;
      padding: 5px 10px !important;
      display: inline-flex !important;
      align-items: center !important;
      background: rgba(20,16,40,0.4) !important;
      align-self: stretch !important;
    }
    #btnMasterGames svg { width:20px !important; height:20px !important; flex-shrink:0; }
    #bulkBillBtn svg { width:20px !important; height:20px !important; flex-shrink:0; }
    .header-actions { align-items: stretch; }
    .company-skeleton { overflow:hidden; position:relative; }
    @keyframes skeletonShimmer {
      0%   { background-position: -300% 0; }
      100% { background-position:  300% 0; }
    }
    .bb-settings-btn.open > button { opacity:1; }
    #bbSettingsBtn svg { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
    body.bb-open:has(#bulkBillSheet) #app, body.bb-open:has(#bulkBillSheet) #fabAddGame { visibility:hidden; }
    body:has(#bulkBillSheet) #alPill { z-index:10002; }
    body:has(#bulkBillSheet) #alModal { z-index:10003; }
    .bb-settings-btn.open #bbSettingsBtn svg { transform: rotate(30deg); }
    @keyframes marchAnts {
      to { background-position: 16px 0, 100% 16px, calc(100% - 16px) 100%, 0 calc(100% - 16px); }
    }
    .bb-copy-cell, .bb-cut-cell {
      background-image:
        linear-gradient(to right, #7c3aed 50%, transparent 50%),
        linear-gradient(to bottom, #7c3aed 50%, transparent 50%),
        linear-gradient(to right, #7c3aed 50%, transparent 50%),
        linear-gradient(to bottom, #7c3aed 50%, transparent 50%) !important;
      background-size: 8px 2px, 2px 8px, 8px 2px, 2px 8px !important;
      background-repeat: repeat-x, repeat-y, repeat-x, repeat-y !important;
      background-position: 0 0, 100% 0, 0 100%, 0 0 !important;
      animation: marchAnts 0.38s linear infinite !important;
    }
    .bb-cut-cell { opacity: 0.55 !important; }
    #menuBulkBillMenu.menu-btn { display: none !important; }
    @media (max-width: 600px) {
      #bulkBillBtn { display: none !important; }
    }
    .bb-settings-panel { position:fixed; top:0; right:0; min-width:280px; max-width:320px; z-index:20000; background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(18,12,40,0.92) 40%,rgba(255,255,255,0.03) 100%); backdrop-filter:blur(28px) saturate(180%); -webkit-backdrop-filter:blur(28px) saturate(180%); border:1px solid rgba(255,255,255,0.13); border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,0.7),0 2px 0 rgba(255,255,255,0.08) inset,0 -1px 0 rgba(0,0,0,0.25) inset,0 0 60px rgba(124,58,237,0.1); padding:16px 18px; transform-origin: top right; transform: scale(0.72) translateY(-6px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease, visibility 0s linear 0.28s; }
.bb-settings-panel.open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; pointer-events: all; transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.18s ease, visibility 0s linear 0s; }
    .bb-settings-row { display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.05); }
    .bb-settings-row:last-of-type { border-bottom:none; }
    .bb-settings-label { font-size:13px;font-weight:700;color:rgba(255,255,255,0.88);font-family:'Rajdhani',sans-serif; }
    .bb-settings-sub { font-size:10px;color:rgba(255,255,255,0.4);font-family:'Rajdhani',sans-serif;margin-top:1px; }
    .skeleton-line {
      display: block;
      background: linear-gradient(90deg, rgba(124,58,237,0.22), rgba(167,139,250,0.30) 55%, rgba(6,182,212,0.18)) !important;
      animation: skeletonPulse 1.6s ease-in-out infinite;
    }
    @keyframes skeletonPulse { 0%, 100% { opacity:0.55; } 50% { opacity:1; } }
    .company-skeleton { pointer-events:none; cursor:default; }
    .company-skeleton .sk-icon { width:22px; height:22px; min-width:22px; border-radius:6px; margin:4px 16px 4px 0; flex-shrink:0; }
    .company-skeleton .sk-name { height:14px; border-radius:6px; flex:none; }
    .company-skeleton .sk-strut { width:0; min-width:0; overflow:hidden; flex:none; padding:0; margin:0; }
    .company-skeleton .sk-pill { width:54px; height:24px; border-radius:999px; margin-left:auto; flex-shrink:0; }
    .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
    @media (prefers-reduced-motion: reduce) { .skeleton-line { animation:none; opacity:0.8; } }

    .co-page > div:first-child > #backBtn, .co-page > div:first-child > .company-header-status, #companyContactBtn, #companySettingsGear { flex-shrink:0; }
    .co-hd-name { flex:1 1 auto; min-width:0; overflow:hidden; }
    .co-hd-name > h2 { margin:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; line-height:1.3; }
    .co-hd-name > h2.split { display:block; -webkit-line-clamp:unset; overflow:hidden; }
    .co-hd-name > h2.split .l1 { display:block; white-space:nowrap; overflow:hidden; }
    .co-hd-name > h2.split .l2 { display:block; white-space:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent); padding-right:4px; }
    .co-hd-name > h2.split .l2::-webkit-scrollbar { display:none; }
    .badge.badge-auto { background:rgba(34,211,238,.14); color:#67e8f9; border:0; box-shadow:inset 0 0 0 1px rgba(34,211,238,.45); }
    .company-item > .badge { min-width:74px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; text-align:center; flex-shrink:0; }
    .company-item {
      display:flex; align-items:center; padding:14px 18px;
      background:rgba(20,15,44,0.55);
      border:1px solid rgba(167,139,250,0.16); border-radius:14px;
      box-shadow:0 2px 10px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.04); margin-bottom:10px;
      cursor:pointer; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
      
    }

    .company-item, .assigned-row, .username-row, .bill-history-item {
      position: relative;
      overflow: hidden;
    }
    .company-item::before, .assigned-row::before, .username-row::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      pointer-events: none;
      background: radial-gradient(
        180px circle at var(--mx, 50%) var(--my, 50%),
        rgba(167,139,250,0.13) 0%,
        rgba(167,139,250,0.04) 55%,
        transparent 75%
      );
      transition: opacity 0.25s ease;
      z-index: 0;
    }
    .company-item > *, .assigned-row > *, .username-row > * { position: relative; z-index: 1; }
    .company-item.gl-lit::before, .assigned-row.gl-lit::before, .username-row.gl-lit::before {
      opacity: 1;
    }
    .company-item:hover {
      background: rgba(167,139,250,0.10);
      border-color: rgba(167,139,250,0.28);
      box-shadow: 0 4px 20px rgba(124,58,237,0.13), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 0 24px rgba(167,139,250,0.05);
      transform: none;
    }
    .company-item.inactive { opacity: 0.6; }
    .company-item.inactive:hover { opacity: 1; }
    .company-icon { font-size:20px; margin-right:16px; }
    .company-name { flex:1; font-size:16px; font-weight:600; margin-left:4px; }

    .tabs {
      display:flex; gap:4px; margin-bottom:22px; background:rgba(15,12,28,0.5);
      border-radius:14px; padding:4px; border:1px solid var(--glassBorder);
      
    }
    .tab {
      flex:1; padding:11px 14px; border-radius:10px; border:none;
      cursor:pointer; font-size:12px; font-weight:700; font-family:'Orbitron',monospace;
      display:flex; align-items:center; justify-content:center; gap:7px;
      transition:color .2s; text-transform:uppercase; letter-spacing:0.5px;
      background: transparent; color: var(--textSecondary);
    }
    .tab.active { color: #fff; }
    .seg-on { position:relative; isolation:isolate; }
    .seg-ind { position:absolute; top:0; left:0; z-index:-1; pointer-events:none; border-radius:10px; transition:transform .2s cubic-bezier(.25,.8,.3,1), width .2s cubic-bezier(.25,.8,.3,1), background-color .16s linear; will-change:transform; }
    .seg-ind.seg-now { transition:none; }
    .subtabs > .seg-ind { border-radius:8px; }
    .tabs.seg-on > .tab.active, .subtabs.seg-on > .subtab.active { background:transparent !important; }
    @media (prefers-reduced-motion: reduce) { .seg-ind { transition:none; } }
    .tab svg { display:block; flex-shrink:0; }
    .tab .tab-l { line-height:1.1; }
    @media (max-width:420px) { .tab .tab-l { width:min-content; } }
    .tab.active.tab-green { background: var(--green); }
    .tab.active.tab-cyan { background: var(--cyan); }
    .tab.active.tab-purple { background: var(--purple); }

    .subtabs {
      display:flex; gap:4px; margin-bottom:18px; background:var(--bgInput);
      border-radius:10px; padding:4px;
    }
    .subtab {
      flex:1; padding:9px 14px; border-radius:8px; border:none;
      cursor:pointer; font-size:13px; font-weight:600;
      font-family:'Rajdhani',sans-serif; text-transform:uppercase;
      background:transparent; color:var(--textSecondary);
      display:flex; align-items:center; justify-content:center; gap:6px;
    }
    .subtab.active { background:var(--purple); color:#fff; }

    .bill-item { margin-bottom: 8px; }
    .bill-item:focus-within, .bill-item:has(.bill-game-dropdown:not(.hidden)), .bill-item:has(.bill-user-dropdown:not(.hidden)) { z-index: 60; }
    .bill-item .card {
      padding: 14px; overflow: visible;
      background: rgba(16,13,32,0.55);
      backdrop-filter: blur(16px) saturate(150%);
      -webkit-backdrop-filter: blur(16px) saturate(150%);
      border: 1px solid rgba(167,139,250,0.14);
      box-shadow: 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .bill-item.dropdown-open { z-index: 50; position: relative; isolation: auto; }
    .bill-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
    .bill-result {
      margin-top:8px; padding:8px 12px; border-radius:8px;
      background:rgba(12,9,26,0.55);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border:1px solid rgba(120,100,200,0.15);
      display:flex; gap:16px; font-size:13px; font-weight:600;
    }
    .bill-result .pts { color: var(--cyan); }
    .bill-result .amt { color: var(--green); }
    .bill-result .rate { color: var(--textMuted); }

    .totals-card {
      background: rgba(14,10,32,0.55);
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      border: 1px solid rgba(124,58,237,0.2);
      box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    }

    .game-tag {
      padding:5px 12px; border-radius:8px; border:1px solid var(--border);
      background:var(--bgInput); color:var(--textSecondary); cursor:pointer;
      font-size:13px; font-weight:600; transition:all 0.15s; display:inline-block;
      margin: 3px;
    }
    .game-tag.selected { border-color:var(--purple); background:rgba(124,58,237,0.2); color:var(--purpleLight); }
    .game-tag:hover { border-color:var(--purple); }

    .assigned-row {
      display:flex; align-items:center; padding:12px 14px;
      background:rgba(18,14,40,0.38);
      backdrop-filter:blur(14px) saturate(140%);
      -webkit-backdrop-filter:blur(14px) saturate(140%);
      border:1px solid rgba(167,139,250,0.14); border-radius:12px; margin-bottom:6px;
      box-shadow:0 2px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
      transition:all 0.2s;
    }
    .assigned-row:hover {
      background:rgba(167,139,250,0.1);
      border-color:rgba(167,139,250,0.28);
      box-shadow:0 4px 16px rgba(124,58,237,0.14), inset 0 1px 0 rgba(255,255,255,0.09);
    }

    .username-row {
      display:flex; align-items:center; padding:10px 14px;
      background:rgba(18,14,40,0.38);
      backdrop-filter:blur(14px) saturate(140%);
      -webkit-backdrop-filter:blur(14px) saturate(140%);
      border:1px solid rgba(167,139,250,0.14); border-radius:10px; margin-bottom:6px;
      box-shadow:0 2px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
      transition:all 0.2s;
    }
    .username-row:hover {
      background:rgba(167,139,250,0.1);
      border-color:rgba(167,139,250,0.28);
      box-shadow:0 4px 16px rgba(124,58,237,0.14), inset 0 1px 0 rgba(255,255,255,0.09);
    }

    .bill-history-item {
      padding:10px 14px;
      border-bottom: 1px solid rgba(120,100,200,0.12);
      display:flex; align-items:center; gap:12px;
      transition: background 0.15s;
    }
    .bill-history-item:hover {
      background: rgba(167,139,250,0.07);
    }
    
    .bh-item-row {
      display:flex; justify-content:space-between; align-items:center; gap:8px;
      flex-wrap:nowrap;
    }
    .bh-item-row span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
    
    @media (min-width: 768px) {
      .bh-item-row { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); column-gap:16px; justify-content:stretch; }
      .bh-item-row:not(:has(> span:nth-child(5))) { grid-template-columns:repeat(4, minmax(0,1fr)); }
      .bh-item-row span { text-align:left; }
      .bh-item-row span:nth-child(n+3) { text-align:right; font-variant-numeric:tabular-nums; }
    }
    @media (max-width: 480px) {
      .bh-item-row {
        display:grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap:1px 8px;
        padding:4px 0;
      }
      .bh-item-row span:nth-child(1) { grid-column:1; font-size:11px; font-weight:600; }
      .bh-item-row span:nth-child(2) { grid-column:2; font-size:10px; text-align:right; }
      .bh-item-row span:nth-child(3) { grid-column:1; font-size:10px; }
      .bh-item-row span:nth-child(4) { grid-column:2; font-size:11px; font-weight:600; text-align:right; }
      .bh-item-row span:nth-child(5) { grid-column:1/3; font-size:10px; }
    }

    .conv-toggle {
      display:inline-flex; align-items:center; gap:10px; padding:10px 20px;
      border-radius:12px; cursor:pointer; user-select:none; transition:all 0.3s;
      box-shadow: 0 0 20px rgba(124,58,237,0.15);
    }
    .conv-toggle:hover { box-shadow: 0 0 30px rgba(124,58,237,0.3);  }
    .conv-toggle:active { transform: translateY(0); }
    .conv-toggle .conv-label {
      font-family:'Orbitron',monospace; font-size:15px; font-weight:800; letter-spacing:1px;
    }

    .payment-btns { display: flex; gap: 8px; flex-wrap: wrap; }

    .page { max-width: 900px; margin: 0 auto; padding: 24px 16px; }

    .login-page {
      min-height:100vh; display:flex; align-items:center;
      justify-content:center; padding:20px;
    }
    .login-box { text-align:center; max-width:420px; width:100%; }
    .login-logo {
      width:135px; height:135px; margin:0 auto 22px; border-radius:33px;
      display:block; object-fit:cover;
      box-shadow: none;
    }
    .login-title {
      font-family:'Orbitron',monospace; font-size:40px; font-weight:900;
      background: linear-gradient(135deg, #a78bfa, #06b6d4, #10b981);
      -webkit-background-clip:text; -webkit-text-fill-color:transparent;
      margin-bottom:10px; letter-spacing:3px;
    }

        @keyframes saShimmer {
      0%   { background-position: -180% -180%; }
      100% { background-position: 180% 180%; }
    }
    .sa-load-wordmark {
      position: relative;
      display: inline-block;
      font-family: 'Orbitron', monospace;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 4px;
      background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 50%, #10b981 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 8px;
    }
    .sa-load-wordmark::after {
      content: 'SWEEPADMIN';
      position: absolute;
      inset: 0;
      font-family: 'Orbitron', monospace;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 4px;
      white-space: nowrap;
      background: linear-gradient(
        135deg,
        rgba(255,255,255,0)  0%,
        rgba(255,255,255,0)  38%,
        rgba(255,255,255,0.08) 44%,
        rgba(255,255,255,0.28) 50%,
        rgba(255,255,255,0.08) 56%,
        rgba(255,255,255,0)  62%,
        rgba(255,255,255,0)  100%
      );
      background-size: 200% 200%;
      background-position: -180% -180%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: saShimmer 2.2s linear infinite;
      will-change: background-position;
    }
    .sa-load-sub {
      font-family: 'Orbitron', monospace;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: rgba(167, 139, 250, 0.45);
      text-align: center;
    }
    .login-subtitle { color:var(--textSecondary); font-size:15px; font-weight:600; margin-bottom:28px; line-height:1.6; }
    .google-btn {
      width:100%; padding:16px 24px; border-radius:14px;
      border:1px solid rgba(167,139,250,0.38);
      background:linear-gradient(135deg,rgba(167,139,250,0.16),rgba(6,182,212,0.12),rgba(16,185,129,0.1));
      color:var(--textPrimary); font-size:16px; font-weight:700;
      cursor:pointer; display:flex; align-items:center; justify-content:center;
      gap:12px; transition:all 0.3s; font-family:'Rajdhani',sans-serif;
      box-shadow:0 2px 16px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .google-btn:hover { border-color:rgba(167,139,250,0.6); background:linear-gradient(135deg,rgba(167,139,250,0.28),rgba(6,182,212,0.22),rgba(16,185,129,0.18)); box-shadow:0 0 30px rgba(124,58,237,0.25), 0 0 60px rgba(6,182,212,0.1); }

    .loading-page {
      min-height:100vh; display:flex; align-items:center; justify-content:center;
    }
    .spinner {
      width:40px; height:40px; border:3px solid var(--border);
      border-top:3px solid var(--purple); border-radius:50%;
      animation: spin 0.8s linear infinite; margin:0 auto 14px;
    }

    .account-trigger {
      display:flex; align-items:center; gap:8px; cursor:pointer; padding:5px 10px;
      border-radius:10px; border:1px solid var(--glassBorder); 
      background: rgba(20,16,40,0.4);
    }
    .account-trigger:hover { background:var(--glassHover); border-color:rgba(120,100,200,0.3); }
    .account-avatar { width:26px; height:26px; border-radius:50%; }
    .account-name {
      font-size:12px; color:var(--textSecondary); max-width:100px;
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }
    .account-menu {
      position:absolute; top:calc(100% + 8px); right:0;
      background:rgba(16,13,30,0.9); border:1px solid var(--glassBorder);
      border-radius:14px; padding:8px; min-width:200px;
      box-shadow:0 12px 40px rgba(0,0,0,0.6); z-index:101;
      
    }
    .account-menu-item {
      padding:8px 12px; cursor:pointer; border-radius:6px;
      display:flex; align-items:center; gap:8px; font-size:13px;
      color:var(--textSecondary); transition:background 0.15s;
    }
    .account-menu-item:hover { background:var(--bgHover); }
    .account-menu-item.danger { color:var(--red); }

    @media (max-width: 600px) {
      .bill-grid { grid-template-columns: 1fr; }
      .tabs { font-size: 11px; gap: 2px; }
      .tab { font-size: 10px; padding: 9px 6px; gap: 4px; min-width: 0; flex: 1 1 0; text-align: center; }
      .tab svg { width: 14px; height: 14px; flex-shrink: 0; }
      .tab svg.tab-pad { width: 20px; height: 14px; }
      .tab svg.tab-bill { width: 16px; height: 14px; }
      .tab svg { display:block; }
      .tab .tab-l { line-height:1.15; text-align:left; }
      .header-logo-text { font-size: 13px; letter-spacing: 1px; }
      .page { padding: 20px 14px; }
      .header { padding: 0 12px; }
      .account-trigger { padding: 4px 6px; gap: 5px; }
      .account-name { max-width: 70px; font-size: 11px; }
      .analytics-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .analytics-chart-wrap canvas { max-height: none; }
      .analytics-card .ac-value { font-size: 16px; }
      .analytics-date-range { flex-wrap: wrap; }
      .analytics-date-range .input { min-width: 0; }
      
      #dateDrillModal .modal { padding: 14px 10px !important; }
      #dateDrillModal .drill-stats { padding: 6px 4px !important; gap: 4px !important; }
      #dateDrillModal .drill-stats > div > div:first-child { font-size: 7px !important; }
      #dateDrillModal .drill-stats > div > div:last-child { font-size: 11px !important; }
    }

    @media (max-width: 767px) {
      body { font-weight: 500; }
      .label { color: #22d3ee; font-weight: 700; font-size: 11.5px; }
      .input { font-weight: 600; font-size: 14.5px; border-color: rgba(90,75,145,0.4); }
      .input::placeholder { font-weight: 600; color: #a8a0c8; }
      .btn { font-weight: 700; }
      .card { border-color: rgba(120,100,200,0.22); }
      .badge { font-weight: 700; }
      .account-name { font-weight: 600; color: var(--textSecondary); }
      .dropdown-trigger { font-weight: 600; }
      .dropdown-item { font-weight: 600; }
      .toggle-label { font-weight: 700; }
      .bill-result { font-weight: 600; border-color: rgba(120,100,200,0.2); }
      .bill-result .pts { color: #22d3ee; }
      .bill-result .amt { color: #34d399; }
      .assigned-row { border-color: rgba(120,100,200,0.2); }
      .game-tag { font-weight: 700; }
      .account-trigger { border-color: rgba(120,100,200,0.22); }
      .account-menu { border-color: rgba(120,100,200,0.25); }
      .account-menu-item { font-weight: 600; }
      .util-btn { font-weight: 700; }
      .bill-history-item { font-weight: 600; }
      .login-page .google-btn { font-weight: 700; font-size: 15px; border-color: rgba(130,110,210,0.35); }
      .login-page .card { border-color: rgba(130,110,210,0.28); }
      .search-wrap .input { font-weight: 600; }
      .modal { border-color: rgba(120,100,200,0.25); }
      .modal-title { font-size: 16px; }
      .analytics-summary { grid-template-columns: repeat(2, 1fr); }
      .analytics-chart-wrap h4 { font-size: 11px; }
      .analytics-card .ac-value { font-size: 16px; }
      .analytics-card .ac-label { font-size: 9px; }
      .analytics-container > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
      .analytics-charts-grid { grid-template-columns: 1fr !important; }
      .company-settings-gear { padding: 6px; }
      
      #liveBillPrintMobile { display:flex!important; }
      #liveBillPrintDesktop { display:none!important; }
      .inv-btn-label { display: none !important; }
      .desktop-date-input { display: none !important; }
      .mobile-date-icon { display: inline !important; }
      #globalAnalyticsModal .analytics-summary { grid-template-columns: repeat(2, 1fr); }
      #globalAnalyticsModal div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    }

    .account-panel-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.5);
      z-index: 150; opacity: 0; pointer-events: none;
      transition: opacity 0.22s ease;
    }
    .account-panel-overlay.open { opacity: 1; pointer-events: auto; }

    .account-panel {
      position: fixed; top: 0; right: 0; width: 310px; height: 100vh;
      transform: translateX(calc(100% + 12px)); will-change: transform; visibility: hidden;
      background: rgba(12,9,26,0.6);
      backdrop-filter: blur(32px) saturate(200%) brightness(0.95);
      -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(0.95);
      border-left: 1px solid rgba(167,139,250,0.18);
      z-index: 151; transition: transform 0.22s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.22s;
      display: flex; flex-direction: column; overflow-y: auto;
      box-shadow: -8px 0 40px rgba(0,0,0,0.5), inset 1px 0 0 rgba(255,255,255,0.04);
    }
    .account-panel.open { transform: none; visibility: visible; transition: transform 0.22s cubic-bezier(.2,.8,.2,1), visibility 0s; }
    @media (max-width: 767px) {
      .account-panel { width: 280px; }
    }

    .account-panel-header {
      padding: 20px 20px 16px; border-bottom: 1px solid rgba(120,100,200,0.15);
      display: flex; align-items: center; justify-content: space-between;
    }
    .account-panel-body { padding: 16px 20px; flex: 1; }
    .account-panel-item {
      padding: 11px 14px; cursor: pointer; border-radius: 10px;
      display: flex; align-items: center; gap: 10px; font-size: 14px;
      font-weight: 600; color: var(--textSecondary); transition: all 0.15s;
    }
    .account-panel-item:hover { background: rgba(124,58,237,0.1); color: var(--textPrimary); }
    .account-panel-item.danger { color: var(--red); }
    .account-panel-divider { border-top: 1px solid rgba(140,120,220,0.1); margin: 6px 0; }
    .menu-btn {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      height: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
      padding: 0 14px !important;
      gap: 11px !important;
      border-radius: 10px !important;
      width: 100% !important;
      box-sizing: border-box !important;
      margin-bottom: 6px !important;
      cursor: pointer !important;
      border: 1px solid rgba(124,58,237,0.18) !important;
      background: linear-gradient(135deg,rgba(124,58,237,0.08),rgba(34,211,238,0.05)) !important;
      transition: filter 0.12s !important;
    }
    .menu-btn:hover { filter: brightness(1.18) !important; }
    .menu-btn .menu-btn-label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: rgba(255,255,255,0.90) !important;
      flex: 1 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      line-height: 1 !important;
    }
    .menu-btn .menu-btn-icon {
      flex-shrink: 0 !important;
      width: 17px !important;
      height: 17px !important;
    }
    .menu-btn .menu-btn-chevron {
      flex-shrink: 0 !important;
      margin-left: auto !important;
      opacity: 0.35 !important;
    }
    .menu-btn-sep {
      height: 1px;
      background: rgba(255,255,255,0.08);
      margin: 2px 0 6px;
    }
    .menu-btn-signout {
      background: linear-gradient(135deg,rgba(109,40,217,0.85),rgba(91,33,182,0.9)) !important;
      border-color: rgba(124,58,237,0.5) !important;
    }
    .menu-btn-signout:hover { filter: brightness(1.12) !important; }
    .menu-btn-signout .menu-btn-label { color: #fff !important; }
    .menu-btn-destructive {
      background: linear-gradient(135deg,rgba(185,28,28,0.85),rgba(153,27,27,0.9)) !important;
      border-color: rgba(220,38,38,0.5) !important;
    }
    .menu-btn-destructive:hover { filter: brightness(1.12) !important; }
    .menu-btn-destructive .menu-btn-label { color: #fff !important; }
    .menu-btn-hidden { display: none !important; }
    .thm-moon { display:none; }
    html[data-theme="light"] .thm-sun { display:none; }
    html[data-theme="light"] .thm-moon { display:inline-block; }
    .home-mlink-theme { display:flex !important; align-items:center; gap:10px; }
    .home-mlink-theme svg, .hn-theme svg { width:18px; height:18px; vertical-align:middle; }
    .hn-theme { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:12px; }
    .hn-theme:hover { background:rgba(167,139,250,0.12); }
    
    #menuGlobalAnalytics {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
    }
    #menuGlobalAnalytics > div:first-child { flex-shrink: 0; min-width: 40px; }
    #menuGlobalAnalytics > div:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; }
    #menuGlobalAnalytics > div:last-child { flex-shrink: 0; }

    #utilCompanyName {
      opacity: 0; display: none;
      transition: opacity 0.3s ease;
      font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 600;
      color: var(--textMuted); letter-spacing: 0.5px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
    }
    #utilCompanyName.visible { opacity: 1; display: inline; }
    #utilDateTime { transition: opacity 0.3s ease; }
    #utilDateTime.hidden-smooth { opacity: 0; display: none; }
    @media (min-width: 768px) {
      #utilCompanyName { font-size: 13px; max-width: 300px; }
    }

    .hamburger-btn {
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; padding: 5px; border-radius: 6px;
      transition: background 0.15s; background: none; border: none;
    }
    .hamburger-btn:hover { background: var(--bgHover); }
    .hamburger-btn svg { display: block; }

    @media (min-width: 768px) {
      body { font-size: 16px; line-height: 1.5; }
      .page { max-width: 1060px; padding: 30px 40px; }
      .header { height: 62px; padding: 0 28px; }
      .header-logo-text { font-size: 15px !important; white-space:nowrap; }
      .utility-bar { padding: 10px 28px; top: 62px; }
      .card { padding: 24px; border-radius: 16px; border-color: rgba(120,100,200,0.25); }
      .label { font-size: 12.5px; font-weight: 700; color: #22d3ee; margin-bottom: 7px; letter-spacing: 1.2px; }
      .btn { padding: 9px 18px; font-size: 14px; font-weight: 700; }
      .btn-sm { padding: 7px 13px; font-size: 13px; }
      .input { padding: 12px 15px; font-size: 15px; font-weight: 600; border-color: rgba(90,75,145,0.45); }
      .input-search { padding-left: 42px; }
      .search-icon { left: 14px; }
      .input:focus { box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }
      .input::placeholder { font-weight: 600; color: #a8a0c8; }
      .badge { font-size: 12px; padding: 4px 13px; font-weight: 700; }
      .modal { padding: 28px; max-width: 600px; border-radius: 20px; border-color: rgba(120,100,200,0.28); }
      .modal-title { font-size: 19px; }
      .tab { font-size: 14px; padding: 11px 18px; font-weight: 700; }
      .subtab { font-size: 14px; padding: 11px 18px; font-weight: 700; }
      .dropdown-trigger { font-size: 15px; font-weight: 600; min-height: 46px; border-color: rgba(90,75,145,0.4); }
      .dropdown-item { font-size: 14px; padding: 12px 15px; font-weight: 600; }
      .bill-result { font-size: 14px; padding: 11px 16px; border-color: rgba(120,100,200,0.22); }
      .bill-result .pts { color: #22d3ee; }
      .bill-result .amt { color: #34d399; }
      .assigned-row { padding: 15px 18px; border-color: rgba(120,100,200,0.22); }
      .game-tag { font-size: 14px; padding: 7px 15px; font-weight: 700; }
      .account-trigger { padding: 7px 14px; border-color: rgba(120,100,200,0.25); }
      .account-name { font-size: 13px; font-weight: 600; color: var(--textSecondary); }
      .account-menu { min-width: 240px; padding: 10px; border-color: rgba(120,100,200,0.28); }
      .account-menu-item { font-size: 14px; padding: 10px 14px; font-weight: 600; }
      .util-btn { font-size: 13px; padding: 8px 18px; font-weight: 700; }
      .company-item { padding: 16px 20px; border-color: rgba(120,100,200,0.22); }
      .company-name { font-size: 17px; }
      .stats-row .stat-val { font-size: 15px; }
      .bill-history-item { padding: 12px 16px; font-weight: 600; }
      .toggle-label { font-size: 15px; font-weight: 700; }
      .search-wrap .input { font-size: 15px; }
      .login-page .card { border-color: rgba(130,110,210,0.3); }
      .login-page .google-btn { font-size: 17px; font-weight: 700; padding: 17px 28px; border-color: rgba(130,110,210,0.4); }
      .login-page .google-btn:hover { border-color: var(--purpleLight); box-shadow: 0 0 40px rgba(124,58,237,0.3), 0 0 80px rgba(6,182,212,0.12); }
    }
    @media (min-width: 1024px) {
      .page { max-width: 1120px; padding: 34px 48px; }
    }

    .emp-card {
      border-radius:18px; padding:18px; margin-bottom:14px; cursor:pointer;
      background:rgba(20,14,40,0.55);
      border:1px solid rgba(140,120,220,0.2);
      
      -webkit-
      box-shadow:0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
      transition:transform 0.18s, box-shadow 0.18s, border-color 0.18s;
      position:relative; overflow:hidden;
    }
    .emp-card::before {
      content:''; position:absolute; inset:0; border-radius:inherit;
      background:linear-gradient(135deg,rgba(255,255,255,0.04) 0%,transparent 60%);
      pointer-events:none;
    }
    .emp-card:hover {  box-shadow:0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08); }
    .emp-card:active { transform:scale(0.98); }
    .emp-card.clr-0 { border-color:rgba(124,58,237,0.35); background:rgba(124,58,237,0.08); }
    .emp-card.clr-1 { border-color:rgba(6,182,212,0.35); background:rgba(6,182,212,0.07); }
    .emp-card.clr-2 { border-color:rgba(236,72,153,0.32); background:rgba(236,72,153,0.07); }
    .emp-card.clr-3 { border-color:rgba(245,158,11,0.32); background:rgba(245,158,11,0.07); }
    .emp-card.clr-4 { border-color:rgba(52,211,153,0.32); background:rgba(52,211,153,0.07); }
    .emp-card.clr-5 { border-color:rgba(99,102,241,0.35); background:rgba(99,102,241,0.08); }
    .emp-card.active-shift {
      border-color:rgba(52,211,153,0.5) !important;
      box-shadow:0 0 0 1px rgba(52,211,153,0.2), 0 8px 32px rgba(52,211,153,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .emp-card-accent {
      position:absolute; top:0; left:0; width:4px; height:100%; border-radius:18px 0 0 18px;
    }
    .clr-0 .emp-card-accent { background:linear-gradient(180deg,#7c3aed,#a78bfa); }
    .clr-1 .emp-card-accent { background:linear-gradient(180deg,#06b6d4,#67e8f9); }
    .clr-2 .emp-card-accent { background:linear-gradient(180deg,#ec4899,#f9a8d4); }
    .clr-3 .emp-card-accent { background:linear-gradient(180deg,#f59e0b,#fcd34d); }
    .clr-4 .emp-card-accent { background:linear-gradient(180deg,#34d399,#6ee7b7); }
    .clr-5 .emp-card-accent { background:linear-gradient(180deg,#6366f1,#a5b4fc); }
    .emp-badge {
      font-size:10px; padding:3px 9px; border-radius:7px; font-weight:700;
      text-transform:uppercase; letter-spacing:0.4px; display:inline-flex; align-items:center; gap:4px;
    }
    .emp-badge.online { background:rgba(52,211,153,0.18); color:#34d399; border:1px solid rgba(52,211,153,0.3); }
    .emp-badge.offline { background:rgba(100,100,120,0.15); color:#94a3b8; border:1px solid rgba(100,100,130,0.18); }
    .shift-timer {
      font-family:'Orbitron',monospace; font-size:24px; font-weight:900;
      color:#34d399; text-align:center; letter-spacing:2px;
      text-shadow:0 0 20px rgba(52,211,153,0.45);
    }
    .shift-btn-in {
      background:linear-gradient(135deg,#059669,#10b981); color:#fff; border:none;
      border-radius:14px; padding:15px 28px; font-family:'Orbitron',monospace;
      font-size:13px; font-weight:800; letter-spacing:1px; cursor:pointer;
      box-shadow:0 4px 20px rgba(16,185,129,0.35); 
      width:100%; -webkit-tap-highlight-color:transparent;
    }
    .shift-btn-in:hover { filter:brightness(1.08);  }
    .shift-btn-in:disabled { opacity:0.45; cursor:not-allowed; transform:none; }
    .shift-btn-out {
      background:linear-gradient(135deg,#b91c1c,#ef4444); color:#fff; border:none;
      border-radius:14px; padding:15px 28px; font-family:'Orbitron',monospace;
      font-size:13px; font-weight:800; letter-spacing:1px; cursor:pointer;
      box-shadow:0 4px 20px rgba(239,68,68,0.35); 
      width:100%; -webkit-tap-highlight-color:transparent;
    }
    .shift-btn-out:hover { filter:brightness(1.08);  }
    .emp-stat-grid {
      display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0;
    }
    .emp-stat {
      position:relative; border-radius:14px; padding:14px 14px 16px;
      background:rgba(20,14,40,0.55);
      border:1px solid rgba(140,120,220,0.18);
      
      box-shadow:0 4px 18px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
      overflow:hidden; cursor:default;
      transition:transform 0.18s, box-shadow 0.18s;
    }
    .emp-stat::before {
      content:''; position:absolute; inset:0; border-radius:inherit;
      background:linear-gradient(160deg,rgba(255,255,255,0.04) 0%,transparent 55%);
      pointer-events:none;
    }
    .emp-stat::after {
      content:''; position:absolute; bottom:0; left:0; right:0; height:3px; border-radius:0 0 14px 14px;
    }
    .emp-stat:hover {  box-shadow:0 8px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.07); }
    .emp-stat.clickable { cursor:pointer; }
    .emp-stat.sclr-0::after { background:linear-gradient(90deg,#7c3aed,#a78bfa); }
    .emp-stat.sclr-0 { border-color:rgba(124,58,237,0.28); }
    .emp-stat.sclr-1::after { background:linear-gradient(90deg,#0891b2,#22d3ee); }
    .emp-stat.sclr-1 { border-color:rgba(6,182,212,0.28); }
    .emp-stat.sclr-2::after { background:linear-gradient(90deg,#059669,#34d399); }
    .emp-stat.sclr-2 { border-color:rgba(52,211,153,0.28); }
    .emp-stat.sclr-3::after { background:linear-gradient(90deg,#b91c1c,#f87171); }
    .emp-stat.sclr-3 { border-color:rgba(239,68,68,0.28); }
    .emp-stat .es-label { font-size:9px; color:var(--textMuted); text-transform:uppercase; letter-spacing:0.8px; font-weight:700; margin-bottom:6px; }
    .emp-stat .es-value { font-family:'Orbitron',monospace; font-size:16px; font-weight:800; color:var(--textPrimary); line-height:1.2; }
    .salary-row {
      display:flex; align-items:center; justify-content:space-between; padding:12px 16px;
      border-bottom:1px solid rgba(120,100,200,0.1); font-size:14px;
    }
    .salary-row:last-child { border-bottom:none; }
    .pay-pill {
      font-size:10px; padding:3px 10px; border-radius:8px; font-weight:700;
      text-transform:uppercase; letter-spacing:0.4px; cursor:default;
    }
    .pay-pill.paid     { background:rgba(52,211,153,0.15); color:#34d399; border:1px solid rgba(52,211,153,0.25); }
    .pay-pill.unpaid   { background:rgba(239,68,68,0.12);  color:#f87171; border:1px solid rgba(239,68,68,0.2); }
    .pay-pill.received { background:rgba(124,58,237,0.15); color:#a78bfa; border:1px solid rgba(124,58,237,0.25); }
    .emp-section-title {
      font-family:'Orbitron',monospace; font-size:12px; font-weight:800;
      color:var(--purpleLight); letter-spacing:1.2px; text-transform:uppercase;
      margin:20px 0 12px; display:flex; align-items:center; gap:8px;
    }
    .emp-section-title::after {
      content:''; flex:1; height:1px;
      background:linear-gradient(to right,rgba(124,58,237,0.35),transparent);
    }
    .live-dot {
      width:8px; height:8px; border-radius:50%; background:#34d399;
      animation:pulse 1.4s ease-in-out infinite; display:inline-block; flex-shrink:0;
    }
    @media (max-width:600px) {
      .emp-stat-grid { grid-template-columns:repeat(2,1fr); }
      .cashier-stat-grid { grid-template-columns:repeat(2,1fr) !important; }
      .emp-card { padding:14px 14px 14px 18px; }
    }

    @media (max-width:600px) {
      .bh-actions { width:100% !important; display:flex !important; justify-content:space-between !important; align-items:center !important; margin-top:4px !important; gap:4px !important; }
      .bh-ref-mobile { display:inline-block !important; }
      .bh-ref-desktop { display:none !important; }
      .un-item { flex-wrap:wrap !important; gap:3px !important; padding:6px 8px !important; }
      .un-item .badge { font-size:8px !important; padding:1px 5px !important; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
      .un-item .un-actions { flex-shrink:0 !important; }
    }
    @media (min-width:601px) {
      .bh-ref-mobile { display:none !important; }
      .bh-ref-desktop { display:inline !important; }
      .cs-efpm-input { width:80px !important; }
    }
    .mg-chk-label, .cwr-chk-label {
      display:inline-flex;align-items:center;justify-content:center;
      width:16px;height:16px;cursor:pointer;position:relative;flex-shrink:0;
    }
    .mg-chk-label input, .cwr-chk-label input {
      position:absolute;opacity:0;width:0;height:0;margin:0;padding:0;
      appearance:none;-webkit-appearance:none;border:none;
    }
    .mg-chk-box, .cwr-chk-box {
      display:flex;align-items:center;justify-content:center;
      width:15px;height:15px;border-radius:3px;
      border:2px solid rgba(124,58,237,0.5);
      background:transparent;transition:background 0.15s,border-color 0.15s;
      box-sizing:border-box;
    }
    .mg-est-rate::-webkit-outer-spin-button,
    .mg-est-rate::-webkit-inner-spin-button,
    #mgBulkRate::-webkit-outer-spin-button,
    #mgBulkRate::-webkit-inner-spin-button {
      -webkit-appearance:none; margin:0;
    }
    .mg-est-rate, #mgBulkRate { -moz-appearance:textfield; }
    
    .bill-status-select, .styled-select {
      appearance:none; -webkit-appearance:none;
      background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a78bfa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
      background-repeat:no-repeat; background-position:right 8px center;
      padding-right:22px !important;
    }
    .sa-stp { position:fixed; z-index:10050; min-width:120px; padding:3px; border-radius:4px 4px 12px 12px; background:rgba(22,16,48,0.88); border:1px solid rgba(167,139,250,0.25); box-shadow:0 10px 26px rgba(0,0,0,0.4); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); animation:saStpIn .12s ease-out; box-sizing:border-box; }
    .sa-stp button { display:flex; align-items:center; gap:8px; width:100%; padding:6px 10px; border:0; border-radius:6px; background:none; color:#ece6ff; font:600 13px Rajdhani,sans-serif; text-align:left; cursor:pointer; }
    .sa-stp button:last-child { border-radius:6px 6px 9px 9px; }
    .sa-stp button:hover, .sa-stp button:focus-visible { background:rgba(124,58,237,0.22); outline:none; }
    .sa-stp button.on { background:rgba(124,58,237,0.3); color:#fff; }
    .sa-stp button i { width:8px; height:8px; border-radius:50%; flex:none; }
    @keyframes saStpIn { from { opacity:0; transform:translateY(-4px); } }
    @keyframes saStpUp { from { opacity:0; transform:translateY(24px); } }
    html[data-theme="light"] .sa-stp { background:rgba(255,255,255,0.92); border-color:rgba(109,40,217,0.2); box-shadow:0 12px 30px rgba(76,29,149,0.16); }
    html[data-theme="light"] .sa-stp button { color:#2a2347; }
    html[data-theme="light"] .sa-stp button:hover, html[data-theme="light"] .sa-stp button.on { background:rgba(124,58,237,0.1); color:#4c1d95; }
    body > .sa-stp { min-width:0; }
    body > .sa-stp { padding:2px; } body > .sa-stp button { padding:5px 5px; gap:5px; font-size:11px; white-space:nowrap; } body > .sa-stp button i { width:6px; height:6px; }
    .bill-status-select option, .styled-select option {
      background:#1a1730; color:#e8e0ff; padding:8px;
    }
    
    .analytics-container { animation: fadeIn 0.4s ease-out; }
    .analytics-date-range {
      display:flex; gap:10px; align-items:flex-end; margin-bottom:16px;
      padding:12px 14px; border-radius:14px;
      background:rgba(18,14,38,0.45); border:1px solid rgba(140,120,220,0.12);
       -webkit-
    }
    .analytics-date-range .input { font-size:12px; padding:8px 10px; }
    .analytics-summary {
      display:grid; grid-template-columns:repeat(3, 1fr);
      gap:12px; margin-bottom:18px;
    }
    .analytics-card {
      border-radius:18px; padding:18px 16px; cursor:pointer;
      position:relative; overflow:hidden; border:none;
      
      box-shadow:0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
      transition:transform 0.22s ease, box-shadow 0.22s ease;
      -webkit-tap-highlight-color:transparent;
    }
    .analytics-card::after {
      content:''; position:absolute; inset:0; border-radius:18px;
      background:linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 50%);
      pointer-events:none;
    }
    .analytics-card:hover { transform:translateY(-3px); box-shadow:0 10px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18); }
    .analytics-card:active { transform:translateY(-1px) scale(0.98); }
    .analytics-card .ac-label {
      font-size:clamp(8px, 2.2vw, 10px); text-transform:uppercase; letter-spacing:1.2px;
      font-weight:800; margin-bottom:6px; color:rgba(255,255,255,0.92);
      text-shadow:0 1px 3px rgba(0,0,0,0.5);
    }
    .analytics-card .ac-value {
      font-family:'Orbitron',monospace; font-size:clamp(14px, 4vw, 20px); font-weight:900;
      line-height:1.15; color:#fff; word-break:break-all;
      text-shadow:0 1px 2px rgba(0,0,0,0.6);
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }
    .analytics-card .ac-value.digits-long { font-size:clamp(12px, 3.2vw, 16px); }
    .analytics-card .ac-value.digits-xlong { font-size:clamp(10px, 2.6vw, 13px); }
    .analytics-card .ac-sub {
      font-size:clamp(9px, 2vw, 11px); color:rgba(255,255,255,0.78); margin-top:4px; font-weight:600;
      text-shadow:0 1px 2px rgba(0,0,0,0.4);
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }
    .analytics-card.ac-loaded   { background:linear-gradient(135deg, #0e7490, #0891b2, #22d3ee); }
    .analytics-card.ac-redeemed { background:linear-gradient(135deg, #92400e, #b45309, #f59e0b); }
    .analytics-card.ac-received { background:linear-gradient(135deg, #047857, #059669, #34d399); }
    .analytics-card.ac-balance  { background:linear-gradient(135deg, #be185d, #db2777, #f472b6); }
    .analytics-card.ac-profit   { background:linear-gradient(135deg, #5b21b6, #7c3aed, #a78bfa); }
    .analytics-card.ac-report   { background:linear-gradient(135deg, #166534, #16a34a, #4ade80); }
    .analytics-chart-wrap {
      position:relative; isolation:isolate;
      background:
        radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,0.16), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(6,182,212,0.10), transparent 60%),
        linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.03));
      border:1px solid rgba(167,139,250,0.16); border-top-color:rgba(255,255,255,0.17);
      border-radius:20px; padding:18px 16px 14px; margin-bottom:14px;
      box-shadow:0 18px 40px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
      backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%);
      transition:border-color 0.25s, box-shadow 0.25s;
      animation:saChartIn 0.35s ease-out both;
    }
    .analytics-chart-wrap:hover { border-color:rgba(167,139,250,0.3); box-shadow:0 22px 48px rgba(0,0,0,0.38), 0 0 0 1px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.1); }
    .analytics-charts-grid .analytics-chart-wrap:nth-child(2) { animation-delay:0.08s; }
    @keyframes saChartIn { from { opacity:0; } to { opacity:1; } }
    .analytics-chart-wrap h4 {
      display:flex; align-items:center; gap:9px;
      font-family:'Orbitron',monospace; font-size:11px; margin-bottom:14px;
      color:#ebe5ff; letter-spacing:1px; text-transform:uppercase;
    }
    .analytics-chart-wrap h4::before {
      content:''; flex-shrink:0; width:4px; height:14px; border-radius:3px;
      background:linear-gradient(180deg,#a78bfa,#22d3ee); box-shadow:0 0 10px rgba(34,211,238,0.55);
    }
    @media (prefers-reduced-motion: reduce) { .analytics-chart-wrap { animation:none; } }
    .analytics-charts-grid.sa-board { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .analytics-charts-grid.sa-board-stack { grid-template-columns:minmax(0,1fr); }
    .sa-board > .analytics-chart-wrap { min-width:0; }
    .analytics-charts-grid.sa-board-swap > .analytics-chart-wrap:first-child { order:2; }
    .sa-board .analytics-chart-wrap { padding-bottom:24px; }
    .sa-board .analytics-chart-wrap canvas { max-height:none !important; }
    .sa-board .analytics-chart-wrap > div:has(> canvas) { transition:height 0.28s cubic-bezier(.22,1,.36,1); }
    .sa-board.sa-board-resizing .analytics-chart-wrap > div:has(> canvas) { transition:none; }
    .sa-cb-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
    .sa-cb-head h4 { margin-bottom:0 !important; }
    .sa-cb-tools { display:flex; align-items:center; gap:4px; padding:3px; border-radius:12px; background:rgba(255,255,255,0.04); border:1px solid rgba(167,139,250,0.14); }
    .sa-cb-btn { width:30px; height:30px; padding:0; display:flex; align-items:center; justify-content:center; border:0; border-radius:9px; cursor:pointer;
      background:transparent; color:rgba(215,207,250,0.75); transition:background 0.15s, color 0.15s, transform 0.15s; }
    .sa-cb-btn svg { width:16px; height:16px; }
    .sa-cb-btn:hover:not(:disabled) { background:rgba(124,58,237,0.22); color:#fff; }
    .sa-cb-btn:active:not(:disabled) { transform:scale(0.92); }
    .sa-cb-btn:disabled { opacity:0.3; cursor:default; }
    .sa-cb-btn:focus-visible { outline:2px solid #22d3ee; outline-offset:1px; }
    .sa-cb-btn[aria-pressed="true"] { background:linear-gradient(135deg,rgba(124,58,237,0.55),rgba(6,182,212,0.45)); color:#fff; }
    .sa-cb-grip { position:absolute; left:50%; bottom:0; width:72px; height:22px; margin-left:-36px; cursor:ns-resize; touch-action:none; border-radius:8px; }
    .sa-cb-grip::after { content:''; position:absolute; inset:-6px -10px; }
    .sa-cb-grip::before { content:''; position:absolute; left:20px; right:20px; top:11px; height:4px; border-radius:2px; background:rgba(196,181,253,0.35); transition:background 0.15s, left 0.15s, right 0.15s; }
    .sa-cb-grip:hover::before, .sa-board-resizing .sa-cb-grip::before { left:12px; right:12px; background:linear-gradient(90deg,#a78bfa,#22d3ee); }
    .sa-rank { position:relative; margin:14px 0; padding:18px 16px 12px; border-radius:20px;
      background:radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,0.12), transparent 55%), linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.03));
      border:1px solid rgba(167,139,250,0.16); border-top-color:rgba(255,255,255,0.17);
      box-shadow:0 18px 40px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
      backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%);
      animation:saChartIn 0.35s ease-out 0.08s both; }
    .sa-rank-head { margin-bottom:12px; }
    .sa-rank-head h4 { display:flex; align-items:center; gap:9px; margin:0; font-family:'Orbitron',monospace; font-size:11px; letter-spacing:1px; color:#ebe5ff; }
    .sa-rank-head h4::before { content:''; width:4px; height:14px; border-radius:3px; background:linear-gradient(180deg,#a78bfa,#22d3ee); }
    .sa-rank-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px; margin-bottom:10px; border-radius:12px;
      background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); }
    .sa-rank-tabs .ga-section { display:flex; align-items:center; justify-content:center; text-align:center; min-height:38px; padding:6px 8px !important; border-radius:9px !important; border:1px solid transparent !important; background:transparent !important; box-shadow:none !important;
      color:rgba(235,229,255,0.82) !important; font-family:'Rajdhani',sans-serif !important; font-size:14px !important; font-weight:700; letter-spacing:0.3px; text-transform:none;
      transition:background 0.25s ease, color 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
    .sa-rank-tabs .ga-section:hover { color:#fff !important; background:rgba(255,255,255,0.07) !important; }
    .sa-rank-tabs .ga-section:not(.btn-outline) { color:#fff !important; background:rgba(255,255,255,0.18) !important; border-color:rgba(255,255,255,0.22) !important;
      box-shadow:0 4px 14px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important; }
    .sa-rank-tabs .ga-section.btn-cyan { box-shadow:0 4px 14px rgba(0,0,0,0.25), inset 0 -2px 0 #22d3ee, inset 0 1px 0 rgba(255,255,255,0.2) !important; }
    .sa-rank-tabs .ga-section.btn-green { box-shadow:0 4px 14px rgba(0,0,0,0.25), inset 0 -2px 0 #34d399, inset 0 1px 0 rgba(255,255,255,0.2) !important; }
    .sa-rank-tabs .ga-section.btn-yellow { box-shadow:0 4px 14px rgba(0,0,0,0.25), inset 0 -2px 0 #fbbf24, inset 0 1px 0 rgba(255,255,255,0.2) !important; }
    .sa-rank-search { position:relative; margin-bottom:8px; }
    .sa-rank-search svg { position:absolute; left:12px; top:50%; width:15px; height:15px; margin-top:-7.5px; color:rgba(205,195,245,0.55); pointer-events:none; }
    .sa-rank-search .input { width:100%; height:40px; padding:0 12px 0 34px !important; font-size:14px !important; border-radius:10px !important; background:rgba(255,255,255,0.05) !important; border:1px solid rgba(255,255,255,0.1) !important; }
    .sa-rank-search .input:focus { border-color:rgba(34,211,238,0.5) !important; box-shadow:0 0 0 3px rgba(34,211,238,0.12) !important; }
    .sa-rank-list { max-height:460px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.55) transparent; }
    .sa-rank-list .sa-rk-th, .sa-rank-list .sa-rk-row { display:grid; grid-template-columns:34px minmax(0,1.4fr) 120px 128px minmax(0,1fr); align-items:center; column-gap:16px; }
    .sa-rank-list .sa-rk-row > span, .sa-rank-list .sa-rk-th > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sa-rank-list .sa-rk-th { position:sticky; top:0; z-index:1; padding:8px 10px; font:700 10.5px 'Orbitron',monospace; letter-spacing:0.8px; text-transform:uppercase; color:rgba(205,195,245,0.6);
      background:rgba(22,16,44,0.92); border-bottom:1px solid rgba(255,255,255,0.08); }
    .sa-rank-list .sa-rk-th span:nth-child(n+3) { text-align:right; }
    .sa-rank-list .sa-rk-row { flex-wrap:nowrap; row-gap:0; padding:10px 10px; border:0; border-bottom:1px solid rgba(255,255,255,0.06); border-radius:0; cursor:pointer; font-size:14px;
      transition:background 0.15s ease; }
    .sa-rank-list .sa-rk-row:hover, .sa-rank-list .sa-rk-row:focus-visible { background:rgba(255,255,255,0.05); outline:none; }
    .sa-rank-list .sa-rk-row:focus-visible { box-shadow:inset 2px 0 0 #22d3ee; }
    .sa-rank-list .sa-rk-row > span:nth-child(n+3) { text-align:right; }
    .sa-rk-rank { font:700 12px 'Orbitron',monospace; color:rgba(205,195,245,0.55); font-variant-numeric:tabular-nums; }
    .sa-rk-rank.top { color:#c4b5fd; }
    .sa-rk-name { min-width:0; display:flex; flex-direction:column; }
    .sa-rk-name .ga-rank-name { font-weight:700; color:#f5f2ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .sa-rk-sub { font-size:12px; color:rgba(205,195,245,0.6); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .sa-rk-num { font-weight:700; color:#f5f2ff; font-variant-numeric:tabular-nums; white-space:nowrap; }
    .sa-rk-num.up { color:#34d399; } .sa-rk-num.down { color:#f87171; } .sa-rk-num.muted { color:rgba(215,207,250,0.7); font-weight:600; overflow:hidden; text-overflow:ellipsis; }
    .sa-rk-more { display:block; width:100%; margin-top:6px; padding:10px; border-radius:10px; cursor:pointer; font:700 13px 'Rajdhani',sans-serif; color:#c4b5fd;
      background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); transition:background 0.15s, color 0.15s; }
    .sa-rk-more:hover { background:rgba(255,255,255,0.08); color:#fff; }
    .sa-rk-empty { padding:26px 10px; text-align:center; font-size:14px; font-weight:600; color:rgba(205,195,245,0.6); }
    @media (max-width:560px) {
      .sa-rank-list .sa-rk-th, .sa-rank-list .sa-rk-row { grid-template-columns:20px minmax(0,1fr) auto auto; column-gap:10px; }
      .sa-rank-list .sa-rk-th { padding:7px 8px; font-size:9px; letter-spacing:0.5px; }
      .sa-rank-list .sa-rk-th > span { overflow:visible; }
      .sa-rank-list .sa-rk-row { padding:9px 8px; font-size:12.5px; }
      .sa-rk-rank { font-size:11px; }
      .sa-rank-list .sa-rk-row > .sa-rk-name { overflow:visible; white-space:normal; }
      .sa-rk-name .ga-rank-name { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.2; overflow-wrap:anywhere; }
      .sa-rk-c4 { display:none; }
      .sa-rank-list .sa-rk-th .sa-rk-full { display:none; } .sa-rank-list .sa-rk-th .sa-rk-short { display:inline; }
    }
    .sa-rk-th .sa-rk-short { display:none; }
    @media (prefers-reduced-motion: reduce) { .sa-rank { animation:none; } }
    .sa-tu-search { width:100%; height:40px; font-size:14px !important; padding:0 12px !important; margin-bottom:8px; border-radius:10px !important; }
    #compTopUsersList { max-height:420px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.55) transparent; }
    #compTopUsersList .sa-tu-row { display:block; padding:12px 6px; border-bottom:1px solid rgba(255,255,255,0.06); }
    #compTopUsersList .sa-tu-row:last-child { border-bottom:0; }
    .sa-tu-head { display:none; }
    .sa-tu-top { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-width:0; }
    .sa-tu-rank { flex-shrink:0; width:24px; font:700 13px 'Orbitron',monospace; color:#c4b5fd; }
    .sa-tu-who { flex:1; min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; }
    .sa-tu-name { flex:0 1 auto; min-width:0; font-weight:700; font-size:16px; color:#f5f2ff; overflow-wrap:anywhere; line-height:1.2; }
    .sa-tu-pills { display:inline-flex !important; flex-wrap:wrap; gap:6px; margin-left:auto; }
    .sa-tu-pill { display:inline-block !important; font-size:11px; font-weight:700; letter-spacing:0.4px; text-transform:uppercase; padding:3px 10px; border-radius:7px; white-space:nowrap; max-width:170px; overflow:hidden; text-overflow:ellipsis; }
    .sa-tu-game { background:rgba(124,58,237,0.18); color:#c4b5fd; border:1px solid rgba(167,139,250,0.25); }
    .sa-tu-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:8px 0 0 32px; }
    .sa-tu-stats span { display:flex; flex-direction:column; min-width:0; }
    .sa-tu-stats small { font:700 10px 'Orbitron',monospace; letter-spacing:0.6px; text-transform:uppercase; color:rgba(205,195,245,0.55); }
    .sa-tu-stats b { font-size:15px; font-weight:700; color:#f5f2ff; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    #compTopUsersList .sa-tu-new { animation:saTuIn 0.35s ease-out both; }
    @keyframes saTuIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
    .sa-tu-stats b.pts { color:#22d3ee; } .sa-tu-stats b.up { color:#34d399; } .sa-tu-stats b.down { color:#f87171; }
    .totals-card .lb-figs { padding:0 12px; }
    .totals-card .lb-head { padding:0; }
    .ga-head-btns { display:flex; align-items:center; gap:6px; flex:none; }
    .ga-modal-head > .ga-head-btns { flex:none; margin:-8px -8px 0 auto; }
    .ga-modal-head .ga-head-btns .ga-icon-btn { margin:0; }
    .ga-modal-head .ga-head-btns .ga-expand svg { width:14px; height:14px; }
    .ga-modal-head [data-close] svg { width:16px; height:16px; }
    .vr-modal { background:linear-gradient(150deg,rgba(56,36,116,0.28) 0%,rgba(22,15,50,0.42) 100%) !important; backdrop-filter:blur(22px) saturate(150%); -webkit-backdrop-filter:blur(22px) saturate(150%); border-color:rgba(167,139,250,0.2) !important; box-shadow:0 30px 80px rgba(0,0,0,0.5),0 0 60px rgba(124,58,237,0.1) !important; }
    .vr-modal { max-width:460px; width:100%; max-height:80vh; display:flex; flex-direction:column; overflow:hidden !important; }
    .vr-modal > .modal-header, .vr-modal > .search-wrap { flex:none; }
    .vr-list { flex:1; min-height:0; overflow-y:auto; }
    .vr-row { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid rgba(120,100,200,0.1); }
    .vr-name { flex:1; min-width:0; font-weight:600; font-size:14px; color:var(--textPrimary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .vr-act { display:flex; gap:4px; }
    .vr-act .btn { padding:5px 7px; }
    .vr-editbox { display:flex; align-items:center; gap:8px; }
    .vr-editbox .input { width:80px; padding:6px 8px; }
    .inv-lock { display:flex; gap:9px; align-items:flex-start; padding:9px 11px; margin-bottom:14px; border-radius:10px; background:rgba(246,210,93,0.07); border:1px solid rgba(246,210,93,0.3); font-size:12.5px; line-height:1.45; color:var(--textSecondary); }
    .inv-lock svg { flex:none; margin-top:2px; }
    .inv-lock b { color:var(--textPrimary); }
    #invoiceSettingsModal .input:disabled { opacity:.75; cursor:default; }
    .itz-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; border:1px solid rgba(34,211,238,0.28); background:rgba(34,211,238,0.05); }
    .itz-row > svg { flex:none; }
    .itz-t { flex:1; min-width:0; }
    .itz-t b { display:block; font-size:13.5px; color:var(--textPrimary); }
    .itz-t span { font-size:11.5px; color:var(--textMuted); }
    .itz-btn { display:inline-flex; align-items:center; gap:6px; flex:none; height:32px; padding:0 12px; border-radius:8px; border:1px solid rgba(34,211,238,0.45); background:rgba(34,211,238,0.1); color:#22d3ee; font:700 13px 'Rajdhani',sans-serif; letter-spacing:.03em; cursor:pointer; white-space:nowrap; }
    .itz-btn:hover:not(:disabled) { background:rgba(34,211,238,0.18); }
    .itz-btn:disabled { cursor:default; opacity:.85; }
    .itz-ov { z-index:1100; }
    .itz-modal { max-width:400px; display:flex; flex-direction:column; max-height:80vh; overflow:hidden !important; padding:20px !important; }
    .itz-modal > * { flex:none; }
    .itz-sd { font-size:12.5px; color:var(--textMuted); margin:-6px 0 12px; line-height:1.45; }
    .itz-dev { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; padding:9px 11px; border-radius:9px; border:1px solid rgba(52,211,153,0.3); background:rgba(52,211,153,0.07); color:var(--textSecondary); font:600 13px 'Rajdhani',sans-serif; text-align:left; cursor:pointer; margin-bottom:10px; }
    .itz-dev b { color:var(--textPrimary); }
    .itz-dev em { font-style:normal; color:#34d399; font-weight:700; font-size:12px; letter-spacing:.05em; }
    .itz-dev:hover { background:rgba(52,211,153,0.13); }
    .itz-q { width:100%; margin-bottom:8px; }
    .itz-modal > .itz-list { flex:1 1 auto; min-height:120px; max-height:300px; overflow-y:auto; padding:2px; }
    .itz-list::-webkit-scrollbar { width:8px; }
    .itz-list::-webkit-scrollbar-thumb { background-color:rgba(124,58,237,0.42); border-radius:8px; border:2px solid transparent; background-clip:padding-box; }
    .itz-opt { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; cursor:pointer; font-size:14px; font-weight:600; color:var(--textPrimary); }
    .itz-opt i { font-style:normal; color:var(--textMuted); font-weight:500; font-size:12px; margin-left:4px; }
    .itz-opt small { color:var(--textMuted); font-size:12px; white-space:nowrap; }
    .itz-opt:hover, .itz-opt.on { background:rgba(124,58,237,0.22); }
    .itz-opt[aria-selected="true"] { color:#c4b5fd; box-shadow:inset 0 0 0 1px rgba(167,139,250,0.35); background:rgba(124,58,237,0.18); }
    .itz-ex { margin-top:10px; padding-top:10px; border-top:1px solid rgba(167,139,250,0.18); font-size:12px; color:var(--textMuted); }
    .itz-ex b { color:#34d399; font-weight:600; }
    @media (max-width:640px) {
      #invoiceSettingsModal { padding:8px !important; }
      #invoiceSettingsModal .inv-set-modal { max-width:none !important; width:calc(100vw - 16px) !important; padding:18px 14px !important; }
      .itz-ov { align-items:flex-end !important; padding:8px !important; }
      .itz-modal { max-width:none !important; width:100% !important; max-height:78vh; border-radius:18px 18px 14px 14px !important; }
    }
    .lb-partial { margin-top:8px; display:flex; align-items:center; gap:10px; }
    .lb-partial .input { max-width:200px; flex:0 1 200px; }
    .lb-partial span { font-size:11px; line-height:1.3; color:var(--textMuted); min-width:0; max-height:2.6em; overflow:hidden; }
    .totals-card .gt-row { padding-left:12px; padding-right:12px; }
    .gt-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 10px; font-size:13px; font-weight:700; color:var(--purpleLight); margin-bottom:6px; }
    .gt-right { display:flex; align-items:center; gap:8px; }
    .gt-edit { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; margin:-3px -8px -3px 0; border-radius:8px; border:1px dashed rgba(167,139,250,0.4);
      background:rgba(124,58,237,0.08); color:inherit; font:inherit; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
    .gt-edit:hover { background:rgba(124,58,237,0.18); border-color:rgba(167,139,250,0.7); }
    .gt-pen { display:inline-flex; color:#22d3ee; filter:drop-shadow(0 0 4px rgba(34,211,238,0.45)); }
    .gt-pen svg { width:13px; height:13px; }
    .gt-edit.editing { border-style:solid; border-color:#22d3ee; background:rgba(6,182,212,0.1); cursor:text; }
    .gt-input { width:84px; background:transparent; border:0; outline:0; color:#fff; font:inherit; text-align:right; padding:0; }
    .gt-cur { color:#22d3ee; }
    @media (min-width:769px) { .adv-modal { max-width:580px !important; } }
    .gt-status { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:-2px 0 8px; padding:6px 10px; border-radius:8px; font:600 12px 'Rajdhani',sans-serif; }
    .gt-status b { font-weight:800; }
    .gt-status.left { color:#a5f3fc; background:rgba(6,182,212,0.08); border:1px solid rgba(34,211,238,0.22); }
    .gt-status.ok { color:#6ee7b7; background:rgba(16,185,129,0.08); border:1px solid rgba(52,211,153,0.22); }
    .gt-status.over { color:#fcd34d; background:rgba(245,158,11,0.1); border:1px solid rgba(251,191,36,0.3); }
    .gt-acts { display:flex; gap:6px; flex-shrink:0; }
    .gt-fit, .gt-clear { border:1px solid rgba(255,255,255,0.18); background:rgba(255,255,255,0.06); color:#fff; font:700 11px 'Rajdhani',sans-serif; padding:3px 9px; border-radius:6px; cursor:pointer; }
    .gt-fit { background:linear-gradient(135deg,rgba(124,58,237,0.6),rgba(6,182,212,0.5)); border:0; padding:4px 10px; }
    .gt-fit:hover, .gt-clear:hover { filter:brightness(1.15); }
    .bill-value-input.gt-hinted::placeholder { color:#22d3ee; opacity:0.85; font-weight:600; }
    .gt-rec { display:flex; justify-content:space-between; gap:8px; margin:-2px 0 8px; padding:0 10px; font:600 12px 'Rajdhani',sans-serif; color:var(--textMuted); }
    .gt-rec b { color:var(--textPrimary); }
    .gt-left-sub { margin:0 0 14px; font-size:14px; line-height:1.5; color:var(--textSecondary); }
    .gt-opt { display:flex; align-items:center; gap:12px; width:100%; padding:13px 14px; margin-top:10px; text-align:left; border-radius:12px; border:1px solid rgba(167,139,250,0.28); background:rgba(124,58,237,0.1); color:var(--textPrimary); font-family:'Rajdhani',sans-serif; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
    .gt-opt:hover, .gt-opt:focus-visible { border-color:rgba(167,139,250,0.75); background:rgba(124,58,237,0.2); outline:0; }
    .gt-opt svg { flex:none; color:#a78bfa; }
    .gt-opt.credit svg { color:#34d399; }
    .gt-opt span { flex:1; min-width:0; }
    .gt-opt b { display:block; font-size:16px; font-weight:700; }
    .gt-opt small { display:block; margin-top:2px; font-size:13px; font-weight:500; color:var(--textSecondary); }
    .bb-dlg-t { margin:0 0 14px; font-size:14px; line-height:1.5; color:var(--textSecondary); overflow-wrap:anywhere; }
    .bb-dlg-t b { color:var(--textPrimary); }
    .gt-undo { background:none; border:0; padding:0; color:rgba(205,195,245,0.7); font:600 11px 'Rajdhani',sans-serif; text-decoration:underline; cursor:pointer; }
    .gt-undo:hover { color:#fff; }
    #bbAddRowsCount, #bbRatesAddCount, #bbUnAddCount { font-weight:800 !important; -moz-appearance:textfield; appearance:textfield; }
    #bbAddRowsCount::-webkit-inner-spin-button, #bbAddRowsCount::-webkit-outer-spin-button,
    #bbRatesAddCount::-webkit-inner-spin-button, #bbRatesAddCount::-webkit-outer-spin-button,
    #bbUnAddCount::-webkit-inner-spin-button, #bbUnAddCount::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
    .bb-ac-menu { position:fixed; z-index:10060; padding:4px; border-radius:10px; background:rgba(20,14,40,0.97); border:1px solid rgba(167,139,250,0.3); box-shadow:0 10px 30px rgba(0,0,0,0.5); }
    .bb-ac-menu button { display:flex; align-items:center; gap:8px; padding:5px 11px; border:0; border-radius:7px; background:transparent; color:#fca5a5; font:700 13px 'Rajdhani',sans-serif; cursor:pointer; white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
    .bb-ac-menu button:hover { background:rgba(239,68,68,0.15); }
    #bbProgress { position:absolute; left:0; right:0; bottom:-1px; height:3px; overflow:hidden; opacity:0; pointer-events:none; transition:opacity 0.25s ease; z-index:3; }
    #bbProgress i { position:absolute; inset:0; transform-origin:left center; transform:scaleX(0); transition:transform 0.35s cubic-bezier(.22,1,.36,1);
      background:linear-gradient(90deg,#7c3aed,#06b6d4 60%,#10b981); box-shadow:0 0 10px rgba(34,211,238,0.6); }
    #bbProgress.indet i { left:-40%; right:auto; width:40%; transform:none; transition:none; animation:bbIndet 1.15s cubic-bezier(.45,0,.55,1) infinite; }
    @keyframes bbIndet { from { transform:translateX(0); } to { transform:translateX(350%); } }
    #bbProgress.done i { background:linear-gradient(90deg,#10b981,#34d399); }
    .bb-busy-show #bbProgress { opacity:1; }
    #bbBusyPill { position:absolute; left:50%; top:58px; z-index:10004; display:flex; align-items:center; gap:9px; padding:7px 14px 7px 11px; border-radius:999px;
      font:700 13px 'Rajdhani',sans-serif; color:#fff; letter-spacing:0.2px; white-space:nowrap; pointer-events:none;
      background:rgba(22,16,44,0.88); border:1px solid rgba(167,139,250,0.3); box-shadow:0 10px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
      opacity:0; transform:translate(-50%,-6px); transition:opacity 0.22s ease, transform 0.22s ease; }
    .bb-busy-show #bbBusyPill { opacity:1; transform:translate(-50%,0); }
    .bbp-dot { width:8px; height:8px; border-radius:50%; background:#22d3ee; box-shadow:0 0 0 0 rgba(34,211,238,0.6); animation:bbDot 1.4s ease-out infinite; }
    @keyframes bbDot { 0% { box-shadow:0 0 0 0 rgba(34,211,238,0.55); } 100% { box-shadow:0 0 0 8px rgba(34,211,238,0); } }
    .bbp-note { font-weight:600; font-size:12px; color:rgba(205,195,245,0.65); padding-left:9px; border-left:1px solid rgba(255,255,255,0.15); }
    .bb-busy #bbScroll, .bb-busy #bbRatesScroll, .bb-busy #bbUnScroll { pointer-events:none; }
    .bb-busy-show #bbScroll, .bb-busy-show #bbRatesScroll, .bb-busy-show #bbUnScroll { opacity:0.55; filter:saturate(0.7); transition:opacity 0.25s ease; cursor:progress; }
    .bb-busy #bbToolbar button, .bb-busy #bbToolbar input, .bb-busy .bb-sheet-tab, .bb-busy #bbFormulaBar { pointer-events:none; }
    .bb-busy-show #bbToolbar button:not([id$="SubmitBtn"]), .bb-busy-show #bbToolbar input, .bb-busy-show .bb-sheet-tab { opacity:0.45; }
    @media (prefers-reduced-motion: reduce) { #bbProgress.indet i { animation-duration:2.4s; } .bbp-dot { animation:none; } }
    @media (max-width:768px) {
      .sa-tu-rank { width:20px; font-size:11px; }
      .sa-tu-name { font-size:14px; }
      .sa-tu-pill { font-size:9.5px; padding:2px 7px; max-width:120px; }
      .sa-tu-stats { margin-left:28px; gap:6px; }
      .sa-tu-stats small { font-size:8.5px; }
      .sa-tu-stats b { font-size:13px; }
    }
    @media (min-width:769px) {
      .sa-tu-head, #compTopUsersList .sa-tu-row { display:grid; grid-template-columns:30px minmax(0,1fr) 120px 140px 130px; align-items:center; column-gap:16px; }
      .sa-tu-head { padding:8px 6px; font:700 10.5px 'Orbitron',monospace; letter-spacing:0.8px; text-transform:uppercase; color:rgba(205,195,245,0.6); border-bottom:1px solid rgba(255,255,255,0.08); }
      .sa-tu-head span:nth-child(n+3) { text-align:right; }
      #compTopUsersList .sa-tu-row { padding:11px 6px; }
      .sa-tu-top { display:contents; }
      .sa-tu-who { gap:6px 10px; }
      .sa-tu-pills { margin-left:0; }
      .sa-tu-stats { display:contents; }
      .sa-tu-stats small { display:none; }
      .sa-tu-stats span { text-align:right; align-items:flex-end; }
    }
    @media (max-width:900px) { .sa-cb-layout { display:none !important; } .analytics-charts-grid.sa-board { grid-template-columns:minmax(0,1fr); } }
    .analytics-charts-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
    .analytics-detail-item {
      padding:10px 12px; border-bottom:1px solid rgba(120,100,200,0.1);
      display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:13px;
    }
    .analytics-detail-item:last-child { border-bottom:none; }
    .ad-tag {
      font-size:10px; padding:2px 8px; border-radius:6px; font-weight:700;
      text-transform:uppercase; letter-spacing:0.3px; display:inline-block;
    }
    #analyticsDetailModal .analytics-detail-item {
      flex-wrap: wrap !important;
      overflow: visible !important;
    }
    #analyticsDetailModal .analytics-detail-item .ad-tag {
      display: inline-block !important;
      visibility: visible !important;
      max-width: none !important;
      overflow: visible !important;
      flex-shrink: 0 !important;
    }
    #gaDetailModal .analytics-detail-item {
      flex-wrap: wrap !important;
      overflow: visible !important;
    }
    #gaDetailModal .analytics-detail-item .ad-tag {
      display: inline-block !important;
      visibility: visible !important;
      max-width: none !important;
      overflow: visible !important;
      flex-shrink: 0 !important;
    }
    .mg-row { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.15s; }
    .mg-row:hover { background:rgba(167,139,250,0.08); }
    .mg-row:active { background:rgba(167,139,250,0.13); }
    .mg-info { flex:1; min-width:0; overflow:hidden; }
    .mg-badge-row { display:flex; align-items:center; gap:4px; flex-shrink:0; }
    .mg-badge-ord-inline { display:inline; }
    .mg-badge-col { display:none !important; }
    @media (max-width: 500px) {
      .mg-row { flex-wrap:wrap; align-items:flex-start; }
      .mg-icon { align-self:center; }
      .mg-badge-row { display:none !important; }
      .mg-badge-col { display:flex !important; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; }
      .mg-badge-col .mg-badge-row { display:flex !important; align-items:center; gap:4px; }
      .mg-arrow { align-self:center; }
    }
    .analytics-nodata {
      display:flex; align-items:center; justify-content:center; min-height:180px;
      color:var(--textMuted); font-size:13px; font-family:'Rajdhani',sans-serif; font-weight:600;
      flex-direction:column; gap:6px;
    }
    .analytics-nodata svg { opacity:0.4; }
    
    #bulkBillSheet { font-family:-apple-system,'Segoe UI',sans-serif; }
    #bbScrollWrap { scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.4) transparent; }
    #bbScrollWrap::-webkit-scrollbar { width:8px; height:8px; }
    #bbScrollWrap::-webkit-scrollbar-track { background:transparent; }
    #bbScrollWrap::-webkit-scrollbar-thumb { background:rgba(124,58,237,0.4); border-radius:4px; }
    #bbTableWrap table { border-collapse:collapse; }
    #bbTableWrap td[data-c]:hover { filter:brightness(1.18); }
    #bbTableWrap td[data-c="4"]:hover { filter:none; }
    .bb-ac-item:hover,.bb-ac-item.highlighted { background:rgba(124,58,237,0.28) !important; color:#e2e8f0 !important; }
    #bbAcDrop::-webkit-scrollbar { width:5px; }
    #bbAcDrop::-webkit-scrollbar-thumb { background:rgba(124,58,237,0.4); border-radius:3px; }
    #bbScroll { scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.3) transparent; }
    #bbScroll::-webkit-scrollbar { width:8px; height:8px; }
    #bbScroll::-webkit-scrollbar-thumb { background:rgba(124,58,237,0.3); border-radius:4px; }

    #bbSheetTabs .bb-sheet-tab { flex-shrink:0; white-space:nowrap; }
    #bbStatus { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:0 1 auto; }
    @media (max-width:640px) {
      #bbSheetTabs .bb-sheet-tab { padding:0 10px !important; gap:5px !important; }
      #bbStatus { padding:0 8px !important; }
    }
    @media (max-width:520px) {
      #bbSheetTabs .bb-sheet-tab { font-size:0 !important; gap:0 !important; padding:0 13px !important; }
      #bbSheetTabs .bb-sheet-tab svg { width:15px; height:15px; }
      #bbSelSumChip { margin-right:6px; padding:0 7px; }
    }

    #bbSelSumChip {
      flex-shrink:0; align-self:center; display:flex; align-items:center; gap:5px;
      height:24px; margin-right:8px; padding:0 9px; border-radius:7px; cursor:pointer;
      font:700 11px 'Rajdhani',sans-serif; color:#e2e8f0; white-space:nowrap;
      background:linear-gradient(135deg,rgba(255,255,255,0.07),rgba(124,58,237,0.10));
      border:1px solid rgba(167,139,250,0.28); box-shadow:inset 0 1px 0 rgba(255,255,255,0.07);
      transition:border-color 0.15s, background 0.15s;
    }
    #bbSelSumChip[hidden] { display:none; }
    #bbSelSumChip:hover, #bbSelSumChip[aria-expanded="true"] { border-color:rgba(167,139,250,0.55); background:linear-gradient(135deg,rgba(255,255,255,0.10),rgba(124,58,237,0.18)); }
    #bbSelSumChip:focus-visible { outline:2px solid #22d3ee; outline-offset:2px; }
    #bbSelSumChip svg { transition:transform 0.18s; opacity:0.7; }
    #bbSelSumChip[aria-expanded="true"] svg { transform:rotate(180deg); }
    #bbSelSumPop {
      position:absolute; right:8px; bottom:calc(100% + 8px); z-index:30;
      min-width:200px; max-width:calc(100vw - 16px); padding:8px 6px;
      background:linear-gradient(135deg,rgba(255,255,255,0.07) 0%,rgba(18,12,40,0.9) 40%,rgba(255,255,255,0.03) 100%);
      backdrop-filter:blur(24px) saturate(170%); -webkit-backdrop-filter:blur(24px) saturate(170%);
      border:1px solid rgba(255,255,255,0.14); border-radius:14px;
      box-shadow:0 18px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 40px rgba(124,58,237,0.12);
      transform-origin:bottom right; animation:bbSumIn 0.16s cubic-bezier(.22,1,.36,1);
    }
    #bbSelSumPop[hidden] { display:none; }
    @keyframes bbSumIn { from { opacity:0; transform:translateY(6px) scale(0.97); } to { opacity:1; transform:none; } }
    .bb-sum-row { display:flex; align-items:baseline; justify-content:space-between; gap:22px; padding:6px 10px; border-radius:8px; }
    .bb-sum-row + .bb-sum-row { border-top:1px solid rgba(255,255,255,0.06); }
    .bb-sum-row span { font:600 12px 'Rajdhani',sans-serif; color:#aaa2cc; }
    .bb-sum-row b { font:700 13px 'Rajdhani',sans-serif; color:#f7f5fc; font-variant-numeric:tabular-nums; white-space:nowrap; }
    .bb-sum-row.sum b { color:#34d399; }
    @media (max-width:520px) {
      #bbSelSumPop { right:6px; left:auto; width:min(300px, calc(100vw - 12px)); min-width:0; padding:6px; border-radius:12px; display:grid; grid-template-columns:1fr 1fr; gap:4px; }
      #bbSelSumPop[hidden] { display:none; }
      .bb-sum-row + .bb-sum-row { border-top:none; }
      .bb-sum-row { background:rgba(255,255,255,0.04); padding:5px 8px; gap:8px; }
      .bb-sum-row span { font-size:11px; }
      .bb-sum-row b { font-size:12px; }
      .bb-sum-row.sum { grid-column:1 / -1; }
    }
    @media (prefers-reduced-motion: reduce) { #bbSelSumPop { animation:none; } }
    @keyframes bbPillFlow { 0% { background-position:0% 50%; } 100% { background-position:150% 50%; } }
    #bbMinPill.bb-min-pill {
      background:linear-gradient(110deg,#7c3aed 0%,#06b6d4 33%,#10b981 50%,#06b6d4 67%,#7c3aed 100%);
      background-size:300% 100%;
      animation:bbPillFlow 20s steps(240) infinite;
      transition:transform 0.2s cubic-bezier(.22,1,.36,1), box-shadow 0.2s;
    }
    #bbMinPill.bb-min-pill:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(124,58,237,0.45), 0 0 0 1px rgba(255,255,255,0.18) inset; }
    #bbMinPill.bb-min-pill:focus-visible { outline:2px solid #22d3ee; outline-offset:3px; }
    @media (prefers-reduced-motion: reduce) { #bbMinPill.bb-min-pill { animation:none; background-position:0% 50%; } }
    #bbBody td[data-r], #bbRatesBody td[data-r], #bbUnBody td[data-r] { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
    .bb-sel-handle {
      position:absolute; left:0; top:0; z-index:6; display:none;
      width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%;
      background:#7c3aed; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,0.5);
      touch-action:none; cursor:grab; box-sizing:border-box;
    }
    .bb-sel-handle::after { content:""; position:absolute; inset:-16px; border-radius:50%; }
    @media (pointer: fine) { .bb-sel-handle { width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-width:1.5px; } }
    #bbRangeBox {
      position:absolute; left:0; top:0; z-index:1; display:none; pointer-events:none; box-sizing:border-box;
      border:2px solid #7c3aed; box-shadow:0 0 0 1px rgba(124,58,237,0.25);
    }
    .bb-sel-handle.dragging { pointer-events:none; transform-origin:center; box-shadow:0 0 0 6px rgba(167,139,250,0.3), 0 2px 8px rgba(0,0,0,0.5); }
    
    .fab-add {
      position:fixed; bottom:24px; right:24px; z-index:90;
      width:52px; height:52px; border-radius:14px; border:none;
      background:#0891b2;
      color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
      box-shadow:0 4px 14px rgba(0,0,0,0.35);
      transition:transform 0.2s, box-shadow 0.2s;
      -webkit-tap-highlight-color:transparent;
    }
    .fab-add:hover { transform:scale(1.06); background:#0e7490; }
    .sa-solid-add { background:#0891b2 !important; box-shadow:none !important; transition:background .15s; }
    .sa-solid-add:hover { background:#0e7490 !important; }
    #addBillItem.sa-solid-add, #fabAddGame { background:linear-gradient(135deg,#7c6cf6 0%,#5b7cf5 28%,#2f8fe8 62%,#0bb4d6 100%) !important; box-shadow:0 4px 20px rgba(59,130,246,0.35) !important; }
    #addBillItem.sa-solid-add:hover, #fabAddGame:hover { background:linear-gradient(135deg,#7c6cf6 0%,#5b7cf5 28%,#2f8fe8 62%,#0bb4d6 100%) !important; filter:brightness(1.12); }
    .fab-add:active { transform:scale(0.95); }
    
    .company-settings-gear {
      display:inline-flex; align-items:center; gap:6px;
      padding:6px 12px; border-radius:10px;
      cursor:pointer;  flex-shrink:0;
      font-family:'Orbitron',monospace; font-size:11px; font-weight:700;
      letter-spacing:0.5px; border:none;
    }
    .company-settings-gear:hover { filter:brightness(1.15); }
    .company-settings-gear:hover svg { transform:rotate(30deg); }
    .company-settings-gear svg { transition:transform 0.3s; stroke:#fff; }
    .company-settings-gear .gear-text { display:none; }
    .company-header-status { display:none; }
    
    .company-settings-gear.gear-active, .company-settings-gear.gear-inactive { background:rgba(124,58,237,0.1); border:1px solid rgba(124,58,237,0.25); color:#fff; }
    .company-settings-gear svg { stroke:var(--purpleLight) !important; }
    @media (min-width:601px) {
      .company-header-status { display:inline-flex; }
      .company-header-status.badge { padding-top:5px; padding-bottom:3px; }
      .company-settings-gear .gear-text { display:inline; }
      
      #liveBillPrintMobile { display:none!important; }
      #liveBillPrintDesktop { display:flex!important; }
      .inv-btn-label { display: inline !important; }
    }
    @media (max-width:767px) {
      .analytics-summary { grid-template-columns:repeat(2, 1fr); gap:10px; }
      .analytics-charts-grid { grid-template-columns:1fr; }
      .analytics-card .ac-value { font-size:clamp(13px, 3.5vw, 17px); }
      .analytics-date-range { flex-wrap:wrap; }
      .company-settings-gear { padding:6px; }
      .fab-add { width:46px; height:46px; bottom:18px; right:18px; border-radius:12px; }
      #globalAnalyticsModal .analytics-summary { grid-template-columns:repeat(2, 1fr); }
      #globalAnalyticsModal .analytics-charts-grid { grid-template-columns:1fr; }
      
      #dateDrillModal .modal { max-width: 95vw !important; padding: 14px 10px !important; }
      #dateDrillModal .modal-title { font-size: 12px !important; }
      #dateDrillModal .drill-stats { gap: 4px !important; padding: 6px 4px !important; }
      #dateDrillModal .drill-stats > div > div:first-child { font-size: 7px !important; }
      #dateDrillModal .drill-stats > div > div:last-child { font-size: 11px !important; }
      #dateDrillModal h4 { font-size: 9px !important; margin: 8px 0 3px !important; }
      #dateDrillModal .analytics-detail-item { 
        padding: 4px 6px !important; gap: 4px !important; font-size: 9px !important;
        flex-wrap: nowrap !important; overflow: hidden !important;
      }
      #dateDrillModal .analytics-detail-item > span:first-child {
        
        font-size: 10px !important; font-weight: 700 !important; min-width: 16px !important;
      }
      #dateDrillModal .analytics-detail-item > span:nth-child(2) {
        
        font-size: 9px !important; font-weight: 600 !important;
        white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
        flex: 1 !important; min-width: 0 !important;
      }
      #dateDrillModal .analytics-detail-item > span {
        
        font-size: 9px !important; font-weight: 600 !important;
        white-space: nowrap !important; min-width: fit-content !important;
      }
      #dateDrillModal .ad-tag { 
        font-size: 7px !important; padding: 1px 4px !important; 
        white-space: nowrap !important; max-width: 50px !important;
        overflow: hidden !important; text-overflow: ellipsis !important;
      }
      
      #dateDrillModal > div > div:last-child .analytics-detail-item {
        flex-wrap: wrap !important;
        padding: 6px !important;
        gap: 3px 6px !important;
        align-items: flex-start !important;
      }
      #dateDrillModal > div > div:last-child .analytics-detail-item > span:first-child {
        
        flex: 0 1 auto !important;
        max-width: 45% !important;
        font-size: 10px !important;
        font-weight: 600 !important;
      }
      #dateDrillModal > div > div:last-child .analytics-detail-item .ad-tag {
        
        flex: 0 0 auto !important;
        font-size: 7px !important;
        max-width: 55px !important;
      }
      #dateDrillModal > div > div:last-child .analytics-detail-item > span:not(:first-child):not(.ad-tag) {
        
        font-size: 9px !important;
        font-weight: 600 !important;
      }
      
      #gameDrillModal .modal, #userDrillModal .modal, #gaDetailModal .modal { 
        max-width: 95vw !important; padding: 14px 10px !important; 
      }
      #gameDrillModal .modal-title, #userDrillModal .modal-title, #gaDetailModal .modal-title { 
        font-size: 12px !important; 
      }
      #gameDrillModal h4, #userDrillModal h4, #gaDetailModal h4 { 
        font-size: 9px !important; margin: 8px 0 3px !important; 
      }
      #gameDrillModal .analytics-detail-item, 
      #userDrillModal .analytics-detail-item { 
        padding: 4px 6px !important; gap: 4px !important; font-size: 9px !important;
        flex-wrap: nowrap !important; overflow: hidden !important;
      }
      #gaDetailModal .analytics-detail-item,
      #analyticsDetailModal .analytics-detail-item { 
        padding: 6px 10px !important; gap: 4px 8px !important; font-size: 11px !important;
        flex-wrap: wrap !important; overflow: visible !important;
      }
      #gameDrillModal .analytics-detail-item > span:first-child {
        font-size: 10px !important; font-weight: 700 !important; min-width: 16px !important;
      }
      #gameDrillModal .analytics-detail-item > span:nth-child(2),
      #userDrillModal .analytics-detail-item > span:first-child {
        font-size: 9px !important; font-weight: 600 !important;
        white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
        flex: 1 !important; min-width: 0 !important;
      }
      #gameDrillModal .analytics-detail-item > span,
      #userDrillModal .analytics-detail-item > span {
        font-size: 9px !important; font-weight: 600 !important;
        white-space: nowrap !important; min-width: fit-content !important;
      }
      #gameDrillModal .ad-tag, #userDrillModal .ad-tag { 
        font-size: 7px !important; padding: 1px 4px !important; 
        white-space: nowrap !important; max-width: 50px !important;
        overflow: hidden !important; text-overflow: ellipsis !important;
      }
      
      #gameDrillModal > div > div:nth-child(2),
      #userDrillModal > div > div:nth-child(2) {
        gap: 4px !important; padding: 6px 4px !important;
      }
      #gameDrillModal > div > div:nth-child(2) > div > div:first-child,
      #userDrillModal > div > div:nth-child(2) > div > div:first-child {
        font-size: 7px !important;
      }
      #gameDrillModal > div > div:nth-child(2) > div > div:last-child,
      #userDrillModal > div > div:nth-child(2) > div > div:last-child {
        font-size: 11px !important;
      }
      
      @media (max-width: 380px) {
        #dateDrillModal .analytics-detail-item {
          grid-template-columns: auto 1fr;
          gap: 4px;
        }
        #dateDrillModal .analytics-detail-item > span:nth-child(2) {
          grid-column: 2 / 3;
        }
        #dateDrillModal .analytics-detail-item > span:nth-child(n+3) {
          grid-column: 2 / 3;
          justify-self: start;
          display: inline-block;
          margin-right: 6px;
        }
      }
    }
    
    .hidden { display: none !important; }

    .section-updating { opacity: 1; transition: none; }
    .bill-row, .company-card, .game-row, .emp-card {
      transition: background 0.15s ease;
    }
    
    #app.silent-refresh {
      pointer-events: none;
    }
    #app.silent-refresh > * {
      opacity: 1;
    }

    .sec-pin-wrap { position:relative; }
    .sec-pin-ph { position:absolute; left:14px; right:14px; top:50%; transform:translateY(-50%); overflow:hidden; white-space:nowrap; pointer-events:none;
      display:flex; justify-content:center; font-size:14px; font-weight:500; letter-spacing:0.2px; color:#9990b8; }
    .sec-pin-track { display:inline-flex; }
    .sec-pin-track > span { flex-shrink:0; }
    .sec-pin-ph.crawl { justify-content:flex-start; -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
    .sec-pin-ph.crawl .sec-pin-track > span { padding-right:48px; }
    @keyframes secPinCrawl { from { transform:translateX(0); } to { transform:translateX(-50%); } }
    .sec-pin-ph.crawl .sec-pin-track { animation:secPinCrawl 9s linear infinite; }
    .sec-pin-wrap input:not(:placeholder-shown) + .sec-pin-ph { display:none; }
    @media (prefers-reduced-motion: reduce) { .sec-pin-ph.crawl .sec-pin-track { animation:none; } }

    .ac-logo {
      display:inline-block; flex-shrink:0; width:20px; height:20px;
      background:linear-gradient(110deg,#c4b5fd 0%,#38d5f2 25%,#34d9a0 50%,#38d5f2 75%,#c4b5fd 100%);
      background-size:300% 100%; animation:bbPillFlow 12s steps(144) infinite;
      -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.53 5.08l-6.64-2.66a2.38 2.38 0 0 0-1.78 0L4.47 5.08A2.4 2.4 0 0 0 3 7.31v2.23a12.9 12.9 0 0 0 8.16 12 2.4 2.4 0 0 0 1.78 0 12.9 12.9 0 0 0 8.16-12V7.31a2.4 2.4 0 0 0-1.57-2.23m0 4.46a11.43 11.43 0 0 1-7.21 10.65 1 1 0 0 1-.68 0A11.43 11.43 0 0 1 4.45 9.54V7.31A.91.91 0 0 1 5 6.47l6.64-2.66a1 1 0 0 1 .68 0L19 6.47a.91.91 0 0 1 .57.84ZM14.75 9a2.75 2.75 0 1 0-3.5 2.63V17a.76.76 0 0 0 .75.75h2a.75.75 0 0 0 0-1.5h-1.25v-1.5H14a.75.75 0 0 0 0-1.5h-1.25v-1.62a2.75 2.75 0 0 0 2-2.63m-4 0A1.25 1.25 0 1 1 12 10.25 1.25 1.25 0 0 1 10.75 9'/></svg>") center/contain no-repeat;
              mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.53 5.08l-6.64-2.66a2.38 2.38 0 0 0-1.78 0L4.47 5.08A2.4 2.4 0 0 0 3 7.31v2.23a12.9 12.9 0 0 0 8.16 12 2.4 2.4 0 0 0 1.78 0 12.9 12.9 0 0 0 8.16-12V7.31a2.4 2.4 0 0 0-1.57-2.23m0 4.46a11.43 11.43 0 0 1-7.21 10.65 1 1 0 0 1-.68 0A11.43 11.43 0 0 1 4.45 9.54V7.31A.91.91 0 0 1 5 6.47l6.64-2.66a1 1 0 0 1 .68 0L19 6.47a.91.91 0 0 1 .57.84ZM14.75 9a2.75 2.75 0 1 0-3.5 2.63V17a.76.76 0 0 0 .75.75h2a.75.75 0 0 0 0-1.5h-1.25v-1.5H14a.75.75 0 0 0 0-1.5h-1.25v-1.62a2.75 2.75 0 0 0 2-2.63m-4 0A1.25 1.25 0 1 1 12 10.25 1.25 1.25 0 0 1 10.75 9'/></svg>") center/contain no-repeat;
    }
    .menu-btn .ac-logo.menu-btn-icon { width:22px !important; height:22px !important; margin:0 -2.5px; }
    .account-panel:not(.open) .ac-logo { animation-play-state:paused; }
    .ac-logo-xl { width:44px; height:44px; margin-bottom:10px; opacity:0.9; }
    @media (prefers-reduced-motion: reduce) { .ac-logo { animation:none; background-position:30% 50%; } }

    .ac-page { max-width:min(1600px, 100%); margin:0 auto; }
    .ac-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
    .ac-title { text-transform:uppercase; font-family:'Orbitron',monospace; font-weight:700; letter-spacing:1px; font-size:18px; line-height:1.25; margin:0; color:var(--purpleLight); white-space:nowrap; }
    .ac-info-btn {
      width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer;
      color:#22d3ee; background:rgba(6,182,212,0.08); border:1px solid rgba(6,182,212,0.3); transition:background 0.15s, transform 0.15s;
    }
    .ac-info-btn:hover { background:rgba(6,182,212,0.16); transform:scale(1.06); }
    .ac-reorder-btn { gap:6px; }
    .ac-reorder-btn.ac-done { color:#34d399; border-color:rgba(16,185,129,0.45); background:rgba(16,185,129,0.1); }
    .ac-add { gap:6px; white-space:nowrap; }
    .ac-search { margin-bottom:14px; }
    .ac-reorder-hint { font-size:13px; color:var(--textMuted); margin:-4px 0 12px; }
    .ac-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
    .ac-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:44px 12px; color:var(--textMuted); font-size:15px; line-height:1.6; }
    .ac-empty span:not(.ac-logo) { font-size:13px; }

    .ac-card {
      position:relative; display:flex; flex-direction:column; gap:4px; padding:14px 16px 12px; border-radius:16px; min-width:0; cursor:pointer;
      background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(18,12,40,0.6) 45%,rgba(124,58,237,0.07) 100%);
      border:1px solid rgba(167,139,250,0.18); box-shadow:0 8px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
      transition:border-color 0.15s, box-shadow 0.15s; -webkit-tap-highlight-color:transparent; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;
    }
    .ac-card:hover { border-color:rgba(6,182,212,0.45); box-shadow:0 10px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(6,182,212,0.12); }
    .ac-card:active { border-color:rgba(6,182,212,0.6); }
    .ac-card:focus-visible { outline:2px solid #22d3ee; outline-offset:2px; }
    .ac-card-top { display:flex; align-items:center; gap:8px; min-height:22px; }
    .ac-gname { flex:1; min-width:0; font:800 11px 'Orbitron',monospace; letter-spacing:0.8px; text-transform:uppercase; color:#c4b5fd; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ac-more { width:30px; height:26px; margin:-4px -8px -4px 0; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; color:var(--textMuted); background:transparent; border:none; cursor:pointer; }
    .ac-more:hover { color:#fff; background:rgba(255,255,255,0.08); }
    .ac-user { display:flex; align-items:center; gap:7px; min-width:0; }
    .ac-uname { font-weight:700; font-size:16px; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
    .ac-user .ac-lvl { flex-shrink:0; font-size:9.5px; padding:1px 7px; line-height:1.45; letter-spacing:0.45px; }
    .ac-code {
      font:800 30px 'Orbitron',monospace; letter-spacing:2px; font-variant-numeric:tabular-nums; white-space:nowrap; line-height:1.15; min-width:0;
      color:#f1edff; -webkit-text-fill-color:#f1edff; text-shadow:0 0 18px rgba(103,232,249,0.28), 0 1px 0 rgba(0,0,0,0.35);
    }
    @keyframes acFlip { 0% { opacity:0; transform:translateY(5px); filter:blur(2px); } 100% { opacity:1; transform:none; filter:none; } }
    .ac-code.ac-flip { animation:acFlip 0.32s cubic-bezier(.22,1,.36,1); }
    .ac-code span { color:var(--c); -webkit-text-fill-color:var(--c); transition:color 0.9s ease, -webkit-text-fill-color 0.9s ease; }
    .ac-low .ac-code span { color:var(--cl); -webkit-text-fill-color:var(--cl); }
    .ac-code .ac-gap { letter-spacing:0; }
    .ac-stale .ac-code { opacity:0.35; }
    .ac-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; }
    .ac-timer { position:relative; width:40px; height:40px; flex-shrink:0; }
    .ac-timer svg { width:100%; height:100%; transform:rotate(-90deg); display:block; }
    .ac-timer circle { fill:none; stroke:rgba(255,255,255,0.09); stroke-width:3; }
    .ac-timer .ac-ring { stroke:#06b6d4; stroke-linecap:round; stroke-dasharray:97.4; stroke-dashoffset:calc(97.4 * (1 - var(--p, 1))); transition:stroke 0.3s; }
    .ac-sec { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:800 13px 'Rajdhani',sans-serif; color:#a5f3fc; font-variant-numeric:tabular-nums; }
    .ac-low .ac-timer .ac-ring, .ac-timer.is-low .ac-ring { stroke:#f87171; }
    .ac-low .ac-sec, .ac-timer.is-low .ac-sec { color:#fca5a5; }
    .ac-copied {
      position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(0.7); opacity:0; pointer-events:none; z-index:3;
      display:inline-flex; align-items:center; gap:7px; padding:8px 16px 8px 12px; border-radius:999px;
      font:800 14px 'Rajdhani',sans-serif; letter-spacing:0.6px; text-transform:uppercase; color:#fff; white-space:nowrap;
      background:linear-gradient(135deg,#10b981 0%,#06b6d4 100%);
      box-shadow:0 10px 26px rgba(16,185,129,0.38), 0 0 0 1px rgba(255,255,255,0.18) inset, 0 1px 0 rgba(255,255,255,0.35) inset;
      transition:opacity 0.16s ease, transform 0.32s cubic-bezier(.34,1.56,.64,1);
    }
    .ac-copied svg { width:16px; height:16px; stroke-dasharray:24; stroke-dashoffset:24; }
    @keyframes acTick { to { stroke-dashoffset:0; } }
    @keyframes acCopyGlow { 0% { box-shadow:0 0 0 0 rgba(16,185,129,0.55), 0 8px 24px rgba(0,0,0,0.28); } 100% { box-shadow:0 0 0 14px rgba(16,185,129,0), 0 8px 24px rgba(0,0,0,0.28); } }
    .ac-card.ac-did-copy { border-color:rgba(16,185,129,0.6); animation:acCopyGlow 0.6s ease-out; }
    .ac-card.ac-did-copy .ac-copied { opacity:1; transform:translate(-50%,-50%) scale(1); }
    .ac-card.ac-did-copy .ac-copied svg { animation:acTick 0.32s 0.1s ease-out forwards; }
    .ac-card.ac-did-copy .ac-row, .ac-card.ac-did-copy .ac-user { opacity:0.18; filter:blur(1.5px); transition:opacity 0.15s, filter 0.15s; }

    .ga-page { max-width:min(1600px, 100%); margin:0 auto; }
    .ga-head { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
    .ga-back { flex-shrink:0; }
    .ga-head-txt { flex:1; min-width:0; display:flex; flex-direction:column; }
    .ga-title { text-transform:uppercase; margin:0; font-family:'Orbitron',monospace; font-weight:700; letter-spacing:1px; font-size:18px; line-height:1.25; color:var(--purpleLight); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-head-sub { font-size:13px; color:var(--textMuted); min-height:18px; }
    .ga-head-act { flex-shrink:0; display:flex; align-items:center; gap:8px; }
    .ga-head-act .arm-ext-btn { order:0; }
    @media (max-width:640px) { .ga-head-act .ga-reorder-btn { display:none !important; } }
    @media (max-width:520px) {
      #gaModal:has(.ga-pmodal) { padding-left:6px; padding-right:6px; }
      #gaModal .modal.ga-modal:has(.ga-pmodal) { width:100%; max-width:100%; margin-left:0; margin-right:0; padding-left:14px; padding-right:14px; }
    }
    .ga-add, .ga-reorder-btn { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 14px; white-space:nowrap; }
    .ga-reorder-btn.ac-done { color:#fff; background:rgba(6,182,212,0.18); border-color:rgba(6,182,212,0.45); }
    .ga-search { margin-bottom:14px; }
    .ga-page .ac-reorder-hint { margin-bottom:12px; }
    .ga-modal-wide { max-width:min(640px, calc(100% - 32px)); }
    .ga-pmodal .ga-hero { margin-bottom:10px; }
    .ga-inv-toggle { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px 10px 14px; margin:16px 0 10px; border-radius:14px; cursor:pointer; text-align:left; font:inherit; color:var(--textPrimary);
      background:rgba(24,16,50,0.55); border:1px solid rgba(167,139,250,0.16); transition:border-color 0.15s, background 0.15s; }
    .ga-inv-toggle:hover { border-color:rgba(255,255,255,0.2); }
    .ga-inv-toggle:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:2px; }
    .ga-inv-toggle > .ga-i { margin-left:auto; color:var(--textMuted); transition:transform 0.2s; }
    .ga-inv-toggle[aria-expanded="true"] > .ga-i { transform:rotate(90deg); }
    .ga-inv-ico { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border-radius:9px; background:rgba(167,139,250,0.12); flex-shrink:0; }
    .ga-inv-t { display:flex; flex-direction:column; gap:1px; min-width:0; }
    .ga-inv-t b { font:700 15px 'Rajdhani',sans-serif; }
    .ga-inv-t small { font-size:12px; color:var(--textMuted); }
    .ga-inv-host { margin-bottom:12px; }
    .ga-total-row { cursor:default; background:rgba(167,139,250,0.05); }
    .ga-total-row:hover, .ga-total-row:active { background:rgba(167,139,250,0.05); }
    .ga-total-l { font:700 15px 'Rajdhani',sans-serif; color:var(--textPrimary); }
    .ga-add-link-wrap { display:flex; justify-content:center; padding:22px 0 8px; }
    .ga-add-link { border:0; background:transparent; padding:6px 10px; cursor:pointer; font:600 14px 'Rajdhani',sans-serif; color:var(--purpleLight);
      text-decoration:underline; text-underline-offset:4px; text-decoration-color:rgba(167,139,250,0.5); border-radius:8px; }
    .ga-add-link:hover { color:#ede9fe; text-decoration-color:currentColor; }
    .ga-add-link:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:2px; }
    .ga-inv-host[hidden] { display:none; }
    .ga-inv-inline { position:static !important; inset:auto !important; display:block !important; padding:0 !important; background:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; z-index:auto !important; }
    .ga-inv-inline > .modal { max-width:none !important; width:100% !important; max-height:none !important; overflow:visible !important; animation:none !important; margin:0; }
    .ga-inv-inline #closeMgDetail { display:none; }
    .ga-i { flex-shrink:0; }
    .ga-icon-btn { width:40px; height:40px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; border-radius:10px;
      background:transparent; border:1px solid transparent; color:var(--textMuted); cursor:pointer; transition:background 0.15s, color 0.15s; }
    .ga-icon-btn:hover { color:var(--textPrimary); background:rgba(255,255,255,0.08); }
    .ga-icon-btn:focus-visible, .ga-pick:focus-visible, .ga-copy:focus-visible, .ga-row:focus-visible, .ga-go:focus-visible { outline:2px solid #22d3ee; outline-offset:2px; }

    .ga-notice { display:flex; align-items:center; gap:10px; padding:8px 8px 8px 14px; margin-bottom:10px; border-radius:14px; font-size:13.5px; line-height:1.45;
      color:var(--textPrimary); background:rgba(6,182,212,0.06); border:1px solid rgba(6,182,212,0.18); }
    .ga-notice > .ga-i { color:#22d3ee; }
    .ga-notice > span { flex:1; min-width:0; }
    .ga-notice .btn { flex-shrink:0; }

    .ga-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); grid-auto-rows:1fr; gap:10px; }
    .ga-card { gap:10px; height:100%; padding:12px 14px; box-sizing:border-box; }
    .ga-card-top { display:flex; align-items:center; gap:12px; min-width:0; }
    .ga-card-count { flex-shrink:0; display:flex; flex-direction:column; align-items:center; font-size:11px; color:var(--textMuted); line-height:1.1; }
    .ga-card-count b { font:800 20px/1 'Rajdhani',sans-serif; color:var(--textPrimary); font-variant-numeric:tabular-nums; }
    .ga-cside .sa-co-search { margin-bottom:12px; }
    .ga-cside .sa-co-search .search-icon { left:29px; }
    #gaSideSearch { padding-left:70px; }
    .ga-cside .ga-side-list { display:flex; flex-direction:column; gap:8px; }
    .ga-cside-reorder { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; font-size:12.5px; color:var(--textMuted); }
    .ga-cside-reorder[hidden] { display:none; }
    .page.ga-cl-split:not(.ga-cl-wide)[data-view="companies"] .ga-cside { display:none; }
    .page.ga-cl-split:not(.ga-cl-wide)[data-view="platforms"] .ga-cl-main > :not(:first-child):not(.ga-cside) { display:none; }
    .page.ga-cl-split:not(.ga-cl-wide)[data-view="platforms"] #addCompanyBtn { display:none; }
    #gaAddPlatBtn { display:none; }
    .page.ga-cl-split:not(.ga-cl-wide)[data-view="platforms"] #gaAddPlatBtn { display:inline-flex; }
    .ga-cl-switch { display:inline-flex; align-items:center; gap:4px; cursor:pointer; border-radius:8px; -webkit-tap-highlight-color:transparent; }
    .ga-cl-switch > span { line-height:1; display:inline-flex; align-items:center; }
    .ga-cl-switch > span + .ga-swap + span, .ga-cl-switch > span:nth-of-type(2) { margin-left:6px !important; }
    .ga-cl-switch .ga-swap { color:var(--purpleLight); opacity:0.8; flex-shrink:0; }
    .ga-cl-switch:focus-visible { outline:2px solid #a78bfa; outline-offset:3px; }
    @media (min-width:780px) {
      .page.ga-cl-split.ga-cl-wide { max-width:min(1600px, 100%); display:grid; grid-template-columns:minmax(250px,340px) minmax(0,1fr); gap:20px; align-items:start; }
      .ga-cl-wide .ga-cl-main { min-width:0; }
      .ga-cl-wide .ga-cside { position:sticky; top:76px; max-height:calc(100vh - 92px); display:flex; flex-direction:column; }
      .ga-cl-wide .ga-cside .ga-side-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; padding:2px 2px 28px; margin:-2px;
        -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent); mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent); }
      .ga-cl-wide .ga-cside .ga-side-list::-webkit-scrollbar { display:none; }
    }
    .company-item { background:linear-gradient(170deg,rgba(255,255,255,0.03) 0%,rgba(26,18,54,0.42) 40%,rgba(124,58,237,0.05) 100%) !important;
      backdrop-filter:blur(8px) saturate(130%); -webkit-backdrop-filter:blur(8px) saturate(130%);
      border:1px solid rgba(255,255,255,0.09) !important; box-shadow:0 4px 14px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05) !important; }
    .company-item:hover { border-color:rgba(255,255,255,0.18) !important; box-shadow:0 6px 18px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08) !important; }
    .ga-opts { width:min(340px, calc(100vw - 16px)); padding:6px; overflow:auto; background:rgba(44,36,84,0.98); border-color:rgba(167,139,250,0.35); box-shadow:0 16px 44px rgba(0,0,0,0.45);
      animation:gaOptsIn .16s ease-out; }
    .ga-opts.is-closing { animation:gaOptsOut .14s ease-in forwards; }
    .ga-opts .ga-opt + .ga-opt { border-top:1px solid rgba(167,139,250,0.14); border-radius:0 0 10px 10px; }
    @keyframes gaOptsIn { from { opacity:0; transform:scale(.96) translateY(-4px); } to { opacity:1; transform:none; } }
    @keyframes gaOptsOut { to { opacity:0; transform:scale(.96) translateY(-4px); } }
    @media (prefers-reduced-motion: reduce) { .ga-opts, .ga-opts.is-closing { animation:none; } }
    .ga-opt { display:flex; align-items:center; gap:14px; width:100%; padding:10px; border:0; border-radius:10px; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
    .ga-opt:hover { background:rgba(167,139,250,0.08); }
    .ga-opt:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:1px; }
    .ga-opt-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
    .ga-opt-seg { cursor:default; flex-wrap:wrap; }
    .ga-opt-seg:hover { background:transparent; }
    .ga-seg { display:inline-flex; flex-shrink:0; padding:3px; gap:2px; border-radius:9px; background:rgba(167,139,250,0.10); border:1px solid rgba(167,139,250,0.22); }
    .ga-seg button { border:0; background:transparent; color:var(--textSecondary); font:600 12px 'Rajdhani',sans-serif; letter-spacing:0.3px; padding:5px 10px; border-radius:6px; cursor:pointer; min-height:28px; }
    .ga-seg button[aria-checked="true"] { background:#7c3aed; color:#fff; }
    .ga-seg button:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:1px; }
    .ga-opt-t b { font-size:14px; color:var(--textPrimary); }
    .ga-opt-t small { font-size:12px; line-height:1.45; color:var(--textMuted); }
    .ga-sw { position:relative; flex-shrink:0; width:46px; height:26px; border-radius:13px; background:rgba(120,100,200,0.18); transition:background .2s; }
    .ga-sw i { position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,0.3); transition:left .2s; }
    .ga-sw.on { background:#7c3aed; }
    .ga-sw.on i { left:23px; }
    .ga-dd .dropdown-trigger { width:100%; font:inherit; font-size:14px; text-align:left; }
    .ga-dd .dropdown-trigger .badge { font-size:10px; }
    .ga-dd .dropdown-menu[hidden], .un-sub-menu[hidden] { display:none; }
    .ga-dd .dropdown-menu { background:linear-gradient(150deg,rgba(255,255,255,0.1),rgba(30,20,62,0.97) 40%); backdrop-filter:blur(36px) saturate(170%); -webkit-backdrop-filter:blur(36px) saturate(170%); box-shadow:0 16px 40px rgba(0,0,0,0.5); }
    .ga-pw-wrap { position:relative; }
    .ga-pw-wrap .input { padding-right:46px; }
    .ga-eye { position:absolute; right:4px; top:50%; transform:translateY(-50%); width:38px; height:36px; border:0; border-radius:8px; background:transparent; color:var(--textMuted); cursor:pointer; display:flex; align-items:center; justify-content:center; }
    .ga-eye:hover, .ga-eye.on { color:var(--purpleLight); }
    .ga-eye:focus-visible { outline:2px solid rgba(167,139,250,0.8); }
    .un-sub-wrap { width:100%; }
    .un-sub-menu { position:fixed; right:auto; z-index:3000; max-height:240px; background:linear-gradient(150deg,rgba(255,255,255,0.08),rgba(30,20,62,0.95) 40%); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
    .un-sub-menu .dropdown-item { gap:10px; }
    .un-sub-u { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .un-sub-meta { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; }
    .un-sub-meta small { font-size:11px; color:var(--textMuted); }
    .un-sub-meta .badge { font-size:9.5px; padding:1px 7px; }
    @media (max-width:520px) {
      .un-sub-menu .dropdown-item { flex-wrap:wrap; align-items:flex-start; row-gap:3px; padding-top:8px; padding-bottom:8px; }
      .un-sub-u { flex:1 1 100%; white-space:normal; overflow-wrap:anywhere; }
      .un-sub-meta { flex:1 1 100%; flex-wrap:wrap; flex-shrink:1; gap:6px; }
      .un-sub-meta small { white-space:normal; overflow-wrap:anywhere; }
    }
    .al-modal { max-width:min(560px, calc(100% - 32px)); }
    @media (max-width:520px) {
      #alModal, #alFreeModal, #ordModal, #alPendModal { padding-left:6px; padding-right:6px; }
      #alModal .al-modal, #alFreeModal .al-modal, #ordModal .al-modal, #alPendModal .al-modal { width:100%; max-width:100%; margin-left:0; margin-right:0; border-radius:18px; padding-left:14px; padding-right:14px; }
    }
    .al-grp { padding:12px 0; border-top:1px solid rgba(167,139,250,0.12); }
    .al-grp:first-child { border-top:0; padding-top:0; }
    .al-grp-h { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .al-grp-t { flex:1; min-width:0; display:flex; flex-direction:column; }
    .al-grp-t b { font:700 15px 'Rajdhani',sans-serif; color:var(--textPrimary); }
    .al-grp-t small { font-size:12px; color:var(--textMuted); }
    .al-st { display:flex; align-items:center; gap:6px; margin-top:3px; font-size:12.5px; line-height:1.35; color:#67e8f9; }
    .al-st .ga-i, .al-spin { flex-shrink:0; }
    .al-st.ok { color:#4ade80; } .al-st.bad { color:#fca5a5; } .al-st.wait { color:#c4b5fd; }
    .al-spin { width:12px; height:12px; border-radius:50%; border:2px solid rgba(103,232,249,0.3); border-top-color:#67e8f9; }
    @media (prefers-reduced-motion: no-preference) { .al-spin { animation:alSpin .8s linear infinite; } }
    @keyframes alSpin { to { transform:rotate(360deg); } }
    .al-bal { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; font-size:13px; color:var(--textPrimary); font-variant-numeric:tabular-nums; }
    .al-bal i { font-style:normal; font-size:11.5px; color:var(--textMuted); }
    .al-bal .al-arr { display:inline-flex; align-items:center; color:var(--textMuted); }
    .al-foot .al-close-btn { display:inline-flex; align-items:center; justify-content:center; text-align:center; background:linear-gradient(135deg,#7c3aed,#4f46e5); color:#fff; border:0; min-width:120px; box-shadow:0 6px 18px rgba(124,58,237,0.35); }
    .al-short { flex-basis:100%; display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:6px; padding:8px 10px; border-radius:10px; font-size:12.5px; color:#fde68a; background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.25); }
    .al-short span { flex:1 1 180px; min-width:0; }
    .al-short.al-paused { color:#fde68a; }
    .al-short .al-free-btn > span, .al-rf > span { flex:0 0 auto; }
    .al-order-btn { background:rgba(245,158,11,0.18) !important; border:1px solid rgba(251,191,36,0.5) !important; color:#fff !important; }
    .al-cancel-btn { background:transparent !important; border:1px solid rgba(167,139,250,0.35) !important; color:var(--textSecondary) !important; }
    .al-s { flex-wrap:wrap; justify-content:flex-end; max-width:100%; }
    .al-rf { display:inline-flex; align-items:center; justify-content:center; gap:5px; height:26px; padding:0 10px; border-radius:8px; border:1px solid rgba(34,211,238,0.45); background:transparent; color:#67e8f9; font:700 12px/1 'Rajdhani',sans-serif; letter-spacing:0.3px; white-space:nowrap; cursor:pointer; flex-shrink:0; }
    .al-rf > svg { display:block; flex-shrink:0; }
    .al-rf > span { display:block; line-height:1; padding-top:1px; }
    .al-rf.al-rf-hard { border-color:rgba(245,158,11,0.5); color:#fcd34d; }
    .al-rf.al-rf-lock { border-color:rgba(154,147,196,0.22); color:#7d77a3; cursor:default; }
    .al-grp-h > .al-rf { align-self:center; }
    .po-modal { max-width:min(420px, calc(100% - 32px)); }
    .po-info { display:flex; flex-direction:column; gap:6px; padding:12px 14px; border-radius:12px; background:rgba(124,58,237,0.07); border:1px solid rgba(167,139,250,0.18); margin-bottom:12px; }
    .po-r { display:flex; justify-content:space-between; gap:12px; font-size:13.5px; } .po-r span { color:var(--textMuted); } .po-r b { color:var(--textPrimary); text-align:right; overflow-wrap:anywhere; }
    .po-amt-h { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
    .po-tog { display:inline-flex; border:1px solid rgba(167,139,250,0.35); border-radius:8px; overflow:hidden; }
    .po-tog button { border:0; background:transparent; color:var(--textMuted); font:700 11.5px 'Rajdhani',sans-serif; letter-spacing:0.8px; text-transform:uppercase; padding:5px 12px; cursor:pointer; }
    .po-tog button.on { background:#7c3aed; color:#fff; }
    .po-conv { display:block; margin-top:6px; font-size:12.5px; color:#34d399; }
    .po-prev { margin:12px 0 0; padding:10px 12px; border-radius:10px; border:1px dashed rgba(167,139,250,0.35); font:500 13px/1.55 'Rajdhani',sans-serif; color:#c4b5fd; white-space:pre-wrap; overflow-wrap:anywhere; }
    .po-copy { width:100%; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
    @media (max-width:520px) { .al-rf { height:28px; padding:0 9px; } .al-short.al-paused > .al-cancel-btn { flex:1 1 100%; max-width:100%; } }
    .al-free-list { list-style:none; margin:8px 0 0; padding:0; max-height:min(40vh,260px); overflow:auto; display:flex; flex-direction:column; gap:6px; }
    .al-free-list label { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; border:1px solid rgba(167,139,250,0.2); cursor:pointer; font-weight:600; color:var(--textPrimary); }
    .al-free-list label:has(input:checked) { border-color:#a78bfa; background:rgba(124,58,237,0.14); }
    .al-free-amt { display:flex; flex-direction:column; gap:6px; margin-top:12px; font-size:12.5px; color:var(--textMuted); }
    .al-grp-t b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    @media (max-width:520px) {

      .al-foot, .alp-foot { justify-content:center; }
      .al-cap { flex-wrap:wrap; gap:6px; }
      .al-cap img { height:36px; max-width:100%; object-fit:contain; }
      .al-cap .input { flex:1 1 120px; height:44px; font-size:18px; letter-spacing:2px; text-align:center; }
      .al-cap .al-cap-go { min-width:46px; height:44px; }
      .al-foot .btn, .alp-foot .btn { flex:1; }
    }
    .al-cap { display:flex; align-items:center; gap:10px; margin:10px 0 4px; }
    .al-cap-pic { position:relative; display:inline-block; flex-shrink:0; padding:0; border:0; background:none; border-radius:8px; cursor:pointer; line-height:0; overflow:hidden; isolation:isolate; }
    .al-cap-pic img { display:block; border-radius:8px; transition:filter .2s, opacity .2s; }
    .al-cap-pic:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
    .al-cap-pic i { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; border-radius:inherit; opacity:0; pointer-events:none; transition:opacity .15s; }
    .al-cap-pic i::before { content:""; width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(255,255,255,0.28); border-top-color:#c4b5fd; background:rgba(20,12,45,0.55); box-shadow:0 0 0 4px rgba(20,12,45,0.55); animation:alCapSpin .7s linear infinite; }
    .al-cap-pic i b { display:none; }
    .al-cap-pic.loading { cursor:progress; }
    .al-cap-pic.loading img { filter:blur(2px) grayscale(.4); opacity:.55; }
    .al-cap-pic.loading i { opacity:1; }
    @keyframes alCapSpin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { .al-cap-pic i::before { animation-duration:1.6s; } }
    .al-cap[hidden] { display:none; }
    .al-cap img { height:40px; border-radius:8px; background:#fff; flex-shrink:0; }
    .al-cap .input { flex:1; min-width:0; letter-spacing:2px; font-weight:700; }
    .al-lines { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
    .al-lines > li { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; font-size:13.5px; }
    .al-u { font-weight:600; color:var(--textPrimary); min-width:0; overflow:hidden; text-overflow:ellipsis; }
    .al-amt { font:700 13.5px 'Rajdhani',sans-serif; color:var(--textMuted); }
    .al-amt.load { color:#4ade80; } .al-amt.redeem { color:#f9a8d4; }
    .al-s { margin-left:auto; display:inline-flex; align-items:center; gap:6px; }
    .al-note { flex-basis:100%; font-size:12px; color:var(--textMuted); }
    .al-chip { display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; font:700 11.5px 'Rajdhani',sans-serif; border:1px solid; }
    .al-muted { color:var(--textMuted); border-color:rgba(255,255,255,0.15); }
    .al-cyan { color:#67e8f9; border-color:rgba(34,211,238,0.45); background:rgba(6,182,212,0.12); }
    .al-green { color:#4ade80; border-color:rgba(74,222,128,0.45); background:rgba(16,185,129,0.12); }
    .al-red { color:#fca5a5; border-color:rgba(248,113,113,0.45); background:rgba(239,68,68,0.12); }
    .al-orange { color:#fdba74; border-color:rgba(251,146,60,0.45); background:rgba(249,115,22,0.12); }
    .al-skipped .al-amt { margin-left:auto; }
    .al-ord .al-grp-h { align-items:center; }
    .al-ord-tog { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border-radius:8px; background:transparent; border:1px solid rgba(167,139,250,0.25); color:var(--textMuted); cursor:pointer; flex-shrink:0; }
    .al-ord-tog .ga-i { transition:transform .2s; }
    .al-ord-tog[aria-expanded="true"] .ga-i { transform:rotate(180deg); }
    .al-ord .al-ord-list[hidden] { display:none; }
    .al-ord-copy { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; }
    .al-ord-list { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
    .al-ord-item { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:10px; background:rgba(124,58,237,0.07); border:1px solid rgba(167,139,250,0.16); }
    .al-ord-txt { flex:1; min-width:0; margin:0; font:500 13px/1.55 'Rajdhani',sans-serif; color:var(--textPrimary); white-space:pre-wrap; overflow-wrap:anywhere; }
    .al-ord-txt b { color:var(--textMuted); font-weight:600; }
    .al-ord-item .btn { flex-shrink:0; }
    .al-foot { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
    .al-foot .btn[hidden] { display:none; }
    .al-pill { position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:1500; display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; border:1px solid rgba(167,139,250,0.4);
      background:linear-gradient(135deg,rgba(40,24,90,0.96),rgba(12,40,70,0.96)); color:#ede9fe; font:700 13px 'Rajdhani',sans-serif; cursor:pointer; box-shadow:0 10px 28px rgba(0,0,0,0.35); }
    .al-pill-dot { width:8px; height:8px; border-radius:50%; background:#22d3ee; }
    .al-pill-dot.need { background:#fbbf24; }
    .al-pill-dot.ok { background:#4ade80; } .al-pill-dot.bad { background:#fb923c; }
    .al-now { display:block; font-size:11px; color:var(--textMuted); margin-top:3px; }
    .al-steps { display:flex; gap:2px; list-style:none; margin:5px 0 0; padding:0; }
    .al-steps li { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
    .al-steps li span { font-size:10px; line-height:1.2; color:var(--textMuted); opacity:0.7; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .al-steps li.done span { color:#86efac; opacity:1; } .al-steps li.bad span { color:#fca5a5; opacity:1; } .al-steps li.now span { color:var(--textPrimary); opacity:1; }
    .al-cap-go { flex-shrink:0; min-width:38px; height:38px; padding:0; justify-content:center; }
    .al-pill-x { margin-left:4px; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:15px; background:rgba(255,255,255,0.1); }
    .al-pill-x:hover { background:rgba(255,255,255,0.2); }
    #saRemind { position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:1499; display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; }
    #saRemind.up { bottom:64px; }
    #saRemind .al-pill { position:static; transform:none; pointer-events:auto; white-space:nowrap; }
    #saRemind .al-pill { max-width:calc(100vw - 24px); overflow:hidden; text-overflow:ellipsis; }
    #saRemind .al-pill.al-pill-long { white-space:normal; text-align:left; border-radius:16px; max-width:min(calc(100vw - 24px), 360px); line-height:1.35; }
    #saRemind .al-pill-long .al-pill-dot { align-self:flex-start; margin-top:5px; flex-shrink:0; }
    #saRemind .al-pill-long .al-pill-x { align-self:flex-start; flex-shrink:0; }
    .al-steps li i { display:block; height:2px; border-radius:1px; background:rgba(255,255,255,0.1); }
    .al-steps li.done i { background:#22c55e; }
    .al-steps li.now i { background:rgba(255,255,255,0.35); }
    .al-steps li.bad i { background:#ef4444; }
    @media (prefers-reduced-motion: no-preference) { .al-steps li.now i { animation:alPulse 1.2s ease-in-out infinite; } }
    @keyframes alPulse { 50% { opacity:0.4; } }
    #panelSubCard { transition:border-color .15s ease, transform .15s ease; }
    #panelSubCard:hover { border-color:rgba(52,211,153,0.4) !important; }
    #panelSubCard:focus-visible { outline:2px solid #34d399; outline-offset:2px; }
    .sp-modal-ov .ga-modal { max-width:min(460px, calc(100% - 20px)); }
    .sp-modal-ov .ga-modal-title { font-family:'Orbitron',monospace; font-weight:700; letter-spacing:1px; font-size:17px; }
    .sp-body { display:flex; flex-direction:column; gap:12px; }
    .sp-skel { height:44px; border-radius:10px; background:linear-gradient(90deg,rgba(255,255,255,0.04),rgba(255,255,255,0.08),rgba(255,255,255,0.04)); background-size:200% 100%; animation:spSk 1.2s linear infinite; }
    @keyframes spSk { to { background-position:-200% 0; } }
    @media (prefers-reduced-motion: reduce) { .sp-skel { animation:none; } }
    .sp-sum { border-radius:12px; background:rgba(124,58,237,0.07); border:1px solid rgba(167,139,250,0.16); padding:2px 14px; }
    .sp-kv { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:10px 0; font-size:14px; }
    .sp-kv + .sp-kv { border-top:1px solid rgba(167,139,250,0.12); }
    .sp-kv span { color:var(--textMuted); flex-shrink:0; }
    .sp-kv b { color:var(--textPrimary); font-weight:700; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
    .sp-money { color:#34d399 !important; }
    .sp-bad { color:#f87171 !important; }
    .sp-h { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#c4b5fd; margin:2px 2px -4px; }
    .sp-list { list-style:none; margin:0; padding:0; max-height:min(50vh, 420px); overflow:auto; }
    .sp-item { padding:10px 2px; }
    .sp-item + .sp-item { border-top:1px solid rgba(167,139,250,0.12); }
    .sp-line { display:flex; align-items:baseline; justify-content:space-between; gap:4px 12px; flex-wrap:wrap; font-size:14px; }
    .sp-line b { font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; }
    .sp-line > span:last-child { color:var(--textMuted); font-size:13px; text-align:right; margin-left:auto; }
    .sp-sub { margin-top:3px; font-size:13px; }
    .sp-sub > span:first-child { color:var(--textPrimary); }
    .sp-empty { padding:16px 12px; border-radius:12px; text-align:center; font-size:13px; color:var(--textMuted); background:rgba(255,255,255,0.03); }
    .al-pick-intro { margin:0 0 12px; font-size:13px; color:var(--textMuted); }
    .al-pick { border:1px solid rgba(167,139,250,0.18); border-radius:12px; padding:8px 10px 10px; margin:0 0 10px; }
    .al-pick legend { padding:0 6px; display:flex; flex-direction:column; }
    .al-pick legend small { font-size:12px; color:var(--textMuted); font-weight:400; }
    .al-pick-opt { display:flex; align-items:center; gap:8px; min-height:40px; padding:4px 6px; border-radius:8px; cursor:pointer; }
    .al-pick-opt:hover { background:rgba(255,255,255,0.04); }
    .al-pick-opt input, .al-free-list input, .acs-modes input[type=radio] { appearance:none; -webkit-appearance:none; flex-shrink:0; width:20px; height:20px; margin:0; border-radius:50%; border:2px solid rgba(167,139,250,0.45); background:rgba(20,16,44,0.5);
      display:grid; place-content:center; cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s; }
    .al-pick-opt input::after, .al-free-list input::after, .acs-modes input[type=radio]::after { content:""; width:8px; height:8px; border-radius:50%; background:#fff; transform:scale(0); transition:transform .15s; }
    .al-pick-opt input:checked, .al-free-list input:checked, .acs-modes input[type=radio]:checked { border-color:#a78bfa; background:linear-gradient(135deg,#7c3aed,#4f46e5); box-shadow:0 0 0 3px rgba(124,58,237,0.22); }
    .al-pick-opt input:checked::after, .al-free-list input:checked::after, .acs-modes input[type=radio]:checked::after { transform:scale(1); }
    .al-pick-opt input:focus-visible, .al-free-list input:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
    .al-free-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; border:0; color:#fff; font-weight:700;
      background:linear-gradient(135deg,#7c3aed,#4f46e5); box-shadow:0 4px 14px rgba(124,58,237,0.3); }
    .al-free-btn:hover { filter:brightness(1.1); }
    .al-short .al-free-btn > span { flex:none; min-width:0; }
    @media (max-width:600px) {
      .al-short { justify-content:center; }
      .al-short > span { flex:1 1 100%; text-align:center; }
      .al-short > .al-free-btn { flex:1 1 0; max-width:calc(50% - 4px); min-width:0; padding-left:8px; padding-right:8px; white-space:nowrap; }
      .al-short > .al-free-btn:only-of-type { max-width:100%; }
    }
    .al-free-btn > svg { width:16px; height:16px; flex-shrink:0; }
    .al-pick-u { font-weight:700; color:var(--textPrimary); }
    .al-pick-opt small { margin-left:auto; font-size:12px; color:var(--textMuted); }
    .al-retry { min-height:26px; padding:0 10px; font-size:12px; color:#67e8f9; }
    .alp { gap:4px; }
    .alp-top { display:flex; align-items:flex-start; gap:8px; }
    .alp-name { flex:1; min-width:0; display:flex; flex-direction:column; }
    .alp-name b { font-weight:700; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .alp-name small { font-size:12px; color:var(--textMuted); }
    .alp-mid { display:flex; align-items:center; justify-content:space-between; gap:8px; }
    .alp-dis { flex-shrink:0; min-height:30px; padding:0 10px; font-size:12px; color:#fca5a5; }
    .al-count { gap:10px; } .al-count .btn { min-height:28px; padding:0 10px; }
    .al-stop { flex-shrink:0; min-height:30px; padding:0 10px; color:#fca5a5; }
    .al-x { margin-left:2px; width:22px; height:22px; border-radius:6px; border:0; background:transparent; color:var(--textMuted); font-size:16px; line-height:1; cursor:pointer; }
    .al-x:hover { background:rgba(255,255,255,0.08); color:var(--textPrimary); }
    .al-lines > li { flex-direction:column; align-items:stretch; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,0.03); }
    .al-line-h { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .al-bal { font-size:12px; color:var(--textMuted); margin-top:4px; font-variant-numeric:tabular-nums; }
    @media (max-width:520px) { .al-steps li span { font-size:9px; } }
    .al-pend-bar { display:none; width:100%; align-items:center; gap:10px; margin:-4px 0 12px; padding:11px 14px; border-radius:14px; cursor:pointer; font:600 14px 'Rajdhani',sans-serif;
      color:#fde68a; background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.28); text-align:left; }
    .al-pend-bar span { flex:1; min-width:0; } .al-pend-bar b { font-size:15px; color:#fcd34d; }
    .al-pend-bar em { font-style:normal; font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:#fcd34d; }
    .al-pend-btn { display:inline-flex; align-items:center; gap:6px; min-height:38px; }
    .al-pend-btn b { min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:rgba(251,191,36,0.2); color:#fcd34d; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
    .ga-card::before { content:""; position:absolute; inset:0; border-radius:inherit; opacity:0; pointer-events:none; z-index:0;
      background:radial-gradient(180px circle at var(--mx,50%) var(--my,50%), rgba(167,139,250,0.14) 0%, rgba(167,139,250,0.04) 55%, transparent 75%); transition:opacity 0.25s ease; }
    .ga-flipping .ga-card::before { transition:none; opacity:0 !important; }
    .ga-flipping .ga-card { box-shadow:none !important; }
    .ga-card.gl-lit::before { opacity:1; }
    .ga-card > * { position:relative; z-index:1; }
    .ga-card { background:linear-gradient(140deg,rgba(255,255,255,0.075) 0%,rgba(30,20,62,0.5) 45%,rgba(124,58,237,0.08) 100%);
      backdrop-filter:blur(14px) saturate(150%); -webkit-backdrop-filter:blur(14px) saturate(150%);
      border:1px solid rgba(255,255,255,0.12); box-shadow:0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08); }
    .ga-card:hover { border-color:rgba(255,255,255,0.22); box-shadow:0 10px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12); }
    .ga-card:active { border-color:rgba(255,255,255,0.28); }
    .ga-card:focus { outline:none; }
    .ga-card:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:2px; }
    .ga-card.is-active { border-color:rgba(167,139,250,0.55); box-shadow:0 0 0 1px rgba(167,139,250,0.25), 0 8px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1); }
    .ga-card-meta { display:flex; align-items:center; gap:10px; min-width:0; }
    .ga-card-meta .ga-tile-meta { flex:1; min-width:0; flex-wrap:nowrap; overflow:hidden; }
    .ga-chip-ico { padding:0 6px; }
    .emp-solid { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0 !important; color:#fff !important; font-weight:700; border-radius:8px; flex-shrink:0; text-shadow:0 1px 1px rgba(0,0,0,0.2); }
    .emp-solid:hover { filter:brightness(1.1); }
    .emp-solid-purple { background:linear-gradient(135deg,#7c3aed,#6d28d9) !important; }
    .emp-solid-cyan { background:linear-gradient(135deg,#0891b2,#0e7490) !important; }
    .emp-solid-green { background:linear-gradient(135deg,#059669,#047857) !important; }
    .emp-solid-red { background:linear-gradient(135deg,#dc2626,#b91c1c) !important; }
    .emp-solid-darkred { background:linear-gradient(135deg,#991b1b,#7f1d1d) !important; }
    .emp-solid-drive { background:linear-gradient(135deg,#2563eb,#0891b2) !important; }
    .emp-card .emp-solid { font-size:12px; padding:7px 12px; }
    .emp-perm-lbl { display:none; line-height:1; }
    .emp-perm-btn { line-height:1 !important; }
    .emp-perm-btn svg { display:block; flex-shrink:0; }
    @media (min-width:700px) { .emp-perm-lbl { display:inline-block; } }
    #mgDownloadCSV, #mgCsvDownload, #cfExportBtn, .btn-csv {
      background:linear-gradient(135deg,#34d399,#10b981) !important; color:#fff !important; border:0 !important; font-weight:800 !important; text-shadow:0 1px 1px rgba(0,60,40,0.35); }
    #mgDownloadCSV svg, #mgCsvDownload svg, #cfExportBtn svg, .btn-csv svg { stroke:#fff !important; }
    #mgDownloadCSV:hover, #mgCsvDownload:hover, #cfExportBtn:hover, .btn-csv:hover { filter:brightness(1.07); }
    .ca-agg, .ga-agg { background:transparent; color:var(--textMuted); border:0 !important; font-weight:800 !important; letter-spacing:0.5px; min-width:30px; justify-content:center; transition:background .15s, color .15s; }
    .ca-agg:hover, .ga-agg:hover { color:var(--textPrimary); background:rgba(124,58,237,0.18); opacity:1; }
    .del-row { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:center; column-gap:14px; padding:10px 14px; border-radius:10px; background:rgba(18,14,34,0.8); border:1px solid rgba(120,100,200,0.15); }
    .del-pill { justify-self:start; max-width:100%; font-size:10px; line-height:1.25; padding:3px 8px; border-radius:5px; border:1px solid; font-weight:700; text-align:left; white-space:normal; overflow-wrap:break-word; word-break:normal; }
    .del-body { min-width:0; }
    @media (min-width:1024px) {
      .del-page { max-width:1240px; }
      .del-row { grid-template-columns:196px minmax(0,1fr); column-gap:18px; padding:12px 18px; }
      .del-pill { font-size:12px; padding:4px 10px; border-radius:6px; }
    }
    #histPrintInvoice, .bh-clear, .bh-sel-cancel { height:28px; box-sizing:border-box; }
    .bh-clear { display:inline-flex !important; align-items:center; justify-content:center; line-height:1 !important; padding:0 10px !important; margin-left:6px;
      color:#f87171 !important; font:600 12px 'Rajdhani',sans-serif !important; letter-spacing:0.3px; text-transform:none;
      border:1px solid rgba(248,113,113,0.18) !important; border-radius:7px; background:rgba(239,68,68,0.04) !important; transition:color .15s, background .15s, border-color .15s; }
    .bh-clear:hover, .bh-clear:focus-visible { color:#fff !important; background:#dc2626 !important; border-color:#dc2626 !important; }
    .bh-clear[hidden] { display:none !important; }
    html[data-theme="light"] .bh-clear:not(.bh-clear-sel) { color:#dc2626 !important; }
    html[data-theme="light"] .bh-clear:not(.bh-clear-sel):hover { color:#fff !important; background:#dc2626 !important; }
    .bh-clear.bh-clear-sel { margin-left:0; font-weight:700 !important; color:#fff !important; background:linear-gradient(135deg,#dc2626,#b91c1c) !important; border-color:transparent !important; }
    .bh-sel-cancel { display:inline-flex !important; align-items:center; font:700 11px 'Orbitron',monospace !important; letter-spacing:0.5px; border:1px solid var(--border) !important; border-radius:7px; padding:0 10px !important; }
    .bh-sel-cancel[hidden] { display:none !important; }
    .bh-foot { display:flex; justify-content:flex-start; align-items:center; gap:8px; margin-top:10px; padding-top:10px; border-top:1px solid rgba(120,100,200,0.14); }
    .bh-foot .bh-clear { margin-left:0; height:24px !important; padding:0 9px !important; font-size:11px !important; color:var(--textMuted) !important; border-color:var(--border) !important; background:transparent !important; }
    .bh-foot .bh-clear:hover, .bh-foot .bh-clear:focus-visible { color:#fff !important; background:#dc2626 !important; border-color:#dc2626 !important; }
    #cancelAddEmp, #secCancel { border:1px solid rgba(167,139,250,0.4) !important; }
    #cancelAddEmp:hover, #secCancel:hover { border-color:rgba(167,139,250,0.7) !important; background:rgba(124,58,237,0.1); }
    html[data-theme="light"] #cancelAddEmp, html[data-theme="light"] #secCancel { border-color:rgba(109,40,217,0.35) !important; }
    .cf-tab-btn { padding:9px 4px !important; border-radius:9px !important; font:700 11px 'Rajdhani',sans-serif !important; white-space:nowrap; display:flex !important; align-items:center; justify-content:center; gap:4px; width:100%;
      background:rgba(15,12,28,0.5); color:var(--textMuted); border:1px solid rgba(120,100,200,0.15); }
    .cf-tab-btn.on { background:rgba(52,211,153,0.2); color:#34d399; border-color:rgba(52,211,153,0.3); }
    html[data-theme="light"] .cf-tab-btn { background:#fff; color:#5a5180; border-color:rgba(109,40,217,0.16); }
    html[data-theme="light"] .cf-tab-btn.on { background:#d1fae5; color:#065f46; border-color:rgba(4,120,87,0.4); }
    .cf-rdm-btn { display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 10px 0 7px; border-radius:8px; cursor:pointer; white-space:nowrap;
      font:700 12px 'Rajdhani',sans-serif; letter-spacing:0.5px; color:var(--textSecondary); background:rgba(124,58,237,0.08); border:1px solid rgba(167,139,250,0.3); transition:background .15s, border-color .15s, color .15s; }
    .cf-rdm-btn:hover { border-color:rgba(167,139,250,0.55); color:var(--textPrimary); }
    .cf-rdm-btn.on { color:#fff; background:rgba(124,58,237,0.2); border-color:rgba(167,139,250,0.6); }
    .cf-rdm-box { width:16px; height:16px; border-radius:4px; flex-shrink:0; box-sizing:border-box; border:2px solid rgba(167,139,250,0.55); background:rgba(20,16,44,0.5); display:grid; place-content:center; transition:background .15s, border-color .15s; }
    .cf-rdm-box::after { content:""; width:4px; height:7px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg) translate(-1px,-1px) scale(0); transition:transform .15s; }
    .cf-rdm-btn.on .cf-rdm-box { border-color:#a78bfa; background:linear-gradient(135deg,#7c3aed,#4f46e5); box-shadow:0 0 0 3px rgba(124,58,237,0.2); }
    .cf-rdm-btn.on .cf-rdm-box::after { transform:rotate(45deg) translate(-1px,-1px) scale(1); }
    html[data-theme="light"] .cf-rdm-btn { color:#3d3363; background:#f5f3ff; border-color:rgba(109,40,217,0.3); }
    html[data-theme="light"] .cf-rdm-btn.on { color:#4c1d95; background:#ede9fe; border-color:#7c3aed; }
    html[data-theme="light"] .cf-rdm-box { background:#fff; border-color:rgba(109,40,217,0.45); }
    html[data-theme="light"] .cf-rdm-btn.on .cf-rdm-box { background:linear-gradient(135deg,#7c3aed,#4f46e5); border-color:#6d28d9; }
    .emp-ack { margin:2px 0 0; font-size:11.5px; line-height:1.45; color:var(--textMuted); }
    @media (max-width:640px) {
      #empPermModal { padding:8px; }
      #empPermModal > .modal { max-width:100% !important; padding:18px 12px; }
    }
    @media (max-width:480px) {
      .bh-clear.bh-clear-sel, .bh-sel-cancel { height:26px !important; padding:0 7px !important; font-size:10px !important; letter-spacing:0 !important; }
    }
    .bh-check { flex-shrink:0; width:20px; height:20px; border-radius:6px; border:2px solid rgba(167,139,250,0.55); background:rgba(20,16,44,0.5); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background .15s, border-color .15s; }
    .bh-check::after { content:""; width:5px; height:9px; border:solid #fff; border-width:0 2.5px 2.5px 0; transform:rotate(45deg) translate(-1px,-1px) scale(0); transition:transform .15s; }
    .bh-check[aria-checked="true"] { background:linear-gradient(135deg,#7c3aed,#4f46e5); border-color:#a78bfa; }
    .bh-check[aria-checked="true"]::after { transform:rotate(45deg) translate(-1px,-1px) scale(1); }
    .bh-selecting .bill-history-item { user-select:none; -webkit-user-select:none; }
    .bill-hist-wrap.bh-picked > .bill-history-item { background:rgba(124,58,237,0.12); }
    .bh-more { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; margin:6px 0 2px; font-size:12px; color:#c4b5fd; border:1px dashed rgba(167,139,250,0.35) !important; border-radius:8px; }
    @media (max-width:767px) {
      #billDateIcon.mobile-date-icon { display:block !important; box-sizing:border-box; width:25px; height:25px; padding:3px; border:1px solid rgba(167,139,250,0.35); border-radius:6px; background:rgba(124,58,237,0.1); }
      .desktop-date-input { display:none !important; }
      #billDatePicker { left:0 !important; top:50% !important; transform:translateY(-50%); width:25px !important; height:25px !important; margin:0; padding:0; border:0; z-index:2; font-size:16px; cursor:pointer; -webkit-appearance:none; appearance:none; background:transparent; color:transparent; }
    }
    @media (min-width:768px) {
      #billDateVisibleInput.desktop-date-input { display:inline-flex !important; align-items:center; min-height:0 !important; height:25px !important; line-height:23px !important; padding-top:0 !important; padding-bottom:0 !important; box-sizing:border-box; }
      #billDateVisibleInput.desktop-date-input { border-radius:6px !important; }
      #billDateVisibleInput.desktop-date-input { min-width:0 !important; width:auto; padding:0 5px 0 8px !important; }
      #billDateVisibleInput::-webkit-datetime-edit-fields-wrapper { padding:0; }
      #billDateVisibleInput::-webkit-calendar-picker-indicator { margin:0 0 0 1px; padding:0; width:13px; height:13px; opacity:1; cursor:pointer; color:transparent; filter:none !important;
        background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important; }
      html[data-theme="light"] #billDateVisibleInput::-webkit-calendar-picker-indicator { background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important; }
      #billDateVisibleInput::-webkit-datetime-edit { padding:0; line-height:23px; }
      .desktop-date-input { display:inline-block !important; }
      .mobile-date-icon, #billDateIcon.mobile-date-icon { display:none !important; }
    }
    .ga-inv-row { position:relative; margin:16px 0 10px; }
    .ga-inv-row .ga-inv-toggle { margin:0; }
    .ga-inv-row.ga-mm .ga-inv-t { max-width:calc(100% - 190px); }
    .ga-inv-acts { position:absolute; right:42px; top:50%; transform:translateY(-50%); display:flex; gap:6px; }
    .ga-inv-row:not(.ga-mm) .ga-inv-acts { display:none; }
    .ga-inv-row .ga-inv-t { flex:1 1 auto; }
    .ga-inv-sub { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; }
    .ga-inv-sub .ga-inv-warn { margin:0; line-height:1; }
    .ga-inv-warn .ga-i { display:block; flex-shrink:0; }
    .ga-step { display:inline-flex; align-items:center; gap:0; border:1px solid rgba(167,139,250,0.35); border-radius:10px; overflow:hidden; flex-shrink:0; }
    .ga-step button { width:34px; height:32px; border:0; background:transparent; color:var(--textPrimary); font:700 18px/1 'Rajdhani',sans-serif; cursor:pointer; }
    .ga-step button:hover { background:rgba(124,58,237,0.15); }
    .ga-step b { min-width:30px; text-align:center; font:700 15px 'Rajdhani',sans-serif; color:var(--textPrimary); }
    .ga-chk1 { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0; flex-shrink:0; border:0; border-radius:10px; color:#fff; background:var(--green); box-shadow:0 2px 10px rgba(16,185,129,0.22); cursor:pointer; }
    .ga-chk1 .ga-bal-ic, .ga-chk-btn .ga-bal-ic { display:block; flex-shrink:0; color:#fff; }
    .ga-row-act .ga-chk1 + .ga-login { margin-left:0; }
    .ga-chk-btn { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 14px; border-radius:10px; font:700 13px 'Rajdhani',sans-serif; letter-spacing:.3px; white-space:nowrap; cursor:pointer;
      color:#fff; border:0; background:var(--green); box-shadow:0 2px 10px rgba(16,185,129,0.22); }
    .ga-chk-btn:hover { filter:brightness(1.1); }
    .ga-chk-btn.ga-tp-btn { background:linear-gradient(135deg,#7c3aed,#6d28d9) !important; color:#fff !important; border-color:transparent !important; }
    .modal.ga-modal.ga-set-modal { width:min(600px, calc(100% - 24px)); max-width:600px; }
    .ga-opts-modal .ga-opt-seg .ga-opt-t { flex:1 1 220px; }
    .ga-opts-modal .ga-opt-seg .ga-seg { margin-left:auto; }
    .ga-opts-modal { display:flex; flex-direction:column; gap:2px; }
    .ga-opts-modal .ga-opt { padding:12px; border-radius:12px; }
    .ga-opts-modal .ga-opt + .ga-opt { border-top:0; border-radius:12px; }
    .ga-opts-modal .ga-opt-t b { color:var(--textPrimary); font-size:15px; }
    .ga-opts-modal .ga-opt-t small { color:var(--textSecondary); font-size:13px; line-height:1.45; }
    .ga-opt-h { margin:12px 12px 4px; font:700 11.5px 'Rajdhani',sans-serif; letter-spacing:.7px; text-transform:uppercase; color:var(--purpleLight); }
    .ga-opt-h:first-child { margin-top:2px; }
    .ga-opt-card { border:1px solid rgba(167,139,250,0.18); border-radius:14px; background:rgba(124,58,237,0.06); padding:2px; display:flex; flex-direction:column; }
    .ga-opt-card .ga-opt + .ga-opt { border-top:1px solid rgba(167,139,250,0.12); border-radius:0 0 12px 12px; }
    .modal.ga-modal.ga-modal-wide { width:min(820px, calc(100% - 24px)); max-width:820px; }
    @media (min-width:760px) { .ga-modal-wide .ac-info-list { display:grid; grid-template-columns:1fr 1fr; column-gap:22px; } }
    html[data-theme="light"] .ga-opt-card { background:#faf8ff; border-color:#e4defa; }
    .ga-total-row .ga-row-act { gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .al-pend-btn[hidden], .al-pend-bar[hidden] { display:none !important; }
    @media (max-width:640px) {
      .ga-total-row .ga-row-main { flex:1 1 auto; min-width:0; }
      .ga-total-row .ga-row-bal { margin-right:0; align-items:flex-end; }
      .ga-total-row .ga-row-act { flex:1 1 100%; margin-left:0; display:grid; grid-template-columns:1fr; gap:8px; }
      .ga-total-row .ga-row-act.ga-two { grid-template-columns:1fr 1fr; }
      .ga-total-row .ga-row-act .ga-chk-btn { width:100%; justify-content:center; padding:0 10px; }
      .ga-inv-acts { margin-right:11px; margin-left:11px; }
    }
    .tp-modal { max-width:500px; }
    .be-row { position:relative; }
    .be-row .be-del { position:absolute; top:3px; right:3px; z-index:2; width:22px; height:22px; display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:6px; background:transparent; color:#f87171; cursor:pointer; }
    .be-row .be-del::after { content:""; position:absolute; inset:-8px; }
    .be-row .be-del:hover, .be-row .be-del:focus-visible { background:rgba(239,68,68,0.16); color:#fca5a5; }
    .be-row .be-del { top:-9px; right:-9px; width:22px; height:22px; border-radius:50%; background:#1a1530; border:1px solid rgba(239,68,68,0.45); }
    html[data-theme="light"] .be-row .be-del { background:#fff; }
    .be-removed { margin:8px 0 2px; padding:8px 10px; border-radius:8px; font-size:12.5px; line-height:1.4; color:#fcd34d; background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.28); }
    html[data-theme="light"] .be-removed { color:#92400e; background:#fef3c7; border-color:#fcd34d; }
    html[data-theme="light"] .be-row .be-del { color:#dc2626; }
    body.rm-on { background:#000 !important; overflow:hidden; }
    body.rm-on > *:not(#rmScreen) { display:none !important; }
    body.rm-on::before, body.rm-on::after { display:none !important; }
    #rmScreen { position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center; padding:20px; background:#000; font-family:'Rajdhani',sans-serif; color:#ece8fb; }
    .rm-card { width:360px; max-width:100%; padding:26px 26px 22px; border-radius:16px; background:#0d0b16; border:1px solid #26213f; }
    .rm-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
    .rm-brand { display:flex; align-items:center; gap:8px; font:700 11.5px 'Orbitron',monospace; letter-spacing:1.8px; color:#8a84b0; }
    .rm-brand img { width:22px; height:22px; border-radius:5px; }
    .rm-k1 { font:600 11px 'Orbitron',monospace; letter-spacing:3px; color:#9d97bf; }
    .rm-k2 { font:700 34px/1 'Orbitron',monospace; letter-spacing:3px; margin:8px 0 10px; color:#ece8fb; }
    .rm-k3 { display:flex; align-items:center; gap:8px; font:600 10.5px 'Orbitron',monospace; letter-spacing:1.8px; color:#34d399; }
    .rm-k3 i { width:6px; height:6px; border-radius:50%; background:currentColor; }
    .rm-k3.rm-bad { color:#f87171; }
    .rm-now { margin-top:20px; font-size:15px; line-height:1.5; color:#9d97bf; min-height:46px; }
    .rm-now b { color:#ece8fb; font-weight:600; }
    .rm-chev { display:inline-block; vertical-align:-2px; margin:0 3px; color:#a78bfa; }
    .rm-aw { margin:0 0 16px; padding:12px; border-radius:12px; border:1px solid rgba(52,211,153,.3); background:rgba(16,185,129,.07); text-align:left; }
.rm-aw.off { border-color:rgba(251,191,36,.45); background:rgba(251,191,36,.08); }
.rm-aw-t { display:flex; align-items:center; gap:10px; width:100%; padding:0; background:none; border:0; cursor:pointer; color:var(--textPrimary); font:700 14.5px 'Rajdhani',sans-serif; text-align:left; }
.rm-aw-t > svg { flex-shrink:0; color:#34d399; }
.rm-aw.off .rm-aw-t > svg { color:#fbbf24; }
.rm-aw-t > span { flex:1; }
.rm-aw-sw { position:relative; width:40px; height:22px; flex-shrink:0; border-radius:999px; background:#3a3558; transition:background .2s; }
.rm-aw-sw::after { content:""; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s; }
.rm-aw-t[aria-checked="true"] .rm-aw-sw { background:#10b981; }
.rm-aw-t[aria-checked="true"] .rm-aw-sw::after { transform:translateX(18px); }
.rm-aw p { margin:8px 0 0; font:500 13px/1.45 'Rajdhani',sans-serif; color:var(--textMuted); }
.rm-aw.off p { color:#fcd34d; }
.rm-aw p.rm-aw-x { color:#fca5a5; }
.rm-aw div.rm-aw-t { cursor:default; }
.company-settings-gear.cc-btn:hover svg { transform:none; }
.cc-modal { max-width:460px; }
.cc-co { font:700 12px 'Orbitron',monospace; letter-spacing:1px; color:var(--textMuted); margin:-4px 0 14px; }
.cc-namerow { display:flex; gap:8px; margin-bottom:14px; }
.cc-namerow .input { flex:1; min-width:0; }
.cc-namev { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; margin-bottom:12px; border-radius:10px; background:rgba(124,58,237,0.06); border:1px solid rgba(167,139,250,0.22); }
.cc-namev small, .cc-tx small { display:block; font-size:11.5px; color:var(--textMuted); }
.cc-namev b { font-size:15px; color:var(--textPrimary); }
.cc-list { list-style:none; margin:0 0 12px; padding:0; display:grid; gap:8px; }
.cc-list li { display:flex; align-items:center; gap:6px; padding:6px 6px 6px 10px; border-radius:12px; background:rgba(255,255,255,0.03); border:1px solid rgba(167,139,250,0.16); }
.cc-main { flex:1; min-width:0; display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; padding:4px 0; }
a.cc-main:hover b { text-decoration:underline; text-underline-offset:3px; }
.cc-ic { display:flex; flex-shrink:0; width:26px; justify-content:center; }
.cc-tx { min-width:0; }
.cc-tx b { display:block; font-size:14.5px; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-act { flex-shrink:0; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:9px; border:1px solid rgba(167,139,250,0.3); background:transparent; color:var(--purpleLight); cursor:pointer; }
.cc-act:hover { background:rgba(124,58,237,0.12); }
.cc-act.cc-del { color:#f87171; border-color:rgba(248,113,113,0.3); }
.cc-plats { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:12px; }
.cc-plats button { display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; border-radius:10px; background:rgba(255,255,255,0.03); border:1px solid rgba(167,139,250,0.18); color:var(--textSecondary); font:600 12px 'Rajdhani',sans-serif; cursor:pointer; }
.cc-plats button[aria-checked="true"] { border-color:var(--purple); background:rgba(124,58,237,0.14); color:var(--textPrimary); box-shadow:0 0 0 2px rgba(124,58,237,0.18); }
.cc-types { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.cc-types button { padding:6px 12px; border-radius:999px; background:transparent; border:1px solid rgba(167,139,250,0.3); color:var(--textSecondary); font:600 13px 'Rajdhani',sans-serif; cursor:pointer; }
.cc-types button[aria-checked="true"] { background:rgba(124,58,237,0.18); border-color:var(--purple); color:var(--textPrimary); }
.cc-err { min-height:18px; font-size:13px; color:#f87171; margin-top:4px; }
.cc-empty { font-size:13.5px; color:var(--textMuted); margin:0 0 12px; }
.cc-new { width:100%; justify-content:center; }
.cc-add { padding-top:4px; }
@media (max-width:420px) { .cc-plats { grid-template-columns:repeat(4,1fr); } .cc-plats button span { font-size:10.5px; } }
.ga-view-subs { background:none; border:0; padding:0; margin-left:4px; color:#22d3ee; font:inherit; font-weight:600; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.ga-view-subs:hover { color:#67e8f9; }
html[data-theme="light"] .ga-view-subs { color:#0e7490; }
.ga-subs-modal { max-width:440px; }
.ga-subs-who { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:-4px 0 10px; }
.ga-subs-who b { font-size:15px; color:var(--textPrimary); }
.ga-subs-who > span:not(.badge) { font-size:13px; font-weight:600; color:var(--textSecondary); }
html[data-theme="light"] .ga-subs-who > span:not(.badge) { color:#3b3266; }
.hp-lbl-m { display:none; }
@media (max-width:600px) { .hp-lbl-d { display:none; } .hp-lbl-m { display:inline; } }
.ga-subs-note { font-size:12.5px; line-height:1.5; color:var(--textMuted); margin:0 0 12px; padding:9px 11px; border-radius:10px; background:rgba(6,182,212,0.06); border:1px solid rgba(6,182,212,0.2); }
.ga-subs-q { width:100%; margin-bottom:8px; }
.ga-subs-count { font-size:12px; color:var(--textMuted); margin-bottom:6px; }
.ga-subs-list { list-style:none; margin:0; padding:0; max-height:min(52vh,420px); overflow-y:auto; border-radius:10px; border:1px solid rgba(167,139,250,0.16); }
.ga-subs-list li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; font-size:14px; color:var(--textPrimary); border-bottom:1px solid rgba(167,139,250,0.08); }
.ga-subs-list li:last-child { border-bottom:0; }
.ga-subs-list li.ga-subs-none { color:var(--textMuted); justify-content:center; }
.ga-subs-copy { flex-shrink:0; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid rgba(167,139,250,0.25); background:transparent; color:var(--purpleLight); cursor:pointer; }
.mg-6m { font-size:10px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--textMuted); opacity:.85; margin-left:4px; }
.bb-fee-cell { padding:3px 5px; height:26px; display:flex; flex-wrap:wrap; align-items:center; align-content:flex-start; column-gap:6px; overflow:hidden; font-size:12px; white-space:nowrap; }
.bb-fee-cell > span { flex:0 0 auto; height:20px; display:flex; align-items:center; }
.bb-fee { flex:0 0 auto; margin-left:auto; align-self:center; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:15px; height:15px; border-radius:4px; border:2px solid rgba(251,191,36,0.75); color:#fbbf24; font-style:normal; }
.bb-fee svg { display:block; }
html[data-theme="light"] .bb-fee { color:#b45309; border-color:rgba(180,83,9,0.55); }
.rm-cx { display:grid; grid-template-rows:1fr; transition:grid-template-rows .7s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
.rm-cx > div { overflow:hidden; min-height:0; }
.rm-top-r { display:flex; align-items:center; gap:10px; transition:opacity .6s ease; }
.rm-fs { display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; background:none; border:1px solid #26213f; border-radius:8px; color:#9d97bf; cursor:pointer; }
.rm-fs:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
.rm-cxr { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .7s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
.rm-cxr > div { overflow:hidden; min-height:0; }
.rm-aod { font:600 10px 'Orbitron',monospace; letter-spacing:1.6px; color:var(--rmdim,#1c1b20); margin:0 0 14px; }
#rmScreen.rm-dim .rm-cxr { grid-template-rows:1fr; opacity:1; }
#rmScreen.rm-dim .rm-top { margin-bottom:12px; }
#rmScreen.rm-dim .rm-top-r { opacity:0; pointer-events:none; }
#rmScreen.rm-dim .rm-brand { color:var(--rmdim,#1c1b20); }
#rmScreen.rm-dim .rm-brand img { filter:grayscale(1) brightness(var(--rmimg,.2)); }
.rm-main .rm-top { transition:margin-bottom .7s cubic-bezier(.4,0,.2,1); }
.rm-main .rm-brand, .rm-main .rm-brand img { transition:color 1s ease, filter 1s ease; }
.rm-fs:hover { color:#ece8fb; border-color:#3a3260; }
.rm-main { transform:translate(0,0); transition:width .7s cubic-bezier(.4,0,.2,1), padding .7s cubic-bezier(.4,0,.2,1), background-color 1s ease, border-color 1s ease, transform 1.4s cubic-bezier(.4,0,.2,1); }
.rm-main .rm-k1, .rm-main .rm-k2, .rm-main .rm-k3, .rm-main .rm-lbl, .rm-main .rm-sl, .rm-main .rm-fill, .rm-main .rm-th, .rm-main .rm-th svg { transition:color 1s ease, background-color 1s ease, border-color 1s ease, box-shadow 1s ease, stroke 1s ease, font-size .7s ease, letter-spacing .7s ease; }
#rmScreen.rm-dim { cursor:none; }
#rmScreen.rm-dim .rm-main { width:250px; padding:16px 18px; background:transparent; border-color:var(--rmdimo,#141318); transform:translate(var(--rmx,0px),var(--rmy,0px)); transition:width .7s cubic-bezier(.4,0,.2,1), padding .7s cubic-bezier(.4,0,.2,1), background-color 1s ease, border-color 1s ease, transform 4s cubic-bezier(.4,0,.2,1); }
#rmScreen.rm-dim .rm-cx { grid-template-rows:0fr; opacity:0; }
#rmScreen.rm-dim .rm-k1, #rmScreen.rm-dim .rm-k2 { color:var(--rmdim,#1c1b20); }
#rmScreen.rm-dim .rm-k2 { font-size:26px; }

#rmScreen.rm-dim .rm-fill { background:transparent; }
#rmScreen.rm-dim .rm-lbl { font-size:10px; letter-spacing:1.5px; }
#rmScreen.rm-dim .rm-th { background:transparent; box-shadow:inset 0 0 0 1.5px #26252b; }
#rmScreen.rm-dim .rm-th svg { stroke:#26252b; }
@media (prefers-reduced-motion: reduce) { .rm-cx, .rm-main, #rmScreen.rm-dim .rm-main, .rm-main * { transition:none !important; } }
.rm-meta { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; color:#6c6790; margin:16px 0; padding-top:12px; border-top:1px solid #26213f; }
    .rm-sl { position:relative; height:58px; border-radius:29px; border:1px solid #26213f; background:#09080f; overflow:hidden; user-select:none; touch-action:none; }
    .rm-fill { position:absolute; left:0; top:0; bottom:0; width:58px; border-radius:29px; background:rgba(124,58,237,0.18); }
    .rm-lbl { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding-left:40px; font:700 12px 'Orbitron',monospace; letter-spacing:2.5px; color:#9d97bf; pointer-events:none; }
    .rm-th { position:absolute; left:4px; top:4px; width:48px; height:48px; padding:0; border:0; border-radius:50%; background:#7c3aed; display:flex; align-items:center; justify-content:center; cursor:grab; touch-action:none; }
    .rm-th:hover { background:#8b5cf6; }
    .rm-th:active { cursor:grabbing; }
    .rm-th:focus-visible { outline:2px solid #a78bfa; outline-offset:3px; }
    .rm-pt { text-align:center; font:700 15px 'Orbitron',monospace; letter-spacing:2.5px; color:#fff; }
    .rm-ps { text-align:center; font-size:14.5px; line-height:1.5; color:#9d97bf; margin-top:8px; }
    .rm-ps.rm-left { text-align:left; }
    .rm-pins { display:flex; gap:12px; justify-content:center; margin:18px 0 8px; }
    .rm-pins input { width:54px; height:62px; padding:0; text-align:center; font:700 28px 'Orbitron',monospace; color:#fff; background:rgba(10,8,24,0.8); border:1.5px solid rgba(167,139,250,0.35); border-radius:14px; outline:none; -webkit-text-security:disc; }
    .rm-pins input:focus { border-color:#a78bfa; box-shadow:none; }
    .ol-ntf { position:fixed; right:16px; bottom:16px; z-index:9000; width:min(360px,calc(100vw - 32px)); padding:14px 18px; border-radius:14px; background:linear-gradient(170deg,rgba(255,255,255,0.03) 0%,rgba(26,18,54,0.92) 40%,rgba(38,24,80,0.95) 100%); -webkit-backdrop-filter:blur(12px) saturate(130%); backdrop-filter:blur(12px) saturate(130%); border:1px solid rgba(255,255,255,0.09); box-shadow:0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,0.05); color:#ede9fe; animation:olNtfIn .25s cubic-bezier(.23,1,.32,1); }
    .ol-ntf-t { font:700 13px Orbitron,sans-serif; letter-spacing:.06em; margin-bottom:4px; text-transform:uppercase; color:#fff; }
    .ol-ntf-s { font-size:13px; color:#c4b5fd; line-height:1.4; }
    .ol-ntf-b { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
    @keyframes olNtfIn { from { opacity:0; transform:translateY(8px); } }
    @media (prefers-reduced-motion: reduce) { .ol-ntf { animation:none; } }
    @media (max-width:640px) { .ol-ntf { right:auto; left:50%; transform:translateX(-50%); bottom:calc(16px + env(safe-area-inset-bottom)); animation:olNtfInC .25s ease both; } }
    @keyframes olNtfInC { from { opacity:0; transform:translate(-50%,8px); } to { opacity:1; transform:translate(-50%,0); } }
    .rm-try { text-align:center; font-size:12.5px; color:#a5b4fc; margin-top:-4px; letter-spacing:.2px; }
    .rm-try b { color:#e0e7ff; }
    .rm-try-warn b { color:#fbbf24; }
    .rm-try-lock { color:#fca5a5; font-variant-numeric:tabular-nums; }
    .rm-try-lock b { color:#f87171; }
    .rm-err { min-height:18px; text-align:center; color:#f87171; font-size:13px; font-weight:600; }
    .rm-hint { text-align:center; font-size:13px; color:#9d97bf; min-height:18px; margin-top:10px; }
    .rm-row { display:flex; gap:8px; margin-top:12px; }
    .rm-btn { flex:1; height:42px; border-radius:10px; font:700 14px 'Rajdhani',sans-serif; letter-spacing:.3px; cursor:pointer; }
    .rm-btn.rm-o { background:transparent; border:1px solid #3a3260; color:#ddd6fe; }
    .rm-btn.rm-p { background:#6d28d9; border:0; color:#fff; }
    .rm-btn:disabled { opacity:.55; cursor:default; }
    .rm-lnk { display:block; margin:14px auto 0; padding:6px 8px; background:none; border:0; color:#9d97bf; font:600 13.5px 'Rajdhani',sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
    .rm-modal { max-width:460px; }
    #securitySettingsModal .rm-modal { max-width:580px; }
    .rm-modal .rm-pins { gap:10px; justify-content:center; width:100%; }
    .rm-modal .rm-pins input { flex:0 1 54px; width:auto; min-width:0; height:auto; aspect-ratio:54 / 62; }
    .pin-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; margin:0 0 16px; border-radius:14px; background:rgba(124,58,237,0.07); border:1px solid rgba(167,139,250,0.16); }
    .pin-head .rm-m-l { margin:0; }
    .pin-head small { display:block; margin-top:3px; font:500 12.5px 'Rajdhani',sans-serif; color:var(--textMuted); letter-spacing:0; }
    .pin-len { position:relative; display:inline-grid; grid-template-columns:1fr 1fr; flex-shrink:0; padding:3px; border-radius:11px; background:rgba(10,8,24,0.6); border:1px solid rgba(167,139,250,0.22); }
    .pin-len i { position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); border-radius:8px; background:#7c3aed; box-shadow:0 2px 10px rgba(124,58,237,0.35); transition:transform .22s cubic-bezier(.22,1,.36,1); }
    .pin-len[data-n="6"] i { transform:translateX(100%); }
    .pin-len button { position:relative; z-index:1; min-width:68px; min-height:34px; padding:0 12px; background:transparent; border:0; color:#9d97bf; font:700 13px 'Rajdhani',sans-serif; letter-spacing:.4px; cursor:pointer; transition:color .2s; }
    .pin-len button[aria-checked="true"] { color:#fff; }
    .pin-len button:focus-visible { outline:2px solid #a78bfa; outline-offset:1px; border-radius:8px; }
    .pin-f + .pin-f { margin-top:4px; }
    .pin-f .rm-m-l { margin-bottom:8px; text-align:center; }
    @media (max-width:480px) {
      .rm-modal-ov { padding:12px; }
      .rm-modal { padding:20px 16px; }
      .rm-modal .rm-pins { gap:7px; }
      .rm-modal .rm-pins input { flex-basis:48px; font-size:22px; border-radius:12px; }
      #securitySettingsModal .rm-modal { max-width:100%; }
    }
    @media (prefers-reduced-motion: reduce) { .pin-len i { transition:none; } }
    .pin-gate { background:#0d0b18 !important; z-index:2147483000 !important; }
    #securitySettingsModal .ga-opt { width:100%; text-align:left; }
    .rm-modal-ov { animation:rmOvIn .12s ease-out; }
    .rm-modal.fade-in { animation:rmPop .16s cubic-bezier(.2,.9,.3,1.15); will-change:transform,opacity; }
    @keyframes rmOvIn { from { opacity:0; } to { opacity:1; } }
    @keyframes rmPop { from { opacity:0; transform:scale(.94) translateY(6px); } to { opacity:1; transform:none; } }
    @media (prefers-reduced-motion: reduce) { .rm-modal-ov, .rm-modal.fade-in { animation:none; } }
    .rm-modal .rm-pins { margin:24px 0 2px; }
    .rm-modal .pin-f .rm-pins { margin:0 0 14px; }
    .rm-modal .rm-err { margin:0; min-height:16px; line-height:16px; }
    .rm-modal .rm-m-row { margin-top:6px; }
    .rm-pins.rm-bad input { border-color:#f87171 !important; background:rgba(239,68,68,0.08); }
    .rm-pins.rm-bad { animation:rmShake .42s cubic-bezier(.36,.07,.19,.97); }
    @keyframes rmShake { 10%,90% { transform:translateX(-1px); } 20%,80% { transform:translateX(3px); } 30%,50%,70% { transform:translateX(-6px); } 40%,60% { transform:translateX(6px); } }
    @media (prefers-reduced-motion: reduce) { .rm-pins.rm-bad { animation:none; } }
    .rm-m-p { font-size:13.5px; line-height:1.55; color:var(--textSecondary); margin:0 0 12px; }
    .rm-m-p b { color:var(--textPrimary); }
    .rm-m-l { font:700 11px 'Orbitron',monospace; letter-spacing:1.5px; color:var(--purpleLight); }
    .rm-m-row { display:flex; gap:8px; margin-top:14px; }
    .rm-m-row .btn { flex:1; justify-content:center; }
    .btn.rm-o { border:1px solid rgba(167,139,250,0.45) !important; }
    .rm-ack { display:flex; align-items:flex-start; gap:10px; width:100%; padding:12px; border-radius:10px; text-align:left; font:600 14px/1.45 'Rajdhani',sans-serif; color:var(--textPrimary); background:rgba(124,58,237,0.08); border:1px solid rgba(124,58,237,0.3); cursor:pointer; }
    .rm-ack .bh-check { margin-top:1px; }
    .rm-ack:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
    .rm-modal .rm-hint { text-align:left; margin-top:6px; }
    .rm-opt-ic { display:flex; flex-shrink:0; align-self:flex-start; margin-top:2px; }
    .ga-rm-btn { display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 14px; white-space:nowrap; background:rgba(124,58,237,0.24) !important; border:1px solid rgba(167,139,250,0.4) !important; color:#fff !important; }
    .ga-rm-btn:hover { background:rgba(124,58,237,0.36) !important; border-color:rgba(167,139,250,0.6) !important; }
    html[data-theme="light"] .ga-rm-btn { background:#6d28d9 !important; border-color:#6d28d9 !important; }
    .modal.ga-modal.ga-set-modal { backdrop-filter:blur(28px) saturate(170%); -webkit-backdrop-filter:blur(28px) saturate(170%); }
    @media (max-width:520px) {
      #gaModal:has(.ga-set-modal) { padding-left:6px; padding-right:6px; }
      .modal.ga-modal.ga-set-modal { width:100%; max-width:100%; margin-left:0; margin-right:0; border-radius:18px; padding-left:14px; padding-right:14px; }
    }
    .ga-rm-btn svg { fill:#fff; }
    .ga-set-modal .ga-modal-title { font-family:'Orbitron',monospace; font-size:17px; font-weight:700; letter-spacing:1px; color:var(--purpleLight); }
    .rm-emp-pin { margin:4px 0 12px; padding:12px; border-radius:10px; background:rgba(124,58,237,0.06); border:1px solid rgba(167,139,250,0.22); }
    .rm-emp-t { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--textPrimary); }
    .rm-emp-d { font-size:11.5px; line-height:1.5; color:var(--textMuted); margin:4px 0 10px; }
    .rm-sec { margin:-6px 0 16px; padding:12px; border-radius:10px; background:rgba(124,58,237,0.06); border:1px solid rgba(167,139,250,0.22); }
    .rm-sec-t { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--textPrimary); }
    .rm-sec-d { font-size:11.5px; line-height:1.5; color:var(--textMuted); margin:4px 0 10px; }
    html[data-theme="light"] .rm-m-p b, html[data-theme="light"] .rm-ack { color:#1e1b4b; }
    .bh-range { flex-wrap:nowrap !important; }
    .bh-range .bh-dt { flex:1 1 0; min-width:0; }
    .bh-range .bh-dt .input { width:100%; }
    .bh-range .bh-fbtns { display:flex; gap:8px; margin-left:4px; flex:none; }
    .bh-range .bh-fbtns .btn { height:32px; min-height:0; padding:0 16px; font-size:11px; font-weight:700; letter-spacing:.05em; justify-content:center; border-radius:8px; }
    .bh-range .bh-reset { background:transparent !important; border:1px solid rgba(167,139,250,0.4) !important; color:var(--textSecondary) !important; }
    .bh-range .bh-apply { background:linear-gradient(135deg,#7c3aed,#6d28d9) !important; border:1px solid #7c3aed !important; color:#fff !important; }
    .bh-range .bh-apply:hover { filter:brightness(1.1); }
    @media (max-width:640px) {
      .bh-range { flex-wrap:nowrap !important; align-items:stretch !important; }
      .bh-range .bh-dt { flex:1 1 0; min-width:0; display:flex; flex-direction:column; justify-content:flex-end; }
      .bh-range .bh-fbtns { flex-direction:column; justify-content:flex-end; gap:4px; margin:0; }
      .bh-range .bh-fbtns .btn { height:26px; padding:0 12px; font-size:10.5px; }
    }
    .bh-dtw { position:relative; }
    @media (min-width:641px) {
      .bh-range .bh-dt .input { height:38px; min-height:0; }
      .bh-range .bh-fbtns { align-self:flex-end; height:38px; align-items:center; }
      .bh-range .bh-fbtns .btn { height:32px; min-height:0; padding:0 14px; }
      .bh-range .bh-reset { border-color:transparent !important; }
      .bh-range .bh-reset:hover { background:rgba(167,139,250,0.1) !important; }
    }
    @media (pointer:coarse) {
      .bh-dtw { height:36px; display:flex; align-items:center; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior:none; border:1px solid rgba(167,139,250,0.28); border-radius:10px; background:rgba(10,8,24,0.55); padding-right:30px; }
      .bh-range .bh-dt { position:relative; }
      .bh-range .bh-dt::after { content:""; position:absolute; right:1px; bottom:1px; width:30px; height:34px; display:block; border-radius:0 9px 9px 0; pointer-events:none; background-color:#110c24; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size:14px; }
      .bh-dtw::-webkit-scrollbar { display:none; }
      .bh-range .bh-dtw input[type="datetime-local"] { -webkit-appearance:none; appearance:none; flex:0 0 auto; height:34px; width:auto; min-width:0; max-width:none; field-sizing:content; text-align:left; padding-left:8px !important; padding-right:2px !important; border:0 !important; background:transparent !important; box-shadow:none !important; padding-right:4px !important; }
      .bh-range .bh-dtw input[type="datetime-local"]::-webkit-calendar-picker-indicator { display:none; }
    }
    #billHistList .bill-history-item { padding-left:2px; padding-right:2px; }
    .tp-game { margin:2px 0 14px; font:700 17px/1.3 'Rajdhani',sans-serif; letter-spacing:.3px; color:var(--textPrimary); }
    .tp-sub { margin:-8px 0 14px; font-size:13px; line-height:1.45; color:var(--textMuted); }
    @media (max-width:400px) {
      .tp-pick-btn, .tp-opt { gap:6px; padding-left:10px; }
      .tp-modal .tp-pick-btn, .tp-modal .tp-opt { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"u b c" "l l l"; row-gap:3px; align-items:center; padding-top:7px; padding-bottom:7px; }
      .tp-modal .tp-opt { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"u b" "l l"; }
      .tp-pick-btn .tp-o-u, .tp-opt .tp-o-u { grid-area:u; }
      .tp-pick-btn .ac-lvl, .tp-opt .ac-lvl { grid-area:l; justify-self:start; font-size:9.5px; padding:2px 6px; letter-spacing:.2px; }
      .tp-pick-btn .tp-o-b, .tp-opt .tp-o-b { grid-area:b; margin-left:0; }
      .tp-pick-btn .tp-caret { grid-area:c; }
      .tp-o-u { font-size:14px; }
      .tp-route li { flex-wrap:wrap; row-gap:2px; }
      .tp-s { flex-wrap:wrap; }
      .tp-s b { overflow:visible; white-space:normal; word-break:break-all; }
      .tp-v { margin-left:24px; }
    }
    .tp-sec-l { display:block; margin-bottom:6px; font:700 11.5px 'Rajdhani',sans-serif; letter-spacing:.6px; text-transform:uppercase; color:var(--textMuted); }
    .tp-f { display:flex; flex-direction:column; min-width:0; margin-bottom:14px; }
    .tp-pair { display:flex; flex-direction:column; gap:14px; margin-bottom:14px; }
    .tp-pair .tp-f { margin-bottom:0; }
    .tp-sec-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
    .tp-sec-row .tp-sec-l { margin-bottom:0; }
    .tp-swap { display:inline-flex; align-items:center; gap:4px; min-height:24px; padding:0 2px; border:0; background:transparent; color:var(--purpleLight); font:700 12px 'Rajdhani',sans-serif; letter-spacing:.4px; text-transform:uppercase; cursor:pointer; }
    .tp-swap:hover { color:#fff; }
    .tp-swap .ga-i { display:block; }
    .tp-swap:focus-visible, .tp-pick-btn:focus-visible, .tp-max:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:2px; }
    .tp-pick { position:relative; }
    .tp-pick-btn { width:100%; min-height:44px; display:flex; align-items:center; gap:8px; padding:6px 10px 6px 12px; border-radius:10px; border:1px solid rgba(120,100,200,0.3); background:rgba(20,16,44,0.55); color:var(--textPrimary); font:inherit; text-align:left; cursor:pointer; transition:border-color .15s; }
    .tp-pick-btn:hover, .tp-pick-btn[aria-expanded="true"] { border-color:rgba(167,139,250,0.6); }
    .tp-caret { margin-left:auto; display:flex; color:var(--textMuted); transform:rotate(90deg); transition:transform .15s; }
    .tp-pick-btn[aria-expanded="true"] .tp-caret { transform:rotate(-90deg); }
    .tp-o-u { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; font-size:14px; }
    .tp-o-ph { color:var(--textMuted); font-weight:500; }
    .tp-o-b { margin-left:auto; padding-left:6px; font:700 13.5px 'Rajdhani',sans-serif; color:#67e8f9; white-space:nowrap; font-variant-numeric:tabular-nums; }
    .tp-est { list-style:none; margin:0; padding:0; border-radius:10px; border:1px solid rgba(167,139,250,0.18); }
    .tp-est li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; font-size:13px; }
    .tp-est li + li { border-top:1px solid rgba(167,139,250,0.12); }
    .tp-est-u { font-weight:600; color:var(--textPrimary); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .tp-est-v { display:flex; align-items:center; gap:5px; flex-shrink:0; font:600 13.5px 'Rajdhani',sans-serif; font-variant-numeric:tabular-nums; }
    .tp-est-old { color:var(--textMuted); }
    .tp-est-v b { color:var(--textPrimary); }
    .tp-est-v small { font-weight:700; font-size:12px; }
    .tp-est-v small.up { color:#4ade80; }
    .tp-est-v small.down { color:#f87171; }
    #tpRoute .tp-route { margin-bottom:12px; }
    .tp-est-note { margin-top:6px; }
    .al-tp-sub { color:var(--textSecondary) !important; }
    html[data-theme="light"] .tp-o-b { color:#0e7490; }
    html[data-theme="light"] .tp-est-v small.up { color:#15803d; }
    html[data-theme="light"] .tp-est-v small.down { color:#b91c1c; }
    .tp-pick-btn .tp-o-b { margin-left:auto; }
    .tp-pick-btn .tp-caret { margin-left:2px; }
    .tp-pick-btn .tp-o-u + .ac-lvl, .tp-opt .ac-lvl { flex-shrink:0; }
    .tp-drop { min-width:100%; }
    .tp-opt { gap:8px; min-height:42px; }
    .tp-opt:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:-2px; }
    .tp-amt { display:flex; align-items:stretch; border-radius:10px; border:1px solid rgba(120,100,200,0.3); background:rgba(20,16,44,0.55); overflow:hidden; }
    .tp-amt:focus-within { border-color:rgba(167,139,250,0.7); }
    .tp-amt .input { flex:1; min-width:0; border:0 !important; background:transparent !important; box-shadow:none !important; font:700 18px 'Rajdhani',sans-serif; letter-spacing:.3px; min-height:44px; }
    .tp-max { border:0; border-left:1px solid rgba(120,100,200,0.3); background:transparent; color:var(--purpleLight); font:700 12px 'Rajdhani',sans-serif; letter-spacing:.6px; padding:0 16px; cursor:pointer; }
    .tp-max:hover { background:rgba(124,58,237,0.14); }
    .tp-cap { margin-top:6px; font-size:12px; color:var(--textMuted); }
    .tp-route { list-style:none; margin:0 0 6px; padding:0; border-radius:10px; border:1px solid rgba(167,139,250,0.18); counter-reset:tp; }
    .tp-route li { counter-increment:tp; display:flex; align-items:center; gap:10px; padding:9px 12px; font-size:13px; color:var(--textSecondary); }
    .tp-route li + li { border-top:1px solid rgba(167,139,250,0.12); }
    .tp-route li::before { content:counter(tp); width:14px; flex-shrink:0; font:700 12px 'Rajdhani',sans-serif; color:var(--textMuted); text-align:center; }
    .tp-s { display:flex; align-items:center; gap:4px; min-width:0; flex:1; }
    .tp-s b { color:var(--textPrimary); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .tp-arr { display:flex; color:var(--textMuted); flex-shrink:0; }
    .tp-v { flex-shrink:0; font:700 13px 'Rajdhani',sans-serif; letter-spacing:.3px; white-space:nowrap; font-variant-numeric:tabular-nums; }
    .tp-v.load { color:#4ade80; }
    .tp-v.redeem { color:#f87171; }
    .tp-err { display:block; min-height:1em; margin-top:4px; font-size:12.5px; color:#f87171; }
    .tp-err:empty { min-height:0; margin:0; }
    .tp-help { font-size:12px; color:var(--textMuted); margin:10px 0 0; }
    html[data-theme="light"] .tp-pick-btn, html[data-theme="light"] .tp-amt { background:#fff; border-color:#d4d0e6; }
    html[data-theme="light"] .tp-swap { color:#6d28d9; }
    html[data-theme="light"] .tp-swap:hover { color:#4c1d95; }
    html[data-theme="light"] .tp-v.load { color:#15803d; }
    html[data-theme="light"] .tp-v.redeem { color:#b91c1c; }
    .ga-chk-btn:focus-visible { outline:2px solid rgba(167,139,250,0.8); outline-offset:2px; }
    .ga-chk-btn .ga-i { display:block; }
    .ga-pmodal .ga-inv-toggle { cursor:default; }
    .ga-pmodal .ga-inv-toggle:hover { border-color:rgba(167,139,250,0.16); }
    .ga-pmodal .ga-inv-toggle > .ga-i { display:none; }
    .ga-pmodal .ga-inv-acts { position:static; transform:none; justify-content:flex-end; margin-top:8px; }
    .ga-pmodal .ga-inv-row.ga-mm .ga-inv-t { max-width:none; }
    html[data-theme="light"] .del-pill[style*="#fde68a"] { color:#92400e !important; background:#fef3c7 !important; border-color:#fcd34d !important; }
    .al-chk-acts { display:inline-flex; gap:6px; margin-left:auto; flex-shrink:0; }
    .ga-inv-btn { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; min-height:32px; padding:0 10px; border:1px solid rgba(167,139,250,0.3) !important; border-radius:8px; white-space:nowrap; }
    .ga-inv-sync { color:#fff !important; border:0 !important; background:linear-gradient(135deg,#7c3aed,#4f46e5) !important; }
    .ga-inv-warn { display:inline-flex; align-items:center; gap:5px; margin-top:3px; font-size:12px; font-weight:700; color:#fbbf24; }
    .ga-inv-warn[hidden] { display:none; }
    @media (max-width:640px) {
      .ga-inv-row.ga-mm .ga-inv-t { max-width:none; }
      .ga-inv-acts { position:static; transform:none; justify-content:flex-end; flex-wrap:wrap; margin-top:8px; }
    }
    #masterGamesModal .mgi { max-width:min(680px, calc(100% - 24px)); width:100%; }
    #masterGamesModal > .modal.fade-in { animation:mgiPop .12s cubic-bezier(.2,.9,.3,1); will-change:transform,opacity; }
    @keyframes mgiPop { from { opacity:0; transform:translateY(6px) scale(.985); } to { opacity:1; transform:none; } }
    @media (prefers-reduced-motion: reduce) { #masterGamesModal > .modal.fade-in { animation:none; } }
    html:not([data-theme="light"]) #masterGamesModal > .modal.mgi { background:linear-gradient(150deg,rgba(255,255,255,0.06) 0%,rgba(56,36,116,0.32) 32%,rgba(22,15,50,0.5) 100%); backdrop-filter:blur(26px) saturate(170%); -webkit-backdrop-filter:blur(26px) saturate(170%); }
    @media (max-width:640px) {
      #masterGamesModal { padding:8px; }
      #masterGamesModal .mgi { max-width:100%; padding:18px 12px; }
      #masterGamesModal .mgi-row .mgi-ico { display:none !important; }
      #masterGamesModal .mgi .mgi-row { grid-template-columns:minmax(0,1fr) auto 14px !important; gap:10px; padding:11px 10px; }
    }
    .mgi-hd { display:flex; align-items:flex-start; gap:8px; margin-bottom:14px; }
    .mgi-hd-t { flex:1; min-width:0; }
    .mgi-count { margin-top:3px; font-size:13px; color:var(--textMuted); }
    .mgi-csv { height:38px; padding:0 12px; gap:6px; }
    .mgi-csv-lbl { font:800 12px 'Orbitron',monospace; letter-spacing:.5px; }
    .mgi-x { height:38px; width:38px; padding:0; justify-content:center; border:1px solid rgba(167,139,250,0.3) !important; border-radius:10px; background:rgba(255,255,255,0.05) !important; }
    .mgi-x:hover { background:rgba(124,58,237,0.18) !important; }
    #mgDetailOverlay, #mgCsvModal { z-index:1010 !important; }
    @media (max-width:640px) {
      #mgDetailOverlay { padding:8px; }
      #mgDetailOverlay > .modal { max-width:none !important; width:100%; padding:18px 14px; border-radius:18px; }
    }
    .mgi-bar { display:flex; gap:8px; margin-bottom:12px; align-items:stretch; }
    .mgi-search { flex:1; min-width:0; margin:0 !important; }
    .mgi-search .input { height:44px; }
    .mgi-per { position:relative; }
    .mgi-per-btn, .mgi-add { height:44px; display:inline-flex; align-items:center; gap:7px; padding:0 13px; border-radius:12px; font:700 14px 'Rajdhani',sans-serif; white-space:nowrap; cursor:pointer; }
    .mgi-per-btn { border:1px solid rgba(251,191,36,0.4); background:rgba(251,191,36,0.08); color:#fcd34d; }
    .mgi-per-btn b { font-weight:800; }
    .mgi-per-btn svg, .mgi-add svg { display:block; flex-shrink:0; }
    .mgi-per-btn > span { line-height:1; display:inline-flex; align-items:center; gap:4px; }
    .mgi-add { border:0; background:linear-gradient(135deg,#7c3aed,#4f46e5); color:#fff; }
    .mgi-menu { position:fixed; transform:translateX(-50%); z-index:1020; box-sizing:border-box; max-height:calc(100vh - 24px); overflow-y:auto; padding:6px; border-radius:12px; border:1px solid rgba(167,139,250,0.3); background:rgba(18,14,40,0.97); backdrop-filter:blur(28px); -webkit-backdrop-filter:blur(28px); box-shadow:0 16px 40px rgba(0,0,0,0.55); }
    .mgi-menu[hidden] { display:none; }
    .mgi-mi { display:block; width:100%; text-align:left; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:var(--textPrimary); font:600 15px 'Rajdhani',sans-serif; cursor:pointer; }
    .mgi-mi:hover, .mgi-mi[aria-checked="true"] { background:rgba(124,58,237,0.22); }
    .mgi-custom { display:flex; flex-direction:column; gap:8px; padding:8px 6px 4px; border-top:1px solid rgba(167,139,250,0.16); margin-top:4px; }
    .mgi-custom[hidden] { display:none; }
    .mgi-custom label { font-size:12px; font-weight:700; color:var(--textMuted); display:flex; flex-direction:column; gap:4px; }
    .mgi-custom .input { width:100%; box-sizing:border-box; font-size:13px; padding:7px 8px; min-width:0; }
    .mgi-apply { width:100%; justify-content:center; border:0 !important; color:#fff !important; background:linear-gradient(135deg,#7c3aed,#4f46e5) !important; }
    .mgi-note { padding:10px 14px; margin-bottom:12px; border-radius:10px; font-size:13px; color:#fcd34d; background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.22); }
    .mgi-addcard { padding:14px; margin-bottom:14px; border-radius:14px; border:1px solid rgba(124,58,237,0.38); background:rgba(124,58,237,0.08); }
    .mgs-wrap { position:relative; }
    .ga-opt.ga-opt-sub { padding-left:30px; }
    .ph-modal { max-width:760px; width:min(760px, calc(100vw - 24px)); max-height:92vh; overflow-y:auto; }
    .ph-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:14px; }
    .ph-head .modal-title { margin:0; }
    .ph-hact { display:flex; align-items:center; gap:8px; }
    .ph-print { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px !important; font-weight:700; letter-spacing:.5px; text-transform:uppercase; border:1px solid rgba(167,139,250,0.3) !important; }
    .ph-print svg { width:15px; height:15px; }
    .ph-close { width:34px; height:34px; border-radius:10px; border:1px solid rgba(167,139,250,0.35); background:rgba(124,58,237,0.08); color:var(--textSecondary); cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
    .ph-close svg { width:16px; height:16px; }
    .ph-close:hover { border-color:rgba(167,139,250,0.6); color:#fff; }
    .ph-add { width:100%; padding:14px; border:0; border-radius:12px; background:linear-gradient(135deg,#34d399 0%,#10b981 32%,#0d9f8f 66%,#0bb4d6 100%); box-shadow:0 4px 20px rgba(16,185,129,0.35); color:#fff; font:700 14px 'Rajdhani',sans-serif; letter-spacing:1px; text-transform:uppercase; display:flex; align-items:center; justify-content:center; gap:9px; cursor:pointer; line-height:1; }
    .ph-add svg { width:18px; height:18px; flex:none; display:block; }
    .ph-add:hover { filter:brightness(1.1); }
    .ph-rec { margin-bottom:14px; margin-top:6px; }
    .ph-form { display:none; margin-top:10px; padding:12px; border-radius:14px; background:rgba(8,6,20,0.45); border:1px solid rgba(167,139,250,0.16); }
    .ph-rec.open .ph-form { display:block; }
    .ph-g3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
    .ph-f { position:relative; min-width:0; }
    .ph-f > label, .ph-lb { display:block; font:700 10px 'Orbitron',monospace; letter-spacing:1px; color:var(--cyan); margin:0 0 5px 3px; text-transform:uppercase; }
    .ph-f .input { height:38px; box-sizing:border-box; }
    .ph-ddb { display:flex !important; align-items:center; justify-content:space-between; gap:6px; cursor:pointer; user-select:none; font-size:13px; }
    .ph-ddb span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ph-ddb svg { width:14px; height:14px; flex:none; color:var(--textMuted); }
    .ph-ddb.ph-off { cursor:default; color:var(--textMuted); }
    .ph-ddl { position:fixed; background:rgba(16,13,30,0.98); border:1px solid rgba(120,100,200,0.3); border-radius:10px; z-index:2147483647; max-height:220px; overflow-y:auto; box-shadow:0 16px 48px rgba(0,0,0,0.8); padding:4px; }
    .ph-ddl.ph-fml { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; }
    .ph-dd-opt { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:7px; font:600 14px 'Rajdhani',sans-serif; color:var(--textPrimary); cursor:pointer; }
    .ph-dd-opt i { width:8px; height:8px; border-radius:50%; background:var(--c); flex:none; }
    .ph-dd-opt:hover { background:rgba(124,58,237,0.16); }
    .ph-dd-opt.on { background:rgba(124,58,237,0.25); outline:1px solid rgba(124,58,237,0.35); }
    .ph-bonus { margin-top:8px; padding:7px 10px; border-radius:9px; font-size:12px; color:#f6d25d; background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.2); }
    .ph-use { margin-top:10px; }
    .ph-seg { display:flex; gap:4px; padding:3px; border-radius:10px; background:rgba(8,6,20,0.6); border:1px solid rgba(167,139,250,0.18); }
    .ph-seg button { flex:1; min-width:0; height:32px; border:0; border-radius:7px; background:transparent; color:var(--textMuted); font:700 13px 'Rajdhani',sans-serif; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .modal-header > .btn-ghost.btn-sm:last-child, .modal-header > button[aria-label="Close"] { width:32px; height:32px; min-width:32px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(167,139,250,0.3) !important; border-radius:9px; background:transparent; flex:none; }
    .modal-header > .btn-ghost.btn-sm:last-child:hover, .modal-header > button[aria-label="Close"]:hover { border-color:rgba(167,139,250,0.6) !important; background:rgba(124,58,237,0.12); }
    .cl-modal { width:100%; height:auto; max-height:86vh !important; display:flex; flex-direction:column; overflow:hidden !important; }
    .cl-modal > .modal-header, .cl-modal > .ad-hint, .cl-modal .cl-foot { flex:none; }
    .cl-modal > .ad-body { flex:0 1 auto; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
    #clWrap { flex:0 1 auto; min-height:0; display:flex; flex-direction:column; }
    #clWrap > .cl-range, #clWrap > .cl-sum, #clWrap > .cl-bar { flex:none; }
    #clWrap > .cl-list { flex:0 1 auto; min-height:0; overflow-y:auto; }
    .cl-range { font-size:12px; color:var(--textMuted); margin:2px 0 12px; }
    .cl-sum { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:8px; }
    .cl-sum div { background:rgba(8,6,20,0.35); border:1px solid rgba(167,139,250,0.14); border-radius:12px; padding:12px 14px; min-width:0; }
    .cl-sum span { display:block; margin-bottom:4px; font-size:11px; color:var(--textMuted); text-transform:uppercase; letter-spacing:.05em; }
    .cl-sum b { display:block; font-family:Orbitron,monospace; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cl-sum b.add, .cl-amt.add { color:#34d399; } .cl-sum b.use, .cl-amt.use { color:#f472b6; } .cl-amt.adj, .cl-sum b.neg { color:#f87171; } .cl-sum b.now { color:#22d3ee; }
    .cl-bar { display:flex; justify-content:space-between; align-items:center; padding:6px 12px; font-size:12px; color:var(--textMuted); }
    .cl-list { border-top:1px solid rgba(167,139,250,0.14); }
    .cl-r { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 10px; padding:11px 12px; border-bottom:1px solid rgba(120,100,200,0.08); cursor:pointer; }
    .cl-top { display:flex; align-items:center; gap:8px; min-width:0; }
    .cl-tag { font-size:10px; font-weight:700; padding:1px 7px; border-radius:5px; letter-spacing:.04em; flex:none; }
    .cl-tag.add { background:rgba(16,185,129,0.15); color:#34d399; } .cl-tag.use { background:rgba(244,114,182,0.15); color:#f472b6; } .cl-tag.adj { background:rgba(239,68,68,0.15); color:#f87171; }
    .cl-pm { font-size:13px; font-weight:600; color:var(--textPrimary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cl-pm i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:1px; }
    .cl-amt { font-family:Orbitron,monospace; font-size:13px; font-weight:700; text-align:right; white-space:nowrap; }
    .cl-sub { font-size:12px; color:var(--textMuted); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cl-dt { margin:0 5px; opacity:.6; }
    .cl-run { font-size:11.5px; color:var(--textMuted); text-align:right; white-space:nowrap; }
    .cl-run b { color:var(--textSecondary); font-weight:600; } .cl-run.neg b { color:#f87171; }
    .cl-carry { display:flex; justify-content:space-between; align-items:center; padding:12px 12px; background:rgba(34,211,238,0.06); border-bottom:1px solid rgba(167,139,250,0.14); font-size:13px; color:var(--textMuted); }
    .cl-carry b { font-family:Orbitron,monospace; font-size:13px; color:#22d3ee; }
    .cl-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 12px 2px; border-top:1px solid rgba(167,139,250,0.14); }
    .cl-foot span { font-size:12px; color:var(--textMuted); }
    .cl-foot b { font-family:Orbitron,monospace; font-size:15px; color:#34d399; white-space:nowrap; } .cl-foot b.neg { color:#f87171; }
    @media (max-width:640px) {
      .cl-sum { gap:6px; } #analyticsDetailModal:has(.cl-modal) { padding:6px !important; } .cl-modal { height:auto; max-height:92vh !important; width:calc(100vw - 12px) !important; max-width:none !important; padding:16px 14px !important; } .cl-sum { grid-template-columns:1fr 1fr; } .cl-sum div { padding:10px 12px; } .cl-sum div:last-child { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:10px; } .cl-sum div:last-child span { margin:0; } .cl-sum b { font-size:clamp(12px,4.2vw,15px); } .cl-sum div:last-child b { font-size:clamp(14px,5vw,18px); } .cl-r, .cl-bar, .cl-carry, .cl-foot { padding-left:4px; padding-right:4px; }
      .cl-sub, .ph-t2, .ph-mr .l { overflow-x:auto !important; overflow-y:hidden !important; text-overflow:clip !important; scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
      .ph-t2 .rest { overflow:visible !important; text-overflow:clip !important; flex:none; }
      .cl-sub::-webkit-scrollbar, .ph-t2::-webkit-scrollbar, .ph-mr .l::-webkit-scrollbar { display:none; }
      .ph-t1 { overflow-x:auto !important; overflow-y:hidden !important; text-overflow:clip !important; scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
      .ph-t1::-webkit-scrollbar { display:none; }
      .ph-ovf.ph-fl.ph-fr { -webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent); mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent); }
      .ph-ovf.ph-fl:not(.ph-fr) { -webkit-mask-image:linear-gradient(90deg,transparent,#000 14px); mask-image:linear-gradient(90deg,transparent,#000 14px); }
      .ph-ovf.ph-fr:not(.ph-fl) { -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 14px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 14px),transparent); }
    }
    .elog-modal { max-width:720px; width:96vw; display:flex; flex-direction:column; overflow:hidden !important; }
    .elog-modal > * { flex:none; }
    .elog-modal > .elog-body { flex:1 1 auto; min-height:0; overflow-y:auto; margin:0 -6px; padding:0 6px; }
    @media (max-width:640px) {
      #empAuditLogModal { padding:6px !important; }
      .elog-modal { width:calc(100vw - 12px) !important; max-width:none !important; max-height:92vh !important; padding:16px 10px !important; }
      .elog-modal .elog-row { gap:8px !important; padding:10px 6px !important; }
    }
    .ed-modal { max-width:520px; width:94vw; display:flex; flex-direction:column; overflow:hidden !important; padding:0 !important; }
    .ed-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 16px 12px 18px; border-bottom:1px solid rgba(255,255,255,0.08); }
    .ed-title { margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ed-acts { display:flex; gap:8px; flex:none; }
    .ed-ib { width:34px; height:34px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid rgba(167,139,250,0.35); background:rgba(124,58,237,0.1); color:#c4b5fd; cursor:pointer; transition:background .15s,border-color .15s; }
    .ed-ib:hover { background:rgba(124,58,237,0.22); border-color:rgba(167,139,250,0.6); }
    .ed-ib:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
    .ed-scroll { flex:1; min-height:0; overflow-y:auto; padding:14px 18px 18px; }
    .ed-filt { display:flex; align-items:flex-end; gap:8px; margin-bottom:14px; }
    .ed-dates { flex:1; min-width:0; display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior:none; }
    .ed-dates::-webkit-scrollbar { display:none; }
    .ed-f { flex:1 0 128px; min-width:128px; }
    .ed-f label { display:block; font-size:10px; color:var(--textMuted); margin:0 0 3px 6px; }
    .ed-f .input { width:100%; height:34px; padding:6px 8px; font-size:12px; }
    #empDetailFilter { flex:none; height:34px; min-height:34px; box-sizing:border-box; align-self:flex-end; display:inline-flex; align-items:center; justify-content:center; padding:0 14px !important; margin:0 !important; line-height:1; }
    .ed-f .input { box-sizing:border-box; min-height:34px; margin:0; }
    @media (max-width:640px) {
      #empDetailModal { padding:6px !important; }
      .ed-modal { width:calc(100vw - 12px) !important; max-width:none !important; max-height:92vh !important; }
      .ed-head { padding:14px 12px 10px 14px; }
      .ed-scroll { padding:12px 12px 16px; }
      .ed-f { flex-basis:122px; min-width:122px; }
      #analyticsDetailModal, #gaDetailModal, #companySettingsModal { padding:6px !important; }
      #analyticsDetailModal > .modal:not(.ph-modal):not(.cl-modal), #gaDetailModal > .modal, #companySettingsModal > .modal { width:calc(100vw - 12px) !important; max-width:none !important; max-height:92vh !important; padding:18px 14px !important; }
    }
    .ar-modal { max-width:460px; }
    .abv-modal { max-width:640px; width:96vw; display:flex; flex-direction:column; overflow:hidden !important; }
    .abv-modal > .modal-header { flex:none; }
    .abv-body { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
    .abv-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:26px 16px; border:2px dashed rgba(167,139,250,0.4); border-radius:14px; background:rgba(124,58,237,0.06); color:#c4b5fd; cursor:pointer; text-align:center; transition:background .15s, border-color .15s; }
    .abv-drop b { color:#fff; font-size:15px; } .abv-drop span { font-size:12.5px; color:var(--textMuted); }
    .abv-drop:hover, .abv-drop.on { background:rgba(124,58,237,0.16); border-color:#a78bfa; }
    .abv-sum { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
    .abv-sum div { padding:10px; border-radius:10px; background:rgba(10,8,24,0.5); border:1px solid rgba(167,139,250,0.2); min-width:0; }
    .abv-sum small { display:block; font-size:11px; color:var(--textMuted); }
    .abv-sum b { font-family:'Orbitron',monospace; font-size:14px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
    .abv-filt { display:grid; grid-template-columns:1fr auto auto; gap:8px; }
    .abv-filt .input { height:38px; font-size:13px; }
    .abv-filt .ga-dd { min-width:150px; } .abv-filt .ga-dd-menu { max-height:260px; overflow-y:auto; z-index:20; background:#1a1236 !important; backdrop-filter:none !important; }
    .abv-list { display:flex; flex-direction:column; gap:6px; }
    .abv-row { padding:10px 12px; border:1px solid rgba(167,139,250,0.18); border-radius:10px; background:rgba(10,8,24,0.4); cursor:pointer; }
    .abv-row.open { border-color:rgba(167,139,250,0.45); }
    .abv-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
    .abv-top b { font-size:13px; color:#fff; }
    .abv-top small { display:block; font-size:12px; color:var(--textMuted); }
    .abv-amt { text-align:right; flex:none; }
    .abv-amt b { display:block; font-family:'Orbitron',monospace; font-size:13px; }
    .abv-st { font-size:11px; font-weight:700; }
    .abv-st.ok { color:#34d399; } .abv-st.warn { color:#fbbf24; } .abv-st.bad { color:#f87171; }
    .abv-det { margin-top:8px; padding-top:8px; border-top:1px solid rgba(167,139,250,0.15); }
    .abv-ln { display:grid; grid-template-columns:1fr auto 90px; gap:8px; font-size:12.5px; color:var(--textSecondary); padding:2px 0; }
    .abv-ln b { text-align:right; color:#fff; }
    .abv-tot { border-top:1px dashed rgba(167,139,250,0.2); margin-top:4px; padding-top:6px; }
    .abv-sub { color:var(--textMuted); }
    .abv-more, .ar-view { align-self:center; }
    .abv-foot { text-align:center; font-size:11px; }
    @media (max-width:640px) {
      #abvModal { padding:6px !important; }
      .abv-modal { width:calc(100vw - 12px) !important; max-width:none !important; max-height:92vh !important; padding:16px 12px !important; }
      .abv-sum { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .abv-filt { grid-template-columns:1fr 1fr; }
      .abv-filt #abvQ { grid-column:1 / -1; }
    }

    .ar-hist { font-size:12px; color:var(--textMuted); padding:8px 10px; margin-bottom:8px; border:1px dashed rgba(167,139,250,0.3); border-radius:10px; }
    .ar-body { display:flex; flex-direction:column; gap:10px; }
    .ar-note { font-size:13px; color:var(--textMuted); line-height:1.5; }
    .ar-note.bad { color:#f87171; }
    .ar-h { font-family:'Orbitron',monospace; font-size:14px; color:#fff; letter-spacing:.5px; }
    .ar-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border:1px solid rgba(167,139,250,0.22); border-radius:12px; background:rgba(10,8,24,0.45); }
    .ar-row b { font-family:'Orbitron',monospace; font-size:15px; color:#fff; margin-right:8px; }
    .ar-row span { font-size:13px; color:var(--textSecondary); }
    .ar-row small { display:block; font-size:12px; color:var(--textMuted); margin-top:3px; }
    .ar-modal input[type=checkbox] { appearance:none; -webkit-appearance:none; width:18px; height:18px; margin:0; flex:none; border-radius:5px; border:2px solid rgba(124,58,237,0.55); background:transparent center/11px 11px no-repeat; cursor:pointer; transition:background-color .15s, border-color .15s; }
    .ar-modal input[type=checkbox]:checked { background-color:#7c3aed; border-color:#7c3aed; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5 4,7.5 8.5,2.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
    .ar-modal input[type=checkbox]:disabled { opacity:.6; cursor:default; }
    .ar-modal input[type=checkbox]:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
    .ar-hist[hidden] { display:none; }
    .ar-opt { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid rgba(167,139,250,0.22); border-radius:10px; cursor:pointer; font-size:14px; }
    .ar-opt span { flex:1; } .ar-opt small { font-size:12px; color:var(--textMuted); }
    .ar-kv { display:flex; justify-content:space-between; font-size:13px; color:var(--textSecondary); padding:3px 0; }
    .ar-kv b { color:#fff; font-weight:700; }
    .ar-chk { display:flex; align-items:center; gap:8px; font-size:13px; margin-top:4px; cursor:pointer; }
    .ar-btns { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
    .ar-pri, .ar-go { background:linear-gradient(135deg,#7c3aed,#6d28d9) !important; border:1px solid #7c3aed !important; color:#fff !important; font-weight:700; }
    .db-modal { max-width:500px; max-height:86vh; display:flex; flex-direction:column; overflow:hidden; }
    .db-modal > .modal-header { flex:none; }
    .db-body { flex:1; min-height:0; overflow-y:auto; margin:0 -6px; padding:0 6px; }
    .db-restore { background:linear-gradient(135deg,#059669,#10b981 55%,#0891b2) !important; color:#fff !important; border:none !important; }
    .db-sec { border:1px solid var(--border); border-radius:12px; padding:14px; background:var(--bgInput); margin-top:4px; }
    .db-sec + .db-sec { margin-top:14px; }
    .db-sec-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:6px; }
    .db-sec-h span { font-family:Orbitron,monospace; font-size:12.5px; font-weight:700; letter-spacing:.04em; color:#22d3ee; text-transform:uppercase; white-space:nowrap; flex:none; }
    .db-sec-imp .db-sec-h span { color:#34d399; }
    .db-sec-h small { font-size:11px; color:var(--textMuted); flex:1 1 auto; min-width:0; text-align:right; line-height:1.3; }
    .db-what { font-size:12px; line-height:1.5; color:var(--textMuted); margin-bottom:12px; }
    .db-btn { background:var(--bgCard); border:1px solid var(--border); color:var(--textPrimary); font-weight:600; justify-content:center; padding:12px 14px; }
    .db-btn:hover { border-color:var(--purpleLight); }
    .db-drive { margin-top:10px; }
    .db-last { font-size:11.5px; color:var(--textMuted); margin-top:8px; text-align:center; }
    .db-last b { color:var(--textSecondary); font-weight:600; }
    .db-status { font-size:11px; text-align:center; min-height:14px; margin-top:6px; color:var(--textMuted); }
    @media (max-width:640px) { .db-modal { width:calc(100vw - 12px) !important; max-width:none !important; padding:14px 12px !important; } }
    .ph-seg button.on { color:#fff; box-shadow:0 2px 10px rgba(0,0,0,0.25); }
    .ph-seg button.on[data-v="__general__"] { background:#059669; }
    .ph-seg button.on[data-v="__credit__"] { background:#0891b2; }
    .ph-seg button.on[data-v="__choose__"] { background:#7c3aed; }
    .ph-choose { margin-top:8px; max-height:180px; overflow-y:auto; border-radius:10px; border:1px solid rgba(167,139,250,0.16); background:rgba(8,6,20,0.4); }
    .ph-ch { display:flex; align-items:center; gap:9px; padding:7px 10px; font-size:13px; color:var(--textSecondary); cursor:pointer; }
    .ph-ch + .ph-ch { border-top:1px solid rgba(167,139,250,0.08); }
    .ph-ch input { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin:0; flex:none; border-radius:4px; border:2px solid rgba(124,58,237,0.5); background:transparent center/10px 10px no-repeat; cursor:pointer; transition:background-color .15s, border-color .15s; }
    .ph-ch input:checked { background-color:#7c3aed; border-color:#7c3aed; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5 4,7.5 8.5,2.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
    .ph-ch input:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
    .ph-ch .l { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ph-ch b { color:var(--red); white-space:nowrap; font-weight:700; }
    .ph-prev { margin-top:10px; border-radius:10px; background:rgba(16,185,129,0.06); border:1px solid rgba(52,211,153,0.25); overflow:hidden; }
    .ph-pvh { padding:6px 11px; font:700 10px 'Orbitron',monospace; letter-spacing:1px; color:#34d399; border-bottom:1px solid rgba(52,211,153,0.18); }
    .ph-save { margin-top:10px; }
    .ph-flt { display:grid; grid-template-columns:1fr 1fr minmax(0,1.1fr) auto auto; gap:8px; align-items:end; margin-bottom:12px; }
    .ph-dtw .input { padding-right:32px; font-size:12.5px; }
    .ph-dtw .input::-webkit-calendar-picker-indicator { opacity:0; position:absolute; right:6px; width:24px; height:24px; cursor:pointer; }
    .ph-dtw > svg { position:absolute; right:10px; bottom:12px; width:15px; height:15px; color:var(--purpleLight); pointer-events:none; }
    .ph-reset, .ph-apply { height:38px; padding:0 14px !important; font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
    .ph-apply { background:linear-gradient(135deg,#7c3aed,#6d28d9) !important; color:#fff !important; border:0 !important; }
    .ph-sum { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; margin-bottom:8px; }
    .ph-s { position:relative; container-type:inline-size; padding:9px 10px 8px; border-radius:12px; background:rgba(8,6,20,0.5); border:1px solid rgba(167,139,250,0.16); min-width:0; }
    .ph-s small { display:block; font:700 9.5px 'Orbitron',monospace; letter-spacing:.8px; color:var(--textMuted); text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:40px; }
    .ph-s b { display:block; margin-top:4px; font-family:'Orbitron',monospace; font-weight:800; font-size:min(18px, 10.4cqi); line-height:1.15; white-space:nowrap; color:#fff; }
    .ph-s em { display:block; margin-top:2px; font-style:normal; font-size:11px; color:var(--textMuted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ph-s.g b { color:#34d399; } .ph-s.c b { color:#22d3ee; } .ph-s.a b { color:#f87171; }
    .ph-ed { position:absolute; top:5px; right:5px; display:flex; gap:1px; }
    .ph-ed button { width:22px; height:22px; border:0; border-radius:6px; background:transparent; color:var(--textMuted); cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; }
    .ph-ed button:hover { background:rgba(124,58,237,0.18); color:#fff; }
    .ph-ed svg { width:12px; height:12px; }
    .ph-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
    .ph-chips:empty { display:none; }
    .ph-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,0.05); border:1px solid rgba(167,139,250,0.16); font:600 13px 'Rajdhani',sans-serif; color:var(--textSecondary); }
    .ph-chip i { width:8px; height:8px; border-radius:50%; background:var(--c); }
    .ph-chip b { color:#fff; }
    .ph-red { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:-4px 0 12px; padding:7px 10px; border-radius:9px; font-size:12.5px; color:#f6d25d; background:rgba(251,191,36,0.06); border:1px solid rgba(251,191,36,0.16); }
    .ph-red b { color:#fff; }
    .ph-hh { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:2px 0 6px; }
    .ph-hh > span { font:700 11px 'Orbitron',monospace; letter-spacing:1.2px; color:var(--purpleLight); }
    .ph-sort { display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; color:var(--textSecondary); font:700 13px 'Rajdhani',sans-serif; cursor:pointer; padding:4px 2px; }
    .ph-sort svg { width:15px; height:15px; color:var(--purpleLight); }
    .ph-sort em { font-style:normal; }
    .ph-sort:hover { color:#fff; }
    .ph-list { max-height:50vh; overflow-y:auto; border-radius:12px; border:1px solid rgba(167,139,250,0.16); background:rgba(8,6,20,0.4); }
    .ph-dh { position:sticky; top:0; z-index:1; padding:5px 12px; font:700 10px 'Orbitron',monospace; letter-spacing:1px; color:var(--textMuted); background:rgba(20,15,42,0.97); border-bottom:1px solid rgba(167,139,250,0.16); }
    .ph-ev, .ph-open { border-bottom:1px solid rgba(167,139,250,0.08); }
    .ph-r { display:grid; grid-template-columns:26px minmax(0,1fr) auto 18px; gap:9px; align-items:center; padding:8px 10px 8px 12px; }
    .ph-ev.exp > .ph-r { cursor:pointer; }
    .ph-ic { width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; }
    .ph-ic svg { width:14px; height:14px; }
    .ph-ev.in .ph-ic { background:rgba(52,211,153,0.15); color:#34d399; }
    .ph-ev.use .ph-ic, .ph-open.use .ph-ic { background:rgba(6,182,212,0.15); color:#22d3ee; }
    .ph-ev.bill .ph-ic { background:rgba(167,139,250,0.16); color:var(--purpleLight); }
    .ph-ev.owe .ph-ic, .ph-open.owe .ph-ic { background:rgba(248,113,113,0.14); color:#f87171; }
    .ph-t { min-width:0; }
    .ph-t1 { font:700 14.5px 'Rajdhani',sans-serif; color:#fff; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ph-t2 { display:flex; align-items:baseline; gap:6px; font-size:12.5px; color:var(--textMuted); line-height:1.35; min-width:0; }
    .ph-t2 .rest { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ph-t2 .crd, .ph-mr .k.cr { color:#22d3ee; } .ph-t2 .due { color:#f87171; }
    .ph-ref { flex:none; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--purpleLight); font-family:ui-monospace,monospace; font-size:11.5px; cursor:pointer; border-bottom:1px dotted rgba(167,139,250,0.5); }
    .ph-pm { display:inline-flex; align-items:center; gap:4px; margin-left:6px; padding:0 7px; border-radius:999px; font:700 11px 'Rajdhani',sans-serif; background:rgba(255,255,255,0.06); border:1px solid rgba(167,139,250,0.16); color:var(--textSecondary); vertical-align:1px; }
    .ph-pm i { width:6px; height:6px; border-radius:50%; background:var(--c); }
    .ph-am { text-align:right; }
    .ph-am b { display:block; font:800 14px 'Orbitron',monospace; color:#fff; white-space:nowrap; }
    .ph-ev.in .ph-am b, .ph-ev.bill .ph-am b { color:#34d399; }
    .ph-ev.owe .ph-am b, .ph-open.owe .ph-am b { color:#f87171; }
    .ph-ev.out .ph-ic { background:rgba(248,113,113,0.14); color:#f87171; transform:rotate(180deg); } .ph-ev.out .ph-am b { color:#f87171; }
    .ph-am small { display:block; font-size:11.5px; color:var(--textMuted); white-space:nowrap; }
    .ph-am small.due { color:#f87171; }
    .ph-cv { width:16px; height:16px; color:var(--textMuted); transition:transform .2s; }
    .ph-ev.open .ph-cv { transform:rotate(180deg); }
    .ph-more { display:none; margin:0 10px 8px 47px; border-radius:9px; background:rgba(255,255,255,0.03); border:1px solid rgba(167,139,250,0.14); overflow:hidden; }
    .ph-ev.open .ph-more { display:block; }
    .ph-mr { display:flex; align-items:center; gap:10px; padding:5px 10px; font-size:13px; color:var(--textSecondary); }
    .ph-mr + .ph-mr { border-top:1px solid rgba(167,139,250,0.08); }
    .ph-mr .l { flex:1; min-width:0; display:flex; align-items:baseline; overflow:hidden; white-space:nowrap; }
    .ph-mr b { color:#fff; white-space:nowrap; }
    .ph-mr.cr b { color:#22d3ee; }
    .ph-mr .k { font-weight:700; flex:none; } .ph-mr .k.bl { color:var(--purpleLight); }
    .ph-mr .dt, .ph-ch .dt { color:var(--textMuted); margin:0 5px; flex:none; }
    .ph-act { display:flex; gap:2px; flex:none; }
    .ph-act button { width:24px; height:24px; border:0; border-radius:6px; background:transparent; color:var(--textMuted); cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
    .ph-act button:hover { background:rgba(124,58,237,0.18); color:#fff; }
    .ph-act .pay-del-btn:hover { color:#f87171; }
    .ph-act svg { width:13px; height:13px; }
    .ph-note, .ph-games { padding:5px 10px 6px; font-size:12px; color:var(--textMuted); }
    .ph-note { border-top:1px solid rgba(167,139,250,0.08); }
    .ph-empty { padding:14px; text-align:center; font-size:13px; color:var(--textMuted); }
    .ph-tip { position:fixed; display:flex; z-index:2147483647; white-space:nowrap; }
    .ph-tip button { background:none; border:0; box-shadow:none; padding:2px; margin:0; width:auto; height:auto; min-height:0; display:flex; align-items:center; cursor:pointer; color:#a78bfa; line-height:1; }
    .ph-tip button:hover { color:#fff; background:none; }
    @media (max-width:720px) {
      .ph-flt { grid-template-columns:1fr 1fr; }
      .ph-flt .ph-fm { grid-column:1 / -1; }
      .ph-g3 { grid-template-columns:1fr 1fr; }
      .ph-g3 #payMethodWrap, .ph-g3 .ph-f:last-child { grid-column:1 / -1; }
    }
    @media (max-width:520px) { .ph-sum { grid-template-columns:repeat(2, minmax(0,1fr)); } .ph-seg button { font-size:12px; } }
    @media (max-width:640px) {
      #paymentRecordModal { padding:6px !important; }
      .ph-modal { width:calc(100vw - 12px) !important; max-width:none !important; padding:14px 12px !important; max-height:96vh; }
      .ph-more { margin-left:12px; }
    }
    .home-arm-cta { display:flex; flex-direction:column; align-items:center; gap:8px; margin:6px auto 26px; }
    .home-arm-cta .btn { display:inline-flex; align-items:center; gap:10px; min-height:48px; }
    .home-arm-cta .arm-logo path { fill:#fff; }
    .home-arm-cta-n { font-size:13px; color:var(--textMuted); text-align:center; }
    .home-faq-link { display:inline; padding:0; border:0; background:none; font:inherit; color:var(--purpleLight); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
    .armdl { max-width:520px; max-height:92vh; overflow-y:auto; }
    .armdl-why { padding:10px 12px; margin-bottom:12px; border-radius:10px; font-size:14px; font-weight:600; color:#fde68a; background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.3); }
    .armdl-hero { display:flex; align-items:center; gap:14px; margin-bottom:10px; }
    .armdl-hero-ic { flex:none; width:60px; height:60px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:rgba(124,58,237,0.14); border:1px solid rgba(167,139,250,0.3); }
    .armdl-hero b { display:block; font:700 15px 'Orbitron',monospace; letter-spacing:.5px; color:#fff; }
    .armdl-hero small { display:block; margin-top:3px; font-size:13px; color:var(--textMuted); }
    .armdl-lead { margin:0 0 12px; font-size:14px; line-height:1.5; color:var(--textSecondary); }
    .armdl-status { padding:9px 12px; border-radius:10px; font-size:13px; font-weight:600; color:var(--textSecondary); background:rgba(124,58,237,0.08); border:1px solid rgba(124,58,237,0.2); margin-bottom:12px; }
    .armdl-status.ok { color:#4ade80; background:rgba(34,197,94,0.08); border-color:rgba(34,197,94,0.25); }
    .armdl-status.warn { color:#fbbf24; background:rgba(245,158,11,0.08); border-color:rgba(245,158,11,0.25); }
    .armdl-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; text-decoration:none; }
    .armdl-link { display:block; margin:12px auto 0; background:none; border:0; padding:4px; font:600 13px 'Rajdhani',sans-serif; color:var(--purpleLight); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
    .armdl-h { margin:4px 0 10px; font:700 11px 'Orbitron',monospace; letter-spacing:1px; color:var(--purpleLight); text-transform:uppercase; }
    .armdl-steps { list-style:none; margin:0 0 12px; padding:0; display:flex; flex-direction:column; gap:10px; }
    .armdl-step { display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.5; color:var(--textPrimary); }
    .armdl-n { flex:none; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font:700 11px 'Orbitron',monospace; color:#fff; background:linear-gradient(135deg,var(--purple),var(--cyan)); margin-top:1px; }
    .armdl-prog { display:flex; gap:5px; margin-bottom:12px; }
    .armdl-prog i { flex:1; height:4px; border-radius:4px; background:rgba(167,139,250,0.18); }
    .armdl-prog i.done { background:rgba(167,139,250,0.6); }
    .armdl-prog i.on { background:linear-gradient(90deg,var(--purple),var(--cyan)); }
    .armdl-sn { font:700 10px 'Orbitron',monospace; letter-spacing:1px; color:var(--textMuted); text-transform:uppercase; }
    .armdl-st { margin:4px 0 8px; font:700 19px 'Rajdhani',sans-serif; color:#fff; outline:none; }
    .armdl-sd { margin:0 0 12px; font-size:14.5px; line-height:1.55; color:var(--textSecondary); }
    .armdl-sd b, .armdl-step b, .armdl-note b { color:var(--textPrimary); }
    .armdl-note { margin:10px 0 0; font-size:13px; line-height:1.5; color:var(--textMuted); }
    .armdl-nav { display:flex; justify-content:space-between; gap:10px; margin-top:18px; }
    .armdl-nav .btn { min-width:110px; min-height:42px; justify-content:center; }
    .armv { padding:14px; border-radius:12px; background:rgba(8,6,20,0.55); border:1px solid rgba(167,139,250,0.18); display:flex; flex-direction:column; gap:10px; }
    .armv-files { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .armv-file { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:9px; background:rgba(255,255,255,0.05); font:600 13px 'Rajdhani',sans-serif; color:var(--textPrimary); }
    .armv-file.armv-on { border:1px solid rgba(34,211,238,0.5); }
    .armv-zip { padding:2px 5px; border-radius:4px; font:800 9px 'Orbitron',monospace; color:#fff; background:#7c3aed; }
    .armv-fold { width:18px; height:14px; border-radius:2px 3px 3px 3px; background:#fbbf24; position:relative; }
    .armv-fold::before { content:""; position:absolute; left:0; top:-3px; width:8px; height:4px; border-radius:2px 2px 0 0; background:#fbbf24; }
    .armv-arrow { color:var(--textMuted); font-weight:700; }
    .armv-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 10px; border-radius:9px; background:rgba(255,255,255,0.06); }
    .armv-bar-t { font:600 14px system-ui,sans-serif; color:#e5e7eb; }
    .armv-dev { margin-left:auto; display:flex; align-items:center; gap:8px; font:500 13px system-ui,sans-serif; color:#e5e7eb; padding:4px 6px; border-radius:8px; outline:2px solid rgba(34,211,238,0.7); outline-offset:2px; }
    .armv-sw { width:30px; height:16px; border-radius:16px; background:#8ab4f8; position:relative; flex:none; }
    .armv-sw i { position:absolute; right:2px; top:2px; width:12px; height:12px; border-radius:50%; background:#1a73e8; }
    .armv-btn { padding:6px 12px; border-radius:16px; border:1px solid #5f6368; font:500 13px system-ui,sans-serif; color:#8ab4f8; outline:2px solid rgba(34,211,238,0.7); outline-offset:2px; }
    .armv-btn.armv-dim { outline:none; opacity:.45; }
    .armv-card { display:flex; align-items:center; gap:10px; padding:10px; border-radius:9px; background:rgba(255,255,255,0.06); }
    .armv-card b { display:block; font:600 13px system-ui,sans-serif; color:#e5e7eb; }
    .armv-card small { display:block; font:400 12px system-ui,sans-serif; color:#9aa0a6; }
    .armv-card .armv-sw { margin-left:auto; }
    .armv-tool .armv-url { flex:1; height:22px; border-radius:11px; background:rgba(255,255,255,0.08); }
    .armv-puz { display:flex; padding:3px; border-radius:6px; outline:2px solid rgba(34,211,238,0.7); }
    .armv-pin { font-size:14px; }
    .armv-copy { display:flex; align-items:center; gap:8px; margin-bottom:10px; padding:8px 8px 8px 12px; border-radius:10px; background:rgba(8,6,20,0.55); border:1px solid rgba(167,139,250,0.25); }
    .armv-copy code { flex:1; font:600 14px ui-monospace,monospace; color:#67e8f9; }
    .armv-check:empty { display:none; }
    .armv-check { margin-top:12px; padding:10px 12px; border-radius:10px; font-size:14px; line-height:1.5; }
    .armv-check.ok { color:#bbf7d0; background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.3); }
    .armv-check.warn { color:#fde68a; background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.3); }
    .armv-check .armdl-link { display:inline; margin:0; padding:0; font-size:14px; }
    .arm-ext-btn { position:relative; width:38px; height:38px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; background:rgba(124,58,237,0.12); border:1px solid rgba(167,139,250,0.3); padding:0; flex:none; }
    .arm-ext-btn:hover { background:rgba(124,58,237,0.24); border-color:rgba(167,139,250,0.55); }
    .arm-ext-btn:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
    .arm-bdg { position:absolute; width:15px; height:15px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid #120c26; box-sizing:content-box; }
    .arm-bdg-ok { top:-5px; right:-5px; background:#22c55e; }
    .arm-bdg-get { bottom:-5px; right:-5px; background:#7c3aed; }
    .arm-ext-btn[data-arm-st="old"] .arm-bdg-get { background:#f59e0b; }
    .arm-row-ic { position:relative; flex:none; width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(124,58,237,0.12); border:1px solid rgba(167,139,250,0.28); }
    [data-arm-row] .btn { flex:none; white-space:nowrap; }
    [data-arm-row] .arm-rf { width:34px; height:32px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; margin-left:4px; border:1px solid rgba(167,139,250,0.3) !important; }
    @media (max-width:640px) { .arm-ext-btn { display:none !important; } }
    html[data-theme="light"] .arm-bdg { border-color:#fff; }
    html[data-theme="light"] .armdl-hero b, html[data-theme="light"] .armdl-st { color:#1c1433; }
    html[data-theme="light"] .armdl-why, html[data-theme="light"] .armv-check.warn { color:#92400e; }
    html[data-theme="light"] .armv-check.ok { color:#166534; }
    html[data-theme="light"] .armv { background:#1f1b2e; }
    html[data-theme="light"] .armdl-status.ok { color:#15803d; }
    html[data-theme="light"] .armdl-status.warn { color:#b45309; }
    .mgs-list { position:absolute; left:0; right:0; top:calc(100% + 2px); z-index:30; max-height:240px; overflow-y:auto; padding:4px; border-radius:12px;
      background:rgba(20,14,42,0.98); border:1px solid rgba(167,139,250,0.3); box-shadow:0 14px 34px rgba(0,0,0,0.5); scrollbar-width:thin; scrollbar-color:rgba(124,58,237,0.55) transparent; }
    .mgs-list[hidden] { display:none; }
    .mgs-h { padding:6px 10px 4px; font:700 10px 'Orbitron',monospace; letter-spacing:1px; color:var(--textMuted); text-transform:uppercase; }
    .mgs-opt { padding:8px 10px; border-radius:8px; font:600 14px 'Rajdhani',sans-serif; color:var(--textPrimary); cursor:pointer; }
    .mgs-opt.on { background:rgba(124,58,237,0.28); color:#fff; }
    html[data-theme="light"] .mgs-list { background:#fff; border-color:rgba(109,40,217,0.2); box-shadow:0 14px 34px rgba(76,52,170,0.18); }
    html[data-theme="light"] .mgs-opt.on { background:rgba(109,40,217,0.12); color:#1c1433; }
    .mgi-addcard-t { font:700 12px 'Orbitron',monospace; letter-spacing:1.2px; color:var(--purpleLight); margin-bottom:10px; }
    .mgi-fgrid { display:grid; grid-template-columns:2fr 1fr .8fr; gap:10px; }
    .mgi-f { display:flex; flex-direction:column; gap:5px; min-width:0; }
    .mgi-f > span, .mgi-f > label, .mgi-f > small { padding-left:13px; }
    .mgi-f > span, .mgi-f > label { font-size:13px; font-weight:700; color:var(--textSecondary); }
    .mgi-f > small { font-size:12px; color:var(--textMuted); }
    .mgi-f .input { height:42px; padding-left:12px; }
    .mgi-addact { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
    .mgi-ok { border:0 !important; color:#fff !important; background:linear-gradient(135deg,#059669,#047857) !important; padding:0 16px; height:36px; }
    .mgi-list { max-height:min(52vh, 440px); overflow-y:auto; border-radius:14px; border:1px solid rgba(167,139,250,0.16); }
    #masterGamesModal .mgi-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto 14px; align-items:center; gap:12px; padding:11px 14px; border-top:1px solid rgba(167,139,250,0.12); border-radius:0; margin:0; }
    #masterGamesModal .mgi-row:first-child { border-top:0; }
    .mgi-ico { width:34px; height:34px; border-radius:10px; background:rgba(124,58,237,0.14); display:flex !important; align-items:center; justify-content:center; }
    .mgi-info { min-width:0; overflow:visible !important; padding-bottom:1px; }
    .mgi-name { font-size:15px; font-weight:700; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .mgi-sub { font-size:12.5px; color:var(--textMuted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .mgi-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
    .mgi-chip { display:inline-flex; align-items:center; font-size:12px; font-weight:800; line-height:1.3; padding:1px 8px; border-radius:6px; border:1px solid; }
    .mgi-chip-cost { color:#fdba74; border-color:rgba(253,186,116,0.55); background:rgba(251,146,60,0.16); }
    .mgi-chip-ord { color:#fde047; border-color:rgba(253,224,71,0.55); background:rgba(250,204,21,0.15); }
    .mgi-pts { text-align:right; }
    .mgi-pts b { display:block; font:700 18px 'Rajdhani',sans-serif; color:#22d3ee; font-variant-numeric:tabular-nums; }
    .mgi-pts small { font-size:12px; color:var(--textMuted); }
    .mgi-pts.low b { color:#f87171; }
    .mgi-arrow { color:var(--textMuted); }
    .mgi-sum { margin-top:12px; }
    .mgi-sum:empty { display:none; }
    .mgi-sum-t { font:700 11px 'Orbitron',monospace; letter-spacing:1.2px; color:var(--textMuted); margin-bottom:8px; }
    .mgi-sum-g { display:grid; grid-template-columns:repeat(auto-fit, minmax(122px, 1fr)); gap:8px; }
    .mgi-sum-c { padding:10px 12px; border-radius:12px; border:1px solid rgba(167,139,250,0.16); background:rgba(255,255,255,0.03); display:flex; flex-direction:column; gap:2px; }
    .mgi-sum-c span { font-size:12px; color:var(--textMuted); }
    .mgi-sum-c b { font:700 18px 'Rajdhani',sans-serif; color:var(--textPrimary); font-variant-numeric:tabular-nums; }
    .mgi-sum-c b.c { color:#22d3ee; } .mgi-sum-c b.a { color:#fde047; } .mgi-sum-c b.g { color:#34d399; } .mgi-sum-c b.r { color:#f87171; }
    .mgi-sum-turn { margin-top:8px; padding:10px 12px; border-radius:12px; border:1px solid rgba(167,139,250,0.16); background:rgba(255,255,255,0.03); }
    .mgi-sum-turn > span { font-size:12px; color:var(--textMuted); }
    .mgi-sum-turn ol { margin:6px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:3px; }
    .mgi-sum-turn li b { color:var(--textPrimary); margin-right:8px; } .mgi-sum-turn li i { font-style:normal; color:var(--textMuted); font-size:13px; }
    @media (max-width:600px) {
      .mgi-csv-lbl { display:none; }
      .mgi-csv { width:38px; padding:0; justify-content:center; }
      .mgi-bar { flex-wrap:wrap; }
      .mgi-search { flex:1 1 100%; }
      .mgi-per { flex:1 1 0; min-width:0; } .mgi-per-btn { width:100%; justify-content:center; overflow:hidden; } .mgi-per-btn > span { overflow:hidden; text-overflow:ellipsis; }
      .mgi-add { flex:0 0 auto; justify-content:center; padding:0 12px; gap:5px; }

      .mgi-fgrid { grid-template-columns:1fr 1fr; }
      .mgi-f-name { grid-column:1 / -1; }
    }
    .ga-lvl-wrap { position:relative; }
    .ga-lvl-drop { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:9999; max-height:240px; overflow-y:auto; padding:4px; border-radius:10px;
      background:rgba(16,13,30,0.86); backdrop-filter:blur(26px) saturate(160%); -webkit-backdrop-filter:blur(26px) saturate(160%); border:1px solid var(--glassBorder); box-shadow:0 12px 40px rgba(0,0,0,0.6); }
    .ga-lvl-drop[hidden] { display:none; }
    .ga-lvl-opt { display:flex; align-items:center; min-height:36px; padding:6px 10px; border-radius:8px; cursor:pointer; }
    .ga-lvl-opt:hover, .ga-lvl-opt.on { background:rgba(124,58,237,0.25); }
    .ga-lvl-opt[hidden] { display:none; }
    .ga-lvl-none { font-size:13px; color:var(--textMuted); }
    .ga-pts { flex-shrink:0; margin-left:auto; display:inline-flex; align-items:baseline; gap:4px; font-size:10.5px; font-weight:700; letter-spacing:0.6px; color:var(--textMuted); white-space:nowrap; }
    .ga-pts b { font:800 16px 'Rajdhani',sans-serif; letter-spacing:0; color:#5eeaff; font-variant-numeric:tabular-nums; }
    .ga-card .ga-tile-meta { padding-left:0; }
    .ga-card-meta { padding-left:0; }
    .emp-head { display:flex; align-items:center; gap:8px; margin:0 0 14px -6px; }
    .emp-head-t { flex:1; min-width:0; display:flex; align-items:center; gap:6px; font:800 16px 'Orbitron',monospace; color:var(--purpleLight); letter-spacing:1px; white-space:nowrap; }
    .emp-head-t span { overflow:hidden; text-overflow:ellipsis; }
    .emp-head-t .ac-info-btn { flex-shrink:0; }
    .emp-hbtn { gap:6px; flex-shrink:0; }
    @media (min-width:641px) { .cf-head .cf-title { flex:0 1 auto !important; } .cf-head .ac-info-btn { margin-right:auto; margin-left:-4px; } }
    .emp-sync-stack { position:relative; display:inline-block; width:18px; height:18px; flex-shrink:0; }
    .emp-sync-stack svg { position:absolute; inset:0; width:100%; height:100%; }
    .emp-arr { animation:empSpin .9s linear infinite; }
    @keyframes empSpin { to { transform:rotate(360deg); } }
    @media (max-width:640px) {
      .emp-head { gap:6px; }
      .emp-head-t { font-size:13.5px; letter-spacing:.2px; gap:4px; }
      .emp-hbtn .emp-sync-ico { width:20px; height:20px; }
      .emp-head-t .ac-info-btn { width:24px; height:24px; }
      .emp-head-t .ac-info-btn svg { width:14px; height:14px; }
      .emp-hbtn { width:36px !important; height:36px; }
      .emp-hbtn { width:38px; height:38px; padding:0 !important; justify-content:center; }
      .emp-hbtn .emp-hl { display:none; }
    }
    .ga-card-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
    .ga-card-row { display:flex; align-items:center; gap:12px; min-width:0; }
    .ga-card-row .ga-card-name { flex:1; min-width:0; }
    .ga-card > .ga-card-top { flex:1; }
    .ga-split { display:grid; grid-template-columns:minmax(300px,360px) 1fr; gap:20px; align-items:start; }
    .ga-side { position:sticky; top:76px; max-height:calc(100dvh - 92px); display:flex; flex-direction:column; min-height:0; }
    .ga-side > .ga-side-list { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; -ms-overflow-style:none; padding:2px 2px 16px; margin:-2px; }
    .ga-side > .ga-side-list::-webkit-scrollbar { display:none; }
    .ga-side-list { display:flex; flex-direction:column; gap:8px; }
    .ga-split-main { min-width:0; }
    .ga-more { position:relative; color:#67e8f9; font-weight:600; text-decoration:underline dotted; text-underline-offset:3px; cursor:help; outline:none; }
    .ga-tip { position:absolute; left:50%; bottom:calc(100% + 8px); transform:translate(-50%,4px); min-width:150px; max-width:240px; padding:8px 12px; border-radius:12px;
      font-size:12.5px; font-weight:600; line-height:1.6; color:var(--textPrimary); text-decoration:none; white-space:normal; text-align:left;
      background:linear-gradient(135deg,rgba(255,255,255,0.12) 0%,rgba(28,20,60,0.88) 45%,rgba(124,58,237,0.16) 100%);
      backdrop-filter:blur(18px) saturate(160%); -webkit-backdrop-filter:blur(18px) saturate(160%);
      border:1px solid rgba(255,255,255,0.16); box-shadow:0 12px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
      opacity:0; visibility:hidden; pointer-events:none; transition:opacity 0.15s, transform 0.15s, visibility 0.15s; z-index:20; }
    .ga-more:hover .ga-tip, .ga-more:focus .ga-tip, .ga-more:focus-within .ga-tip { opacity:1; visibility:visible; transform:translate(-50%,0); }
    .ga-card-bal { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; font-size:11px; color:var(--textMuted); line-height:1.25; text-align:right; }
    .ga-card-bal b { font:800 18px/1.1 'Rajdhani',sans-serif; color:#5eeaff; font-variant-numeric:tabular-nums; }
    .ga-row-bal { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; }
    .ga-row-bal b { font:800 16px 'Rajdhani',sans-serif; color:#5eeaff; font-variant-numeric:tabular-nums; }
    .ga-row-bal small { font-size:11px; color:var(--textMuted); }
    .ga-card-hit { display:inline-flex; align-items:center; gap:4px; color:#67e8f9; font-weight:600; }
    .ga-card-name { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
    .ga-tile-name { max-width:100%; font:700 18px/1.2 'Rajdhani',sans-serif; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-card-host { font-size:12.5px; color:var(--textMuted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-tile-meta { display:flex; flex-wrap:wrap; gap:6px; }

    .ga-logo { position:relative; width:44px; height:44px; flex-shrink:0; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center;
      background:linear-gradient(135deg,rgba(124,58,237,0.38),rgba(6,182,212,0.26)); border:1px solid rgba(167,139,250,0.24); }
    .ga-logo b { font:700 18px 'Rajdhani',sans-serif; color:#ede9fe; }
    .ga-logo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:7px; box-sizing:border-box; background:#f4f2fb; opacity:0; transition:opacity 0.15s; }
    .ga-logo.has-img img { opacity:1; }
    .ga-logo.has-img b { visibility:hidden; }
    .ga-logo-sm { width:36px; height:36px; }
    .ga-logo-lg { width:56px; height:56px; border-radius:12px; }
    .ga-logo-lg b { font-size:22px; }
    .mg-empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:26px 16px 30px; }
    .mg-empty-art { width:96px; height:96px; opacity:.5; filter:saturate(.55); margin-bottom:6px; }
    .mg-empty b { font:700 16px 'Rajdhani',sans-serif; color:var(--textMuted); }
    .mg-empty p { margin:0; font:500 14px/1.4 'Rajdhani',sans-serif; color:var(--textMuted); opacity:.8; }

    .ga-chip { display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 8px; border-radius:999px; font:700 11.5px/1 'Rajdhani',sans-serif; letter-spacing:0.2px; white-space:nowrap; border:1px solid; flex-shrink:0; }
    .ga-card.is-tight .ga-chip-l { display:none; }
    .ga-card.is-tight .ga-chip { padding:0 5px; }
    .ga-chip-cyan { color:#5eeaff; background:rgba(6,182,212,0.16); border-color:rgba(34,211,238,0.5); }
    .ga-chip-magenta { color:#ffb1f4; background:linear-gradient(135deg,rgba(217,70,239,0.3),rgba(168,85,247,0.2)); border-color:rgba(232,121,249,0.65); }
    .ga-chip-blue { color:#b4c8ff; background:rgba(59,130,246,0.2); border-color:rgba(96,165,250,0.55); }
    .ga-chip-pink { color:#ffb3dc; background:rgba(236,72,153,0.18); border-color:rgba(244,114,182,0.5); }
    .ga-chip-muted { color:#cbd5e1; background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.18); }
    .ga-chip-red { color:#ffadad; background:rgba(239,68,68,0.16); border-color:rgba(248,113,113,0.5); }

    .ga-st { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600; white-space:nowrap; }
    .ga-st-ok { color:#4ade80; }
    .ga-st-muted { color:var(--textMuted); font-weight:500; }
    .ga-warn-txt { color:#fbbf24; }
    .ga-muted { color:var(--textMuted); }
    .ga-err { color:#f87171; }

    .ga-hero { padding:12px 10px 12px 14px; margin-bottom:10px; border-radius:16px;
      background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(18,12,40,0.6) 45%,rgba(124,58,237,0.07) 100%); border:1px solid rgba(167,139,250,0.18); }
    .ga-hero-row { display:flex; align-items:center; gap:12px; min-width:0; }
    .ga-hero-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
    .ga-hero-host { font-size:13px; color:var(--textMuted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-plink { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; flex-shrink:0; }
    .ga-hero-note { margin:10px 4px 0 0; padding-top:10px; border-top:1px solid rgba(167,139,250,0.12); font-size:13px; line-height:1.5; color:var(--textMuted); }
    .ga-hero-note b { color:var(--textPrimary); font-weight:600; }

    .ga-list { border-radius:16px; overflow:hidden; border:1px solid rgba(167,139,250,0.18);
      background:linear-gradient(135deg,rgba(255,255,255,0.05) 0%,rgba(18,12,40,0.6) 45%,rgba(124,58,237,0.06) 100%); }
    .ga-row { display:flex; align-items:center; gap:10px; padding:10px 10px 10px 14px; transition:background 0.15s; -webkit-tap-highlight-color:transparent; }
    .ga-row + .ga-row { border-top:1px solid rgba(167,139,250,0.1); }
    .ga-row:hover { background:rgba(6,182,212,0.03); }
    .ga-row:active { background:rgba(6,182,212,0.1); }
    .ga-row.is-busy { opacity:0.6; pointer-events:none; }
    .ga-row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
    .ga-row-name { display:flex; align-items:center; gap:8px; min-width:0; }
    .ga-uname { font:700 17px/1.2 'Rajdhani',sans-serif; color:var(--textPrimary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-row-name .ac-lvl { flex-shrink:0; font-size:9.5px; padding:1px 7px; line-height:1.45; letter-spacing:0.45px; }
    .ga-row-st { display:flex; flex-wrap:wrap; gap:4px 14px; }
    .ga-row-act { display:flex; align-items:center; gap:4px; flex-shrink:0; }

    .ga-login, .ga-go { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; color:#fff; white-space:nowrap; cursor:pointer;
      font:700 14px 'Rajdhani',sans-serif; letter-spacing:0.4px; text-transform:uppercase;
      background:linear-gradient(135deg,#7c3aed 0%,#2563eb 55%,#06b6d4 100%);
      box-shadow:0 4px 16px rgba(124,58,237,0.32), inset 0 1px 0 rgba(255,255,255,0.22); transition:filter 0.15s, transform 0.1s; }
    .ga-login { min-height:38px; padding:0 14px; border-radius:10px; }
    .ga-login:hover, .ga-go:hover { filter:brightness(1.12); }
    .ga-login:active, .ga-go:active { transform:scale(0.98); }

    .ga-empty { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:48px 20px; color:var(--textMuted); font-size:14px; line-height:1.55; }
    .ga-empty b { color:var(--textPrimary); font:700 17px 'Rajdhani',sans-serif; }
    .ga-empty span { max-width:42ch; }
    .ga-empty .btn { margin-top:6px; display:inline-flex; align-items:center; gap:6px; }
    .ga-empty-sm { padding:24px 12px; }
    .ga-empty-ico { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#22d3ee; background:rgba(6,182,212,0.08); border:1px solid rgba(6,182,212,0.2); margin-bottom:4px; }
    .ga-skel { cursor:default; pointer-events:none; }
    .ga-skel .ga-logo { background:rgba(255,255,255,0.06); border-color:transparent; }
    .ga-skel-lines { flex:1; display:flex; flex-direction:column; gap:8px; }
    .ga-skel-lines i { display:block; height:12px; border-radius:6px; background:rgba(255,255,255,0.06); width:60%; }
    .ga-skel-lines i + i { width:35%; height:10px; }
    @media (prefers-reduced-motion: no-preference) { .ga-skel-lines i, .ga-skel .ga-logo { animation:gaPulse 1.4s ease-in-out infinite; } }
    @keyframes gaPulse { 50% { opacity:0.45; } }

    .ga-modal { max-width:440px; width:calc(100% - 32px); padding:20px; }
    .ga-modal-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; }
    .ga-modal-head > div { flex:1; min-width:0; }
    .ga-modal-head .ga-icon-btn { margin:-8px -8px 0 0; }
    .ga-modal-head [data-close], .ga-modal-head .ga-expand { width:32px; height:32px; min-width:32px; border:1px solid rgba(167,139,250,0.3) !important; border-radius:9px; color:var(--textSecondary); }
    .ga-modal-head [data-close]:hover, .ga-modal-head .ga-expand:hover { border-color:rgba(167,139,250,0.6) !important; background:rgba(124,58,237,0.12); }
    .ga-modal-head > [data-close] { margin:0 0 0 auto; }
    .ga-modal-head > .ga-head-btns { margin:0 0 0 auto !important; }
    .ga-modal-title { margin:0; font:700 20px/1.25 'Rajdhani',sans-serif; color:var(--textPrimary); }
    .ga-modal-sub { margin-top:2px; font-size:13.5px; color:var(--textMuted); }
    .ga-pick-list { display:flex; flex-direction:column; gap:6px; max-height:56vh; overflow:auto; margin:0 -4px; padding:0 4px 2px; }
    .ga-pick { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:8px 12px; border-radius:10px; text-align:left; cursor:pointer; color:var(--textMuted); font:inherit;
      background:rgba(255,255,255,0.03); border:1px solid rgba(167,139,250,0.12); }
    .ga-pick:hover:not([disabled]) { border-color:rgba(6,182,212,0.4); }
    .ga-pick[disabled] { opacity:0.45; cursor:default; }
    .ga-pick[hidden], .ga-empty[hidden], .ga-help[hidden] { display:none; }
    .ga-pick .ga-tile-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
    .ga-pick .ga-tile-name { font-size:16px; }
    .ga-pick-sub { font-size:12.5px; color:var(--textMuted); }
    .ga-help { margin:8px 0 0; font-size:13px; line-height:1.5; color:var(--textMuted); }

    .ga-form { display:flex; flex-direction:column; gap:16px; }
    .ga-field { display:flex; flex-direction:column; gap:6px; margin:0; padding:0; border:0; min-width:0; }
    .ga-lbl { font-size:12.5px; font-weight:600; color:#c4b5fd; padding:0; }
    .ga-seg { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:10px; background:rgba(255,255,255,0.04); border:1px solid rgba(167,139,250,0.14); }
    .ga-seg label { position:relative; cursor:pointer; }
    .ga-seg input { position:absolute; opacity:0; pointer-events:none; }
    .ga-seg span { display:flex; align-items:center; justify-content:center; gap:6px; min-height:36px; border-radius:7px; font-size:13.5px; font-weight:600; color:var(--textMuted); transition:background 0.15s, color 0.15s; }
    .ga-seg input:checked + span { color:var(--textPrimary); background:rgba(6,182,212,0.16); box-shadow:inset 0 0 0 1px rgba(6,182,212,0.4); }
    .ga-seg input:focus-visible + span { outline:2px solid #22d3ee; outline-offset:1px; }
    .ga-form-btns { display:flex; justify-content:flex-end; gap:8px; }
    .ga-form-btns .btn { min-height:40px; padding:0 18px; }

    .ga-sheet { display:flex; flex-direction:column; gap:12px; }
    .ga-code-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:14px; background:rgba(6,182,212,0.06); border:1px solid rgba(6,182,212,0.2); }
    .ga-code-num { font:800 32px/1 'Orbitron',monospace; letter-spacing:2px; color:#f1edff; font-variant-numeric:tabular-nums; }
    .ga-go { width:100%; min-height:48px; border-radius:12px; font-size:15px; }
    .ga-go span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ga-go:disabled { filter:grayscale(0.7); opacity:0.6; cursor:default; }
    .ga-go.is-done, .ga-copy.is-done { box-shadow:0 0 0 2px rgba(74,222,128,0.6); }
    .ga-copy-list { display:flex; flex-direction:column; border-radius:14px; overflow:hidden; border:1px solid rgba(167,139,250,0.14); }
    .ga-copy { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:0 14px; text-align:left; font:inherit; color:var(--textMuted);
      background:rgba(255,255,255,0.02); border:0; cursor:pointer; }
    .ga-copy + .ga-copy { border-top:1px solid rgba(167,139,250,0.1); }
    .ga-copy:hover:not(.is-static) { background:rgba(255,255,255,0.05); }
    .ga-copy.is-static { cursor:default; }
    .ga-copy .ga-lbl { width:76px; flex-shrink:0; }
    .ga-copy-val { flex:1; min-width:0; color:var(--textPrimary); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

    @media (max-width:640px) {
      .ga-title { font-size:16px; }
      .ga-add span, .ga-reorder-btn span, .ga-rm-btn span { display:none; }
      .ga-rm-btn { width:40px; padding:0 !important; justify-content:center; }
      .al-pend-btn { display:none !important; }
      .al-pend-bar:not([hidden]) { display:flex; }
      .ga-head-sub { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .ga-add, .ga-reorder-btn { width:40px; padding:0; justify-content:center; }
      .ga-grid { grid-template-columns:1fr; gap:8px; grid-auto-rows:auto; }
      .ga-card { padding:11px 12px; gap:8px; }
      .ga-card .ga-logo { width:40px; height:40px; }
      .ga-tile-name { font-size:16.5px; }
      .ga-login { padding:0 12px; }
      .ga-modal { padding:18px 16px; }
      .ga-row { flex-wrap:wrap; row-gap:8px; }
      .ga-row-main { flex:1 1 100%; }
      .ga-row-bal { margin-right:auto; align-items:flex-start; }
      .ga-row-act { margin-left:auto; }
      .ga-total-row .ga-row-act { margin-left:auto; }
      .ga-plink span { display:none; }
      .ga-plink { width:38px; padding:0; justify-content:center; }
      .ga-card-main { gap:6px; }
    }

    #reportDateModal > .modal, #invoiceSettingsModal > .modal, #exportModal > .modal, #importModal > .modal, #securitySettingsModal > .modal, #advSettingsOverlay > .modal, #masterGamesModal > .modal, #mgDetailOverlay > .modal {
      background:linear-gradient(150deg,rgba(255,255,255,0.075) 0%,rgba(56,36,116,0.44) 32%,rgba(22,15,50,0.64) 100%);
      backdrop-filter:blur(42px) saturate(175%); -webkit-backdrop-filter:blur(42px) saturate(175%);
      border-color:rgba(255,255,255,0.12);
      box-shadow:0 30px 80px rgba(0,0,0,0.55),0 1px 0 rgba(255,255,255,0.11) inset,0 -1px 0 rgba(0,0,0,0.22) inset,0 0 70px rgba(124,58,237,0.12);
    }
    body #calcModalOverlay { background:rgba(0,0,0,0.5); backdrop-filter:none; -webkit-backdrop-filter:none; }
    body #calcModalOverlay #calcModal { backdrop-filter:blur(42px) saturate(1.6); -webkit-backdrop-filter:blur(42px) saturate(1.6); border-top-color:rgba(255,255,255,0.09); }

    @keyframes saJiggle { 0% { rotate:-0.55deg; } 50% { rotate:0.55deg; } 100% { rotate:-0.55deg; } }
    .ac-reordering .ac-card { animation:saJiggle 0.3s ease-in-out infinite; animation-delay:var(--jd,0s); cursor:grab; touch-action:none; }
    .ac-reordering .ac-more { visibility:hidden; }
    .sa-grip { display:none; }
    .ac-reordering .sa-grip, .account-panel.menu-reorder .sa-menu-ro::after {
      display:block; position:absolute; top:-7px; right:-7px; width:20px; height:20px; border-radius:50%; z-index:2; pointer-events:none;
      background:rgba(30,24,58,0.95) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c4b5fd'><circle cx='9' cy='7' r='1.6'/><circle cx='15' cy='7' r='1.6'/><circle cx='9' cy='12' r='1.6'/><circle cx='15' cy='12' r='1.6'/><circle cx='9' cy='17' r='1.6'/><circle cx='15' cy='17' r='1.6'/></svg>") center/14px no-repeat;
      border:1px solid rgba(167,139,250,0.55); box-shadow:0 2px 8px rgba(0,0,0,0.45);
    }
    .account-panel.menu-reorder .sa-menu-ro::after { content:''; }
    .account-panel .sa-menu-ro { position:relative !important; }
    .account-panel.menu-reorder .sa-menu-ro { animation:saJiggle 0.3s ease-in-out infinite; animation-delay:var(--jd,0s); cursor:grab !important; touch-action:none; }
    .account-panel .sa-menu-ro, .account-panel .sa-menu-ro * { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
    .sa-flip { transition:translate 0.22s cubic-bezier(.2,.8,.2,1), filter 0.12s !important; }
    .sa-dragging { animation:none !important; transition:none !important; z-index:30 !important; scale:1.04; cursor:grabbing !important; box-shadow:0 16px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.4) !important; }
    @media (prefers-reduced-motion: reduce) {
      .ac-reordering .ac-card, .account-panel.menu-reorder .sa-menu-ro { animation:none; outline:1px dashed rgba(167,139,250,0.5); outline-offset:2px; }
    }

    .ac-pop { position:fixed; z-index:10050; min-width:200px; padding:4px; border-radius:10px; background:rgba(16,13,30,0.97); border:1px solid var(--glassBorder); box-shadow:0 12px 40px rgba(0,0,0,0.6); }
    .ac-pop .dropdown-item { width:100%; background:none; border:none; border-radius:7px; text-align:left; font-family:inherit; }
    .ac-pop .ac-pop-del { color:#fca5a5; }
    .ac-info { max-width:520px; width:min(520px,calc(100vw - 24px)); }
    @media (max-width:640px) {
      #acInfoModal, .ga-info-ov { padding:8px; }
      #acInfoModal .ac-info, .ga-info-ov .modal.ga-modal.ga-modal-wide { width:calc(100vw - 16px); max-width:none; padding:18px 14px; }
    }
    .ac-info-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
    .ac-info-list li { display:flex; flex-direction:column; gap:2px; font-size:14px; line-height:1.55; color:var(--textSecondary); }
    .ac-info-list b { color:#e9e3ff; font-size:14px; }

    .ac-combo { position:relative; }
    .ac-combo-in { padding-right:34px; }
    .ac-combo-chev { position:absolute; right:12px; top:50%; width:8px; height:8px; margin-top:-6px; border-right:2px solid var(--textMuted); border-bottom:2px solid var(--textMuted); transform:rotate(45deg); pointer-events:none; }
    .ac-dd {
      position:absolute; top:calc(100% + 2px); left:0; right:0; z-index:9999; max-height:220px; overflow-y:auto; overflow-x:hidden;
      background:rgba(16,13,30,0.97); border:1px solid var(--glassBorder); border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,0.6);
    }
    .ac-dd .dropdown-item { gap:10px; }
    .ac-dd-sub { font-size:12px; color:var(--textMuted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

    .ac-setup { max-width:480px; width:min(480px,calc(100vw - 24px)); }
    .acs-lbl { display:block; font-size:12px; font-weight:700; color:#c4b5fd; text-transform:uppercase; letter-spacing:0.8px; margin:14px 0 6px; }
    .acs-lbl-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
    .acs-link { background:none; border:none; padding:0; cursor:pointer; font:700 12px 'Rajdhani',sans-serif; letter-spacing:0.2px; text-transform:none; color:#22d3ee; }
    .acs-link:hover { text-decoration:underline; }
    .acs-fixed { font-size:15px; font-weight:700; color:var(--textPrimary); padding:2px 0; }
    .acs-modes { display:flex; gap:8px; flex-wrap:wrap; }
    .acs-modes label { flex:1; min-width:150px; display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; cursor:pointer; font-size:14px; font-weight:600;
      background:rgba(255,255,255,0.03); border:1px solid rgba(167,139,250,0.18); }
    .acs-modes label:has(input:checked) { border-color:rgba(124,58,237,0.6); background:rgba(124,58,237,0.14); }
    .acs-modes input { accent-color:#7c3aed; }
    #acsQR, #acsKey { margin-top:10px; }
    .acs-qr-btns { display:flex; gap:8px; }
    .cw-page { max-width:1180px; margin:0 auto; }
    .cw-top { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
    .cw-ttl { flex:1; min-width:0; }
    .cw-ttl h2 { margin:0; text-transform:uppercase; font-family:'Orbitron',monospace; font-weight:700; font-size:18px; line-height:1.25; letter-spacing:1px; color:var(--purpleLight); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cw-ttl p { margin:3px 0 0; color:var(--textMuted); font-size:13px; }
    .cw-wn, .cw-vs { display:none; }
    .cw-acts { display:flex; gap:8px; flex:none; }
    .cw-btn { display:inline-flex !important; align-items:center; gap:7px; height:38px; padding:0 16px !important; border-radius:10px !important; border:1px solid rgba(167,139,250,0.35) !important; background:rgba(255,255,255,0.04) !important; color:var(--textPrimary) !important; font:700 14px 'Rajdhani',sans-serif !important; }
    .cw-btn svg { width:16px; height:16px; }
    .cw-btn-p { background:#7c3aed !important; border-color:#7c3aed !important; color:#fff !important; box-shadow:0 4px 18px rgba(124,58,237,0.35); }
    .cw-spin svg { animation:cwSpin 0.6s linear infinite; transform-origin:52.24% 50%; }
    .cw-card { overflow:visible !important; background:linear-gradient(180deg,rgba(255,255,255,0.025),rgba(255,255,255,0) 160px),rgba(17,11,40,0.82) !important; }
    .cw-fl { position:relative; z-index:5; }
    .ol-cs { margin-top:16px; padding:14px; border-radius:12px; background:rgba(124,58,237,0.05); border:1px solid rgba(167,139,250,0.22); }
    .ol-pl .ol-plrow { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
    .ol-pl .ol-plrow .input { width:120px; }
    .ol-plbar { margin:0 0 10px; }
    .ol-plnums { display:flex; justify-content:space-between; font-size:12px; color:var(--textMuted); margin-bottom:5px; }
    .ol-plnums b { color:var(--textPrimary); } .ol-plnums b.ok { color:#34d399; } .ol-plnums b.no { color:#f87171; }
    .ol-pltrk { height:6px; border-radius:3px; background:rgba(255,255,255,0.08); overflow:hidden; }
    .ol-pltrk i { display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#7c3aed,#f39447); transition:width .4s ease; }
    .ol-plseg { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
    .ol-plseg button { text-align:left; padding:10px 12px; border-radius:10px; border:1px solid var(--glassBorder); background:rgba(18,16,32,0.6); color:var(--textSecondary); cursor:pointer; font:inherit; }
    .ol-plseg button b { display:block; font-size:12.5px; color:var(--textPrimary); margin-bottom:2px; }
    .ol-plseg button small { font-size:11px; color:var(--textMuted); line-height:1.35; }
    .ol-plseg button.on { border-color:rgba(167,139,250,0.7); background:rgba(124,58,237,0.16); box-shadow:inset 0 0 0 1px rgba(167,139,250,0.35); }
    @media (max-width:520px) { .ol-plseg { grid-template-columns:1fr; } }
    .ol-h { font-family:'Orbitron',monospace; font-size:12px; margin:0 0 8px; color:var(--purpleLight); letter-spacing:0.06em; }
    .ol-f { margin-top:12px; } .ol-f > b { display:block; font-size:12.5px; color:var(--textPrimary); margin-bottom:6px; }
    .ol-pinrow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .ol-pinbox { display:flex; gap:6px; }
    .ol-pinbox input { width:38px; height:44px; border-radius:10px; border:1px solid rgba(167,139,250,0.4); background:rgba(20,16,44,0.6); color:var(--textPrimary); text-align:center; font:800 18px 'Orbitron',monospace; padding:0; outline:none; }
    .ol-pinbox input:focus { border-color:#a78bfa; box-shadow:0 0 0 3px rgba(167,139,250,0.2); }
    .ol-wait { font-style:normal; font-size:11px; font-weight:700; color:#fbbf24; background:rgba(251,191,36,0.14); padding:1px 7px; border-radius:999px; margin-left:4px; }
    .ol-add { display:flex; gap:8px; margin-top:8px; } .ol-add input { flex:1; min-width:0; }
    .ol-tolrow { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 0; border-top:1px solid rgba(167,139,250,0.1); font-size:13.5px; }
    .ol-tolin { display:inline-flex; align-items:center; gap:4px; color:var(--textMuted); } .ol-tolin input { width:84px !important; height:32px; min-height:0 !important; padding:4px 8px !important; font-size:13px !important; }
    .ol-acts { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 2px; justify-content:flex-end; }
    .ol-ob { background:transparent !important; border:1px solid rgba(167,139,250,0.45) !important; color:#ddd6fe !important; border-radius:9px !important; }
    .ol-ob:hover { background:rgba(124,58,237,0.14) !important; border-color:rgba(167,139,250,0.8) !important; }
    .ol-obr { border-color:rgba(248,113,113,0.45) !important; color:#fca5a5 !important; } .ol-obr:hover { background:rgba(239,68,68,0.1) !important; border-color:rgba(248,113,113,0.8) !important; }
    .ol-ni { display:inline-flex; width:16px; height:16px; align-items:center; justify-content:center; margin-right:5px; vertical-align:-3px; } .ol-ni svg { width:14px; height:14px; display:block; }
    .ol-wn { display:inline-flex; align-items:center; }
    .ol-crsw{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;margin:10px 0;border-radius:12px;background:rgba(18,16,32,0.6);border:1px solid var(--glassBorder)}.ol-crsw .toggle{flex:none;cursor:pointer}.ol-crsw b{display:block;font-size:13px}.ol-crsw small{color:var(--textMuted);font-size:11.5px}
.bh-olref{color:#f39447;font-weight:700}
.ol-tolbox { display:block; width:auto; margin-top:12px; border:1px solid rgba(167,139,250,0.18); border-radius:10px; padding:2px 10px; background:rgba(8,6,20,0.25); }
    .ol-tolbox summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; }
    .ol-tolbox summary::-webkit-details-marker { display:none; }
    .ol-tolbox summary b { display:block; font-size:12.5px; color:var(--textPrimary); } .ol-tolbox summary small { color:var(--textMuted); font-size:11.5px; }
    .ol-tolbox summary svg { flex:none; color:var(--textMuted); transition:transform .2s; } .ol-tolbox[open] summary svg { transform:rotate(180deg); }
    .ol-tolbox .ol-tolrow:last-child { padding-bottom:10px; }
    #companySettingsModal .cs-modal { display:flex; flex-direction:column; overflow:hidden !important; }
    #companySettingsModal .cs-modal > .modal-header { flex:none; margin-bottom:12px; }
    #companySettingsModal .cs-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0 -8px; padding:0 8px 4px; }
    .ol-st.manual { background:rgba(34,211,238,0.14); color:#22d3ee; }
    @media (max-width:420px) { .ol-pinbox input { width:34px; height:42px; font-size:16px; } }
    .ol-arm { padding:9px 12px; border-radius:10px; font-size:13.5px; font-weight:700; margin-bottom:12px; }
    .ol-arm.on { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); color:#34d399; }
    .ol-arm.off { background:rgba(251,191,36,0.1); border:1px solid rgba(251,191,36,0.3); color:#fde68a; }
    .ol-sec { margin-bottom:14px; } .ol-sec > b { display:block; font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--textMuted); margin-bottom:8px; }
    .ol-tol { width:96px !important; height:32px; min-height:0 !important; padding:4px 10px !important; font-size:13px !important; }
    .ol-co { border:1px solid rgba(167,139,250,0.14); border-radius:12px; padding:8px 10px; margin-bottom:8px; background:rgba(8,6,20,0.3); }
    .ol-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:4px 0; }
    .ol-n { flex:1; min-width:160px; } .ol-n b { display:block; font-size:14.5px; } .ol-n small { color:var(--textMuted); font-size:12px; word-break:break-all; } .ol-n code { font-size:11.5px; }
    .ol-show { margin-top:8px; padding:10px; border-radius:10px; background:rgba(124,58,237,0.12); border:1px solid rgba(167,139,250,0.35); display:flex; flex-direction:column; gap:6px; }
    .ol-kv { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .ol-kv > span { width:36px; font-size:12px; font-weight:700; color:var(--textMuted); } .ol-kv code { flex:1; min-width:0; word-break:break-all; font-size:12px; color:#e9e4ff; }
    .ol-pin { font-family:'Orbitron',monospace !important; font-size:16px !important; letter-spacing:0.2em; }
    .ol-ws { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
    .ol-w { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:3px 4px 3px 10px; border-radius:999px; background:rgba(16,185,129,0.12); color:#34d399; }
    .ol-w button { border:0; background:none; color:inherit; cursor:pointer; font-size:15px; line-height:1; padding:0 4px; }
    .ol-st { font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:999px; background:rgba(251,191,36,0.14); color:#fbbf24; }
    .ol-st.loaded { background:rgba(16,185,129,0.15); color:#34d399; } .ol-st.failed { background:rgba(248,113,113,0.14); color:#f87171; }
    .cw-tx[hidden] { display:none !important; }
    .cw-wl { max-height:calc(100dvh - 250px); min-height:160px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; -ms-overflow-style:none; }
    .cw-wl::-webkit-scrollbar { display:none; }
    .cw-txs { max-height:calc(100dvh - 330px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(167,139,250,0.35) transparent; }
    .cw-txs::-webkit-scrollbar { width:6px; } .cw-txs::-webkit-scrollbar-thumb { background:rgba(167,139,250,0.35); border-radius:6px; }
    .cw-txs:not(.cw-has) { display:none; }
    @media (max-width:760px) { .cw-wl { max-height:none; min-height:0; overflow-y:hidden; } .cw-txs { max-height:calc(100dvh - 300px); min-height:260px; } }
    .cw-chips.cw-reo { padding:5px 3px; margin:-5px -3px; }
    @media (max-width:760px) { .cw-xn { display:none; } .cw-tr a { order:2; width:26px; height:26px; justify-content:center; border-radius:8px; border:1px solid rgba(103,232,249,0.25); flex:none; } .cw-tx { padding-right:12px; } }
    .cw-tx > * { min-width:0; } .cw-tr { min-width:0; max-width:100%; } .cw-tr a { white-space:nowrap; }
    .cw-chain span svg, .cw-pmr svg { display:block; flex:none; }
    .cw-chain span { line-height:0; }
    .cw-pmr { line-height:1; } .cw-pmr small { line-height:1; display:block; }
    .cw-pmh { min-height:22px; }
    #cwPage .cw-tm small, #cwPage .cw-tt, #cwPage .cw-wt small, #cwPage .cw-lm, #cwPage .cw-ttl p, #cwPage .cw-ph { color:#b4aad6; }
    html[data-theme="light"] #cwPage .cw-tm small, html[data-theme="light"] #cwPage .cw-tt, html[data-theme="light"] #cwPage .cw-wt small, html[data-theme="light"] #cwPage .cw-lm, html[data-theme="light"] #cwPage .cw-ttl p, html[data-theme="light"] #cwPage .cw-ph { color:#5b5277; }
    .cw-srch > .cw-qw > input, .cw-dir .tp-pick-btn { height:42px !important; min-height:42px !important; box-sizing:border-box; padding-top:0 !important; padding-bottom:0 !important; }
    .cw-ph { top:0; bottom:0; }
    @media (max-width:760px) {
      .cw-dir { width:auto !important; flex:none; }
      .cw-dir .tp-pick-btn { width:auto; white-space:nowrap; gap:6px; padding-left:12px !important; padding-right:8px !important; }
      .cw-dir .tp-drop { min-width:140px; right:0; left:auto; }
      .cw-tx { row-gap:0 !important; }
      .cw-tm b { line-height:1.2; }
      .cw-tm small { line-height:1.15; margin-top:0; }
      .cw-tr { margin-top:2px !important; gap:0 8px !important; }
    }
    #cwTx > :last-child { border-bottom-left-radius:18px; border-bottom-right-radius:18px; }
    .cw-wrow { border:1px solid transparent; border-radius:12px; padding-right:4px; transition:background .15s, border-color .15s; }
    .cw-wrow:hover { background:rgba(255,255,255,0.04); }
    .cw-wrow.on { background:rgba(124,58,237,0.16); border-color:rgba(167,139,250,0.4); }
    .cw-wrow .cw-w, .cw-wrow .cw-w:hover, .cw-wrow .cw-w.on { background:none; border-color:transparent; }
    .cw-wl { gap:2px; }
    .cw-qw { position:relative; flex:1; min-width:0; display:flex; }
    .cw-qw input { flex:1; min-width:0; width:100%; }
    .cw-ph { position:absolute; left:1px; right:34px; top:1px; bottom:1px; display:flex; align-items:center; padding-left:13px; padding-right:6px; color:var(--textMuted); font-size:15px; white-space:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; cursor:text; border-radius:10px; }
    .cw-ph::-webkit-scrollbar { display:none; }
    .cw-ph[hidden] { display:none; }
    .cw-nf { display:flex; flex-direction:column; align-items:center; gap:2px; padding:20px 16px 18px; }
    .cw-nf span { font-size:13px; }
    .cw-lm { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:10px 14px; font-size:12.5px; color:var(--textMuted); }
    .cw-lmc { display:flex; align-items:center; gap:6px; }
    .cw-lmb { height:34px; padding:0 14px; border-radius:10px; border:1px solid rgba(167,139,250,0.4); background:rgba(124,58,237,0.16); color:#e9e4ff; font:700 13.5px 'Rajdhani',sans-serif; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
    .cw-lmb:hover { background:rgba(124,58,237,0.28); }
    .cw-days { width:54px !important; height:34px; min-height:0 !important; padding:4px 6px !important; text-align:center; font-size:14px !important; -moz-appearance:textfield; }
    .cw-days::-webkit-outer-spin-button, .cw-days::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
    .cw-chip { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
    .cw-reo .cw-chip[data-n] { animation:cwWig .28s ease-in-out infinite alternate; animation-delay:calc(var(--d) * -0.09s); cursor:grab; touch-action:none; }
    .cw-reo { touch-action:none; }
    .cw-chip.cw-drag { animation:none !important; transform:scale(1.08); box-shadow:0 6px 18px rgba(0,0,0,0.45); border-color:#a78bfa; cursor:grabbing; z-index:2; }
    .cw-done { background:#7c3aed !important; border-color:#7c3aed !important; color:#fff !important; }
    @keyframes cwWig { from { transform:rotate(-2.2deg); } to { transform:rotate(2.2deg); } }
    @media (prefers-reduced-motion:reduce) { .cw-reo .cw-chip[data-n] { animation:none; outline:1px dashed rgba(167,139,250,0.6); } }
    html[data-theme="light"] .cw-card { background:#fff !important; }
    @media (max-width:760px) {
      .cw-wrow { border-color:rgba(255,255,255,0.1); }
      .cw-wrow .cw-w { border-color:transparent !important; padding-right:4px; }
      .cw-wrow .cw-more { width:24px; }
      .cw-tx { padding:9px 12px; gap:2px 10px; }
      .cw-tm b { line-height:1.25; }
      .cw-tm small { line-height:1.2; margin-top:1px; }
      .cw-tr { gap:3px 8px !important; margin-top:1px; }
      .cw-st { padding:1px 8px; line-height:1.35; }
      .cw-tr a { height:22px !important; width:24px !important; }
      .cw-ph { font-size:14px; }
    }
    @keyframes cwSpin { to { transform:rotate(360deg); } }
    .cw-sum { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin-bottom:16px; }
    .cw-sum > div { background:rgba(17,11,40,0.82); border:1px solid rgba(167,139,250,0.14); border-radius:14px; padding:12px 14px; }
    .cw-sum > div > span { display:block; font-size:11px; color:var(--textMuted); text-transform:uppercase; letter-spacing:0.08em; font-weight:700; }
    .cw-sum b.cw-crawl { text-overflow:clip; -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent); mask-image:linear-gradient(90deg,#000 85%,transparent); }
    .cw-sum b.cw-crawl .cw-ct { display:inline-flex; animation:cwCrawl 9s linear infinite; }
    .cw-sum b.cw-crawl .cw-ct > span { padding-right:40px; }
    @keyframes cwCrawl { 0%, 12% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
    @media (prefers-reduced-motion: reduce) { .cw-sum b.cw-crawl .cw-ct { animation:none; } }
    .cw-sum b { display:block; margin-top:4px; font-family:'Orbitron',monospace; font-size:clamp(14px,2.2vw,18px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--textPrimary); }
    .cw-g { color:#34d399 !important; } .cw-r { color:#f87171 !important; }
    .cw-grid { display:grid; grid-template-columns:300px minmax(0,1fr); gap:16px; align-items:start; }
    .cw-card { background:linear-gradient(150deg,rgba(255,255,255,0.07),rgba(56,36,116,0.35) 32%,rgba(22,15,50,0.7)); border:1px solid rgba(255,255,255,0.12); border-radius:18px; overflow:hidden; min-width:0; }
    .cw-ch { padding:12px 14px; font-size:11px; color:var(--textMuted); text-transform:uppercase; letter-spacing:0.1em; font-weight:700; border-bottom:1px solid rgba(167,139,250,0.14); }
    .cw-wl { display:flex; flex-direction:column; padding:6px; }
    .cw-wrow { display:flex; align-items:center; gap:2px; }
    .cw-w { flex:1; min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr); gap:2px 10px; align-items:center; text-align:left; padding:10px; border:1px solid transparent; border-radius:12px; background:none; cursor:pointer; color:var(--textPrimary); font-family:'Rajdhani',sans-serif; }
    .cw-w:hover { background:rgba(255,255,255,0.04); }
    .cw-w.on { background:rgba(124,58,237,0.16); border-color:rgba(167,139,250,0.4); }
    .cw-ci { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; grid-row:span 2; flex:none; }
    .cw-all { font:800 12px 'Orbitron',monospace; color:#c4b5fd; }
    .cw-wt { min-width:0; } .cw-wt b { display:block; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .cw-wt small { display:block; color:var(--textMuted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cw-werr { color:#fbbf24; font-style:normal; }
    .cw-wb { grid-column:2; font-family:'Orbitron',monospace; font-size:11.5px; color:#f1edff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cw-wb small { font-family:'Rajdhani',sans-serif; font-size:12px; font-weight:700; color:#a7f3d0; }
    .cw-dir { width:140px; flex:none; }
    .cw-dir .tp-pick-btn { min-height:40px; padding:6px 12px; }
    .cw-dir .tp-caret { margin-left:auto; }
    .cw-dir .tp-opt { display:flex; align-items:center; justify-content:space-between; }
    .cw-tick { display:none; color:#a78bfa; } .cw-dir .tp-opt.on .cw-tick { display:flex; }
    .cw-tx { cursor:pointer; } .cw-tx:hover { background:rgba(255,255,255,0.025); } .cw-tx.open { background:rgba(124,58,237,0.08); }
    .cw-tx:focus-visible { outline:2px solid rgba(167,139,250,0.7); outline-offset:-2px; }
    .cw-det { grid-column:1/-1; margin-top:4px; padding:10px 12px; border-radius:12px; background:rgba(8,6,20,0.45); border:1px solid rgba(167,139,250,0.18); cursor:default; }
    .cw-dr { display:grid; grid-template-columns:130px minmax(0,1fr); gap:10px; padding:7px 0; border-top:1px solid rgba(167,139,250,0.1); font-size:13.5px; }
    .cw-dr:first-child { border-top:0; }
    .cw-dr > span:first-child { color:var(--textMuted); font-weight:600; }
    .cw-dv { color:var(--textPrimary); display:flex; align-items:flex-start; gap:6px; flex-wrap:wrap; min-width:0; }
    .cw-dv { flex-wrap:nowrap; } .cw-dv code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; word-break:break-all; color:#e9e4ff; flex:1 1 0; min-width:0; }
    .cw-dv .cw-me { align-self:flex-start; flex:none; }
    .cw-me { font-style:normal; font-size:11px; font-weight:700; color:#a78bfa; background:rgba(124,58,237,0.18); padding:1px 7px; border-radius:999px; }
    .cw-fp { color:var(--textMuted); font-size:11.5px; margin-left:4px; white-space:nowrap; }
    .cw-dv.cw-wrap { flex-wrap:wrap; }
    .cw-cp { flex:none; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; border-radius:7px; border:1px solid rgba(167,139,250,0.25); background:none; color:#c4b5fd; cursor:pointer; }
    .cw-cp:hover { color:#fff; border-color:rgba(167,139,250,0.6); }
    .cw-dex { display:inline-flex; align-items:center; gap:6px; margin-top:8px; font-size:13px; font-weight:700; color:#67e8f9; text-decoration:none; }
    .cw-pmc small { font-size:10.5px; color:#34d399; font-weight:700; margin-left:4px; }
    .cw-more { width:30px; height:34px; flex:none; border:0; background:none; color:var(--textMuted); border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
    .cw-more:hover { background:rgba(255,255,255,0.06); color:#fff; }
    .cw-menu { position:fixed; z-index:10050; min-width:170px; padding:6px; border-radius:12px; background:rgba(20,14,44,0.98); border:1px solid rgba(167,139,250,0.3); box-shadow:0 16px 40px rgba(0,0,0,0.5); display:flex; flex-direction:column; }
    .cw-menu button { text-align:left; padding:10px 12px; border:0; background:none; border-radius:8px; color:var(--textPrimary); font:600 14px 'Rajdhani',sans-serif; cursor:pointer; }
    .cw-menu button:hover { background:rgba(124,58,237,0.16); } .cw-menu .cw-danger { color:#f87171; }
    .cw-fl { padding:12px 14px; border-bottom:1px solid rgba(167,139,250,0.14); display:flex; flex-direction:column; gap:10px; }
    .cw-chips { display:flex; gap:6px; flex-wrap:wrap; } .cw-chips:empty { display:none; }
    .cw-chip { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.03); font:700 13px 'Rajdhani',sans-serif; color:#c4b5fd; cursor:pointer; white-space:nowrap; flex:none; }
    .cw-chip.on { background:rgba(124,58,237,0.22); border-color:rgba(167,139,250,0.55); color:#fff; }
    .cw-srch { display:flex; gap:8px; align-items:stretch; } .cw-srch input { flex:1; min-width:0; }
    .cw-tx { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 14px; border-bottom:1px solid rgba(120,100,200,0.08); }
    .cw-ti { position:relative; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; }
    .cw-d { position:absolute; right:-4px; bottom:-4px; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid #150f33; }
    .cw-d svg { width:10px; height:10px; } .cw-d.in { background:#065f46; color:#34d399; } .cw-d.out { background:#7f1d1d; color:#f87171; }
    .cw-tm { min-width:0; } .cw-tm b { display:block; font-size:15px; color:var(--textPrimary); }
    .cw-tm b .in, .cw-tm b .out { font-family:'Orbitron',monospace; font-size:13px; } .cw-tm b .in { color:#34d399; } .cw-tm b .out { color:#f87171; }
    .cw-tm small { display:block; color:var(--textMuted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .cw-tr { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
    .cw-tt, .cw-sf { display:none; }
    .cw-st { font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; white-space:nowrap; }
    .cw-st.ok { background:rgba(16,185,129,0.15); color:#34d399; } .cw-st.pend { background:rgba(251,191,36,0.14); color:#fbbf24; }
    .cw-tr a { display:inline-flex; gap:4px; align-items:center; font-size:12px; color:#67e8f9; text-decoration:none; }
    .cw-moreb { display:block; width:100%; padding:12px; border:0; background:none; color:#c4b5fd; font:700 14px 'Rajdhani',sans-serif; cursor:pointer; }
    .cw-empty { padding:26px 16px; text-align:center; color:var(--textMuted); font-size:13.5px; line-height:1.5; }
    .cw-empty b { display:block; font-size:14.5px; color:var(--textPrimary); margin-bottom:2px; }
    .cw-note { margin:12px 0 0; font-size:12px; color:var(--textMuted); text-align:center; }
    .cw-modal { max-width:440px; }
    .cw-modal .acs-qr-btns .btn { flex:1; justify-content:center; }
    .cw-found { display:flex; align-items:center; gap:8px; margin-top:8px; padding:8px 10px; border-radius:10px; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); font-size:13px; color:#34d399; }
    .cw-found.bad { background:rgba(239,68,68,0.1); border-color:rgba(239,68,68,0.3); color:#f87171; }
    .cw-opt { opacity:0.65; font-weight:500; text-transform:none; letter-spacing:0; margin-left:4px; }
    .cw-cfbox { margin-top:12px; border-radius:12px; border:1px solid rgba(167,139,250,0.2); background:rgba(255,255,255,0.03); }
    .cw-cf { display:flex; flex-wrap:wrap; gap:6px; max-height:150px; overflow-y:auto; padding:3px; }
    .cw-cf[hidden] { display:none; }
    .cw-cfo { display:flex; align-items:center; gap:5px; height:30px; max-width:100%; padding:0 12px; border-radius:999px; border:0; cursor:pointer; color:rgba(255,255,255,0.95); font:800 12px 'Rajdhani','Exo 2',sans-serif; letter-spacing:0.6px; text-transform:uppercase; text-shadow:0 1px 3px rgba(0,0,0,0.45); box-shadow:none; }
    .cw-cfo span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cw-cfo svg { flex:none; display:none; width:12px; height:12px; }
    .cw-cfo.on svg { display:block; }
    .cw-cfo.on { outline:2px solid #fff; outline-offset:-2px; }
    .cw-cfo.none { background:rgba(255,255,255,0.06); color:#c4b5fd; text-shadow:none; }
    .cw-cfo:focus-visible { outline:2px solid var(--cyan); outline-offset:0; }
    html[data-theme] .cw-cfo:not(.none) { color:#fff; }
    .cw-found[hidden], .cw-nets[hidden] { display:none; }
    .cw-cfh { display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:0 12px; border:0; border-radius:12px; background:transparent; color:#c4b5fd; cursor:pointer; text-align:left; }
    .cw-cfh .acs-lbl { margin:0; flex:1; min-width:0; }
    .cw-cfv { font:700 13px 'Rajdhani',sans-serif; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .cw-cfh svg { flex:none; transition:transform 0.18s ease; }
    .cw-cfh[aria-expanded="true"] svg { transform:rotate(180deg); }
    .cw-cfh:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
    #cwCfB { padding:0 10px 12px; }
    @media (prefers-reduced-motion:reduce) { .cw-cfh svg { transition:none; } }
    .cw-nets { display:flex; flex-wrap:wrap; gap:6px; }
    .cw-nt { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 11px; border-radius:999px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.03); font:700 13px 'Rajdhani',sans-serif; color:#c4b5fd; cursor:pointer; }
    .cw-nt.on { background:rgba(124,58,237,0.22); border-color:rgba(167,139,250,0.55); color:#fff; }
    .cw-hint { font-size:12px; color:var(--textMuted); margin-top:6px; line-height:1.4; }
    .cw-err { margin-top:10px; padding:8px 10px; border-radius:10px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.3); color:#f87171; font-size:13px; }
    .cw-mact { display:flex; gap:8px; margin-top:16px; } .cw-mact .btn { flex:1; justify-content:center; }
    .cw-ro { display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; background:rgba(8,6,20,0.4); border:1px solid rgba(167,139,250,0.14); font-size:14px; color:var(--textSecondary); }
    .cw-chain { position:absolute; top:10px; right:10px; display:flex; }
    .cw-chain span { width:20px; height:20px; border-radius:50%; background:rgba(10,8,24,0.75); display:flex; align-items:center; justify-content:center; margin-left:-5px; border:1.5px solid rgba(255,255,255,0.25); }
    .cf-pm-card { position:relative; }
    .cw-pm { border-radius:14px; border:1px solid rgba(34,211,238,0.28); background:rgba(34,211,238,0.06); padding:12px; margin-bottom:12px; }
    .cw-pmh { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
    .cw-pmh b { font-family:'Orbitron',monospace; font-size:11px; letter-spacing:0.1em; color:#22d3ee; }
    .cw-pmr { display:inline-flex; align-items:center; gap:5px; border:0; background:none; color:var(--textMuted); cursor:pointer; font:600 11.5px 'Rajdhani',sans-serif; padding:2px 4px; }
    .cw-pmr svg { width:12px; height:12px; }
    .cw-pmw { display:flex; align-items:center; gap:10px; padding:7px 0; border-top:1px solid rgba(34,211,238,0.12); }
    .cw-pmw:first-of-type { border-top:0; }
    .cw-pmw .cw-ci { width:30px; height:30px; }
    .cw-pmn { flex:1; min-width:0; } .cw-pmn b { display:block; font-size:14px; } .cw-pmn small { color:var(--textMuted); font-size:11.5px; }
    .cw-pma { font-family:'Orbitron',monospace; font-size:12.5px; text-align:right; } .cw-pma small { display:block; font-family:'Rajdhani',sans-serif; font-size:11px; color:var(--textMuted); }
    .cw-pmc { display:grid; grid-template-columns:1fr auto; gap:4px 10px; padding:10px 0 2px; border-top:1px dashed rgba(34,211,238,0.25); margin-top:4px; font-size:14px; }
    .cw-pmc span { color:var(--textSecondary); } .cw-pmc b { font-family:'Orbitron',monospace; font-size:13.5px; text-align:right; }
    .cw-pmd { display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px; border-radius:10px; background:rgba(251,191,36,0.1); border:1px solid rgba(251,191,36,0.3); font-size:13px; color:#fde68a; line-height:1.35; }
    .cw-pmd p { margin:0; flex:1; }
    .cw-match { background:#b45309 !important; border:1px solid #d97706 !important; color:#fff !important; flex:none; }
    .cw-pmok { margin-top:10px; padding:9px 12px; border-radius:10px; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); color:#34d399; font-size:13px; font-weight:700; }
    .cw-mp { margin:0 0 12px; color:var(--textSecondary); font-size:14px; line-height:1.45; }
    .cw-mr { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid rgba(167,139,250,0.14); font-size:14px; }
    .cw-mr b { font-family:'Orbitron',monospace; font-size:13px; }
    .cw-ops { display:flex; flex-direction:column; gap:6px; }
    .cw-op { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:10px; border:1px solid rgba(167,139,250,0.14); background:rgba(8,6,20,0.35); cursor:pointer; }
    .cw-op input { position:absolute; opacity:0; pointer-events:none; }
    .cw-bx { width:18px; height:18px; border-radius:5px; border:2px solid rgba(124,58,237,0.55); flex:none; background:transparent center/11px 11px no-repeat; transition:background-color .15s, border-color .15s; }
    .cw-op:has(input:checked) { border-color:rgba(167,139,250,0.5); background:rgba(124,58,237,0.12); }
    .cw-op input:checked + .cw-bx { background-color:#7c3aed; border-color:#7c3aed; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5 4,7.5 8.5,2.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
    .cw-op input:focus-visible + .cw-bx { outline:2px solid var(--cyan); outline-offset:2px; }
    .cw-op.dis { opacity:0.45; cursor:not-allowed; }
    .cw-opn b { display:block; font-size:14px; } .cw-opn small { color:var(--textMuted); font-size:11.5px; }
    html[data-theme="light"] .cw-card, html[data-theme="light"] .cw-sum > div, html[data-theme="light"] .cw-menu { background:#fff; border-color:rgba(109,40,217,0.16); }
    html[data-theme="light"] .cw-d { border-color:#fff; }
    @media (max-width:760px) {
      .cw-grid { grid-template-columns:1fr; } .cw-ch { display:none; }
      .cw-wl { flex-direction:row; overflow-x:auto; gap:8px; padding:10px; scrollbar-width:none; }
      .cw-wl::-webkit-scrollbar { display:none; }
      .cw-wrow { flex:none; }
      .cw-w { flex:0 0 auto; grid-template-columns:28px auto; border-color:rgba(255,255,255,0.1); padding:8px 12px 8px 8px; }
      .cw-w .cw-ci { width:28px; height:28px; grid-row:auto; }
      .cw-wb, .cw-wt small { display:none; } .cw-wt b { font-size:14px; }
      .cw-sum .cw-wc { display:none; } .cw-wn { display:inline; } .cw-vo { display:none; } .cw-vs { display:inline; }
      .cw-ttl h2 { font-size:clamp(12px,3.9vw,16px); letter-spacing:0.5px; } .cw-ttl p { font-size:12px; }
      .cw-sum { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
      .cw-sum > div { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:10px 12px; min-width:0; }
      .cw-sum > div > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; font-size:10.5px; }
      .cw-sum b { margin:0; font-size:15px; max-width:100%; }
      .cw-chips { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
      .cw-tx { grid-template-columns:38px minmax(0,1fr); }
      .cw-dr { grid-template-columns:1fr; gap:2px; }
      .cw-dir { width:118px; }
      .cw-tr { grid-column:2; flex-direction:row; justify-content:space-between; align-items:center; }
      .cw-acts .cw-btn span { display:none; } .cw-acts .cw-btn { padding:0 12px !important; }
    }
    @media (max-width:420px) {
      .cw-tw, .cw-lf, .cw-xn { display:none; } .cw-tt { display:inline; order:1; margin-left:auto; font-size:12px; color:var(--textMuted); white-space:nowrap; }
      .cw-sf { display:inline; } .cw-tr a { order:2; width:26px; height:26px; justify-content:center; border-radius:8px; border:1px solid rgba(103,232,249,0.25); }
      .cw-tr { gap:6px 8px; flex-wrap:wrap; }
    }
    .acs-qr-btn { flex:1; justify-content:center; gap:8px; min-height:44px; cursor:pointer; color:#fff; border:none;
      background:linear-gradient(135deg,#7c3aed 0%,#06b6d4 100%); box-shadow:0 4px 16px rgba(124,58,237,0.32), inset 0 1px 0 rgba(255,255,255,0.18); }
    .acs-qr-btn:hover { filter:brightness(1.1); }
    .acs-qr-btn + .acs-qr-btn { background:linear-gradient(135deg,#06b6d4 0%,#10b981 100%); box-shadow:0 4px 16px rgba(6,182,212,0.3), inset 0 1px 0 rgba(255,255,255,0.18); }
    .acs-cam { position:relative; margin-top:10px; border-radius:12px; overflow:hidden; background:#000; aspect-ratio:4/3; }
    .acs-cam video { width:100%; height:100%; object-fit:cover; display:block; }
    .acs-cam-frame { position:absolute; inset:16% 22%; border-radius:14px; box-shadow:0 0 0 2000px rgba(0,0,0,0.35); border:2px solid rgba(6,182,212,0.85); pointer-events:none; }
    .acs-cam-msg { position:absolute; left:0; right:0; bottom:10px; text-align:center; font-size:13px; font-weight:700; color:#fff; text-shadow:0 1px 4px #000; padding:0 12px; }
    .acs-cam-stop { position:absolute; top:8px; right:8px; background:rgba(0,0,0,0.5) !important; color:#fff !important; }
    .acs-qr-ok { margin-top:10px; font-size:13px; font-weight:700; color:#6ee7b7; }
    .acs-or { text-align:center; font-size:12px; color:var(--textMuted); margin:10px 0 6px; }
    .acs-adv { margin-top:8px; font-size:13px; color:var(--textMuted); }
    .acs-adv summary { cursor:pointer; }
    .acs-advrow { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px; }
    .acs-advrow label { display:flex; flex-direction:column; gap:4px; font-size:12px; }
    .acs-err { min-height:18px; margin:10px 0 6px; font-size:13px; color:#f87171; }
    .acs-preview { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,0.04); border:1px solid rgba(167,139,250,0.18); }
    .acs-preview .ac-code { margin:0; }
    .acs-verify { font:700 22px 'Orbitron',monospace; letter-spacing:6px; text-align:center; }
    .acs-btns { display:flex; gap:8px; }
    .acs-btns .btn { flex:1; justify-content:center; }

    .ac-fab, .ac-reorder-bar { display:none; }
    @keyframes acBarIn { from { opacity:0; transform:translate(-50%,16px); } to { opacity:1; transform:translate(-50%,0); } }
    @media (max-width:640px) {
      #acAdd, #acReorderBtn, .ac-head > div[style*="flex:1"] { display:none !important; }
      .ac-fab { display:flex; }
      body.ac-reorder-on .ac-fab { display:none; }
      .ac-page { padding-bottom:88px; }
      .ac-reorder-hint { display:none; }
      body.ac-reorder-on .ac-reorder-bar {
        display:flex; align-items:center; gap:10px; position:fixed; left:50%; bottom:max(16px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:95;
        width:min(92vw,420px); padding:9px 9px 9px 14px; border-radius:16px; animation:acBarIn 0.28s cubic-bezier(.22,1,.36,1);
        background:linear-gradient(135deg,rgba(255,255,255,0.08) 0%,rgba(18,12,40,0.86) 45%,rgba(124,58,237,0.16) 100%);
        backdrop-filter:blur(24px) saturate(170%); -webkit-backdrop-filter:blur(24px) saturate(170%);
        border:1px solid rgba(167,139,250,0.3); box-shadow:0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
      }
      .ac-rb-dot { width:8px; height:8px; border-radius:50%; background:#a78bfa; box-shadow:0 0 0 4px rgba(167,139,250,0.2); flex-shrink:0; animation:saJiggle 0.6s ease-in-out infinite; }
      .ac-rb-text { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
      .ac-rb-text b { font:800 13px 'Rajdhani',sans-serif; color:#ede9fe; letter-spacing:0.3px; }
      .ac-rb-text span { font-size:12px; color:var(--textMuted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .ac-rb-done { flex-shrink:0; min-height:40px; padding:0 18px; border:none; border-radius:11px; cursor:pointer; font:800 14px 'Rajdhani',sans-serif; letter-spacing:0.4px; color:#fff;
        background:linear-gradient(135deg,#10b981,#06b6d4); box-shadow:0 4px 14px rgba(16,185,129,0.35); }
      .ac-head { gap:8px; }
      .ac-title { font-size:16px; }
      .ac-grid { grid-template-columns:1fr; gap:10px; }
      .ac-card { padding:14px 16px; }
      .ac-code { font-size:34px; }
      .ac-timer { width:44px; height:44px; }
      .ac-sec { font-size:14px; }
      .acs-qr-btns { flex-direction:column; }
    }
  
.ol-use { display:block; margin:8px 0 0; font-size:11px; color:var(--textMuted, rgba(205,195,245,0.55)); }
.cw-dly { margin-top:10px; padding:10px 14px 12px; border-top:1px solid rgba(255,255,255,0.06); }
.cw-dh { font:700 10.5px Orbitron,sans-serif; letter-spacing:.07em; color:rgba(205,195,245,0.65); margin:0 0 6px; text-transform:uppercase; }
.cw-dn { margin:0; font-size:12.5px; color:rgba(205,195,245,0.6); }
.cw-dr { display:grid; grid-template-columns:92px minmax(0,1fr) auto auto 44px; gap:10px; align-items:center; padding:7px 0; border-bottom:1px solid rgba(255,255,255,0.05); font-size:12.5px; }
.cw-dr:last-child { border-bottom:0; }
.cw-dd { color:rgba(205,195,245,0.7); white-space:nowrap; }
.cw-dw { display:flex; align-items:center; gap:6px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#ece6ff; }
.cw-dr .cw-g, .cw-dr .cw-r { font-weight:700; white-space:nowrap; text-align:right; }
.cw-dr small { color:rgba(205,195,245,0.55); text-align:right; }
@media (max-width:600px) { .cw-dr { grid-template-columns:1fr auto; } .cw-dr .cw-dw { grid-column:1; } .cw-dr small { display:none; } }
