/* ═══════════════════════════════════════════════════════════
   ServisGo SuperAdmin Panel — Premium Executive Dark Theme
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #172033;
    --bg-hover: #1f2d47;
    --bg-input: #0e1626;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #7c5cff;
    --accent-hover: #9b7fff;
    --accent-glow: rgba(124, 92, 255, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --radius: 14px;
    --radius-sm: 8px;
    --sidebar-width: 268px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 92, 255, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 80% at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                var(--bg-primary);
}

/* Animated orbs */
.login-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.35;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width:320px; height:320px; background:rgba(124,92,255,0.35); top:-80px; left:-80px; animation-delay:0s; }
.orb-2 { width:260px; height:260px; background:rgba(16,185,129,0.2); bottom:-60px; right:10%; animation-delay:3s; }
.orb-3 { width:200px; height:200px; background:rgba(56,189,248,0.2); top:40%; right:-50px; animation-delay:6s; }
@keyframes orbFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.login-container {
    background: rgba(23, 32, 51, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 52px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.1);
    animation: fadeUp 0.6s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 28px var(--accent-glow), 0 0 0 8px rgba(124, 92, 255, 0.1);
}

.brand-icon.small {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.login-brand h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 20px;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.2px;
}
.login-badge i { font-size: 14px; color: var(--accent); }

.login-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}
.trust-item { display: inline-flex; align-items: center; gap: 5px; color: #94a3b8; }
.trust-item i { color: var(--accent); font-size: 13px; }
.trust-dot { color: #475569; }

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-group > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.2s;
}
.input-group:focus-within > i { color: var(--accent); }

.input-group input, .form-input {
    width: 100%;
    padding: 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input {
    padding-left: 14px;
    padding-right: 14px;
}

.input-group input:focus, .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder, .form-input::placeholder {
    color: var(--text-muted);
}

.input-group.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 18px; padding: 4px; transition: color 0.2s;
}
.password-toggle:hover { color: var(--text-primary); }

.field-error { color: var(--danger); font-size: 11.5px; margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* Login error box */
.login-error-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-sm); padding: 12px 14px;
    margin-top: 12px; color: #fca5a5; font-size: 13px; line-height: 1.5;
}
.login-error-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; color: var(--danger); }

.login-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 28px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9b7fff);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:disabled { opacity: 0.65; transform: none; cursor: not-allowed; }

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════ */

.app {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.company-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.35);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #c4b5fd;
    letter-spacing: 0.3px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text span:first-child {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(124, 92, 255, 0.15);
    border-left: 3px solid var(--accent);
    font-weight: 600;
}

.nav-item i {
    font-size: 18px;
}

/* Sidebar Footer & Status Telemetry Card */
.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-status-card {
    background: rgba(14, 22, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-indicator-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-system-text {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
}

.status-uptime-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 6px;
    border-radius: 10px;
}

.status-license-row {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.18);
}

/* ── Main Content & Top Bar ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.page-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Live Clock Capsule */
.live-clock-capsule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(23, 32, 51, 0.7);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}
.live-clock-capsule i {
    color: var(--accent);
    font-size: 15px;
}

/* Profile Dropdown Wrap */
.profile-dropdown-wrap {
    position: relative;
}

.profile-capsule-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: rgba(23, 32, 51, 0.7);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.profile-capsule-btn:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
}

.profile-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.profile-name {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.profile-role {
    font-size: 10.5px;
    color: #a78bfa;
    font-weight: 600;
}

.profile-chevron {
    color: var(--text-muted);
    font-size: 16px;
    transition: transform 0.2s;
}

.profile-dropdown-wrap.open .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(23, 32, 51, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
    animation: fadeUp 0.2s ease;
}

.profile-dropdown-wrap.open .profile-dropdown-menu {
    display: block;
}

.dropdown-user-header {
    padding: 10px 12px;
}

.duh-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.duh-email {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.duh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(124, 92, 255, 0.15);
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: #c4b5fd;
    margin-top: 6px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: #f87171;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.content-area {
    padding: 32px;
    flex: 1;
    animation: fadeUp 0.3s ease;
}

/* ═══════════════════════════════════════════
   EXECUTIVE DASHBOARD COMPONENTS
   ═══════════════════════════════════════════ */

.exec-summary-banner {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.exec-banner-left h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exec-banner-left p {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.exec-banner-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Quick Actions Hub */
.quick-actions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-actions-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-actions-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   SEARCH & FILTER BARS
   ═══════════════════════════════════════════ */

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    min-width: 280px;
    flex: 1;
    max-width: 400px;
}

.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.table-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--accent), #9b7fff);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   DASHBOARD STAT CARDS
   ═══════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(124, 92, 255, 0.3);
}

.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 14px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #f8fafc;
}

.stat-card .stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 13px 18px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 13px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-company {
    background: rgba(124, 92, 255, 0.15);
    color: #c4b5fd;
}

.badge-individual {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.actions-cell {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.action-btn.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    animation: modalUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalUp {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-size: 20px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    min-width: 280px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast-success { background: #065f46; border: 1px solid #10b981; color: #ecfdf5; }
.toast-error { background: #7f1d1d; border: 1px solid #ef4444; color: #fef2f2; }
.toast-info { background: #1e1b4b; border: 1px solid var(--accent); color: #e0e7ff; }

/* ═══════════════════════════════════════════
   EMPTY STATE & LOADING
   ═══════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
    color: var(--accent);
}

.empty-state p {
    font-size: 14px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Pagination ── */
.pagination-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.pagination-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }
    .sidebar-brand span, .nav-item span, .btn-logout span, .sidebar-status-card {
        display: none;
    }
    .sidebar-brand { justify-content: center; padding: 20px 0; }
    .nav-item { justify-content: center; padding: 14px; }
    .btn-logout { justify-content: center; }
    .main-content { margin-left: 64px; }
    .content-area { padding: 16px; }
    .live-clock-capsule { display: none; }
}
�════ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

/* ═══════════════════════════════════════════
   LOADING
   ═══════════════════════════════════════════ */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }
    .sidebar-brand span, .nav-item span, .btn-logout span {
        display: none;
    }
    .sidebar-brand { justify-content: center; padding: 20px 0; }
    .nav-item { justify-content: center; padding: 14px; }
    .btn-logout { justify-content: center; }
    .main-content { margin-left: 64px; }
    .content-area { padding: 16px; }
}
.pagination-btn { padding:6px 12px; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; color:var(--text-secondary); font-size:13px; cursor:pointer; transition:all 0.2s; font-family:inherit; }
.pagination-btn:hover:not(:disabled) { background:var(--accent); color:#fff; border-color:var(--accent); }
.pagination-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.pagination-btn:disabled { opacity:0.35; cursor:not-allowed; }

/* ═══════════════════════════════════════════
   EXECUTIVE BANNER & DASHBOARD STYLES
   ═══════════════════════════════════════════ */

.executive-summary-banner, .executive-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.executive-summary-banner::before, .executive-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
}

.executive-banner-content h3 {
    font-size: 19px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.executive-banner-content p {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.5;
}

.executive-banner-content p strong {
    color: #38bdf8;
    font-weight: 700;
}

.executive-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
    display: inline-block;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quick-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-btn i {
    font-size: 16px;
    color: #818cf8;
    transition: transform 0.2s;
}

.quick-action-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}

.quick-action-btn:hover i {
    transform: scale(1.15);
    color: #a5b4fc;
}

/* ═══════════════════════════════════════════
   SEARCH BARS, FILTER CONTROLS & TABS
   ═══════════════════════════════════════════ */

.table-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: rgba(30, 41, 59, 0.35);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 440px;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

.search-input-wrap input {
    width: 100%;
    height: 42px;
    padding: 8px 16px 8px 42px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: #6366f1;
    background: #0b1120;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-tabs-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-tab-btn {
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
