/*
================================================================
|   >> RRYX FINAL UI - MOBILE & REDIRECT STYLE <<              |
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-deep: #050505;
    --bg-card: #0f0f0f;
    --bg-input: #161616;
    --border-color: #2a2a2a;
    --accent-gradient: linear-gradient(135deg, #ef4444 0%, #a855f7 100%);
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; padding: 0;
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-deep); color: var(--text-main);
    min-height: 100vh; padding-bottom: 50px; overflow-x: hidden;
}

/* LAYOUT */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 15px; display: flex; flex-direction: column; min-height: 90vh; }
.logo-area { text-align: center; margin-bottom: 25px; }
.logo-responsive { height: 60px; width: auto; filter: drop-shadow(0 0 15px rgba(168,85,247,0.4)); transition: 0.3s; }
.logo-responsive:hover { transform: scale(1.05); }

/* CARD */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 25px; margin-bottom: 20px;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent-gradient); border-radius: var(--radius) var(--radius) 0 0;
}
h2 {
    margin: 0 0 20px 0; font-size: 18px; font-weight: 700;
    text-transform: uppercase; border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px; color: var(--text-main); display: flex; align-items: center; gap: 8px;
}

/* ... CSS sebelumnya ... */

/* --- FORM & INPUT --- */
.input-group { margin-bottom: 15px; }

input {
    width: 100%; background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff; padding: 12px 15px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    transition: 0.3s;
}
input:focus { border-color: #a855f7; box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15); }

/* --- PERBAIKAN CAPTCHA MOBILE (BARU) --- */
.captcha-group {
    display: flex;
    align-items: stretch; /* Agar tinggi label & input sama persis */
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap !important; /* Mencegah turun ke bawah */
}

.captcha-label {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0 15px;
    border-radius: var(--radius);
    color: #a3a3a3;
    font-family: 'JetBrains Mono';
    font-weight: 700;
    white-space: nowrap; /* Mencegah teks terpotong */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content; /* Lebar menyesuaikan isi teks */
}

.captcha-input {
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* ... Lanjutkan CSS lainnya (Buttons, dll) ... */

.btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius);
    background: var(--accent-gradient); color: #fff; font-weight: 700;
    font-size: 15px; cursor: pointer; transition: 0.3s; letter-spacing: 0.5px;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-small {
    padding: 8px 12px; font-size: 12px; font-weight: 600;
    background: #1a1a1a; border: 1px solid #333; color: #aaa;
    border-radius: 6px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-small:hover { background: #333; color: #fff; border-color: #555; }

.btn-outline-red { background: transparent; border: 1px solid #ef4444; color: #ef4444; }
.btn-outline-red:hover { background: #ef4444; color: #fff; }

.btn-outline-modal {
    width: 100%; margin-top: 15px; padding: 10px; background: transparent;
    border: 1px dashed #444; color: #a855f7; cursor: pointer;
    transition: 0.3s; font-weight: 600; font-size: 13px;
}
.btn-outline-modal:hover { border-color: #a855f7; background: rgba(168,85,247,0.05); }

/* STATS */
.stats-list { display: flex; flex-direction: column; }
.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #1a1a1a;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: #888; font-weight: 600; font-size: 14px; }
.stat-value { color: #fff; font-weight: 700; font-size: 14px; font-family: 'JetBrains Mono'; text-align: right; }

/* ALERT & REDIRECT */
.alert-box {
    padding: 12px 15px; margin-bottom: 20px; border-radius: var(--radius);
    border-left: 3px solid; background: #111; font-size: 13px;
}
.alert-error { border-color: #ef4444; background: rgba(239,68,68,0.08); color: #fca5a5; }
.alert-success { border-color: #4ade80; background: rgba(74,222,128,0.08); color: #86efac; }

.redirect-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; padding: 20px; }
.redirect-card {
    background: #0a0a0a; border: 1px solid #ef4444; border-radius: 16px;
    padding: 40px 30px; text-align: center; max-width: 380px; width: 100%;
    box-shadow: 0 0 40px rgba(239,68,68,0.15);
}
.icon-warn { font-size: 48px; color: #ef4444; margin-bottom: 15px; }
.warn-title { font-size: 22px; font-weight: 800; color: #ef4444; margin: 0 0 10px 0; letter-spacing: 1px; }
.warn-desc { font-size: 14px; color: #aaa; margin-bottom: 25px; line-height: 1.5; }
.btn-wa { background: #25D366; color: #000; border: none; font-weight: 800; }
.btn-wa:hover { background: #20bd5a; box-shadow: 0 5px 15px rgba(37,211,102,0.3); }

/* MODAL & MARQUEE */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(4px); }
.modal-content {
    background-color: var(--bg-card); margin: 5% auto; padding: 20px;
    border: 1px solid #333; border-top: 3px solid #a855f7;
    width: 90%; max-width: 450px; border-radius: var(--radius); animation: zoomIn 0.3s;
}
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.close-modal { float: right; font-size: 24px; cursor: pointer; color: #888; }
.modal-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.modal-table th { text-align: left; border-bottom: 1px solid #333; padding: 8px; color: #888; font-size: 12px; }
.modal-table td { border-bottom: 1px solid #1a1a1a; padding: 8px; font-family: 'JetBrains Mono'; font-size: 12px; }

.marquee-container { position: fixed; bottom: 0; left: 0; width: 100%; height: 35px; background: #000; border-top: 1px solid #222; z-index: 1000; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.marquee-content { display: inline-block; padding-left: 100%; animation: scroll 40s linear infinite; } /* Speed 40s */
.marquee-content span { font-family: 'JetBrains Mono'; font-size: 12px; color: #ddd; margin-right: 40px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* UTILS & RESPONSIVE */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 15px; }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.full-col { grid-column: span 2; }
.text-center { text-align: center; }
.backup-info { font-size: 11px; color: #555; margin-top: 12px; font-style: italic; text-align: center; }
.loader-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.spinner { width: 35px; height: 35px; border: 3px solid #333; border-top-color: #a855f7; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 10px; }
@keyframes spin { to {transform: rotate(360deg);} }
.material-symbols-outlined { vertical-align: middle; font-size: 18px; }

/* --- CUSTOM CHECKBOX (INGAT SAYA) MODERN --- */
.custom-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: var(--radius);
    transition: 0.3s;
    border: 1px solid transparent;
}

.custom-checkbox-group:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
}

/* Sembunyikan checkbox asli browser */
.custom-checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Kotak Checkbox Custom */
.checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background-color: var(--bg-input);
    border: 1px solid #444;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efek saat dicentang */
.custom-checkbox-group input:checked ~ .checkmark {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Ikon Centang (Hidden by default) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show ikon saat checked */
.custom-checkbox-group input:checked ~ .checkmark:after {
    display: block;
}

/* Teks Label */
.checkbox-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.custom-checkbox-group input:checked ~ .checkbox-text {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

@media (max-width: 480px) {
    .container { padding: 10px; }
    .card { padding: 20px; margin-bottom: 15px; }
    .logo-responsive { height: 45px; }
    h2 { font-size: 16px; margin-bottom: 15px; }
    .btn { font-size: 14px; padding: 10px; }
    .stat-label, .stat-value { font-size: 13px; }
    .modal-content { margin: 15% auto; width: 95%; }
    .dashboard-grid, .action-buttons { grid-template-columns: 1fr; }
    .full-col { grid-column: span 1; }
    .redirect-card { padding: 30px 20px; }
    .warn-title { font-size: 20px; }
    .warn-desc { font-size: 13px; }
}