/* ===== Extracted from index.html <style> block 1 ===== */


*{box-sizing:border-box}
    body{margin:0;font-family:Arial,sans-serif;color:#1e293b;background:linear-gradient(135deg,#e8edf5,#eef1f7,#e7e3f3);min-height:100vh}
    .login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
    .login-card{width:100%;max-width:430px;background:#f4f6fb;border:1px solid #d7dce8;border-radius:24px;padding:34px;box-shadow:0 18px 40px rgba(71,85,105,.16)}
    .login-logo{font-size:34px;font-weight:900;color:#6d5dfc;margin-bottom:8px}
    .login-sub{color:#64748b;font-size:14px;margin-bottom:26px}
    .layout{display:flex;min-height:100vh}
    .sidebar{width:240px;background:#dfe4ee;border-right:1px solid #cbd5e1;padding:28px 22px;position:fixed;top:0;bottom:0;left:0;overflow:auto}
    .logo{font-size:32px;font-weight:900;color:#6d5dfc}
    .sublogo{font-size:12px;letter-spacing:2px;color:#64748b;margin:8px 0 32px}
    .menu{padding:14px 16px;border-radius:14px;margin-bottom:10px;cursor:pointer;color:#475569;font-weight:800;font-size:14px;position:relative}
    .active{background:linear-gradient(90deg,#7c3aed,#2563eb);color:white;box-shadow:0 10px 24px rgba(99,102,241,.25)}
    .profile{margin-top:28px;padding:16px;border-radius:18px;background:#eef2f7;border:1px solid #cbd5e1;color:#475569;font-size:13px}
    .content{margin-left:240px;width:calc(100% - 240px);padding:24px}
    .page{display:none}
    .show{display:block}
    .wrapper{max-width:1360px;margin:auto}
    .form-layout{display:grid;grid-template-columns:minmax(620px,820px) 320px;gap:20px;align-items:start;justify-content:center}
    .panel{background:#f4f6fb;border:1px solid #d7dce8;border-radius:22px;padding:28px;box-shadow:0 12px 28px rgba(71,85,105,.12)}
    h2{margin:0 0 8px;font-size:30px;color:#172033}
    .subtitle{color:#64748b;margin-bottom:24px;font-size:14px}
    .grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
    .full{grid-column:1/3}
    label{display:block;font-weight:800;margin-bottom:8px;color:#1e293b;font-size:14px}
    input,select,textarea{width:100%;padding:14px;border-radius:12px;border:1px solid #cbd5e1;background:#f8fafc;color:#1e293b;outline:none;font-size:14px}
    input::placeholder,textarea::placeholder{color:#7c86a2}
    input:focus,select:focus,textarea:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
    textarea{min-height:90px;resize:vertical}
    .readonly{background:#e8edf5!important;color:#64748b;cursor:not-allowed}
    .lockline{margin-top:9px;font-size:13px;color:#475569;display:flex;align-items:center;gap:8px;font-weight:600}
    .lockline input{width:auto;accent-color:#7c3aed}
    button{width:100%;margin-top:24px;padding:15px;border:0;border-radius:14px;color:white;font-size:15px;font-weight:900;cursor:pointer;background:linear-gradient(90deg,#7c3aed,#2563eb);box-shadow:0 10px 24px rgba(99,102,241,.22)}
    button:disabled{background:#94a3b8;box-shadow:none;cursor:not-allowed}
    #status,#loginStatus,#syncStatus,#bcStatus{margin-top:15px;text-align:center;font-weight:900}
    .side-card{background:#f4f6fb;border:1px solid #d7dce8;border-radius:20px;padding:20px;margin-bottom:16px;box-shadow:0 10px 24px rgba(71,85,105,.10)}
    .side-title{font-size:17px;font-weight:900;color:#6d5dfc;margin-bottom:14px}
    .note-row{padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid #d7dce8;margin-bottom:10px;font-weight:700;color:#1e293b;font-size:13px}
    .upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .upload-card{background:#f8fafc;border:1px dashed #94a3b8;border-radius:16px;padding:14px}
    .upload-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:13px;background:linear-gradient(90deg,#7c3aed,#2563eb);color:white;font-weight:900;cursor:pointer;font-size:13px}
    .upload-name{margin-top:10px;font-size:12px;color:#475569;font-weight:700;word-break:break-all;line-height:1.5}
    .upload-hint{font-size:12px;color:#64748b;margin-top:8px;line-height:1.5}
    .hidden-file{display:none}
    .history-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:20px}
    .filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
    .filter-btn{width:auto;margin:0;padding:12px 16px;font-size:13px}
    .sync-btn{width:auto;margin:0;padding:12px 16px;font-size:13px;background:linear-gradient(90deg,#16a34a,#2563eb)}
    .case-btn{width:auto;margin:0;padding:8px 11px;font-size:12px;border-radius:10px;background:linear-gradient(90deg,#7c3aed,#2563eb)}
    .search{min-width:260px}
    table{width:100%;border-collapse:collapse;background:#f8fafc;border-radius:18px;overflow:hidden}
    th{color:#334155;text-align:left;padding:12px 10px;font-size:12px;border-bottom:1px solid #d7dce8;background:#edf1f7;white-space:nowrap}
    td{padding:12px 10px;border-bottom:1px solid #e2e8f0;font-size:12px;color:#334155;vertical-align:middle}
    .badge{padding:6px 12px;border-radius:999px;font-size:11px;font-weight:900;display:inline-block;white-space:nowrap}
    .pending{background:#fff4d6;color:#d97706}
    .process{background:#dbeafe;color:#2563eb}
    .approved{background:#dcfce7;color:#16a34a}
    .rejected{background:#fee2e2;color:#dc2626}
    .ok{background:#dcfce7;color:#16a34a}
    .notok{background:#e2e8f0;color:#64748b}
    .slip{font-weight:900;color:#0f172a;font-size:13px}
    .slip-red{color:#dc2626}
    .duplicate{background:#fee2e2;color:#dc2626;font-weight:900;padding:3px 7px;border-radius:8px;display:inline-block;margin-top:4px;font-size:10px}
    a{color:#2563eb;font-weight:900;text-decoration:none}

    .bc-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:99999;padding:20px}
    .bc-modal{width:min(900px,96vw);max-height:90vh;overflow:auto;background:#f8fafc;border-radius:22px;border:1px solid #d7dce8;box-shadow:0 22px 60px rgba(15,23,42,.25);padding:22px;color:#1e293b}
    .bc-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}
    .bc-title{font-size:22px;font-weight:900;color:#172033;margin-bottom:5px}
    .bc-sub{font-size:13px;color:#64748b;line-height:1.6}
    .bc-close{width:auto;margin:0;padding:9px 13px;border-radius:12px;background:#e2e8f0;color:#334155;box-shadow:none}
    .bc-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
    .bc-box{background:#eef2f7;border:1px solid #d7dce8;border-radius:14px;padding:12px;font-size:13px;line-height:1.7}
    .bc-list{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;max-height:330px;overflow:auto;margin-bottom:14px}
    .bc-comment{border-bottom:1px solid #e2e8f0;padding:12px 4px}
    .bc-comment:last-child{border-bottom:0}
    .bc-comment-head{font-weight:900;font-size:12px;color:#334155;margin-bottom:6px}
    .bc-comment-msg{font-size:13px;line-height:1.7;white-space:pre-wrap;color:#1e293b}
    .bc-comment-time{font-size:11px;color:#64748b;margin-top:6px}
    .bc-form{display:grid;grid-template-columns:1fr 210px;gap:12px;align-items:start}
    .bc-form textarea{width:100%;min-height:90px;border-radius:14px;border:1px solid #cbd5e1;padding:12px;background:#fff;resize:vertical}
    .bc-upload-label{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:14px;background:linear-gradient(90deg,#7c3aed,#2563eb);color:white;font-weight:900;cursor:pointer;font-size:13px}
    .bc-file{display:none}
    .bc-file-name{font-size:12px;color:#64748b;margin-top:8px;line-height:1.5;word-break:break-all}
    .bc-send{margin-top:12px;width:100%;padding:14px;border-radius:14px;background:linear-gradient(90deg,#16a34a,#2563eb)}
    .bc-status{margin-top:10px;text-align:center;font-weight:900}

    @media(max-width:1200px){.form-layout{grid-template-columns:1fr}}
    @media(max-width:900px){
      .sidebar{position:relative;width:100%;height:auto}
      .content{margin-left:0;width:100%;padding:18px}
      .layout{display:block}
      .grid{grid-template-columns:1fr}
      .full{grid-column:1}
      .upload-grid{grid-template-columns:1fr}
      table{display:block;overflow:auto}
      .bc-info{grid-template-columns:1fr}
      .bc-form{grid-template-columns:1fr}
    }
  
    /* ===== USER LIGHT COOL BLUE GLASS UI ===== */
    @keyframes userFadeUp{from{opacity:0;transform:translateY(10px);filter:blur(2px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
    @keyframes userSoftGlow{0%,100%{box-shadow:0 14px 34px rgba(59,130,246,.12)}50%{box-shadow:0 18px 42px rgba(99,102,241,.20)}}
    body{
      color:#10233f!important;
      background:
        radial-gradient(circle at 8% 8%, rgba(96,165,250,.26), transparent 30%),
        radial-gradient(circle at 90% 8%, rgba(167,139,250,.18), transparent 34%),
        linear-gradient(135deg,#f5fbff 0%,#eef7ff 45%,#f8fbff 100%)!important;
      overflow-x:hidden;
    }
    body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.55),rgba(255,255,255,.10),rgba(255,255,255,.42));z-index:-1}
    .login-card,.sidebar,.profile,.panel,.side-card,.bc-modal{
      background:rgba(255,255,255,.62)!important;
      border:1px solid rgba(148,163,184,.26)!important;
      box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
      backdrop-filter:blur(18px) saturate(150%);
      -webkit-backdrop-filter:blur(18px) saturate(150%);
    }
    .sidebar{background:rgba(240,248,255,.66)!important;box-shadow:18px 0 42px rgba(59,130,246,.10)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
    .logo,.login-logo{color:#2563eb!important;letter-spacing:1px;text-shadow:0 8px 20px rgba(37,99,235,.12)}
    .menu{background:rgba(255,255,255,.36);border:1px solid rgba(148,163,184,.16);transition:all .22s ease}
    .menu:hover{transform:translateX(2px);background:rgba(255,255,255,.72);box-shadow:0 12px 26px rgba(59,130,246,.11)}
    .active{background:linear-gradient(135deg,#60a5fa,#2563eb 52%,#7c3aed)!important;box-shadow:0 16px 32px rgba(37,99,235,.28)!important}
    .panel,.side-card{animation:userFadeUp .34s ease both}
    .panel:hover,.side-card:hover{box-shadow:0 18px 42px rgba(59,130,246,.14)!important}
    button,.filter-btn,.sync-btn,.case-btn{background:linear-gradient(135deg,#60a5fa,#2563eb 55%,#7c3aed)!important;box-shadow:0 12px 24px rgba(37,99,235,.20)!important;transition:all .2s ease}
    button:not(:disabled):hover,.filter-btn:not(:disabled):hover,.case-btn:not(:disabled):hover{transform:translateY(-1px);animation:userSoftGlow 1.6s ease infinite}
    input,select,textarea{background:rgba(255,255,255,.74)!important;border:1px solid rgba(148,163,184,.34)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.70),0 8px 20px rgba(59,130,246,.06)}
    input:focus,select:focus,textarea:focus{border-color:#60a5fa!important;box-shadow:0 0 0 4px rgba(96,165,250,.18)!important;outline:none}
    .user-lang-box{margin-top:14px;padding:12px;border-radius:16px;background:rgba(255,255,255,.50);border:1px solid rgba(148,163,184,.22)}
    .user-lang-label{font-size:11px;font-weight:900;color:#64748b;margin-bottom:8px;letter-spacing:.6px}
    #userLangSelect{width:100%;padding:9px 10px;border-radius:12px;font-weight:900;color:#1e3a8a}
    .login-lang-box{margin-top:14px;text-align:left;background:rgba(248,250,252,.9);border:1px solid #dbeafe;border-radius:14px;padding:10px 12px}
    .login-lang-box label{display:block;font-size:11px;font-weight:1000;color:#1e3a8a;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
    .login-lang-box select{width:100%;padding:9px 10px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;font-weight:900}

    /* ===== USER CLAIM HISTORY COMPACT TABLE + PAGINATION ===== */
    .history-table-wrap{width:100%;overflow-x:hidden;border-radius:18px;border:1px solid rgba(148,163,184,.20);background:rgba(255,255,255,.42)}
    #historyPage table{width:100%!important;min-width:0!important;table-layout:fixed!important;background:rgba(255,255,255,.50)!important;border-radius:18px!important}
    #historyPage th{font-size:10.8px!important;font-weight:900!important;color:#0f172a!important;background:rgba(224,242,254,.92)!important;padding:9px 5px!important;line-height:1.22!important;text-align:center!important;white-space:normal!important}
    #historyPage td{font-size:10.8px!important;font-weight:700!important;color:#111827!important;padding:8px 5px!important;line-height:1.25!important;text-align:center!important;overflow-wrap:anywhere!important;word-break:break-word!important}
    #historyPage tbody tr{animation:none!important;transition:background .18s ease!important}
    #historyPage tbody tr:hover td{background:rgba(219,234,254,.55)!important}
    #historyPage .slip{font-size:10.8px!important;font-weight:900!important;color:#0f172a!important}
    #historyPage .badge{font-size:10px!important;font-weight:900!important;padding:4px 7px!important;white-space:normal!important}
    #historyPage .case-btn{font-size:10px!important;font-weight:900!important;padding:6px 7px!important;border-radius:9px!important;min-width:58px}
    #historyPage td a{font-size:10px!important;line-height:1.35!important;display:inline-block}
    #historyPage .history-top{align-items:flex-start!important}
    .history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap;color:#64748b;font-size:13px;font-weight:800;background:rgba(255,255,255,.50);border:1px solid rgba(148,163,184,.22);padding:10px 12px;border-radius:16px}
    .history-pagination-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .history-page-btn{border:none;border-radius:10px;background:rgba(255,255,255,.70)!important;color:#4f46e5!important;font-weight:900;padding:9px 12px;cursor:pointer;box-shadow:0 8px 18px rgba(59,130,246,.08)!important}
    .history-page-btn:disabled{background:#e2e8f0!important;color:#94a3b8!important;cursor:not-allowed;box-shadow:none!important}
    .history-page-size{padding:9px 10px;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc;font-weight:800;color:#334155}
    #historyPage th:nth-child(1){width:8.5%}
    #historyPage th:nth-child(2){width:8.5%}
    #historyPage th:nth-child(3){width:6.5%}
    #historyPage th:nth-child(4){width:7.5%}
    #historyPage th:nth-child(5){width:8.5%}
    #historyPage th:nth-child(6){width:5.5%}
    #historyPage th:nth-child(7){width:7%}
    #historyPage th:nth-child(8){width:6%}
    #historyPage th:nth-child(9){width:6.5%}
    #historyPage th:nth-child(10){width:6.5%}
    #historyPage th:nth-child(11){width:5%}
    #historyPage th:nth-child(12){width:8%}
    #historyPage th:nth-child(13){width:8%}
    #historyPage th:nth-child(14){width:6.5%}
    @media(max-width:1180px){.form-layout{grid-template-columns:1fr!important}.history-table-wrap{overflow-x:auto}#historyPage table{min-width:980px!important}.content{padding:16px!important}.sidebar{width:220px!important}.content{margin-left:220px!important;width:calc(100% - 220px)!important}}

  
    /* ===== USER CLAIM HISTORY READABILITY + COMPACT PAGINATION FIX ===== */
    #historyPage .wrapper{
      max-width:1500px!important;
      width:96%!important;
    }
    #historyPage .panel{
      padding:30px!important;
      border-radius:26px!important;
    }
    #historyPage h2{
      font-size:32px!important;
      letter-spacing:.3px;
    }
    .history-table-wrap{
      border-radius:20px!important;
      overflow-x:hidden!important;
    }
    #historyPage table{
      width:100%!important;
      min-width:0!important;
      table-layout:fixed!important;
    }
    #historyPage th{
      font-size:11.6px!important;
      font-weight:900!important;
      padding:10px 6px!important;
      color:#0f172a!important;
    }
    #historyPage td{
      font-size:11.6px!important;
      font-weight:700!important;
      padding:9px 6px!important;
      color:#111827!important;
    }
    #historyPage .slip{
      font-size:11.6px!important;
      font-weight:900!important;
    }
    #historyPage .badge{
      font-size:10.8px!important;
      font-weight:900!important;
      padding:5px 8px!important;
    }
    #historyPage .case-btn{
      width:auto!important;
      margin-top:0!important;
      font-size:10.8px!important;
      font-weight:900!important;
      padding:7px 9px!important;
      min-width:64px!important;
      border-radius:10px!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
    }
    #historyPage td a{
      font-size:10.8px!important;
      font-weight:900!important;
    }

    /* Pagination dibuat kecil dan rapi, tidak jadi kotak besar */
    .history-pagination{
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:12px!important;
      margin-top:12px!important;
      padding:10px 14px!important;
      min-height:0!important;
      border-radius:16px!important;
      background:rgba(255,255,255,.58)!important;
    }
    .history-pagination-controls{
      display:flex!important;
      align-items:center!important;
      justify-content:flex-end!important;
      gap:8px!important;
      flex-wrap:nowrap!important;
    }
    .history-page-btn{
      width:auto!important;
      min-width:86px!important;
      margin-top:0!important;
      padding:9px 13px!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      line-height:1.1!important;
    }
    .history-page-size{
      width:auto!important;
      min-width:110px!important;
      margin-top:0!important;
      padding:9px 10px!important;
      line-height:1.1!important;
    }
    #historyPaginationInfo,
    #historyPageIndicator{
      white-space:nowrap!important;
      font-size:12.5px!important;
      font-weight:900!important;
      color:#475569!important;
    }

    /* Sedikit balance ulang lebar kolom supaya tetap muat tanpa scroll */
    #historyPage th:nth-child(1){width:9%!important}
    #historyPage th:nth-child(2){width:8.2%!important}
    #historyPage th:nth-child(3){width:6.2%!important}
    #historyPage th:nth-child(4){width:7.2%!important}
    #historyPage th:nth-child(5){width:8.5%!important}
    #historyPage th:nth-child(6){width:5.2%!important}
    #historyPage th:nth-child(7){width:7.2%!important}
    #historyPage th:nth-child(8){width:5.8%!important}
    #historyPage th:nth-child(9){width:6.4%!important}
    #historyPage th:nth-child(10){width:6.4%!important}
    #historyPage th:nth-child(11){width:4.8%!important}
    #historyPage th:nth-child(12){width:8%!important}
    #historyPage th:nth-child(13){width:8%!important}
    #historyPage th:nth-child(14){width:7.1%!important}

    @media(max-width:1250px){
      #historyPage .wrapper{width:98%!important}
      #historyPage .panel{padding:22px!important}
      #historyPage th{font-size:10.8px!important;padding:8px 4px!important}
      #historyPage td{font-size:10.8px!important;padding:8px 4px!important}
      .history-pagination{align-items:flex-start!important;flex-direction:column!important}
      .history-pagination-controls{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important}
    }

  
    /* ===== USER REFRESH / FILTER FEEDBACK ===== */
    @keyframes btnPulseGlow{
      0%{transform:translateY(0);box-shadow:0 10px 22px rgba(37,99,235,.18)}
      50%{transform:translateY(-1px);box-shadow:0 16px 30px rgba(37,99,235,.32)}
      100%{transform:translateY(0);box-shadow:0 10px 22px rgba(37,99,235,.18)}
    }
    @keyframes miniSpin{
      from{transform:rotate(0deg)}
      to{transform:rotate(360deg)}
    }
    .filter-btn{
      transition:all .18s ease!important;
    }
    .filter-btn:active{
      transform:scale(.97)!important;
    }
    .filter-btn.is-loading{
      opacity:.92;
      cursor:wait!important;
      animation:btnPulseGlow .9s ease infinite;
    }
    .mini-spinner{
      display:inline-block;
      width:12px;
      height:12px;
      border:2px solid rgba(255,255,255,.45);
      border-top-color:#fff;
      border-radius:50%;
      margin-right:7px;
      vertical-align:-2px;
      animation:miniSpin .75s linear infinite;
    }
    .history-refresh-status{
      display:inline-flex;
      align-items:center;
      min-height:32px;
      padding:0 8px;
      color:#2563eb;
      font-size:12px;
      font-weight:900;
      white-space:nowrap;
    }
    .history-refresh-status.ok{color:#16a34a}
    .history-refresh-status.err{color:#dc2626}

  
    /* ===== UPLOAD ACCESS TEST ===== */
    .upload-access-card{background:rgba(255,255,255,.62)!important;border:1px solid rgba(148,163,184,.26)!important;border-radius:20px!important;padding:18px!important;box-shadow:0 10px 24px rgba(71,85,105,.10)!important;margin-bottom:16px}
    .upload-access-btn{width:100%!important;margin-top:10px!important;padding:12px 14px!important;border-radius:14px!important;background:linear-gradient(135deg,#22c55e,#2563eb)!important;color:white!important;font-weight:900!important;box-shadow:0 10px 24px rgba(37,99,235,.18)!important}
    .upload-access-status{margin-top:10px;font-size:12.5px;font-weight:900;line-height:1.5;color:#64748b;text-align:center}
    .upload-access-status.ok{color:#16a34a}.upload-access-status.err{color:#dc2626}.upload-access-status.loading{color:#2563eb}

  
    /* ===== USER VIEW MODE + RESPONSIVE READABILITY ===== */
    .user-view-box{
      margin-top:12px;
      padding:12px;
      border-radius:16px;
      background:rgba(255,255,255,.50);
      border:1px solid rgba(148,163,184,.22);
    }
    #userViewSelect{
      width:100%;
      padding:9px 10px;
      border-radius:12px;
      font-weight:900;
      color:#1e3a8a;
    }
    body.user-view-compact .content{padding:18px!important}
    body.user-view-compact .panel{padding:24px!important}
    body.user-view-compact .grid{gap:14px!important}
    body.user-view-compact input,
    body.user-view-compact select,
    body.user-view-compact textarea{font-size:13px!important;padding:12px!important}
    body.user-view-compact #historyPage th{font-size:10.5px!important;padding:8px 4px!important}
    body.user-view-compact #historyPage td{font-size:10.5px!important;padding:7px 4px!important}
    body.user-view-compact #historyPage h2{font-size:28px!important}

    body.user-view-comfortable .content{padding:24px!important}
    body.user-view-comfortable .panel{padding:30px!important}

    body.user-view-large .content{padding:28px!important}
    body.user-view-large .wrapper{max-width:1540px!important}
    body.user-view-large .panel{padding:34px!important}
    body.user-view-large h2{font-size:34px!important}
    body.user-view-large label{font-size:15px!important}
    body.user-view-large input,
    body.user-view-large select,
    body.user-view-large textarea{font-size:15px!important;padding:15px!important}
    body.user-view-large .note-row{font-size:14px!important}
    body.user-view-large #historyPage th{font-size:12.3px!important;padding:11px 7px!important}
    body.user-view-large #historyPage td{font-size:12.3px!important;padding:10px 7px!important}
    body.user-view-large #historyPage .badge{font-size:11.5px!important}
    body.user-view-large #historyPage .case-btn{font-size:11.5px!important;min-width:72px!important}

  
    /* ===== USER SIDEBAR MINIMAL + ADMIN-MATCH GLASS POLISH ===== */
    @media(min-width:901px){
      .sidebar{
        width:205px!important;
        padding:18px 12px!important;
        overflow-y:auto!important;
      }
      .content{
        margin-left:205px!important;
        width:calc(100% - 205px)!important;
        padding:20px!important;
      }
      .logo{
        font-size:25px!important;
        line-height:1.05!important;
      }
      .sublogo{
        font-size:10px!important;
        letter-spacing:1.4px!important;
        margin:6px 0 16px!important;
      }
      .menu{
        padding:9px 10px!important;
        margin-bottom:6px!important;
        border-radius:12px!important;
        font-size:12px!important;
        line-height:1.22!important;
      }
      .user-lang-box,
      .user-view-box{
        margin-top:8px!important;
        padding:8px!important;
        border-radius:13px!important;
      }
      .user-lang-label{
        font-size:9.5px!important;
        margin-bottom:5px!important;
      }
      #userLangSelect,
      #userViewSelect{
        padding:7px 8px!important;
        font-size:11.5px!important;
        border-radius:10px!important;
      }
      .profile{
        margin-top:10px!important;
        padding:10px!important;
        border-radius:14px!important;
        font-size:11.5px!important;
        line-height:1.45!important;
      }
    }

    /* If screen height is short, make sidebar even tighter */
    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-top:14px!important;
      }
      .logo{
        font-size:23px!important;
      }
      .sublogo{
        margin-bottom:10px!important;
      }
      .menu{
        padding:7px 9px!important;
        margin-bottom:4px!important;
        font-size:11.5px!important;
      }
      .user-lang-box,
      .user-view-box{
        padding:7px!important;
        margin-top:6px!important;
      }
      .profile{
        padding:8px!important;
        font-size:11px!important;
      }
    }

    /* Keep user design aligned with admin light cool blue glass */
    .panel,
    .side-card,
    .login-card,
    .profile,
    .sidebar{
      backdrop-filter:blur(18px) saturate(150%)!important;
      -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
    }
    .panel{
      border-radius:24px!important;
      box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
    }
    .side-card{
      border-radius:20px!important;
    }
    .active{
      background:linear-gradient(135deg,#60a5fa,#2563eb 52%,#7c3aed)!important;
    }

  
    /* ===== USER BOTTOM TOOLS: LANGUAGE + VIEW MODE ===== */
    @media(min-width:901px){
      .sidebar{
        padding-bottom:170px!important;
      }
      .sidebar-bottom-tools{
        position:fixed!important;
        left:12px!important;
        bottom:14px!important;
        width:181px!important;
        z-index:31;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:6px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        margin-top:0!important;
        padding:6px 7px!important;
        border-radius:12px!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 8px 18px rgba(59,130,246,.08)!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:8.8px!important;
        margin-bottom:4px!important;
        letter-spacing:.5px!important;
      }
      .sidebar-bottom-tools select{
        padding:6px 7px!important;
        font-size:10.8px!important;
        border-radius:9px!important;
        font-weight:900!important;
      }
      .sidebar .profile{
        margin-top:10px!important;
        margin-bottom:112px!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-bottom:150px!important;
      }
      .sidebar-bottom-tools{
        bottom:8px!important;
        gap:4px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        padding:5px 6px!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:8px!important;
        margin-bottom:3px!important;
      }
      .sidebar-bottom-tools select{
        padding:5px 6px!important;
        font-size:10px!important;
      }
      .sidebar .profile{
        margin-bottom:96px!important;
      }
    }

    @media(max-width:900px){
      .sidebar-bottom-tools{
        display:block!important;
      }
    }

  
    /* ===== USER PROFILE STATUS ALSO BOTTOM ===== */
    @media(min-width:901px){
      .sidebar{
        padding-bottom:235px!important;
      }
      .sidebar .profile{
        position:fixed!important;
        left:12px!important;
        bottom:128px!important;
        width:181px!important;
        margin:0!important;
        padding:8px 9px!important;
        border-radius:13px!important;
        font-size:10.8px!important;
        line-height:1.45!important;
        z-index:31!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 8px 18px rgba(59,130,246,.08)!important;
      }
      .sidebar-bottom-tools{
        bottom:14px!important;
        z-index:32!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-bottom:210px!important;
      }
      .sidebar .profile{
        bottom:106px!important;
        padding:6px 8px!important;
        font-size:10px!important;
      }
      .sidebar-bottom-tools{
        bottom:8px!important;
      }
    }

    @media(max-width:900px){
      .sidebar .profile{
        position:relative!important;
        left:auto!important;
        bottom:auto!important;
        width:auto!important;
        margin-top:10px!important;
      }
    }

  
    /* ===== HELLO FRIENDS FIELD ORDER ===== */
    #bonusFormGrid.hello-friends-grid > div{order:20}
    #bonusFormGrid.hello-friends-grid > div:nth-child(1){order:1}
    #bonusFormGrid.hello-friends-grid #tipeBonusUtamaBox{order:2}
    #bonusFormGrid.hello-friends-grid #helloFixedTypeBox{order:3}
    #bonusFormGrid.hello-friends-grid #tipeBonusBox{order:4}
    #bonusFormGrid.hello-friends-grid #nominalBonusBox{order:5}
    #bonusFormGrid.hello-friends-grid > div:nth-child(2){order:6}
    #bonusFormGrid.hello-friends-grid #akunDiajakBox{order:7}
    #bonusFormGrid.hello-friends-grid #jumlahPengenalanBox{order:8}
    #bonusFormGrid.hello-friends-grid #kodeAgenBox{order:9}
    #bonusFormGrid.hello-friends-grid #remarksBox{order:10}

  
    /* ===== FIX USER SIDEBAR BOTTOM STACK: PROFILE + LANGUAGE + VIEW ===== */
    @media(min-width:901px){
      .sidebar{
        padding-bottom:270px!important;
      }
      .sidebar-bottom-tools{
        position:fixed!important;
        left:12px!important;
        bottom:14px!important;
        width:181px!important;
        z-index:32!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:6px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        margin-top:0!important;
        padding:6px 7px!important;
        border-radius:12px!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 8px 18px rgba(59,130,246,.08)!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:8.8px!important;
        margin-bottom:4px!important;
        letter-spacing:.5px!important;
      }
      .sidebar-bottom-tools select{
        padding:6px 7px!important;
        font-size:10.8px!important;
        border-radius:9px!important;
        font-weight:900!important;
      }
      .sidebar .profile{
        position:fixed!important;
        left:12px!important;
        bottom:132px!important;
        width:181px!important;
        margin:0!important;
        padding:7px 8px!important;
        border-radius:13px!important;
        font-size:10.2px!important;
        line-height:1.36!important;
        z-index:31!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 8px 18px rgba(59,130,246,.08)!important;
      }
      .sidebar .profile b,
      .sidebar .profile span{
        font-size:10.2px!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-bottom:235px!important;
      }
      .sidebar-bottom-tools{
        bottom:8px!important;
        gap:4px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        padding:5px 6px!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:8px!important;
        margin-bottom:3px!important;
      }
      .sidebar-bottom-tools select{
        padding:5px 6px!important;
        font-size:10px!important;
      }
      .sidebar .profile{
        bottom:108px!important;
        padding:5px 7px!important;
        font-size:9.5px!important;
        line-height:1.28!important;
      }
      .sidebar .profile b,
      .sidebar .profile span{
        font-size:9.5px!important;
      }
    }

    @media(max-width:900px){
      .sidebar .profile{
        position:relative!important;
        left:auto!important;
        bottom:auto!important;
        width:auto!important;
        margin-top:10px!important;
      }
      .sidebar-bottom-tools{
        position:relative!important;
        left:auto!important;
        bottom:auto!important;
        width:auto!important;
        display:block!important;
      }
    }

  
    /* ===== USER SIDEBAR BOTTOM COMPACT FINAL ===== */
    @media(min-width:901px){
      .sidebar{
        padding-bottom:180px!important;
      }

      /* Language + View Mode jadi kecil dan tidak makan tempat */
      .sidebar-bottom-tools{
        position:fixed!important;
        left:12px!important;
        bottom:70px!important;
        width:181px!important;
        z-index:32!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:6px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        margin:0!important;
        padding:5px!important;
        border-radius:10px!important;
        background:rgba(255,255,255,.55)!important;
        border:1px solid rgba(148,163,184,.20)!important;
        box-shadow:0 6px 14px rgba(59,130,246,.06)!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:7.5px!important;
        margin:0 0 3px!important;
        letter-spacing:.35px!important;
        line-height:1!important;
      }
      .sidebar-bottom-tools select{
        min-height:27px!important;
        height:27px!important;
        padding:3px 5px!important;
        font-size:9.6px!important;
        border-radius:8px!important;
        font-weight:900!important;
      }

      /* Staff / email / online / sound active paling bawah */
      .sidebar .profile{
        position:fixed!important;
        left:12px!important;
        bottom:8px!important;
        width:181px!important;
        margin:0!important;
        padding:6px 7px!important;
        border-radius:11px!important;
        font-size:9.3px!important;
        line-height:1.23!important;
        z-index:31!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 6px 14px rgba(59,130,246,.06)!important;
      }
      .sidebar .profile b,
      .sidebar .profile span{
        font-size:9.3px!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-bottom:158px!important;
      }
      .sidebar-bottom-tools{
        bottom:58px!important;
        gap:4px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        padding:4px!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:7px!important;
      }
      .sidebar-bottom-tools select{
        min-height:24px!important;
        height:24px!important;
        font-size:8.8px!important;
        padding:2px 4px!important;
      }
      .sidebar .profile{
        bottom:6px!important;
        padding:5px 6px!important;
        font-size:8.8px!important;
        line-height:1.18!important;
      }
      .sidebar .profile b,
      .sidebar .profile span{
        font-size:8.8px!important;
      }
    }

    @media(max-width:900px){
      .sidebar-bottom-tools{
        position:relative!important;
        left:auto!important;
        bottom:auto!important;
        width:auto!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:8px!important;
      }
      .sidebar .profile{
        position:relative!important;
        left:auto!important;
        bottom:auto!important;
        width:auto!important;
        margin-top:10px!important;
      }
    }

  
    /* ===== USER BOTTOM SELECT VISIBILITY FIX ===== */
    @media(min-width:901px){
      .sidebar-bottom-tools{
        width:186px!important;
        gap:5px!important;
      }
      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        padding:4px 5px!important;
        min-width:0!important;
      }
      .sidebar-bottom-tools .user-lang-label{
        font-size:7px!important;
        margin:0 0 2px!important;
        line-height:1!important;
      }
      .sidebar-bottom-tools select{
        width:100%!important;
        min-width:0!important;
        height:25px!important;
        min-height:25px!important;
        line-height:13px!important;
        padding:2px 18px 2px 5px!important;
        font-size:8.8px!important;
        font-weight:900!important;
        white-space:nowrap!important;
        overflow:hidden!important;
        text-overflow:clip!important;
      }
      .sidebar-bottom-tools select option{
        font-size:11px!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar-bottom-tools select{
        height:23px!important;
        min-height:23px!important;
        line-height:12px!important;
        font-size:8.2px!important;
        padding:2px 16px 2px 4px!important;
      }
    }

  
    /* ===== USER BOTTOM DROPDOWN FINAL READABLE FIX ===== */
    @media(min-width:901px){
      .sidebar{
        padding-bottom:215px!important;
      }

      /* Jangan 2 kolom lagi, karena teks kepotong. Dibuat stack full width tapi tetap compact. */
      .sidebar-bottom-tools{
        position:fixed!important;
        left:12px!important;
        bottom:72px!important;
        width:181px!important;
        z-index:32!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:5px!important;
      }

      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        margin:0!important;
        padding:5px 6px!important;
        border-radius:10px!important;
        background:rgba(255,255,255,.58)!important;
        border:1px solid rgba(148,163,184,.22)!important;
        box-shadow:0 6px 14px rgba(59,130,246,.06)!important;
        min-width:0!important;
      }

      .sidebar-bottom-tools .user-lang-label{
        font-size:7.5px!important;
        margin:0 0 3px!important;
        line-height:1!important;
        letter-spacing:.35px!important;
      }

      .sidebar-bottom-tools select,
      #userLangSelect,
      #userViewSelect{
        width:100%!important;
        min-width:0!important;
        height:29px!important;
        min-height:29px!important;
        line-height:18px!important;
        padding:4px 24px 4px 8px!important;
        font-size:10.5px!important;
        font-weight:900!important;
        border-radius:9px!important;
        white-space:nowrap!important;
        overflow:visible!important;
        text-overflow:clip!important;
      }

      .sidebar-bottom-tools select option{
        font-size:12px!important;
      }

      .sidebar .profile{
        position:fixed!important;
        left:12px!important;
        bottom:8px!important;
        width:181px!important;
        margin:0!important;
        padding:6px 7px!important;
        border-radius:11px!important;
        font-size:9.3px!important;
        line-height:1.23!important;
        z-index:31!important;
      }
    }

    @media(min-width:901px) and (max-height:760px){
      .sidebar{
        padding-bottom:198px!important;
      }

      .sidebar-bottom-tools{
        bottom:64px!important;
        gap:4px!important;
      }

      .sidebar-bottom-tools .user-lang-box,
      .sidebar-bottom-tools .user-view-box{
        padding:4px 5px!important;
      }

      .sidebar-bottom-tools select,
      #userLangSelect,
      #userViewSelect{
        height:27px!important;
        min-height:27px!important;
        line-height:17px!important;
        font-size:10px!important;
        padding:3px 22px 3px 7px!important;
      }

      .sidebar .profile{
        bottom:6px!important;
        padding:5px 6px!important;
        font-size:8.8px!important;
        line-height:1.18!important;
      }
    }

  
    /* ===== USER PORTAL HOME PROJECT MENU ===== */
    .menu-group-label{
      margin:10px 8px 6px;
      color:#64748b;
      font-size:9px;
      font-weight:900;
      letter-spacing:.9px;
      opacity:.85;
    }
    .home-panel{
      max-width:1180px;
      margin:0 auto;
      background:rgba(255,255,255,.62);
      border:1px solid rgba(148,163,184,.26);
      border-radius:28px;
      padding:32px;
      box-shadow:0 18px 42px rgba(15,23,42,.08);
      backdrop-filter:blur(18px) saturate(150%);
      -webkit-backdrop-filter:blur(18px) saturate(150%);
      animation:userFadeUp .34s ease both;
    }
    .home-hero{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:18px;
      margin-bottom:24px;
    }
    .home-kicker{
      color:#2563eb;
      font-size:12px;
      font-weight:900;
      letter-spacing:1.4px;
      margin-bottom:6px;
    }
    .home-badge{
      padding:10px 14px;
      border-radius:14px;
      background:linear-gradient(135deg,#60a5fa,#2563eb 55%,#7c3aed);
      color:#fff;
      font-size:12px;
      font-weight:900;
      box-shadow:0 12px 24px rgba(37,99,235,.20);
      white-space:nowrap;
    }
    .project-grid{
      display:grid;
      grid-template-columns:repeat(4,minmax(180px,1fr));
      gap:16px;
    }
    .project-card{
      position:relative;
      min-height:220px;
      display:flex;
      flex-direction:column;
      background:rgba(255,255,255,.68);
      border:1px solid rgba(148,163,184,.24);
      border-radius:22px;
      padding:20px;
      box-shadow:0 14px 32px rgba(59,130,246,.09);
      transition:all .22s ease;
      overflow:hidden;
    }
    .project-card:before{
      content:"";
      position:absolute;
      inset:-40% -20% auto auto;
      width:120px;
      height:120px;
      border-radius:999px;
      background:rgba(96,165,250,.16);
      pointer-events:none;
    }
    .project-active:hover{
      transform:translateY(-3px);
      box-shadow:0 18px 42px rgba(37,99,235,.16);
      border-color:rgba(96,165,250,.46);
      cursor:pointer;
    }
    .project-disabled{
      opacity:.72;
      filter:saturate(.75);
      cursor:not-allowed;
    }
    .project-icon{
      width:48px;
      height:48px;
      border-radius:16px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:rgba(239,246,255,.92);
      font-size:24px;
      margin-bottom:14px;
    }
    .project-title{
      font-size:18px;
      font-weight:900;
      color:#0f172a;
      margin-bottom:8px;
    }
    .project-desc{
      flex:1;
      color:#64748b;
      font-size:13px;
      font-weight:700;
      line-height:1.65;
      margin-bottom:14px;
    }
    .project-btn{
      width:100%;
      margin:0;
      padding:12px 14px;
      border-radius:13px;
      font-size:13px;
    }
    .project-btn.disabled{
      background:#cbd5e1!important;
      color:#64748b!important;
      box-shadow:none!important;
      cursor:not-allowed!important;
    }
    @media(max-width:1300px){
      .project-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}
    }
    @media(max-width:700px){
      .home-panel{padding:22px}
      .home-hero{display:block}
      .home-badge{display:inline-block;margin-top:12px}
      .project-grid{grid-template-columns:1fr}
    }

  
    /* ===== HOME PORTAL MODE: HIDE BONUS SIDEBAR UNTIL CLAIM BONUS CLICKED ===== */
    .bonus-nav{
      display:none!important;
    }
    body.bonus-mode .bonus-nav{
      display:block!important;
    }
    body.bonus-mode .menu-group-label.bonus-nav{
      display:block!important;
    }

  
    /* ===== USER COMMENT BADGE + BUTTON FEEDBACK FINAL ===== */
    @keyframes userBtnPulse{
      0%,100%{transform:translateY(0);box-shadow:0 10px 22px rgba(37,99,235,.18)}
      50%{transform:translateY(-1px);box-shadow:0 16px 30px rgba(37,99,235,.32)}
    }
    @keyframes userBtnDone{
      0%{transform:scale(.98)}
      55%{transform:scale(1.035)}
      100%{transform:scale(1)}
    }
    @keyframes userBtnShake{
      0%,100%{transform:translateX(0)}
      25%{transform:translateX(-3px)}
      75%{transform:translateX(3px)}
    }
    .btn-loading,
    button.btn-loading,
    .case-btn.btn-loading,
    .bc-send.btn-loading{
      opacity:.95!important;
      cursor:wait!important;
      animation:userBtnPulse .9s ease infinite!important;
    }
    .btn-success,
    button.btn-success,
    .case-btn.btn-success,
    .bc-send.btn-success{
      background:linear-gradient(135deg,#22c55e,#16a34a)!important;
      animation:userBtnDone .38s ease both!important;
    }
    .btn-error,
    button.btn-error,
    .case-btn.btn-error,
    .bc-send.btn-error{
      background:linear-gradient(135deg,#fb7185,#dc2626)!important;
      animation:userBtnShake .28s ease both!important;
    }
    .bonus-comment-btn{
      position:relative!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      gap:5px!important;
    }
    .comment-unread-pill{
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      min-width:18px!important;
      height:18px!important;
      padding:0 5px!important;
      border-radius:999px!important;
      background:#ef4444!important;
      color:#fff!important;
      font-size:10px!important;
      font-weight:900!important;
      line-height:1!important;
      box-shadow:0 6px 14px rgba(239,68,68,.35)!important;
    }
    #historyPage tr.has-unread-comment td{
      background:rgba(239,246,255,.72)!important;
      box-shadow:inset 4px 0 0 rgba(37,99,235,.70)!important;
    }

  
    /* ===== USER REALTIME COMMENT BADGE ===== */
    .user-side-badge{
      display:none;
      position:absolute;
      right:10px;
      top:50%;
      transform:translateY(-50%);
      min-width:20px;
      height:20px;
      padding:0 6px;
      border-radius:999px;
      background:#ef4444;
      color:#fff;
      font-size:10.5px;
      font-weight:900;
      line-height:20px;
      text-align:center;
      box-shadow:0 8px 18px rgba(239,68,68,.25);
    }
    .menu.has-user-unread{
      background:rgba(239,246,255,.88)!important;
      border-color:rgba(37,99,235,.22)!important;
      box-shadow:0 10px 24px rgba(37,99,235,.10)!important;
    }
    .menu.active .user-side-badge{
      background:#f87171;
      color:#fff;
    }

  
    /* ===== USER CLAIM HISTORY READABILITY FIX - DO NOT CHANGE LOGIC ===== */
    /* Fix active Claim History sidebar text: tetap terlihat jelas saat menu aktif */
    #historyMenu.active{
      color:#0f172a!important;
      background:rgba(219,234,254,.82)!important;
      border-color:rgba(37,99,235,.26)!important;
      box-shadow:0 10px 24px rgba(37,99,235,.12)!important;
    }
    #historyMenu.active #menuHistoryText{
      color:#0f172a!important;
      font-weight:900!important;
    }

    /* Fix unread row: hilangkan garis/border biru per-kolom, ganti jadi highlight lembut satu baris */
    #historyPage tr.has-unread-comment td,
    #historyPage tbody tr.has-unread-comment td{
      box-shadow:none!important;
      border-left:0!important;
      border-right:0!important;
      background:rgba(239,246,255,.68)!important;
    }
    #historyPage tr.has-unread-comment td:first-child,
    #historyPage tbody tr.has-unread-comment td:first-child{
      box-shadow:inset 4px 0 0 rgba(37,99,235,.70)!important;
    }

    /* Hindari border vertical tebal akibat highlight unread/comment */
    #historyPage td{
      border-left:0!important;
      border-right:0!important;
    }

  
    /* ===== COMMENT BUTTON + WHATSAPP STYLE CHAT FIX ===== */
    .bonus-comment-btn,
    .comment-btn-wrap,
    #historyPage .case-btn.bonus-comment-btn,
    #managePage .btn.comment-btn-wrap{
      white-space:nowrap!important;
      word-break:normal!important;
      overflow-wrap:normal!important;
      min-width:88px!important;
      max-width:none!important;
      line-height:1.1!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      gap:5px!important;
    }
    #historyPage td:last-child,
    #managePage td:last-child{
      overflow-wrap:normal!important;
      word-break:normal!important;
    }
    .bc-list{
      background:rgba(255,255,255,.52)!important;
    }
    .bc-comment{
      width:100%;
      display:flex!important;
      flex-direction:column!important;
      border-bottom:0!important;
      padding:7px 4px!important;
    }
    .bc-bubble{
      max-width:72%;
      padding:10px 12px;
      border-radius:16px;
      box-shadow:0 8px 20px rgba(15,23,42,.06);
      border:1px solid rgba(148,163,184,.18);
    }
    .bc-comment.mine{
      align-items:flex-end!important;
    }
    .bc-comment.theirs{
      align-items:flex-start!important;
    }
    .bc-comment.mine .bc-bubble{
      background:linear-gradient(135deg,#60a5fa,#2563eb 62%,#7c3aed);
      color:#fff;
      border-color:rgba(96,165,250,.28);
      border-bottom-right-radius:6px;
    }
    .bc-comment.theirs .bc-bubble{
      background:rgba(255,255,255,.88);
      color:#1e293b;
      border-bottom-left-radius:6px;
    }
    .bc-comment.mine .bc-comment-head,
    .bc-comment.mine .bc-comment-msg,
    .bc-comment.mine .bc-comment-time,
    .bc-comment.mine a{
      color:#fff!important;
    }
    .bc-comment.theirs .bc-comment-head{
      color:#334155!important;
    }
    .bc-comment-head{
      font-weight:900!important;
      font-size:11px!important;
      margin-bottom:5px!important;
      opacity:.9;
    }
    .bc-comment-msg{
      font-size:13px!important;
      line-height:1.55!important;
      white-space:pre-wrap!important;
      word-break:break-word!important;
    }
    .bc-comment-time{
      font-size:10.5px!important;
      margin-top:6px!important;
      opacity:.78;
    }
    @media(max-width:700px){
      .bc-bubble{max-width:88%!important}
    }

  
    /* ===== AUTO UPPERCASE FIELDS ===== */
    #akunMember,
    #kodeAgen,
    #nomorSlip,
    #akunDiajak{
      text-transform:uppercase;
    }

  

    /* ===============================
       AI WEB PREMIUM UI MERGE FINAL
       Visual-only polish, no backend/function changes.
       =============================== */
    :root{
      --aiweb-primary:#4f46e5;
      --aiweb-secondary:#06b6d4;
      --aiweb-accent:#a855f7;
      --aiweb-ink:#0f172a;
      --aiweb-muted:#64748b;
      --aiweb-card:rgba(255,255,255,.80);
      --aiweb-line:rgba(148,163,184,.24);
      --aiweb-shadow:0 24px 60px rgba(15,23,42,.12);
    }
    body{
      background:
        radial-gradient(circle at 8% 0%,rgba(79,70,229,.18),transparent 34%),
        radial-gradient(circle at 95% 12%,rgba(6,182,212,.18),transparent 30%),
        radial-gradient(circle at 65% 100%,rgba(168,85,247,.10),transparent 28%),
        linear-gradient(135deg,#f8fbff 0%,#eef4ff 48%,#f8f5ff 100%)!important;
      color:var(--aiweb-ink)!important;
    }
    body:before{
      content:"";
      position:fixed;
      inset:0;
      pointer-events:none;
      background-image:linear-gradient(rgba(15,23,42,.032) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.032) 1px,transparent 1px);
      background-size:36px 36px;
      mask-image:linear-gradient(to bottom,rgba(0,0,0,.50),transparent 74%);
      z-index:0;
    }
    .layout,.login-page{position:relative;z-index:1}
    .sidebar{
      background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(239,246,255,.76))!important;
      border-right:1px solid rgba(148,163,184,.25)!important;
      box-shadow:18px 0 50px rgba(30,41,59,.08)!important;
      backdrop-filter:blur(18px) saturate(150%)!important;
      -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
    }
    .logo,.login-logo{
      color:#1e1b4b!important;
      letter-spacing:.08em!important;
      text-shadow:0 10px 30px rgba(79,70,229,.18)!important;
    }
    .aiweb-edition-badge{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin:10px 0 16px;
      padding:7px 10px;
      border-radius:999px;
      background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(6,182,212,.12));
      border:1px solid rgba(79,70,229,.18);
      color:#4338ca;
      font-size:11px;
      font-weight:1000;
      letter-spacing:.08em;
    }
    .menu{
      border:1px solid transparent!important;
      border-radius:16px!important;
      transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease!important;
    }
    .menu:hover{
      border-color:rgba(79,70,229,.16)!important;
      background:rgba(255,255,255,.82)!important;
      box-shadow:0 14px 30px rgba(79,70,229,.12)!important;
      transform:translateX(3px);
    }
    .menu.active,.active{
      background:linear-gradient(135deg,#4f46e5,#06b6d4)!important;
      color:#fff!important;
      box-shadow:0 16px 34px rgba(79,70,229,.28)!important;
    }
    .panel,.home-panel,.side-card,.login-card,.profile,.bc-modal{
      background:var(--aiweb-card)!important;
      border:1px solid var(--aiweb-line)!important;
      box-shadow:var(--aiweb-shadow)!important;
      backdrop-filter:blur(18px) saturate(150%)!important;
      -webkit-backdrop-filter:blur(18px) saturate(150%)!important;
    }
    .home-hero{
      background:linear-gradient(135deg,rgba(79,70,229,.09),rgba(6,182,212,.10),rgba(168,85,247,.08))!important;
      border:1px solid rgba(79,70,229,.14)!important;
      border-radius:24px!important;
      padding:22px!important;
    }
    .home-badge,.project-btn,#submitBtn,.filter-btn,.sync-btn,.bc-send,#loginBtn,button{
      background:linear-gradient(135deg,#4f46e5,#06b6d4)!important;
      box-shadow:0 16px 36px rgba(79,70,229,.22)!important;
    }
    .project-card{
      background:rgba(255,255,255,.82)!important;
      border:1px solid rgba(148,163,184,.22)!important;
      box-shadow:0 18px 44px rgba(15,23,42,.10)!important;
    }
    .project-active:hover,.project-card:hover{transform:translateY(-5px)!important;box-shadow:0 26px 58px rgba(79,70,229,.18)!important}
    input,select,textarea{
      border-radius:14px!important;
      border:1px solid rgba(148,163,184,.36)!important;
      background:rgba(255,255,255,.86)!important;
      transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
    }
    input:focus,select:focus,textarea:focus{
      border-color:rgba(79,70,229,.55)!important;
      box-shadow:0 0 0 4px rgba(79,70,229,.11)!important;
      outline:none!important;
    }
    .history-table-wrap,table{
      background:rgba(255,255,255,.72)!important;
      border-color:rgba(148,163,184,.22)!important;
      box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
    }
    th{
      background:linear-gradient(180deg,#f8fafc,#eef2ff)!important;
      color:#334155!important;
      position:sticky;
      top:0;
      z-index:2;
    }
    tbody tr{transition:background .16s ease,transform .16s ease}
    tbody tr:hover{background:rgba(79,70,229,.055)!important}
    .badge,.case-btn,.comment-unread-pill,.user-side-badge{box-shadow:0 10px 22px rgba(15,23,42,.10)}

  
    /* ===== WELCOME BONUS KODE AGEN AUTOCOMPLETE ===== */
    #kodeAgenBox{
      position:relative;
    }
    .kode-agen-helper{
      display:none;
      margin-top:8px;
      font-size:12px;
      font-weight:800;
      color:#64748b;
      line-height:1.45;
    }
    .kode-agen-helper.show{
      display:block;
    }
    .kode-agen-helper.warn{
      color:#d97706;
    }
    .kode-agen-suggest{
      display:none;
      position:absolute;
      left:0;
      right:0;
      top:calc(100% + 6px);
      z-index:80;
      max-height:220px;
      overflow:auto;
      padding:8px;
      border-radius:16px;
      background:rgba(255,255,255,.94);
      border:1px solid rgba(148,163,184,.26);
      box-shadow:0 18px 44px rgba(15,23,42,.16);
      backdrop-filter:blur(16px) saturate(145%);
      -webkit-backdrop-filter:blur(16px) saturate(145%);
    }
    .kode-agen-suggest.show{
      display:grid;
      grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
      gap:7px;
    }
    .kode-agen-option{
      padding:9px 10px;
      border-radius:12px;
      background:rgba(239,246,255,.86);
      color:#1e3a8a;
      font-size:12px;
      font-weight:900;
      text-align:center;
      cursor:pointer;
      border:1px solid rgba(96,165,250,.18);
      transition:all .16s ease;
      user-select:none;
    }
    .kode-agen-option:hover{
      transform:translateY(-1px);
      background:linear-gradient(135deg,#60a5fa,#2563eb);
      color:#fff;
      box-shadow:0 10px 22px rgba(37,99,235,.18);
    }
    .kode-agen-empty{
      grid-column:1/-1;
      padding:10px;
      text-align:center;
      color:#64748b;
      font-size:12px;
      font-weight:800;
    }

  
    /* ===== WELCOME KODE AGEN FULL LIST VISIBILITY ===== */
    .kode-agen-suggest{
      max-height:260px!important;
      overflow-y:auto!important;
    }
    .kode-agen-option{
      min-height:32px!important;
    }

  
    /* ===== USER STAFF REGISTER + BONUS MINGGUAN HOME ===== */
    .register-card{
      display:none;
      margin-top:18px;
      padding-top:18px;
      border-top:1px solid rgba(148,163,184,.28);
    }
    .register-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-top:14px;
    }
    .register-grid .full{
      grid-column:1/3;
    }
    .register-note{
      margin-top:14px;
      color:#64748b;
      font-size:12px;
      font-weight:800;
      line-height:1.55;
    }
    .access-pending-box{
      display:none;
      margin-top:18px;
      padding:16px;
      border-radius:18px;
      background:rgba(255,247,237,.82);
      border:1px solid rgba(251,146,60,.24);
      color:#9a3412;
      font-size:13px;
      font-weight:900;
      line-height:1.65;
    }
    .weekly-home{
      max-width:980px;
      margin:0 auto;
      min-height:360px;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      padding:38px 18px;
    }
    .weekly-home-card{
      width:100%;
      border-radius:28px;
      padding:40px 28px;
      background:rgba(255,255,255,.70);
      border:1px solid rgba(148,163,184,.24);
      box-shadow:0 22px 58px rgba(15,23,42,.10);
      backdrop-filter:blur(18px) saturate(150%);
      -webkit-backdrop-filter:blur(18px) saturate(150%);
    }
    .weekly-home-icon{
      width:82px;
      height:82px;
      border-radius:28px;
      display:flex;
      align-items:center;
      justify-content:center;
      margin:0 auto 18px;
      font-size:34px;
      background:linear-gradient(135deg,#facc15,#f97316);
      color:#fff;
      box-shadow:0 18px 38px rgba(249,115,22,.20);
    }
    .weekly-home-title{
      margin:0;
      font-size:34px;
      font-weight:1000;
      color:#0f172a;
    }
    .weekly-home-sub{
      margin-top:12px;
      color:#64748b;
      font-weight:900;
      line-height:1.7;
    }
    @media(max-width:700px){
      .register-grid{grid-template-columns:1fr}
      .register-grid .full{grid-column:1}
    }

  
/* =========================================================
   CLAIM BONUS SIDEBAR SPLIT
   Bonus Harian + Bonus Mingguan stay inside the same Claim Bonus project.
   No separate Bonus Mingguan project page, Claim History remains unified.
   ========================================================= */
.menu-subgroup-label{
  display:none!important;
  margin:10px 10px 5px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:1000!important;
  letter-spacing:.12em!important;
  color:#475569!important;
  background:linear-gradient(135deg,rgba(241,245,249,.86),rgba(239,246,255,.64))!important;
  border:1px solid rgba(203,213,225,.36)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72)!important;
}

body.bonus-mode .menu-subgroup-label.bonus-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

body.bonus-mode .weekly-nav-title{
  margin-top:14px!important;
  background:linear-gradient(135deg,rgba(255,248,230,.82),rgba(239,246,255,.66))!important;
  border-color:rgba(214,163,39,.22)!important;
  color:#92400e!important;
}

body.bonus-mode .history-nav-title{
  margin-top:14px!important;
  background:linear-gradient(135deg,rgba(245,243,255,.72),rgba(239,246,255,.62))!important;
  border-color:rgba(139,92,246,.18)!important;
  color:#5b21b6!important;
}

body.bonus-mode .daily-bonus-nav,
body.bonus-mode .weekly-bonus-nav,
body.bonus-mode .history-bonus-nav{
  margin-top:5px!important;
}

body.bonus-mode .weekly-bonus-nav{
  background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,248,230,.52))!important;
  border-color:rgba(214,163,39,.24)!important;
}

body.bonus-mode .weekly-bonus-nav.active{
  background:linear-gradient(135deg,rgba(255,248,230,.96),rgba(219,234,254,.72))!important;
  border-color:rgba(214,163,39,.42)!important;
  color:#92400e!important;
}

body.bonus-mode .history-bonus-nav{
  margin-bottom:12px!important;
}

.project-grid{
  align-items:stretch!important;
}


/* VVIP Special Tipe Game field */
#tipeGameBox select{
  width:100%;
}


/* VVIP Special Tipe Game readable label, exact HQ value remains in option value */
.field-mini-hint{
  margin-top:6px;
  font-size:11px;
  line-height:1.45;
  color:#64748b;
  font-weight:800;
}


/* Tiap Hari Bonus Besar - TOTAL IN angka-only */
#nominalInBox input{
  font-variant-numeric:tabular-nums;
}
#nominalInBox input::-webkit-outer-spin-button,
#nominalInBox input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}



/* ===== LIGHTWEIGHT 3D POLISH (CSS ONLY, NO WEBGL) ===== */
.panel,.wrapper,.history-table-wrap,.history-pagination{
  box-shadow:0 18px 45px rgba(15,23,42,.10),0 2px 8px rgba(59,130,246,.06)!important;
}
.panel{
  position:relative;
  overflow:hidden;
  transform:translateZ(0);
}
.panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,#38bdf8,#6366f1,#22c55e);
  opacity:.78;
  pointer-events:none;
}
.sidebar{
  box-shadow:12px 0 32px rgba(15,23,42,.10)!important;
}
button,.refresh-btn,.history-page-btn,.case-btn{
  transform:translateZ(0);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
button:hover,.refresh-btn:hover,.history-page-btn:hover,.case-btn:hover{
  transform:translateY(-1px)!important;
  filter:saturate(1.05);
}
@media (prefers-reduced-motion:reduce){
  button,.refresh-btn,.history-page-btn,.case-btn{transition:none!important}
  button:hover,.refresh-btn:hover,.history-page-btn:hover,.case-btn:hover{transform:none!important}
}


/* ===== Extracted from index.html <style> block 2 ===== */


:root{--ix-user-border:rgba(148,163,184,.22);--ix-user-shadow:0 24px 70px rgba(15,23,42,.12);}
  .panel,.history-card,.project-card,.note-box{border:1px solid var(--ix-user-border)!important;box-shadow:var(--ix-user-shadow)!important;}
  .panel{border-radius:26px!important;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(248,250,252,.94))!important;}
  .form-layout{gap:22px!important;}
  #historyPage .panel,.history-shell,.history-table-wrap{max-width:min(1480px,calc(100vw - 36px))!important;width:100%!important;}
  #historyPage{padding-left:18px!important;padding-right:18px!important;}
  table{border-collapse:separate!important;border-spacing:0!important;}
  th{letter-spacing:.045em!important;}
  input,select,textarea{border-radius:14px!important;}
  button,.refresh-btn,.case-btn,.history-page-btn{border-radius:14px!important;}
  .menu{border-radius:16px!important;}
  .note-box{border-radius:22px!important;background:linear-gradient(180deg,rgba(239,246,255,.96),rgba(255,255,255,.94))!important;}
  @media(max-width:900px){#historyPage{padding-left:10px!important;padding-right:10px!important}.form-layout{gap:14px!important}}


/* =========================================================
   USER RESPONSIVE SIDEBAR SAFETY V1
   Scope: visual-only user portal safety for different monitor sizes.
   Goal: prevent sidebar bottom tools/profile/language/view mode from overlapping
   menus and function buttons on small/short screens.
   ========================================================= */
@media(min-width:901px){
  .sidebar{
    height:100vh!important;
    max-height:100vh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-bottom:18px!important;
  }

  .sidebar-bottom-tools,
  .sidebar .profile{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:10px 0 0!important;
    z-index:auto!important;
  }

  .sidebar-bottom-tools{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  .sidebar-bottom-tools .user-lang-box,
  .sidebar-bottom-tools .user-view-box{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  #userLangSelect,
  #userViewSelect,
  .sidebar-bottom-tools select{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .content{
    min-width:0!important;
  }

  .wrapper,
  .panel,
  .form-layout{
    min-width:0!important;
  }
}

@media(min-width:901px) and (max-height:820px){
  .sidebar{
    padding-top:12px!important;
    padding-bottom:12px!important;
  }

  .logo{
    font-size:22px!important;
  }

  .sublogo{
    margin-bottom:10px!important;
  }

  .menu{
    min-height:0!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
    margin-bottom:5px!important;
    font-size:11px!important;
  }
}

@media(max-width:900px){
  .layout{
    display:block!important;
  }

  .sidebar{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:16px!important;
  }

  .content{
    margin-left:0!important;
    width:100%!important;
    padding:14px!important;
  }

  .sidebar-bottom-tools,
  .sidebar .profile{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:10px 0 0!important;
  }

  .sidebar-bottom-tools{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  .form-layout,
  .grid,
  .upload-grid,
  .bc-info,
  .bc-form{
    grid-template-columns:1fr!important;
  }

  .full{
    grid-column:1!important;
  }
}

@media(max-width:680px){
  .login-card,
  .panel,
  .side-card,
  .bc-modal{
    border-radius:18px!important;
    padding:18px!important;
  }

  h2{
    font-size:24px!important;
  }

  input,
  select,
  textarea,
  button{
    font-size:13px!important;
  }

  .history-top,
  .filters,
  .history-pagination,
  .history-pagination-controls{
    align-items:stretch!important;
    flex-direction:column!important;
  }

  .filter-btn,
  .sync-btn,
  .history-page-btn,
  .history-page-size,
  .search{
    width:100%!important;
    min-width:0!important;
  }
}
