/* ============================================================
   4 Applications — Main Stylesheet
   Theme: Sky Blue (#0EA5E9 / #38BDF8)
   Style: Modern, lightweight, mobile-first
   ============================================================ */

:root {
  --primary:      #0EA5E9;
  --primary-dk:   #0284C7;
  --primary-lt:   #BAE6FD;
  --primary-bg:   #F0F9FF;
  --accent:       #06B6D4;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --bg:           #FFFFFF;
  --bg2:          #F8FAFC;
  --bg3:          #F1F5F9;
  --border:       #E2E8F0;
  --border-dk:    #CBD5E1;
  --success:      #10B981;
  --success-bg:   #ECFDF5;
  --warning:      #F59E0B;
  --warning-bg:   #FFFBEB;
  --danger:       #EF4444;
  --danger-bg:    #FEF2F2;
  --info:         #3B82F6;
  --info-bg:      #EFF6FF;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --transition:   0.2s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
button { cursor: pointer; }

/* ---- Google Fonts (loaded in HTML) ---- */

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 700px; }
.container-md { max-width: 900px; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ============================================================
   NAV / HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -.5px;
}
.site-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); }

.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-btn:hover { background: var(--primary-dk) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: .3rem;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
}
.mobile-nav a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.mobile-nav a:last-child { border: none; }
.mobile-nav.open { display: block; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #E0F2FE 50%, #F0F9FF 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 640px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary-lt);
  color: var(--primary-dk);
  border-radius: 100px;
  padding: .25rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
}
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: #fff; box-shadow: 0 6px 20px rgba(14,165,233,.4); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-dk);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }

.btn-sm { padding: .4rem 1rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }



/* Hero + banner two-column layout */
.hero-outer {
  background: #0F172A;  /* matches your existing dark hero background */
  padding: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
  }
  .hero-banner-col { order: -1; } /* Banner first on mobile */
}
 
/* Stats grid shown on right when no banner */
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
  align-content: center;
}
.hero-stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38BDF8;
  line-height: 1;
  margin-bottom: .35rem;
}
.hero-stat-lbl {
  font-size: .78rem;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2, .card-header h3 { font-size: 1.1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border-dk);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-lt);
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border-dk);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg2);
  display: block;
  user-select: none;
}
.file-upload:hover, .file-upload.dragover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.file-upload.has-file {
  border-color: var(--success);
  background: #f0fdf4;
}
.file-upload input[type="file"] { display: none; }
.file-upload .upload-icon { font-size: 2rem; margin-bottom: .5rem; color: var(--primary); }
.file-upload p { color: var(--text-muted); font-size: .9rem; margin: 0; }
.file-upload p strong { color: var(--primary); }
.file-upload .file-name {
  display: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--success);
  margin-top: .5rem;
  word-break: break-all;
}
.file-upload.has-file .file-name { display: block; }
.file-upload.has-file .upload-placeholder { display: none; }
.file-upload p strong { color: var(--primary); }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-bg); border-color: var(--success); color: #065F46; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #92400E; }
.alert-danger { background: var(--danger-bg); border-color: var(--danger); color: #991B1B; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #1E40AF; }
.alert-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: .1rem; }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-primary { background: var(--primary-lt); color: var(--primary-dk); }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-gray { background: var(--bg3); color: var(--text-muted); }
.badge-info { background: #DBEAFE; color: #1E40AF; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table thead {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.table th {
  padding: .8rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--primary-bg); }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.dashboard-sidebar {
  background: var(--text);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1.25rem 1rem;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: var(--primary-lt);
}
.sidebar-brand img { width: 32px; height: 32px; border-radius: 6px; }
.sidebar-user {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-user-name { font-weight: 700; font-size: .95rem; }
.sidebar-user-sub { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .1rem; }

.sidebar-nav { padding: .75rem 0; flex: 1; }
.sidebar-nav-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .75rem 1.25rem .3rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-radius: 0;
  position: relative;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-nav a.active {
  color: #fff;
  background: rgba(14,165,233,.2);
  border-right: 3px solid var(--primary);
}
.sidebar-nav a .icon { width: 18px; opacity: .7; }
.sidebar-nav a.active .icon { opacity: 1; }
.sidebar-nav a .badge-count {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 100px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-footer a { color: rgba(255,255,255,.5); font-size: .85rem; }

.dashboard-main { overflow: auto; background: var(--bg2); }
.dashboard-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dashboard-topbar h1 { font-size: 1.15rem; font-weight: 700; }
.dashboard-content { padding: 1.5rem; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.stat-card-icon.blue { background: var(--primary-bg); color: var(--primary); }
.stat-card-icon.green { background: var(--success-bg); color: var(--success); }
.stat-card-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-card-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: .2rem; }
.stat-card-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* Mobile sidebar toggle */
.sidebar-toggle { display: none; }
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    position: fixed;
    top: 0; left: -260px;
    width: 240px;
    height: 100vh;
    z-index: 200;
    transition: left .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .dashboard-sidebar.open { left: 0; }
  .sidebar-toggle { display: flex; align-items: center; gap: .5rem; background: none; border: none; font-size: 1.2rem; color: var(--text); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
  }
  .sidebar-overlay.open { display: block; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.step {
  text-align: center;
  padding: 2rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--primary-lt);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .875rem; color: var(--text-muted); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: #fff;
  text-align: center;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
}
.pricing-card.featured .price-label { color: rgba(255,255,255,.8); }
.pricing-price { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; margin: .75rem 0 .25rem; }
.pricing-period { font-size: .85rem; }
.pricing-card ul { text-align: left; margin: 1.5rem 0; }
.pricing-card ul li { padding: .4rem 0; display: flex; align-items: center; gap: .5rem; font-size: .9rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-text { font-size: .95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: .6rem; }
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-lt);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-sub { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { }
.footer-brand .logo { color: #fff; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .875rem; padding: .2rem 0; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .825rem;
}
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary-dk);
  padding: .2rem .85rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: .6rem;
}

/* ============================================================
   AUTH PAGES (login, register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  padding: 2rem 1.25rem;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.auth-header img { width: 52px; height: 52px; border-radius: 12px; margin: 0 auto .75rem; }
.auth-header h1 { font-size: 1.4rem; font-weight: 800; }
.auth-header p { font-size: .875rem; opacity: .85; margin-top: .3rem; }
.auth-body { padding: 2rem; }

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: .875rem; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.w-full { width: 100%; }
.hidden { display: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 37%, var(--bg3) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Spinner */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-lt);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PROGRESS BAR (application steps)
   ============================================================ */
.progress-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}
.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.prog-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
  transition: all var(--transition);
}
.prog-step.done .prog-step-num { background: var(--success); border-color: var(--success); color: #fff; }
.prog-step.active .prog-step-num { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-lt); }
.prog-step-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-align: center; }
.prog-step.active .prog-step-label { color: var(--primary); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: .25rem 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  gap: 1rem;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { font-size: .95rem; color: var(--text-muted); padding: 0 0 1rem; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .hide-mobile { display: none !important; }
  .dashboard-content { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .dashboard-sidebar, .btn { display: none !important; }
  body { color: #000; font-size: 12pt; }
}
