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

/* ============================================================
   FB Recruitment Pro – Main CSS
   Dark Mode, Glassmorphism, Premium Design
   ============================================================ */

:root {
  --bg-primary: #0a0b14;
  --bg-secondary: #0f1120;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(99,102,241,0.4);
  
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99,102,241,0.25);
  
  --accent: #06b6d4;
  --accent-glow: rgba(6,182,212,0.2);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-primary: 0 8px 32px rgba(99,102,241,0.3);
  
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --navbar-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.45); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-card); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { font-size: 18px; transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: rgba(10,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(10,11,20,0.98); box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-container {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: var(--text-primary); text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-pro {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 24px; margin: 0 auto; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--navbar-h) + 60px) 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; animation: float 8s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent); top: 200px; right: -100px; animation: float 10s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--primary-light); bottom: -100px; left: 40%; animation: float 12s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }

.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; font-size: 13px; color: var(--text-secondary); margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1.15;
  letter-spacing: -2px; margin-bottom: 20px;
}
.hero-desc {
  font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 60px; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 28px 40px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); backdrop-filter: blur(16px); display: inline-flex;
}
.stat { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--primary-light); }
.stat span { font-size: 24px; font-weight: 800; color: var(--primary-light); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

/* ── Section Common ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block; padding: 6px 14px;
  background: var(--primary-glow); border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--primary-light);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── Features ── */
.features { padding: 100px 0; background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card-large { grid-column: span 1; grid-row: span 2; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all var(--transition); cursor: default; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 16px; padding: 4px 12px;
  background: var(--primary-glow); border-radius: 50px;
  font-size: 11px; font-weight: 600; color: var(--primary-light);
}

/* ── How It Works ── */
.how-it-works { padding: 100px 0; }
.steps-grid { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.step {
  flex: 1; max-width: 220px; text-align: center; padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-number { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: 1px; }
.step-icon { font-size: 32px; margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--text-muted); flex-shrink: 0; align-self: center; margin-top: -20px; }

/* ── Pricing ── */
.pricing { padding: 100px 0; background: var(--bg-secondary); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; position: relative; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card-popular {
  border-color: var(--primary); background: linear-gradient(180deg, rgba(99,102,241,0.12) 0%, var(--bg-card) 100%);
  transform: scale(1.03);
}
.pricing-card-popular:hover { transform: scale(1.03) translateY(-6px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 50px;
  white-space: nowrap;
}
.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pricing-header p { font-size: 13px; color: var(--text-secondary); }
.pricing-price { margin-top: 16px; }
.price-amount { font-size: 36px; font-weight: 900; color: var(--primary-light); }
.price-period { font-size: 14px; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 28px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--success); font-weight: 700; }
.pricing-loading, .pricing-error { text-align: center; padding: 40px; color: var(--text-muted); grid-column: span 3; }

/* ── CTA ── */
.cta { padding: 100px 0; }
.cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius-xl);
  padding: 80px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.cta-orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; opacity: 0.2; }
.cta-orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -100px; right: -50px; opacity: 0.15; }
.cta-card h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-card p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 36px; position: relative; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; }

/* ── Footer ── */
.footer { padding: 60px 0 30px; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.1) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 50%);
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px;
  backdrop-filter: blur(20px);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { font-size: 22px; font-weight: 800; color: var(--text-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Form ── */

/* App cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.card + .card { margin-top: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* Form aliases used by dashboard pages */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; appearance: auto; }
.form-select option {
  background: #1a1b2e;
  color: #f1f5f9;
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.form-radio-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.form-radio-card input { margin: 0; accent-color: var(--primary); }
.form-radio-card strong {
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}
.form-radio-card small {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.form-radio-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(99,102,241,0.12);
}

@media (max-width: 1100px) {
  .form-radio-card { align-items: flex-start; flex-direction: column; }
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary); font-family: var(--font); font-size: 14px;
  transition: all var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); background: rgba(99,102,241,0.06); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
select.form-control option {
  background: #1a1b2e;
  color: #f1f5f9;
}
select.form-control option:checked,
select.form-control option:hover {
  background: #6366f1;
  color: #fff;
}
.filter-select option {
  background: #1a1b2e;
  color: #f1f5f9;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.form-control.error { border-color: var(--danger); }

/* ── Input group ── */
.input-group { position: relative; }
.input-group .form-control { padding-right: 42px; }
.input-group-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px;
}

/* ── Alert ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: 14px; display: none; align-items: center; gap: 8px;
}
.alert.show { display: flex; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: var(--primary-light); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ── Badge / Status ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-muted { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.badge-primary { background: var(--primary-glow); color: var(--primary-light); }

/* ── Dashboard Layout ── */
.dashboard-layout, .app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0; background: var(--bg-secondary);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto;
  transition: transform var(--transition);
}
.sidebar-logo { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-logo a { font-size: 17px; font-weight: 800; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sidebar-menu { padding: 16px 12px; flex: 1; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); padding: 12px 8px 6px; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius); cursor: pointer;
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all var(--transition); margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sidebar-item.active { background: var(--primary-glow); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); }
.sidebar-item .item-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 50px; }
.notif-badge { display: none; margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 50px; align-items: center; justify-content: center; animation: pulse 2s infinite; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-glow); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--primary-light); flex-shrink: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

.main-content { margin-left: 260px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.page-header {
  padding: 24px 32px 0; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); position: sticky; top: 0; z-index: 50;
}
.page-header-inner { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.page-title { font-size: 22px; font-weight: 800; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.page-body { padding: 28px 32px; flex: 1; }

/* ── Stats Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card-icon.purple { background: var(--primary-glow); }
.stat-card-icon.cyan { background: rgba(6,182,212,0.15); }
.stat-card-icon.green { background: rgba(16,185,129,0.15); }
.stat-card-icon.orange { background: rgba(245,158,11,0.15); }
.stat-card-icon.red { background: rgba(239,68,68,0.15); }
.stat-card-value { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.stat-card-label { font-size: 13px; color: var(--text-muted); }
.stat-card-trend { font-size: 12px; font-weight: 600; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ── Table ── */
.table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.table-title { font-size: 15px; font-weight: 700; }
.table-actions { display: flex; align-items: center; gap: 10px; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px; background: rgba(255,255,255,0.02);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); text-align: left; border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-secondary); }
tbody td strong { color: var(--text-primary); }
.table-empty { text-align: center; padding: 48px; color: var(--text-muted); }
.table-empty .empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ── Search / Filter bar ── */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input { position: relative; flex: 1; min-width: 200px; }
.search-input input { padding-left: 36px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.filter-select { padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font); font-size: 14px; cursor: pointer; }
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  transform: scale(0.95); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ── Loading ── */
.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; gap: 12px; color: var(--text-muted);
}

/* ── Toast ── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 360px;
  box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; backdrop-filter: blur(8px);
}
.toast-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: 0.7; }
.toast-success { background: rgba(16,185,129,0.9); color: #fff; border: 1px solid rgba(16,185,129,0.5); }
.toast-error { background: rgba(239,68,68,0.9); color: #fff; border: 1px solid rgba(239,68,68,0.5); }
.toast-info { background: rgba(99,102,241,0.9); color: #fff; border: 1px solid rgba(99,102,241,0.5); }
.toast-warning { background: rgba(245,158,11,0.9); color: #1a1a1a; border: 1px solid rgba(245,158,11,0.5); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 14px; cursor: pointer; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.divider-text { text-align: center; position: relative; margin: 20px 0; }
.divider-text::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider-text span { background: var(--bg-secondary); padding: 0 12px; position: relative; font-size: 13px; color: var(--text-muted); }

/* ── Image upload ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 32px;
  text-align: center; cursor: pointer; transition: all var(--transition);
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-glow); }
.upload-preview { max-width: 100%; max-height: 200px; border-radius: var(--radius); margin-top: 12px; object-fit: cover; }

/* ── Tags / Chips ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px; font-size: 12px; color: var(--text-secondary); }
.tag-removable { cursor: pointer; }
.tag-removable:hover { border-color: var(--danger); color: var(--danger); }

/* ── Progress ── */
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width 0.5s ease; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; grid-row: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 80px; height: 1px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-body { padding: 20px 16px; }
  .page-header { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .auth-card { padding: 28px 20px; }
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 260px;
  max-width: 420px;
  pointer-events: all;
  animation: toastSlideIn .3s cubic-bezier(.34,1.56,.64,1) both;
  line-height: 1.4;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.toast span:first-child {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
  padding: 0 0 0 8px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.toast-close:hover { color: #fff; }

.toast-success { background: linear-gradient(135deg, rgba(16,185,129,.9), rgba(5,150,105,.9)); border-color: rgba(16,185,129,.4); }
.toast-error   { background: linear-gradient(135deg, rgba(239,68,68,.9),  rgba(220,38,38,.9));  border-color: rgba(239,68,68,.4);  }
.toast-warning { background: linear-gradient(135deg, rgba(245,158,11,.9), rgba(217,119,6,.9)); border-color: rgba(245,158,11,.4); }
.toast-info    { background: linear-gradient(135deg, rgba(59,130,246,.9), rgba(37,99,235,.9));  border-color: rgba(59,130,246,.4);  }

/* ── Bell Notification Dropdown ── */
.bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bell-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all .2s;
}
.bell-btn:hover { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); color: var(--primary-light); }
.bell-btn.has-unread { color: var(--primary-light); border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.08); }
.bell-count {
  position: absolute; top: -5px; right: -5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg-secondary);
  animation: bellPop .3s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes bellPop { 0%{transform:scale(0)} 100%{transform:scale(1)} }
.bell-count.show { display: flex; }
@keyframes bellShake {
  0%,100%{transform:rotate(0)} 15%{transform:rotate(12deg)} 30%{transform:rotate(-10deg)}
  45%{transform:rotate(7deg)} 60%{transform:rotate(-4deg)} 75%{transform:rotate(2deg)}
}
.bell-btn.ringing { animation: bellShake .6s ease; }
.bell-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 360px; max-height: 480px;
  background: #1a1d2e;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.8), 0 0 0 1px rgba(99,102,241,.15), inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 99999;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: dropIn .2s ease;
}
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.bell-dropdown.open { display: flex; }

.bell-drop-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: rgba(255,255,255,.02);
}
.bell-drop-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.bell-read-all {
  font-size: 11px; color: var(--primary-light); cursor: pointer;
  background: none; border: none; font-family: var(--font);
  padding: 3px 8px; border-radius: 6px;
}
.bell-read-all:hover { background: rgba(99,102,241,.12); }
.bell-see-all {
  font-size: 11px; color: var(--text-muted); cursor: pointer;
  background: none; border: none; font-family: var(--font);
  padding: 3px 8px; border-radius: 6px; text-decoration: none; color: var(--text-muted);
}
.bell-see-all:hover { color: var(--primary-light); }
.bell-drop-list { overflow-y: auto; flex: 1; }
.bell-drop-list::-webkit-scrollbar { width: 4px; }
.bell-drop-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.bell-notif-item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer; transition: background .15s;
  align-items: flex-start;
}
.bell-notif-item:hover { background: rgba(255,255,255,.05); }
.bell-notif-item.unread { background: rgba(99,102,241,.08); }
.bell-notif-item.unread:hover { background: rgba(99,102,241,.14); }
.bell-notif-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.bell-notif-dot.success { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,.5); }
.bell-notif-dot.error   { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.5); }
.bell-notif-dot.warning { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); }
.bell-notif-dot.info    { background: var(--primary-light); box-shadow: 0 0 6px rgba(99,102,241,.5); }
.bell-notif-dot.read    { background: rgba(255,255,255,.2); box-shadow: none; }
.bell-notif-body { flex: 1; min-width: 0; }
.bell-notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-bottom: 3px; }
.bell-notif-content { font-size: 12px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-notif-time { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 4px; }
.bell-drop-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.bell-drop-empty-icon { font-size: 36px; margin-bottom: 8px; opacity: .4; }
