/* ============================================
   NexHire — Design System
   Modern Dark Glassmorphism Theme
   ============================================ */

/* ---- Google Fonts ---- */
/* NOTE: Google Fonts loaded via <link> tags in layout HTML for performance */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Palette */
    --primary: #6C63FF;
    --primary-light: #5A52E0;
    --primary-dark: #5A52E0;
    --primary-glow: rgba(108, 99, 255, 0.4);
    
    /* Accent */
    --accent: #00D9A5;
    --accent-light: #00B88A;
    --accent-dark: #00B88A;
    --accent-glow: rgba(0, 217, 165, 0.4);
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --purple: #8B5CF6;
    --teal: #14B8A6;
    
    /* Light Theme Backgrounds (White Default) */
    --bg-primary: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(108, 99, 255, 0.02);
    --bg-glass-hover: rgba(108, 99, 255, 0.04);
    --bg-input: rgba(0, 0, 0, 0.03);
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    
    /* Text */
    --text-primary: #1A1A24;
    --text-secondary: #52526B;
    --text-muted: #5B5B75;
    --text-inverse: #FFFFFF;
    
    /* Borders */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(108, 99, 255, 0.25);
    --border-focus: rgba(108, 99, 255, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 10px 30px rgba(108, 99, 255, 0.08);
    --shadow-accent-glow: 0 10px 30px rgba(0, 217, 165, 0.08);
    
    /* Glass Effect */
    --glass-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50%;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --container-max: 1200px;
}

[data-theme="dark"] {
    --bg-primary: #0A0A14;
    --bg-secondary: #0F0F1A;
    --bg-card: rgba(22, 22, 40, 0.8);
    --bg-card-hover: rgba(30, 30, 55, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-sidebar: rgba(15, 15, 26, 0.95);
    --text-primary: #F0F0F5;
    --text-secondary: #8888A0;
    --text-muted: #555570;
    --text-inverse: #0A0A14;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(108, 99, 255, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 10px 30px rgba(108, 99, 255, 0.2);
    --shadow-accent-glow: 0 10px 30px rgba(0, 217, 165, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Hover overrides for dark theme */
    --primary-light: #8B83FF;
    --accent-light: #33E4BA;
}

[data-theme="light"] {
    --bg-primary: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(108, 99, 255, 0.02);
    --bg-glass-hover: rgba(108, 99, 255, 0.04);
    --bg-input: rgba(0, 0, 0, 0.03);
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    --primary: #5E55FA;
    --text-primary: #1A1A24;
    --text-secondary: #52526B;
    --text-muted: #5B5B75;
    --text-inverse: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(108, 99, 255, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 10px 30px rgba(108, 99, 255, 0.08);
    --shadow-accent-glow: 0 10px 30px rgba(0, 217, 165, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
    --primary-light: #5A52E0;
    --accent-light: #00B88A;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 217, 165, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: bgShift 20s ease infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.flex {
    display: flex;
}

.flex-col, .flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-auto {
    flex: 1 1 auto;
}

.flex-none {
    flex: none;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.grid {
    display: grid;
}

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

.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-inverse);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    box-shadow: 0 6px 25px var(--accent-glow);
    transform: translateY(-2px);
    color: var(--text-inverse);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-warning {
    background: var(--warning);
    color: #0A0A14;
}

.btn-warning:hover {
    background: #D97706;
    color: #0A0A14;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   Form Inputs
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255, 255, 255, 0.07);
}

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

.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888A0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-icon {
    position: relative;
}

.input-icon .form-control {
    padding-left: 44px;
}

.input-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.input-icon:focus-within > i {
    color: var(--primary);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    transition: var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: white;
}

/* ============================================
   Navigation / Header
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    /* Prevent navbar from causing horizontal scroll */
    max-width: 100%;
    overflow: visible;
}


.navbar.scrolled {
    background: var(--bg-sidebar);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 14px;
        gap: 8px;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 800;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.nav-lang-select {
    padding: 6px 10px;
    font-size: 13px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

.nav-lang-select:focus {
    border-color: var(--primary);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    cursor: pointer;
    padding: 2px;
    z-index: 10006;
    background: transparent;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background: var(--primary);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background: var(--primary);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.notification-bell:hover {
    background: var(--bg-glass-hover);
    color: var(--primary-light);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: white;
    background: var(--danger);
    border-radius: 10px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User avatar in nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-user:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding-bottom: 6px;
    margin-bottom: -6px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 235px;
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

[data-theme="dark"] .dropdown-menu {
    background: #181828;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.18s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(108, 99, 255, 0.1) !important;
    color: var(--primary) !important;
    transform: translateX(4px);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: rgba(108, 99, 255, 0.22) !important;
    color: #a594fd !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.dropdown-item:hover i {
    transform: scale(1.15);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, rgba(0, 0, 0, 0.08));
    margin: 6px 6px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: calc(var(--header-height) + 80px) 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: heroPulse 6s ease infinite alternate;
}

@keyframes heroPulse {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.2); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Hero Search Bar */
.hero-search {
    max-width: 760px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6px 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.hero-search .search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.hero-search .search-input-wrapper .search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.hero-search .search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 15px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
}

.hero-search .search-input::placeholder {
    color: var(--text-muted);
}

.hero-search .location-autocomplete {
    flex: 0 0 220px;
    position: relative;
    border-left: 1px solid var(--border-color);
}

.hero-search .location-autocomplete .location-input {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 14px 36px 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.hero-search .search-btn {
    height: 48px;
    min-height: 48px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-search .search-btn:hover {
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-1px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   Job Cards
   ============================================ */
.job-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.job-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.job-card-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card-info {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-card-company {
    font-size: 13px;
    color: var(--text-secondary);
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.job-tag {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-tag i {
    font-size: 11px;
}

.job-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.job-card-salary {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.job-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

.job-card-actions {
    display: flex;
    gap: 8px;
}

.job-save-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.job-save-btn:hover,
.job-save-btn.saved {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Featured badge */
.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--warning), #D97706);
    color: white;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-urgent {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Category Cards
   ============================================ */
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.category-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 165, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1;
    gap: 4px;
}

.badge-primary, .badge.primary {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.badge-success, .badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning, .badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger, .badge.danger, .badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info, .badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-secondary, .badge.secondary {
    background: rgba(136, 136, 160, 0.15);
    color: var(--text-secondary);
}

.badge-purple, .badge.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
}

.badge-teal, .badge.teal {
    background: rgba(20, 184, 166, 0.15);
    color: var(--teal);
}

/* ============================================
   Stat Cards (Dashboard)
   ============================================ */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-card.primary::before { background: var(--primary); }
.stat-card.accent::before { background: var(--accent); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-card.primary .stat-card-icon { background: rgba(108, 99, 255, 0.15); color: var(--primary); }
.stat-card.accent .stat-card-icon { background: rgba(0, 217, 165, 0.15); color: var(--accent); }
.stat-card.warning .stat-card-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-card.info .stat-card-icon { background: rgba(59, 130, 246, 0.15); color: var(--info); }

.stat-card-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* ============================================
   Profile Completion Ring
   ============================================ */
.profile-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.profile-ring .ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 6;
}

.profile-ring .ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease;
}

.profile-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   Tables
   ============================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.table tr:hover td {
    background: var(--bg-glass);
}

/* ============================================
   Alerts / Toast
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: 16px;
    font-size: 14px;
    animation: slideInDown 0.4s ease;
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error, .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    cursor: pointer;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   Modal
   ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow-y: auto;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 12px;
    max-width: 280px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom p {
    color: #94a3b8;
}

/* ============================================
   Loading / Skeleton
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Animations - Fade In
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease both;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

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

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* ============================================
   Stepper (Multi-step form)
   ============================================ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

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

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.step.active .step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step.completed .step-number {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-label { color: var(--primary-light); }
.step.completed .step-label { color: var(--success); }

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    flex-shrink: 0;
}

.step-line.completed {
    background: var(--success);
}

/* ============================================
   Password Strength
   ============================================ */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    transition: background var(--transition-fast);
}

.password-strength[data-strength="1"] .password-strength-bar:nth-child(1) { background: var(--danger); }
.password-strength[data-strength="2"] .password-strength-bar:nth-child(-n+2) { background: var(--warning); }
.password-strength[data-strength="3"] .password-strength-bar:nth-child(-n+3) { background: var(--info); }
.password-strength[data-strength="4"] .password-strength-bar { background: var(--success); }

/* ============================================
   Selection (for accessibility)
   ============================================ */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   Responsive Layout Grids (Mobile Stacking)
   ============================================ */
.hero-premium-grid {
    grid-template-columns: 1.2fr 0.8fr;
}
.contact-grid {
    grid-template-columns: 1fr 1fr;
}
.search-grid {
    grid-template-columns: 280px 1fr;
}
.job-details-grid {
    grid-template-columns: 1fr 340px;
}

@media (max-width: 768px) {
    .hero-premium-grid,
    .contact-grid,
    .search-grid,
    .job-details-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Location Autocomplete Widget
   ============================================ */
.location-autocomplete {
    position: relative;
    width: 100%;
}

.location-autocomplete .location-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-base);
}

.location-autocomplete .location-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.location-autocomplete .location-input::placeholder {
    color: var(--text-muted);
}

.location-autocomplete .gps-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.location-autocomplete .gps-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.location-autocomplete .gps-btn.loading {
    animation: spin 1s linear infinite;
    color: var(--primary);
}

.location-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    display: none;
}

.location-suggestions.visible {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.location-suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover,
.location-suggestion-item.active {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.location-suggestion-item i {
    color: var(--primary);
    font-size: 13px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.location-suggestion-item .suggestion-main {
    font-weight: 500;
    color: var(--text-primary);
}

.location-suggestion-item .suggestion-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.location-suggestions .loading-msg,
.location-suggestions .no-results-msg {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.location-suggestions .loading-msg i {
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

/* Hero search location autocomplete variant */
.hero-search .location-autocomplete {
    flex: 0 0 220px;
    border-left: 1px solid var(--border-color);
}

.hero-search .location-autocomplete .location-input {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 14px 36px 14px 16px;
    font-size: 14px;
}

.hero-search .location-autocomplete .location-input:focus {
    box-shadow: none;
}

.hero-search .location-autocomplete .gps-btn {
    right: 2px;
}

/* Profile auto-detect button */
.auto-detect-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 12px;
}

.auto-detect-btn:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.4);
}

.auto-detect-btn.loading i {
    animation: spin 1s linear infinite;
}

/* ============================================
   Hero floating card overflow fix
   ============================================ */
.hero-premium-section {
    overflow: hidden;
}

.hero-right-column {
    overflow: visible;
}

.hero-image-frame {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .hero-right-column {
        display: none;
    }
    .hero-search .location-autocomplete {
        flex: 1 1 auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 1024px) {
    .hero-search .location-autocomplete {
        flex: 1 1 auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* ============================================
   Global Back Link Utility Class
   ============================================ */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-back:hover {
    color: var(--primary-light);
}

/* ============================================
   Homepage Hero & Animations
   ============================================ */
.hero-premium-section {
    padding: calc(var(--header-height) + 60px) 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-premium-section .glow-bg-right {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-premium-section .glow-bg-left {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 165, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Homepage animation keyframes */
@keyframes floatPulse {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@keyframes floatCardTop {
    0% { transform: translateY(0) rotate(1deg); }
    100% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatCardBottom {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(8px) rotate(1deg); }
}

@keyframes pulseGreen {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 217, 165, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 217, 165, 0); }
}

@keyframes pulseGlowBtn {
    0% { box-shadow: 0 0 10px rgba(108,99,255,0.2); }
    100% { box-shadow: 0 0 20px rgba(108,99,255,0.4); }
}

.floating-card-top {
    animation: floatCardTop 4s ease infinite alternate;
}

.floating-card-bottom {
    animation: floatCardBottom 4s ease infinite alternate;
}

@keyframes blinker {
    50% { opacity: 0; }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mainFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes overlayFloat1 {
    0% { transform: translateZ(50px) translateY(0); }
    100% { transform: translateZ(50px) translateY(-8px); }
}

@keyframes overlayFloat2 {
    0% { transform: translateZ(40px) translateY(0); }
    100% { transform: translateZ(40px) translateY(8px); }
}

@keyframes overlayFloat3 {
    0% { transform: translateZ(30px) translateX(0); }
    100% { transform: translateZ(30px) translateX(-6px); }
}

@keyframes overlayFloat4 {
    0% { transform: translateZ(30px) translateX(0); }
    100% { transform: translateZ(30px) translateX(6px); }
}

.ticker-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.ticker-item strong {
    color: var(--primary);
    margin-left: 4px;
}

[data-theme="dark"] .ticker-item strong {
    color: var(--accent);
}

.hero-graphic-3d-wrapper {
    transform-style: preserve-3d;
}

.hero-right-column:hover .hero-graphic-3d-wrapper {
    transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg) scale(1.04) !important;
}

.hero-right-column:hover .mockup-sheen {
    transform: skewX(-25deg) translateX(150%);
}

.hero-right-column:hover .mockup-glass-card {
    border-color: rgba(0, 217, 165, 0.45) !important;
    box-shadow: 0 35px 80px rgba(0,0,0,0.65), 0 0 60px rgba(0,217,165,0.25) !important;
}

.floating-glass-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-glass-card:hover {
    background: rgba(30,30,55,0.95) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 20px 45px rgba(108,99,255,0.25) !important;
}

@media (max-width: 1200px) {
    .floating-glass-card {
        transform: scale(0.8) !important;
    }
}

@media (max-width: 992px) {
    .floating-glass-card {
        display: none !important;
    }
}

.ats-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.05);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.ats-gauge-ring {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Helper Visibility & Component Custom styles
   ============================================ */
.hide-on-desktop {
    display: none !important;
}

/* Profile Tab Navigation (sidebar style on desktop) */
.profile-tab {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    list-style: none;
    text-decoration: none;
    white-space: nowrap;
}

.profile-tab:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.profile-tab.active {
    background: rgba(108, 99, 255, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(108, 99, 255, 0.2) !important;
}

[data-theme="dark"] .profile-tab.active {
    background: rgba(108, 99, 255, 0.18) !important;
    color: var(--primary-light) !important;
    border-color: rgba(108, 99, 255, 0.3) !important;
}

/* ============================================
   FAQ Accordion Component
   ============================================ */
.faq-accordion-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.faq-accordion-item:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.08);
    transform: translateY(-2px);
}

.faq-accordion-item.active {
    border-color: rgba(108, 99, 255, 0.45);
    background: var(--bg-card, #ffffff);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.1);
}

[data-theme="dark"] .faq-accordion-item {
    background: #181828;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .faq-accordion-item:hover {
    border-color: rgba(108, 99, 255, 0.45);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.2);
}

[data-theme="dark"] .faq-accordion-item.active {
    border-color: rgba(108, 99, 255, 0.6);
    background: #1e1e32;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.25);
}

.faq-accordion-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
    outline: none;
    transition: background 0.2s ease;
}

.faq-accordion-toggle:hover {
    background: rgba(108, 99, 255, 0.03);
}

.faq-question-text {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--text-primary);
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.faq-accordion-item.active .faq-question-text {
    color: var(--primary);
}

.faq-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-icon {
    font-size: 13px;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-accordion-item.active .faq-icon-wrapper {
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.35);
}

.faq-accordion-item.active .faq-accordion-icon {
    color: #ffffff;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.faq-answer-inner {
    padding-bottom: 22px;
    padding-top: 14px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}



