body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #0b0d13;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.bg-grid-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ==================== DESAIN AUTENTIK GOOGLE ANTIGRAVITY ==================== */
.ag-surface {
    background-color: #ffffff;
    background-image: none;
    color: #0b0d13;
}

/* Pastikan baris bar atas & bawah pada halaman login 100% transparan tanpa kotak latar */
.ag-topbar,
.ag-bottombar,
html.dark .ag-topbar,
html.dark .ag-bottombar {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#antigravity-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ag-center-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 52% 48% at 32% 52%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 58%, transparent 100%);
}

.ag-text-primary {
    color: #0b0d13;
}

.ag-text-muted {
    color: #5f6368;
}

.ag-divider {
    background-color: rgba(15, 23, 42, 0.1);
}

/* Pill Header & Tombol Minimalis khas Google */
.ag-nav-pill {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 4px 20px -4px rgba(11, 13, 19, 0.04);
}

.ag-chip {
    background: rgba(26, 115, 232, 0.08);
    color: #1a73e8;
    border: 1px solid rgba(26, 115, 232, 0.16);
}

.ag-action-pill {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #202124;
}

.ag-action-pill:hover {
    background: #f1f3f4;
    border-color: rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

/* Announcement Pill & Editorial Hero Typography */
.ag-announce-pill {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.ag-announce-tag {
    background: #0b0d13;
    color: #ffffff;
}

.ag-hero-title {
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.ag-hero-sub {
    color: #4a4f57;
    font-weight: 600;
}

.ag-meta-pill {
    background: rgba(248, 249, 250, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Kartu Login Clean Glass Surface ala Antigravity */
.ag-auth-card {
    --spot-x: 50%;
    --spot-y: 0%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 64px -16px rgba(11, 13, 19, 0.10), 0 2px 6px rgba(11, 13, 19, 0.03);
}

.ag-auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), rgba(66, 133, 244, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.ag-brand-mark {
    background: #0b0d13;
    color: #ffffff;
}

.ag-input {
    background: #f8f9fa;
    border: 1px solid rgba(15, 23, 42, 0.11);
    color: #0b0d13;
}

.ag-input::placeholder {
    color: #9aa0a6;
}

.ag-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.ag-captcha-panel {
    background: #f8f9fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* High-Contrast Pill Button khas antigravity.google */
.ag-primary-cta {
    background: #0b0d13;
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(11, 13, 19, 0.35);
}

.ag-primary-cta:hover {
    background: #202124;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(11, 13, 19, 0.42);
}

.ag-secondary-cta {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: #3c4043;
}

.ag-secondary-cta:hover {
    background: #f1f3f4;
}

.ag-card-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* ==================== KOMPONEN DASHBOARD & MODAL ASLI ==================== */
.service-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(30, 58, 138, 0.12);
}

.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.speedtest-wrap {
    text-align: right;
}

.speedtest-min {
    min-height: 360px;
}

.speedtest-ratio {
    width: 100%;
    height: 0;
    min-height: 360px;
    padding-bottom: 50%;
    position: relative;
}

.speedtest-frame {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden !important;
}

/* ==================== TEMA MODE GELAP (OBSIDIAN PITCH DARK KHAS ANTIGRAVITY) ==================== */
html.dark body {
    background-color: #050608;
    color: #f8f9fa;
}

html.dark .bg-grid-pattern {
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
}

html.dark .ag-surface {
    background-color: #050608;
    background-image: none;
    color: #f8f9fa;
}

html.dark .ag-center-vignette {
    background: radial-gradient(ellipse 52% 48% at 32% 52%, rgba(5, 6, 8, 0.86) 0%, rgba(5, 6, 8, 0.42) 58%, transparent 100%);
}

html.dark .ag-text-primary {
    color: #f8f9fa !important;
}

html.dark .ag-text-muted {
    color: #9aa0a6 !important;
}

html.dark .ag-hero-sub {
    color: #9aa0a6;
}

html.dark .ag-divider {
    background-color: rgba(255, 255, 255, 0.12);
}

html.dark .ag-nav-pill {
    background: rgba(14, 16, 21, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.6);
}

html.dark .ag-chip {
    background: rgba(138, 180, 248, 0.12);
    color: #8ab4f8;
    border-color: rgba(138, 180, 248, 0.22);
}

html.dark .ag-action-pill {
    background: rgba(14, 16, 21, 0.84);
    border-color: rgba(255, 255, 255, 0.11);
    color: #e8eaed;
}

html.dark .ag-action-pill:hover {
    background: rgba(28, 31, 38, 0.95);
    border-color: rgba(255, 255, 255, 0.22);
}

html.dark .ag-announce-pill,
html.dark .ag-meta-pill {
    background: rgba(15, 17, 23, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .ag-announce-tag {
    background: #f8f9fa;
    color: #050608;
}

html.dark .ag-auth-card {
    background: rgba(12, 14, 19, 0.86);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.85);
}

html.dark .ag-auth-card::before {
    background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), rgba(138, 180, 248, 0.1), transparent 65%);
}

html.dark .ag-brand-mark {
    background: #f8f9fa;
    color: #050608;
}

html.dark .ag-input {
    background: rgba(20, 23, 30, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
    color: #f8f9fa !important;
}

html.dark .ag-input:focus {
    background: #0b0d12 !important;
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.16);
}

html.dark .ag-captcha-panel {
    background: rgba(18, 20, 27, 0.9);
    border-color: rgba(255, 255, 255, 0.09);
}

html.dark .ag-primary-cta {
    background: #ffffff;
    color: #050608;
    box-shadow: 0 10px 28px -8px rgba(255, 255, 255, 0.22);
}

html.dark .ag-primary-cta:hover {
    background: #e8eaed;
    box-shadow: 0 14px 32px -8px rgba(255, 255, 255, 0.3);
}

html.dark .ag-secondary-cta {
    border-color: rgba(255, 255, 255, 0.16);
    color: #e8eaed;
}

html.dark .ag-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.06);
}

html.dark .ag-card-footer {
    border-top-color: rgba(255, 255, 255, 0.09);
}

/* Override Dark Mode Khusus Header Dashboard Saja (Tidak Mengenai Halaman Login) */
html.dark #dashboard-view > header {
    background-color: rgba(12, 15, 23, 0.9) !important;
    border-color: rgba(51, 65, 85, 0.75) !important;
}

html.dark #dashboard-view .bg-white,
html.dark #admin-modal .bg-white,
html.dark #forgot-modal .bg-white,
html.dark #speedtest-modal .bg-white,
html.dark #user-password-modal .bg-white {
    background-color: #0f172a !important;
}

html.dark #dashboard-view .bg-slate-50,
html.dark #dashboard-view .bg-slate-100,
html.dark #admin-modal .bg-slate-50,
html.dark #forgot-modal .bg-slate-50,
html.dark #forgot-modal .bg-slate-100,
html.dark #user-password-modal .bg-slate-50 {
    background-color: #1e293b !important;
}

html.dark #dashboard-view .border-slate-200,
html.dark #dashboard-view .border-slate-200\/80,
html.dark #admin-modal .border-slate-200,
html.dark #forgot-modal .border-slate-200,
html.dark #user-password-modal .border-slate-200 {
    border-color: #334155 !important;
}

html.dark #dashboard-view .text-slate-900,
html.dark #admin-modal .text-slate-900 {
    color: #f8fafc !important;
}

html.dark #dashboard-view .text-slate-800,
html.dark #admin-modal .text-slate-800 {
    color: #e2e8f0 !important;
}

html.dark #dashboard-view .text-slate-700,
html.dark #admin-modal .text-slate-700,
html.dark #forgot-modal .text-slate-700,
html.dark #user-password-modal .text-slate-700 {
    color: #cbd5e1 !important;
}

html.dark #dashboard-view .text-slate-600,
html.dark #dashboard-view .text-slate-500,
html.dark #admin-modal .text-slate-500,
html.dark #forgot-modal .text-slate-600,
html.dark #user-password-modal .text-slate-500 {
    color: #94a3b8 !important;
}

html.dark #admin-modal input,
html.dark #admin-modal select,
html.dark #forgot-modal input,
html.dark #forgot-modal select,
html.dark #user-password-modal input {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html.dark .service-card:hover {
    border-color: #4f46e5 !important;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.live-dot {
    animation: pulse-dot 2s infinite;
}
