/* ============================================================
   SITB BOT AUTOMATION — Glossy Super Glass 3D
   ============================================================ */
:root {
    --bg-0: #04070f;
    --bg-1: #071226;
    --blue: #1e7bff;
    --blue-2: #00c2ff;
    --cyan: #4de3ff;
    --purple: #7b5cff;
    --green: #22e58a;
    --text: #eaf4ff;
    --muted: #93a8c8;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --stroke: rgba(255, 255, 255, 0.16);
    --radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(30, 123, 255, 0.28), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(123, 92, 255, 0.22), transparent 60%),
        linear-gradient(160deg, var(--bg-1), var(--bg-0) 55%);
    overflow-x: hidden;
}

/* ---------- Latar orbes & lantai grid ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: drift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; top: -120px; right: -80px;
    background: radial-gradient(circle at 35% 35%, #4de3ff, #1e7bff 60%, transparent 75%); }
.orb-2 { width: 360px; height: 360px; bottom: -100px; left: -60px;
    background: radial-gradient(circle at 40% 40%, #7b5cff, #1e3bff 60%, transparent 75%);
    animation-delay: -6s; }
.orb-3 { width: 240px; height: 240px; top: 40%; left: 55%;
    background: radial-gradient(circle at 40% 40%, #00c2ff, #0066ff 60%, transparent 75%);
    animation-delay: -11s; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

.grid-floor {
    position: absolute; left: -20%; right: -20%; bottom: -30%; height: 60%;
    background-image:
        linear-gradient(rgba(77, 227, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 227, 255, 0.14) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(62deg);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* ---------- Kartu kaca glossy 3D ---------- */
.glass-card {
    position: relative;
    background: linear-gradient(145deg, var(--glass-strong), var(--glass) 40%, rgba(255,255,255,0.03));
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 24px 60px rgba(0, 10, 40, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -18px 40px rgba(0, 40, 120, 0.18);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow:
        0 34px 80px rgba(0, 20, 80, 0.65),
        0 0 0 1px rgba(77, 227, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Kilau kaca diagonal */
.glass-shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 45%, rgba(255,255,255,0.04) 55%, transparent 70%);
    transform: translateX(-60%);
    transition: transform 0.7s ease;
}
.glass-card:hover .glass-shine { transform: translateX(60%); }

/* ---------- Tombol kaca ---------- */
.btn-glass {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    color: var(--text);
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 10px 26px rgba(0, 20, 80, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -10px 20px rgba(0, 60, 160, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-glass:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.15); }
.btn-glass:active { transform: translateY(0) scale(0.98); }

.btn-google {
    width: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(230,240,255,0.85));
    color: #10233f;
    font-size: 16px;
    box-shadow:
        0 14px 34px rgba(30, 123, 255, 0.35),
        inset 0 2px 0 rgba(255,255,255,0.9),
        inset 0 -12px 24px rgba(120, 170, 255, 0.35);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(145deg, #4de3ff, #1e7bff 55%, #1450d8);
    border-color: rgba(255,255,255,0.35);
    box-shadow:
        0 14px 34px rgba(30, 123, 255, 0.5),
        inset 0 2px 0 rgba(255,255,255,0.55),
        inset 0 -14px 28px rgba(0, 40, 140, 0.4);
}

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Halaman login ---------- */
.auth-body { display: grid; place-items: center; }

.auth-wrap { padding: 40px 20px; width: 100%; display: flex; justify-content: center; }

.auth-card {
    width: min(440px, 100%);
    padding: 44px 38px 34px;
    text-align: center;
}

.auth-logo {
    width: 132px; height: 132px; object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(30, 123, 255, 0.55));
    margin-bottom: 8px;
}

.float-anim { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.auth-title {
    font-size: 34px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(180deg, #ffffff, #9fd4ff 60%, #4de3ff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 8px 30px rgba(30, 123, 255, 0.35);
}
.auth-title span { display: block; font-size: 17px; letter-spacing: 5px; font-weight: 700; }

.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 12px 0 26px; }

.alert-error {
    margin-bottom: 18px; padding: 12px 16px;
    border-radius: 14px; font-size: 13.5px;
    color: #ffd7de;
    background: rgba(255, 60, 90, 0.14);
    border: 1px solid rgba(255, 90, 120, 0.4);
}

.auth-meta { margin-top: 22px; color: var(--muted); font-size: 12px; }
.dot-sep {
    display: block; width: 60px; height: 3px; margin: 0 auto 12px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* ---------- Navbar kaca ---------- */
.glass-nav {
    position: sticky; top: 14px; z-index: 50;
    margin: 16px auto 0; width: min(1160px, calc(100% - 32px));
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid var(--stroke);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 18px 44px rgba(0, 10, 40, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.nav-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: 1px; }
.nav-brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(30,123,255,0.6)); }
.nav-brand b { font-weight: 800; }

.nav-user { display: flex; align-items: center; gap: 14px; }
.nav-user img.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(77,227,255,0.6); }
.nav-user-info { display: flex; flex-direction: column; line-height: 1.25; }
.nav-user-info strong { font-size: 14px; }
.nav-user-info small { color: var(--muted); font-size: 12px; }

/* ---------- Dashboard ---------- */
.dash-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 60px; }

.dash-hero {
    display: flex; align-items: center; gap: 26px;
    padding: 10px 6px 34px;
}
.hero-logo { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(30,123,255,0.6)); }
.dash-hero h1 {
    font-size: clamp(26px, 4vw, 40px); font-weight: 800;
    background: linear-gradient(180deg, #fff, #9fd4ff 65%, #4de3ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dash-hero p { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 620px; line-height: 1.6; }

.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px; margin-bottom: 26px;
}
.stat-card { padding: 26px 24px; }
.stat-icon {
    display: inline-grid; place-items: center;
    width: 54px; height: 54px; border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 26px rgba(0, 20, 80, 0.5), inset 0 2px 0 rgba(255,255,255,0.5), inset 0 -10px 18px rgba(0,0,0,0.25);
    transform: translateZ(30px);
}
.stat-icon svg { width: 26px; height: 26px; }
.i-blue   { background: linear-gradient(145deg, #6ec1ff, #1e7bff 60%, #0d47c9); color: #fff; }
.i-cyan   { background: linear-gradient(145deg, #9ff3ff, #00c2ff 60%, #0084c9); color: #04263a; }
.i-green  { background: linear-gradient(145deg, #8dffcf, #22e58a 60%, #0da35f); color: #053421; }
.i-purple { background: linear-gradient(145deg, #c3b1ff, #7b5cff 60%, #4a2fd0); color: #fff; }

.stat-card h3 { font-size: 32px; font-weight: 800; }
.stat-card p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.panel-grid {
    display: grid; grid-template-columns: minmax(320px, 4fr) minmax(320px, 5fr);
    gap: 20px; margin-bottom: 26px;
}
.panel { padding: 28px; }
.panel h2 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(34, 229, 138, 0.7);
    animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(34, 229, 138, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(34, 229, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 229, 138, 0); }
}

.bot-status { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.bot-avatar { width: 62px; height: 62px; object-fit: contain; }
.pulse-glow { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(77, 227, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 22px rgba(77, 227, 255, 0.95)); }
}
.text-online { color: var(--green); letter-spacing: 2px; }
.bot-status p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.sync-msg { min-height: 22px; margin-top: 12px; font-size: 13.5px; color: var(--cyan); }
.sync-msg.err { color: #ff9db0; }

.endpoint-box {
    margin-top: 18px; padding: 14px 16px; border-radius: 14px;
    background: rgba(4, 12, 30, 0.55);
    border: 1px solid rgba(77, 227, 255, 0.25);
}
.endpoint-box small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.endpoint-box code { font-size: 12.5px; color: var(--cyan); word-break: break-all; }

.sync-log { list-style: none; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.sync-log li {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.sync-log li div { flex: 1; display: flex; flex-direction: column; }
.sync-log li strong { font-size: 13.5px; }
.sync-log li small { color: var(--muted); font-size: 12px; }
.sync-log time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.log-badge {
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.log-badge.ok { color: #053421; background: linear-gradient(145deg, #8dffcf, #22e58a); }
.log-badge.err { color: #3a0710; background: linear-gradient(145deg, #ffb3bd, #ff4d63); }
.log-empty { color: var(--muted); font-size: 13.5px; justify-content: center; }

.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature { padding: 30px 26px; text-align: left; }
.feat-icon {
    display: inline-grid; place-items: center;
    width: 58px; height: 58px; border-radius: 20px;
    margin-bottom: 18px;
    color: #eaffff;
    background: linear-gradient(145deg, rgba(77,227,255,0.9), #1e7bff 60%, #123fb0);
    box-shadow: 0 14px 30px rgba(30, 123, 255, 0.5), inset 0 2px 0 rgba(255,255,255,0.55), inset 0 -12px 22px rgba(0, 30, 110, 0.4);
    transform: translateZ(34px);
}
.feat-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 17px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.dash-footer { text-align: center; color: var(--muted); font-size: 13px; padding-top: 40px; }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
    .panel-grid { grid-template-columns: 1fr; }
    .dash-hero { flex-direction: column; text-align: center; }
    .nav-user-info { display: none; }
}

/* ---------- Admin: persetujuan akun ---------- */
.count-badge {
    display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 4px;
    border-radius: 999px; font-size: 11px; font-weight: 800; text-align: center;
    color: #3a0710; background: linear-gradient(145deg, #ffd6a0, #ff9d3d);
}
.count-badge.soft { color: var(--text); background: rgba(255, 255, 255, 0.16); }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
    padding: 9px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.tab.active { color: #fff; background: linear-gradient(145deg, rgba(77,227,255,0.35), rgba(30,123,255,0.45)); border-color: var(--cyan); }
.search-input {
    padding: 10px 16px; min-width: 240px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--text);
    background: rgba(4, 12, 30, 0.55); border: 1px solid rgba(77, 227, 255, 0.25); outline: none;
}
.search-input:focus { border-color: var(--cyan); }

.user-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.user-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
}
.user-row .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-ph { display: grid; place-items: center; font-weight: 800; background: linear-gradient(145deg, var(--blue-2), var(--purple)); }
.user-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.user-info small { color: var(--muted); font-size: 12px; word-break: break-all; }
.role-chip { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; letter-spacing: 1px; background: rgba(123, 92, 255, 0.4); }
.status-chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.s-pending  { color: #3a2a00; background: linear-gradient(145deg, #ffe9a8, #ffb820); }
.s-approved { color: #053421; background: linear-gradient(145deg, #8dffcf, #22e58a); }
.s-rejected { color: #3a0710; background: linear-gradient(145deg, #ffb3bd, #ff4d63); }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.user-actions small { color: var(--muted); }
.btn-danger { background: linear-gradient(145deg, #ff8a9a, #d6263f); color: #fff; }
.btn-glass:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
