/* ============================================================
   Medical Alert Guide Canada - Main Stylesheet
   Design: Clean & Trustworthy / Blues & Whites
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #1e3a5f;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-600: #16a34a;
  --green-50:  #f0fdf4;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.btn--primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,64,175,.4);
}
.btn--white {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--blue-50);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.125rem; }
.btn--full { width: 100%; }

/* ── Flash Messages ── */
.flash {
  padding: 1rem 1.5rem;
  font-weight: 500;
  text-align: center;
}
.flash--notice { background: var(--green-50); color: var(--green-600); border-bottom: 2px solid #bbf7d0; }
.flash--alert  { background: #fef2f2; color: #dc2626; border-bottom: 2px solid #fecaca; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  text-decoration: none;
}
.navbar__brand:hover { text-decoration: none; }
.navbar__icon { width: 36px; height: 36px; flex-shrink: 0; }
.navbar__brand-ca { color: var(--blue-700); }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__link {
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.navbar__link:hover { color: var(--blue-700); text-decoration: none; }
.navbar__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.navbar__mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 60%, #1d4ed8 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  color: #bfdbfe;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero__badge svg { width: 14px; height: 14px; }
.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__title-accent { color: #93c5fd; }
.hero__subtitle {
  font-size: 1.125rem;
  color: #bfdbfe;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.hero__features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #dbeafe;
  font-size: .95rem;
}
.hero__features svg { width: 18px; height: 18px; color: #4ade80; flex-shrink: 0; }
.hero__cta { margin-bottom: 1rem; }
.hero__trust {
  color: #93c5fd;
  font-size: .8rem;
}

/* ── Form Card ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
}
.form-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .35rem;
}
.form-card__subtitle {
  color: var(--gray-500);
  font-size: .875rem;
  margin-bottom: 1.5rem;
}

/* ── Lead Form ── */
.lead-form { }
.form-row { margin-bottom: 1rem; }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .825rem; font-weight: 600; color: var(--gray-700); }
.form-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.form-input--error { border-color: #ef4444; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  color: #dc2626;
  font-size: .875rem;
}
.form-errors ul { list-style: disc; padding-left: 1.25rem; margin-top: .35rem; }
.form-submit { margin-top: 1.25rem; }
.form-group--consent { margin-top: .25rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
}
.consent-checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: .15rem;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.consent-checkbox--error { outline: 2px solid #ef4444; border-radius: 2px; }
.consent-text { font-size: .8rem; color: var(--gray-600); line-height: 1.5; }
.consent-text a { color: var(--blue-700); text-decoration: underline; }
.consent-error { font-size: .75rem; color: #dc2626; margin-top: .25rem; display: block; }

.form-privacy {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--gray-500);
  font-size: .75rem;
  margin-top: .75rem;
  text-align: center;
  justify-content: center;
}
.form-privacy__icon { width: 12px; height: 12px; fill: var(--gray-400); flex-shrink: 0; }

/* Form success state */
.lead-form--success {
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon { margin: 0 auto 1.25rem; width: 64px; height: 64px; }
.success-icon svg { width: 100%; height: 100%; }
.success-title { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.success-message { color: var(--gray-600); margin-bottom: .5rem; }
.success-sub { color: var(--gray-500); font-size: .875rem; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.75rem 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-item__number { display: block; font-size: 1.5rem; font-weight: 800; color: var(--blue-700); }
.trust-item__label { font-size: .8rem; color: var(--gray-500); }
.trust-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Steps ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  text-align: center;
  max-width: 260px;
  padding: 1.5rem;
}
.step__number {
  width: 52px;
  height: 52px;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step__title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.step__desc { color: var(--gray-500); font-size: .925rem; }
.step__connector {
  flex: 1;
  height: 2px;
  background: var(--blue-100);
  margin-top: 26px;
  min-width: 40px;
  max-width: 80px;
}

/* ── Device Cards ── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.device-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.device-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.device-card--featured {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}
.device-card--featured .device-card__desc,
.device-card--featured .device-card__features li {
  color: #bfdbfe;
}
.device-card__badge {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: #b45309;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.device-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.device-card__icon--blue { background: var(--blue-50); color: var(--blue-700); }
.device-card__icon--white { background: rgba(255,255,255,.2); color: var(--white); }
.device-card__icon svg { width: 26px; height: 26px; }
.device-card__title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.device-card--featured .device-card__title { color: var(--white); }
.device-card__desc { font-size: .875rem; color: var(--gray-600); margin-bottom: 1rem; line-height: 1.6; }
.device-card__features { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.device-card__features li {
  font-size: .8rem;
  color: var(--gray-500);
  padding-left: 1rem;
  position: relative;
}
.device-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 700;
}
.device-card--featured .device-card__features li::before { color: #93c5fd; }

/* ── Why Grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.why-item { text-align: center; padding: 1.5rem; }
.why-item__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-item__title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.why-item__desc { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* ── Testimonials ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial__text {
  color: var(--gray-700);
  font-size: .925rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: .875rem; color: var(--gray-900); }
.testimonial__location { font-size: .775rem; color: var(--gray-500); }

/* ── Bottom CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding: 5rem 0;
}
.cta-section__inner { text-align: center; }
.cta-section__title { font-size: 2.25rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.cta-section__subtitle { color: #bfdbfe; font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 2rem;
}
.footer__brand { display: flex; align-items: flex-start; gap: .75rem; }
.footer__logo-icon { width: 36px; height: 36px; flex-shrink: 0; margin-top: .1rem; }
.footer__logo-text { font-size: 1rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .4rem; }
.footer__tagline { color: var(--gray-300); font-size: .85rem; }
.footer__bottom-inner { display: flex; flex-direction: column; gap: .25rem; }
.footer__heading { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-weight: 600; }
.footer__links ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer__links li, .footer__links a { font-size: .875rem; color: var(--gray-300); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: var(--gray-300);
}
.footer__disclaimer { margin-top: .25rem; font-size: .75rem; }
.footer__disclaimer a { color: var(--gray-300); text-decoration: underline; }
.footer__disclaimer a:hover { color: var(--white); }

/* ── Policy Page ── */
.policy-page { padding: 4rem 0 5rem; }
.policy-page__inner { max-width: 760px; }
.policy-page__title { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: .4rem; }
.policy-page__updated { color: var(--gray-400); font-size: .85rem; margin-bottom: 2.5rem; }
.policy-body h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 2rem 0 .6rem; }
.policy-body p { color: var(--gray-600); margin-bottom: .75rem; line-height: 1.75; }
.policy-body ul { color: var(--gray-600); padding-left: 1.5rem; margin-bottom: .75rem; }
.policy-body ul li { margin-bottom: .35rem; line-height: 1.65; }
.policy-body a { color: var(--blue-700); }
.policy-body code { font-family: monospace; background: var(--gray-100); padding: .1em .4em; border-radius: 4px; font-size: .85em; }
.policy-body strong { color: var(--gray-800); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { background: var(--gray-50); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: var(--blue-900);
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}
.admin-sidebar__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.admin-sidebar__name { font-weight: 600; font-size: .9rem; color: #e2e8f0; }
.admin-sidebar__nav { list-style: none; padding: 0 .75rem; }
.admin-sidebar__nav li { margin-bottom: .2rem; }
.admin-nav-link {
  display: block;
  padding: .6rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: #93c5fd;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: white; text-decoration: none; }
.admin-nav-link--active { background: rgba(255,255,255,.12); color: white; }
.admin-nav-link--secondary { color: var(--gray-400); margin-top: 1rem; font-size: .8rem; }

.admin-content { flex: 1; padding: 2rem; overflow-x: hidden; }

.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.admin-header p { color: var(--gray-500); font-size: .875rem; margin-top: .25rem; }
.section-label { font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--gray-500);margin-bottom:.75rem; }

/* ── Stat Cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-card__label { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-card__sub { font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }
.stat-card--blue .stat-card__value { color: var(--blue-700); }
.stat-card--green .stat-card__value { color: var(--green-600); }

/* ── Admin Tables ── */
.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.admin-table-header h2 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  background: var(--gray-50);
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--gray-200);
}
.admin-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge--new { background: var(--blue-100); color: var(--blue-700); }
.badge--contacted { background: #fef9c3; color: #ca8a04; }
.badge--converted { background: #dcfce7; color: var(--green-600); }
.badge--junk { background: var(--gray-100); color: var(--gray-500); }

/* ── Admin Filters ── */
.admin-filters {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.admin-filters label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.admin-filters select, .admin-filters input {
  padding: .4rem .75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: .875rem;
  font-family: var(--font);
}

/* ── Dashboard 2-col ── */
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-panel__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  color: var(--gray-900);
  font-size: .9rem;
}
.admin-panel__body { padding: 0; }
.admin-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.25rem;
  border-bottom: 1px solid var(--gray-50);
  font-size: .85rem;
}
.admin-panel__row:last-child { border-bottom: none; }
.admin-panel__path { color: var(--gray-700); font-family: monospace; font-size: .8rem; }
.admin-panel__count {
  background: var(--blue-50);
  color: var(--blue-700);
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Hero slim variant (FAQ, inner pages) ── */
.hero--slim { padding: 2.5rem 0 1.5rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.hero--slim .section-title { font-size: 2rem; }

/* ── FAQ public cards ── */
.faq-card { background: white; border: 1px solid var(--gray-200); border-radius: .75rem; padding: 1.25rem 1.5rem; transition: box-shadow .15s; }
.faq-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.faq-card__question { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.faq-card__question a { color: var(--gray-900); text-decoration: none; }
.faq-card__question a:hover { color: var(--blue-600, #2563eb); }
.faq-card__answer { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }
.faq-card__link { font-size: .8rem; color: var(--blue-600, #2563eb); text-decoration: none; font-weight: 600; }
.faq-card__link:hover { text-decoration: underline; }

/* ── Prose (full answer body) ── */
.prose p { margin-bottom: 1rem; line-height: 1.75; color: var(--gray-700); font-size: .975rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Article grid (listing page) ── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card { background: white; border: 1px solid var(--gray-200); border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.article-card__image { height: 180px; background: var(--gray-100); overflow: hidden; }
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__category { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-600,#2563eb); background: var(--blue-50,#eff6ff); padding: .2rem .6rem; border-radius: 2rem; margin-bottom: .6rem; }
.article-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.article-card__title a { color: var(--gray-900); text-decoration: none; }
.article-card__title a:hover { color: var(--blue-600,#2563eb); }
.article-card__excerpt { font-size: .85rem; color: var(--gray-600); line-height: 1.55; flex: 1; margin-bottom: .75rem; }
.article-card__meta { font-size: .75rem; color: var(--gray-400); display: flex; gap: .4rem; align-items: center; margin-top: auto; }

@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .article-grid { grid-template-columns: 1fr; } }

/* ── Clickable table rows ── */
.admin-table__row--clickable { cursor: pointer; }
.admin-table__row--clickable:hover td { background: var(--gray-50); }

/* ── Sparkline chart ── */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 2px; height: 60px; padding: 0 1.25rem 1rem; }
.chart-bar { flex: 1; background: var(--blue-100); border-radius: 2px 2px 0 0; min-height: 2px; transition: background .2s; }
.chart-bar:hover { background: var(--blue-500); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__title { font-size: 2.2rem; }
  .hero__form-panel { order: -1; }
  .navbar__links { display: none; }
  .navbar__mobile-toggle { display: flex; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .steps { flex-direction: column; align-items: center; }
  .step__connector { display: none; }
  .form-row--two { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .trust-bar__inner { gap: 1.25rem; }
  .section { padding: 3rem 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
  .admin-sidebar__nav { display: flex; gap: .5rem; }
  .admin-sidebar__brand { border-bottom: none; padding: 0 1rem 0 0; margin: 0; }
}

@media (max-width: 480px) {
  .device-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
}
