@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap");

/* ==========================================================================
   1. GLOBAL THEMES & CSS VARIABLES (MATCHING YENI-TASARIM.JPEG)
   ========================================================================== */
:root,
[data-theme="green"] {
    --bg-main: #090e14;
    --bg-panel: #0d151e;
    --bg-card: #111c27;
    --bg-card-hover: #162432;
    --bg-surface-elevated: #152230;
    
    --primary: #10b981;
    --primary-neon: #22c55e;
    --primary-hover: #16a34a;
    --primary-dark: #065f46;
    --primary-light: rgba(34, 197, 94, 0.12);
    --primary-glow: rgba(34, 197, 94, 0.3);
    --primary-gradient: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --primary-btn-text: #021a0d;
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.25);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.25);
    --accent-orange: #f97316;
    --accent-orange-glow: rgba(249, 115, 22, 0.25);
    --accent-gold: #eab308;
    --accent-gold-glow: rgba(234, 179, 8, 0.25);

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-card: rgba(34, 197, 94, 0.16);
    --border-card-hover: rgba(34, 197, 94, 0.45);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.15);
    --neutral: #94a3b8;
    --neutral-bg: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.75);
    --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.25);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(34, 197, 94, 0.03);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
}

[data-theme="navy"] {
    --bg-main: #070d18;
    --bg-panel: #0b1322;
    --bg-card: #101c30;
    --bg-card-hover: #162640;
    --bg-surface-elevated: #15243d;
    --primary: #0284c7;
    --primary-neon: #38bdf8;
    --primary-hover: #0369a1;
    --primary-dark: #075985;
    --primary-light: rgba(56, 189, 248, 0.12);
    --primary-glow: rgba(56, 189, 248, 0.3);
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --primary-btn-text: #02121e;
    --border-card: rgba(56, 189, 248, 0.18);
    --border-card-hover: rgba(56, 189, 248, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(56, 189, 248, 0.03);
}

[data-theme="purple"] {
    --bg-main: #0c0817;
    --bg-panel: #110d20;
    --bg-card: #18132d;
    --bg-card-hover: #221b3e;
    --bg-surface-elevated: #1f173b;
    --primary: #9333ea;
    --primary-neon: #c084fc;
    --primary-hover: #7e22ce;
    --primary-dark: #581c87;
    --primary-light: rgba(192, 132, 252, 0.12);
    --primary-glow: rgba(192, 132, 252, 0.3);
    --primary-gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
    --primary-btn-text: #130221;
    --border-card: rgba(192, 132, 252, 0.18);
    --border-card-hover: rgba(192, 132, 252, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(192, 132, 252, 0.03);
}

[data-theme="gold"] {
    --bg-main: #110e07;
    --bg-panel: #17130a;
    --bg-card: #201a0e;
    --bg-card-hover: #2c2414;
    --bg-surface-elevated: #282012;
    --primary: #ca8a04;
    --primary-neon: #facc15;
    --primary-hover: #a16207;
    --primary-dark: #713f12;
    --primary-light: rgba(250, 204, 21, 0.12);
    --primary-glow: rgba(250, 204, 21, 0.3);
    --primary-gradient: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    --primary-btn-text: #1c1301;
    --border-card: rgba(250, 204, 21, 0.18);
    --border-card-hover: rgba(250, 204, 21, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(250, 204, 21, 0.03);
}

[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-surface-elevated: #f1f5f9;
    --primary: #059669;
    --primary-neon: #10b981;
    --primary-hover: #047857;
    --primary-dark: #064e3b;
    --primary-light: rgba(16, 185, 129, 0.12);
    --primary-glow: rgba(16, 185, 129, 0.2);
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --primary-btn-text: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --border-card: rgba(16, 185, 129, 0.22);
    --border-card-hover: rgba(16, 185, 129, 0.45);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hidden { display: none !important; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 4rem;
    width: 100%;
}

.text-neon { color: var(--primary-neon) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 0.5rem; }

.link-like {
    cursor: pointer;
    text-decoration: underline dotted;
    color: var(--primary-neon);
}
.link-like:hover {
    color: var(--text-main);
}

/* ==========================================================================
   2. TOP SPORTS TICKER & PUBLIC LANDING NAVBAR
   ========================================================================== */
.top-ticker-bar {
    background: linear-gradient(90deg, #071018 0%, #0d1e15 50%, #071018 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    position: relative;
    z-index: 101;
    font-size: 0.8rem;
    font-weight: 700;
}

.ticker-live-badge {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ffffff;
    animation: pulseGlow 1.4s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-content-track {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-left: 1.25rem;
    animation: tickerScroll 45s linear infinite;
}

.ticker-content-track:hover .ticker-items {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #e2e8f0;
}

.ticker-sep {
    color: rgba(255, 255, 255, 0.2);
}

.ticker-min {
    color: #22c55e;
    font-size: 0.72rem;
    background: rgba(34, 197, 94, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.ticker-odds {
    color: #94a3b8;
    font-weight: 600;
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
}

.badge-upcoming {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
}

.badge-jackpot {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
}

.badge-open {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
}

.badge-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 800;
}

/* NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 14, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.site-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #13271d 0%, #0c1a13 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--text-main);
}

.logo-text-sub {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-neon);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.dealer-license-tag {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.dealer-city-tag {
    color: #94a3b8;
}

.site-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-neon);
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulseGlow 1.8s infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.4rem 0.2rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-neon);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-nav-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25d366 !important;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    transform: translateY(-1px);
}

.btn-nav-login {
    background: var(--primary-gradient);
    color: var(--primary-btn-text) !important;
    padding: 0.5rem 1.15rem;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.08);
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-drawer-overlay,
.mobile-drawer-menu {
    display: none;
}

/* ==========================================================================
   3. MODERN AUTHENTICATED HEADER (MATCHING YENI-TASARIM.JPEG)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#btnMobileDrawer {
    display: none;
}

.brand-logo-combo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon-leaf {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #153323 0%, #0d2116 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    box-shadow: 0 0 18px var(--primary-glow);
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.brand-text-main {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text-main);
    line-height: 1.15;
}

.brand-text-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-neon);
    text-transform: uppercase;
}

.header-greeting {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-greeting strong {
    color: var(--text-main);
    font-weight: 800;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-neon);
}

.btn-sync-header {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    padding: 0.48rem 1.1rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 2px 12px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-sync-header:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.icon-btn-header {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.icon-btn-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.notification-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary-neon);
    color: #021a0d;
    font-size: 0.68rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--primary-neon);
}

/* ==========================================================================
   4. NOTIFICATIONS DROPDOWN POPUP
   ========================================================================== */
.notifications-dropdown {
    position: absolute;
    top: 58px;
    right: 20px;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: fadeInSlideDown 0.2s ease;
}

.notifications-dropdown.active {
    display: block;
}

.notifications-header {
    padding: 0.9rem 1.1rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-row {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: background 0.15s ease;
}

.notification-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   5. DESKTOP SIDEBAR & LAYOUT (MATCHING YENI-TASARIM.JPEG)
   ========================================================================== */
.admin-layout {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 0.85rem 0.75rem 1.25rem;
    position: sticky;
    top: 57px;
    align-self: flex-start;
    height: calc(100vh - 57px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    transform: translateX(3px);
}

.sidebar-link.active {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-weight: 800;
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateX(3px);
}

.sidebar-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    opacity: 0.9;
    transition: all 0.18s ease;
}

.sidebar-link:hover svg,
.sidebar-link.active svg {
    opacity: 1;
    transform: scale(1.05);
}

.sidebar-link .badge-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0;
}

/* Sidebar Dropdowns & Submenus */
.sidebar-menu-group, .drawer-menu-group {
    display: flex;
    flex-direction: column;
}

.sidebar-dropdown-toggle, .drawer-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.sidebar-dropdown-toggle .dropdown-chevron, .drawer-dropdown-toggle .dropdown-chevron {
    margin-left: auto;
    width: 15px;
    height: 15px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.sidebar-menu-group.open .sidebar-dropdown-toggle .dropdown-chevron,
.drawer-menu-group.open .drawer-dropdown-toggle .dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary-neon);
}

.sidebar-submenu, .drawer-submenu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 0 0.35rem 1.1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    margin: 0.2rem 0 0.4rem 1.25rem;
}

.sidebar-menu-group.open .sidebar-submenu,
.drawer-menu-group.open .drawer-submenu {
    display: flex;
}

.sidebar-sublink, .drawer-sublink {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-sublink .sublink-dot, .drawer-sublink .sublink-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.sidebar-sublink:hover, .drawer-sublink:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.sidebar-sublink:hover .sublink-dot, .drawer-sublink:hover .sublink-dot {
    background: var(--primary-neon);
}

.sidebar-sublink.active, .drawer-sublink.active {
    color: var(--text-main);
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    font-weight: 700;
    transform: translateX(3px);
}

.sidebar-sublink.active .sublink-dot, .drawer-sublink.active .sublink-dot {
    background: var(--primary-neon);
    box-shadow: 0 0 8px var(--primary-neon);
}

.sidebar-sublink .badge-count, .drawer-sublink .badge-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.sidebar-bottom-widgets {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.bayi-kodu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bayi-kodu-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bayi-kodu-value {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.bayi-kodu-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--primary-neon);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bayi-kodu-copy-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-neon);
}

.sidebar-user-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.75rem 4rem;
    overflow-x: hidden;
}

/* ==========================================================================
   6. TOP 4-STAT / 5-STAT / 6-STAT KPI GRID
   ========================================================================== */
.top-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 115px;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.kpi-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.kpi-card-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-box.green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary-neon);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kpi-icon-box.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.kpi-icon-box.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.kpi-icon-box.orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.kpi-icon-box.gold {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.kpi-icon-box.red {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.kpi-card-clickable {
    cursor: pointer;
}

.kpi-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kpi-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-trend-row {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.kpi-trend-tag {
    color: var(--primary-neon);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.kpi-trend-tag.down {
    color: var(--danger);
}

.kpi-trend-desc {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ==========================================================================
   7. MIDDLE ROW GRID (CHARTS, DONUTS, ANNOUNCEMENTS)
   ========================================================================== */
.dashboard-grid-middle {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.3fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.card-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-period-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    height: 220px;
}

.canvas-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.donut-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.76rem;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.donut-legend-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-weight: 600;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend-val {
    font-weight: 800;
    color: var(--text-main);
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all 0.15s ease;
}

.announcement-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-card);
}

.announcement-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.announcement-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
}

.announcement-time {
    font-size: 0.7rem;
    color: var(--text-faint);
}

.announcement-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   8. BOTTOM ROW GRID (RECENT CUSTOMERS, POPULAR TIPSTERS, BAYI STATS, DONUT)
   ========================================================================== */
.dashboard-grid-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 1.1fr 1.1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.mini-table th {
    text-align: left;
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.mini-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-weight: 600;
}

.mini-table tr:last-child td {
    border-bottom: none;
}

.user-mini-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary-neon);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-status-neon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary-neon);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.bayi-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bayi-stat-row {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bayi-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.bayi-stat-val-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bayi-stat-val {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-main);
}

/* ==========================================================================
   9. QUICK STATS STRIP (FOOTER SUMMARY BAR IN YENI-TASARIM.JPEG)
   ========================================================================== */
.quick-stats-strip {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-right: 1px solid var(--border);
    padding-right: 0.75rem;
}

.strip-item:last-child {
    border-right: none;
    padding-right: 0;
}

.strip-icon {
    font-size: 1.25rem;
    color: var(--primary-neon);
}

.strip-info {
    min-width: 0;
}

.strip-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.strip-val {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.strip-trend {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary-neon);
    margin-left: 0.35rem;
}

/* ==========================================================================
   10. EK ÖZELLİKLER & THEMES SECTION (MATCHING YENI-TASARIM.JPEG)
   ========================================================================== */
.dashboard-grid-extras {
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.extra-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.feature-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.feature-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-neon);
    transform: translateY(-2px);
}

.feature-tile-icon {
    font-size: 1.3rem;
    color: var(--primary-neon);
}

.feature-tile-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
}

.theme-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.theme-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: var(--primary-neon);
    box-shadow: 0 0 14px var(--primary-glow);
}

.theme-preview-box {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 3px;
}

.theme-preview-box.green { background: #0b1118; border-color: #22c55e; }
.theme-preview-box.navy { background: #0a0f1d; border-color: #38bdf8; }
.theme-preview-box.purple { background: #0e0a1a; border-color: #c084fc; }
.theme-preview-box.gold { background: #141108; border-color: #facc15; }
.theme-preview-box.light { background: #f8fafc; border-color: #10b981; }

.preview-bar {
    height: 6px;
    border-radius: 3px;
    width: 70%;
}

.theme-card-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
}

/* ==========================================================================
   11. MOBILE VIEW COMPONENTS (MATCHING YENI-TASARIM.JPEG RIGHT SIDE)
   ========================================================================== */
.mobile-view-only {
    display: none;
}

.mobile-sync-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}

.mobile-sync-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.mobile-sync-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-sync-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.mobile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.mobile-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 0.75rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mobile-action-btn:hover {
    border-color: var(--primary-neon);
}

.mobile-action-icon {
    font-size: 1.2rem;
    color: var(--primary-neon);
}

.mobile-action-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-main);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
}

.mobile-nav-item.active {
    color: var(--primary-neon);
}

.mobile-nav-item.active svg {
    filter: drop-shadow(0 0 6px var(--primary-neon));
}

/* ==========================================================================
   12. LOGIN MODAL (MATCHING YENI-TASARIM.JPEG BOTTOM RIGHT)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--primary-glow);
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header-v2 {
    background: linear-gradient(135deg, #102117 0%, #08140e 100%);
    padding: 2rem 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.modal-logo-badge {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, #183824 0%, #0c2014 100%);
    border: 2px solid rgba(34, 197, 94, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    box-shadow: 0 0 30px var(--primary-glow);
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0;
}

.modal-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.modal-title-v2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.modal-subtitle-v2 {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.75rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon-left {
    position: absolute;
    left: 1rem;
    color: var(--text-faint);
    pointer-events: none;
}

.input-icon-wrapper .input-icon-right {
    position: absolute;
    right: 1rem;
    color: var(--text-faint);
    cursor: pointer;
}

.input-icon-wrapper .form-control {
    padding-left: 2.85rem;
    padding-right: 2.85rem;
}

.login-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
}

.custom-checkbox-label input {
    accent-color: var(--primary-neon);
    width: 16px;
    height: 16px;
}

.forgot-password-link {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 700;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   13. STANDARD CARDS, FORMS & TABLES
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -0.65rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-neon);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-faint);
}

select.form-control {
    background-color: var(--bg-card);
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text-main);
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    align-items: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1.1rem;
    height: 42px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 18px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-neon);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--text-main);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px var(--danger-bg);
}

.btn-danger:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 18px var(--danger-bg);
    transform: translateY(-1px);
}

.btn-danger-ghost {
    background: transparent;
    color: #f87171;
    border: 1px solid transparent;
    height: 32px;
    padding: 0 0.7rem;
    font-size: 0.8rem;
    border-radius: 6px;
}
.btn-danger-ghost:hover {
    background: var(--danger-bg);
}

.btn-sm {
    height: 34px;
    padding: 0 0.8rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main) !important;
    padding: 0.85rem 1rem;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--border-card);
    white-space: nowrap;
}

.sortable-th { cursor: pointer; user-select: none; }
.sortable-th:hover { color: var(--primary-neon) !important; }

.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: rgba(255, 255, 255, 0.04) !important; }

.table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.table code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace, ui-monospace, monospace;
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
    display: inline-block;
}

.phone-last4 {
    color: #f97316 !important; /* Vibrant Neon Orange */
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.55);
}

.tab-bar {
    display: flex;
    gap: 0.45rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 0.45rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-weight: 900;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: var(--neutral-bg);
    color: var(--neutral);
    border: 1px solid var(--border);
}
.badge-active, .badge-success {
    background: var(--success-bg);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}
.badge-passive, .badge-error, .badge-failed, .badge-not_found {
    background: var(--danger-bg);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}
.badge-pending, .badge-otp_required, .badge-otp_submitted, .badge-decrease_detected {
    background: var(--warning-bg);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.alert-otp {
    background: linear-gradient(135deg, rgba(50, 35, 10, 0.9) 0%, rgba(30, 20, 5, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #fef3c7;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.alert-otp strong { color: #fbbf24; }

.empty-state {
    text-align: center;
    color: var(--text-faint);
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 0.5rem 0.2rem;
}
.pagination-btn {
    height: 34px;
    padding: 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s;
}
.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-neon);
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   14. MOBILE DRAWER
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-panel);
    z-index: 1600;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--border);
}
.dashboard-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    background: var(--bg-card);
    padding: 1.25rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.drawer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    color: var(--primary-btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
}
.drawer-username {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}
.drawer-role {
    font-size: 0.74rem;
    color: var(--primary-neon);
    font-weight: 700;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.65rem;
}
.drawer-group-title {
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-neon);
    padding: 0.9rem 0.75rem 0.4rem;
}
.drawer-group-title:first-child { padding-top: 0.2rem; }

.sidebar-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #64748b;
    padding: 0.85rem 0.85rem 0.35rem;
    margin-top: 0.25rem;
}
.sidebar-group-title:first-child {
    padding-top: 0.1rem;
    margin-top: 0;
}
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}
.drawer-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.drawer-nav-item.active {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-weight: 800;
}
.drawer-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

/* ==========================================================================
   15. TOAST NOTIFICATIONS (Toastify-js, see web/static/vendor/toastify.min.*)
   ========================================================================== */
.toastify.app-toast {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.8));
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    max-width: min(420px, calc(100vw - 2.5rem));
}

.toastify.app-toast.toast-success { border-left: 4px solid var(--success); }
.toastify.app-toast.toast-error { border-left: 4px solid var(--danger); }
.toastify.app-toast.toast-warning { border-left: 4px solid var(--warning); }
.toastify.app-toast.toast-info { border-left: 4px solid var(--info); }

.toastify.app-toast .toast-close {
    background: transparent;
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 0.95rem;
}
.toastify.app-toast .toast-close:hover { opacity: 1; }

@keyframes fadeInSlideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.confirm-modal-dialog {
    max-width: 380px;
}

.confirm-modal-body {
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.85rem;
}

.confirm-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.confirm-modal-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.6rem;
    white-space: pre-line;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.confirm-modal-actions .btn {
    flex: 1;
}

/* ==========================================================================
   16. PUBLIC LANDING WEBSITE BASE STYLES
   ========================================================================== */
#landingView {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.25rem 6rem;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(9, 14, 20, 0) 70%),
                linear-gradient(180deg, rgba(9, 14, 20, 0.4) 0%, #090e14 100%);
}

.hero-glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.hero-glow-1 {
    width: 450px;
    height: 450px;
    background: rgba(34, 197, 94, 0.12);
    top: -80px;
    left: 20%;
}

.hero-glow-2 {
    width: 350px;
    height: 350px;
    background: rgba(6, 182, 212, 0.09);
    top: 30%;
    right: 15%;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(13, 27, 20, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.badge-official-shield {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: #021a0d;
    font-weight: 900;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 950px;
    color: #ffffff;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #22c55e 0%, #38bdf8 50%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #cbd5e1;
    max-width: 820px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-desc strong {
    color: #ffffff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-weight: 900;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--primary-glow);
    filter: brightness(1.08);
}

.btn-hero-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

.btn-hero-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.hero-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.hero-hl-card {
    background: rgba(17, 28, 39, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.hero-hl-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.hero-hl-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
}

.hl-green { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); }
.hl-cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.hl-gold { background: rgba(234, 179, 8, 0.15); border: 1px solid rgba(234, 179, 8, 0.3); }
.hl-purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); }

.hero-hl-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.hero-hl-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Base Sections */
.section-wrapper {
    padding: 5rem 1.25rem;
    position: relative;
}

.section-wrapper .container {
    padding: 0 !important;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-wrapper-alt {
    background: rgba(8, 14, 21, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary-light);
    border: 1px solid var(--border-card);
    color: var(--primary-neon);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.02rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* About & Dealer Card */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-content p strong {
    color: var(--text-main);
}

.about-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding: 0;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.about-features-list li svg {
    color: var(--primary-neon);
    flex-shrink: 0;
}

.dealer-info-card {
    background: var(--bg-card);
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: 22px;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.dealer-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.dealer-card-badge {
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    font-size: 0.74rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.dealer-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 2px solid rgba(34, 197, 94, 0.5);
    object-fit: cover;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
}

.dealer-card-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.dealer-card-officer {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.dealer-details-table {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.dealer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.dealer-row-label { color: #94a3b8; }
.dealer-row-val { font-weight: 800; color: var(--text-main); }

.dealer-code-highlight {
    color: var(--primary-neon) !important;
    font-size: 1.15rem !important;
}

.dealer-phone-link {
    color: var(--text-main);
    text-decoration: none;
}
.dealer-phone-link:hover {
    color: var(--primary-neon);
}

.dealer-card-footer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-dealer-call {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.88rem;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-dealer-wa {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
    font-weight: 800;
    font-size: 0.88rem;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Services & Games Grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.15);
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.65;
    flex-grow: 1;
}

.service-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-neon);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* Why Choose Us Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.why-icon {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.why-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.why-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.contact-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.2rem;
}

.contact-text-val a {
    color: inherit;
    text-decoration: none;
}

.contact-sub-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.contact-map-link {
    display: inline-block;
    color: var(--primary-neon);
    font-size: 0.84rem;
    font-weight: 800;
    margin-top: 0.35rem;
    text-decoration: none;
}

.map-container {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(34, 197, 94, 0.35);
}

.faq-question {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-arrow {
    font-size: 1.1rem;
    color: var(--primary-neon);
    transition: transform 0.2s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0.85rem;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer Section */
.site-footer {
    background: #070c12;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 1.25rem 0;
    color: #94a3b8;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    object-fit: cover;
}

.footer-brand-name {
    font-size: 1.05rem;
    color: #ffffff;
    display: block;
}

.footer-brand-lic {
    font-size: 0.78rem;
    color: var(--primary-neon);
    margin-top: 0.15rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
}

.footer-links-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--primary-neon);
}

.footer-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

.badge-18 {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.footer-legal-text {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.25rem;
    background: #05080c;
}

.footer-bottom-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-bottom-badges {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* ==========================================================================
   17. COMPREHENSIVE RESPONSIVE ENGINE (MOBILE & TABLET OVERRIDES)
   ========================================================================== */
@media (max-width: 1280px) {
    .top-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dashboard-grid-middle,
    .dashboard-grid-bottom {
        grid-template-columns: 1fr 1fr;
    }
    .quick-stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .dashboard-grid-extras {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    /* Authenticated Layout */
    .admin-sidebar {
        display: none !important;
    }
    .nav-desktop-only {
        display: none !important;
    }
    #btnMobileDrawer {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--text-main);
        cursor: pointer;
        flex-shrink: 0;
    }
    .admin-content {
        padding: 0.85rem 0.75rem calc(4.8rem + env(safe-area-inset-bottom)) !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    .top-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem;
    }
    .top-kpi-grid > .kpi-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .dashboard-grid-middle,
    .dashboard-grid-bottom,
    .dashboard-grid-extras {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .mobile-bottom-nav.hidden {
        display: none !important;
    }

    /* Public Website Header (Mobile) */
    .site-nav-container {
        padding: 0.65rem 1rem !important;
    }
    .logo-badge {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    .logo-text-title {
        font-size: 0.95rem !important;
    }
    .logo-text-sub {
        font-size: 0.62rem !important;
    }
    .site-status-pill {
        display: none !important;
    }
    .btn-nav-whatsapp span {
        display: none !important;
    }
    .btn-nav-whatsapp {
        padding: 0.45rem 0.55rem !important;
        width: 38px;
        height: 38px;
        border-radius: 10px !important;
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    /* Public Mobile Navigation Drawer */
    .nav-desktop-links {
        display: none !important;
    }

    .mobile-drawer-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        z-index: 9998 !important;
    }

    .mobile-drawer-overlay.open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-drawer-menu {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 86% !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #080e15 !important;
        border-left: 1px solid rgba(34, 197, 94, 0.35) !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.95) !important;
        z-index: 9999 !important;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow: hidden !important;
    }

    .mobile-drawer-menu.open {
        right: 0 !important;
    }

    .mobile-drawer-header {
        padding: 0.9rem 1.15rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: rgba(13, 21, 30, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .btn-drawer-close {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-size: 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .btn-drawer-close:hover,
    .btn-drawer-close:active {
        background: rgba(239, 68, 68, 0.2) !important;
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }

    .mobile-drawer-body {
        padding: 1.15rem !important;
        overflow-y: auto !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .drawer-nav-label {
        font-size: 0.72rem !important;
        font-weight: 900 !important;
        color: #64748b !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        margin-bottom: -0.5rem !important;
    }

    .mobile-drawer-links {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }

    .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.85rem 1rem !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        transition: all 0.18s ease !important;
    }

    .mobile-nav-link .nav-icon {
        font-size: 1.15rem !important;
        margin-right: 0.65rem !important;
    }

    .mobile-nav-link .nav-chevron {
        color: #64748b !important;
        font-size: 1.2rem !important;
        font-weight: 300 !important;
        margin-left: auto !important;
    }

    .mobile-nav-link:active,
    .mobile-nav-link:hover {
        background: rgba(34, 197, 94, 0.12) !important;
        border-color: var(--primary-neon) !important;
        color: var(--primary-neon) !important;
    }

    .mobile-nav-link:active .nav-chevron,
    .mobile-nav-link:hover .nav-chevron {
        color: var(--primary-neon) !important;
    }

    .mobile-drawer-quick-contact {
        background: rgba(13, 21, 30, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 14px !important;
        padding: 1rem !important;
        margin-top: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .drawer-contact-title {
        font-size: 0.72rem !important;
        font-weight: 900 !important;
        color: #94a3b8 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
    }

    .drawer-btns-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .btn-drawer-call {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        height: 40px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
    }

    .btn-drawer-wa {
        background: rgba(37, 211, 102, 0.15) !important;
        border: 1px solid rgba(37, 211, 102, 0.4) !important;
        color: #25d366 !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        height: 40px !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
    }

    .drawer-working-hours {
        font-size: 0.76rem !important;
        color: #22c55e !important;
        text-align: center !important;
    }

    /* Landing Grids Collapse */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2.25rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    /* Hero Section on Mobile */
    .hero-section {
        padding: 2.5rem 1rem 3rem !important;
    }
    .hero-glow-1 {
        width: 250px;
        height: 250px;
        left: -50px;
        top: 0;
    }
    .hero-glow-2 {
        width: 200px;
        height: 200px;
        right: -50px;
    }
    .hero-badge {
        font-size: 0.72rem !important;
        padding: 0.35rem 0.75rem !important;
        margin-bottom: 1.25rem !important;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }
    .hero-desc {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1.75rem !important;
    }
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin-bottom: 2.25rem !important;
    }
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-outline {
        width: 100% !important;
        justify-content: center !important;
        height: 48px !important;
        font-size: 0.95rem !important;
        padding: 0.75rem 1rem !important;
    }
    .hero-highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .hero-hl-card {
        padding: 1.15rem 1rem !important;
        border-radius: 14px !important;
    }
    .hero-hl-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }
    .hero-hl-title {
        font-size: 0.98rem !important;
    }
    .hero-hl-desc {
        font-size: 0.84rem !important;
    }

    /* Section Headers */
    .section-wrapper {
        padding: 3.5rem 1rem !important;
    }
    .section-header {
        margin-bottom: 2rem !important;
    }
    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }
    .section-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* Cards on Mobile */
    .service-card {
        padding: 1.35rem 1.15rem !important;
        border-radius: 16px !important;
    }
    .service-icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
        border-radius: 12px !important;
    }
    .service-title {
        font-size: 1.08rem !important;
    }
    .service-desc {
        font-size: 0.88rem !important;
    }

    .why-card {
        padding: 1.35rem 1.15rem !important;
        border-radius: 16px !important;
    }
    .why-icon {
        font-size: 1.8rem !important;
    }
    .why-title {
        font-size: 1.08rem !important;
    }
    .why-desc {
        font-size: 0.88rem !important;
    }

    /* Dealer Card */
    .dealer-info-card {
        padding: 1.35rem 1.15rem !important;
        border-radius: 18px !important;
    }
    .dealer-card-logo {
        width: 52px !important;
        height: 52px !important;
    }
    .dealer-card-title {
        font-size: 1.15rem !important;
    }
    .dealer-card-officer {
        font-size: 0.84rem !important;
        margin-bottom: 1rem !important;
    }
    .dealer-details-table {
        gap: 0.65rem !important;
        padding-top: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    .dealer-row {
        font-size: 0.82rem !important;
    }
    .dealer-card-footer-btns {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .btn-dealer-call,
    .btn-dealer-wa {
        height: 40px !important;
        font-size: 0.84rem !important;
    }

    /* Contact Section */
    .contact-info-list {
        gap: 1.1rem !important;
    }
    .contact-icon-box {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
    }
    .contact-text-title {
        font-size: 0.74rem !important;
    }
    .contact-text-val {
        font-size: 0.95rem !important;
    }
    .contact-sub-text {
        font-size: 0.78rem !important;
    }
    .map-container {
        height: 240px !important;
        border-radius: 16px !important;
    }

    /* FAQ List */
    .faq-list {
        gap: 0.65rem !important;
    }
    .faq-item {
        padding: 1rem 1.15rem !important;
        border-radius: 12px !important;
    }
    .faq-question {
        font-size: 0.92rem !important;
    }
    .faq-answer {
        font-size: 0.86rem !important;
        line-height: 1.6 !important;
    }

    /* Footer */
    .footer-bottom-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    /* Login Modal on Mobile */
    .modal-backdrop {
        padding: 0.75rem !important;
    }
    .modal-dialog {
        width: 100% !important;
        max-width: 380px !important;
        margin: auto !important;
        border-radius: 18px !important;
    }
    .modal-header-v2 {
        padding: 1.35rem 1rem 0.9rem !important;
    }
    .modal-logo-badge {
        width: 68px !important;
        height: 68px !important;
        border-radius: 16px !important;
        margin-bottom: 0.6rem !important;
    }
    .modal-title-v2 {
        font-size: 1.15rem !important;
    }
    .modal-body {
        padding: 1rem 0.9rem 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .top-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .top-kpi-grid > .kpi-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }
    .kpi-card {
        padding: 0.75rem 0.65rem 0.65rem !important;
        min-height: 90px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .kpi-card-top {
        gap: 0.5rem !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .kpi-icon-box {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
    }
    .kpi-icon-box svg {
        width: 18px !important;
        height: 18px !important;
    }
    .kpi-info {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .kpi-title {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.15rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
    }
    .kpi-value {
        font-size: 1.12rem !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .kpi-trend-row {
        margin-top: 0.4rem !important;
        font-size: 0.64rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }
    .kpi-trend-tag {
        font-size: 0.62rem !important;
        padding: 0.08rem 0.28rem !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .kpi-trend-desc {
        font-size: 0.63rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }
    .admin-welcome-banner,
    .tipster-welcome-banner {
        padding: 0.85rem 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 14px !important;
        gap: 0.75rem !important;
    }
    .admin-welcome-banner img,
    .tipster-welcome-banner img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
    }
    .card-widget {
        padding: 0.95rem 0.85rem !important;
        border-radius: 14px !important;
    }
    .card-widget-header {
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    .card-widget-title {
        font-size: 0.88rem !important;
        gap: 0.35rem !important;
    }
    .card-widget-title svg {
        width: 16px !important;
        height: 16px !important;
    }
    .chart-period-selector,
    .widget-period-select {
        font-size: 0.72rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    .period-btn {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.72rem !important;
    }
    .chart-canvas-container {
        height: 195px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .top-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }
    .kpi-card {
        padding: 0.65rem 0.55rem 0.55rem !important;
        min-height: 85px !important;
    }
    .kpi-card-top {
        gap: 0.4rem !important;
    }
    .kpi-icon-box {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        border-radius: 8px !important;
    }
    .kpi-icon-box svg {
        width: 16px !important;
        height: 16px !important;
    }
    .kpi-title {
        font-size: 0.68rem !important;
    }
    .kpi-value {
        font-size: 1.02rem !important;
    }
    .kpi-trend-row {
        margin-top: 0.35rem !important;
        font-size: 0.60rem !important;
    }
}

@media (max-width: 380px) {
    .top-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
    }
    .kpi-card {
        padding: 0.6rem 0.45rem 0.45rem !important;
    }
    .kpi-card-top {
        gap: 0.35rem !important;
    }
    .kpi-icon-box {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        border-radius: 6px !important;
    }
    .kpi-icon-box svg {
        width: 14px !important;
        height: 14px !important;
    }
    .kpi-title {
        font-size: 0.62rem !important;
    }
    .kpi-value {
        font-size: 0.92rem !important;
    }
    .kpi-trend-row {
        display: none !important;
    }
    .dealer-card-footer-btns {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: 1.55rem !important;
    }
    .brand-text-main {
        font-size: 0.82rem !important;
    }
}




/* ==========================================================================
   TIPSTER FIRST-LOGIN ONBOARDING TOUR (see startTipsterTour() in app.js)
   ========================================================================== */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
}
.tour-overlay.hidden { display: none; }

.tour-highlight {
    position: fixed;
    z-index: 20001;
    pointer-events: none;
    border-radius: 14px;
    box-shadow: 0 0 0 4px var(--primary-neon), 0 0 0 9999px rgba(4, 8, 12, 0.8);
    transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
}

.tour-tooltip {
    position: fixed;
    z-index: 20002;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: var(--bg-card);
    border: 1px solid var(--border-card-hover);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: top 0.28s ease, left 0.28s ease;
}

.tour-tooltip-step {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-neon);
    margin-bottom: 0.4rem;
}

.tour-tooltip-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.4rem;
}

.tour-tooltip-text {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.tour-tooltip-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tour-skip-link {
    font-size: 0.78rem;
    color: var(--text-faint);
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}
.tour-skip-link:hover { color: var(--danger); }

.tour-help-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--primary-btn-text);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    z-index: 500;
}
.tour-help-fab.hidden { display: none; }

/* Matches the app's own sidebar-hide / bottom-nav-show breakpoint (see
   .admin-sidebar and .mobile-bottom-nav at max-width:992px) - the tooltip's
   "mobile mode" JS check (positionTourUI) uses the same 992px so a tablet-
   width screen doesn't fall between the two rules. */
@media (max-width: 992px) {
    .tour-tooltip {
        left: 1rem !important;
        right: 1rem;
        width: auto;
        bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
        top: auto !important;
    }
    .tour-help-fab {
        bottom: calc(5.75rem + env(safe-area-inset-bottom));
        right: 1rem;
    }
}

/* ==========================================================================
   NOTIFICATION CENTER (navbar bell) - replaces the SMS alerts removed
   2026-09-01 (owner request). See toggleNotifPanel()/loadNotifications() in
   app.js.
   ========================================================================== */
.notif-bell-wrap {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-panel);
}
.notif-badge.hidden { display: none; }

.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 2rem);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card-hover);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 400;
    overflow: hidden;
}
.notif-panel.hidden { display: none; }

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
    flex-shrink: 0;
}

.notif-panel-header a {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-neon);
    text-decoration: none;
    cursor: pointer;
}
.notif-panel-header a:hover { text-decoration: underline; }

.notif-list {
    overflow-y: auto;
    flex-grow: 1;
}

.notif-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.notif-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card-hover); }

.notif-item.unread {
    background: var(--primary-light);
}

.notif-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-neon);
    margin-top: 0.4rem;
    flex-shrink: 0;
}
.notif-item.read .notif-item-dot {
    background: transparent;
}

.notif-item-body { flex-grow: 1; min-width: 0; }

.notif-item-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.notif-item-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    word-break: break-word;
}

.notif-item-time {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}

@media (max-width: 640px) {
    .notif-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 75vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}
