/* ============================================================
   HRCA — Global Stylesheet
   Design System: Deep Navy × Electric Violet × Prestige Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:       #1a1f3a;
  --accent:        #6c63ff;
  --accent-light:  #a29bfe;
  --accent-glow:   rgba(108,99,255,0.25);
  --gold:          #f5a623;
  --gold-light:    #ffc85c;
  --surface:       #0f1120;
  --surface-alt:   #1a1f3a;
  --surface-card:  rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --text:          #e8eaf6;
  --text-muted:    #8892b0;
  --text-dim:      #5a6480;
  --success:       #00cec9;
  --success-bg:    rgba(0,206,201,0.12);
  --warning:       #f5a623;
  --warning-bg:    rgba(245,166,35,0.12);
  --danger:        #ff6b6b;
  --danger-bg:     rgba(255,107,107,0.12);
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(108,99,255,0.35);
  --radius:        10px;
  --radius-lg:     18px;
  --radius-xl:     28px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
  --font-body:     'Inter', system-ui, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ─── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.font-serif   { font-family: var(--font-serif); }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent-light); }
.text-gold    { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-center  { text-align: center; }
.font-medium  { font-weight: 500; }
.font-bold    { font-weight: 700; }

/* ─── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.w-full { width: 100%; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-flat { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(108,99,255,0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,166,35,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--accent-light);
}
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-light); }

.btn-ghost {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255,107,107,0.3);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(0,206,201,0.3);
}
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ─── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0,206,201,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,166,35,0.2); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(255,107,107,0.2); }
.badge-accent  { background: rgba(108,99,255,0.15); color: var(--accent-light); border: 1px solid rgba(108,99,255,0.25); }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Tags / Skills ────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--accent-light);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}
.tag:hover { background: rgba(108,99,255,0.2); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ─── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.form-label span { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(108,99,255,0.07);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select option { background: var(--surface-alt); color: var(--text); }
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.2rem; }
.form-section { margin-bottom: 2rem; }
.form-section-title { font-size: 1rem; font-weight: 600; color: var(--text); padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }

/* ─── Alert / Flash ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0,206,201,0.25); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(255,107,107,0.25); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,166,35,0.25); }
.alert-info    { background: rgba(108,99,255,0.12); color: var(--accent-light); border: 1px solid rgba(108,99,255,0.25); }

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,17,32,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-serif);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-hover); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.5rem; }
.nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 0.5rem; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  gap: 0.25rem;
}
.mobile-nav .nav-link { display: block; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,99,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(139,92,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(245,166,35,0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 2.5rem; color: var(--text-muted); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; display: flex; align-items: center; padding: 2rem; }

/* Floating stat cards */
.stat-float {
  position: absolute;
  background: rgba(26,31,58,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  animation: float 3s ease-in-out infinite;
}
.stat-float:nth-child(2) { animation-delay: 1s; }
.stat-float:nth-child(3) { animation-delay: 2s; }
.stat-float .stat-num { font-size: 1.8rem; font-weight: 800; font-family: var(--font-serif); color: var(--text); }
.stat-float .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ─── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item .stat-value { font-size: 2.2rem; font-weight: 800; font-family: var(--font-serif); color: var(--text); line-height: 1; }
.stat-item .stat-value span { color: var(--accent); }
.stat-item .stat-name { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }

/* ─── Section Header ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 520px; margin: 0 auto; font-size: 1rem; }

/* ─── Job Card ─────────────────────────────────────────────── */
.job-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  opacity: 0;
  transition: var(--transition);
}
.job-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.job-card:hover::before { opacity: 1; }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.job-icon {
  width: 48px; height: 48px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.job-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.job-card h3 a:hover { color: var(--accent-light); }
.job-company { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 1rem 0; font-size: 0.82rem; color: var(--text-muted); }
.job-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ─── Candidate Card ───────────────────────────────────────── */
.candidate-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}
.candidate-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.candidate-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
}
.candidate-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.candidate-title { font-size: 0.85rem; color: var(--accent-light); font-weight: 500; margin-bottom: 0.5rem; }
.candidate-exp { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.candidate-company { font-size: 0.78rem; color: var(--text-dim); }

/* ─── Dashboard Layout ─────────────────────────────────────── */
.dash-wrap { display: flex; min-height: calc(100vh - 68px); }
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.sidebar-header { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar-user-name { font-weight: 600; font-size: 0.95rem; }
.sidebar-user-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.sidebar-section { padding: 0.5rem 1rem; margin-bottom: 0.25rem; }
.sidebar-section-label { font-size: 0.7rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 0.25rem; margin-bottom: 0.5rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-link:hover { color: var(--text); background: var(--surface-hover); }
.sidebar-link.active { color: var(--text); background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.2); }
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link .link-count {
  margin-left: auto;
  background: rgba(108,99,255,0.15);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.dash-main { flex: 1; padding: 2rem 2.5rem; overflow-x: hidden; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Dashboard stat cards */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.dash-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.dash-stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.dash-stat-icon.purple { background: rgba(108,99,255,0.15); }
.dash-stat-icon.teal   { background: rgba(0,206,201,0.12); }
.dash-stat-icon.gold   { background: rgba(245,166,35,0.12); }
.dash-stat-icon.red    { background: rgba(255,107,107,0.12); }
.dash-stat-num { font-size: 2rem; font-weight: 800; font-family: var(--font-serif); color: var(--text); line-height: 1; }
.dash-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ─── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(255,255,255,0.04); }
th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--surface-hover); }

/* ─── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,107,107,0.3); }

/* ─── Toast ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 360px;
  pointer-events: all;
  animation: slideInRight 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  box-shadow: var(--shadow);
}
.toast.success { background: #0d2e2e; border: 1px solid rgba(0,206,201,0.35); color: var(--success); }
.toast.error   { background: #2e0d0d; border: 1px solid rgba(255,107,107,0.35); color: var(--danger); }
.toast.info    { background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--accent-light); }

/* ─── Auth Pages ───────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(108,99,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(139,92,246,0.1) 0%, transparent 50%),
    var(--surface);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; font-weight: 800; font-family: var(--font-serif);
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.auth-title { font-size: 1.6rem; text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.auth-divider { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin: 1.5rem 0; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent-light); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── How It Works ─────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; font-family: var(--font-serif);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.step-card h3 { margin-bottom: 0.5rem; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.825rem; color: var(--text-dim); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ─── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ─── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.filter-bar input, .filter-bar select {
  flex: 1;
  min-width: 160px;
  max-width: 260px;
  padding: 0.6rem 0.9rem;
}

/* ─── Profile / Avatar ─────────────────────────────────────── */
.avatar-upload { position: relative; display: inline-block; }
.avatar-preview {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  background: var(--surface-alt);
}
.avatar-btn {
  position: absolute; bottom: 0; right: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

/* ─── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ─── Search Input With Icon ───────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap input { padding-left: 2.5rem; }
.search-wrap .search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 0.9rem; pointer-events: none; }

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.animate-fadeInUp { animation: fadeInUp 0.55s ease forwards; }
.animate-float    { animation: float 3s ease-in-out infinite; }

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-alt); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,0.3); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .dash-wrap { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; display: none; }
  .sidebar.open { display: block; }
  .dash-main { padding: 1.25rem; }
  .hero { min-height: auto; padding: 4rem 0 3rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { max-width: 100%; }
  .page-header-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
