/* =====================================================
   INFIRMIERSCONNECT — Design System
   Palette: Navy #1a3a5c | Teal #00a896 | White | Slate
   ===================================================== */

/* --- Variables --- */
:root {
  --primary:       #1a3a5c;
  --primary-light: #2a5285;
  --accent:        #00a896;
  --accent-dark:   #007d70;
  --accent-light:  #e6f7f5;
  --bg:            #f4f7fb;
  --bg-card:       #ffffff;
  --text:          #1a1f2e;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --success:       #10b981;
  --warning:       #f59e0b;
  --error:         #ef4444;
  --info:          #3b82f6;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --transition:    .2s ease;
  --header-h:      72px;
}

/* --- 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); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
main { flex: 1; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* --- Container --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 640px; }
.container-md { max-width: 860px; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: var(--primary);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.3px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { color: rgba(255,255,255,.75); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 40px; padding: 6px 14px 6px 6px; color: #fff;
  transition: all var(--transition); cursor: pointer;
}
.user-menu-trigger:hover { background: rgba(255,255,255,.2); }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 500; }
.chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform var(--transition); }
.user-menu-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); z-index: 200;
}
.user-menu-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown-item { display: block; padding: 10px 16px; font-size: 14px; color: var(--text); transition: background var(--transition); }
.dropdown-item:hover { background: var(--bg); color: var(--text); }
.dropdown-item--danger { color: var(--error); }
.dropdown-item--danger:hover { background: #fef2f2; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Mobile menu */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: all var(--transition); cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,168,150,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-label .required { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--text);
  background: #fff; transition: all var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,150,.12); }
.form-control.error { border-color: var(--error); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-width='1.5' d='M5 7l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Checkbox / Radio */
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; appearance: none; cursor: pointer; flex-shrink: 0; margin-top: 2px; transition: all var(--transition); }
.form-check-input:checked { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.form-check-label { font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.5; }

/* Tags sélectionnables */
.tags-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.tag-option label { display: block; padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all var(--transition); color: var(--text-muted); }
.tag-option input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-option label:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { font-size: 18px; font-weight: 600; color: var(--primary); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }

/* Nurse Card (search results) */
.nurse-card { display: flex; gap: 20px; padding: 24px; }
.nurse-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nurse-card-avatar { flex-shrink: 0; }
.nurse-card-avatar img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-light); }
.nurse-card-body { flex: 1; min-width: 0; }
.nurse-card-name { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.nurse-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nurse-card-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.nurse-card-location svg { width: 14px; height: 14px; }
.nurse-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 10px; background: var(--accent-light); color: var(--accent-dark); border-radius: 20px; font-size: 12px; font-weight: 500; }
.tag-primary { background: var(--primary); color: #fff; }
.nurse-card-rate { font-size: 15px; font-weight: 600; color: var(--text); }
.availability-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.availability-badge.available { background: #dcfce7; color: #166534; }
.availability-badge.unavailable { background: #fee2e2; color: #991b1b; }
.availability-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nurse-card-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* =====================================================
   STARS & RATINGS
   ===================================================== */
.stars { display: flex; align-items: center; gap: 2px; }
.star { width: 18px; height: 18px; fill: #d1d5db; stroke: none; }
.star.filled { fill: #f59e0b; }
.rating-score { font-size: 15px; font-weight: 700; color: var(--text); margin-left: 4px; }
.rating-count { font-size: 13px; color: var(--text-muted); margin-left: 2px; }

/* Interactive stars */
.stars-interactive { flex-direction: row-reverse; justify-content: flex-end; }
.star-label { cursor: pointer; color: #d1d5db; transition: color var(--transition); }
.star-label input { display: none; }
.star-label svg { width: 32px; height: 32px; fill: currentColor; stroke: none; transition: fill var(--transition); }
.stars-interactive .star-label:hover,
.stars-interactive .star-label:hover ~ .star-label,
.stars-interactive input:checked ~ .star-label { color: #f59e0b; }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; margin: 16px 0;
  border: 1px solid;
}
.alert-success { background: #dcfce7; border-color: #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }

/* =====================================================
   BADGES & STATUS
   ===================================================== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--accent-light); color: var(--accent-dark); }
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-premium  { background: #fef3c7; color: #92400e; }
.badge-new      { background: #eff6ff; color: #1d4ed8; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e6b7a 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-label { display: inline-block; background: rgba(0,168,150,.2); color: #7ff0e5; border: 1px solid rgba(0,168,150,.4); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat-value { font-size: 36px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,.65); }
.hero-image { position: absolute; right: 0; bottom: 0; width: 45%; opacity: .15; pointer-events: none; }

/* Search Bar Hero */
.search-hero {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
}
.search-hero .form-control { background: rgba(255,255,255,.95); flex: 1; min-width: 160px; }
.search-hero .btn { flex-shrink: 0; }

/* =====================================================
   SECTIONS
   ===================================================== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--primary); margin-bottom: 16px; letter-spacing: -.3px; }
.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-number { width: 56px; height: 56px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; margin: 0 auto 20px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.pricing-card { padding: 36px; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); transform: scale(1.02); }
.pricing-card.featured::before { content: 'Populaire'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.pricing-plan { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; }
.pricing-price sup { font-size: 24px; font-weight: 700; vertical-align: super; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pricing-features li:last-child { border: none; }
.pricing-features li svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--success); fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* Trust Section */
.trust-section { background: var(--primary); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.trust-item svg { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 1.5; margin: 0 auto 16px; }
.trust-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.trust-item p { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; }

/* =====================================================
   SEARCH PAGE
   ===================================================== */
.search-page { padding: 40px 0; }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.search-filters { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.filter-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 24px; }
.filter-group-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14px; color: var(--text-muted); }
.results-list { display: flex; flex-direction: column; gap: 16px; }

/* =====================================================
   PROFILE PAGE
   ===================================================== */
.profile-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 48px 0; }
.profile-hero-inner { display: flex; gap: 32px; align-items: flex-start; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.verified-badge { position: absolute; bottom: 4px; right: 4px; background: var(--success); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.verified-badge svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.5; }
.profile-hero-info { flex: 1; }
.profile-hero-name { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.profile-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-hero-meta span { color: rgba(255,255,255,.8); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.profile-hero-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.profile-hero-bio { color: rgba(255,255,255,.85); font-size: 15px; max-width: 600px; line-height: 1.7; }
.profile-content { padding: 40px 0; }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

/* Reviews */
.review-card { padding: 20px; margin-bottom: 16px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-comment { font-size: 14px; color: var(--text); line-height: 1.6; }
.review-reply { background: var(--bg); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.review-reply strong { display: block; font-size: 12px; color: var(--accent-dark); margin-bottom: 4px; }

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 0; align-items: start; }
.dashboard-sidebar { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--text-muted); font-size: 14px; font-weight: 500; border-left: 3px solid transparent; transition: all var(--transition); }
.sidebar-nav-item:hover, .sidebar-nav-item.active { background: var(--bg); color: var(--accent-dark); border-left-color: var(--accent); }
.sidebar-nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sidebar-user { padding: 20px; border-bottom: 1px solid var(--border); text-align: center; }
.sidebar-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.sidebar-name { font-size: 15px; font-weight: 600; color: var(--primary); }
.sidebar-role { font-size: 12px; color: var(--text-muted); }
.dashboard-main { }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { padding: 24px; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-change { font-size: 12px; color: var(--success); margin-top: 4px; }

/* =====================================================
   SUBSCRIPTION PAGE
   ===================================================== */
.subscription-status { padding: 28px; }
.sub-active { border-color: var(--success); background: linear-gradient(135deg, #f0fdf4, #fff); }
.sub-inactive { border-color: var(--warning); background: linear-gradient(135deg, #fffbeb, #fff); }
.sub-status-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sub-status-active { color: var(--success); }
.sub-status-inactive { color: var(--warning); }
.sub-plan-name { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.sub-renewal { font-size: 14px; color: var(--text-muted); }

/* =====================================================
   AUTH PAGES (Login / Register)
   ===================================================== */
.auth-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 40px 20px; }
.auth-container { width: 100%; max-width: 460px; margin: 0 auto; }
.auth-card { padding: 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.auth-header p { color: var(--text-muted); font-size: 15px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { font-weight: 600; color: var(--accent); }

/* Role selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-option input { display: none; }
.role-option label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.role-option label:hover { border-color: var(--accent); background: var(--accent-light); }
.role-option input:checked + label { border-color: var(--accent); background: var(--accent-light); }
.role-option svg { width: 36px; height: 36px; fill: none; stroke: var(--text-muted); stroke-width: 1.5; }
.role-option input:checked + label svg { stroke: var(--accent-dark); }
.role-option-title { font-size: 15px; font-weight: 700; color: var(--text); }
.role-option-desc { font-size: 12px; color: var(--text-muted); }

/* Password strength */
.password-strength { margin-top: 6px; }
.strength-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }
.strength-text { font-size: 12px; color: var(--text-muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 60px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 12px; line-height: 1.6; }
.trust-badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.trust-badges .badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 11px; }
.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal { max-width: 700px; line-height: 1.6; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.loading { opacity: .6; pointer-events: none; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--primary); padding: 16px; gap: 4px; z-index: 99; }
  .mobile-menu-toggle { display: flex; }
  .nurse-card { flex-direction: column; }
  .nurse-card-actions { flex-direction: row; align-items: center; }
  .profile-hero-inner { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .role-selector { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
