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

:root {
    /* Base Color Canvas & Surfaces */
    --canvas: #f4f6fb;
    --canvas-subtle: #edf2f9;
    --card: #ffffff;
    --card-elevated: #ffffff;
    --card-hover: #ffffff;
    --ink: #0b1329;
    --ink-secondary: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --muted-extra-light: #cbd5e1;
    --line: #e2e8f0;
    --line-subtle: #f1f5f9;
    --line-strong: #cbd5e1;

    /* Luxury Gold & Amber Brand Accents */
    --gold: #d97706;
    --gold-light: #fef3c7;
    --gold-subtle: rgba(245, 158, 11, 0.08);
    --gold-hover: #b45309;
    --gold-glow: rgba(245, 158, 11, 0.25);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    --gold-gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%);

    /* Primary Accent */
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    /* Modern Sleek Dark Sidebar Theme */
    --sidebar-bg: #0d0f12;
    --sidebar-surface: #14171f;
    --sidebar-card: #191c24;
    --sidebar-border: rgba(255, 255, 255, 0.065);
    --sidebar-border-light: rgba(255, 255, 255, 0.1);
    --sidebar-text: #8c97a8;
    --sidebar-text-hover: #ffffff;
    --sidebar-active-bg: var(--gold-gradient);
    --sidebar-active-border: #f59e0b;
    --sidebar-active-text: #ffffff;
    --sidebar-w: 260px;

    /* Semantic Status Accents */
    --ok: #059669;
    --ok-light: #10b981;
    --ok-bg: #ecfdf5;
    --ok-border: #a7f3d0;
    --ok-glow: rgba(16, 185, 129, 0.2);

    --warn: #d97706;
    --warn-light: #f59e0b;
    --warn-bg: #fffbeb;
    --warn-border: #fde68a;
    --warn-glow: rgba(245, 158, 11, 0.2);

    --danger: #e11d48;
    --danger-light: #f43f5e;
    --danger-bg: #fff1f2;
    --danger-border: #fecdd3;
    --danger-glow: rgba(244, 63, 94, 0.2);

    --info: #0284c7;
    --info-light: #0ea5e9;
    --info-bg: #f0f9ff;
    --info-border: #bae6fd;
    --info-glow: rgba(14, 165, 233, 0.2);

    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --purple-bg: #faf5ff;
    --purple-border: #e9d5ff;
    --purple-glow: rgba(139, 92, 246, 0.2);

    /* Typography & Font Stacks */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows & Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 35px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--canvas);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Shell */
.admin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--canvas);
    position: relative;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 18, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 39;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Sidebar Styling (Modern Sleek Dark Menu Theme)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-w, 260px);
    background: #0d0f12;
    border-right: 1px solid rgba(255, 255, 255, 0.065);
    color: #8c97a8;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
    padding: 16px 14px 20px;
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
}

.nav-scroll-area::-webkit-scrollbar {
    width: 3.5px;
}
.nav-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Brand Section */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    user-select: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.03);
    border-color: rgba(108, 192, 74, 0.4);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-title {
    margin: 0;
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.brand-role {
    margin: 3px 0 0;
    font-size: 9.5px;
    font-weight: 700;
    color: #606b7a;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Scrollable Nav Area */
.nav-scroll-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 8px;
}

/* Sidebar Nav Groups & Labels */
.nav-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5463;
    padding: 16px 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.nav-link, .nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #8c97a8;
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    border: 1px solid transparent;
    position: relative;
    user-select: none;
    text-decoration: none;
    margin-bottom: 2px;
}

.nav-link-content, .nav-parent-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.nav-link svg, .nav-parent svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #606b7c;
    transition: color 0.18s ease;
}

.nav-link:hover, .nav-parent:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-link:hover svg, .nav-parent:hover svg {
    color: #cbd5e1;
}

/* Active Item - Pill Highlight with New Sale Gold/Amber Gradient */
.nav-link.active {
    background: var(--gold-gradient) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.nav-link.active svg {
    color: #ffffff !important;
    filter: none;
}

.nav-link.active .nav-badge {
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Badge Counters */
.nav-badge {
    background: #191c24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a96a7;
    font-size: 11px;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
    line-height: 1.35;
    flex-shrink: 0;
}

.nav-link:hover .nav-badge,
.nav-parent:hover .nav-badge {
    background: #232732;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Nav Parent Meta (Badge + Chevron) */
.nav-parent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-group {
    margin-bottom: 2px;
}

.nav-group details {
    border: 0;
}

.nav-group details:not([open]) > .sub {
    display: none;
}

.nav-group summary {
    list-style: none;
    user-select: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary .chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555f70;
    flex-shrink: 0;
}

.nav-group details[open] summary .chevron {
    transform: rotate(90deg);
    color: #8c97a8;
}

.nav-group details[open] summary .nav-parent {
    color: #e2e8f0;
}

.nav-parent.active {
    color: #ffffff;
}

.nav-parent.active svg {
    color: #f59e0b;
}

/* Submenu Styles */
.nav-group .sub {
    padding: 4px 0 6px 12px;
    margin-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.nav-group .sub a {
    font-size: 12.5px;
    font-weight: 500;
    padding: 6.5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7b8899;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-group .sub a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    padding-left: 14px;
}

.nav-group .sub a.active {
    color: #fbbf24;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.12);
    border-left: 2px solid #f59e0b;
    padding-left: 14px;
    border-radius: 0 6px 6px 0;
}

/* Sidebar Footer Widget */
.sidebar-footer {
    flex-shrink: 0;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: #0d0f12;
    position: relative;
    z-index: 2;
}

.sidebar-status-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-status-dot {
    width: 7.5px;
    height: 7.5px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
    animation: pulseGlow 2s infinite;
}

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

.sidebar-status-text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.sidebar-status-text strong {
    color: #cbd5e1;
    display: block;
    font-family: var(--font-main);
    font-size: 11.5px;
    font-weight: 600;
}

/* ==========================================================================
   Workspace & Glassmorphic Topbar
   ========================================================================== */
.workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.02);
}

.topbar-logo {
    display: none;
    width: 36px;
    height: 36px;
    object-fit: cover;
    object-position: center 36%;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.menu-btn {
    display: none;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.menu-btn:hover {
    background: var(--canvas-subtle);
    border-color: var(--line-strong);
}

.search-form {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-form svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: var(--transition);
}

.search-form input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: #ffffff;
    border-radius: var(--radius-full);
    padding: 10px 80px 10px 42px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--ink);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.search-form input:focus {
    outline: none;
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--gold-glow), var(--shadow-sm);
}

.search-form input:focus + svg,
.search-form input:focus ~ svg {
    color: var(--gold);
}

.search-form .shortcut-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    background: var(--canvas-subtle);
    border: 1px solid var(--line);
    border-radius: 6px;
    pointer-events: none;
}

.search-form input::placeholder {
    color: var(--muted-light);
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    background: #ffffff;
    padding: 4px 6px 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.user-chip:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.user-chip strong {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    line-height: 1.2;
}

.user-chip .user-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    object-position: center 36%;
    background: #000;
    display: block;
    flex-shrink: 0;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.content {
    padding: 30px 36px 72px;
    max-width: 1480px;
    width: 100%;
}

/* Breadcrumbs */
.crumbs {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 600;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crumbs a:hover {
    color: var(--gold-hover);
}

.crumbs span.sep {
    color: var(--muted-light);
    font-size: 11px;
}

.crumbs span.current {
    color: var(--ink);
    font-weight: 700;
    background: var(--canvas-subtle);
    padding: 2px 9px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

/* Page Header */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.page-head h2 {
    margin: 0;
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-head p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

/* Dashboard Greeting Header */
.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding: 2px 0;
}

.dashboard-title {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.dashboard-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin: 4px 0 0;
}

.dashboard-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-green {
    background: #6cc04a;
    color: #081a05;
    font-weight: 700;
    border: 1px solid #6cc04a;
    box-shadow: 0 2px 8px rgba(108, 192, 74, 0.25);
}

.btn-green:hover {
    background: #5eb83a;
    color: #081a05;
    border-color: #5eb83a;
}

/* ==========================================================================
   Grids & Layout Containers
   ========================================================================== */
.grid {
    display: grid;
    gap: 18px;
}

.stats {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1500px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1080px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.two {
    grid-template-columns: 1.4fr 1fr;
}

.three {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards & Elevated Containers */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
    position: relative;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 16px;
    font-family: var(--font-main);
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
}

/* ==========================================================================
   Stat Cards (Clean, Modern & Balanced)
   ========================================================================== */
.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: var(--transition-fast);
}

.stat:hover {
    box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

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

.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    display: block;
    font-family: var(--font-main);
    font-size: 21px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-top: 3px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-icon, .stat i {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--canvas-subtle);
    border: 1px solid var(--line);
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 8px;
    box-shadow: none;
    transition: var(--transition-fast);
}

.stat-icon svg, .stat i svg {
    width: 18px;
    height: 18px;
    display: block;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

.stat-icon .material-symbols-outlined,
.attention-icon-wrap .material-symbols-outlined {
    font-size: 22px;
}

.btn .material-symbols-outlined {
    font-size: 16px;
}

.stat:hover .stat-icon, .stat:hover i {
    transform: scale(1.08);
}

/* --- Theme 1: Blue (Total Vehicles) --- */
.stat-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-color: #e2e8f0;
}
.stat-blue::before { background: #3b82f6; }
.stat-blue:hover { border-color: #93c5fd; box-shadow: 0 6px 16px -2px rgba(59, 130, 246, 0.12); }
.stat-blue .stat-icon, .stat-blue i {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.stat-blue .stat-value, .stat-blue b { color: #1e3a8a; }

/* --- Theme 2: Emerald (Available / Deals Closed) --- */
.stat-emerald {
    background: linear-gradient(135deg, #ffffff 0%, #f7fdf9 100%);
    border-color: #e2e8f0;
}
.stat-emerald::before { background: #10b981; }
.stat-emerald:hover { border-color: #6ee7b7; box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.12); }
.stat-emerald .stat-icon, .stat-emerald i {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
.stat-emerald .stat-value, .stat-emerald b { color: #064e3b; }

/* --- Theme 3: Amber (Reserved Units) --- */
.stat-amber {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    border-color: #e2e8f0;
}
.stat-amber::before { background: #f59e0b; }
.stat-amber:hover { border-color: #fcd34d; box-shadow: 0 6px 16px -2px rgba(245, 158, 11, 0.12); }
.stat-amber .stat-icon, .stat-amber i {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.stat-amber .stat-value, .stat-amber b { color: #78350f; }

/* --- Theme 4: Purple (Sold & Delivered) --- */
.stat-purple {
    background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
    border-color: #e2e8f0;
}
.stat-purple::before { background: #8b5cf6; }
.stat-purple:hover { border-color: #c4b5fd; box-shadow: 0 6px 16px -2px rgba(139, 92, 246, 0.12); }
.stat-purple .stat-icon, .stat-purple i {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}
.stat-purple .stat-value, .stat-purple b { color: #4c1d95; }

/* --- Theme 5: Cyan (Commercial Fleet) --- */
.stat-cyan {
    background: linear-gradient(135deg, #ffffff 0%, #f6feff 100%);
    border-color: #e2e8f0;
}
.stat-cyan::before { background: #06b6d4; }
.stat-cyan:hover { border-color: #67e8f9; box-shadow: 0 6px 16px -2px rgba(6, 182, 212, 0.12); }
.stat-cyan .stat-icon, .stat-cyan i {
    background: #f0fdfa;
    border-color: #a5f3fc;
    color: #0891b2;
}
.stat-cyan .stat-value, .stat-cyan b { color: #164e63; }

/* --- Theme 6: Rose (Personal Cars) --- */
.stat-rose {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f9 100%);
    border-color: #e2e8f0;
}
.stat-rose::before { background: #f43f5e; }
.stat-rose:hover { border-color: #fda4af; box-shadow: 0 6px 16px -2px rgba(244, 63, 94, 0.12); }
.stat-rose .stat-icon, .stat-rose i {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}
.stat-rose .stat-value, .stat-rose b { color: #881337; }

/* --- Theme 7: Indigo (Total Customers) --- */
.stat-indigo {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8ff 100%);
    border-color: #e2e8f0;
}
.stat-indigo::before { background: #6366f1; }
.stat-indigo:hover { border-color: #a5b4fc; box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.12); }
.stat-indigo .stat-icon, .stat-indigo i {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}
.stat-indigo .stat-value, .stat-indigo b { color: #312e81; }

/* --- Theme 8: Orange (Pending Deals) --- */
.stat-orange {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
    border-color: #e2e8f0;
}
.stat-orange::before { background: #f97316; }
.stat-orange:hover { border-color: #fdba74; box-shadow: 0 6px 16px -2px rgba(249, 115, 22, 0.12); }
.stat-orange .stat-icon, .stat-orange i {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}
.stat-orange .stat-value, .stat-orange b { color: #7c2d12; }

/* --- Theme 9: Teal (Pending Deliveries) --- */
.stat-teal {
    background: linear-gradient(135deg, #ffffff 0%, #f6fdfc 100%);
    border-color: #e2e8f0;
}
.stat-teal::before { background: #14b8a6; }
.stat-teal:hover { border-color: #5eead4; box-shadow: 0 6px 16px -2px rgba(20, 184, 166, 0.12); }
.stat-teal .stat-icon, .stat-teal i {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0d9488;
}
.stat-teal .stat-value, .stat-teal b { color: #134e4a; }

/* --- Theme 10: Red (Pending Payments) --- */
.stat-red {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border-color: #e2e8f0;
}
.stat-red::before { background: #ef4444; }
.stat-red:hover { border-color: #fca5a5; box-shadow: 0 6px 16px -2px rgba(239, 68, 68, 0.12); }
.stat-red .stat-icon, .stat-red i {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.stat-red .stat-value, .stat-red b { color: #7f1d1d; }

/* --- Theme 11: Gold & Featured (Total Revenue Value) --- */
.stat-gold, .stat-featured {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf4 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}
.stat-gold::before, .stat-featured::before { background: var(--gold-gradient); width: 4px; }
.stat-gold:hover, .stat-featured:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 20px -3px rgba(217, 119, 6, 0.18);
}
.stat-gold .stat-icon, .stat-featured .stat-icon,
.stat-gold i, .stat-featured i {
    background: var(--gold-gradient);
    border-color: #d97706;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}
.stat-gold .stat-value, .stat-featured .stat-value,
.stat-gold b, .stat-featured b {
    color: #b45309;
    font-size: 17.5px;
}
.stat-gold b, .stat-featured b {
    color: #b45309;
    font-size: 17.5px;
}

/* ==========================================================================
   Pipeline Connected Flow & Inventory Meters
   ========================================================================== */
.pipeline-flow-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pipe-card {
    flex: 1;
    min-width: 90px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.pipe-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.pipe-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pipe-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pipe-stage-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.pipe-count {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    margin: 4px 0 0;
    color: var(--ink);
}

.pipe-pending {
    border-color: #fde68a;
    background: #fffdf5;
    color: var(--warn);
}
.pipe-pending .pipe-count { color: #b45309; }

.pipe-processing {
    border-color: #bfdbfe;
    background: #f8faff;
    color: var(--info);
}
.pipe-processing .pipe-count { color: #1d4ed8; }

.pipe-completed {
    border-color: #a7f3d0;
    background: #f7fdf9;
    color: var(--ok);
}
.pipe-completed .pipe-count { color: #047857; }

.pipe-arrow {
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 700;
    user-select: none;
}

/* ==========================================================================
   Needs Attention / Action Alerts Strip (HPUS Reference Design)
   ========================================================================== */
.attention-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.attention-section-head {
    margin-bottom: 14px;
}

.attention-section-head h3 {
    margin: 0;
    font-family: var(--font-main);
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.attention-section-head p {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
}

.attention-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1400px) {
    .attention-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .attention-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {
    .attention-grid {
        grid-template-columns: 1fr;
    }
}

.attention-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 74px;
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.attention-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.attention-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}

.attention-icon-wrap svg {
    width: 14px;
    height: 14px;
    display: block;
}

.attention-icon-wrap lord-icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

.attention-icon-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.attention-icon-green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.attention-icon-blue  { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.attention-icon-red   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.attention-icon-purple{ background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.attention-icon-teal  { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }

.attention-val {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.attention-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.3;
}

/* ==========================================================================
   Conversion Funnel Strip (HPUS Reference Design)
   ========================================================================== */
.funnel-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

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

.funnel-name {
    width: 145px;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.funnel-bar-track {
    flex: 1;
    height: 9px;
    background: #eef2f6;
    border-radius: 9999px;
    overflow: hidden;
}

.funnel-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-count {
    width: 32px;
    text-align: right;
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    flex-shrink: 0;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.dot-avail { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.dot-reserved { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.dot-sold { background: #f43f5e; box-shadow: 0 0 6px rgba(244, 63, 94, 0.4); }
.dot-commercial { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.4); }
.dot-personal { background: #0ea5e9; box-shadow: 0 0 6px rgba(14, 165, 233, 0.4); }

/* ==========================================================================
   Feed Lists & Activity Rows (Recent Sales, Customers, Deliveries)
   ========================================================================== */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feed-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
    background: #fafcff;
}

.feed-icon-car {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.feed-icon-doc {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fbbf24;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 13.5px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.delivery-date-chip {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #78350f;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.chip-day {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
}

.chip-month {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

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

.feed-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-title-link {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 14px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.feed-title-link:hover {
    color: var(--gold-hover);
}

.feed-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.feed-sep {
    color: var(--muted-extra-light);
    font-size: 10px;
}

.feed-customer-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--canvas-subtle);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--line);
    white-space: nowrap;
    display: inline-block;
}

.feed-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-secondary);
}

.feed-text {
    font-weight: 500;
}

/* ==========================================================================
   Authentic Indian HSRP Number Plate Styling
   ========================================================================== */
.reg-plate {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 5px;
    padding: 1px 7px 1px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    line-height: 1.3;
    white-space: nowrap;
}

.reg-plate::before {
    content: "IND";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 7.5px;
    font-weight: 900;
    padding: 2px 4px;
    margin-right: 6px;
    border-right: 1px solid #1e40af;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ==========================================================================
   Activity Bars Chart (14-Day Timeline Container)
   ========================================================================== */
.chart-box {
    padding-top: 20px;
    position: relative;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding-bottom: 26px;
    border-bottom: 1.5px solid var(--line);
    position: relative;
    justify-content: space-between;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    min-width: 0;
}

.bar-fill {
    width: 100%;
    max-width: 32px;
    border-radius: 6px 6px 2px 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.bar-fill.bar-active {
    background: var(--gold-gradient);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.bar-col:hover .bar-fill.bar-active {
    background: var(--gold-gradient-hover);
    transform: scaleY(1.08);
    transform-origin: bottom;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.bar-fill.bar-muted {
    background: #e2e8f0;
    border-radius: 3px;
    min-height: 4px;
}

.bar-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 800;
    color: #d97706;
}

.bar-label {
    position: absolute;
    bottom: -22px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

/* Chart Tooltip */
.chart-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 10;
    line-height: 1.3;
    text-align: center;
}

.chart-tooltip strong {
    color: #fbbf24;
    display: block;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.bar-col:hover .chart-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    margin: -1px;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

table.data th {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1.5px solid var(--line);
    white-space: nowrap;
}

table.data td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-subtle);
    vertical-align: middle;
    color: var(--ink-secondary);
}

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

table.data tbody tr {
    transition: var(--transition-fast);
}

table.data tbody tr:hover td {
    background: #f8fafc;
    color: var(--ink);
}

table.data tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--gold);
}

/* ==========================================================================
   Badges & Status Indicators
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-full);
    padding: 3.5px 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.3;
}

.badge::before {
    content: '';
    display: inline-block;
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.badge-available, .badge-completed, .badge-ok {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: var(--ok-border);
}

.badge-reserved, .badge-in_progress, .badge-partial, .badge-pending, .badge-warn {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: var(--warn-border);
}

.badge-sold, .badge-cancelled, .badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

.badge-personal, .badge-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

.badge-commercial {
    background: var(--purple-bg);
    color: var(--purple);
    border-color: var(--purple-border);
}

.badge-generated, .badge-finalized, .badge-draft {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    padding: 9.5px 16px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    background: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
    line-height: 1.2;
}

.btn svg {
    flex-shrink: 0;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: rgba(217, 119, 6, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
    background: var(--gold-gradient-hover);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink-secondary);
}

.btn-outline:hover {
    background: var(--canvas-subtle);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}

.btn-danger:hover {
    background: #be123c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: var(--radius-xs);
}

/* ==========================================================================
   Forms, Filters & Inputs
   ========================================================================== */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.filters input, .filters select,
.form-grid input, .form-grid select, .form-grid textarea,
.field input, .field select, .field textarea {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9.5px 13px;
    font-family: var(--font-body);
    font-size: 13.5px;
    background: #ffffff;
    color: var(--ink);
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.filters input:focus, .filters select:focus,
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3.5px var(--gold-glow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

[hidden] {
    display: none !important;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field label, .form-grid label {
    display: block;
    font-family: var(--font-main);
    font-size: 12.5px;
    color: var(--ink-secondary);
    margin-bottom: 7px;
    font-weight: 700;
}

.form-section-header {
    grid-column: 1 / -1;
    padding: 16px 0 8px;
    border-bottom: 1.5px solid var(--line);
    margin-bottom: 6px;
}

.form-section-header h4 {
    margin: 0;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-header h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--gold);
    border-radius: 2px;
}

.form-section-header span {
    font-size: 12.5px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.customer-pick {
    position: relative;
}

.customer-pick-list {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 220px;
    overflow: auto;
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.customer-pick-list button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
}

.customer-pick-list button:last-child {
    border-bottom: 0;
}

.customer-pick-list button:hover,
.customer-pick-list button:focus {
    background: #f7f4ec;
    outline: none;
}

.inline-add {
    display: inline-block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2f7d22;
    text-decoration: none;
}

.inline-add:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Flash Messages & Toast
   ========================================================================== */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease;
}

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

.flash-success {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-border);
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.error-text {
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty {
    text-align: center;
    padding: 56px 28px;
    color: var(--muted);
}

.empty-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--canvas-subtle);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: var(--gold);
}

.empty h3 {
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.empty p {
    font-size: 13.5px;
    margin-bottom: 20px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Toolbars, Splits & Utilities
   ========================================================================== */
.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.thumb-grid img, .doc-link {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.doc-link {
    display: grid;
    place-items: center;
    background: #f8fafc;
    font-size: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    transition: var(--transition);
}

.doc-link:hover {
    background: var(--canvas-subtle);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.muted {
    color: var(--muted);
}

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

.confirm-form {
    display: inline;
}

.price-pill {
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
}

/* ==========================================================================
   Login Page Styling (Ultra-Luxury Dark Automotive)
   ========================================================================== */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0b0f19 60%, #05070c 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-wrap::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.login-card {
    width: min(460px, 94vw);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.15);
    position: relative;
    z-index: 2;
}

.login-card .brand {
    margin-bottom: 12px;
    padding: 0;
    border: none;
}

.login-card .brand h1 {
    color: var(--ink);
    font-size: 18px;
}

.login-card .brand p {
    color: var(--gold-dark);
}

.guide {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.guide-step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
    min-width: 0;
}

.guide-step span {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.guide-step strong {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.guide-step.done {
    background: var(--ok-bg);
    border-color: var(--ok-border);
}

.guide-step.current {
    background: var(--gold-light);
    border-color: var(--gold);
}

.guide-step.locked {
    opacity: 0.72;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .three, .two, .form-grid, .split, .guide {
        grid-template-columns: 1fr;
    }
    .pipeline-flow-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .pipe-arrow {
        text-align: center;
        transform: rotate(90deg);
        margin: 2px 0;
    }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .menu-btn {
        display: inline-flex;
    }
    .topbar-logo {
        display: block;
    }
    .content, .topbar {
        padding-left: 20px;
        padding-right: 20px;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .page-head h2 {
        font-size: 22px;
    }
    .search-form .shortcut-badge {
        display: none;
    }
}

/* ==========================================================================
   Premium neomorphism — dashboard
   ========================================================================== */
.workspace:has(.neo-dash) {
    background: #e7edf4;
}

.workspace:has(.neo-dash) .topbar {
    background: #e7edf4;
    border-bottom: none;
    box-shadow: 0 10px 18px -16px #a3b1c6;
}

.workspace:has(.neo-dash) .search-form {
    background: #e7edf4;
    border: none;
    box-shadow: inset 5px 5px 10px #c5d0de, inset -5px -5px 10px #ffffff;
}

.neo-dash {
    --neo: #e7edf4;
    --neo-light: #ffffff;
    --neo-dark: #c3cedc;
    --neo-raise: 9px 9px 18px var(--neo-dark), -9px -9px 18px var(--neo-light);
    --neo-raise-sm: 6px 6px 12px #c8d3e0, -6px -6px 12px #ffffff;
    --neo-press: inset 5px 5px 10px #c5d0de, inset -5px -5px 10px #ffffff;
}

.neo-dash .dashboard-head-actions .btn-outline {
    background: var(--neo);
    border: none;
    color: #334155;
    box-shadow: var(--neo-raise-sm);
}

.neo-dash .dashboard-head-actions .btn-outline:hover {
    color: #0f172a;
    box-shadow: var(--neo-press);
}

.neo-dash .dashboard-head-actions .btn-gold {
    border: none;
    box-shadow: 6px 6px 14px rgba(180, 120, 20, 0.28), -4px -4px 10px rgba(255, 255, 255, 0.7);
}

.neo-dash .stat {
    background: var(--neo);
    border: none;
    border-radius: 18px;
    box-shadow: var(--neo-raise-sm);
    overflow: visible;
}

.neo-dash .stat::before {
    display: none;
}

.neo-dash .stat:hover {
    transform: translateY(-2px);
    box-shadow: 12px 12px 22px var(--neo-dark), -10px -10px 20px var(--neo-light);
}

.neo-dash .stat-icon,
.neo-dash .stat i {
    background: var(--neo);
    border: none;
    border-radius: 14px;
    box-shadow: var(--neo-press);
}

.neo-dash .stat-blue,
.neo-dash .stat-emerald,
.neo-dash .stat-amber,
.neo-dash .stat-purple,
.neo-dash .stat-cyan,
.neo-dash .stat-rose,
.neo-dash .stat-indigo,
.neo-dash .stat-orange,
.neo-dash .stat-teal,
.neo-dash .stat-red,
.neo-dash .stat-gold {
    background: var(--neo);
    border: none;
}

.neo-dash .stat.featured,
.neo-dash .stat-gold {
    background: linear-gradient(145deg, #f4e7c8, #e7edf4);
}

.neo-dash .attention-section,
.neo-dash .card {
    background: var(--neo);
    border: none;
    border-radius: 22px;
    box-shadow: var(--neo-raise);
}

.neo-dash .card:hover {
    box-shadow: var(--neo-raise);
}

.neo-dash .attention-card {
    background: var(--neo);
    border: none;
    border-radius: 16px;
    box-shadow: var(--neo-raise-sm);
}

.neo-dash .attention-card:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 18px var(--neo-dark), -8px -8px 16px var(--neo-light);
}

.neo-dash .attention-icon-wrap,
.neo-dash .attention-icon-amber,
.neo-dash .attention-icon-green,
.neo-dash .attention-icon-blue,
.neo-dash .attention-icon-red,
.neo-dash .attention-icon-purple,
.neo-dash .attention-icon-teal {
    background: var(--neo);
    border: none;
    box-shadow: var(--neo-press);
}

.neo-dash .funnel-bar-track,
.neo-dash .chart-box {
    background: var(--neo);
    border: none;
    box-shadow: var(--neo-press);
    border-radius: 14px;
}

.neo-dash .badge {
    border: none;
    box-shadow: var(--neo-raise-sm);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .sidebar, .topbar, .no-print, .btn, .toolbar, .crumbs, .flash, .sidebar-backdrop {
        display: none !important;
    }
    .workspace, .content, .admin-shell {
        display: block;
        padding: 0;
        margin: 0;
        background: #ffffff;
    }
    .card {
        box-shadow: none;
        border: 0;
        padding: 0;
    }
}
