/* ===== SKILZLEAD DESIGN SYSTEM ===== */
/* Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.2s ease;
}

/* Dark Theme (Default) */
.dark-theme {
    --bg-primary: #07070A;
    --bg-secondary: #09090B;
    --bg-card: #0F0F14;
    --bg-elevated: #111113;
    --bg-hover: rgba(255,255,255,0.05);
    --bg-glass: rgba(15,15,20,0.75);
    --accent: #7C3AED;
    --accent-hover: #6D28D9;
    --accent-light: rgba(124,58,237,0.1);
    --accent-glow: rgba(124,58,237,0.15);
    --accent-glow-strong: rgba(124,58,237,0.3);
    --gradient-primary: linear-gradient(135deg, #7C3AED, #A855F7);
    --gradient-cta: linear-gradient(135deg, #7C3AED, #6366F1);
    --text-primary: #F4F4FF;
    --text-secondary: #C4C4D4;
    --text-tertiary: #6B6B80;
    --text-muted: #555575;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --border-light: rgba(255,255,255,0.04);
    --success: #00BB7F;
    --success-bg: rgba(0,187,127,0.1);
    --danger: #FB2C36;
    --danger-bg: rgba(251,44,54,0.1);
    --warning: #FBBF24;
    --warning-bg: rgba(251,191,36,0.1);
    --info: #3080FF;
    --info-bg: rgba(48,128,255,0.1);
    --violet: #7C3AED;
    --violet-light: #A855F7;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(124,58,237,0.15);
    --scrollbar: #1a1a2e;
    --scrollbar-hover: #2a2a3e;
    --nav-blur: rgba(7,7,10,0.8);
}

/* Light Theme */
.light-theme {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F8FF;
    --bg-card: #F0F0FA;
    --bg-elevated: #E8E8F5;
    --bg-hover: rgba(0,0,0,0.03);
    --bg-glass: rgba(255,255,255,0.85);
    --accent: #7C3AED;
    --accent-hover: #6D28D9;
    --accent-light: rgba(124,58,237,0.08);
    --accent-glow: rgba(124,58,237,0.1);
    --accent-glow-strong: rgba(124,58,237,0.2);
    --gradient-primary: linear-gradient(135deg, #7C3AED, #A855F7);
    --gradient-cta: linear-gradient(135deg, #7C3AED, #6366F1);
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A6A;
    --text-tertiary: #6B6B80;
    --text-muted: #9CA3AF;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --border-light: rgba(0,0,0,0.04);
    --success: #059669;
    --success-bg: rgba(5,150,105,0.08);
    --danger: #DC2626;
    --danger-bg: rgba(220,38,38,0.08);
    --warning: #D97706;
    --warning-bg: rgba(217,119,6,0.08);
    --info: #2563EB;
    --info-bg: rgba(37,99,235,0.08);
    --violet: #7C3AED;
    --violet-light: #8B5CF6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 20px rgba(124,58,237,0.08);
    --scrollbar: #D1D5DB;
    --scrollbar-hover: #9CA3AF;
    --nav-blur: rgba(255,255,255,0.85);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--text-primary); }
p { color: var(--text-tertiary); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ===== GLASS ===== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

/* ===== GLOW ===== */
.glow-violet { box-shadow: 0 0 40px var(--accent-glow); }
.glow-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px var(--accent-glow-strong); color: white; }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); }
.btn-ghost {
    background: transparent;
    color: var(--text-tertiary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 16px 40px; font-size: 18px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== INPUTS ===== */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.input-field {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: var(--transition);
    outline: none;
}
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.input-field::placeholder { color: var(--text-muted); }
select.input-field { cursor: pointer; }
textarea.input-field { min-height: 100px; resize: vertical; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}
.card-hover:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text-primary); }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--bg-hover); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-primary); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; width: 100%; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-tertiary); margin-top: 12px; line-height: 1.7; }
.footer-brand img { height: 32px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a { display: block; font-size: 14px; color: var(--text-tertiary); padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { color: var(--text-tertiary); transition: var(--transition); }
.footer-socials a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; }
.container-xs { max-width: 480px; }
.page-wrapper { min-height: 100vh; padding-top: 64px; }
.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.section-subtitle { font-size: 16px; color: var(--text-tertiary); text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* ===== HERO ===== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(135deg, #F4F4FF 0%, #C4B5FD 50%, #A855F7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--text-tertiary); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); }
.hero-stat-label { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; }

@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 24px; }
    .section-title { font-size: 28px; }
}

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); padding-top: 64px; }
.dashboard-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    flex-shrink: 0;
    overflow-y: auto;
}
.dashboard-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.dashboard-sidebar a:hover { background: var(--bg-hover); color: var(--text-primary); }
.dashboard-sidebar a.active { background: var(--accent-light); color: var(--accent); }
.dashboard-sidebar a svg { width: 20px; height: 20px; flex-shrink: 0; }
.dashboard-sidebar .sidebar-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 16px 14px 8px; }
.dashboard-content { flex: 1; padding: 32px; overflow-x: hidden; }

@media (max-width: 900px) {
    .dashboard-sidebar { display: none; position: fixed; z-index: 50; left: 0; top: 64px; bottom: 0; width: 260px; }
    .dashboard-sidebar.open { display: block; }
    .dashboard-content { padding: 16px; }
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 45;
    animation: overlayFadeIn 0.2s ease;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== STATS CARDS ===== */
.stat-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.stat-card-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-card-label { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }
.stat-card-change { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; }

/* ===== TABLE ===== */
.table-container { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-secondary); }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 20px; }
.modal-close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

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

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info); }

/* ===== SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ===== TOGGLE ===== */
.toggle { position: relative; width: 44px; height: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: var(--transition); }
.toggle.active { background: var(--accent); border-color: var(--accent); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: var(--transition); }
.toggle.active::after { left: 22px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-tertiary); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); margin-bottom: -1px; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    min-width: 200px;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    text-align: left;
    transition: var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-hover); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===== MISC ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }

/* ===== FEATURE CARDS ===== */
.feature-card { padding: 32px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-tertiary); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-card { padding: 40px 32px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); text-align: center; transition: var(--transition); position: relative; }
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent); box-shadow: 0 0 40px var(--accent-glow); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient-primary); color: white; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 9999px; }
.pricing-name { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-tertiary); }
.pricing-desc { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-features li.missing { color: var(--text-muted); }
.pricing-features li.missing::before { content: '×'; color: var(--text-muted); }

/* ===== SECTION DIVIDERS ===== */
.divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text-primary); }
.faq-question:hover { color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.open { max-height: 300px; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text-tertiary); line-height: 1.7; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-primary); }
.auth-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.auth-card p { text-align: center; font-size: 14px; color: var(--text-tertiary); margin-bottom: 32px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo img { height: 40px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-tertiary); }

/* ===== STATUS DOTS ===== */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.suspended { background: var(--danger); }

/* ===== SEARCH ===== */
.search-bar { position: relative; }
.search-bar svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-bar input { padding-left: 36px; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filter-bar .input-field { max-width: 200px; }

/* ===== CHART PLACEHOLDER ===== */
.chart-placeholder { height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; background: var(--bg-card); border-radius: 12px; border: 1px dashed var(--border); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state svg { width: 64px; height: 64px; color: var(--text-muted); margin: 0 auto 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-tertiary); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 18px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-size: 14px; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; min-width: 280px; display: flex; align-items: center; gap: 10px; }
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE OVERRIDES ===== */
@media (min-width: 641px) {
    .sm\:inline { display: inline; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .auth-card { padding: 24px 20px; }
    .auth-card h1 { font-size: 20px; }
    .auth-page { padding: 16px; }
    .modal { padding: 20px; margin: 12px; max-height: 85vh; }
    .modal-lg { max-width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .input-field { max-width: 100%; }
    .filter-bar .btn { width: 100%; }
    .dashboard-content { padding: 12px; }
    .stat-card { padding: 16px; }
    .card { padding: 16px; }
    .pricing-card { padding: 24px 16px; }
    .feature-card { padding: 24px; }
    .table-container { border-radius: 8px; overflow-x: auto; }
    th, td { padding: 8px 10px; font-size: 12px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
    .toast-container { left: 16px; right: 16px; bottom: 16px; }
    .toast { min-width: auto; font-size: 13px; padding: 12px 14px; }
    .pricing-price { font-size: 36px; }
    .footer { padding: 40px 16px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand { grid-column: 1; }
    .nav-logo .glow-text { display: none; }
    .nav-inner { height: 56px; padding: 0 16px; }
    .page-wrapper { padding-top: 56px; }
    .dashboard-layout { padding-top: 56px; min-height: calc(100vh - 56px); }
    .nav-links.open { top: 56px; }
    .dashboard-sidebar { top: 56px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    /* Force inline grids to collapse */
    .features-table-grid { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:2fr 1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    /* Remove max-width truncation on table cells */
    [style*="max-width"] { max-width: none !important; }
    /* Wrap flex containers with gap on mobile */
    [style*="display:flex"][style*="gap"] { flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
    .auth-card { padding: 20px 16px; border-radius: 12px; }
    .auth-page { padding: 12px; }
    .dashboard-content { padding: 8px; }
    .stat-card-header { flex-direction: column; gap: 8px; }
    .nav-actions .btn span { display: none; }
    .modal { padding: 14px; margin: 8px; border-radius: 12px; }
    .modal-header { flex-direction: column; gap: 6px; }
    .modal-header h2 { font-size: 18px; }
    th, td { padding: 6px 8px; font-size: 11px; }
    .stat-grid { grid-template-columns: 1fr; }
}
