/* ==========================================================================
   NEXORA STUDIO — ULTRA-MODERN SAAS DESIGN SYSTEM
   Supports Light & Dark Theme, Modern Responsive Layouts, Glassmorphism,
   High-density Data Tables, Cards, Modals, Forms & Polished Typography
   ========================================================================== */

:root {
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.06);
    --bg-sidebar-active: rgba(99, 102, 241, 0.15);
    
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-sidebar: rgba(255, 255, 255, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #ffffff;
    
    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-subtle: rgba(79, 70, 229, 0.08);
    --accent-ring: rgba(79, 70, 229, 0.2);
    
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #059669;
    --success-dot: #10b981;
    
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #b45309;
    --warning-dot: #f59e0b;
    
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #dc2626;
    --danger-dot: #ef4444;
    
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #2563eb;
    --info-dot: #3b82f6;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

html.dark {
    --bg-app: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #1e293b;
    --bg-surface-hover: #1e293b;
    --bg-sidebar: #060911;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.05);
    --bg-sidebar-active: rgba(99, 102, 241, 0.2);
    
    --border-subtle: #1e293b;
    --border-strong: #334155;
    --border-sidebar: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-sidebar: #818cf8;
    --text-sidebar-active: #ffffff;
    
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-subtle: rgba(99, 102, 241, 0.15);
    --accent-ring: rgba(99, 102, 241, 0.35);
    
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.25);
    --success-text: #34d399;
    --success-dot: #10b981;
    
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.25);
    --warning-text: #fbbf24;
    --warning-dot: #f59e0b;
    
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.25);
    --danger-text: #f87171;
    --danger-dot: #ef4444;
    
    --info-bg: rgba(59, 130, 246, 0.12);
    --info-border: rgba(59, 130, 246, 0.25);
    --info-text: #60a5fa;
    --info-dot: #3b82f6;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Base & Reset Overrides
   ========================================================================== */

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    background-color: var(--bg-app) !important;
    color: var(--text-primary) !important;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
    transition: background-color 200ms ease, color 200ms ease;
}

/* ==========================================================================
   Modern App Shell & Layout
   ========================================================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-app);
    max-width: 100vw;
    width: 100%;
    overflow-x: clip;
    position: relative;
}

.app-main-wrap {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    margin-left: 260px;
    background-color: var(--bg-app);
    overflow-x: clip;
    box-sizing: border-box;
    transition: margin-left 200ms ease, width 200ms ease;
}

@media (max-width: 1024px) {
    .app-main-wrap {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    background: #0b1120;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    will-change: transform;
    overflow: hidden;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-close {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(15, 23, 42, 0.68);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .app-sidebar {
        z-index: 1000;
        width: min(300px, 86vw);
        transform: translateX(-100%);
        box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    }

    .app-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid var(--border-sidebar);
        background: rgba(255, 255, 255, 0.08);
        color: #f1f5f9;
        cursor: pointer;
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sidebar-close:hover {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
        border-color: rgba(239, 68, 68, 0.3);
        transform: rotate(90deg) scale(1.05);
    }
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    min-height: 72px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg, 12px);
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.workspace-brand-logo {
    max-height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 16px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.26);
}

.nav-section-label {
    margin: 14px 10px 5px 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    user-select: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    min-height: 38px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.20) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.32);
    font-weight: 600;
    box-shadow: inset 3px 0 0 #818cf8, 0 2px 8px rgba(99, 102, 241, 0.18);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 15px;
    height: 15px;
}

.sidebar-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.sidebar-link.is-active .nav-icon {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
}

.nav-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-count {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: #e11d48;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-count-subtle {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

/* ==========================================================================
   Sidebar Collapsible Module Dropdowns & Sub-Menus
   ========================================================================== */
.sidebar-module {
    margin-bottom: 2px;
}

.sidebar-module-header {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    min-height: 38px;
    border-radius: 8px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.sidebar-module-header:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-module-header.has-active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.22);
}

.sidebar-module-header.has-active .nav-icon {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
}

.module-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: #64748b;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
    flex-shrink: 0;
}

.sidebar-module-header:hover .module-chevron {
    color: #cbd5e1;
}

.sidebar-module-header.is-open .module-chevron {
    transform: rotate(180deg);
    color: #818cf8;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 3px 0 6px 21px;
    padding-left: 11px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 32px;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    padding-left: 12px;
}

.sidebar-sublink.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.24) 0%, rgba(99, 102, 241, 0.08) 100%);
    font-weight: 600;
    box-shadow: inset 2.5px 0 0 #818cf8;
}

.sublink-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.sidebar-sublink:hover .sublink-dot {
    background: #a5b4fc;
    transform: scale(1.2);
}

.sidebar-sublink.is-active .sublink-dot {
    background: #818cf8;
    box-shadow: 0 0 6px #818cf8;
    transform: scale(1.3);
}

.sublink-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    min-height: 58px;
    padding: 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
    gap: 8px;
}

.sidebar-footer .profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
    transition: background 0.18s ease;
}

.sidebar-footer .profile-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
}

.avatar.avatar-online {
    position: relative;
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
}

.avatar.avatar-online::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0b1120;
}

.profile-copy {
    min-width: 0;
}

.profile-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-copy small {
    display: block;
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.footer-action-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.footer-action-btn svg {
    width: 15px;
    height: 15px;
}

.footer-action-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.footer-logout-btn:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

/* ==========================================================================
   Top Navigation Bar (Glassmorphic)
   ========================================================================== */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 200ms ease, border-color 200ms ease;
}

html.dark .app-topbar {
    background: rgba(15, 23, 42, 0.85);
}

.topbar-start {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.topbar-eyebrow a {
    color: var(--text-secondary);
    text-decoration: none;
}

.topbar-eyebrow a:hover {
    color: var(--accent-primary);
}

.topbar-title {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
}

.topbar-search input {
    width: 240px;
    height: 38px;
    padding: 0 42px 0 36px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 180ms ease;
}

.topbar-search input:focus {
    width: 280px;
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.topbar-search kbd {
    position: absolute;
    right: 12px;
    padding: 2px 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.theme-toggle-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.topbar-icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

.topbar-icon-button:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.topbar-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.topbar-icon-button span {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: #e11d48;
    box-shadow: 0 0 0 2px var(--bg-surface);
}

.avatar-small {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.app-content {
    flex: 1;
    padding: 24px 28px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .app-content {
        padding: 16px 14px;
    }
}

.page-intro-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.page-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.module-intro h2 {
    margin: 4px 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.module-intro p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    font-size: 12px;
    font-weight: 600;
}

.topbar-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-dot);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Modern SaaS KPI Cards & Metrics Grid
   ========================================================================== */

.module-metrics,
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .module-metrics,
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .module-metrics,
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }
}

.module-metric-card,
.dashboard-metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.module-metric-card:hover,
.dashboard-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.module-metric-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-metric-value,
.dashboard-metric-value {
    display: block;
    margin: 10px 0 6px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
}

.module-metric-change,
.dashboard-metric-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success-text);
}

.metric-change-neutral {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   Modern Tables & Data Panels
   ========================================================================== */

.records-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 32px;
}

.records-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
}

.records-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.records-title-row h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.record-count {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
}

.records-heading p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.records-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    background: var(--bg-surface-hover);
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    max-width: 380px;
}

.table-search svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.table-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 150ms ease;
}

.table-search input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.table-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 24px;
    background: var(--bg-surface-hover);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    color: var(--text-muted);
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 150ms ease;
}

.search-input-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.module-metric-decoration {
    display: none !important;
}

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

.select-filter {
    position: relative;
    display: flex;
    align-items: center;
}

.select-filter svg {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.select-filter select {
    height: 38px;
    padding: 0 32px 0 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.table-scroll::-webkit-scrollbar {
    height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--bg-surface-hover);
    border-radius: 99px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 99px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.workspace-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.workspace-table th {
    padding: 12px 16px;
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.workspace-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 13.5px;
    vertical-align: middle;
}

.workspace-table tr:hover td {
    background-color: var(--bg-surface-hover);
}

.table-action-heading,
.table-row-action {
    position: sticky;
    right: 0;
    background: var(--bg-surface);
    z-index: 2;
    text-align: right;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.04);
}

.workspace-table th.table-action-heading {
    background: var(--bg-surface-hover);
    z-index: 3;
}

.workspace-table tr:hover .table-row-action {
    background-color: var(--bg-surface-hover);
}

.table-person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tone-blue, .tone-lavender {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.tone-mint {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.tone-peach {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tone-sky {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.tone-rose {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.table-primary-text {
    font-weight: 600;
    color: var(--text-primary);
}

.table-secondary-text {
    color: var(--text-secondary);
}

.table-amount {
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

/* ==========================================================================
   Status Pills
   ========================================================================== */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill span:first-child {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-qualified,
.status-won,
.status-active,
.status-paid,
.status-accepted,
.status-resolved {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}
.status-qualified span:first-child,
.status-won span:first-child,
.status-active span:first-child,
.status-paid span:first-child,
.status-accepted span:first-child,
.status-resolved span:first-child {
    background: var(--success-dot);
}

.status-new-lead,
.status-discovery,
.status-proposal-sent,
.status-follow-up,
.status-in-progress,
.status-open,
.status-pending {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
}
.status-new-lead span:first-child,
.status-discovery span:first-child,
.status-proposal-sent span:first-child,
.status-follow-up span:first-child,
.status-in-progress span:first-child,
.status-open span:first-child,
.status-pending span:first-child {
    background: var(--info-dot);
}

.status-lost,
.status-declined,
.status-overdue,
.status-urgent,
.status-high {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}
.status-lost span:first-child,
.status-declined span:first-child,
.status-overdue span:first-child,
.status-urgent span:first-child,
.status-high span:first-child {
    background: var(--danger-dot);
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms ease;
    border: 1px solid transparent;
}

.button-primary {
    background: var(--accent-primary);
    color: #ffffff !important;
}

.button-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.button-secondary {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
    color: var(--text-primary) !important;
}

.button-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
}

.row-more-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

.row-more-button:hover {
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.workspace-modal {
    width: min(100%, 560px);
    max-height: min(92vh, 800px);
    overflow-y: auto;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modalScaleIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.modal-heading h3 {
    margin: 4px 0 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 150ms ease;
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
}

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

@media (max-width: 600px) {
    .preview-form-grid {
        grid-template-columns: 1fr;
    }
}

.preview-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-field-full {
    grid-column: 1 / -1;
}

.preview-field span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-field input,
.preview-field select,
.preview-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: all 150ms ease;
    box-sizing: border-box;
}

.preview-field input:focus,
.preview-field select:focus,
.preview-field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.record-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.record-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-md);
}

.record-detail span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.record-detail strong {
    font-size: 13.5px;
    color: var(--text-primary);
}

/* ==========================================================================
   Dashboard Specific Charts & Panels
   ========================================================================== */

.dashboard-welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-welcome-row h2 {
    margin: 4px 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
}

.dashboard-date {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

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

.panel-card {
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-heading h2 {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12.5px;
    color: var(--text-secondary);
}


/* ==========================================================================
   Settings Module — Modern SaaS Theme Extensions
   ========================================================================== */

.settings-page {
    max-width: 1400px;
    margin: 0 auto;
}

.settings-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.settings-intro h2 {
    margin: 4px 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.settings-intro p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.settings-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.settings-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
}

.settings-alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.settings-alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

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

.settings-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start;
}

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

.settings-categories {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 16px;
}

.settings-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.settings-search span {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.settings-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.settings-search input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.settings-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 150ms ease;
    border: 1px solid transparent;
}

.settings-category:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.settings-category-active {
    background: var(--accent-subtle) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: var(--accent-primary) !important;
}

.settings-category-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.settings-category-active .settings-category-icon {
    background: var(--accent-primary);
    color: #ffffff;
}

.settings-category strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.settings-category small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.settings-category-arrow {
    margin-left: auto;
    font-size: 16px;
    color: var(--text-muted);
}

.settings-sidebar-note {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.settings-sidebar-note strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.settings-group-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.settings-group-heading h3 {
    margin: 4px 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-group-heading p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.settings-save-hint {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-hover);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.settings-note {
    padding: 14px 18px;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-md);
    color: var(--info-text);
    font-size: 12.5px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.settings-note strong {
    display: block;
    margin-bottom: 2px;
}

.settings-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .settings-fields-grid {
        grid-template-columns: 1fr;
    }
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-field-full {
    grid-column: 1 / -1;
}

.settings-field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-field-label b {
    color: #ef4444;
}

.settings-field input[type="text"],
.settings-field input[type="email"],
.settings-field input[type="tel"],
.settings-field input[type="url"],
.settings-field input[type="number"],
.settings-field input[type="password"],
.settings-field select,
.settings-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: all 150ms ease;
    box-sizing: border-box;
}

.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.settings-field-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.settings-field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.settings-checkbox-copy strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.settings-checkbox-copy small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}

.settings-field-help {
    font-size: 11.5px;
    color: var(--text-muted);
}

.settings-field-error {
    font-size: 11.5px;
    color: #ef4444;
    font-weight: 500;
}

.settings-secret-status {
    font-size: 11.5px;
    color: var(--success-text);
    font-weight: 600;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 150ms ease;
}

.settings-button-primary {
    background: var(--accent-primary);
    color: #ffffff;
}

.settings-button-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.settings-button-secondary {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.settings-button-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
}

.settings-button-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
}

.settings-button-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.settings-button-muted {
    background: var(--bg-surface-hover);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

/* ==========================================================================
   Dashboard SVG Charts & Dark Mode Adjustments
   ========================================================================== */

.revenue-chart,
.pipeline-chart {
    background: transparent;
}

.chart-y-labels span,
.chart-x-labels span {
    color: var(--text-muted);
    font-size: 11px;
}

.chart-grid-lines span {
    border-bottom: 1px dashed var(--border-subtle);
}

.chart-line {
    stroke: var(--accent-primary);
    stroke-width: 2.5;
}

.chart-end-dot {
    fill: var(--accent-primary);
    stroke: var(--bg-surface);
    stroke-width: 3;
}

.chart-summary strong {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 800;
}

.chart-positive {
    color: var(--success-text);
    font-weight: 700;
}

.pipeline-total strong {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
}

.pipeline-legend li {
    color: var(--text-secondary);
    font-size: 12.5px;
}

.pipeline-legend strong {
    color: var(--text-primary);
}

.pipeline-footer {
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.pipeline-footer strong {
    color: var(--text-primary);
}


/* ==========================================================================
   Sample Banner & Dashboard Footer
   ========================================================================== */

.sample-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin-bottom: 24px;
    background: var(--accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 13px;
    flex-wrap: wrap;
}

.sample-banner-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sample-banner p {
    margin: 0;
    flex: 1;
    min-width: 260px;
}

.sample-banner p strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.sample-banner a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sample-banner a:hover {
    text-decoration: underline;
}

.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   Adaptive Mobile App UI & CRM Lead Workflow Components
   ========================================================================== */

/* Mobile Bottom Navigation Bar (< 768px) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile Topbar / Header Polish */
    .app-topbar {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 12px !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    html.dark .app-topbar {
        background: rgba(15, 23, 42, 0.95) !important;
    }

    .topbar-start {
        gap: 10px !important;
        min-width: 0;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .mobile-menu-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        background: var(--bg-surface-hover) !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 8px !important;
        color: var(--text-primary) !important;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s ease;
    }

    .mobile-menu-button:active {
        transform: scale(0.94);
        background: var(--accent-subtle) !important;
    }

    .topbar-eyebrow {
        display: none !important;
    }

    .topbar-title {
        font-size: 15px !important;
        font-weight: 750 !important;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        margin: 0 !important;
    }

    .topbar-user {
        gap: 6px !important;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    /* Clean mobile header: hide wide search bar & desktop PWA button */
    .topbar-search,
    .topbar-user .pwa-install-btn {
        display: none !important;
    }

    .theme-toggle-btn,
    .topbar-icon-button {
        width: 34px !important;
        height: 34px !important;
    }

    .avatar-small {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    /* Mobile Sidebar & Backdrop (Native App Drawer Feel) */
    .app-sidebar {
        z-index: 9999 !important;
        width: min(320px, 88vw) !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.6) !important;
    }

    .sidebar-backdrop {
        z-index: 9998 !important;
        background: rgba(15, 23, 42, 0.75) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Mobile App Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(56px + env(safe-area-inset-bottom)) !important;
        background: var(--bg-surface) !important;
        border-top: 1px solid var(--border-subtle) !important;
        align-items: center !important;
        justify-content: space-around !important;
        z-index: 9990 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    html.dark .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.95) !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 10px;
        font-weight: 550;
        flex: 1;
        height: 100%;
        transition: color 0.15s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item:active {
        transform: scale(0.92);
    }

    .mobile-nav-item.mobile-nav-btn {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        font-family: inherit;
    }

    .mobile-nav-item.active {
        color: var(--accent-primary) !important;
        font-weight: 750 !important;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .mobile-nav-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        flex-shrink: 0;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -6px;
        right: -9px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 99px;
        background: #ef4444;
        color: #fff;
        font-size: 9.5px;
        font-weight: 750;
        line-height: 17px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    }

    /* Padding compensation on main wrap for bottom nav */
    .app-main-wrap {
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }
}

/* Mobile Floating Action Button (FAB) */
.mobile-fab {
    display: none;
}

@media (max-width: 767px) {
    .mobile-fab {
        display: flex;
        position: fixed;
        right: 20px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        z-index: 89;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--accent-primary);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
        align-items: center;
        justify-content: center;
        font-size: 26px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: transform 0.12s ease, background-color 0.15s ease;
        text-decoration: none;
    }

    .mobile-fab:active {
        transform: scale(0.92);
    }
}

/* Dual View Toggle: Desktop Table vs. Mobile Cards */
@media (max-width: 767px) {
    .desktop-only-table {
        display: none !important;
    }

    .mobile-cards-container,
    .mobile-lead-cards-container {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 14px;
    }
}

@media (min-width: 768px) {
    .desktop-only-table {
        display: block !important;
    }

    .mobile-cards-container,
    .mobile-lead-cards-container {
        display: none !important;
    }
}

/* Mobile Lead Card Design */
.mobile-lead-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-lead-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.mobile-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mobile-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.mobile-card-company {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.mobile-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.mobile-card-meta-item {
    display: flex;
    flex-direction: column;
}

.mobile-card-meta-item span {
    color: var(--text-tertiary);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mobile-card-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12.5px;
}

.mobile-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.mobile-action-btn.call {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.dark .mobile-action-btn.call {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.mobile-action-btn.whatsapp {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.dark .mobile-action-btn.whatsapp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

/* Form 5-Section Stepper */
.lead-form-stepper {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.lead-form-stepper::-webkit-scrollbar {
    display: none;
}

.stepper-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.stepper-tab.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.stepper-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.stepper-tab.active .stepper-badge {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Priority Tier Badges */
.priority-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.priority-urgent {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-high {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.priority-medium {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.priority-low {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dark .priority-urgent {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

.dark .priority-high {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    border-color: rgba(234, 88, 12, 0.3);
}

.dark .priority-medium {
    background: rgba(202, 138, 4, 0.15);
    color: #facc15;
    border-color: rgba(202, 138, 4, 0.3);
}

.dark .priority-low {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.3);
}

/* Lead Timeline Component */
.timeline-list {
    position: relative;
    padding-left: 28px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 10px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
}

.timeline-icon-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.timeline-item-content {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.timeline-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.timeline-item-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Universal Mobile App Cards & Touch Interactions
   ========================================================================== */
.mobile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.mobile-action-btn.email {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dark .mobile-action-btn.email {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

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

.mobile-action-btn.primary:hover {
    background: var(--accent-primary-hover);
    color: #ffffff;
}

.mobile-action-btn.danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.dark .mobile-action-btn.danger {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

/* Mobile Touch Ergonomics for Inputs (< 768px) */
@media (max-width: 767px) {
    /* Prevent iOS Safari 16px auto-zoom and ensure comfortable touch targets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 44px;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-light,
    .mobile-action-btn {
        min-height: 42px;
        touch-action: manipulation;
    }

    /* Prevent horizontal page blowouts */
    body, .app-shell, .app-main-wrap, .app-content {
        overflow-x: clip;
        max-width: 100vw;
    }
}

/* Responsive Form Layouts (Desktop 2-column, Mobile 1-column stack) */
.form-layout-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 767px) {
    .form-layout-split,
    .form-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* ==========================================================================
   PWA Installation Banner & Guidance UI
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--accent-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 95;
    animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pwa-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.pwa-banner-text {
    min-width: 0;
}

.pwa-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwa-banner-subtitle {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.pwa-install-btn:hover {
    opacity: 0.9;
}

.pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    transition: color 0.15s ease;
}

.pwa-dismiss-btn:hover {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .pwa-install-banner {
        bottom: 24px;
        right: 24px;
        left: auto;
        max-width: 390px;
        margin: 0;
    }
}

/* ==========================================================================
   Page Enhancements: Profile, CRM Settings, and Sidebar Refinements
   ========================================================================== */
.crm-settings-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .crm-settings-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Profile Settings Page Dark/Light Mode Compatibility */
.profile-settings-stack .text-gray-900 {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.profile-settings-stack .text-gray-600,
.profile-settings-stack .text-gray-800 {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}

.profile-settings-stack input[type="text"],
.profile-settings-stack input[type="email"],
.profile-settings-stack input[type="password"] {
    background: var(--bg-surface-hover) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-settings-stack input:focus {
    border-color: var(--accent-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--accent-subtle) !important;
}

.profile-settings-stack button[type="submit"] {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border: none !important;
    cursor: pointer !important;
}

/* Sidebar Refinements */
.sidebar-link .nav-count {
    transition: transform 0.15s ease;
}

.sidebar-link:hover .nav-count {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .app-sidebar {
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-scroll {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Professional Lead Management & Client Communication Desk Drawer
   ========================================================================== */

.manage-lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.25);
    transition: all 180ms ease;
    white-space: nowrap;
    text-decoration: none;
}

.manage-lead-btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.35);
    transform: translateY(-1px);
}

.row-action-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
    text-decoration: none;
    padding: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.row-action-icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.row-action-icon-btn.row-action-convert:hover {
    color: #059669;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.row-action-icon-btn.row-action-delete:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1120px) {
    .invoice-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lead-desk-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.lead-desk-drawer {
    width: min(100vw, 980px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.35);
    border-left: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    z-index: 1001;
    transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms ease;
    will-change: transform, width;
}

.lead-desk-drawer.desk-expanded {
    width: min(100vw, 1380px);
}

@media (max-width: 768px) {
    .lead-desk-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-left: none;
        border-radius: 0;
    }

    .lead-desk-header {
        padding: 12px 16px;
    }

    .lead-desk-tabs {
        padding: 0 10px;
        gap: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .lead-desk-tab-btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .lead-desk-body {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .lead-desk-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .manage-lead-btn {
        min-height: 44px;
        font-size: 13px;
        padding: 10px 16px;
    }

    .mobile-action-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .row-more-button {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    .modal-actions {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

.lead-desk-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.lead-desk-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lead-desk-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface-hover);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.lead-desk-tabs::-webkit-scrollbar {
    display: none;
}

.lead-desk-tab-btn {
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 150ms ease;
}

.lead-desk-tab-btn:hover {
    color: var(--text-primary);
}

.lead-desk-tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-surface);
}

.lead-desk-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-surface);
}

.lead-desk-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lead-desk-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lead-desk-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 640px) {
    .lead-desk-grid-2 {
        grid-template-columns: 1fr;
    }
}

.lead-desk-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .lead-desk-grid-3 {
        grid-template-columns: 1fr;
    }
}









/* ==========================================================================
   ULTRA-PREMIUM AUTHENTICATION EXPERIENCE (LOGIN, REGISTER, OTP)
   ========================================================================== */

.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid !important;
    min-height: 100vh;
    grid-template-columns: minmax(460px, 45%) 1fr;
    background: #f8fafc;
}

@media (max-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr !important;
    }
    .auth-aside {
        display: none !important;
    }
}

/* ASIDE PANEL (LEFT BANNER) */
.auth-aside {
    position: relative;
    display: flex !important;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px 10%;
    color: #ffffff !important;
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f172a 45%, #090d16 100%) !important;
    background-image: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f172a 45%, #090d16 100%) !important;
    box-sizing: border-box;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.auth-aside-glow-1 {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
}

.auth-aside-glow-2 {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    pointer-events: none;
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0) 70%);
}

.auth-aside-header {
    position: relative;
    z-index: 2;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.auth-brand .workspace-brand-logo {
    max-height: 44px;
    max-width: 170px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.auth-brand .brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
}

.auth-brand .brand-copy strong {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    display: block;
}

.auth-brand .brand-copy small {
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.auth-pitch {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin: auto 0;
    padding: 36px 0;
}

.auth-pitch .auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(165, 180, 252, 0.3);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-pitch h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.18;
}

.auth-pitch h1 span {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-pitch > p {
    margin: 0 0 28px;
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.6;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.07);
}

.feature-check {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 14px;
    font-weight: 800;
}

.auth-feature div strong {
    display: block;
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 700;
}

.auth-feature div small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 1px;
}

.auth-aside-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-copyright {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.auth-aside-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #94a3b8;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* MAIN FORM AREA (RIGHT) */
.auth-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh;
    padding: 40px 24px;
    background: #f8fafc;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 470px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 38px 36px !important;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 28px 20px !important;
        border-radius: 18px !important;
    }
}

.auth-card-brand-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.auth-card-logo-img {
    max-height: 52px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

.auth-card-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.auth-card-company-name {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a !important;
    letter-spacing: -0.4px;
}

.auth-card-tagline {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* TAB NAVIGATION */
.auth-tab-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: #f1f5f9 !important;
    border-radius: 13px !important;
    padding: 4px !important;
    margin-bottom: 22px !important;
    border: 1px solid #e2e8f0 !important;
    gap: 4px !important;
}

.auth-tab-btn {
    height: 42px !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #64748b !important;
    background: transparent !important;
    user-select: none;
}

.auth-tab-btn .tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-tab-btn.is-active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.auth-tab-badge {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 99px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
}

/* FORM FIELDS */
.auth-form-fields {
    display: grid;
    gap: 16px;
}

.auth-form-group {
    display: grid;
    gap: 6px;
    margin-bottom: 2px;
}

.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
}

.auth-input-text {
    width: 100% !important;
    height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 11px !important;
    padding: 0 14px 0 42px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.auth-input-text::placeholder {
    color: #94a3b8 !important;
}

.auth-input-text:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.15) !important;
}

.auth-toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 150ms ease;
}

.auth-toggle-eye:hover {
    color: #4f46e5;
}

.auth-toggle-eye svg {
    width: 18px;
    height: 18px;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.auth-checkbox-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #4f46e5;
}

.auth-link-subtle {
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.auth-link-subtle:hover {
    text-decoration: underline;
    color: #3730a3;
}

.auth-form-error {
    margin: 4px 0 0;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
}

/* BUTTONS */
.auth-btn-primary {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    margin-top: 14px;
}

.auth-btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45) !important;
}

.auth-btn-primary:active {
    transform: translateY(0) !important;
}

.auth-btn-primary:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
    transform: none !important;
}

.auth-btn-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

.auth-btn-emerald:hover {
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.45) !important;
}

/* ALERTS */
.auth-alert {
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

/* OTP SPECIFIC */
.auth-step-desc {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
}

.auth-helper-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.pill-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.auth-destination-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.dest-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
}

.dest-value {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dest-edit-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}

.auth-otp-field-container {
    margin-bottom: 20px;
    text-align: center;
}

.auth-otp-box {
    width: 260px;
    height: 54px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 12px;
    font-family: monospace, -apple-system, BlinkMacSystemFont, sans-serif;
    border: 2px solid #4f46e5 !important;
    border-radius: 13px !important;
    outline: none !important;
    background: #f8fafc !important;
    color: #1e1b4b !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    box-sizing: border-box !important;
    margin: 8px auto 0 !important;
    display: block !important;
    transition: all 150ms ease !important;
}

.auth-otp-box:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.2) !important;
}

.auth-otp-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.resend-countdown {
    color: #64748b;
    font-size: 12.5px;
}

.resend-btn-active {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.resend-btn-active:hover {
    text-decoration: underline;
}

/* DEMO BAR */
.auth-demo-bar {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.auth-demo-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.auth-demo-pills-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 150ms ease;
}

.pill-admin {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

.pill-admin:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateY(-1px);
}

.pill-client {
    background: #f5f3ff !important;
    color: #7c3aed !important;
    border: 1px solid #ddd6fe !important;
}

.pill-client:hover {
    background: #ede9fe !important;
    border-color: #c4b5fd !important;
    transform: translateY(-1px);
}

/* FOOTER */
.auth-switch-link {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.auth-switch-link a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.auth-card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.auth-security {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-dot {
    color: #10b981;
}

/* ANIMATIONS */
.auth-fade-enter {
    animation: authFadeIn 180ms ease forwards;
}

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

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.auth-card.auth-card-wide {
    max-width: 680px !important;
}
