/* ============================================================================
   AM Premium Creator — Cyber SaaS Redesign Layer
   Loaded after legacy inline styles. Overrides visuals only.
   Theme: mode terang (putih) saja
   ============================================================================ */

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F4F5;
    --surface: #FFFFFF;
    --bg-sidebar: rgba(255, 255, 255, 0.86);
    --bg-card: rgba(0, 0, 0, 0.04);
    --card-bg: rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-gradient: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    --surface-soft: rgba(0, 0, 0, 0.04);
    --surface-subtle: rgba(0, 0, 0, 0.02);
    --surface-hover: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.16);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-soft: rgba(0, 0, 0, 0.05);
    --topbar-bg: rgba(255, 255, 255, 0.85);
    --dropdown-bg: rgba(255, 255, 255, 0.96);
    --swal-bg: rgba(255, 255, 255, 0.96);
    --pre-bg: #0A0A0C;
    --console-bg: #070709;
    --scrollbar-track: #F1F1F1;
    --scrollbar-border: #F1F1F1;
    --grid-line: rgba(0, 0, 0, 0.04);
    --icon-faint: rgba(0, 0, 0, 0.12);
    --input-bg: #FFFFFF;
    --input-bg-focus: #FFFFFF;
    --placeholder: #9CA3AF;
    --option-bg: #FFFFFF;
    --option-color: #0A0A0B;
    --btn-ghost: rgba(0, 0, 0, 0.04);
    --accent-primary: #3B82F6;
    --accent-secondary: #0891B2;
    --accent-purple: #8B5CF6;
    --accent-color: #3B82F6;
    --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --accent-gradient-hover: linear-gradient(135deg, #2f6fe0 0%, #0899b4 100%);
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.12);
    --success-bg2: rgba(22, 163, 74, 0.12);
    --success-border: rgba(22, 163, 74, 0.4);
    --success-text: #15803D;
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.4);
    --warning-text: #B45309;
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --pending: #D97706;
    --pending-bg: rgba(245, 158, 11, 0.12);
    --badge-admin: #1D4ED8;
    --badge-premium: #B45309;
    --info-code: #2563EB;
    --method-color: #0E7490;
    --msg-self-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.1));
    --lifetime-bg: linear-gradient(160deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.6));
    --gradient-text: linear-gradient(135deg, #0A0A0B, #3B82F6);
    --text-primary: #0A0A0B;
    --text-secondary: #52525B;
    --text-muted: #71717A;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --hover-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    --auth-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}


html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection {
    background: rgba(59, 130, 246, 0.35);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5));
    border-radius: 10px;
    border: 2px solid var(--scrollbar-border);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3B82F6, #06B6D4); }

/* ------------------------------ Animated Background ------------------------------ */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    z-index: -3;
    pointer-events: none;
    opacity: 0.35;
    animation: blobFloat 22s ease-in-out infinite alternate;
    will-change: transform;
    transition: opacity 0.3s ease;
}
.bg-blob.b1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0) 70%); top: -160px; left: -120px; }
.bg-blob.b2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%); top: 28%; right: -160px; animation-delay: -7s; }
.bg-blob.b3 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(129, 140, 248, 0.16) 0%, rgba(129, 140, 248, 0) 70%); bottom: -160px; left: 22%; animation-delay: -14s; }



@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 24px) scale(0.95); }
}

/* ------------------------------ Layout ------------------------------ */

.app-layout { background: transparent; }

.main-content {
    background: transparent !important;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.screen { animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ Sidebar ------------------------------ */

.app-sidebar {
    background: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border-color) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.sidebar-logo { padding: 26px 22px 18px !important; }

.sidebar-logo .logo-icon {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.55));
}

.nav-category {
    font-size: 0.66rem !important;
    letter-spacing: 0.14em;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    padding: 20px 22px 8px !important;
}

.sidebar-link {
    color: var(--text-secondary) !important;
    border-radius: 12px !important;
    margin: 2px 12px !important;
    padding: 11px 14px !important;
    transition: all 0.25s ease !important;
    position: relative;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: var(--surface-hover) !important;
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(6, 182, 212, 0.12)) !important;
    color: var(--text-primary) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.15), inset 0 0 12px rgba(59, 130, 246, 0.06);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20%;
    height: 60%;
    width: 3px;
    border-radius: 3px;
    background: var(--accent-gradient);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

.sidebar-close-btn {
    background: var(--btn-ghost) !important;
    border-radius: 10px !important;
    color: var(--text-secondary) !important;
}

/* ------------------------------ Mobile Topbar ------------------------------ */

.mobile-top-bar {
    background: var(--topbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.topbar-btn {
    background: var(--btn-ghost) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}

.topbar-btn:hover { background: var(--surface-hover) !important; transform: translateY(-1px); }

/* ------------------------------ Buttons ------------------------------ */

.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
    background: var(--accent-gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-primary:active::after { opacity: 1; }

.btn-secondary {
    background: var(--btn-ghost) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-color-hover) !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #B91C1C) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(239, 68, 68, 0.45); }

.btn-warning {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning-text) !important;
}

.btn-warning:hover { background: var(--warning-bg) !important; filter: brightness(1.05); }

.btn-success, .btn-outline-success {
    background: var(--success-bg2) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success-text) !important;
}

.btn-glow { animation: glowPulse 2.8s ease-in-out infinite; }

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35); }
    50% { box-shadow: 0 4px 34px rgba(6, 182, 212, 0.55); }
}

.btn-sm { border-radius: 10px !important; }

/* ------------------------------ Cards ------------------------------ */

.glass-card {
    background: var(--glass-gradient) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative;
}

.glass-card:hover {
    border-color: var(--border-color-hover) !important;
    box-shadow: var(--hover-shadow), 0 0 32px rgba(59, 130, 246, 0.08);
}

.card-title {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.panel-header-desc { border-left: 3px solid var(--accent-primary); padding-left: 14px; border-radius: 2px; }

/* Stats */
.stat-card {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
}

.stat-card:hover::before { transform: translateX(100%); }

.stat-card-value {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card-label { color: var(--text-secondary) !important; font-weight: 600; }

.stat-card-desc { color: var(--text-muted) !important; }

.stat-card-right i {
    color: var(--icon-faint);
    font-size: 1.7rem;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-card-right i { color: var(--accent-secondary); }

/* ------------------------------ Inputs ------------------------------ */

.input-group {
    position: relative;
    border-radius: 14px;
}

.input-group input,
.input-group select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    padding-left: 42px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

textarea { padding-left: 14px !important; padding-top: 12px !important; }

.input-group input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(59, 130, 246, 0.65) !important;
    background: var(--input-bg-focus) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14), 0 0 24px rgba(59, 130, 246, 0.12) !important;
}

.input-group input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--placeholder) !important;
}

.input-icon { color: var(--text-muted) !important; z-index: 3 !important; }

select option { background: var(--option-bg); color: var(--option-color); }

/* ------------------------------ Tables ------------------------------ */

.table-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.table-responsive { border-radius: var(--radius-md); }

.table-responsive table { width: 100%; border-collapse: separate; border-spacing: 0; }

.table-responsive thead th {
    background: var(--surface-soft) !important;
    color: var(--text-secondary) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.table-responsive tbody td {
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--border-soft) !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem;
}

.table-responsive tbody tr { transition: background 0.2s ease; }

.table-responsive tbody tr:hover { background: rgba(59, 130, 246, 0.06) !important; }

.table-responsive tbody tr:nth-child(even) { background: var(--surface-subtle); }

/* ------------------------------ Badges ------------------------------ */

.badge {
    border-radius: 999px !important;
    font-weight: 600 !important;
    padding: 4px 11px !important;
    font-size: 0.72rem !important;
}

.badge-normal { background: var(--btn-ghost) !important; color: var(--text-secondary) !important; }

.badge-admin, .badge-owner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.18)) !important;
    color: var(--badge-admin) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.badge-premium {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(245, 158, 11, 0.14)) !important;
    color: var(--badge-premium) !important;
    border: 1px solid var(--warning-border) !important;
}

/* ------------------------------ Auth ------------------------------ */

.auth-box {
    border-radius: 28px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--auth-shadow), 0 0 60px rgba(59, 130, 246, 0.07) !important;
    padding: 48px 44px !important;
    max-width: 460px !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-box .section-title {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-box .section-subtitle { color: var(--text-secondary) !important; }

.link-accent {
    color: var(--accent-secondary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-accent:hover { color: var(--accent-primary) !important; text-decoration: underline; }

.apk-download-btn-auth {
    background: var(--surface-soft) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    padding: 14px 18px !important;
    transition: all 0.25s ease !important;
}

.apk-download-btn-auth:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    transform: translateY(-2px);
}

/* ------------------------------ Dashboard header ------------------------------ */

.dashboard-header .section-title {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dashboard-header .section-subtitle { color: var(--text-secondary) !important; }

/* APK banner */
.apk-banner {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.1)) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: var(--radius-lg) !important;
    position: relative;
    overflow: hidden;
}

.apk-banner::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    border-radius: 50%;
}

.apk-banner-btn {
    background: var(--accent-gradient) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.apk-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45); }

/* ------------------------------ Generator ------------------------------ */

.generator-box { border-radius: var(--radius-lg) !important; }

.flow-box {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: var(--surface-subtle) !important;
}

.flow-box h3 { color: var(--text-primary) !important; font-weight: 700; letter-spacing: -0.02em; }

.step-desc { color: var(--text-secondary) !important; }

.tab-btn {
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
}

.tab-btn.active {
    background: var(--accent-gradient) !important;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.4) !important;
}

/* ------------------------------ Pricing ------------------------------ */

.purchase-grid { gap: 22px !important; }

.plan-card {
    border-radius: var(--radius-lg) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease !important;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow), 0 0 40px rgba(59, 130, 246, 0.1) !important;
}

.plan-card-lifetime {
    border: 1px solid var(--warning-border) !important;
    background: var(--lifetime-bg) !important;
}

.plan-price {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan-features li { color: var(--text-secondary) !important; }

.plan-features li i { color: var(--success) !important; }

/* ------------------------------ Netflix ------------------------------ */

.netflix-box { border-radius: var(--radius-lg) !important; }

/* ------------------------------ Profile ------------------------------ */

.pinfo-colon-row {
    border-radius: 10px;
    transition: background 0.2s ease;
    padding: 9px 16px !important;
}

.pinfo-colon-row:hover { background: var(--surface-soft); }

.pinfo-colon-label { color: var(--text-secondary) !important; font-weight: 600 !important; }

.pinfo-colon-value { color: var(--text-primary) !important; font-weight: 600; }

.pinfo-mono { font-family: var(--font-mono) !important; font-size: 0.8rem; color: var(--info-code) !important; }

/* ------------------------------ Chat ------------------------------ */

.chat-container { border-radius: var(--radius-lg) !important; }

.chat-header { border-color: var(--border-color) !important; }

.chat-message-bubble {
    position: relative;
    border-radius: 16px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
}

.chat-msg-other {
    background: var(--surface-soft) !important;
    border-bottom-left-radius: 5px !important;
}

.chat-msg-self {
    background: var(--msg-self-gradient) !important;
    border-bottom-right-radius: 5px !important;
}

.chat-role-badge { border-radius: 999px !important; font-weight: 700 !important; }

.chat-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    font-size: 0.72rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message-bubble:hover .chat-delete-btn { opacity: 1; }

.chat-delete-btn:hover { background: rgba(239, 68, 68, 0.25); }

#chat-input-text { border-radius: 14px !important; }

/* ------------------------------ Reviews ------------------------------ */

.review-card {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: var(--surface-subtle) !important;
    padding: 16px 18px !important;
    transition: all 0.25s ease !important;
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.35) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    transform: translateY(-2px);
}

.review-card-header strong { color: var(--text-primary) !important; }

.review-card-text { color: var(--text-secondary) !important; line-height: 1.6; }

.rating-stars-interactive .star-btn { transition: transform 0.15s ease, color 0.15s ease; }

.rating-stars-interactive .star-btn:hover { transform: scale(1.2); }

/* ------------------------------ API Docs ------------------------------ */

.docs-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 400px;
    height: calc(100vh - 70px);
    overflow: hidden;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* ---------- Sidebar ---------- */

.docs-sidebar {
    background: linear-gradient(180deg, var(--surface-subtle), var(--bg-primary)) !important;
    border-right: 1px solid var(--border-color) !important;
    padding: 18px 16px !important;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 16px;
    border-bottom: 1px solid var(--border-color);
}

.docs-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6, #06B6D4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.docs-brand-title { font-weight: 800; font-size: 0.92rem; color: var(--text-primary); letter-spacing: -0.01em; }
.docs-brand-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.docs-toggle-btn {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-toggle-btn:hover { border-color: rgba(99, 102, 241, 0.4); }

.docs-toggle-btn .arrow { transition: transform 0.25s ease; font-size: 0.75rem; }
.docs-toggle-btn.open .arrow { transform: rotate(180deg); }

.docs-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-nav-title {
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 10px;
    margin: 8px 0 4px !important;
}

.docs-nav-link {
    background: none;
    border: none;
    text-align: left;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    cursor: pointer;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    font-family: inherit;
}

.docs-nav-link i { width: 15px; text-align: center; font-size: 0.8rem; opacity: 0.75; }

.docs-nav-link:hover { background: var(--surface-hover) !important; color: var(--text-primary) !important; }

.docs-nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.1)) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.12);
}

/* ---------- Main content ---------- */

.docs-content {
    padding: 0;
    overflow-y: auto;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.docs-banner {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 45%, #0891B2 100%);
    padding: 30px 36px 26px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.docs-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.docs-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.docs-banner h1 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.docs-banner p { margin: 0 0 20px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); line-height: 1.6; max-width: 640px; }

.docs-baseurl-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(3, 7, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 14px;
    backdrop-filter: blur(6px);
    max-width: 640px;
}

.docs-baseurl-bar .info-label { color: rgba(255, 255, 255, 0.6); }

.docs-baseurl-bar .info-url {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    color: #67E8F9 !important;
    word-break: break-all;
}

.docs-baseurl-bar .btn {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    white-space: nowrap;
    font-size: 0.72rem !important;
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
}

.docs-body { padding: 30px 36px 40px; }

.doc-section { display: none; animation: fadeIn 0.3s ease; }
.doc-section.active { display: block; }

.docs-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.docs-section-title i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.12));
    color: #6366F1;
}

.docs-desc { color: var(--text-secondary) !important; font-size: 0.92rem !important; line-height: 1.65 !important; margin-bottom: 24px !important; }

.docs-h2 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-h2::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #6366F1, #06B6D4); }

/* Quick start cards */

.docs-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px 0 8px;
}

.docs-quick-card {
    background: var(--surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.25s ease;
}

.docs-quick-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.35); box-shadow: var(--shadow-md); }

.docs-quick-card .qc-num {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.docs-quick-card h4 { margin: 0 0 6px; font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }
.docs-quick-card p { margin: 0; font-size: 0.78rem; line-height: 1.55; color: var(--text-muted); }

/* Callout */

.docs-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.docs-callout i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.docs-callout.info { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); }
.docs-callout.info i { color: #3B82F6; }
.docs-callout.warn { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.3); }
.docs-callout.warn i { color: #F59E0B; }

/* Endpoint card */

.docs-endpoint {
    background: var(--surface-soft) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 10px 0 4px;
}

.method-badge {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 4px 9px !important;
    border-radius: 7px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-badge.post {
    background: rgba(6, 182, 212, 0.14) !important;
    color: #0891B2 !important;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.endpoint-path {
    font-family: var(--font-mono) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    word-break: break-all;
}

.docs-endpoint .btn {
    margin-left: auto;
    white-space: nowrap;
}

/* Params table */

.docs-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 12px;
}

.docs-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem !important;
}

.docs-params-table th {
    background: var(--surface-soft) !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-params-table th,
.docs-params-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.docs-params-table tr:last-child td { border-bottom: none; }
.docs-params-table td { color: var(--text-primary) !important; }
.docs-params-table code {
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.78rem;
    color: var(--accent-primary) !important;
}

.required-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Response example */

.docs-response {
    margin-top: 14px;
    background: #0B1220;
    border: 1px solid #1E293B;
    border-radius: 14px;
    overflow: hidden;
}

.docs-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #1E293B;
}

.docs-response-header .resp-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }

.docs-response pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
}

.docs-response code {
    background: none !important;
    color: #A5F3FC !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
}

/* Steps list */

.docs-steps-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 14px 0 0;
}

.docs-steps-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.docs-steps-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.12);
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Integration code blocks */

.docs-code-block {
    position: relative;
    margin: 12px 0 22px;
    background: #0B1220;
    border: 1px solid #1E293B;
    border-radius: 14px;
    overflow: hidden;
}

.docs-code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #1E293B;
}

.docs-code-block-header .file-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94A3B8;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366F1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.6); }

.docs-code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.docs-code-block code { background: none !important; color: #E2E8F0 !important; font-size: 0.78rem !important; line-height: 1.6 !important; }

.btn-copy-code {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #CBD5E1 !important;
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-copy-code:hover { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; }

/* Auth method cards */

.docs-auth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 6px;
}

.docs-auth-card {
    background: var(--surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
}

.docs-auth-card .ac-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.docs-auth-card h4 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.docs-auth-card p { margin: 0 0 8px; font-size: 0.75rem; color: var(--text-muted); }
.docs-auth-card code {
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.75rem;
    color: var(--accent-primary) !important;
    font-family: var(--font-mono);
}

/* Pagination */

.docs-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.docs-pg-btn {
    background: var(--surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: inherit;
    min-width: 130px;
}

.docs-pg-btn:hover { border-color: rgba(99, 102, 241, 0.45); background: rgba(99, 102, 241, 0.06); transform: translateY(-2px); }

.docs-pg-btn.next { text-align: right; align-items: flex-end; margin-left: auto; }

.docs-pg-btn .pg-label { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.docs-pg-btn .pg-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.docs-pg-btn .pg-title i { font-size: 0.7rem; color: #6366F1; }
.docs-pg-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ---------- Code panel ---------- */

.docs-code-panel {
    background: #0B1220 !important;
    border-left: 1px solid #1E293B !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.code-panel-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #1E293B;
    font-size: 0.78rem;
    font-weight: 700;
    color: #E2E8F0;
    letter-spacing: 0.02em;
}

.code-panel-header i { color: #6366F1; }

.code-tabs {
    display: flex;
    background: transparent;
    border-bottom: 1px solid #1E293B;
    padding: 6px 12px;
    gap: 6px;
}

.code-tab-btn {
    background: none;
    border: none;
    color: #64748B;
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.25s ease;
    position: relative;
    font-family: inherit;
}

.code-tab-btn:hover { color: #F8FAFC; background: rgba(255, 255, 255, 0.04); }
.code-tab-btn.active { color: #3B82F6; background: rgba(59, 130, 246, 0.12); }

.code-content-wrapper { flex-grow: 1; overflow-y: auto; padding: 16px 18px; }

.code-block-item { display: none; flex-direction: column; gap: 10px; }
.code-block-item.active { display: flex; }

.code-title {
    font-size: 0.62rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.code-block-item pre {
    margin: 0;
    background: #050811 !important;
    border: 1px solid #1E293B !important;
    border-radius: 10px !important;
    padding: 16px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    overflow-x: auto;
}

.code-block-item code {
    background: none !important;
    color: #E2E8F0 !important;
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .docs-container { grid-template-columns: 230px minmax(0, 1fr) 340px; }
    .docs-auth-grid, .docs-quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .docs-container { grid-template-columns: 1fr; height: auto; }
    .docs-sidebar { border-right: none !important; border-bottom: 1px solid var(--border-color); }
    .docs-toggle-btn { display: flex; }
    .docs-sidebar-menu { display: flex; flex-direction: column; gap: 14px; }
    .docs-sidebar-menu.hidden { display: none; }
    .docs-code-panel { border-left: none !important; border-top: 1px solid #1E293B; max-height: 480px; }
    .docs-banner, .docs-body { padding-left: 22px; padding-right: 22px; }
}

/* Code blocks (kept dark in both themes) */
pre, code {
    font-family: var(--font-mono) !important;
}

pre {
    background: var(--pre-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

pre code { color: #E5E7EB !important; }

/* ------------------------------ Admin ------------------------------ */

.admin-stats-grid { gap: 20px !important; }

.admin-stats-grid .stat-card {
    background: var(--glass-gradient) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
}

.stat-icon {
    background: var(--accent-gradient) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.console-box {
    background: var(--console-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
}

.pagination-container button {
    background: var(--btn-ghost) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
}

.pagination-container button:hover,
.pagination-container button.active {
    background: var(--accent-gradient) !important;
    color: #fff !important;
}

/* ------------------------------ Notifications ------------------------------ */

.notifications-dropdown {
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(24px);
}

.notifications-header { border-color: var(--border-color) !important; }

/* ------------------------------ Footer ------------------------------ */

.main-footer {
    color: var(--text-muted) !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 24px 0 !important;
}

.main-footer a { color: var(--accent-secondary) !important; text-decoration: none; }

/* ------------------------------ Swal2 Theme ------------------------------ */

.swal2-popup {
    background: var(--swal-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--text-primary) !important;
}

.swal2-title { color: var(--text-primary) !important; font-weight: 800 !important; letter-spacing: -0.02em; }

.swal2-html-container { color: var(--text-secondary) !important; }

.swal2-popup input {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
}

.swal2-popup input:focus {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.swal2-confirm {
    background: var(--accent-gradient) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.swal2-cancel {
    background: var(--btn-ghost) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.swal2-timer-progress-bar { background: var(--accent-gradient) !important; }

/* ------------------------------ Scroll Progress + Back-to-top (enhance.js) ------------------------------ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    pointer-events: none;
}

#btn-back-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 9998;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: var(--dropdown-bg);
    backdrop-filter: blur(14px);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-md);
}

#btn-back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btn-back-top:hover {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, var(--surface-subtle) 25%, var(--surface-hover) 50%, var(--surface-subtle) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}


/* ------------------------------ Charts (bar CSS) ------------------------------ */

.chart-bars { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }

.chart-col {
    flex: 1 0 42px;
    min-width: 42px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.chart-bar-track {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--surface-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.chart-bar {
    width: 100%;
    min-height: 3px;
    border-radius: 8px 8px 4px 4px;
    transition: height 0.5s ease;
}

.chart-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

/* ------------------------------ Recent activity items ------------------------------ */

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.recent-item:hover { background: var(--surface-subtle); }

.recent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.recent-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.recent-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.recent-sub { font-size: 0.73rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.recent-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ------------------------------ Server monitoring ------------------------------ */

.monitor-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-subtle);
}

.monitor-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ------------------------------ Responsive ------------------------------ */


@media (max-width: 991px) {
    .docs-container { flex-direction: column !important; }
    .purchase-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 767px) {
    .dash-actions { grid-template-columns: repeat(2, 1fr) !important; }
    .monitor-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .auth-box { padding: 34px 22px !important; border-radius: 22px !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-card-value { font-size: 1.25rem !important; }
    .dashboard-header .section-title { font-size: 1.45rem !important; }
    .table-responsive { overflow-x: auto !important; }
    .bg-blob.b1 { width: 320px; height: 320px; top: -130px; left: -110px; }
    .bg-blob.b2 { width: 280px; height: 280px; top: 30%; right: -110px; }
    .bg-blob.b3 { width: 300px; height: 300px; bottom: -120px; left: -100px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ------------------------------ Reduced Motion ------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .bg-blob { animation: none; }
    .glass-card { transform: none !important; }
}
