/* ==========================================================================
   ANJANEYA BOREWELLS — ENTERPRISE COMMAND CENTER HQ (v3.5.0)
   Executive Dark Slate & Glassmorphism Theme
   Designed & Developed by Mani Raja (+91-8300030123)
   ========================================================================== */

:root {
    --bg-base: #060a12;
    --bg-surface: #0b1220;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.35);
    
    --accent-emerald: #10b981;
    --accent-green: #22c55e;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.2);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.2);
}

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

body.admin-body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #070d1a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ==========================================================================
   TOP EXECUTIVE HEADER & NAVIGATION BAR
   ========================================================================== */
.admin-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 10, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand Section */
.brand-group {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.brand-radar-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.5);
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-main-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-enterprise {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #022c22;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Status Capsules */
.status-capsules-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.capsule-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.capsule-sync {
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.beacon-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.capsule-clock {
    font-family: var(--font-mono);
    color: #cbd5e1;
}

.capsule-admin {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

/* Top Action Buttons */
.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-primary);
}

.ctrl-btn:hover {
    transform: translateY(-1px);
}

.btn-sync {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.btn-sync:hover {
    background: rgba(16, 185, 129, 0.22);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.btn-export {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: #67e8f9;
}
.btn-export:hover {
    background: rgba(6, 182, 212, 0.22);
}

.btn-cache {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}
.btn-cache:hover {
    background: rgba(245, 158, 11, 0.2);
}

.btn-website {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}
.btn-website:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-logout {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fda4af;
}
.btn-logout:hover {
    background: rgba(244, 63, 94, 0.22);
}

/* Export Dropdown */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-item small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FLOATING PILL NAVIGATION BAR (Stripe & Apple Style)
   ========================================================================== */
.admin-top-menubar {
    width: 100%;
    padding: 10px 24px;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
    position: sticky;
    top: 72px;
    z-index: 900;
}

.menubar-pill-container {
    background: rgba(13, 20, 36, 0.88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 100%;
    overflow-x: auto;
}

.menu-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.menu-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.menu-tab-btn.active {
    color: #38bdf8;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.15));
    border-color: rgba(56, 189, 248, 0.35);
    font-weight: 700;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

/* ==========================================================================
   BENTO GRID ARCHITECTURE (Stripe & Apple Ultra-Luxury)
   ========================================================================== */
.bento-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
}

.bento-tile {
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 124px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.bento-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.tile-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tile-icon {
    font-size: 0.95rem;
}

.tile-label {
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.tile-badge {
    font-size: 0.52rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 9999px;
}

.tile-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0;
}

.tile-value {
    font-size: 1.55rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tile-subtext {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 4px;
}

.sparkline-trend-icon {
    font-size: 0.72rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sonar-radar-box {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonar-center {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.sonar-ring {
    position: absolute;
    border: 1.5px solid rgba(34, 197, 94, 0.7);
    border-radius: 50%;
    animation: sonarPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.sonar-ring.r2 {
    animation-delay: -1s;
}

@keyframes sonarPulse {
    0% { width: 8px; height: 8px; opacity: 1; }
    100% { width: 32px; height: 32px; opacity: 0; }
}

.tile-footer {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tile Glow Highlights */
.tile-cyan { border-left: 3px solid #06b6d4; }
.tile-cyan .tile-value { color: #38bdf8; }

.tile-green { border-left: 3px solid #22c55e; }
.tile-green .tile-value { color: #4ade80; }

.tile-purple { border-left: 3px solid #8b5cf6; }
.tile-purple .tile-value { color: #c4b5fd; }

.tile-amber { border-left: 3px solid #f59e0b; }
.tile-amber .tile-value { color: #fbbf24; }

.tile-rose { border-left: 3px solid #f43f5e; }
.tile-rose .tile-value { color: #fb7185; }

/* ==========================================================================
   TAB MINI ANALYTICS RIBBONS (For every Sub-Tab Page)
   ========================================================================== */
.tab-mini-kpi-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .tab-mini-kpi-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mini-kpi-card {
    background: rgba(13, 20, 36, 0.78);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mini-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.m-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.m-val {
    font-size: 1.22rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1.25;
}

.m-sub {
    font-size: 0.64rem;
    color: var(--text-muted);
    font-weight: 500;
}

.text-cyan { color: #38bdf8 !important; }
.text-emerald { color: #34d399 !important; }
.text-green { color: #4ade80 !important; }
.text-purple { color: #c4b5fd !important; }
.text-amber { color: #fbbf24 !important; }
.text-rose { color: #fb7185 !important; }

/* Progressive Scroll Lazy Loader */
.scroll-lazy-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(6, 10, 18, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.loader-spinner {
    display: inline-block;
    animation: spinSlow 1s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* BENTO HERO & SECONDARY DECKS */
.bento-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    width: 100%;
}

.bento-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.bento-card {
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-heading .card-icon {
    font-size: 1.25rem;
}

.card-heading h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.card-heading p {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.badge-pill-neon {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-pill-purple {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-pill-cyan {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-link-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-link-action:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.card-canvas-container {
    position: relative;
    width: 100%;
    min-height: 240px;
    max-height: 290px;
}

/* Micro Intel Table */
.table-micro-scroll {
    overflow-x: auto;
    width: 100%;
}

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

.micro-intel-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
}

.micro-intel-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* Traffic Channel Badges */
.badge-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
}
.badge-source-wa { background: rgba(37, 211, 102, 0.15); color: #4ade80; border: 1px solid rgba(37, 211, 102, 0.3); }
.badge-source-insta { background: rgba(225, 48, 108, 0.15); color: #f472b6; border: 1px solid rgba(225, 48, 108, 0.3); }
.badge-source-google { background: rgba(66, 133, 244, 0.15); color: #60a5fa; border: 1px solid rgba(66, 133, 244, 0.3); }
.badge-source-direct { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-source-pwa { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-source-qr { background: rgba(245, 158, 11, 0.15); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }

/* ==========================================================================
   AUTHENTICATION GATEWAY CARD
   ========================================================================== */
.admin-workspace {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
}

.auth-gateway {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
}

.auth-card-box {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.auth-shield-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-glyph {
    font-size: 2.2rem;
    z-index: 2;
}

.shield-glow {
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseAura 3s ease infinite;
}

@keyframes pulseAura {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.auth-card-box h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    background: rgba(6, 10, 18, 0.95);
}

.form-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-error-box {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    line-height: 1.4;
}

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: #022c22;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.auth-footer-badge {
    margin-top: 24px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ==========================================================================
   DASHBOARD TABS & FEATURE GRIDS
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-tab-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 6 KPI Feature Cards */
.kpi-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    font-size: 1.1rem;
}

.card-title-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.card-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.pill-emerald { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-green { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.pill-cyan { background: rgba(6, 182, 212, 0.12); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.pill-purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.pill-amber { background: rgba(245, 158, 11, 0.12); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-rose { background: rgba(244, 63, 94, 0.12); color: #fecdd3; border: 1px solid rgba(244, 63, 94, 0.3); }

.card-body-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.card-primary-val {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    letter-spacing: -0.03em;
}

.card-primary-val.text-md {
    font-size: 1.25rem;
}

.card-delta-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
}

.card-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 2px;
}

.bar-emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.bar-cyan { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.bar-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-rose { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.card-foot {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CHARTS & GRAPHS GRID
   ========================================================================== */
.overview-charts-grid,
.deep-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 20px;
}

.chart-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-icon {
    font-size: 1.3rem;
}

.panel-title-group h3 {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.panel-title-group p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.panel-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-emerald { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fde68a; }

.panel-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-height: 340px;
}

/* ==========================================================================
   DATA TABLES (Visitor Logs, Quotes, App Installs)
   ========================================================================== */
.data-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

.search-ico {
    position: absolute;
    left: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-input-box input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: rgba(6, 10, 18, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
}

.search-input-box input:focus {
    outline: none;
    border-color: #10b981;
}

.toolbar-stat-pill {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

.table-scroll-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.enterprise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.enterprise-table th {
    background: rgba(11, 18, 32, 0.9);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.enterprise-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    white-space: nowrap;
}

.enterprise-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.badge-verified { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-active { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.badge-quote { background: rgba(245, 158, 11, 0.15); color: #fde68a; }

/* Territory Geo Panels - Modernized Executive Command Layout */
.geo-split-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .geo-split-grid {
        grid-template-columns: 1fr;
    }
}

.geo-panel {
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
}

.geo-panel:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.geo-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.panel-header-flex h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 2px 0;
}

.geo-live-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    border-radius: 9999px;
    white-space: nowrap;
}

.geo-territory-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.geo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(6, 10, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.geo-row:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(3px);
}

.geo-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.geo-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.rank-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.rank-silver {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(100, 116, 139, 0.15));
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e2e8f0;
}

.rank-bronze {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(180, 83, 9, 0.15));
    border: 1px solid rgba(217, 119, 6, 0.5);
    color: #fdba74;
}

.rank-default {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.geo-name-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.geo-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
}

.geo-hub-tag {
    font-size: 0.68rem;
    color: #94a3b8;
}

.geo-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.geo-bar-track {
    width: 110px;
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.geo-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.geo-stat-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.geo-pct {
    font-size: 0.80rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #38bdf8;
}

.geo-count {
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

/* Structured Lists for States and Countries */
.geo-structured-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.geo-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(6, 10, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.geo-item-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.geo-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geo-item-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.geo-item-title-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.geo-item-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: #f1f5f9;
}

.geo-item-sub {
    font-size: 0.65rem;
    color: #64748b;
}

.geo-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geo-item-bar {
    width: 65px;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.geo-item-fill-state {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #f59e0b, #10b981);
}

.geo-item-fill-country {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.geo-item-pct {
    font-size: 0.76rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #a7f3d0;
    min-width: 48px;
    text-align: right;
}

.country-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.country-code-in {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.25), rgba(19, 136, 8, 0.25));
    border-color: rgba(255, 153, 51, 0.5);
    color: #fdba74;
}

.country-code-us {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(239, 68, 68, 0.25));
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
}

.country-code-ae {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(239, 68, 68, 0.25));
    border-color: rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
}

.country-code-sg {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}

.country-code-gb {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(239, 68, 68, 0.25));
    border-color: rgba(147, 197, 253, 0.5);
    color: #bfdbfe;
}

.country-code-my {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(59, 130, 246, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
    color: #fde047;
}

.country-code-au {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(239, 68, 68, 0.15));
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
}

.country-code-ca {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}

.country-code-qa {
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.3), rgba(255, 255, 255, 0.15));
    border-color: rgba(244, 63, 94, 0.5);
    color: #fda4af;
}

/* Hardware Diagnostics Grid */
.hardware-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.hw-card {
    background: rgba(6, 10, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hw-card strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.hw-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* System Documentation Box */
.docs-reader-box {
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    max-height: 560px;
    overflow-y: auto;
    font-size: 0.84rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* ==========================================================================
   INFRASTRUCTURE HEALTH STRIP & FOOTER
   ========================================================================== */
.infrastructure-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.infra-card {
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.infra-icon {
    font-size: 1.4rem;
}

.infra-card strong {
    display: block;
    font-size: 0.8rem;
    color: #ffffff;
}

.infra-status {
    font-size: 0.72rem;
}

.status-online {
    color: #34d399;
}

/* Footer */
.admin-footer {
    background: #04070d;
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.insta-link {
    color: #38bdf8;
    text-decoration: none;
}
.insta-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS (Bento Grid)
   ========================================================================== */
@media (max-width: 1200px) {
    .bento-metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bento-hero-grid,
    .bento-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand-titles .brand-sub {
        display: none;
    }

    .status-capsules-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .action-buttons-group {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .ctrl-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .admin-top-menubar {
        padding: 6px 10px;
        top: 60px;
    }

    .menubar-pill-container {
        padding: 3px 6px;
        gap: 2px;
    }

    .menu-tab-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .admin-workspace {
        padding: 12px;
    }

    .bento-metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bento-hero-grid,
    .bento-secondary-grid,
    .overview-charts-grid,
    .deep-charts-grid,
    .geo-split-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bento-card {
        padding: 16px;
    }

    .card-canvas-container {
        min-height: 200px;
    }
}
