@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

:root { 
    --gold: #FFD700; 
    --green: #2ecc71;
    --red: #e74c3c;
    --blue: #3498db;
    --dark-bg: rgba(10, 12, 18, 0.96);
    --border-gold: rgba(255, 215, 0, 0.25);
}

/* --- SYSTEM UTAMA --- */
body {
    margin: 0; padding: 0; font-family: 'Rajdhani', sans-serif;
    background-color: #050709; height: 100vh; 
    display: flex; justify-content: center; align-items: center; 
    overflow: hidden; position: relative;
}

/* --- BACKGROUND LUXURY --- */
.background-utama-filter {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://veldrive.com/Ye3bWJ22/BACKGROUND%20WEB%20TEMPO%202025.png');
    background-repeat: no-repeat; background-position: center center; background-size: cover;
    z-index: 1; pointer-events: none;
    filter: contrast(1.05) brightness(0.9) saturate(0.85);
}
.petir-overlay-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://media.tenor.com/MNOXWMqFBFIAAAAM/night-lightning-bolt.gif') repeat center center;
    background-size: cover; mix-blend-mode: screen; opacity: 0.22; 
    z-index: 2; pointer-events: none; filter: saturate(0) brightness(1.6); 
}

/* 1. LAYAR UTAMA */
.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* 2. BUNGKUSAN TENGAH (MENGUNCI UKURAN KOTAK) */
.login-wrapper-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Memaksa bungkusan pas di tengah layar */
    width: 380px; /* <--- INI KUNCI BIAR KOTAK GAK MELAR SELEBAR LAYAR */
    z-index: 10;
}

/* 3. KOTAK KACA (Kembali Perawan & Elegan) */
.glass-box {
    position: relative;
    width: 100%;
    box-sizing: border-box; /* Wajib biar padding gak bikin kotak melar */
    background: rgba(15, 15, 15, 0.85); 
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden; /* WAJIB untuk memotong animasi ular */
    
    /* Merapikan isi ke tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Memastikan tulisan, input, tombol gak keluar kotak */
.glass-box .title-text, 
.glass-box input, 
.glass-box button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* 4. POSISI KAKEK ZEUS (Nangkring di Sudut Atas) */
.zeus-kiri, .zeus-kanan {
    position: absolute;
    top: -40px; /* <--- Tarik ke atas! Ubah angka ini kalau mau lebih naik/turun */
    width: 130px; /* Ukuran disesuaikan biar manis di sudut */
    z-index: 9999 !important;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.zeus-kiri { 
    left: -50px; /* Geser pas ke sudut kiri */
    /* transform: translateY(-50%); <--- HAPUS BARIS INI */
}

.zeus-kanan { 
    right: -50px; /* Geser pas ke sudut kanan */
    transform: scaleX(-1); /* Cukup pakai scaleX buat balik arah, translateY dihapus */
}

/* PENGAMAN: Tarik semua teks, inputan, dan tombol login ke layer terdepan internal box */
.title-text, 
.login-container input, 
.btn-masuk-premium {
    position: relative;
    z-index: 30; 
}
.title-text { color: var(--gold); font-size: 22px; font-weight: 700; letter-spacing: 3px; margin-bottom: 30px; text-transform: uppercase; }

input { 
    width: 100%; padding: 15px; margin: 12px 0; 
    background: rgba(18, 18, 18, 0.9); border: 1px solid var(--border-gold); 
    border-radius: 12px; color: #fff; outline: none; font-size: 16px; box-sizing: border-box; 
}
input:focus { border-color: var(--gold); background: #000; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }

/* --- AREA DASHBOARD UTAMA (Jauh di depan layer login) --- */
.dashboard-area {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 99999; /* Z-Index tertinggi agar mutlak menjebol background depan */
    background: rgba(5, 7, 10, 0.98); 
    backdrop-filter: blur(15px); 
    box-sizing: border-box;
    display: flex; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

/* KELAS KONTROL JAVASCRIPT */
.dashboard-area.aktif-dashboard {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- SIDEBAR KIRI --- */
.sidebar-menu {
    width: 360px;
    flex: 0 0 360px;

    height: 100%;
    background: rgba(15, 18, 26, 0.97);

    border-right: 2px solid var(--border-gold);
    padding: 30px 24px;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;

    box-shadow: 10px 0 30px rgba(0,0,0,0.6);
}
.sidebar-menu .logo {
    color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: 2px;
    text-align: center; padding-bottom: 15px; border-bottom: 1px dashed var(--border-gold);
}
.sidebar-kategori-title {
    font-size: 14px; 
    color: #666; 
    letter-spacing: 2px; 
    font-weight: 700;
    text-transform: uppercase; 
    margin-top: 10px; 
    margin-bottom: 5px;
}

.btn-green-sidebar {
    background: var(--green); border: none; padding: 12px; border-radius: 10px;
    color: white; font-weight: 700; cursor: pointer; transition: 0.2s; 
    font-family: 'Rajdhani', sans-serif; font-size: 14px; text-transform: uppercase;
}
.btn-green-sidebar:hover { background: #27ae60; box-shadow: 0 0 12px rgba(46, 204, 113, 0.3); }

button.logout-btn {
    width: 100%; padding: 14px; margin: 0;
    background: rgba(255, 0, 0, 0.08); border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4d4d; border-radius: 10px; font-weight: 600; font-size: 15px;
    text-align: center; cursor: pointer; transition: all 0.2s ease; margin-top: auto;
}
button.logout-btn:hover { background: #ff4d4d; color: #fff; box-shadow: 0 0 15px rgba(255, 77, 77, 0.4); }

/* --- MENU KATEGORI VERTIKAL --- */
.vertical-chips-container {
    display: flex; flex-direction: column; gap: 10px;
    overflow-y: auto; flex: 1; padding-right: 5px;
}
.vertical-chips-container::-webkit-scrollbar { width: 4px; }
.vertical-chips-container::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 4px; }

.category-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);

    color: #bbb;

    padding: 12px 12px;
    border-radius: 10px;

    font-size: 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    transition: transform 0.05s ease-in-out;
    box-sizing: border-box;

    min-height: 48px;
}
.category-chip:active { transform: scale(0.96); }
.category-chip span {
    flex: 1 1 auto;
    min-width: 0;

    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-chip:hover { background: rgba(255, 215, 0, 0.05); border-color: rgba(255, 215, 0, 0.3); color: #fff; }

.category-chip.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #ff6b6b; 
    color: white; 
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4); 
    transform: scale(1); 
}
.category-chip.active .delete-chip-btn { color: rgba(255, 255, 255, 0.8); }
.delete-chip-btn { background: none; border: none; color: #666; font-size: 16px; font-weight: bold; cursor: pointer; transition: color 0.2s; padding: 0 0 0 10px; }
.delete-chip-btn:hover { color: #fff !important; }

/* --- CONTENT KANAN (FULL LIST FRASA) --- */
.main-content { flex: 1; height: 100%; padding: 40px; box-sizing: border-box; overflow-y: auto; color: #fff; }
.content-header-action {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1); padding-bottom: 20px; margin-bottom: 30px;
}
.content-header-action h1 { font-size: 28px; font-weight: 700; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.btn-green-frasa {
    background: var(--green); border: none; padding: 12px 24px; border-radius: 10px;
    color: white; font-weight: 700; cursor: pointer; transition: 0.2s;
    font-family: 'Rajdhani', sans-serif; font-size: 14px; text-transform: uppercase;
}
.btn-green-frasa:hover { background: #27ae60; box-shadow: 0 0 15px rgba(46, 204, 113, 0.4); }

.phrases-list-container { display: flex; flex-direction: column; gap: 15px; }
.phrase-item {
    background: rgba(20, 24, 35, 0.85); border: 1px solid var(--border-gold);
    border-radius: 16px; padding: 22px; display: flex; justify-content: space-between;
    align-items: center; gap: 20px; transition: 0.2s; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.phrase-item:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--gold); }
.phrase-text{

    width:100%;

    color:#efefef;

    font-size:16px;

    line-height:1.9;

    white-space:pre-wrap;

    word-break:break-word;

    overflow-wrap:anywhere;

}

.phrase-action-group{

    width:100%;

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    padding-top:16px;

    border-top:1px solid rgba(255,255,255,.08);

}
.btn-salin {
    background: var(--blue); border: none; padding: 10px 18px; border-radius: 8px;
    color: white; font-weight: bold; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; font-family: 'Rajdhani', sans-serif;
}
.btn-salin:hover { background: #2980b9; box-shadow: 0 0 10px rgba(52, 152, 219, 0.4); }
.btn-hapus {
    background: var(--red); border: none; padding: 10px 18px; border-radius: 8px;
    color: white; font-weight: bold; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; font-family: 'Rajdhani', sans-serif;
}
.btn-hapus:hover { background: #c0392b; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }

/* --- MODAL POPUP --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 100000;
    display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.aktif { display: flex !important; opacity: 1; }
.glass-box-modal{

    background:rgba(15,18,26,.98);

    border:2px solid var(--gold);

    box-shadow:
        0 0 40px rgba(255,215,0,.25),
        inset 0 0 25px rgba(0,0,0,.65);

    width:900px;

    max-width:92vw;

    min-height:650px;

    padding:35px;

    border-radius:24px;

    color:#fff;

    display:flex;

    flex-direction:column;

    transform:scale(.8);

    transition:.3s;

}
.modal-overlay.aktif .glass-box-modal { transform: scale(1); }
.glass-box-modal h3 { color: var(--gold); margin-top: 0; margin-bottom: 8px; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.glass-box-modal p { color: #bbb; font-size: 14px; margin-bottom: 20px; }
.glass-box-modal input, .glass-box-modal textarea {
    width: 100%; padding: 14px 18px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-gold); border-radius: 12px; color: #fff; font-size: 16px;
    box-sizing: border-box; outline: none; font-family: 'Rajdhani', sans-serif;
}
.glass-box-modal textarea{

    width:100%;

    min-height:420px;

    max-height:65vh;

    resize:vertical;

    padding:18px;

    font-size:16px;

    line-height:1.9;

    border-radius:14px;

    background:#090b10;

    color:#fff;

    white-space:pre-wrap;

    overflow-y:auto;

}
.glass-box-modal input:focus, .glass-box-modal textarea:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }

.modal-buttons { display: flex; gap: 15px; }
.modal-buttons button { flex: 1; padding: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; font-size: 14px; font-family: 'Rajdhani', sans-serif; text-transform: uppercase; border: none; transition: all 0.2s; }
.btn-modal-cancel { background: rgba(255,255,255,0.06); color: #aaa; border: 1px solid rgba(255,255,255,0.12) !important; }
.btn-modal-cancel:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-modal-confirm { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.btn-modal-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4); }

/* --- WARNING SYSTEM --- */
#warning-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); z-index: 999999; color: red;
    display: none; flex-direction: column; justify-content: center; align-items: center;
}
.aktif-warning { display: flex !important; animation: alarmKedip 0.5s infinite; }
.teks-bergetar { font-size: 40px; text-shadow: 0 0 20px red; animation: efekGetar 0.1s infinite; text-align: center; font-weight: bold; }
.btn-warning-kembali { width: 250px; margin-top: 30px; background: red; color: white; border: 2px solid white; box-shadow: 0 0 20px red; font-size: 18px; padding: 12px; border-radius: 10px; cursor: pointer; }

@keyframes alarmKedip { 0% { background: rgba(0, 0, 0, 0.98); } 50% { background: rgba(80, 0, 0, 0.95); } 100% { background: rgba(0, 0, 0, 0.98); } }
@keyframes efekGetar { 0% { transform: translate(2px, 1px) rotate(0deg); } 50% { transform: translate(-1px, 2px) rotate(-2deg); } 100% { transform: translate(1px, -2px) rotate(-2deg); } }

/* --- ANIMASI ULAR BERPUTAR (SNAKE BORDER) --- */
.animate-border-snake { position: relative; overflow: hidden; }
.animate-border-snake span { position: absolute; display: block; }
.animate-border-snake span:nth-child(1) { top: 0; left: -100%; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, #FFD700, #FFA500); animation: ularAtas 2s linear infinite; }
@keyframes ularAtas { 0% { left: -100%; } 50%, 100% { left: 100%; } }
.animate-border-snake span:nth-child(2) { top: -100%; right: 0; width: 3px; height: 100%; background: linear-gradient(180deg, transparent, #FFD700, #FFA500); animation: ularKanan 2s linear infinite; animation-delay: 0.5s; }
@keyframes ularKanan { 0% { top: -100%; } 50%, 100% { top: 100%; } }
.animate-border-snake span:nth-child(3) { bottom: 0; right: -100%; width: 100%; height: 3px; background: linear-gradient(270deg, transparent, #FFD700, #FFA500); animation: ularBawah 2s linear infinite; animation-delay: 1s; }
@keyframes ularBawah { 0% { right: -100%; } 50%, 100% { right: 100%; } }
.animate-border-snake span:nth-child(4) { bottom: -100%; left: 0; width: 3px; height: 100%; background: linear-gradient(360deg, transparent, #FFD700, #FFA500); animation: ularKiri 2s linear infinite; animation-delay: 1.5s; }
@keyframes ularKiri { 0% { bottom: -100%; } 50%, 100% { bottom: 100%; } }

/* --- TOMBOL MASUK PREMIUM ZEUS STYLE --- */
.btn-masuk-premium {
    width: 100%; padding: 15px; margin-top: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #B8860B);
    background-size: 200% auto; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; color: #000;
    font-size: 18px; font-weight: 700; letter-spacing: 2px; cursor: pointer; text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.btn-masuk-premium:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6), 0 0 15px rgba(255, 165, 0, 0.4); }
.btn-masuk-premium:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4); }

// --- FUNGSI LOGOUT / KELUAR SYSTEM ---
function logout() {
    // 1. Hapus status login atau session yang tersimpan
    localStorage.removeItem("isLoggedIn"); // Sesuaikan dengan key login kamu (misal token / status)
    sessionStorage.clear(); // Bersihkan juga session temporary
    
    // 2. Hilangkan kelas aktif dashboard (sembunyikan dashboard)
    const dashboard = document.querySelector('.dashboard-area');
    if (dashboard) {
        dashboard.classList.remove('aktif-dashboard');
    }
    
    // 3. Munculkan kembali halaman login utama
    const mainUi = document.getElementById('main-ui');
    if (mainUi) {
        mainUi.style.display = 'flex';
    }
    
    // 4. Reload halaman untuk memastikan semua data ter-reset bersih
    window.location.reload();
}

// --- FUNGSI KELUAR SISTEM (LOGOUT) ---
function logout() {
    // 1. Bersihkan status login agar saat di-refresh tidak langsung masuk lagi
    localStorage.removeItem("isLoggedIn"); 
    localStorage.removeItem("userRole"); // Hapus role jika ada (admin/tamu)
    sessionStorage.clear(); // Bersihkan session temporary
    
    // 2. Sembunyikan kedua area dashboard (Private & Public)
    const dashPrivate = document.getElementById('dashboard-private');
    const dashPublic = document.getElementById('dashboard-public');
    
    if (dashPrivate) dashPrivate.classList.remove('aktif-dashboard');
    if (dashPublic) dashPublic.classList.remove('aktif-dashboard');
    
    // 3. Munculkan kembali kotak login utama
    const mainUi = document.getElementById('main-ui');
    if (mainUi) {
        mainUi.style.display = 'flex';
    }
    
    // 4. Force reload halaman untuk membersihkan sisa state memory browser
    window.location.reload();
}

/* BIKIN TEKS FRASA BISA PARAGRAF / SPASI / ENTER */
#list-frasa-box-private .phrase-text,
#list-frasa-box-public .phrase-text {
    white-space: pre-wrap !important;
}

.btn-edit{

    background:#f39c12;
    color:white;
    border:none;

    padding:11px 18px;

    border-radius:8px;

    cursor:pointer;

    font-weight:bold;

    transition:.25s;

}

.btn-edit:hover{

    background:#ffb52e;
    transform:translateY(-2px);

}

.btn-edit,
.btn-salin,
.btn-hapus{

    min-width:120px;

    justify-content:center;

    transition:.25s;

    font-size:14px;

    letter-spacing:.5px;

}

.btn-edit:hover,
.btn-salin:hover,
.btn-hapus:hover{

    transform:translateY(-2px);

}

/* =======================================================
   PREMIUM CARD UPGRADE
======================================================= */

.phrase-item{

    position:relative;

    flex-direction:column;

    align-items:stretch;

    gap:18px;

    border-radius:20px;

    background:linear-gradient(
        180deg,
        rgba(22,26,36,.96),
        rgba(12,15,22,.96)
    );

    border:1px solid rgba(255,215,0,.18);

    overflow:hidden;

    transition:.30s;

}

.phrase-item::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        #FFD700,
        #ff9900,
        #FFD700
    );

}

.phrase-item:hover{

    transform:translateY(-3px);

    border-color:#FFD700;

    box-shadow:
        0 15px 35px rgba(0,0,0,.45),
        0 0 20px rgba(255,215,0,.10);

}

/* ===========================
HEADER CARD
=========================== */

.phrase-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.phrase-title{

    color:#FFD700;

    font-size:18px;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

}

#modal-counter{

    text-align:right;

    margin-top:-10px;

    margin-bottom:20px;

    color:#888;

    font-size:14px;

    font-weight:600;

}

/* ==========================================================
   PERAPIAN KARTU FRASA PUBLIC
   ========================================================== */

#list-frasa-box-public .phrase-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    width: 100%;
    height: auto;
    min-height: 0;

    padding: 22px;
    gap: 20px;

    box-sizing: border-box;
}

#list-frasa-box-public .phrase-text {
    display: block;

    width: 100%;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    flex: none;

    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#list-frasa-box-public .phrase-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    width: 100%;

    margin: 0;
    padding-top: 16px;
    gap: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Pengaman apabila struktur header lama masih tersimpan */
#list-frasa-box-public .phrase-header,
#list-frasa-box-public .phrase-title {
    display: none !important;
}

/* ==========================================================
   TOMBOL EDIT KATEGORI PRIVATE
   ========================================================== */

#chips-kategori-box-private .category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
}

#chips-kategori-box-private .category-chip span {
    flex: 1;
}

#chips-kategori-box-private .edit-chip-btn {
    width: 22px;
    height: 22px;

    border: none;
    border-radius: 6px;

    background: rgba(255, 193, 7, 0.18);
    color: #ffd43b;

    font-size: 12px;
    cursor: pointer;
}

#chips-kategori-box-private .edit-chip-btn:hover {
    background: rgba(255, 193, 7, 0.35);
}

/* ==========================================================
   MODAL KECIL UNTUK EDIT KATEGORI
   ========================================================== */

#custom-modal.modal-kecil .glass-box-modal {
    width: 92%;
    max-width: 520px !important;
    min-height: auto !important;
    padding: 28px !important;
}

#custom-modal.modal-kecil #modal-title {
    margin-bottom: 14px;
}

#custom-modal.modal-kecil #modal-desc {
    margin-bottom: 14px;
}

#custom-modal.modal-kecil #modal-input {
    display: block;
    width: 100%;

    height: 48px !important;
    min-height: 48px !important;

    padding: 0 16px;

    resize: none;
    box-sizing: border-box;
}

#custom-modal.modal-kecil #modal-textarea {
    display: none !important;
}

#custom-modal.modal-kecil #modal-counter {
    display: none !important;
}

/* ==========================================================
   TOMBOL EDIT KATEGORI PUBLIC
   ========================================================== */

#chips-kategori-box-public .category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
}

#chips-kategori-box-public .category-chip span {
    flex: 1;
}

#chips-kategori-box-public .edit-chip-btn {
    width: 22px;
    height: 22px;

    border: none;
    border-radius: 6px;

    background: rgba(255, 193, 7, 0.18);
    color: #ffd43b;

    font-size: 12px;
    cursor: pointer;
}

#chips-kategori-box-public .edit-chip-btn:hover {
    background: rgba(255, 193, 7, 0.35);
}

.category-chip .edit-chip-btn,
.category-chip .delete-chip-btn {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border-radius: 6px;
    box-sizing: border-box;
}

.category-chip .delete-chip-btn {
    font-size: 15px;
}

@media (max-width: 900px) {
    .sidebar-menu {
        width: 300px;
        flex: 0 0 300px;
        padding: 24px 18px;
    }

    .category-chip {
        font-size: 15px;
        padding: 11px 10px;
    }
}

/* ==========================================================
   KOLOM PENCARIAN ISI FRASA PUBLIC
   ========================================================== */

#search-frasa-public-wrapper {
    width: 100%;
    margin: 12px 0 18px 0;
    box-sizing: border-box;
}

#search-frasa-public {
    width: 100%;
    max-width: 520px;

    height: 46px;

    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);

    background: rgba(15, 18, 26, 0.9);
    color: #ffffff;

    font-size: 14px;
    outline: none;

    box-sizing: border-box;
}

#search-frasa-public::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#search-frasa-public:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 14px rgba(255, 212, 59, 0.18);
}

/* ==========================================================
   KOLOM PENCARIAN ISI FRASA PRIVATE
   ========================================================== */

#search-frasa-private-wrapper {
    width: 100%;
    margin: 12px 0 18px 0;
    box-sizing: border-box;
}

#search-frasa-private {
    width: 100%;
    max-width: 520px;

    height: 46px;

    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);

    background: rgba(15, 18, 26, 0.9);
    color: #ffffff;

    font-size: 14px;
    outline: none;

    box-sizing: border-box;
}

#search-frasa-private::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#search-frasa-private:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 14px rgba(255, 212, 59, 0.18);
}

/* ==========================================================
   PUBLIC: SEARCH + BULK ACTION BAR
   ========================================================== */

#search-frasa-public-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    margin: 14px 0 22px 0;

    box-sizing: border-box;
}

#search-frasa-public {
    flex: 1;
    max-width: 520px;

    height: 46px;
    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);

    background: rgba(15, 18, 26, 0.9);
    color: #ffffff;

    font-size: 14px;
    outline: none;

    box-sizing: border-box;
}

.bulk-action-public {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    flex-wrap: wrap;
}

.selected-count-public {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-right: 4px;
}

.bulk-action-public button {
    min-width: 92px;
    height: 42px;

    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.bulk-action-public button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#list-frasa-box-public .phrase-item-check {
    padding: 18px 20px !important;
    min-height: 0 !important;
    height: auto !important;
}

#list-frasa-box-public .phrase-check-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: 100%;
    cursor: pointer;
}

#list-frasa-box-public .phrase-checkbox-public {
    width: 18px;
    height: 18px;

    margin-top: 3px;

    accent-color: #ffd43b;
    cursor: pointer;

    flex: 0 0 auto;
}

#list-frasa-box-public .phrase-check-row .phrase-text {
    flex: 1;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Responsif layar kecil */
@media (max-width: 900px) {
    #search-frasa-public-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    #search-frasa-public {
        max-width: 100%;
    }

    .bulk-action-public {
        justify-content: flex-start;
    }
}

/* ==========================================================
   PUBLIC: KLIK TEKS UNTUK SALIN, CHECKBOX HANYA VIA CENTANG
   ========================================================== */

#list-frasa-box-public .phrase-check-row {
    cursor: default;
}

#list-frasa-box-public .phrase-checkbox-public {
    cursor: pointer;
}

#list-frasa-box-public .phrase-copy-public {
    cursor: pointer;
    position: relative;
    transition: opacity 0.15s ease, color 0.15s ease;
}

#list-frasa-box-public .phrase-copy-public:hover {
    color: #ffd43b;
}

#list-frasa-box-public .phrase-copy-public.tersalin::after {
    content: attr(data-status);

    display: inline-block;
    margin-left: 12px;
    padding: 3px 8px;

    border-radius: 8px;
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;

    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================
   PRIVATE: SEARCH + BULK ACTION BAR
   ========================================================== */

#search-frasa-private-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    margin: 14px 0 22px 0;

    box-sizing: border-box;
}

#search-frasa-private {
    flex: 1;
    max-width: 520px;

    height: 46px;
    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);

    background: rgba(15, 18, 26, 0.9);
    color: #ffffff;

    font-size: 14px;
    outline: none;

    box-sizing: border-box;
}

.bulk-action-private {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    flex-wrap: wrap;
}

.selected-count-private {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-right: 4px;
}

.bulk-action-private button {
    min-width: 92px;
    height: 42px;

    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.bulk-action-private button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#list-frasa-box-private .phrase-item-check {
    padding: 18px 20px !important;
    min-height: 0 !important;
    height: auto !important;
}

#list-frasa-box-private .phrase-check-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: 100%;
    cursor: default;
}

#list-frasa-box-private .phrase-checkbox-private {
    width: 18px;
    height: 18px;

    margin-top: 3px;

    accent-color: #ffd43b;
    cursor: pointer;

    flex: 0 0 auto;
}

#list-frasa-box-private .phrase-copy-private {
    cursor: pointer;
    position: relative;

    flex: 1;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;

    transition: color 0.15s ease;
}

#list-frasa-box-private .phrase-copy-private:hover {
    color: #ffd43b;
}

#list-frasa-box-private .phrase-copy-private.tersalin::after {
    content: attr(data-status);

    display: inline-block;
    margin-left: 12px;
    padding: 3px 8px;

    border-radius: 8px;
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;

    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    #search-frasa-private-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    #search-frasa-private {
        max-width: 100%;
    }

    .bulk-action-private {
        justify-content: flex-start;
    }
}

/* ==========================================================
   PREMIUM SECURITY OVERLAY
   ========================================================== */

.security-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(circle at top, rgba(255, 80, 80, 0.18), transparent 35%),
        rgba(5, 6, 12, 0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.25s ease;
}

.security-overlay.aktif-warning {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.security-modal {
    width: 100%;
    max-width: 560px;

    background: linear-gradient(180deg, rgba(17, 20, 34, 0.98), rgba(10, 12, 22, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 22px;

    padding: 34px 30px 28px 30px;

    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.08) inset,
        0 0 28px rgba(255, 196, 0, 0.12);

    text-align: center;
    color: #fff;
}

.security-icon {
    width: 78px;
    height: 78px;

    margin: 0 auto 18px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 34px;

    background: radial-gradient(circle, rgba(255, 215, 0, 0.16), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.14);
}

.security-title {
    margin: 0 0 10px 0;
    font-size: 34px;
    font-weight: 800;
    color: #ffd43b;
    letter-spacing: 0.4px;
}

.security-subtitle {
    margin: 0 auto 18px auto;
    max-width: 420px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.security-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;

    margin-bottom: 24px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;

    color: #ffe38a;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.security-action-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.security-btn {
    min-width: 180px;
    height: 50px;

    border: none;
    border-radius: 14px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;

    cursor: pointer;
    transition: all 0.2s ease;
}

.security-btn.primary {
    color: #111;
    background: linear-gradient(135deg, #ffd43b, #ffb52e);
    box-shadow: 0 10px 24px rgba(255, 196, 0, 0.2);
}

.security-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 196, 0, 0.28);
}

.security-btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.security-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.security-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(16px);

    z-index: 999999;

    min-width: 280px;
    max-width: 90vw;

    padding: 14px 18px;
    border-radius: 14px;

    background: rgba(14, 17, 28, 0.96);
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: #f7f7f7;

    text-align: center;
    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.25s ease;
}

.security-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .security-modal {
        padding: 28px 20px 22px 20px;
    }

    .security-title {
        font-size: 28px;
    }

    .security-btn {
        width: 100%;
        min-width: 0;
    }

    .security-action-row {
        flex-direction: column;
    }
}

/* ==========================================================
   MODAL CLOSE BUTTON + INPUT FIX
   ========================================================== */

.glass-box-modal {
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 16px;
    right: 18px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);

    font-size: 22px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    transition: all 0.18s ease;
}

.modal-close-x:hover {
    background: rgba(231, 76, 60, 0.18);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.35);
}

#modal-input {
    width: 100%;
    height: 48px;

    padding: 0 16px;

    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(20, 22, 30, 0.96);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    outline: none;
    box-sizing: border-box;
}

#modal-input:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.16);
}

#modal-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================
   PINDAHKAN CHECKBOX FRASA KE KANAN
   Berlaku untuk Public dan Private
   ========================================================== */

#list-frasa-box-public .phrase-check-row,
#list-frasa-box-private .phrase-check-row {
    display: flex;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;

    width: 100%;
}

#list-frasa-box-public .phrase-checkbox-public,
#list-frasa-box-private .phrase-checkbox-private {
    flex: 0 0 auto;

    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;

    cursor: pointer;
    accent-color: #ffd43b;
}

#list-frasa-box-public .phrase-copy-public,
#list-frasa-box-private .phrase-copy-private {
    flex: 1 1 auto;

    text-align: left;
    line-height: 1.6;

    padding-right: 12px !important;
}

/* ==========================================================
   FIX MODAL TEXTAREA EDIT / TAMBAH FRASA
   ========================================================== */

#custom-modal.modal-besar .glass-box-modal {
    width: 92%;
    max-width: 760px !important;
    min-height: auto !important;
    padding: 34px 32px 30px !important;
}

#modal-textarea {
    width: 100%;
    min-height: 320px;
    max-height: 520px;

    padding: 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(20, 22, 30, 0.96);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;

    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

#modal-textarea:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.16);
}

#modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

#custom-modal.modal-besar #modal-counter {
    display: block;
    margin-top: 8px;

    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

#custom-modal.modal-besar .modal-buttons {
    margin-top: 18px;
}

/* ==========================================================
   SWEETALERT PREMIUM DARK
   ========================================================== */

.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(255, 215, 0, 0.08) !important;
}

.swal2-title {
    font-family: inherit !important;
    color: #ffd43b !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
}

.swal2-html-container {
    font-family: inherit !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.6 !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px !important;
    min-width: 120px !important;
    height: 44px !important;

    font-family: inherit !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

/* ==========================================================
   FIX MODAL INPUT, TEXTAREA, BUTTON, CLOSE
   ========================================================== */

.glass-box-modal {
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 16px;
    right: 18px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);

    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    z-index: 5;
}

.modal-close-x:hover {
    background: rgba(231, 76, 60, 0.18);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.35);
}

#custom-modal.modal-kecil .glass-box-modal {
    width: 92%;
    max-width: 560px !important;
    min-height: auto !important;
    padding: 34px 30px 30px !important;
}

#custom-modal.modal-besar .glass-box-modal {
    width: 92%;
    max-width: 900px !important;
    min-height: auto !important;
    padding: 34px 32px 30px !important;
}

#modal-input {
    width: 100%;
    height: 48px;

    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(20, 22, 30, 0.96);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    outline: none;
    box-sizing: border-box;
}

#modal-textarea {
    width: 100%;
    min-height: 420px;
    max-height: 620px;

    padding: 18px;

    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(20, 22, 30, 0.96);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;

    outline: none;
    resize: vertical;
    box-sizing: border-box;

    white-space: pre-wrap;
}

#custom-modal.modal-kecil #modal-input {
    display: block !important;
}

#custom-modal.modal-kecil #modal-textarea {
    display: none !important;
}

#custom-modal.modal-besar #modal-input {
    display: none !important;
}

#custom-modal.modal-besar #modal-textarea {
    display: block !important;
}

#custom-modal.modal-kecil #modal-counter {
    display: none !important;
}

#custom-modal.modal-besar #modal-counter {
    display: block !important;
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

#custom-modal .modal-buttons {
    display: flex !important;
    gap: 12px;
    margin-top: 18px;
}

#custom-modal .btn-modal-cancel,
#custom-modal .btn-modal-confirm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

#modal-input:focus,
#modal-textarea:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.16);
}

/* ==========================================================
   DISABLED STATE ACTION BUTTON PUBLIC + PRIVATE
   ========================================================== */

.bulk-action-public button:disabled,
.bulk-action-private button:disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.45);
    pointer-events: none;
}

.bulk-action-public button:not(:disabled),
.bulk-action-private button:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    filter: none;
}

/* ==========================================================
   SWEETALERT PREMIUM DARK
   ========================================================== */

.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(255, 215, 0, 0.08) !important;
}

.swal2-title {
    font-family: inherit !important;
    color: #ffd43b !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
}

.swal2-html-container {
    font-family: inherit !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.6 !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px !important;
    min-width: 120px !important;
    height: 44px !important;

    font-family: inherit !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.swal2-container {
    z-index: 9999999 !important;
}

.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    background: #111420 !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(255, 215, 0, 0.08) !important;
}

.swal2-title {
    color: #ffd43b !important;
    font-weight: 900 !important;
}

.swal2-html-container {
    color: rgba(255, 255, 255, 0.78) !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px !important;
    min-width: 120px !important;
    height: 44px !important;
    font-weight: 800 !important;
}

/* ==========================================================
   WATERMARK LOGO TEMPOTOTO ARCHIVE PREMIUM
   ========================================================== */

.main-content {
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;

    width: 480px;
    height: 480px;

    left: 50%;
    top: 64%;
    transform: translate(-50%, -50%);

    background-image: url("logo-tempototo-transparent.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.13;

    filter:
        brightness(1.5)
        contrast(1.18)
        saturate(1.28)
        drop-shadow(0 0 26px rgba(255, 210, 0, 0.24));

    pointer-events: none;
    z-index: 0;
}

.main-content::after {
    content: "";
    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    top: 64%;
    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(255, 210, 0, 0.065) 0%,
        rgba(255, 210, 0, 0.028) 35%,
        transparent 72%
    );

    pointer-events: none;
    z-index: 0;
}

.main-content > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================
   PHRASE CARD PREMIUM TRANSPARENT + DARK HOVER
   Public dan Private
   ========================================================== */

#list-frasa-box-public .phrase-item,
#list-frasa-box-private .phrase-item {
    background: rgba(17, 21, 32, 0.58) !important;

    border: 1px solid rgba(255, 215, 0, 0.24) !important;
    border-top: 3px solid rgba(255, 215, 0, 0.85) !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

#list-frasa-box-public .phrase-item:hover,
#list-frasa-box-private .phrase-item:hover {
    background: rgba(18, 23, 36, 0.86) !important;

    border-color: rgba(255, 215, 0, 0.48) !important;
    border-top-color: #ffd43b !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.38),
        0 0 20px rgba(255, 212, 59, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;

    transform: translateY(-1px);
}

/* ==========================================================
   SIDEBAR CATEGORY DRAG + PIN
   ========================================================== */

.category-chip {
    cursor: grab;
}

.category-chip:active {
    cursor: grabbing;
}

.category-chip.pinned-chip {
    border-color: rgba(255, 215, 0, 0.42) !important;
    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.08),
        inset 0 0 0 1px rgba(255, 215, 0, 0.08) !important;
}

.category-chip.pinned-chip span::after {
    content: "  PIN";
    margin-left: 6px;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;

    color: #ffd43b;
    opacity: 0.75;
}

.pin-chip-btn {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 7px;

    background: rgba(255, 215, 0, 0.13);
    color: #ffd43b;

    font-size: 12px;
    cursor: pointer;

    transition: all 0.16s ease;
}

.pin-chip-btn:hover {
    background: rgba(255, 215, 0, 0.24);
    transform: translateY(-1px);
}

.pin-chip-btn.active {
    background: rgba(255, 215, 0, 0.34);
    color: #fff0a8;
}

.category-chip.pinned-chip {
    cursor: default;
}

/* ==========================================================
   SMOOTH DRAG CATEGORY SIDEBAR
   ========================================================== */

.vertical-chips-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-chip {
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.category-chip.dragging-chip {
    opacity: 0.55 !important;
    transform: scale(0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

.category-chip.drag-over-chip {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(255, 215, 0, 0.55) !important;
    box-shadow:
        0 10px 24px rgba(255, 215, 0, 0.08),
        0 0 0 1px rgba(255, 215, 0, 0.12) inset !important;
}

.category-chip.pinned-chip {
    cursor: default !important;
}

/* ==========================================================
   SMOOTH CATEGORY DRAG
   ========================================================== */

.vertical-chips-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-chip {
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.category-chip.dragging-chip {
    opacity: 0.55 !important;
    transform: scale(0.97);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(255, 215, 0, 0.12) !important;
}

/* ==========================================================
   SIDEBAR CATEGORY SMOOTH REORDER
   ========================================================== */

.vertical-chips-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.category-chip {
    min-height: 50px !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease !important;

    will-change: transform;
}

.category-chip span {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    white-space: pre-line !important;
    line-height: 1.35 !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.category-chip.dragging-chip {
    transform: scale(0.97) !important;
    opacity: 0.55 !important;

    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.46),
        0 0 18px rgba(255, 215, 0, 0.12) !important;
}

.category-chip.drag-over-chip {
    transform: translateY(2px) !important;
    border-color: rgba(255, 215, 0, 0.55) !important;
}

.pin-chip-btn {
    min-width: 42px !important;
    width: 42px !important;
    height: 26px !important;

    font-size: 11px !important;
    font-weight: 900 !important;
}

    font-size: 8px;
    margin-left: 2px;
}

.category-chip.pinned-chip span::after {
    content: "" !important;
}

/* ==========================================================
   MODAL KATEGORI MULTILINE
   ========================================================== */

#custom-modal.modal-besar #modal-textarea {
    white-space: pre-wrap !important;
}

#custom-modal.modal-besar #modal-textarea {
    resize: vertical !important;
}

#judul-frasa-kategori-public,
#judul-frasa-kategori-private {
    white-space: pre-line !important;
    line-height: 1.18 !important;
}

.category-chip {
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.category-chip span {
    white-space: pre-line !important;
}

/* ==========================================================
   CATEGORY CHIP SIDEBAR RAPI, MULTILINE, TANPA SIDEBAR MELEBAR
   ========================================================== */

.category-chip {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
    column-gap: 8px !important;

    height: auto !important;
    min-height: 46px !important;

    padding: 11px 10px 11px 13px !important;

    overflow: visible !important;
}

.category-chip .category-label {
    display: block !important;

    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    line-height: 1.35 !important;
    padding-right: 4px !important;

    cursor: pointer;
}

.category-mini-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;

    flex: 0 0 auto !important;
    margin-top: -1px !important;
}

.pin-chip-btn,
.edit-chip-btn,
.delete-chip-btn {
    flex: 0 0 auto !important;

    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.pin-chip-btn.active::after,
.category-chip.pinned-chip span::after,
.category-chip.pinned-chip .category-label::after {
    content: "" !important;
}

.category-chip.pinned-chip {
    border-color: rgba(255, 215, 0, 0.35) !important;
}

.category-chip.dragging-chip {
    opacity: 0.65 !important;
    transform: scale(0.985) !important;
}

.category-chip.drag-over-chip {
    border-color: rgba(255, 215, 0, 0.58) !important;
    box-shadow:
        0 8px 22px rgba(255, 215, 0, 0.08),
        inset 0 0 0 1px rgba(255, 215, 0, 0.12) !important;
}

/* ==========================================================
   MODAL KATEGORI KECIL DAN AUTO GROW
   ========================================================== */

#custom-modal.modal-kategori .glass-box-modal {
    max-width: 620px !important;
    min-height: auto !important;
    padding: 30px !important;
}

#custom-modal.modal-kategori #modal-textarea {
    min-height: 52px !important;
    max-height: 170px !important;

    resize: none !important;
    overflow-y: auto !important;

    line-height: 1.45 !important;
    white-space: pre-wrap !important;
}

#custom-modal.modal-kategori #modal-counter {
    display: none !important;
}

#judul-frasa-kategori-public,
#judul-frasa-kategori-private {
    white-space: pre-line !important;
    line-height: 1.18 !important;
}	

/* ==========================================================
   CATEGORY CHIP FINAL: LABEL + PIN + CHECKBOX
   ========================================================== */

.category-chip {
    display: grid !important;
    grid-template-columns: 1fr auto 24px !important;
    align-items: center !important;
    gap: 8px !important;

    height: auto !important;
    min-height: 48px !important;

    padding: 11px 10px 11px 13px !important;
}

.category-label {
    min-width: 0 !important;

    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;

    line-height: 1.35 !important;
    cursor: pointer !important;
}

.pin-chip-btn {
    width: auto !important;
    min-width: 30px !important;
    height: 28px !important;

    padding: 0 8px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;

    white-space: nowrap !important;
}

.pin-chip-btn.active {
    min-width: 58px !important;

    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;

    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.kategori-check-wrap {
    width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
}

.kategori-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kategori-check-custom {
    width: 18px !important;
    height: 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 6px !important;
    border: 1px solid rgba(255, 215, 0, 0.38) !important;

    background: rgba(255, 255, 255, 0.045) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 0 10px rgba(255, 215, 0, 0.05) !important;

    transition: all 0.16s ease !important;
}

.kategori-checkbox:checked + .kategori-check-custom {
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;
    border-color: rgba(255, 215, 0, 0.9) !important;

    box-shadow:
        0 0 16px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.kategori-checkbox:checked + .kategori-check-custom::after {
    content: "✓";

    color: #151515;

    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
}

/* ==========================================================
   CATEGORY ACTION BAR FINAL
   ========================================================== */

.kategori-actionbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    margin: 8px 0 12px 0 !important;
    padding: 8px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255, 215, 0, 0.16) !important;

    background: rgba(11, 14, 22, 0.88) !important;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

.kategori-action-info {
    min-width: 78px !important;
}

.kategori-action-info span {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.kategori-action-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 27px !important;
    padding: 0 8px !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
    white-space: nowrap !important;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        filter 0.16s ease !important;
}

.btn-kategori-selectall {
    color: #111 !important;
    background: linear-gradient(135deg, #ffd43b, #f6b93b) !important;
}

.btn-kategori-edit {
    color: #111 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

.btn-kategori-delete {
    color: #fff !important;
    background: linear-gradient(135deg, #e74c3c, #a92218) !important;
}

.btn-kategori-selectall:hover,
.btn-kategori-edit:hover,
.btn-kategori-delete:hover {
    transform: translateY(-1px) !important;
}

.btn-kategori-edit:disabled,
.btn-kategori-delete:disabled {
    opacity: 0.32 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.55) !important;
    transform: none !important;
}

/* Chip layout: Nama + PIN + Checkbox */
.category-chip {
    display: grid !important;
    grid-template-columns: 1fr auto 24px !important;
    align-items: center !important;
    gap: 8px !important;

    height: auto !important;
    min-height: 48px !important;

    padding: 11px 10px 11px 13px !important;
}

.category-label {
    min-width: 0 !important;

    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;

    line-height: 1.35 !important;
    cursor: pointer !important;
}

.pin-chip-btn {
    width: auto !important;
    min-width: 30px !important;
    height: 28px !important;

    padding: 0 8px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;

    white-space: nowrap !important;
}

.pin-chip-btn.active {
    min-width: 58px !important;

    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;

    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.pin-chip-btn.active::after {
    content: "" !important;
}

/* Checkbox premium */
.kategori-check-wrap {
    width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
}

.kategori-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kategori-check-custom {
    width: 18px !important;
    height: 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 6px !important;
    border: 1px solid rgba(255, 215, 0, 0.38) !important;

    background: rgba(255, 255, 255, 0.045) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 0 10px rgba(255, 215, 0, 0.05) !important;

    transition: all 0.16s ease !important;
}

.kategori-checkbox:checked + .kategori-check-custom {
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;
    border-color: rgba(255, 215, 0, 0.9) !important;

    box-shadow:
        0 0 16px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.kategori-checkbox:checked + .kategori-check-custom::after {
    content: "✓";

    color: #151515;

    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
}

/* ==========================================================
   FIX: HILANGKAN HORIZONTAL SCROLL SIDEBAR
   ========================================================== */

.sidebar-menu,
.sidebar-panel,
.sidebar-left,
.sidebar-kategori,
#dashboard-public,
#dashboard-private {
    overflow-x: hidden !important;
}

#chips-kategori-box-public,
#chips-kategori-box-private {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.category-chip {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.category-label {
    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Action bar kategori jangan melebar keluar sidebar */
.kategori-actionbar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    overflow: hidden !important;
    flex-wrap: wrap !important;
}

.kategori-action-buttons {
    max-width: 100% !important;

    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 5px !important;
}

.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    flex: 0 0 auto !important;
    max-width: 82px !important;

    white-space: nowrap !important;
}

/* Sembunyikan scrollbar horizontal kalau masih kebaca browser */
.sidebar-menu::-webkit-scrollbar:horizontal,
.sidebar-panel::-webkit-scrollbar:horizontal,
.sidebar-left::-webkit-scrollbar:horizontal,
#chips-kategori-box-public::-webkit-scrollbar:horizontal,
#chips-kategori-box-private::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
}

/* ==========================================================
   FIX FINAL: CATEGORY LIST BANYAK, SCROLL RAPI, TEKS TIDAK KELUAR BOX
   ========================================================== */

/* Area daftar kategori dibuat scroll sendiri */
#chips-kategori-box-public,
#chips-kategori-box-private {
    width: 100% !important;
    max-width: 100% !important;

    max-height: calc(100vh - 430px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 6px !important;
    padding-bottom: 12px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Scrollbar kategori dibuat tipis dan premium */
#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    width: 6px !important;
}

#chips-kategori-box-public::-webkit-scrollbar-track,
#chips-kategori-box-private::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035) !important;
    border-radius: 999px !important;
}

#chips-kategori-box-public::-webkit-scrollbar-thumb,
#chips-kategori-box-private::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.34) !important;
    border-radius: 999px !important;
}

#chips-kategori-box-public::-webkit-scrollbar-thumb:hover,
#chips-kategori-box-private::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.55) !important;
}

/* Box kategori tidak boleh bocor keluar */
.category-chip {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 24px !important;
    align-items: center !important;
    gap: 8px !important;

    min-height: 48px !important;
    height: auto !important;

    padding: 11px 10px 11px 13px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Teks kategori panjang wajib turun baris, bukan keluar box */
.category-label {
    display: block !important;

    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    overflow: hidden !important;

    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

/* Pin dan checkbox jangan ikut menyusut / merusak layout */
.pin-chip-btn,
.kategori-check-wrap {
    flex-shrink: 0 !important;
}

/* Action bar kategori tetap rapi dan tidak melebar keluar */
.kategori-actionbar {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    flex-wrap: wrap !important;
}

/* Tombol action bar tetap masuk dalam sidebar */
.kategori-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 5px !important;

    max-width: 100% !important;
}

/* Untuk layar lebih kecil, tinggi scroll disesuaikan */
@media (max-height: 760px) {
    #chips-kategori-box-public,
    #chips-kategori-box-private {
        max-height: calc(100vh - 390px) !important;
    }
}

/* ==========================================================
   FIX FINAL: TEKS KATEGORI TIDAK TENGGELAM SAAT BELUM PIN
   ========================================================== */

/* Box kategori dibuat stabil: teks + area pin tetap + checkbox */
.category-chip {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 62px 24px !important;
    align-items: center !important;
    gap: 8px !important;

    height: auto !important;
    min-height: 52px !important;

    padding: 12px 10px 12px 13px !important;

    box-sizing: border-box !important;

    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Teks kategori boleh turun baris dan tidak boleh kepotong */
.category-label {
    display: block !important;

    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    overflow: visible !important;

    line-height: 1.42 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;

    box-sizing: border-box !important;
}

/* Area tombol PIN dibuat sama lebarnya, baik aktif maupun tidak */
.pin-chip-btn {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    height: 28px !important;

    padding: 0 6px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;
}

/* Kalau belum pin, ikon tetap di tengah area 62px */
.pin-chip-btn:not(.active) {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Kalau sudah pin, tetap proporsional */
.pin-chip-btn.active {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;

    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Checkbox tetap stabil di kanan */
.kategori-check-wrap {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    align-self: center !important;
}

/* ==========================================================
   FINAL SIDEBAR CATEGORY BALANCE FIX
   - sidebar sedikit lebih lega
   - scrollbar putih disembunyikan
   - teks kategori tetap rapi
   ========================================================== */


/* Daftar kategori tetap bisa discroll, tapi scrollbar putih disembunyikan */
#chips-kategori-box-public,
#chips-kategori-box-private {
    width: 100% !important;
    max-width: 100% !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 0 !important;
    margin-right: 0 !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Box kategori dibuat lebih seimbang */
.category-chip {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px 22px !important;
    align-items: center !important;
    gap: 7px !important;

    min-height: 52px !important;
    height: auto !important;

    padding: 12px 9px 12px 13px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Teks kategori tidak tenggelam dan tidak keluar box */
.category-label {
    display: block !important;

    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    overflow: visible !important;

    line-height: 1.38 !important;
    padding: 1px 0 !important;

    box-sizing: border-box !important;
}

/* Tombol PIN tetap ada tulisan PIN saat aktif, tapi tidak terlalu lebar */
.pin-chip-btn {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    height: 28px !important;

    padding: 0 5px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1px !important;

    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Checkbox tetap kecil dan rapi */
.kategori-check-wrap {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Action bar atas kategori tetap masuk sidebar */
.kategori-actionbar {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

.kategori-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 5px !important;
}

/* ==========================================================
   FINAL FIX CATEGORY CHIP: TEKS LEGA + PIN/CHECKBOX DI KANAN
   ========================================================== */

/* Sidebar tetap normal, jangan terlalu lebar */
.sidebar-menu,
.sidebar-panel,
.sidebar-left {
    overflow-x: hidden !important;
}

/* List kategori scroll rapi */
#chips-kategori-box-public,
#chips-kategori-box-private {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 0 !important;
    margin-right: 0 !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Box kategori: bukan grid lagi, biar teks tidak sempit */
.category-chip {
    position: relative !important;

    display: block !important;
    grid-template-columns: none !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 50px !important;

    padding: 13px 98px 13px 14px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}

/* Teks kategori punya ruang utama dan otomatis turun baris */
.category-label {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    white-space: pre-line !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    overflow: visible !important;

    line-height: 1.38 !important;
    font-size: 12px !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Tombol PIN ditempel di kanan tengah */
.pin-chip-btn {
    position: absolute !important;
    right: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 30px !important;
    min-width: 30px !important;
    max-width: 58px !important;

    height: 28px !important;

    padding: 0 6px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Kalau belum pin, cukup ikon saja */
.pin-chip-btn:not(.active) {
    width: 30px !important;
    min-width: 30px !important;

    background: rgba(255, 215, 0, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Kalau sudah pin, muncul tulisan PIN */
.pin-chip-btn.active {
    width: 58px !important;
    min-width: 58px !important;

    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;

    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Jangan sampai ada PIN dobel dari CSS lama */
.pin-chip-btn.active::after {
    content: "" !important;
}

/* Checkbox ditempel paling kanan */
.kategori-check-wrap {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 20px !important;
    height: 20px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer !important;
}

/* Checkbox custom tetap premium */
.kategori-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kategori-check-custom {
    width: 18px !important;
    height: 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 6px !important;
    border: 1px solid rgba(255, 215, 0, 0.38) !important;

    background: rgba(255, 255, 255, 0.045) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 0 10px rgba(255, 215, 0, 0.05) !important;

    transition: all 0.16s ease !important;
}

.kategori-checkbox:checked + .kategori-check-custom {
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;
    border-color: rgba(255, 215, 0, 0.9) !important;

    box-shadow:
        0 0 16px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.kategori-checkbox:checked + .kategori-check-custom::after {
    content: "✓";

    color: #151515;

    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
}

/* Action bar atas dibuat lebih compact */
.kategori-actionbar {
    width: 100% !important;
    max-width: 100% !important;

    margin: 8px 0 12px 0 !important;
    padding: 8px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    border-radius: 13px !important;
    background: rgba(11, 14, 22, 0.88) !important;
}

.kategori-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 26px !important;
    padding: 0 8px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
}

/* ==========================================================
   FIX READABLE CATEGORY SIDEBAR
   - teks kategori lebih besar
   - box otomatis tinggi
   - pin + checkbox tetap rapi di kanan
   ========================================================== */

/* Sidebar sedikit lega, tapi tidak terlalu besar */
.sidebar-menu,
.sidebar-panel,
.sidebar-left {
    width: 326px !important;
    min-width: 326px !important;
    max-width: 326px !important;

    overflow-x: hidden !important;
}

/* List kategori tetap scroll, tapi tanpa scrollbar putih */
#chips-kategori-box-public,
#chips-kategori-box-private {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Box kategori dibuat nyaman dibaca */
.category-chip {
    position: relative !important;

    display: block !important;
    grid-template-columns: none !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 56px !important;
    height: auto !important;

    padding: 14px 94px 14px 15px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Teks kategori dibuat normal, tidak kecil */
.category-label {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    overflow: visible !important;

    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;

    letter-spacing: 0.1px !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Tombol PIN di kanan */
.pin-chip-btn {
    position: absolute !important;

    right: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    height: 30px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    font-size: 11px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Belum pin: ikon saja */
.pin-chip-btn:not(.active) {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;

    padding: 0 !important;

    background: rgba(255, 215, 0, 0.12) !important;
}

/* Sudah pin: ikon + tulisan PIN */
.pin-chip-btn.active {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    padding: 0 7px !important;

    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffae2e) !important;

    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Hindari PIN dobel */
.pin-chip-btn.active::after {
    content: "" !important;
}

/* Checkbox kanan */
.kategori-check-wrap {
    position: absolute !important;

    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer !important;
}

/* Action bar atas sedikit diperbesar biar tidak terlalu mini */
.kategori-actionbar {
    padding: 9px !important;
    margin: 8px 0 12px 0 !important;
}

.kategori-action-info span {
    font-size: 11px !important;
    font-weight: 800 !important;
}

.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 29px !important;
    padding: 0 9px !important;

    font-size: 11px !important;
    font-weight: 900 !important;

    border-radius: 8px !important;
}

/* ==========================================================
   FIX: TEKS KATEGORI RATA TENGAH DALAM BOX
   ========================================================== */

.category-chip {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 56px !important;
    height: auto !important;

    padding: 12px 94px 12px 15px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Teks kategori dibuat benar-benar di tengah vertikal */
.category-chip .category-label {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    min-height: 32px !important;

    white-space: pre-line !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    overflow: visible !important;

    font-size: 14px !important;
    line-height: 1.38 !important;
    font-weight: 800 !important;

    padding: 0 !important;
    margin: 0 !important;

    box-sizing: border-box !important;
}

/* Jarak ikon folder dengan teks dibuat lebih enak dibaca */
.category-chip .category-label {
    letter-spacing: 0.1px !important;
}

/* Tombol PIN tetap rata tengah kanan */
.category-chip .pin-chip-btn {
    position: absolute !important;

    right: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    height: 30px !important;
}

/* Checkbox tetap rata tengah kanan */
.category-chip .kategori-check-wrap {
    position: absolute !important;

    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 22px !important;
    height: 22px !important;
}

/* Kalau teks kategori sampai 2 baris, box tetap proporsional */
.category-chip:has(.category-label) {
    align-items: center !important;
}

/* FIX: sembunyikan scrollbar putih di daftar kategori */
#chips-kategori-box-public,
#chips-kategori-box-private {
    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* FIX: teks kategori panjang tidak turun terlalu mepet bawah */
.category-chip {
    height: auto !important;
    min-height: 54px !important;

    padding-top: 12px !important;
    padding-bottom: 12px !important;

    box-sizing: border-box !important;
}

.category-label {
    line-height: 1.35 !important;
    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    display: block !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

/* ==========================================================
   FINAL FIX: CATEGORY TEXT RAPI + SIDEBAR ATAS COMPACT
   ========================================================== */

/* Hilangkan scrollbar putih */
#chips-kategori-box-public,
#chips-kategori-box-private {
    overflow-y: auto !important;
    overflow-x: hidden !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;

    padding-right: 0 !important;
    padding-bottom: 8px !important;
}

#chips-kategori-box-public::-webkit-scrollbar,
#chips-kategori-box-private::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Bagian atas sidebar dibuat lebih hemat space */
#dashboard-public input[placeholder*="Cari"],
#dashboard-private input[placeholder*="Cari"] {
    height: 44px !important;
    margin-bottom: 12px !important;
}

button[onclick="tambahKategoriPromptPublic()"],
button[onclick="tambahKategoriPromptPrivate()"] {
    height: 42px !important;
    margin-bottom: 14px !important;
}

/* Action bar kategori dibuat compact */
.kategori-actionbar {
    margin: 6px 0 10px 0 !important;
    padding: 8px !important;
    min-height: auto !important;
}

.kategori-action-info span,
#kategori-count-public,
#kategori-count-private {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
}

/* Box kategori */
.category-chip {
    position: relative !important;

    display: block !important;
    grid-template-columns: none !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 54px !important;
    height: auto !important;

    padding: 10px 94px 10px 14px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Label kategori: ikon dan teks dipisah agar teks 2 baris tidak jatuh */
.category-chip .category-label {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 6px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 34px !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Ikon folder rata tengah */
.category-chip .category-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 18px !important;
    height: 18px !important;

    font-size: 14px !important;
    line-height: 1 !important;
}

/* Teks kategori utama */
.category-chip .category-name {
    display: block !important;

    min-width: 0 !important;
    max-width: 100% !important;

    white-space: pre-line !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    font-size: 13.5px !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
    letter-spacing: 0.05px !important;

    padding: 0 !important;
    margin: 0 !important;

    position: relative !important;
    top: -1px !important;
}

/* Tombol PIN tetap kanan tengah */
.category-chip .pin-chip-btn {
    position: absolute !important;

    right: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    height: 29px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    font-size: 10.5px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
}

/* Belum pin */
.category-chip .pin-chip-btn:not(.active) {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;

    padding: 0 !important;
}

/* Sudah pin */
.category-chip .pin-chip-btn.active {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    padding: 0 7px !important;
}

.category-chip .pin-chip-btn.active::after {
    content: "" !important;
}

/* Checkbox kanan tengah */
.category-chip .kategori-check-wrap {
    position: absolute !important;

    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 22px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================
   FINAL FIX: ACTION BAR KATEGORI MINIMALIS DAN LEGA
   ========================================================== */

/* Hilangkan kotak besar action bar */
.kategori-actionbar {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    margin: 2px 0 10px 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Teks jumlah dipilih dibuat kecil dan ringan */
.kategori-action-info,
.kategori-action-count {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.kategori-action-info span,
#kategori-count-public,
#kategori-count-private {
    color: rgba(255, 255, 255, 0.48) !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;

    letter-spacing: 0.1px !important;
    white-space: nowrap !important;
}

/* Area tombol dibuat compact */
.kategori-action-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;

    flex: 0 0 auto !important;
    max-width: 100% !important;
}

/* Tombol lebih kecil dan rapi */
.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 25px !important;
    min-height: 25px !important;

    padding: 0 8px !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

/* Tombol semua tetap kuning */
.btn-kategori-selectall {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

/* Edit lebih kalem */
.btn-kategori-edit {
    color: #151515 !important;
    background: linear-gradient(135deg, #d7b85c, #b89236) !important;
}

/* Hapus tetap merah tapi tidak terlalu besar */
.btn-kategori-delete {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e74c3c, #b83228) !important;
}

/* Kalau tombol disabled, jangan makan perhatian */
.btn-kategori-edit:disabled,
.btn-kategori-delete:disabled {
    opacity: 0.28 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.55) !important;
}

/* Sembunyikan Edit/Hapus kalau belum bisa dipakai */
.btn-kategori-edit:disabled,
.btn-kategori-delete:disabled {
    display: none !important;
}

/* ==========================================================
   FIX WARNA TOMBOL EDIT KATEGORI LEBIH TERANG
   ========================================================== */

.btn-kategori-edit {
    color: #111111 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;

    box-shadow:
        0 0 12px rgba(255, 212, 59, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.btn-kategori-edit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffe066, #ffc247) !important;
    transform: translateY(-1px) !important;
}

.btn-kategori-edit:disabled {
    opacity: 0.32 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.45) !important;
    box-shadow: none !important;
}

/* ==========================================================
   KALKULATOR CASHBACK TEMPOTOTO
   ========================================================== */

.cashback-calculator-box {
    width: 100%;
    max-width: 860px;
    margin: 4px 0 20px 0;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(88, 151, 255, 0.28);
    background: linear-gradient(180deg, rgba(15, 22, 54, 0.96), rgba(12, 16, 34, 0.96));
    box-shadow: 0 0 24px rgba(56, 126, 255, 0.14);
    box-sizing: border-box;
}

.cashback-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cashback-title-row h3 {
    margin: 0;
    color: #5fa8ff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.cashback-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 148, 255, 0.15);
    border: 1px solid rgba(95, 168, 255, 0.35);
    color: #79b8ff;
    font-size: 12px;
    font-weight: 800;
}

.cashback-grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.cashback-field label {
    display: block;
    margin-bottom: 8px;
    color: #5fa8ff;
    font-size: 15px;
    font-weight: 800;
}

.cashback-input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(95, 168, 255, 0.3);
    background: rgba(31, 36, 80, 0.9);
    color: #ffffff;
    font-size: 24px;
    outline: none;
    box-sizing: border-box;
}

.cashback-input:focus {
    border-color: #63a8ff;
    box-shadow: 0 0 12px rgba(99, 168, 255, 0.22);
}

.cashback-note-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(95, 168, 255, 0.35);
    background: rgba(36, 49, 99, 0.85);
    color: #c6ddff;
    font-size: 14px;
    line-height: 1.7;
}

.cashback-button-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.cashback-btn {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #6ba9ff;
    background: rgba(44, 60, 116, 0.9);
    color: #5fa8ff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.cashback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(98, 168, 255, 0.18);
}

.cashback-btn.blue {
    color: #5fa8ff;
}

.cashback-btn.red {
    color: #ff6b7c;
    border-color: #ff7585;
}

.cashback-btn.gold {
    color: #ffd04f;
    border-color: #ffd04f;
}

.cashback-result-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(95, 168, 255, 0.28);
    background: rgba(30, 37, 83, 0.88);
    box-shadow: 0 0 20px rgba(71, 129, 255, 0.12);
}

.cashback-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cashback-result-head span {
    color: #4fa0ff;
    font-size: 26px;
    font-weight: 900;
}

.cashback-copy-btn {
    min-width: 74px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #62a5ff;
    background: rgba(45, 78, 160, 0.35);
    color: #cfe5ff;
    font-size: 13px;
    cursor: pointer;
}

.cashback-result-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(95, 168, 255, 0.22);
    background: rgba(22, 28, 61, 0.92);
    color: #ffffff;
    font-size: 24px;
    line-height: 1.8;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
}

@media (max-width: 768px) {
    .cashback-button-row {
        grid-template-columns: 1fr;
    }

    .cashback-title-row h3 {
        font-size: 20px;
    }

    .cashback-result-head span {
        font-size: 18px;
    }
}

/* ==========================================================
   CASHBACK AUTO CALCULATOR TEMPOTOTO THEME
   ========================================================== */

.cashback-auto-box {
    width: 100%;
    max-width: 880px;

    margin: 4px 0 24px 0;
    padding: 22px;

    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.24);

    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(12, 15, 24, 0.94);

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(255, 215, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);

    box-sizing: border-box;
}

.cashback-auto-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.cashback-auto-head h3 {
    margin: 0 0 5px 0;

    color: #ffd43b;

    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.cashback-auto-head p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 13px;
    line-height: 1.45;
}

.cashback-auto-badge {
    padding: 7px 11px;

    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(255, 215, 0, 0.08);
    color: #ffd43b;

    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.cashback-auto-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cashback-auto-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cashback-auto-field label {
    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    font-weight: 800;
}

.cashback-auto-input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.24);

    background: rgba(8, 11, 18, 0.88);
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    outline: none;
    box-sizing: border-box;
}

.cashback-auto-input:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.13);
}

.cashback-hidden {
    display: none !important;
}

.cashback-rule-box {
    margin-top: 16px;
    padding: 14px 16px;

    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.2);

    background: rgba(255, 215, 0, 0.055);
    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    line-height: 1.7;
}

.cashback-rule-box b {
    color: #ffd43b;
}

.cashback-auto-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 18px;
}

.cashback-auto-btn {
    min-height: 46px;

    border-radius: 13px;
    border: 1px solid rgba(255, 215, 0, 0.22);

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
    transition: 0.18s ease;
}

.cashback-auto-btn:hover {
    transform: translateY(-1px);
}

.cashback-auto-btn.win {
    color: #151515;
    background: linear-gradient(135deg, #ffd43b, #ffb52e);
}

.cashback-auto-btn.lose {
    color: #ffffff;
    background: linear-gradient(135deg, #e74c3c, #a92218);
}

.cashback-auto-btn.calc {
    color: #151515;
    background: linear-gradient(135deg, #f6c453, #d89b22);
}

.cashback-output-box {
    margin-top: 18px;
    padding: 16px;

    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);

    background: rgba(8, 11, 18, 0.82);

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.cashback-output-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 12px;
}

.cashback-output-head h4 {
    margin: 0;

    color: #ffd43b;

    font-size: 16px;
    font-weight: 900;
}

.cashback-output-head button {
    height: 30px;
    padding: 0 11px;

    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.28);

    background: rgba(255, 215, 0, 0.08);
    color: #ffd43b;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.cashback-output-text {
    width: 100%;
    min-height: 120px;

    padding: 14px;

    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.18);

    background: rgba(13, 16, 25, 0.92);
    color: #ffffff;

    font-size: 14px;
    line-height: 1.7;

    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .cashback-auto-form,
    .cashback-auto-buttons {
        grid-template-columns: 1fr;
    }

    .cashback-auto-head {
        flex-direction: column;
    }
}

/* ==========================================================
   CASHBACK CALCULATOR COMPACT PREMIUM
   ========================================================== */

.cashback-auto-box {
    width: 100% !important;
    max-width: 760px !important;

    margin: 0 0 16px 0 !important;
    padding: 16px !important;

    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(12, 15, 24, 0.92) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(255, 215, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.cashback-auto-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;

    margin-bottom: 13px !important;
}

.cashback-auto-head h3 {
    margin: 0 0 3px 0 !important;

    color: #ffd43b !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0.45px !important;
}

.cashback-auto-head p {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.56) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
}

.cashback-auto-badge {
    padding: 6px 9px !important;

    border-radius: 999px !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;

    background: rgba(255, 215, 0, 0.07) !important;
    color: #ffd43b !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.cashback-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.cashback-auto-field {
    gap: 5px !important;
}

.cashback-auto-field label {
    color: rgba(255, 255, 255, 0.78) !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

.cashback-auto-input {
    height: 41px !important;

    padding: 0 12px !important;

    border-radius: 10px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background: rgba(8, 11, 18, 0.88) !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    box-sizing: border-box !important;
}

.cashback-rule-box {
    margin-top: 12px !important;
    padding: 10px 12px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(255, 215, 0, 0.045) !important;
    color: rgba(255, 255, 255, 0.7) !important;

    font-size: 12px !important;
    line-height: 1.55 !important;
}

.cashback-rule-box b {
    color: #ffd43b !important;
}

.cashback-auto-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 9px !important;

    margin-top: 13px !important;
}

.cashback-auto-btn {
    min-height: 39px !important;

    padding: 8px 10px !important;

    border-radius: 11px !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;

    font-size: 12px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

.cashback-output-box {
    margin-top: 13px !important;
    padding: 12px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(8, 11, 18, 0.82) !important;
}

.cashback-output-head {
    margin-bottom: 8px !important;
}

.cashback-output-head h4 {
    margin: 0 !important;

    color: #ffd43b !important;

    font-size: 14px !important;
    font-weight: 900 !important;
}

.cashback-output-head button {
    height: 27px !important;
    padding: 0 10px !important;

    border-radius: 8px !important;

    font-size: 11px !important;
}

.cashback-output-text {
    width: 100% !important;
    min-height: 88px !important;

    padding: 12px !important;

    border-radius: 11px !important;
    border: 1px solid rgba(255, 215, 0, 0.16) !important;

    background: rgba(13, 16, 25, 0.92) !important;
    color: #ffffff !important;

    font-size: 13px !important;
    line-height: 1.55 !important;

    resize: vertical !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Jarak kata tambahan di bawah calculator */
.cashback-auto-box + .phrase-item {
    margin-top: 6px !important;
}

@media (max-width: 850px) {
    .cashback-auto-form,
    .cashback-auto-buttons {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   FIX ACTION KATEGORI: TOMBOL SEMUA TETAP DI KANAN
   ========================================================== */

.kategori-actionbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 2px 0 10px 0 !important;
    padding: 0 !important;

    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    overflow: visible !important;
    box-sizing: border-box !important;
}

.kategori-action-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.kategori-action-info span,
#kategori-count-public,
#kategori-count-private {
    color: rgba(255, 255, 255, 0.45) !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.kategori-action-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;

    flex: 0 0 auto !important;
}

/* Urutan tombol: Edit/Hapus muncul di kiri, Semua tetap paling kanan */
.btn-kategori-edit {
    order: 1 !important;
}

.btn-kategori-delete {
    order: 2 !important;
}

.btn-kategori-selectall {
    order: 3 !important;
}

/* Style tombol */
.btn-kategori-selectall,
.btn-kategori-edit,
.btn-kategori-delete {
    height: 25px !important;
    padding: 0 8px !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    cursor: pointer !important;
}

.btn-kategori-selectall {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

.btn-kategori-edit {
    color: #151515 !important;
    background: linear-gradient(135deg, #f7c948, #f59f00) !important;
}

.btn-kategori-delete {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e74c3c, #b83228) !important;
}

/* Edit/Hapus disembunyikan kalau belum aktif */
.btn-kategori-edit:disabled,
.btn-kategori-delete:disabled {
    display: none !important;
}

/* ==========================================================
   FIX: ISI KATEGORI PUBLIC BISA SCROLL
   ========================================================== */

#list-frasa-box-public {
    max-height: calc(100vh - 225px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 10px !important;
    padding-bottom: 24px !important;

    box-sizing: border-box !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#list-frasa-box-public::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Supaya item kata di bawah calculator tetap punya jarak */
.cashback-auto-box + .phrase-item {
    margin-top: 10px !important;
}

/* ==========================================================
   FIX: CASHBACK CALCULATOR LEBAR, COMPACT, TETAP MEWAH
   ========================================================== */

.cashback-auto-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 16px 0 !important;
    padding: 16px 18px !important;

    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(12, 15, 24, 0.92) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(255, 215, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.cashback-auto-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;

    margin-bottom: 12px !important;
}

.cashback-auto-head h3 {
    margin: 0 0 3px 0 !important;

    color: #ffd43b !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0.45px !important;
}

.cashback-auto-head p {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.56) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
}

.cashback-auto-badge {
    padding: 6px 9px !important;

    border-radius: 999px !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;

    background: rgba(255, 215, 0, 0.07) !important;
    color: #ffd43b !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Untuk ALLGAME: ID, Nominal, Jenis Game satu baris */
.cashback-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
}

.cashback-auto-field {
    gap: 5px !important;
}

.cashback-auto-field label {
    color: rgba(255, 255, 255, 0.78) !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

.cashback-auto-input {
    height: 41px !important;

    padding: 0 12px !important;

    border-radius: 10px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background: rgba(8, 11, 18, 0.88) !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    box-sizing: border-box !important;
}

.cashback-rule-box {
    margin-top: 12px !important;
    padding: 10px 12px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(255, 215, 0, 0.045) !important;
    color: rgba(255, 255, 255, 0.7) !important;

    font-size: 12px !important;
    line-height: 1.55 !important;
}

.cashback-auto-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 9px !important;

    margin-top: 13px !important;
}

.cashback-auto-btn {
    min-height: 39px !important;

    padding: 8px 10px !important;

    border-radius: 11px !important;

    font-size: 12px !important;
    font-weight: 900 !important;
}

.cashback-output-box {
    margin-top: 13px !important;
    padding: 12px !important;

    border-radius: 13px !important;
}

.cashback-output-head {
    margin-bottom: 8px !important;
}

.cashback-output-head h4 {
    font-size: 14px !important;
}

.cashback-output-text {
    min-height: 86px !important;

    padding: 12px !important;

    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Di layar kecil, balik jadi satu kolom */
@media (max-width: 1100px) {
    .cashback-auto-form {
        grid-template-columns: 1fr !important;
    }

    .cashback-auto-buttons {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   CASHBACK FIX: CALCULATOR STAY + MANUAL WORDS SCROLL
   ========================================================== */

#list-frasa-box-public {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

/* Calculator tidak ikut scroll kata tambahan */
.cashback-auto-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 14px 0 !important;
    padding: 14px 16px !important;

    border-radius: 16px !important;
    box-sizing: border-box !important;
}

/* Form calculator lebih compact */
.cashback-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.cashback-two-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.cashback-auto-btn {
    min-height: 40px !important;
    font-size: 12px !important;
}

/* Area khusus kata tambahan di bawah calculator */
.cashback-manual-list {
    max-height: calc(100vh - 680px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    padding: 4px 2px 18px 0 !important;
    box-sizing: border-box !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.cashback-manual-list::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Kata tambahan tidak tenggelam */
.cashback-manual-list .phrase-item,
#list-frasa-box-public .phrase-item {
    width: 100% !important;

    min-height: 54px !important;
    height: auto !important;

    padding: 14px 16px !important;

    border-radius: 14px !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
}

/* Layout teks + checkbox kata */
.cashback-manual-list .phrase-check-row,
#list-frasa-box-public .phrase-check-row {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px !important;
    align-items: center !important;
    gap: 14px !important;
}

.cashback-manual-list .phrase-text,
#list-frasa-box-public .phrase-text {
    display: block !important;

    min-width: 0 !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    line-height: 1.55 !important;
    font-size: 13px !important;
}

.cashback-manual-list .phrase-checkbox-public,
#list-frasa-box-public .phrase-checkbox-public {
    width: 18px !important;
    height: 18px !important;

    justify-self: end !important;

    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Kalau layar tinggi besar, area kata tambahan dibuat lebih lega */
@media (min-height: 850px) {
    .cashback-manual-list {
        max-height: calc(100vh - 630px) !important;
    }
}

/* ==========================================================
   CASHBACK FINAL: CALCULATOR IKUT SCROLL BARENG KATA TAMBAHAN
   ========================================================== */

/* Area isi public dibuat scroll bersama */
#list-frasa-box-public {
    max-height: calc(100vh - 230px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 8px !important;
    padding-bottom: 28px !important;

    box-sizing: border-box !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#list-frasa-box-public::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Manual list di bawah calculator jangan punya scroll sendiri */
.cashback-manual-list {
    max-height: none !important;

    overflow: visible !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    padding: 4px 0 20px 0 !important;

    box-sizing: border-box !important;
}

/* Calculator balik ke ukuran premium sebelumnya, tidak terlalu mini */
.cashback-auto-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 16px 0 !important;
    padding: 16px 18px !important;

    border-radius: 16px !important;
    box-sizing: border-box !important;
}

/* Header calculator tetap jelas */
.cashback-auto-head {
    margin-bottom: 12px !important;
}

.cashback-auto-head h3 {
    font-size: 18px !important;
}

.cashback-auto-head p {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* Input tetap nyaman dibaca */
.cashback-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.cashback-auto-input {
    height: 41px !important;
    font-size: 13px !important;
}

/* Rule box tidak terlalu tinggi */
.cashback-rule-box {
    margin-top: 12px !important;
    padding: 10px 12px !important;

    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* Tombol tetap premium */
.cashback-two-buttons,
.cashback-auto-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;

    margin-top: 13px !important;
}

.cashback-auto-btn {
    min-height: 40px !important;
    height: 40px !important;

    font-size: 12px !important;
}

/* Hasil kata-kata jangan terlalu pendek */
.cashback-output-box {
    margin-top: 13px !important;
    padding: 12px !important;
}

.cashback-output-text {
    min-height: 90px !important;
    max-height: 160px !important;

    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Kata tambahan di bawah calculator dibuat lega dan elegan */
.cashback-manual-list .phrase-item {
    width: 100% !important;

    min-height: 54px !important;
    height: auto !important;

    padding: 14px 16px !important;

    border-radius: 14px !important;

    box-sizing: border-box !important;
}

/* Teks kata tambahan tidak tenggelam */
.cashback-manual-list .phrase-check-row {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px !important;
    align-items: center !important;
    gap: 14px !important;
}

.cashback-manual-list .phrase-text {
    display: block !important;

    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Kalau layar kecil, input turun rapi */
@media (max-width: 1100px) {
    .cashback-auto-form,
    .cashback-two-buttons,
    .cashback-auto-buttons {
        grid-template-columns: 1fr !important;
    }
}
/* ==========================================================
   ROLLINGAN SLOT CALCULATOR - BONUS DITERIMA + TO
   ========================================================== */

.rolling-auto-box {
    border-color: rgba(255, 215, 0, 0.25) !important;
}

.rolling-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
}

.rolling-rule-box {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.rolling-three-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
}

.field-soft-note {
    color: rgba(255, 255, 255, 0.42) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.rolling-manual-list .phrase-item {
    width: 100% !important;
    min-height: 54px !important;
    height: auto !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

.rolling-manual-list .phrase-check-row {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px !important;
    align-items: center !important;
    gap: 14px !important;
}

.rolling-manual-list .phrase-text {
    display: block !important;
    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

@media (max-width: 1200px) {
    .rolling-auto-form,
    .rolling-rule-box,
    .rolling-three-buttons {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   ROLLING CALCULATOR CLEAN FINAL
   ========================================================== */

.rolling-two-field {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.rolling-two-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.rolling-auto-btn.bonus {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #e0a82e) !important;
}

.rolling-auto-btn.calc {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

@media (max-width: 1100px) {
    .rolling-two-field,
    .rolling-two-buttons {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   FIX FINAL: ROLLING CALCULATOR PREMIUM RESTORE
   ========================================================== */

.rolling-auto-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 16px 0 !important;
    padding: 16px 18px !important;

    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(12, 15, 24, 0.92) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(255, 215, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.rolling-auto-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;

    margin-bottom: 13px !important;
}

.rolling-auto-head h3 {
    margin: 0 0 4px 0 !important;

    color: #ffd43b !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0.45px !important;
}

.rolling-auto-head p {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.58) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
}

.rolling-auto-badge {
    padding: 6px 9px !important;

    border-radius: 999px !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;

    background: rgba(255, 215, 0, 0.07) !important;
    color: #ffd43b !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Form rollingan */
.rolling-auto-form,
.rolling-two-field {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.rolling-auto-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.rolling-auto-field label {
    color: rgba(255, 255, 255, 0.78) !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

.rolling-auto-input {
    width: 100% !important;
    height: 41px !important;

    padding: 0 12px !important;

    border-radius: 10px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background: rgba(8, 11, 18, 0.88) !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;

    outline: none !important;
    box-sizing: border-box !important;
}

.rolling-auto-input:focus {
    border-color: #ffd43b !important;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.13) !important;
}

/* Rule box */
.rolling-rule-box {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;

    margin-top: 12px !important;
    padding: 10px 12px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(255, 215, 0, 0.045) !important;
    color: rgba(255, 255, 255, 0.70) !important;

    font-size: 12px !important;
    line-height: 1.55 !important;

    box-sizing: border-box !important;
}

.rolling-rule-box b {
    color: #ffd43b !important;
}

/* Tombol */
.rolling-auto-buttons,
.rolling-two-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;

    margin-top: 13px !important;
}

.rolling-auto-btn {
    min-height: 40px !important;
    height: 40px !important;

    padding: 0 12px !important;

    border: none !important;
    border-radius: 11px !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
    transition: 0.18s ease !important;

    box-sizing: border-box !important;
}

.rolling-auto-btn:hover {
    transform: translateY(-1px) !important;
}

.rolling-auto-btn.calc {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

.rolling-auto-btn.bonus {
    color: #151515 !important;
    background: linear-gradient(135deg, #f7c948, #d89b22) !important;
}

/* Output */
.rolling-output-box {
    margin-top: 13px !important;
    padding: 12px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(8, 11, 18, 0.82) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.rolling-output-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    margin-bottom: 8px !important;
}

.rolling-output-head h4 {
    margin: 0 !important;

    color: #ffd43b !important;

    font-size: 14px !important;
    font-weight: 900 !important;
}

.rolling-output-head button {
    height: 27px !important;
    padding: 0 10px !important;

    border-radius: 8px !important;
    border: 1px solid rgba(255, 215, 0, 0.28) !important;

    background: rgba(255, 215, 0, 0.08) !important;
    color: #ffd43b !important;

    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

.rolling-output-text {
    width: 100% !important;
    min-height: 90px !important;
    max-height: 160px !important;

    padding: 12px !important;

    border-radius: 11px !important;
    border: 1px solid rgba(255, 215, 0, 0.16) !important;

    background: rgba(13, 16, 25, 0.92) !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.55 !important;

    resize: vertical !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Kata tambahan di bawah rollingan */
.rolling-manual-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    padding: 4px 0 20px 0 !important;

    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .rolling-auto-form,
    .rolling-two-field,
    .rolling-auto-buttons,
    .rolling-two-buttons,
    .rolling-rule-box {
        grid-template-columns: 1fr !important;
    }

    .rolling-auto-head {
        flex-direction: column !important;
    }
}

/* ==========================================================
   FIX UKURAN TEKS KALKULATOR ROLLINGAN
   ========================================================== */

/* Deskripsi kecil di bawah judul */
.rolling-auto-head p {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.68) !important;
}

/* Label input: Total Turn Over / TO dan Nominal Bonus Diterima */
.rolling-auto-field label {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

/* Supaya jarak label ke input tetap enak */
.rolling-auto-field {
    gap: 7px !important;
}

/* ==========================================================
   FIX UKURAN TEKS KALKULATOR CASHBACK
   ========================================================== */

/* Deskripsi kecil di bawah judul Kalkulator Cashback */
.cashback-auto-head p {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.68) !important;
}

/* Label input: ID / Username dan Nominal Menang / Kalah */
.cashback-auto-field label {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

/* Supaya jarak label ke input lebih nyaman */
.cashback-auto-field {
    gap: 7px !important;
}

/* ==========================================================
   EXTRA TO SLOTGAME CALCULATOR PREMIUM
   ========================================================== */

.extra-to-auto-box {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 16px 0 !important;
    padding: 16px 18px !important;

    border-radius: 16px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background:
        linear-gradient(180deg, rgba(255, 215, 0, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(12, 15, 24, 0.92) !important;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(255, 215, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.extra-to-auto-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;

    margin-bottom: 13px !important;
}

.extra-to-auto-head h3 {
    margin: 0 0 4px 0 !important;

    color: #ffd43b !important;

    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0.45px !important;
}

.extra-to-auto-head p {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.68) !important;

    font-size: 13.5px !important;
    line-height: 1.45 !important;
}

.extra-to-auto-badge {
    padding: 6px 9px !important;

    border-radius: 999px !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;

    background: rgba(255, 215, 0, 0.07) !important;
    color: #ffd43b !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.extra-to-auto-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
}

.extra-to-auto-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.extra-to-auto-field label {
    color: rgba(255, 255, 255, 0.86) !important;

    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.extra-to-auto-input {
    width: 100% !important;
    height: 41px !important;

    padding: 0 12px !important;

    border-radius: 10px !important;
    border: 1px solid rgba(255, 215, 0, 0.24) !important;

    background: rgba(8, 11, 18, 0.88) !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;

    outline: none !important;
    box-sizing: border-box !important;
}

.extra-to-auto-input:focus {
    border-color: #ffd43b !important;
    box-shadow: 0 0 16px rgba(255, 212, 59, 0.13) !important;
}

.extra-to-rule-box {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;

    margin-top: 12px !important;
    padding: 10px 12px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(255, 215, 0, 0.045) !important;
    color: rgba(255, 255, 255, 0.70) !important;

    font-size: 12px !important;
    line-height: 1.55 !important;

    box-sizing: border-box !important;
}

.extra-to-rule-box b {
    color: #ffd43b !important;
}

.extra-to-auto-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;

    margin-top: 13px !important;
}

.extra-to-auto-btn {
    min-height: 40px !important;
    height: 40px !important;

    padding: 0 12px !important;

    border: none !important;
    border-radius: 11px !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
    transition: 0.18s ease !important;

    box-sizing: border-box !important;
}

.extra-to-auto-btn:hover {
    transform: translateY(-1px) !important;
}

.extra-to-auto-btn.bonus,
.extra-to-auto-btn.calc,
.extra-to-auto-btn.check {
    color: #151515 !important;
    background: linear-gradient(135deg, #ffd43b, #ffb52e) !important;
}

.extra-to-output-box {
    margin-top: 13px !important;
    padding: 12px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(8, 11, 18, 0.82) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;

    box-sizing: border-box !important;
}

.extra-to-output-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    margin-bottom: 8px !important;
}

.extra-to-output-head h4 {
    margin: 0 !important;

    color: #ffd43b !important;

    font-size: 14px !important;
    font-weight: 900 !important;
}

.extra-to-output-head button {
    height: 27px !important;
    padding: 0 10px !important;

    border-radius: 8px !important;
    border: 1px solid rgba(255, 215, 0, 0.28) !important;

    background: rgba(255, 215, 0, 0.08) !important;
    color: #ffd43b !important;

    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

.extra-to-output-text {
    width: 100% !important;
    min-height: 90px !important;
    max-height: 160px !important;

    padding: 12px !important;

    border-radius: 11px !important;
    border: 1px solid rgba(255, 215, 0, 0.16) !important;

    background: rgba(13, 16, 25, 0.92) !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.55 !important;

    resize: vertical !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.extra-to-manual-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    padding: 4px 0 20px 0 !important;

    box-sizing: border-box !important;
}

@media (max-width: 1100px) {
    .extra-to-auto-form,
    .extra-to-auto-buttons,
    .extra-to-rule-box {
        grid-template-columns: 1fr !important;
    }

    .extra-to-auto-head {
        flex-direction: column !important;
    }
}

/* ==========================================================
   FIX CASHBACK RULE BOX JADI MELEBAR KE SAMPING
   ========================================================== */

.cashback-auto-box .cashback-rule-box {
    display: grid !important;
    grid-template-columns: 1.4fr 1.2fr 1fr !important;
    align-items: center !important;
    gap: 10px !important;

    width: 100% !important;

    margin-top: 12px !important;
    padding: 10px 14px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: rgba(255, 215, 0, 0.045) !important;

    box-sizing: border-box !important;
}

/* Tiap teks rule dibuat melebar, tidak turun ke bawah */
.cashback-auto-box .cashback-rule-box div {
    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    color: rgba(255, 255, 255, 0.72) !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* Angka penting tetap kuning */
.cashback-auto-box .cashback-rule-box b {
    color: #ffd43b !important;
    font-weight: 900 !important;
    margin-left: 4px !important;
}

/* Kalau layar sempit, baru turun ke bawah agar tidak rusak */
@media (max-width: 1100px) {
    .cashback-auto-box .cashback-rule-box {
        grid-template-columns: 1fr !important;
    }

    .cashback-auto-box .cashback-rule-box div {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
}

/* ==========================================================
   GENERATOR REKOMENDASI SLOT
   ========================================================== */
.slot-generator-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 210, 60, 0.35);
    background:
        radial-gradient(circle at top right, rgba(255, 210, 60, 0.08), transparent 32%),
        linear-gradient(145deg, rgba(20, 24, 38, 0.96), rgba(11, 15, 25, 0.96));
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.slot-generator-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.slot-generator-header h3 {
    margin: 0;
    color: #ffd43b;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.slot-generator-header p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    line-height: 1.6;
}

.slot-generator-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 210, 60, 0.08);
    border: 1px solid rgba(255, 210, 60, 0.35);
    color: #ffd43b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.slot-generator-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.slot-generator-info div {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 700;
}

.slot-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.slot-provider-item label {
    display: block;
    margin-bottom: 8px;
    color: #7cf3ff;
    font-size: 13px;
    font-weight: 800;
}

.slot-provider-item select {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255, 210, 60, 0.35);
    background: rgba(7, 11, 19, 0.95);
    color: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.slot-provider-item select:focus {
    border-color: #ffd43b;
    box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.12);
}

.slot-generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.slot-btn-primary,
.slot-btn-secondary,
.slot-btn-copy {
    min-width: 190px;
    height: 52px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.slot-btn-primary {
    background: linear-gradient(135deg, #20d67b, #2fd29b);
    color: #ffffff;
}

.slot-btn-secondary {
    background: linear-gradient(135deg, #ffd43b, #ffbb33);
    color: #1d1400;
}

.slot-btn-copy {
    background: linear-gradient(135deg, #456cff, #36a8ff);
    color: #ffffff;
}

.slot-generator-result {
    margin-bottom: 18px;
}

.slot-generator-empty {
    padding: 22px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 14px;
}

.slot-result-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.slot-result-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(12, 18, 30, 0.95);
    border: 1px solid rgba(120, 196, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.slot-result-card-title {
    margin-bottom: 12px;
    color: #ffd43b;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.slot-result-list {
    margin: 0;
    padding-left: 18px;
    color: #e8edf8;
}

.slot-result-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.slot-copy-output-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
}

.slot-copy-output-title {
    margin-bottom: 10px;
    color: #7cf3ff;
    font-size: 14px;
    font-weight: 800;
}

.slot-copy-output {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid rgba(255, 210, 60, 0.22);
    background: #070b13;
    color: #ffffff;
    padding: 14px;
    font-size: 14px;
    line-height: 1.65;
    box-sizing: border-box;
    outline: none;
}

.list-kata-rekomendasi-slot-public {
    margin-top: 18px;
}

@media (max-width: 1200px) {
    .slot-provider-grid,
    .slot-result-card-grid,
    .slot-generator-info {
        grid-template-columns: 1fr;
    }

    .slot-generator-header {
        flex-direction: column;
    }
}

.provider-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 16px;
}

.provider-select-box {
    background: linear-gradient(180deg, rgba(24, 28, 45, 0.96), rgba(13, 16, 28, 0.96));
    border: 1px solid rgba(255, 208, 59, 0.22);
    border-radius: 16px;
    padding: 14px 14px 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.provider-select-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #7be7ff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.provider-select {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 208, 59, 0.8);
    background: #070c1a;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    padding: 0 16px;
    outline: none;
    transition: 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 208, 59, 0.06);
}

.provider-select:hover {
    border-color: #ffd95a;
    box-shadow: 0 0 0 3px rgba(255, 208, 59, 0.08);
}

.provider-select:focus {
    border-color: #ffe27c;
    box-shadow: 0 0 0 4px rgba(255, 208, 59, 0.12);
}

.provider-select option {
    background: #0f1424;
    color: #ffffff;
    font-size: 15px;
}

.rekomendasi-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 18px;
    align-items: stretch;
}

.rekomendasi-action-row .btn-rekomendasi,
.rekomendasi-action-row .btn-acak,
.rekomendasi-action-row .btn-salin-hasil {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.rekomendasi-action-row .btn-rekomendasi {
    background: linear-gradient(90deg, #f2c94c, #f7b733);
    color: #101010;
}

.rekomendasi-action-row .btn-acak {
    background: linear-gradient(90deg, #eab543, #f5c04a);
    color: #111111;
}

.rekomendasi-action-row .btn-salin-hasil {
    background: linear-gradient(90deg, #4f97ff, #63b2ff);
    color: #ffffff;
}

.rekomendasi-action-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.rekomendasi-hasil-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.rekomendasi-provider-card {
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(255, 208, 59, 0.2);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.rekomendasi-provider-card h4 {
    margin: 0 0 12px;
    color: #ffd54a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.rekomendasi-provider-card ul {
    margin: 0;
    padding-left: 18px;
}

.rekomendasi-provider-card li {
    margin-bottom: 8px;
    color: #f5f7fb;
    font-size: 14px;
    line-height: 1.55;
}

.rekomendasi-output-box {
    background: rgba(7, 12, 24, 0.98);
    border: 1px solid rgba(255, 208, 59, 0.22);
    border-radius: 18px;
    padding: 16px;
    margin-top: 8px;
}

.rekomendasi-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rekomendasi-output-title {
    color: #ffd54a;
    font-size: 16px;
    font-weight: 800;
}

.rekomendasi-output-text {
    width: 100%;
    min-height: 150px;
    max-height: 220px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid rgba(255, 208, 59, 0.2);
    background: #040916;
    color: #ffffff;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
    white-space: pre-wrap;
}

.rekomendasi-output-text::-webkit-scrollbar {
    width: 10px;
}

.rekomendasi-output-text::-webkit-scrollbar-track {
    background: #0a1020;
    border-radius: 10px;
}

.rekomendasi-output-text::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0c64a, #c79519);
    border-radius: 10px;
    border: 2px solid #0a1020;
}

.rekomendasi-output-text {
    scrollbar-color: #d5a62f #0a1020;
    scrollbar-width: thin;
}

/* ==========================================================
   FINAL FIX REKOMENDASI SLOT PREMIUM
   ========================================================== */

.slot-generator-final {
    margin-top: 14px !important;
    padding: 18px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.075), transparent 34%),
        rgba(10, 14, 24, 0.94) !important;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.30),
        inset 0 0 0 1px rgba(255,255,255,0.025) !important;
}

.slot-generator-header-final {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.slot-generator-header-final h3 {
    margin: 0 0 5px 0 !important;
    color: #ffd43b !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
}

.slot-generator-header-final p {
    margin: 0 !important;
    color: rgba(255,255,255,0.66) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.final-info {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.final-info div {
    padding: 10px 12px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
}

.final-provider-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.final-provider-card {
    padding: 13px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(23, 28, 43, 0.95), rgba(10, 14, 24, 0.95)) !important;
    border: 1px solid rgba(255, 215, 0, 0.20) !important;
}

.final-provider-card label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #7cf3ff !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
}

.slot-provider-select {
    width: 100% !important;
    height: 46px !important;

    padding: 0 14px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.60) !important;

    background: #070b14 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 900 !important;

    outline: none !important;
    box-sizing: border-box !important;
}

.slot-provider-select option {
    background: #101624 !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.slot-provider-select:focus {
    border-color: #ffd43b !important;
    box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.13) !important;
}

.final-slot-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 16px 0 !important;
}

.final-slot-actions button {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.final-result-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.final-result-card {
    min-height: 132px !important;
    padding: 15px !important;
    border-radius: 16px !important;
    background: rgba(7, 12, 22, 0.96) !important;
    border: 1px solid rgba(120, 196, 255, 0.16) !important;
}

.final-result-card .slot-result-card-title {
    color: #ffd43b !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
}

.final-result-card .slot-result-list {
    margin: 0 !important;
    padding-left: 18px !important;
}

.final-result-card .slot-result-list li {
    margin-bottom: 8px !important;
    color: #f1f4fa !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.rekomendasi-output-box {
    padding: 15px !important;
    border-radius: 17px !important;
    background: rgba(7, 11, 20, 0.96) !important;
    border: 1px solid rgba(255, 215, 0, 0.20) !important;
}

.rekomendasi-output-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

.rekomendasi-output-title {
    color: #ffd43b !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.slot-mini-copy-btn {
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 215, 0, 0.30) !important;
    background: rgba(255, 215, 0, 0.09) !important;
    color: #ffd43b !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.rekomendasi-output-text {
    width: 100% !important;
    min-height: 125px !important;
    max-height: 210px !important;

    padding: 13px 14px !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;

    background: #050914 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.65 !important;

    resize: vertical !important;
    outline: none !important;
    box-sizing: border-box !important;

    scrollbar-width: thin !important;
    scrollbar-color: #d5a62f #0a1020 !important;
}

.rekomendasi-output-text::-webkit-scrollbar {
    width: 8px !important;
}

.rekomendasi-output-text::-webkit-scrollbar-track {
    background: #0a1020 !important;
    border-radius: 10px !important;
}

.rekomendasi-output-text::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0c64a, #b88816) !important;
    border-radius: 10px !important;
}

@media (max-width: 1100px) {
    .final-info,
    .final-provider-grid,
    .final-slot-actions,
    .final-result-grid {
        grid-template-columns: 1fr !important;
    }

    .slot-generator-header-final {
        flex-direction: column !important;
    }
}

/* ==========================================================
   EFEK KATEGORI BARU DARI FIREBASE
   ========================================================== */

.category-chip.kategori-baru-sync {
    border-color: #ffd43b !important;
    box-shadow:
        0 0 0 2px rgba(255, 212, 59, 0.35),
        0 0 22px rgba(255, 212, 59, 0.35) !important;
    animation: kategoriBaruSyncPulse 0.75s ease-in-out infinite alternate;
}

@keyframes kategoriBaruSyncPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.025);
    }
}

.popup-pilihan-admin {
    border: 1px solid rgba(241, 196, 15, 0.55);
    border-radius: 22px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(241, 196, 15, 0.12);
}

.tombol-area-admin {
    min-width: 200px !important;
    min-height: 52px !important;
    padding: 14px 22px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    color: #111111 !important;
}

.swal2-deny.tombol-area-admin {
    color: #ffffff !important;
}

.swal2-actions {
    gap: 14px !important;
    flex-wrap: wrap !important;
}

/* ==========================================================
   PANEL LOG AKTIVITAS ADMIN
   ========================================================== */

.tempototo-audit-terbuka {
    overflow: hidden !important;
}

.btn-tempototo-log-admin {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99980;

    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;
    padding: 12px 20px;

    border: 1px solid rgba(255, 216, 0, 0.65);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ffd800,
            #d9a900
        );

    color: #0b0d12;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.7px;

    cursor: pointer;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.48),
        0 0 22px rgba(255, 216, 0, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-tempototo-log-admin:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.56),
        0 0 30px rgba(255, 216, 0, 0.24);
}

.tempototo-audit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background:
        rgba(0, 0, 0, 0.84);

    backdrop-filter:
        blur(9px);
}

.tempototo-audit-panel {
    width: min(1500px, 100%);
    height: min(900px, 96vh);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 216, 0, 0.34);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #10131c,
            #080a10
        );

    color: #f5f6fa;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.75),
        0 0 45px rgba(255, 216, 0, 0.08);
}

.tempototo-audit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px 28px 20px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.tempototo-audit-header h2 {
    margin: 4px 0 5px;

    color: #ffffff;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.15;
}

.tempototo-audit-header p {
    margin: 0;

    color: #979cab;
    font-size: 13px;
}

.tempototo-audit-label {
    color: #ffd800;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.tempototo-audit-close {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.05);

    color: #ffffff;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.tempototo-audit-close:hover {
    border-color:
        rgba(255, 79, 79, 0.65);

    background:
        rgba(255, 79, 79, 0.15);
}

.tempototo-audit-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(125px, 1fr));
    gap: 12px;

    padding: 18px 28px 0;
}

.audit-stat-card {
    padding: 15px 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.035);
}

.audit-stat-card span {
    display: block;

    margin-bottom: 6px;

    color: #8f95a6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.audit-stat-card strong {
    color: #ffd800;
    font-size: 25px;
}

.tempototo-audit-filter {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.7fr)
        repeat(3, minmax(140px, 0.8fr))
        repeat(2, minmax(135px, 0.75fr));

    gap: 10px;

    padding: 18px 28px;
}

.tempototo-audit-filter input,
.tempototo-audit-filter select {
    width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 11px;

    outline: none;

    background:
        #151923;

    color: #f5f6fa;
    font-size: 12px;
}

.tempototo-audit-filter input:focus,
.tempototo-audit-filter select:focus {
    border-color:
        rgba(255, 216, 0, 0.7);

    box-shadow:
        0 0 0 3px
        rgba(255, 216, 0, 0.08);
}

.tempototo-audit-filter label {
    display: flex;
    flex-direction: column;
    gap: 5px;

    color: #a6abba;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tempototo-audit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 0 28px 16px;
}

.tempototo-audit-status {
    color: #969cac;
    font-size: 12px;
}

.tempototo-audit-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tempototo-audit-toolbar-actions button {
    min-height: 38px;
    padding: 8px 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 10px;

    background:
        #1a1f2b;

    color: #f5f6fa;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.tempototo-audit-toolbar-actions button:hover {
    border-color:
        rgba(255, 216, 0, 0.62);

    color: #ffd800;
}

.tempototo-audit-toolbar-actions button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.tempototo-audit-table-wrap {
    flex: 1;
    min-height: 0;

    overflow: auto;

    margin: 0 28px 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 15px;

    background:
        rgba(0, 0, 0, 0.2);
}

.tempototo-audit-table {
    width: 100%;
    min-width: 1100px;

    border-collapse: collapse;
}

.tempototo-audit-table thead {
    position: sticky;
    top: 0;
    z-index: 2;

    background:
        #171b25;
}

.tempototo-audit-table th {
    padding: 13px 14px;

    border-bottom:
        1px solid
        rgba(255, 216, 0, 0.18);

    color: #c7cbd5;
    font-size: 10px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tempototo-audit-table td {
    padding: 13px 14px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);

    color: #d7d9e0;
    font-size: 12px;
    vertical-align: top;
}

.tempototo-audit-table tbody tr:hover {
    background:
        rgba(255, 216, 0, 0.035);
}

.audit-kolom-waktu {
    min-width: 145px;
    white-space: nowrap;
}

.audit-kolom-detail {
    min-width: 260px;
    max-width: 430px;

    white-space: normal;
    word-break: break-word;
}

.audit-email {
    color: #ffffff;
    font-weight: 700;
}

.audit-uid {
    margin-top: 4px;

    color: #686f80;
    font-family: monospace;
    font-size: 10px;
}

.audit-action {
    color: #ffd800;
    font-weight: 800;
}

.tempototo-audit-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.audit-role-admin {
    background:
        rgba(255, 216, 0, 0.15);

    color: #ffd800;
}

.audit-role-private {
    background:
        rgba(147, 91, 255, 0.17);

    color: #bc96ff;
}

.audit-role-public {
    background:
        rgba(40, 204, 116, 0.16);

    color: #55dc93;
}

.audit-area-public {
    background:
        rgba(32, 186, 119, 0.14);

    color: #4fe09c;
}

.audit-area-private {
    background:
        rgba(122, 82, 255, 0.16);

    color: #b79bff;
}

.audit-area-system {
    background:
        rgba(80, 160, 255, 0.15);

    color: #78b7ff;
}

.tempototo-audit-kosong {
    padding: 50px 20px !important;

    color: #777e8e !important;
    text-align: center;
}

.tempototo-audit-kosong.audit-error {
    color: #ff7777 !important;
}

@media (max-width: 1100px) {
    .tempototo-audit-stat-grid {
        grid-template-columns:
            repeat(3, minmax(120px, 1fr));
    }

    .tempototo-audit-filter {
        grid-template-columns:
            repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 700px) {
    .tempototo-audit-overlay {
        padding: 0;
    }

    .tempototo-audit-panel {
        height: 100vh;
        border-radius: 0;
    }

    .tempototo-audit-header,
    .tempototo-audit-stat-grid,
    .tempototo-audit-filter,
    .tempototo-audit-toolbar {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tempototo-audit-stat-grid {
        grid-template-columns:
            repeat(2, minmax(110px, 1fr));
    }

    .tempototo-audit-filter {
        grid-template-columns:
            1fr;
    }

    .tempototo-audit-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tempototo-audit-toolbar-actions {
        justify-content: flex-start;
    }

    .tempototo-audit-table-wrap {
        margin-left: 15px;
        margin-right: 15px;
    }

    .btn-tempototo-log-admin {
        right: 14px;
        bottom: 14px;
    }
}

body.tempototo-admin-login
.btn-tempototo-log-admin {
    display: flex !important;
}

/* ==========================================================
   TOOLBAR ADMIN KOMPAK
   ========================================================== */

.content-header-action > h1 {
    margin-right: auto;
}

.tempototo-admin-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    flex: 0 0 auto;
}

.btn-admin-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 78px;
    height: 46px;

    padding: 0 13px;

    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.btn-admin-mini:hover {
    transform: translateY(-1px);
}

.btn-admin-mini-icon {
    font-size: 14px;
    line-height: 1;
}

.btn-admin-log {
    background:
        linear-gradient(
            135deg,
            #d6aa00,
            #9e7900
        );

    border-color:
        rgba(255, 216, 0, 0.5);

    color: #111318;
}

.btn-admin-area {
    background:
        linear-gradient(
            135deg,
            #7250e8,
            #4f32bd
        );

    border-color:
        rgba(151, 118, 255, 0.6);
}

.btn-admin-log:hover {
    box-shadow:
        0 8px 20px
        rgba(255, 216, 0, 0.16);
}

.btn-admin-area:hover {
    box-shadow:
        0 8px 20px
        rgba(119, 77, 255, 0.22);
}


/* ==========================================================
   POPUP PILIHAN AREA ADMIN PROPORSIONAL
   ========================================================== */

.popup-pilihan-admin {
    width:
        min(
            640px,
            calc(100vw - 28px)
        ) !important;

    padding:
        34px 32px 30px !important;
}

.popup-pilihan-admin
.swal2-title {
    margin-top: 10px !important;

    color: #ffd43b !important;

    font-size: 31px !important;
    line-height: 1.2 !important;
}

.popup-pilihan-admin
.swal2-html-container {
    margin-top: 15px !important;

    color: #b8bdca !important;

    font-size: 15px !important;
}

.aksi-pilihan-admin {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    width: 100% !important;
    gap: 14px !important;

    margin:
        28px 0 0 !important;
}

.tombol-area-admin {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;

    margin: 0 !important;
    padding: 14px 18px !important;

    border: 0 !important;
    border-radius: 14px !important;

    cursor: pointer;

    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.26);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.tombol-area-admin:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.06);
}

.tombol-area-public {
    background:
        linear-gradient(
            135deg,
            #ffd21b,
            #e9b900
        ) !important;

    color: #13151b !important;
}

.tombol-area-private {
    background:
        linear-gradient(
            135deg,
            #8448ff,
            #6430dd
        ) !important;

    color: #ffffff !important;
}

.area-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;

    font-size: 16px !important;
    line-height: 1 !important;
}

.area-admin-label {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.9px !important;
}


/* ==========================================================
   SEARCH DAN TAMBAH KATEGORI KOMPAK
   ========================================================== */

.sidebar-category-tools {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 105px;

    align-items: center;
    gap: 8px;

    width: 100%;

    margin:
        18px 0 14px;
}

.sidebar-category-tools input {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border-radius: 11px !important;

    font-size: 13px !important;
}

.btn-kategori-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 105px;
    height: 44px;

    padding: 0 9px;

    border:
        1px solid
        rgba(46, 204, 113, 0.65);

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2ecc71,
            #20ad5c
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(46, 204, 113, 0.14);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.btn-kategori-compact:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(46, 204, 113, 0.22);
}

.sidebar-category-tools
+ .sidebar-kategori-title {
    margin-top: 20px !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 850px) {
    .content-header-action {
        flex-wrap: wrap;
    }

    .tempototo-admin-tools {
        order: 3;
    }

    .btn-admin-mini {
        min-width: 70px;
        height: 42px;
    }
}

@media (max-width: 600px) {
    .aksi-pilihan-admin {
        grid-template-columns: 1fr;
    }

    .tombol-area-admin {
        min-height: 58px !important;
    }

    .sidebar-category-tools {
        grid-template-columns:
            minmax(0, 1fr) 48px;
    }

    .btn-kategori-compact {
        width: 48px;
    }

    .btn-kategori-compact
    span:last-child {
        display: none;
    }
}

/* ==========================================================
   FINAL POPUP PILIH AREA ADMIN
   ========================================================== */

.popup-pilihan-admin {
    width: min(
        560px,
        calc(100vw - 30px)
    ) !important;

    padding: 28px 28px 26px !important;

    border:
        1px solid
        rgba(255, 211, 35, 0.42) !important;

    border-radius: 22px !important;

    background:
        linear-gradient(
            145deg,
            #111522,
            #0d101a
        ) !important;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.72),
        0 0 34px rgba(255, 210, 20, 0.08) !important;
}

.popup-pilihan-admin
.swal2-icon {
    width: 76px !important;
    height: 76px !important;

    margin:
        10px auto 18px !important;

    font-size: 15px !important;
}

.popup-pilihan-admin
.swal2-title {
    margin:
        0 !important;

    padding:
        0 !important;

    color:
        #ffd43b !important;

    font-size:
        29px !important;

    font-weight:
        900 !important;

    line-height:
        1.2 !important;

    letter-spacing:
        0 !important;
}

.popup-pilihan-admin
.swal2-html-container {
    margin:
        14px 0 0 !important;

    padding:
        0 !important;
}

.deskripsi-pilihan-area {
    color:
        #b8bdc9;

    font-size:
        15px;

    line-height:
        1.5;

    text-align:
        center;
}


/* Wadah tombol */
.aksi-pilihan-admin {
    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        12px !important;

    width:
        100% !important;

    margin:
        26px 0 0 !important;

    padding:
        0 !important;
}


/* Public dan Private memakai ukuran identik */
.popup-pilihan-admin
.tombol-area-admin {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        9px !important;

    width:
        100% !important;

    min-width:
        0 !important;

    height:
        58px !important;

    min-height:
        58px !important;

    margin:
        0 !important;

    padding:
        0 14px !important;

    border:
        0 !important;

    border-radius:
        13px !important;

    font-family:
        inherit !important;

    font-size:
        13px !important;

    font-weight:
        900 !important;

    line-height:
        1 !important;

    letter-spacing:
        0.7px !important;

    white-space:
        nowrap !important;

    cursor:
        pointer !important;

    box-sizing:
        border-box !important;

    box-shadow:
        0 10px 22px
        rgba(0, 0, 0, 0.27) !important;

    transition:
        transform 0.18s ease,
        filter 0.18s ease !important;
}

.popup-pilihan-admin
.tombol-area-admin:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.06);
}


/* Public selalu di kiri */
.popup-pilihan-admin
.tombol-area-public {
    grid-column:
        1 !important;

    grid-row:
        1 !important;

    background:
        linear-gradient(
            135deg,
            #ffd21a,
            #eab900
        ) !important;

    color:
        #15171c !important;
}


/* Private selalu di kanan */
.popup-pilihan-admin
.tombol-area-private {
    grid-column:
        2 !important;

    grid-row:
        1 !important;

    background:
        linear-gradient(
            135deg,
            #8243fa,
            #6330d7
        ) !important;

    color:
        #ffffff !important;
}


/* Tombol TUTUP berada di bawah */
.popup-pilihan-admin
.tombol-area-batal {
    grid-column:
        1 / -1 !important;

    grid-row:
        2 !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        100% !important;

    height:
        42px !important;

    margin:
        0 !important;

    padding:
        0 15px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.14) !important;

    border-radius:
        11px !important;

    background:
        rgba(255, 255, 255, 0.055) !important;

    color:
        #c6cad4 !important;

    font-family:
        inherit !important;

    font-size:
        12px !important;

    font-weight:
        800 !important;

    letter-spacing:
        0.8px !important;

    cursor:
        pointer !important;
}

.popup-pilihan-admin
.tombol-area-batal:hover {
    border-color:
        rgba(255, 92, 92, 0.55) !important;

    background:
        rgba(255, 78, 78, 0.12) !important;

    color:
        #ff8b8b !important;
}


/* Tanda X kanan atas */
.popup-pilihan-admin
.tombol-close-area {
    color:
        #949aa9 !important;

    font-size:
        30px !important;

    transition:
        color 0.18s ease,
        transform 0.18s ease !important;
}

.popup-pilihan-admin
.tombol-close-area:hover {
    color:
        #ff7070 !important;

    transform:
        rotate(90deg);
}

/* ==========================================================
   FINAL HEADER ACTION ADMIN
   ========================================================== */

.content-header-action {
    display:
        flex !important;

    align-items:
        center !important;

    gap:
        14px !important;

    width:
        100% !important;

    min-height:
        76px;

    padding:
        0 !important;
}

.content-header-action > h1 {
    flex:
        1 1 auto;

    min-width:
        180px;

    margin:
        0 auto 0 0 !important;
}

.tempototo-admin-tools {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    flex:
        0 0 auto;

    gap:
        10px !important;

    margin:
        0 2px 0 18px !important;
}

.content-header-action
.btn-admin-mini {
    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        7px !important;

    flex:
        0 0 94px !important;

    width:
        94px !important;

    min-width:
        94px !important;

    max-width:
        94px !important;

    height:
        48px !important;

    min-height:
        48px !important;

    margin:
        0 !important;

    padding:
        0 12px !important;

    border-radius:
        12px !important;

    box-sizing:
        border-box !important;

    font-size:
        11px !important;

    font-weight:
        900 !important;

    letter-spacing:
        0.7px !important;

    white-space:
        nowrap !important;
}

.content-header-action
.btn-green-frasa {
    flex:
        0 0 174px !important;

    width:
        174px !important;

    min-width:
        174px !important;

    max-width:
        174px !important;

    height:
        48px !important;

    min-height:
        48px !important;

    margin:
        0 0 0 2px !important;

    padding:
        0 15px !important;

    border-radius:
        12px !important;

    box-sizing:
        border-box !important;

    white-space:
        nowrap !important;
}


/* Ruang tegas antara AREA dan TAMBAH KATA */
.tempototo-admin-tools
+ .btn-green-frasa {
    margin-left:
        2px !important;
}


/* Layar sedang */
@media (max-width: 1050px) {
    .content-header-action {
        flex-wrap:
            wrap !important;

        row-gap:
            12px !important;
    }

    .content-header-action > h1 {
        flex:
            1 1 100%;

        width:
            100%;
    }

    .tempototo-admin-tools {
        margin-left:
            0 !important;
    }
}


/* Mobile */
@media (max-width: 620px) {
    .popup-pilihan-admin {
        padding:
            24px 18px 22px !important;
    }

    .aksi-pilihan-admin {
        grid-template-columns:
            1fr !important;
    }

    .popup-pilihan-admin
    .tombol-area-public {
        grid-column:
            1 !important;

        grid-row:
            1 !important;
    }

    .popup-pilihan-admin
    .tombol-area-private {
        grid-column:
            1 !important;

        grid-row:
            2 !important;
    }

    .popup-pilihan-admin
    .tombol-area-batal {
        grid-column:
            1 !important;

        grid-row:
            3 !important;
    }

    .content-header-action
    .btn-admin-mini {
        flex-basis:
            82px !important;

        width:
            82px !important;

        min-width:
            82px !important;
    }

    .content-header-action
    .btn-green-frasa {
        flex:
            1 1 150px !important;

        width:
            auto !important;

        min-width:
            150px !important;

        max-width:
            none !important;
    }
}

/* ==========================================================
   TOMBOL KELOLA AKSES ADMIN
   ========================================================== */

.btn-admin-access {
    background:
        linear-gradient(
            135deg,
            #168bc4,
            #0d6598
        ) !important;

    border-color:
        rgba(65, 186, 242, 0.58) !important;

    color:
        #ffffff !important;
}

.btn-admin-access:hover {
    box-shadow:
        0 8px 20px
        rgba(27, 157, 218, 0.24) !important;
}


/* ==========================================================
   PANEL KELOLA AKSES
   ========================================================== */

.tempototo-access-terbuka {
    overflow:
        hidden !important;
}

.tempototo-access-overlay {
    position:
        fixed;

    inset:
        0;

    z-index:
        100100;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        22px;

    background:
        rgba(0, 0, 0, 0.86);

    backdrop-filter:
        blur(9px);
}

.tempototo-access-panel {
    display:
        flex;

    flex-direction:
        column;

    width:
        min(1250px, 100%);

    height:
        min(830px, 95vh);

    overflow:
        hidden;

    border:
        1px solid
        rgba(65, 186, 242, 0.32);

    border-radius:
        23px;

    background:
        linear-gradient(
            145deg,
            #10141e,
            #080b11
        );

    color:
        #f5f6fa;

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.76),
        0 0 40px
        rgba(34, 159, 217, 0.07);
}

.tempototo-access-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        23px 27px 19px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.tempototo-access-label {
    color:
        #49bff4;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        2px;
}

.tempototo-access-header h2 {
    margin:
        5px 0 5px;

    color:
        #ffffff;

    font-size:
        clamp(23px, 3vw, 33px);

    line-height:
        1.15;
}

.tempototo-access-header p {
    max-width:
        720px;

    margin:
        0;

    color:
        #9198a8;

    font-size:
        12px;

    line-height:
        1.55;
}

.tempototo-access-close {
    width:
        43px;

    height:
        43px;

    flex:
        0 0 43px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius:
        12px;

    background:
        rgba(255, 255, 255, 0.05);

    color:
        #ffffff;

    font-size:
        27px;

    line-height:
        1;

    cursor:
        pointer;
}

.tempototo-access-close:hover {
    border-color:
        rgba(255, 79, 79, 0.62);

    background:
        rgba(255, 79, 79, 0.13);
}

.tempototo-access-stat-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, minmax(120px, 1fr));

    gap:
        11px;

    padding:
        17px 27px 0;
}

.access-stat-card {
    padding:
        14px 16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    border-radius:
        14px;

    background:
        rgba(255, 255, 255, 0.032);
}

.access-stat-card span {
    display:
        block;

    margin-bottom:
        5px;

    color:
        #8f96a7;

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.75px;
}

.access-stat-card strong {
    color:
        #49bff4;

    font-size:
        24px;
}

.tempototo-access-controls {
    display:
        grid;

    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(150px, 0.65fr)
        minmax(150px, 0.65fr);

    gap:
        10px;

    padding:
        17px 27px;
}

.tempototo-access-controls input,
.tempototo-access-controls select {
    width:
        100%;

    min-height:
        43px;

    padding:
        9px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius:
        11px;

    outline:
        none;

    background:
        #151a24;

    color:
        #f4f6fa;

    font-size:
        12px;
}

.tempototo-access-controls input:focus,
.tempototo-access-controls select:focus {
    border-color:
        rgba(73, 191, 244, 0.72);

    box-shadow:
        0 0 0 3px
        rgba(73, 191, 244, 0.08);
}

.tempototo-access-toolbar {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        14px;

    padding:
        0 27px 15px;
}

.tempototo-access-status-text {
    color:
        #9299a9;

    font-size:
        12px;
}

.tempototo-access-toolbar-actions {
    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        8px;
}

.tempototo-access-toolbar-actions button {
    min-height:
        39px;

    padding:
        8px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius:
        10px;

    background:
        #1a202c;

    color:
        #f5f6fa;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        0.7px;

    cursor:
        pointer;
}

.tempototo-access-toolbar-actions button:hover {
    border-color:
        rgba(73, 191, 244, 0.62);

    color:
        #49bff4;
}

.tempototo-access-toolbar-actions
.access-add-button {
    border-color:
        rgba(46, 204, 113, 0.62);

    background:
        linear-gradient(
            135deg,
            #2ecc71,
            #1da858
        );

    color:
        #ffffff;
}

.tempototo-access-table-wrap {
    flex:
        1;

    min-height:
        0;

    overflow:
        auto;

    margin:
        0 27px 23px;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    border-radius:
        15px;

    background:
        rgba(0, 0, 0, 0.19);
}

.tempototo-access-table {
    width:
        100%;

    min-width:
        930px;

    border-collapse:
        collapse;
}

.tempototo-access-table thead {
    position:
        sticky;

    top:
        0;

    z-index:
        2;

    background:
        #171c27;
}

.tempototo-access-table th {
    padding:
        13px 14px;

    border-bottom:
        1px solid
        rgba(73, 191, 244, 0.19);

    color:
        #c7ccd6;

    font-size:
        10px;

    font-weight:
        900;

    text-align:
        left;

    text-transform:
        uppercase;

    letter-spacing:
        0.75px;
}

.tempototo-access-table td {
    padding:
        13px 14px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.05);

    color:
        #d7dae1;

    font-size:
        12px;

    vertical-align:
        middle;
}

.tempototo-access-table
tbody tr:hover {
    background:
        rgba(73, 191, 244, 0.035);
}

.akses-email {
    display:
        inline-block;

    color:
        #ffffff;

    font-weight:
        750;
}

.akses-anda-mini {
    display:
        inline-flex;

    margin-left:
        7px;

    padding:
        3px 6px;

    border-radius:
        999px;

    background:
        rgba(255, 211, 32, 0.14);

    color:
        #ffd320;

    font-size:
        8px;

    font-weight:
        900;

    text-transform:
        uppercase;
}

.akses-uid {
    max-width:
        310px;

    overflow:
        hidden;

    color:
        #858d9d;

    font-family:
        monospace;

    font-size:
        10px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.akses-copy-uid {
    margin-top:
        5px;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        #49bff4;

    font-size:
        9px;

    font-weight:
        800;

    cursor:
        pointer;
}

.akses-badge {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        5px 8px;

    border-radius:
        999px;

    font-size:
        9px;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        0.65px;
}

.akses-role-admin {
    background:
        rgba(255, 211, 32, 0.14);

    color:
        #ffd320;
}

.akses-role-private {
    background:
        rgba(132, 72, 255, 0.16);

    color:
        #b796ff;
}

.akses-role-public {
    background:
        rgba(46, 204, 113, 0.15);

    color:
        #5dde99;
}

.akses-status-aktif {
    background:
        rgba(46, 204, 113, 0.15);

    color:
        #5dde99;
}

.akses-status-nonaktif {
    background:
        rgba(231, 76, 60, 0.15);

    color:
        #ff8175;
}

.akses-actions {
    display:
        flex;

    align-items:
        center;

    gap:
        7px;
}

.akses-btn {
    min-height:
        33px;

    padding:
        6px 10px;

    border-radius:
        8px;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        0.55px;

    cursor:
        pointer;
}

.akses-btn-edit {
    border:
        1px solid
        rgba(115, 85, 232, 0.56);

    background:
        rgba(115, 85, 232, 0.14);

    color:
        #bcaaff;
}

.akses-btn-cabut {
    border:
        1px solid
        rgba(231, 76, 60, 0.55);

    background:
        rgba(231, 76, 60, 0.12);

    color:
        #ff887d;
}

.akses-akun-sendiri {
    color:
        #ffd320;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        0.7px;
}

.tempototo-access-kosong {
    padding:
        48px 20px !important;

    color:
        #767f90 !important;

    text-align:
        center;
}

.tempototo-access-kosong.access-error {
    color:
        #ff7777 !important;
}


/* ==========================================================
   FORM MODAL AKSES
   ========================================================== */

.akses-modal-form {
    display:
        flex;

    flex-direction:
        column;

    gap:
        14px;

    margin-top:
        17px;

    text-align:
        left;
}

.akses-modal-form label {
    display:
        flex;

    flex-direction:
        column;

    gap:
        6px;
}

.akses-modal-form label > span {
    color:
        #aab0bd;

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.65px;
}

.akses-modal-form input,
.akses-modal-form select {
    width:
        100%;

    min-height:
        43px;

    padding:
        9px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius:
        10px;

    outline:
        none;

    background:
        #171b25;

    color:
        #ffffff;

    box-sizing:
        border-box;
}

.akses-modal-form
.akses-check-row {
    flex-direction:
        row;

    align-items:
        center;

    gap:
        9px;
}

.akses-modal-form
.akses-check-row input {
    width:
        18px;

    min-height:
        18px;

    height:
        18px;
}

.akses-modal-form
.akses-check-row span {
    text-transform:
        none;

    letter-spacing:
        0;

    font-size:
        12px;
}

.akses-modal-info {
    padding:
        11px 12px;

    border:
        1px solid
        rgba(73, 191, 244, 0.19);

    border-radius:
        10px;

    background:
        rgba(73, 191, 244, 0.07);

    color:
        #9dcce2;

    font-size:
        11px;

    line-height:
        1.5;
}

.akses-edit-identitas {
    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;

    padding:
        12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.035);
}

.akses-edit-identitas strong {
    color:
        #ffffff;

    font-size:
        13px;
}

.akses-edit-identitas small {
    color:
        #70798b;

    font-family:
        monospace;

    font-size:
        9px;
}


/* ==========================================================
   RESPONSIVE PANEL AKSES
   ========================================================== */

@media (max-width: 900px) {
    .tempototo-access-stat-grid {
        grid-template-columns:
            repeat(2, minmax(120px, 1fr));
    }

    .tempototo-access-controls {
        grid-template-columns:
            1fr 1fr;
    }

    .tempototo-access-controls
    input:first-child {
        grid-column:
            1 / -1;
    }
}

@media (max-width: 620px) {
    .tempototo-access-overlay {
        padding:
            0;
    }

    .tempototo-access-panel {
        height:
            100vh;

        border-radius:
            0;
    }

    .tempototo-access-header,
    .tempototo-access-stat-grid,
    .tempototo-access-controls,
    .tempototo-access-toolbar {
        padding-left:
            15px;

        padding-right:
            15px;
    }

    .tempototo-access-controls {
        grid-template-columns:
            1fr;
    }

    .tempototo-access-controls
    input:first-child {
        grid-column:
            auto;
    }

    .tempototo-access-toolbar {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .tempototo-access-toolbar-actions {
        justify-content:
            flex-start;
    }

    .tempototo-access-table-wrap {
        margin-left:
            15px;

        margin-right:
            15px;
    }
}

.tempototo-admin-tools {
    gap:
        8px !important;

    margin-left:
        14px !important;
}

.content-header-action
.btn-admin-mini {
    flex-basis:
        86px !important;

    width:
        86px !important;

    min-width:
        86px !important;

    max-width:
        86px !important;

    padding:
        0 9px !important;
}

@media (max-width: 1120px) {
    .content-header-action {
        flex-wrap:
            wrap !important;
    }

    .content-header-action > h1 {
        flex:
            1 1 100%;

        width:
            100%;
    }

    .tempototo-admin-tools {
        margin-left:
            0 !important;
    }
}

/* ==========================================================
   FINAL SCROLLBAR TEMPOTOTO
   ========================================================== */

/* Audit Log */
.tempototo-audit-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 211, 0, 0.72)
        #0d1119;
}

.tempototo-audit-table-wrap::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.tempototo-audit-table-wrap::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #0d1119;
}

.tempototo-audit-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #0d1119;
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #967600,
            #e6b900
        );
}

.tempototo-audit-table-wrap::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            90deg,
            #c09b00,
            #ffd21c
        );
}

.tempototo-audit-table-wrap::-webkit-scrollbar-corner {
    background: #0d1119;
}

.tempototo-audit-table-wrap::-webkit-scrollbar-button {
    display: none;
}


/* Panel Kelola Akses */
.tempototo-access-table-wrap {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(73, 191, 244, 0.7)
        #0d1119;
}

.tempototo-access-table-wrap::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

.tempototo-access-table-wrap::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #0d1119;
}

.tempototo-access-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #0d1119;
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #12668f,
            #43b9ed
        );
}

.tempototo-access-table-wrap::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            90deg,
            #1988bd,
            #60ccfb
        );
}

.tempototo-access-table-wrap::-webkit-scrollbar-button {
    display: none;
}


/*
 * Pada layar desktop lebar, tabel Audit dibuat
 * mengikuti lebar panel sehingga scrollbar
 * horizontal tidak muncul tanpa kebutuhan.
 */
@media (min-width: 1180px) {
    .tempototo-audit-table {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed;
    }

    .tempototo-audit-table th:nth-child(1),
    .tempototo-audit-table td:nth-child(1) {
        width: 145px;
    }

    .tempototo-audit-table th:nth-child(2),
    .tempototo-audit-table td:nth-child(2) {
        width: 190px;
    }

    .tempototo-audit-table th:nth-child(3),
    .tempototo-audit-table td:nth-child(3) {
        width: 75px;
    }

    .tempototo-audit-table th:nth-child(4),
    .tempototo-audit-table td:nth-child(4) {
        width: 80px;
    }

    .tempototo-audit-table th:nth-child(5),
    .tempototo-audit-table td:nth-child(5) {
        width: 165px;
    }

    .tempototo-audit-table th:nth-child(6),
    .tempototo-audit-table td:nth-child(6) {
        width: 135px;
    }

    .tempototo-audit-table td {
        overflow-wrap: anywhere;
    }
}


/* ==========================================================
   HILANGKAN SCROLLBAR INPUT TAMBAH KATEGORI
   ========================================================== */

.swal2-popup .swal2-input {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;

    resize: none !important;

    scrollbar-width: none !important;

    line-height: 1.3 !important;
}

.swal2-popup .swal2-input::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/*
 * Pengaman jika input kategori tanpa sengaja
 * menggunakan type number.
 */
.swal2-popup input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.swal2-popup input[type="number"]::-webkit-inner-spin-button,
.swal2-popup input[type="number"]::-webkit-outer-spin-button {
    margin: 0;

    appearance: none;
    -webkit-appearance: none;
}

/* ==========================================================
   TEXTAREA TAMBAH DAN EDIT KATEGORI
   ========================================================== */

.modal-kategori #modal-input {
    display: none !important;
}

.modal-kategori #modal-textarea {
    display: block !important;

    width: 100% !important;
    min-height: 112px !important;
    max-height: 220px !important;

    margin: 24px 0 0 !important;
    padding: 17px 19px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    resize: vertical !important;

    border:
        1px solid
        rgba(255, 215, 0, 0.85) !important;

    border-radius:
        16px !important;

    outline:
        none !important;

    background:
        #171a24 !important;

    color:
        #ffffff !important;

    font-family:
        inherit !important;

    font-size:
        15px !important;

    line-height:
        1.65 !important;

    white-space:
        pre-wrap !important;

    overflow-wrap:
        anywhere !important;

    box-sizing:
        border-box !important;

    caret-color:
        #ffd51c;

    /*
     * Firefox
     */
    scrollbar-width:
        thin;

    scrollbar-color:
        #d8aa00
        transparent;
}

.modal-kategori #modal-textarea:focus {
    border-color:
        #ffd51c !important;

    box-shadow:
        0 0 0 3px
            rgba(255, 213, 28, 0.1),
        0 0 24px
            rgba(255, 213, 28, 0.12) !important;
}


/* Chrome, Edge, dan Safari */
.modal-kategori
#modal-textarea::-webkit-scrollbar {
    width:
        8px;

    height:
        8px;
}

.modal-kategori
#modal-textarea::-webkit-scrollbar-track {
    margin:
        10px 0;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.035);
}

.modal-kategori
#modal-textarea::-webkit-scrollbar-thumb {
    border:
        2px solid
        #171a24;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #ffd21a,
            #a67f00
        );
}

.modal-kategori
#modal-textarea::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #ffe15c,
            #d1a400
        );
}

/*
 * Menghilangkan tombol panah putih
 * pada ujung scrollbar.
 */
.modal-kategori
#modal-textarea::-webkit-scrollbar-button {
    display:
        none !important;

    width:
        0 !important;

    height:
        0 !important;
}

.modal-kategori
#modal-textarea::-webkit-scrollbar-corner {
    background:
        transparent;
}

/* ==========================================================
   FINAL MODAL KATEGORI LEBIH KOMPAK
   ========================================================== */

#custom-modal.modal-kategori
.modal-content {
    width:
        min(
            820px,
            calc(100vw - 32px)
        ) !important;

    min-height:
        0 !important;

    padding:
        32px 38px 30px !important;
}

#custom-modal.modal-kategori
#modal-title {
    margin:
        0 0 16px !important;

    padding:
        0 !important;

    line-height:
        1.2 !important;
}

#custom-modal.modal-kategori
#modal-desc {
    margin:
        0 0 12px !important;

    padding:
        0 !important;

    line-height:
        1.5 !important;
}

/*
 * Input biasa tidak digunakan
 * dalam modal kategori.
 */
#custom-modal.modal-kategori
#modal-input {
    display:
        none !important;

    margin:
        0 !important;
}

/*
 * Tetap textarea agar dapat berisi
 * beberapa baris seperti paragraf.
 */
#custom-modal.modal-kategori
#modal-textarea {
    display:
        block !important;

    width:
        100% !important;

    min-height:
        64px !important;

    max-height:
        180px !important;

    margin:
        0 !important;

    padding:
        14px 18px !important;

    overflow-x:
        hidden !important;

    overflow-y:
        auto !important;

    resize:
        vertical !important;

    box-sizing:
        border-box !important;

    font-family:
        inherit !important;

    font-size:
        15px !important;

    line-height:
        1.55 !important;

    white-space:
        pre-wrap !important;

    overflow-wrap:
        anywhere !important;
}

/*
 * Hilangkan seluruh ruang penghitung
 * karena kategori tidak memakainya.
 */
#custom-modal.modal-kategori
#modal-counter {
    display:
        none !important;

    width:
        0 !important;

    height:
        0 !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden !important;
}

#custom-modal.modal-kategori
.modal-buttons {
    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    width:
        100% !important;

    margin:
        16px 0 0 !important;

    padding:
        0 !important;
}

#custom-modal.modal-kategori
.modal-buttons button {
    width:
        100% !important;

    min-height:
        56px !important;

    margin:
        0 !important;
}

/* Scrollbar tipis kategori */
#custom-modal.modal-kategori
#modal-textarea {
    scrollbar-width:
        thin;

    scrollbar-color:
        #d8aa00
        transparent;
}

#custom-modal.modal-kategori
#modal-textarea::-webkit-scrollbar {
    width:
        7px;
}

#custom-modal.modal-kategori
#modal-textarea::-webkit-scrollbar-track {
    margin:
        8px 0;

    background:
        transparent;
}

#custom-modal.modal-kategori
#modal-textarea::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #ffd21a,
            #a77f00
        );
}

#custom-modal.modal-kategori
#modal-textarea::-webkit-scrollbar-button {
    display:
        none !important;

    width:
        0 !important;

    height:
        0 !important;
}

@media (max-width: 620px) {
    #custom-modal.modal-kategori
    .modal-content {
        padding:
            27px 20px 23px !important;
    }

    #custom-modal.modal-kategori
    .modal-buttons {
        grid-template-columns:
            1fr !important;
    }
}

/* ==========================================================
   BACKUP DATA ADMIN
   ========================================================== */

.btn-admin-backup {
    border-color:
        rgba(255, 143, 45, 0.58) !important;

    background:
        linear-gradient(
            135deg,
            #e57b21,
            #a84e0d
        ) !important;

    color:
        #ffffff !important;
}

.btn-admin-backup:hover {
    box-shadow:
        0 8px 20px
        rgba(229, 123, 33, 0.25) !important;
}

.popup-backup-admin {
    width:
        min(
            700px,
            calc(100vw - 28px)
        ) !important;

    padding:
        29px 27px 25px !important;

    border:
        1px solid
        rgba(229, 123, 33, 0.38) !important;

    border-radius:
        21px !important;
}

.popup-backup-admin
.swal2-html-container {
    margin:
        14px 0 0 !important;

    padding:
        0 !important;

    overflow:
        visible !important;
}

.backup-admin-info {
    margin-bottom:
        18px;

    color:
        #9ba2b0;

    font-size:
        13px;

    line-height:
        1.55;
}

.backup-admin-grid {
    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px;
}

.backup-admin-card {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    min-height:
        105px;

    padding:
        15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius:
        13px;

    background:
        rgba(255, 255, 255, 0.035);

    color:
        #ffffff;

    text-align:
        left;

    cursor:
        pointer;
}

.backup-admin-card:hover {
    border-color:
        rgba(229, 123, 33, 0.65);

    background:
        rgba(229, 123, 33, 0.08);

    transform:
        translateY(-1px);
}

.backup-admin-card > span {
    margin-bottom:
        7px;

    font-size:
        19px;
}

.backup-admin-card strong {
    font-size:
        13px;

    font-weight:
        900;
}

.backup-admin-card small {
    margin-top:
        5px;

    color:
        #8f97a7;

    font-size:
        10px;

    line-height:
        1.4;
}

.backup-admin-card.backup-utama {
    border-color:
        rgba(46, 204, 113, 0.5);

    background:
        rgba(46, 204, 113, 0.06);
}

.backup-admin-card:disabled {
    opacity:
        0.45;

    cursor:
        wait;

    transform:
        none;
}

.backup-admin-status {
    min-height:
        40px;

    margin-top:
        15px;

    padding:
        10px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius:
        10px;

    background:
        rgba(0, 0, 0, 0.18);

    color:
        #a3aab8;

    font-size:
        11px;

    text-align:
        left;
}

@media (max-width: 650px) {
    .backup-admin-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================
   HEADER ADMIN DUA BARIS
   ========================================================== */

.content-header-action.tempototo-admin-header-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: 0 !important;

    gap: 0 !important;
    padding: 0 !important;
}


/* ==========================================================
   BARIS PERTAMA: MENU ADMIN
   ========================================================== */

.tempototo-admin-header-layout
.tempototo-admin-tools {
    order: 1;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    width: 100% !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 0 15px !important;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.tempototo-admin-header-layout
.tempototo-admin-tools
.btn-admin-mini {
    flex: 0 0 106px !important;

    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;

    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border-radius: 12px !important;

    box-sizing: border-box !important;

    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.7px !important;

    white-space: nowrap !important;
}


/* ==========================================================
   BARIS KEDUA: JUDUL DAN TAMBAH KATA
   ========================================================== */

.tempototo-title-action-row {
    order: 2;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;

    gap: 20px !important;

    margin: 0 !important;
    padding: 18px 0 15px !important;

    box-sizing: border-box !important;
}

.tempototo-title-action-row > h1 {
    flex: 1 1 auto !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size:
        clamp(
            24px,
            2.5vw,
            34px
        ) !important;

    line-height: 1.25 !important;

    overflow-wrap: anywhere;
}

.tempototo-title-action-row
.btn-green-frasa {
    flex: 0 0 218px !important;

    width: 218px !important;
    min-width: 218px !important;
    max-width: 218px !important;

    height: 52px !important;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border-radius: 13px !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 800px) {
    .tempototo-admin-header-layout
    .tempototo-admin-tools
    .btn-admin-mini {
        flex: 1 1 90px !important;

        width: auto !important;
        min-width: 82px !important;
        max-width: none !important;
    }

    .tempototo-title-action-row {
        align-items: stretch !important;
        flex-direction: column !important;

        gap: 13px !important;
    }

    .tempototo-title-action-row
    .btn-green-frasa {
        flex: 0 0 auto !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .tempototo-admin-header-layout
    .tempototo-admin-tools {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .tempototo-admin-header-layout
    .tempototo-admin-tools
    .btn-admin-mini {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* ==========================================================
   FINAL: TOOLBAR ADMIN DI ATAS, JUDUL DI BAWAH
   ========================================================== */

/*
 * Baris paling atas:
 * LOG, AKUN, DATA, AREA
 */
.tempototo-admin-toolbar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;

    margin: 0 0 14px !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

.tempototo-admin-toolbar-row
.tempototo-admin-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    width: 100% !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-bottom: 0 !important;
}

.tempototo-admin-toolbar-row
.btn-admin-mini {
    flex: 0 0 106px !important;

    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;

    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    box-sizing: border-box !important;

    border-radius: 12px !important;

    font-size: 11px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
}


/*
 * Baris kedua kembali seperti tampilan awal:
 * Judul di kiri dan Tambah Kata di kanan.
 */
.content-header-action {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    min-height: 0 !important;

    gap: 24px !important;

    margin: 0 !important;
    padding: 0 0 16px !important;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12) !important;

    box-sizing: border-box !important;
}

.content-header-action > h1 {
    flex: 1 1 auto !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size:
        clamp(
            24px,
            2.5vw,
            34px
        ) !important;

    line-height: 1.25 !important;

    overflow-wrap: anywhere;
}

.content-header-action
> .btn-green-frasa {
    flex: 0 0 218px !important;

    width: 218px !important;
    min-width: 218px !important;
    max-width: 218px !important;

    height: 52px !important;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    box-sizing: border-box !important;

    border-radius: 13px !important;

    white-space: nowrap !important;
}


/*
 * Struktur lama tidak lagi dipakai.
 */
.tempototo-title-action-row {
    display: contents !important;
}


/* Tablet dan ponsel */
@media (max-width: 720px) {
    .tempototo-admin-toolbar-row
    .tempototo-admin-tools {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .tempototo-admin-toolbar-row
    .btn-admin-mini {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .content-header-action {
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 13px !important;
    }

    .content-header-action
    > .btn-green-frasa {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        flex-basis: auto !important;
    }
}

/* ==========================================================
   RESTORE BACKUP AMAN
   ========================================================== */

.restore-admin-section {
    width:
        100%;

    margin:
        18px 0 0;

    padding:
        18px 0 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);

    text-align:
        left;
}

.restore-admin-heading {
    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        15px;
}

.restore-admin-heading span {
    display:
        block;

    margin-bottom:
        3px;

    color:
        #ff8762;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.5px;
}

.restore-admin-heading h3 {
    margin:
        0;

    color:
        #ffffff;

    font-size:
        18px;
}

.restore-admin-heading small {
    color:
        #707888;

    font-size:
        9px;
}

.restore-admin-description {
    margin:
        8px 0 13px;

    color:
        #9299a8;

    font-size:
        11px;

    line-height:
        1.5;
}

.restore-admin-grid {
    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px;
}

.restore-admin-card {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    min-height:
        72px;

    padding:
        13px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius:
        12px;

    background:
        rgba(255, 255, 255, 0.035);

    color:
        #ffffff;

    text-align:
        left;

    cursor:
        pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.restore-admin-card:hover {
    transform:
        translateY(-1px);
}

.restore-admin-card > span {
    flex:
        0 0 auto;

    font-size:
        21px;
}

.restore-admin-card div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;
}

.restore-admin-card strong {
    color:
        #ffffff;

    font-size:
        12px;

    font-weight:
        900;
}

.restore-admin-card small {
    color:
        #868e9e;

    font-size:
        9px;

    line-height:
        1.35;
}

.restore-admin-card.restore-public:hover {
    border-color:
        rgba(255, 210, 20, 0.65);

    background:
        rgba(255, 210, 20, 0.07);
}

.restore-admin-card.restore-private:hover {
    border-color:
        rgba(132, 72, 255, 0.67);

    background:
        rgba(132, 72, 255, 0.09);
}


/* ==========================================================
   PREVIEW KONFIRMASI RESTORE
   ========================================================== */

.restore-preview {
    margin-top:
        8px;

    text-align:
        left;
}

.restore-warning {
    margin-bottom:
        14px;

    padding:
        11px 12px;

    border:
        1px solid
        rgba(231, 76, 60, 0.35);

    border-radius:
        10px;

    background:
        rgba(231, 76, 60, 0.09);

    color:
        #ff9a91;

    font-size:
        11px;

    line-height:
        1.5;
}

.restore-preview-grid {
    display:
        grid;

    grid-template-columns:
        120px minmax(0, 1fr);

    gap:
        8px 11px;

    padding:
        13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius:
        11px;

    background:
        rgba(0, 0, 0, 0.17);
}

.restore-preview-grid span {
    color:
        #7e8696;

    font-size:
        10px;
}

.restore-preview-grid strong {
    min-width:
        0;

    overflow-wrap:
        anywhere;

    color:
        #ffffff;

    font-size:
        10px;

    font-weight:
        750;
}

.restore-confirm-label {
    margin-top:
        14px;

    color:
        #a9afbc;

    font-size:
        11px;

    text-align:
        center;
}

.restore-confirm-label b {
    color:
        #ffd21a;

    letter-spacing:
        0.7px;
}

.restore-success-text {
    color:
        #aab1bf;

    font-size:
        12px;

    line-height:
        1.6;
}

@media (max-width: 620px) {
    .restore-admin-grid {
        grid-template-columns:
            1fr;
    }

    .restore-preview-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================
   POPUP BACKUP + RESTORE AGAR TETAP MUAT DI LAYAR
   ========================================================== */

.popup-backup-admin {
    max-height:
        calc(100vh - 24px) !important;

    overflow:
        hidden !important;
}

.popup-backup-admin
.swal2-html-container {
    max-height:
        calc(100vh - 155px) !important;

    margin:
        14px 0 0 !important;

    padding:
        0 7px 4px 0 !important;

    overflow-x:
        hidden !important;

    overflow-y:
        auto !important;

    scrollbar-width:
        thin;

    scrollbar-color:
        #d9a900
        rgba(255, 255, 255, 0.04);
}

.popup-backup-admin
.swal2-html-container::-webkit-scrollbar {
    width:
        7px;
}

.popup-backup-admin
.swal2-html-container::-webkit-scrollbar-track {
    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.04);
}

.popup-backup-admin
.swal2-html-container::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #ffd21a,
            #9d7600
        );
}

.popup-backup-admin
.swal2-html-container::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #ffe263,
            #c99c00
        );
}

.popup-backup-admin
.swal2-html-container::-webkit-scrollbar-button {
    display:
        none !important;

    width:
        0 !important;

    height:
        0 !important;
}

/* ==========================================================
   BACKUP LENGKAP NETRAL, HIJAU HANYA SAAT HOVER
   ========================================================== */

.backup-admin-card.backup-utama {
    border-color:
        rgba(255, 255, 255, 0.1) !important;

    background:
        rgba(255, 255, 255, 0.035) !important;

    box-shadow:
        none !important;
}

.backup-admin-card.backup-utama:hover {
    border-color:
        rgba(46, 204, 113, 0.65) !important;

    background:
        rgba(46, 204, 113, 0.08) !important;

    box-shadow:
        0 10px 24px
        rgba(46, 204, 113, 0.08) !important;
}

.backup-admin-card.backup-utama:focus,
.backup-admin-card.backup-utama:active {
    border-color:
        rgba(46, 204, 113, 0.8) !important;

    background:
        rgba(46, 204, 113, 0.12) !important;
}

/* ==========================================================
   RETENSI AUDIT LOG AMAN
   ========================================================== */

.btn-cleanup-audit-log {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 42px;

    margin: 0;
    padding: 0 15px;

    border:
        1px solid
        rgba(231, 76, 60, 0.55);

    border-radius:
        10px;

    background:
        rgba(231, 76, 60, 0.1);

    color:
        #ff8277;

    font-family:
        inherit;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        0.45px;

    cursor:
        pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.btn-cleanup-audit-log:hover {
    border-color:
        rgba(231, 76, 60, 0.9);

    background:
        rgba(231, 76, 60, 0.18);

    transform:
        translateY(-1px);
}

.btn-cleanup-audit-log:active {
    transform:
        translateY(0);
}

.cleanup-log-preview {
    margin-top:
        7px;

    text-align:
        left;
}

.cleanup-log-warning {
    margin-bottom:
        14px;

    padding:
        11px 12px;

    border:
        1px solid
        rgba(231, 76, 60, 0.35);

    border-radius:
        10px;

    background:
        rgba(231, 76, 60, 0.09);

    color:
        #ff9b92;

    font-size:
        11px;

    line-height:
        1.55;
}

.cleanup-log-grid {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap:
        9px 18px;

    padding:
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius:
        11px;

    background:
        rgba(0, 0, 0, 0.18);
}

.cleanup-log-grid span {
    color:
        #848c9c;

    font-size:
        10px;
}

.cleanup-log-grid strong {
    color:
        #ffffff;

    font-size:
        11px;

    text-align:
        right;
}

.cleanup-log-confirmation {
    margin-top:
        14px;

    color:
        #aab1bf;

    font-size:
        11px;

    text-align:
        center;
}

.cleanup-log-confirmation b {
    color:
        #ff8277;

    letter-spacing:
        0.7px;
}

.cleanup-log-information {
    color:
        #aab1bf;

    font-size:
        12px;

    line-height:
        1.7;
}

.cleanup-log-information strong {
    color:
        #ffffff;
}

/* ==========================================================
   LUPA PASSWORD
   ========================================================== */

.btn-lupa-password-tempototo {
    display: block;

    width: 100%;

    margin: 12px 0 0;
    padding: 8px 10px;

    border: 0;

    background: transparent;

    color: #c5a900;

    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;

    text-align: center;
    cursor: pointer;
}

.btn-lupa-password-tempototo:hover {
    color: #ffd51c;
    text-decoration: underline;
}


/* ==========================================================
   TOMBOL SESI ADMIN
   ========================================================== */

.btn-admin-sesi {
    border-color:
        rgba(122, 205, 255, 0.58) !important;

    background:
        linear-gradient(
            135deg,
            #317fac,
            #1f567b
        ) !important;

    color: #ffffff !important;
}

.btn-admin-sesi:hover {
    box-shadow:
        0 8px 20px
        rgba(49, 127, 172, 0.28) !important;
}


/* ==========================================================
   PERINGATAN SESI
   ========================================================== */

.session-warning-text {
    color: #aeb5c2;

    font-size: 12px;
    line-height: 1.7;
}

.session-warning-text strong {
    color: #ffd51c;
}


/* ==========================================================
   PANEL SESI ADMIN
   ========================================================== */

.popup-session-admin {
    width:
        min(
            1050px,
            calc(100vw - 28px)
        ) !important;

    max-height:
        calc(100vh - 24px) !important;

    overflow: hidden !important;

    border:
        1px solid
        rgba(68, 170, 225, 0.35) !important;

    border-radius: 20px !important;
}

.popup-session-admin
.swal2-html-container {
    max-height:
        calc(100vh - 150px) !important;

    margin: 14px 0 0 !important;
    padding: 0 6px 4px 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: thin;
    scrollbar-color:
        #278abb
        rgba(255, 255, 255, 0.04);
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar {
    width: 7px;
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, 0.04);

    border-radius: 999px;
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #45b9ec,
            #1e5e83
        );

    border-radius: 999px;
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.session-admin-description {
    margin-bottom: 15px;

    color: #929aaa;

    font-size: 11px;
    line-height: 1.55;

    text-align: left;
}

.session-admin-table {
    display: flex;
    flex-direction: column;

    gap: 9px;

    width: 100%;
}

.session-admin-row {
    display: grid;

    grid-template-columns:
        minmax(190px, 1.5fr)
        80px
        minmax(145px, 1fr)
        minmax(145px, 1fr)
        110px
        72px;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 13px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.035);

    box-sizing: border-box;

    text-align: left;
}

.session-admin-account {
    min-width: 0;
}

.session-admin-account strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #ffffff;

    font-size: 12px;
}

.session-admin-account small {
    display: block;

    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #737c8d;

    font-size: 8px;
}

.session-role-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 65px;

    padding: 6px 8px;

    border:
        1px solid
        rgba(132, 72, 255, 0.35);

    border-radius: 999px;

    background:
        rgba(132, 72, 255, 0.09);

    color: #b99cff;

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;
}

.session-admin-time span {
    display: block;

    margin-bottom: 4px;

    color: #71798a;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.session-admin-time strong {
    display: block;

    color: #d8dce4;

    font-size: 9px;
    line-height: 1.4;
}

.session-status-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 95px;

    padding: 7px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.session-status-badge.aktif {
    border:
        1px solid
        rgba(46, 204, 113, 0.45);

    background:
        rgba(46, 204, 113, 0.09);

    color: #62dc91;
}

.session-status-badge.offline {
    border:
        1px solid
        rgba(149, 157, 172, 0.25);

    background:
        rgba(149, 157, 172, 0.06);

    color: #858e9f;
}

.btn-session-reset {
    min-height: 34px;

    padding: 0 10px;

    border:
        1px solid
        rgba(255, 193, 7, 0.45);

    border-radius: 8px;

    background:
        rgba(255, 193, 7, 0.08);

    color: #ffd35a;

    font-family: inherit;
    font-size: 8px;
    font-weight: 900;

    cursor: pointer;
}

.btn-session-reset:hover {
    border-color:
        rgba(255, 193, 7, 0.85);

    background:
        rgba(255, 193, 7, 0.15);
}

.session-admin-empty {
    padding: 35px 20px;

    border:
        1px dashed
        rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    color: #858d9c;

    font-size: 11px;
    line-height: 1.6;

    text-align: center;
}

@media (max-width: 900px) {
    .session-admin-row {
        grid-template-columns:
            minmax(180px, 1fr)
            80px
            minmax(150px, 1fr);

        gap: 10px;
    }
}

@media (max-width: 620px) {
    .session-admin-row {
        grid-template-columns:
            1fr;

        align-items: stretch;
    }

    .session-role-badge,
    .session-status-badge {
        width: 100%;

        box-sizing: border-box;
    }

    .btn-session-reset {
        width: 100%;
    }
}

/* ==========================================================
   PERBAIKAN PANEL SESI ADMIN V2
   Tulisan lebih besar dan mudah dibaca
   ========================================================== */

.popup-session-admin {
    width:
        min(
            1180px,
            calc(100vw - 24px)
        ) !important;
}

.popup-session-admin
.swal2-title {
    margin-bottom:
        8px !important;

    color:
        #ffd440 !important;

    font-size:
        31px !important;

    line-height:
        1.2 !important;
}

.session-admin-description {
    margin:
        0 0 19px !important;

    color:
        #aeb5c2 !important;

    font-size:
        13px !important;

    line-height:
        1.65 !important;
}

.session-admin-table {
    gap:
        12px !important;
}

.session-admin-row {
    grid-template-columns:
        minmax(215px, 1.55fr)
        95px
        minmax(165px, 1fr)
        minmax(165px, 1fr)
        125px
        115px !important;

    gap:
        16px !important;

    min-height:
        88px !important;

    padding:
        17px 18px !important;

    border-radius:
        13px !important;
}

.session-admin-account strong {
    color:
        #ffffff !important;

    font-size:
        15px !important;

    line-height:
        1.35 !important;
}

.session-admin-account small {
    margin-top:
        7px !important;

    color:
        #8b94a5 !important;

    font-size:
        10px !important;

    line-height:
        1.45 !important;
}

.session-role-badge {
    min-width:
        76px !important;

    padding:
        8px 10px !important;

    font-size:
        10px !important;

    letter-spacing:
        0.5px !important;
}

.session-admin-time span {
    margin-bottom:
        7px !important;

    color:
        #9099aa !important;

    font-size:
        9px !important;

    letter-spacing:
        0.6px !important;
}

.session-admin-time strong {
    color:
        #f0f2f6 !important;

    font-size:
        12px !important;

    line-height:
        1.5 !important;
}

.session-status-badge {
    min-width:
        110px !important;

    padding:
        9px 10px !important;

    font-size:
        9px !important;

    line-height:
        1.3 !important;
}

.btn-session-reset {
    min-width:
        108px !important;

    min-height:
        42px !important;

    padding:
        0 12px !important;

    font-size:
        9px !important;

    letter-spacing:
        0.4px !important;
}

@media (max-width: 980px) {
    .session-admin-row {
        grid-template-columns:
            minmax(200px, 1.5fr)
            90px
            minmax(160px, 1fr) !important;
    }
}

@media (max-width: 650px) {
    .popup-session-admin
    .swal2-title {
        font-size:
            24px !important;
    }

    .session-admin-row {
        grid-template-columns:
            1fr !important;

        gap:
            12px !important;
    }

    .session-admin-account strong {
        font-size:
            14px !important;
    }

    .btn-session-reset {
        width:
            100% !important;
    }
}

/* ==========================================================
   COUNTDOWN SESI
   ========================================================== */

.popup-peringatan-sesi {
    width:
        min(
            500px,
            calc(100vw - 24px)
        ) !important;

    border:
        1px solid
        rgba(255, 196, 0, 0.38) !important;

    border-radius:
        18px !important;
}

.popup-peringatan-sesi
.swal2-title {
    color:
        #ffd440 !important;

    font-size:
        27px !important;
}

.session-warning-text {
    color:
        #b7beca !important;

    font-size:
        13px !important;

    line-height:
        1.6 !important;
}

.session-countdown-box {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        3px;

    margin:
        20px auto 15px;

    padding:
        18px;

    border:
        1px solid
        rgba(255, 211, 28, 0.32);

    border-radius:
        14px;

    background:
        rgba(255, 211, 28, 0.06);
}

.session-countdown-box span {
    color:
        #aab2c0;

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        0.4px;
}

.session-countdown-box strong {
    color:
        #ffd51c;

    font-size:
        54px;

    font-weight:
        900;

    line-height:
        1.05;

    font-variant-numeric:
        tabular-nums;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.session-countdown-box strong.kritis {
    color:
        #ff645b;

    animation:
        tempototoSessionPulse
        0.8s ease-in-out
        infinite;
}

.session-countdown-box small {
    color:
        #8e97a8;

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;
}

.session-warning-text p {
    margin:
        12px 0 0;

    color:
        #919aaa;

    font-size:
        11px;
}

.session-warning-text p b {
    color:
        #ffffff;
}

@keyframes tempototoSessionPulse {
    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.08);
    }
}

/* ==========================================================
   PANEL SESI ADMIN FINAL V3
   ========================================================== */

.popup-session-admin {
    width:
        min(
            1220px,
            calc(100vw - 48px)
        ) !important;

    max-width:
        1220px !important;

    max-height:
        calc(100vh - 36px) !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    border:
        1px solid
        rgba(70, 177, 230, 0.42) !important;

    border-radius:
        22px !important;

    background:
        #0f1420 !important;

    box-shadow:
        0 28px 85px
        rgba(0, 0, 0, 0.62) !important;
}

.popup-session-admin
.swal2-title {
    display:
        none !important;
}

.popup-session-admin
.swal2-html-container {
    width:
        100% !important;

    max-height:
        calc(100vh - 36px) !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow-x:
        hidden !important;

    overflow-y:
        auto !important;

    box-sizing:
        border-box !important;

    scrollbar-width:
        thin;

    scrollbar-color:
        #2d91bf
        rgba(255, 255, 255, 0.04);
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar {
    width:
        7px;
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-track {
    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.04);
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-thumb {
    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #4cc4f1,
            #236789
        );
}

.popup-session-admin
.swal2-html-container::-webkit-scrollbar-button {
    display:
        none !important;
}

.session-admin-close {
    top:
        18px !important;

    right:
        18px !important;

    width:
        48px !important;

    height:
        48px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.14) !important;

    border-radius:
        13px !important;

    background:
        rgba(255, 255, 255, 0.055) !important;

    color:
        #dfe5ed !important;

    font-size:
        34px !important;

    line-height:
        1 !important;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.session-admin-close:hover {
    border-color:
        rgba(255, 102, 102, 0.55) !important;

    background:
        rgba(255, 76, 76, 0.13) !important;

    color:
        #ff8585 !important;

    transform:
        scale(1.04);
}

.session-admin-shell {
    width:
        100%;

    box-sizing:
        border-box;

    text-align:
        left;
}


/* ==========================================================
   HEADER PANEL
   ========================================================== */

.session-admin-hero {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(420px, 0.9fr);

    align-items:
        center;

    gap:
        36px;

    min-height:
        190px;

    padding:
        34px 88px 30px 34px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.085);

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(44, 166, 224, 0.13),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(255, 209, 24, 0.055),
            transparent 52%
        );

    box-sizing:
        border-box;
}

.session-admin-hero-text {
    min-width:
        0;
}

.session-admin-eyebrow {
    display:
        block;

    margin-bottom:
        10px;

    color:
        #52c7f4;

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        2.2px;

    line-height:
        1.4;
}

.session-admin-hero-text h2 {
    margin:
        0;

    color:
        #ffd43b;

    font-size:
        clamp(
            29px,
            3vw,
            40px
        );

    font-weight:
        900;

    letter-spacing:
        0.1px;

    line-height:
        1.18;
}

.session-admin-hero-text p {
    max-width:
        620px;

    margin:
        14px 0 0;

    color:
        #a8b0be;

    font-size:
        14px;

    line-height:
        1.7;
}

.session-admin-summary {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        12px;
}

.session-summary-card {
    min-height:
        74px;

    padding:
        14px 16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius:
        13px;

    background:
        rgba(255, 255, 255, 0.035);

    box-sizing:
        border-box;
}

.session-summary-card span {
    display:
        block;

    margin-bottom:
        6px;

    color:
        #8e97a7;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        0.65px;

    text-transform:
        uppercase;
}

.session-summary-card strong {
    display:
        block;

    color:
        #ffffff;

    font-size:
        25px;

    font-weight:
        900;

    line-height:
        1;
}

.session-summary-card.aktif {
    border-color:
        rgba(46, 204, 113, 0.35);

    background:
        rgba(46, 204, 113, 0.07);
}

.session-summary-card.aktif strong {
    color:
        #62dd93;
}

.session-summary-card.offline strong {
    color:
        #a7afbd;
}

.session-summary-card.admin {
    border-color:
        rgba(145, 87, 255, 0.34);

    background:
        rgba(145, 87, 255, 0.07);
}

.session-summary-card.admin strong {
    color:
        #bba1ff;
}


/* ==========================================================
   ISI DAN DAFTAR AKUN
   ========================================================== */

.session-admin-content {
    padding:
        24px 30px 30px;

    box-sizing:
        border-box;
}

.session-admin-column-header {
    display:
        grid;

    grid-template-columns:
        minmax(250px, 1.65fr)
        100px
        minmax(175px, 1fr)
        minmax(175px, 1fr)
        135px
        130px;

    align-items:
        center;

    gap:
        16px;

    padding:
        0 20px 11px;

    color:
        #7e8797;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        0.7px;

    text-transform:
        uppercase;

    box-sizing:
        border-box;
}

.session-admin-table {
    display:
        flex !important;

    flex-direction:
        column;

    gap:
        12px !important;

    width:
        100%;
}

.session-admin-row {
    display:
        grid !important;

    grid-template-columns:
        minmax(250px, 1.65fr)
        100px
        minmax(175px, 1fr)
        minmax(175px, 1fr)
        135px
        130px !important;

    align-items:
        center !important;

    gap:
        16px !important;

    width:
        100% !important;

    min-height:
        96px !important;

    margin:
        0 !important;

    padding:
        18px 20px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.105) !important;

    border-radius:
        14px !important;

    background:
        rgba(255, 255, 255, 0.035) !important;

    box-sizing:
        border-box !important;

    text-align:
        left !important;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.session-admin-row:hover {
    border-color:
        rgba(74, 177, 226, 0.28) !important;

    background:
        rgba(74, 177, 226, 0.045) !important;

    transform:
        translateY(-1px);
}

.session-admin-account {
    min-width:
        0;
}

.session-admin-account strong {
    display:
        block;

    overflow:
        hidden;

    color:
        #ffffff !important;

    font-size:
        16px !important;

    font-weight:
        900;

    line-height:
        1.35;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.session-admin-account small {
    display:
        block;

    margin-top:
        7px !important;

    overflow:
        hidden;

    color:
        #8b94a4 !important;

    font-size:
        10px !important;

    line-height:
        1.45;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.session-role-badge {
    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        78px !important;

    padding:
        8px 10px !important;

    border:
        1px solid
        rgba(145, 87, 255, 0.43) !important;

    border-radius:
        999px;

    background:
        rgba(145, 87, 255, 0.09) !important;

    color:
        #bca2ff !important;

    font-size:
        10px !important;

    font-weight:
        900;

    letter-spacing:
        0.45px;

    text-transform:
        uppercase;
}

.session-admin-time span {
    display:
        block;

    margin-bottom:
        7px !important;

    color:
        #8e97a7 !important;

    font-size:
        9px !important;

    font-weight:
        900;

    letter-spacing:
        0.65px;
}

.session-admin-time strong {
    display:
        block;

    color:
        #edf0f5 !important;

    font-size:
        13px !important;

    font-weight:
        800;

    line-height:
        1.5;
}

.session-status-badge {
    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    min-width:
        118px !important;

    min-height:
        38px;

    padding:
        8px 10px !important;

    border-radius:
        999px;

    box-sizing:
        border-box;

    font-size:
        9px !important;

    font-weight:
        900;

    letter-spacing:
        0.45px;
}

.session-status-badge.aktif {
    border:
        1px solid
        rgba(46, 204, 113, 0.5) !important;

    background:
        rgba(46, 204, 113, 0.09) !important;

    color:
        #62dc91 !important;
}

.session-status-badge.offline {
    border:
        1px solid
        rgba(149, 157, 172, 0.27) !important;

    background:
        rgba(149, 157, 172, 0.065) !important;

    color:
        #9ca5b5 !important;
}

.btn-session-reset {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100% !important;

    min-width:
        120px !important;

    min-height:
        42px !important;

    padding:
        0 13px !important;

    border:
        1px solid
        rgba(255, 193, 7, 0.55) !important;

    border-radius:
        10px !important;

    background:
        rgba(255, 193, 7, 0.075) !important;

    color:
        #ffd458 !important;

    font-family:
        inherit;

    font-size:
        9px !important;

    font-weight:
        900;

    letter-spacing:
        0.4px;

    cursor:
        pointer;
}

.btn-session-reset:hover {
    border-color:
        rgba(255, 210, 42, 0.9) !important;

    background:
        rgba(255, 193, 7, 0.15) !important;

    color:
        #ffe078 !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1080px) {
    .session-admin-hero {
        grid-template-columns:
            1fr;

        gap:
            24px;

        padding-right:
            76px;
    }

    .session-admin-summary {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .session-admin-column-header {
        display:
            none;
    }

    .session-admin-row {
        grid-template-columns:
            minmax(220px, 1.4fr)
            95px
            minmax(170px, 1fr) !important;

        row-gap:
            17px !important;
    }
}

@media (max-width: 720px) {
    .popup-session-admin {
        width:
            calc(100vw - 18px) !important;

        max-height:
            calc(100vh - 18px) !important;

        border-radius:
            16px !important;
    }

    .session-admin-hero {
        min-height:
            auto;

        padding:
            28px 66px 24px 22px;
    }

    .session-admin-hero-text h2 {
        font-size:
            27px;
    }

    .session-admin-hero-text p {
        font-size:
            12px;
    }

    .session-admin-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .session-admin-content {
        padding:
            18px;
    }

    .session-admin-row {
        grid-template-columns:
            1fr !important;

        gap:
            13px !important;

        min-height:
            0 !important;

        padding:
            17px !important;
    }

    .session-admin-account strong {
        font-size:
            15px !important;
    }

    .session-role-badge,
    .session-status-badge,
    .btn-session-reset {
        width:
            100% !important;
    }
}

/* ==========================================================
   TEMPOTOTO RESPONSIVE SCROLL FIX V1
   Menjaga login, dashboard, popup, dan panel tetap dapat
   digulir ketika layar diperkecil atau browser diperbesar.
   ========================================================== */

html {
    min-width: 320px;
    min-height: 100%;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

/* Halaman login tidak lagi terkunci pada tinggi layar. */
#main-ui.login-container {
    box-sizing: border-box;
    width: 100%;
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    padding: 24px 16px;
    overflow: visible !important;
}

.login-wrapper-center {
    box-sizing: border-box;
    flex: 0 0 auto;
    max-width: 100%;
    margin: auto;
}

#login-box {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
}

#login-box input,
#login-box button {
    box-sizing: border-box;
    max-width: 100%;
}

/*
 * Dashboard mempertahankan layout desktop.
 * Pada layar kecil, pengguna dapat menggulir horizontal
 * dan vertikal tanpa ada menu yang terpotong.
 */
#dashboard-public.aktif-dashboard,
#dashboard-private.aktif-dashboard {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 900px;
    min-height: 100dvh !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.sidebar-menu,
.main-content {
    min-height: 0;
}

/* Semua popup dan panel tetap dapat digulir. */
.modal-overlay,
.security-overlay,
.swal2-container,
.tempototo-audit-overlay,
#ttac-overlay-v3 {
    box-sizing: border-box;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.modal-overlay,
.security-overlay,
.tempototo-audit-overlay,
#ttac-overlay-v3 {
    padding: 16px;
}

.modal-content,
.security-modal,
.swal2-popup,
.tempototo-audit-panel {
    box-sizing: border-box;
    max-height: none !important;
    margin: auto;
}

/* SweetAlert tetap muat pada layar sempit. */
.swal2-container {
    padding: 12px !important;
}

.swal2-popup {
    width: min(32em, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
}

.swal2-title,
.swal2-html-container {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/*
 * Pada layar pendek, login dan popup dimulai dari atas
 * sehingga bagian bawah dapat dicapai dengan scroll.
 */
@media (max-width: 700px), (max-height: 700px) {
    #main-ui.login-container {
        align-items: flex-start !important;
    }

    .login-wrapper-center {
        margin: 16px auto;
    }

    .swal2-container {
        align-items: flex-start !important;
    }

    .swal2-popup {
        margin: auto !important;
    }
}
/* ========================================================================== 
   TEMPOTOTO MEDIA MANAGER V1
   Galeri gambar per kategori, drag and drop, copy, rename, dan usage.
   ========================================================================== */

.tempototo-content-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tempototo-media-open {
    min-height: 42px;
    padding: 11px 20px;
    border: 1px solid rgba(73, 191, 244, 0.45);
    border-radius: 10px;
    background: linear-gradient(135deg, #12668f, #43b9ed);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 133, 184, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tempototo-media-open:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 26px rgba(43, 173, 230, 0.34);
}

.tempototo-media-open:active {
    transform: translateY(0);
}

.tempototo-media-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: auto;
    background: rgba(2, 5, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tempototo-media-panel {
    width: min(1220px, 96vw);
    max-height: 94vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid rgba(255, 215, 0, 0.34);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(50, 155, 210, 0.12), transparent 34%),
        linear-gradient(160deg, rgba(18, 22, 32, 0.99), rgba(7, 10, 16, 0.99));
    color: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 36px rgba(255, 215, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.65) #0d1119;
}

.tempototo-media-panel::-webkit-scrollbar {
    width: 9px;
}

.tempototo-media-panel::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #0d1119;
}

.tempototo-media-panel::-webkit-scrollbar-thumb {
    border: 2px solid #0d1119;
    border-radius: 999px;
    background: linear-gradient(180deg, #977800, #e8bd00);
}

.tempototo-media-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tempototo-media-header h2 {
    margin: 5px 0 5px;
    color: #ffffff;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.1;
}

.tempototo-media-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.tempototo-media-kicker {
    color: #ffd43b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tempototo-media-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tempototo-media-close:hover {
    border-color: rgba(231, 76, 60, 0.7);
    background: rgba(231, 76, 60, 0.16);
    transform: rotate(4deg);
}

.tempototo-media-usage {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(73, 191, 244, 0.24);
    border-radius: 16px;
    background: rgba(14, 27, 40, 0.64);
}

.tempototo-media-usage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tempototo-media-usage-head > div {
    min-width: 0;
}

.tempototo-media-usage-head span:first-child {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tempototo-media-usage-head strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.tempototo-media-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.13);
    color: #55e991;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.tempototo-media-status.is-waspada {
    border-color: rgba(243, 156, 18, 0.42);
    background: rgba(243, 156, 18, 0.14);
    color: #ffbd4a;
}

.tempototo-media-status.is-kritis {
    border-color: rgba(231, 76, 60, 0.48);
    background: rgba(231, 76, 60, 0.15);
    color: #ff7769;
}

.tempototo-media-progress-track {
    height: 9px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.tempototo-media-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f9c58, #4ddd8d);
    transition: width 0.35s ease;
}

.tempototo-media-progress-track > span.is-waspada {
    background: linear-gradient(90deg, #b76d00, #f6ad28);
}

.tempototo-media-progress-track > span.is-kritis {
    background: linear-gradient(90deg, #a82d22, #ef6659);
}

.tempototo-media-usage-note {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.5;
}

.tempototo-media-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.035);
}

.tempototo-media-upload.is-hidden {
    display: none !important;
}

.tempototo-media-upload-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.45fr) minmax(220px, 0.85fr);
    align-items: stretch;
    gap: 14px;
}

.tempototo-media-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tempototo-media-field > span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
}

.tempototo-media-field input {
    height: 100%;
    min-height: 108px;
    margin: 0;
    padding: 14px 16px;
    border-color: rgba(255, 215, 0, 0.27);
    background: rgba(2, 5, 9, 0.68);
    text-align: left;
}

.tempototo-media-dropzone {
    min-height: 108px;
    padding: 14px 18px;
    border: 2px dashed rgba(73, 191, 244, 0.45);
    border-radius: 14px;
    background: rgba(52, 152, 219, 0.055);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tempototo-media-dropzone:hover,
.tempototo-media-dropzone:focus,
.tempototo-media-dropzone.is-dragover {
    border-color: #43b9ed;
    background: rgba(52, 152, 219, 0.13);
    transform: translateY(-1px);
}

.tempototo-media-drop-icon {
    margin-bottom: 3px;
    font-size: 27px;
}

.tempototo-media-dropzone strong {
    color: #ffffff;
    font-size: 15px;
}

.tempototo-media-dropzone span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.tempototo-media-dropzone small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.tempototo-media-file-preview {
    min-height: 108px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.tempototo-media-file-preview > span {
    width: 100%;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    text-align: center;
}

.tempototo-media-file-preview > span.is-error {
    color: #ff7769;
}

.tempototo-media-file-preview img {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border-radius: 10px;
    object-fit: cover;
    background: #05070a;
}

.tempototo-media-file-preview div {
    min-width: 0;
}

.tempototo-media-file-preview strong,
.tempototo-media-file-preview div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tempototo-media-file-preview strong {
    color: #ffffff;
    font-size: 13px;
}

.tempototo-media-file-preview div span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.tempototo-media-upload-btn {
    min-width: 160px;
    min-height: 50px;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd43b, #ff9f1a);
    color: #0a0a0a;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 174, 24, 0.2);
}

.tempototo-media-upload-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.tempototo-media-upload-btn.is-loading {
    cursor: wait;
}

.tempototo-media-gallery-section {
    margin-top: 24px;
}

.tempototo-media-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.tempototo-media-gallery-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.tempototo-media-gallery-head p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.tempototo-media-gallery-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.tempototo-media-gallery-actions span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.tempototo-media-refresh {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.tempototo-media-refresh:hover {
    border-color: rgba(73, 191, 244, 0.55);
    background: rgba(73, 191, 244, 0.11);
}

.tempototo-media-refresh:disabled {
    opacity: 0.45;
    cursor: wait;
}

.tempototo-media-loading {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.tempototo-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tempototo-media-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(18, 23, 33, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tempototo-media-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.tempototo-media-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(45deg, #111722 25%, transparent 25%),
        linear-gradient(-45deg, #111722 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111722 75%),
        linear-gradient(-45deg, transparent 75%, #111722 75%),
        #0c1017;
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.tempototo-media-copyable {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: context-menu;
    user-select: auto;
    -webkit-user-select: auto;
    -webkit-user-drag: auto;
}

.tempototo-media-private-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(5, 8, 13, 0.78);
    color: #ffd43b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    pointer-events: none;
}

.tempototo-media-card-body {
    padding: 14px;
}

.tempototo-media-card-body h4 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tempototo-media-card-body > p {
    margin: 6px 0 12px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.tempototo-media-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tempototo-media-card-actions button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tempototo-media-card-actions button:hover {
    border-color: rgba(73, 191, 244, 0.5);
    background: rgba(73, 191, 244, 0.12);
    color: #ffffff;
}

.tempototo-media-card-actions button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.tempototo-media-card-actions .is-copy-image {
    border-color: rgba(52, 152, 219, 0.36);
}

.tempototo-media-card-actions .is-delete:hover {
    border-color: rgba(231, 76, 60, 0.58);
    background: rgba(231, 76, 60, 0.14);
}

.tempototo-media-empty {
    grid-column: 1 / -1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    box-sizing: border-box;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
}

.tempototo-media-empty > span {
    font-size: 40px;
}

.tempototo-media-empty strong {
    margin-top: 7px;
    color: #ffffff;
    font-size: 18px;
}

.tempototo-media-empty p {
    margin: 5px 0 0;
    font-size: 13px;
}

.tempototo-media-card.is-image-error .tempototo-media-image-wrap::after {
    content: "Gambar gagal dimuat. Tekan Segarkan.";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(8, 10, 15, 0.92);
    color: #ff7769;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1120px) {
    .tempototo-media-upload {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tempototo-media-upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tempototo-media-file-preview {
        grid-column: 1 / -1;
    }

    .tempototo-media-upload-btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .content-header-action {
        align-items: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }

    .tempototo-content-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .tempototo-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .tempototo-media-overlay {
        align-items: flex-start;
        padding: 0;
    }

    .tempototo-media-panel {
        width: 100%;
        max-height: none;
        min-height: 100vh;
        padding: 18px 14px 28px;
        border-width: 0;
        border-radius: 0;
    }

    .tempototo-media-header {
        gap: 12px;
    }

    .tempototo-media-usage-head,
    .tempototo-media-gallery-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tempototo-media-upload-grid,
    .tempototo-media-grid {
        grid-template-columns: 1fr;
    }

    .tempototo-media-file-preview {
        grid-column: auto;
    }

    .tempototo-media-field input {
        min-height: 54px;
    }

    .tempototo-media-gallery-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tempototo-content-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tempototo-content-header-actions > button {
        width: 100%;
        min-width: 0;
    }
}
