/* ═══════════════════════════════════════════════════════════════════════════════
   ManaDBTS - Professional Light Theme Stylesheet
   Comprehensive CSS matching the Next.js Tailwind-based design EXACTLY
   No external dependencies - pure custom CSS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    /* Primary - Indigo */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Background */
    --bg: #f8f9fc;
    --bg-white: #ffffff;

    /* Text */
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #94a3b8;

    /* Border */
    --border: #e5e7eb;
    --border-light: #f1f5f9;

    /* Semantic Colors */
    --success: #059669;
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning: #d97706;
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --danger: #dc2626;
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info: #2563eb;
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-200: #bfdbfe;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1d4ed8;

    /* Extended Color Palette */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-200: #c7d2fe;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;

    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;

    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Layout */
    --sidebar-w: 240px;
    --topbar-h: 56px;
    --bottom-nav-h: 56px;

    /* Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --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.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-indigo: 0 4px 14px rgba(79,70,229,0.25);
    --shadow-indigo-lg: 0 8px 20px rgba(79,70,229,0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.app-main { flex: 1; padding: 24px; padding-bottom: 80px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--bg-white);
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.15s;
    text-decoration: none;
    color: var(--gray-500);
}
.sidebar-link:hover {
    text-decoration: none;
    background: var(--gray-50);
    color: var(--gray-700);
}
.sidebar-link.active {
    background: var(--indigo-50);
    color: var(--indigo-700);
    font-weight: 500;
}

/* ─── Mobile Top Bar ─────────────────────────────────────────────────────── */
.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

/* ─── Mobile Bottom Nav ──────────────────────────────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 4px;
    z-index: 40;
    height: var(--bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom, 6px);
}
.mobile-nav-item {
    text-decoration: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: var(--gray-400);
    font-size: 10px;
    transition: color 0.15s;
}
.mobile-nav-item:hover { text-decoration: none; }
.mobile-nav-item.active { color: var(--primary-600); }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--text); }
h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--text); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--text); }

/* ─── Gradient Backgrounds ───────────────────────────────────────────────── */
.gradient-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
}
.gradient-text {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-bg-subtle {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}
.hero-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
}

/* ─── Glass Card ─────────────────────────────────────────────────────────── */
.glass-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-radius: var(--radius-lg);
}
.glass-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* ─── Card Styles ────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-body { padding: 16px; }
.card-body-lg { padding: 20px; }
.card-header { padding: 16px 16px 0; }
.card-header-lg { padding: 20px 20px 0; }
.card-footer { padding: 0 16px 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-desc { font-size: 13px; color: var(--text-muted); }
.card-content { padding: 16px; }

/* Stat card variants */
.stat-card-purple {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #e9e5f5;
}
.stat-card-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #d5dfeb;
}
.stat-card-green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #c9f0dc;
}
.stat-card-amber {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #f5e6b6;
}

/* ─── Button Styles ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-color: transparent;
}
.btn-primary:hover:not(:disabled) { opacity: 0.9; }

.btn-gradient {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-color: transparent;
}
.btn-gradient:hover:not(:disabled) { opacity: 0.9; }

.btn-secondary, .btn-outline {
    background: var(--bg-white);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
    background: #f1f5f9;
    color: var(--text);
}

.btn-danger {
    background: var(--danger-50);
    color: var(--danger);
    border-color: var(--danger-200);
}
.btn-danger:hover:not(:disabled) { background: var(--danger-100); }

.btn-success {
    background: var(--success-50);
    color: var(--success);
}
.btn-success:hover:not(:disabled) { background: var(--success-100); }

.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; font-weight: 600; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-icon.btn-sm { padding: 4px; width: 28px; height: 28px; }
.btn-full, .btn-w-full { width: 100%; }

/* ─── Form Elements ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label, .label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}
.input, .form-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.input:focus, .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.input:disabled, .form-input:disabled { background: #f8fafc; color: var(--text-muted); cursor: not-allowed; }
.input::placeholder, .form-input::placeholder { color: var(--text-light); }

.textarea, textarea.form-input { resize: vertical; min-height: 80px; }

.select, select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 36px;
}

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge-secondary { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.badge-primary { background: var(--primary-50); color: var(--primary); border-color: var(--primary-200); }
.badge-success { background: var(--success-50); color: var(--success); border-color: #a7f3d0; }
.badge-warning { background: var(--warning-50); color: var(--warning); border-color: #fde68a; }
.badge-danger { background: var(--danger-50); color: var(--danger); border-color: #fecaca; }
.badge-info { background: var(--info-50); color: var(--info); border-color: #bfdbfe; }
.badge-emerald { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.badge-indigo { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }

/* ─── Avatar ─────────────────────────────────────────────────────────────── */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}
.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-weight: 600;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }

/* ─── Progress Bar ───────────────────────────────────────────────────────── */
.progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-sm { height: 6px; }
.progress-lg { height: 12px; }
.progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
    background: var(--primary);
}
.progress-bar-primary { background: var(--primary); }
.progress-bar-gradient { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.progress-bar-success { background: var(--success); }

/* ─── Separator ──────────────────────────────────────────────────────────── */
.separator {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 8px 0;
}

/* ─── Switch/Toggle ──────────────────────────────────────────────────────── */
.switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    padding: 0;
    display: inline-block;
    flex-shrink: 0;
}
.switch-checked, .switch.active { background: var(--primary); }
.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch-checked::after, .switch.active::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── ATS Score Ring ─────────────────────────────────────────────────────── */
.ats-ring-container { position: relative; display: inline-flex; align-items: center; justify-content: center; }
@keyframes score-fill { from { stroke-dashoffset: 251; } }
.ats-ring { animation: score-fill 1.5s ease-out; }
.-rotate-90 { transform: rotate(-90deg); }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(79,70,229,0.12); }
    50% { box-shadow: 0 0 30px rgba(79,70,229,0.20); }
}
.pulse-glow { animation: pulse-glow 3s infinite; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease-out; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.slide-in { animation: slideIn 0.3s ease-out; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ─── Dialog/Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.15s ease-out;
}
.modal, .modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease-out;
}
.modal-header { padding: 20px 20px 0; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-body { padding: 16px 20px; }
.modal-footer { padding: 0 20px 20px; display: flex; gap: 8px; justify-content: flex-end; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 13px; }
th { background: #f8fafc; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ─── Status Colors ──────────────────────────────────────────────────────── */
.status-new { color: #2563eb; }
.status-contacted { color: #0891b2; }
.status-interviewed { color: #d97706; }
.status-selected { color: #059669; }
.status-rejected { color: #dc2626; }

/* ─── Tab buttons ────────────────────────────────────────────────────────── */
.tab-btn {
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-color: transparent;
}
.tab-btn:hover:not(.active) { background: #f8fafc; }

/* ─── Custom Scrollbar ───────────────────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.3); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.5); }

/* ─── Landing Page Specific ──────────────────────────────────────────────── */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.hero-section {
    padding: 80px 24px 112px;
    max-width: 80rem;
    margin: 0 auto;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-demo-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.features-section { padding: 80px 24px; background: #f8fafc; }
.pricing-section { padding: 80px 24px; background: var(--bg-white); }
.cta-section { padding: 80px 24px; }
.footer-section { padding: 32px 24px; border-top: 1px solid var(--border); background: var(--bg-white); text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 80rem; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 64rem; margin: 0 auto; }

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

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-layout { min-height: 100vh; display: flex; background: #f8fafc; }
.auth-left { display: none; width: 50%; flex-direction: column; justify-content: space-between; padding: 48px; }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-form { width: 100%; max-width: 400px; }

/* ─── Search & Filter Bar ────────────────────────────────────────────────── */
.search-bar { display: flex; gap: 8px; align-items: center; }
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap .form-input { padding-left: 36px; }
.search-input-wrap .search-icon,
.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ─── Empty States ───────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}
.empty-state i { font-size: 48px; color: #e2e8f0; margin-bottom: 16px; }

/* ─── Drag & Drop Upload Zone ────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
    background: #f8fafc;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.active {
    border-color: var(--primary);
    background: #eef2ff;
}

/* ─── Collection Color Dots ──────────────────────────────────────────────── */
.collection-dot {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ─── Notification dot ───────────────────────────────────────────────────── */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
}
.notif-dot-unread { background: var(--primary); }
.notif-dot-read { background: #cbd5e1; }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES - Comprehensive Tailwind-equivalent utilities
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Display ────────────────────────────────────────────────────────────── */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ─── Flexbox ────────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { 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; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.self-center { align-self: center; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

/* ─── Gap ────────────────────────────────────────────────────────────────── */
.gap-0 { gap: 0; }
.gap-0\.5 { gap: 2px; }
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-2\.5 { gap: 10px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }

/* ─── Spacing - Padding ──────────────────────────────────────────────────── */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-1\.5 { padding: 6px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-12 { padding: 48px; }
.p-16 { padding: 64px; }
.p-20 { padding: 80px; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.px-12 { padding-left: 48px; padding-right: 48px; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pt-10 { padding-top: 40px; }
.pt-12 { padding-top: 48px; }
.pt-16 { padding-top: 64px; }
.pt-20 { padding-top: 80px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }
.pb-8 { padding-bottom: 32px; }
.pb-12 { padding-bottom: 48px; }
.pb-16 { padding-bottom: 64px; }
.pb-28 { padding-bottom: 112px; }

.pl-0 { padding-left: 0; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-6 { padding-left: 24px; }
.pl-8 { padding-left: 32px; }
.pl-10 { padding-left: 40px; }

.pr-0 { padding-right: 0; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }
.pr-6 { padding-right: 24px; }
.pr-8 { padding-right: 32px; }
.pr-10 { padding-right: 40px; }

/* ─── Spacing - Margin ───────────────────────────────────────────────────── */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-6 { margin: 24px; }
.m-8 { margin: 32px; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: 0; margin-right: 0; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-1\.5 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-auto { margin-top: auto; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-6 { margin-right: 24px; }
.mr-auto { margin-right: auto; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-6 { margin-left: 24px; }
.ml-auto { margin-left: auto; }

/* ─── Space (Between Children) ───────────────────────────────────────────── */
.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-1\.5 > * + * { margin-top: 6px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }

.space-x-1 > * + * { margin-left: 4px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-3 > * + * { margin-left: 12px; }
.space-x-4 > * + * { margin-left: 16px; }
.space-x-6 > * + * { margin-left: 24px; }

/* ─── Width ──────────────────────────────────────────────────────────────── */
.w-0 { width: 0; }
.w-1 { width: 4px; }
.w-2 { width: 8px; }
.w-3 { width: 12px; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-7 { width: 28px; }
.w-8 { width: 32px; }
.w-9 { width: 36px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-14 { width: 56px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }
.w-40 { width: 160px; }
.w-48 { width: 192px; }
.w-56 { width: 224px; }
.w-64 { width: 256px; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }

/* ─── Height ─────────────────────────────────────────────────────────────── */
.h-0 { height: 0; }
.h-1 { height: 4px; }
.h-2 { height: 8px; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-7 { height: 28px; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-24 { height: 96px; }
.h-32 { height: 128px; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }
.max-h-96 { max-height: 384px; }

/* ─── Max-Width ──────────────────────────────────────────────────────────── */
.max-w-none { max-width: none; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

/* ─── Min-Width ──────────────────────────────────────────────────────────── */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.text-xs { font-size: 11px; line-height: 1.5; }
.text-sm { font-size: 12px; line-height: 1.5; }
.text-base { font-size: 14px; line-height: 1.5; }
.text-lg { font-size: 16px; line-height: 1.5; }
.text-xl { font-size: 18px; line-height: 1.4; }
.text-2xl { font-size: 24px; line-height: 1.3; }
.text-3xl { font-size: 30px; line-height: 1.2; }
.text-4xl { font-size: 36px; line-height: 1.2; }
.text-5xl { font-size: 48px; line-height: 1.1; }
.text-6xl { font-size: 60px; line-height: 1; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

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

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

.italic { font-style: italic; }
.not-italic { font-style: normal; }

/* ─── Text Colors ────────────────────────────────────────────────────────── */
.text-foreground { color: var(--text); }
.text-muted-foreground, .text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white { color: #ffffff; }
.text-black { color: #000000; }

.text-emerald { color: #059669; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }

.text-amber { color: #d97706; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }

.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }

.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }

.text-indigo { color: #4f46e5; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }

.text-cyan-500 { color: #06b6d4; }
.text-cyan-600 { color: #0891b2; }
.text-cyan-700 { color: #0e7490; }

.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }

/* ─── Background Colors ──────────────────────────────────────────────────── */
.bg-white { background: #ffffff; }
.bg-primary { background: var(--primary); }
.bg-transparent { background: transparent; }

.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-200 { background: #e5e7eb; }
.bg-gray-300 { background: #d1d5db; }

.bg-indigo-50 { background: #eef2ff; }
.bg-indigo-100 { background: #e0e7ff; }
.bg-indigo-500 { background: #6366f1; }
.bg-indigo-600 { background: #4f46e5; }

.bg-blue-50 { background: #eff6ff; }
.bg-blue-100 { background: #dbeafe; }
.bg-blue-500 { background: #3b82f6; }
.bg-blue-600 { background: #2563eb; }

.bg-emerald-50 { background: #ecfdf5; }
.bg-emerald-100 { background: #d1fae5; }
.bg-emerald-500 { background: #10b981; }
.bg-emerald-600 { background: #059669; }

.bg-amber-50 { background: #fffbeb; }
.bg-amber-100 { background: #fef3c7; }
.bg-amber-500 { background: #f59e0b; }
.bg-amber-600 { background: #d97706; }

.bg-red-50 { background: #fef2f2; }
.bg-red-100 { background: #fee2e2; }
.bg-red-500 { background: #ef4444; }
.bg-red-600 { background: #dc2626; }

.bg-cyan-50 { background: #ecfeff; }
.bg-cyan-100 { background: #cffafe; }

.bg-rose-50 { background: #fff1f2; }
.bg-rose-100 { background: #ffe4e6; }

.bg-purple-50 { background: #faf5ff; }
.bg-purple-100 { background: #f3e8ff; }

/* ─── Border ─────────────────────────────────────────────────────────────── */
.border { border: 1px solid var(--border); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-t-0 { border-top: 0; }
.border-b-0 { border-bottom: 0; }
.border-l-0 { border-left: 0; }
.border-r-0 { border-right: 0; }

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-primary { border-color: var(--primary); }
.border-transparent { border-color: transparent; }

.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }
.border-none { border: none; }

/* ─── Border Radius ──────────────────────────────────────────────────────── */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.rounded-t-xl { border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); }
.rounded-b-xl { border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }
.rounded-tl-lg { border-top-left-radius: var(--radius-lg); }
.rounded-tr-lg { border-top-right-radius: var(--radius-lg); }
.rounded-bl-lg { border-bottom-left-radius: var(--radius-lg); }
.rounded-br-lg { border-bottom-right-radius: var(--radius-lg); }

/* ─── Overflow ───────────────────────────────────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* ─── Text Overflow ──────────────────────────────────────────────────────── */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Position ───────────────────────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.static { position: static; }

.inset-0 { top:0; right:0; bottom:0; left:0; }
.top-0 { top: 0; }
.top-1 { top: 4px; }
.top-2 { top: 8px; }
.top-4 { top: 16px; }
.top-6 { top: 24px; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 16px; }
.bottom-8 { bottom: 32px; }
.left-0 { left: 0; }
.left-2 { left: 8px; }
.left-3 { left: 12px; }
.left-4 { left: 16px; }
.left-8 { left: 32px; }
.right-0 { right: 0; }
.right-2 { right: 8px; }
.right-4 { right: 16px; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ─── Opacity ────────────────────────────────────────────────────────────── */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ─── Shadows ────────────────────────────────────────────────────────────── */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none; }

/* ─── Cursor ─────────────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }
.cursor-move { cursor: move; }

/* ─── Transitions ────────────────────────────────────────────────────────── */
.transition { transition: all 0.15s ease; }
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-shadow { transition: box-shadow 0.2s ease; }
.transition-opacity { transition: opacity 0.15s ease; }
.transition-transform { transition: transform 0.15s ease; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ─── Transforms ─────────────────────────────────────────────────────────── */
.-translate-y-1 { transform: translateY(-4px); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }
.translate-y-0 { transform: translateY(0); }
.scale-105 { transform: scale(1.05); }
.scale-95 { transform: scale(0.95); }

/* ─── Whitespace ─────────────────────────────────────────────────────────── */
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ─── Lists ──────────────────────────────────────────────────────────────── */
.list-disc { list-style-type: disc; padding-left: 20px; }
.list-decimal { list-style-type: decimal; padding-left: 20px; }
.list-none { list-style-type: none; padding-left: 0; }

/* ─── Other Utilities ────────────────────────────────────────────────────── */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.select-none { user-select: none; }
.select-all { user-select: all; }
.resize { resize: both; }
.resize-y { resize: vertical; }
.resize-none { resize: none; }
.outline-none { outline: none; }
.ring-2 { box-shadow: 0 0 0 2px var(--primary); }
.ring-offset-2 { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary); }
.backdrop-blur { backdrop-filter: blur(4px); }
.backdrop-blur-sm { backdrop-filter: blur(2px); }
.table { display: table; }
.table-cell { display: table-cell; }
.contents { display: contents; }
.aspect-square { aspect-ratio: 1 / 1; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }
.text-wrap { text-wrap: wrap; }
.text-nowrap { white-space: nowrap; }
.text-balance { text-wrap: balance; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Medium screens (768px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:block { display: block !important; }
    .md\:inline { display: inline !important; }
    .md\:inline-flex { display: inline-flex !important; }
    .md\:grid { display: grid !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:w-auto { width: auto; }
    .md\:px-6 { padding-left: 24px; padding-right: 24px; }
    .md\:px-12 { padding-left: 48px; padding-right: 48px; }
    .md\:py-4 { padding-top: 16px; padding-bottom: 16px; }
    .md\:py-20 { padding-top: 80px; padding-bottom: 80px; }
    .md\:text-6xl { font-size: 60px; }
    .md\:text-4xl { font-size: 36px; }
    .md\:text-3xl { font-size: 30px; }
    .md\:text-2xl { font-size: 24px; }
    .md\:text-xl { font-size: 18px; }
    .md\:text-base { font-size: 14px; }
    .md\:text-sm { font-size: 12px; }
    .md\:gap-16 { gap: 64px; }
    .md\:gap-6 { gap: 24px; }
    .md\:gap-4 { gap: 16px; }
    .md\:gap-3 { gap: 12px; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }

    /* Auth layout */
    .auth-left { display: flex; }

    /* Mobile elements hidden on md+ */
    .mobile-topbar { display: none !important; }
    .mobile-bottom-nav { display: none !important; }

    /* Sidebar shown on md+ */
    .sidebar { display: flex !important; }
    .app-main { padding-bottom: 24px; }

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Large screens (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:block { display: block !important; }
    .lg\:grid { display: grid !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }

    /* Feature grid */
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Small screens (<768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .sidebar { display: none !important; }
    .app-main { padding: 16px; padding-bottom: 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-section { padding: 40px 16px 60px; }
    .features-section, .pricing-section, .cta-section { padding: 40px 16px; }
    .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    h1, .text-6xl { font-size: 36px; }
    .text-4xl { font-size: 24px; }
    .text-3xl { font-size: 20px; }
    .text-2xl { font-size: 18px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Special: Backdrop overlay for mobile menu ──────────────────────────── */
.bg-black\/50 { background: rgba(0,0,0,0.5); }

/* ─── Hover helpers ──────────────────────────────────────────────────────── */
.hover\:bg-gray-50:hover { background: #f9fafb; }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.hover\:bg-red-50:hover { background: #fef2f2; }
.hover\:text-foreground:hover { color: var(--text); }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-primary\/30:hover { border-color: rgba(79,70,229,0.3); }
.hover\:border-primary\/50:hover { border-color: rgba(79,70,229,0.5); }

/* ─── Focus helpers ──────────────────────────────────────────────────────── */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }
.focus\:ring-primary:focus { box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.focus\:outline-none:focus { outline: none; }

/* ─── Special decorative styles ──────────────────────────────────────────── */
.bg-primary\/5 { background: rgba(79,70,229,0.05); }
.bg-primary\/10 { background: rgba(79,70,229,0.1); }
.bg-primary\/15 { background: rgba(79,70,229,0.15); }
.bg-primary\/20 { background: rgba(79,70,229,0.2); }
.text-primary\/20 { color: rgba(79,70,229,0.2); }
.text-primary\/40 { color: rgba(79,70,229,0.4); }
.text-muted-foreground\/30 { color: rgba(107,114,128,0.3); }
.text-muted-foreground\/20 { color: rgba(107,114,128,0.2); }
.border-primary\/20 { border-color: rgba(79,70,229,0.2); }
.border-primary\/50 { border-color: rgba(79,70,229,0.5); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-white\/15 { background: rgba(255,255,255,0.15); }
.bg-white\/20 { background: rgba(255,255,255,0.2); }

/* ─── Shadow with color ─────────────────────────────────────────────────── */
.shadow-indigo-200 { box-shadow: var(--shadow-indigo); }
.shadow-indigo-lg { box-shadow: var(--shadow-indigo-lg); }

/* ─── Safe area ──────────────────────────────────────────────────────────── */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
