/* =============================================================================
   MECANOC — Design System CSS
   Reproduit fidèlement le design de dev.mecanoc.com
   ============================================================================= */

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

/* --- Variables CSS --- */
:root {
  /* Palette principale */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* Neutrals */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Red (errors) */
  --red-50:  #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  /* Design tokens */
  --color-primary-from: var(--blue-600);
  --color-primary-to:   var(--indigo-600);
  --gradient-primary: linear-gradient(135deg, var(--blue-600), var(--indigo-600));

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;

  --border-radius-sm:  0.375rem;   /* 6px */
  --border-radius:     0.5rem;     /* 8px */
  --border-radius-lg:  0.75rem;    /* 12px */
  --border-radius-xl:  1rem;       /* 16px */
  --border-radius-2xl: 1.5rem;     /* 24px */

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --max-w: 80rem; /* 1280px / 7xl */
  --px: 1rem;
}

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

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem;   } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 767px) {
  .grid-cols-2,
  .grid-cols-3 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.min-h-screen { min-height: 100vh; }
.w-full       { width: 100%; }

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-5xl  { font-size: 3rem; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-white    { color: #fff; }
.text-red-700  { color: var(--red-700); }

/* Gradient text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.opacity-90 { opacity: 0.9; }

/* =============================================================================
   BACKGROUNDS & SURFACES
   ============================================================================= */

.bg-white      { background-color: #fff; }
.bg-gray-50    { background-color: var(--gray-50); }
.bg-gray-900   { background-color: var(--gray-900); }
.bg-blue-50    { background-color: var(--blue-50); }
.bg-gradient-hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 50%, var(--indigo-50) 100%);
}
.bg-gradient-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--blue-50) 100%);
}
.bg-gradient-primary {
  background: var(--gradient-primary);
}

/* =============================================================================
   LOGO MARK
   ============================================================================= */

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Minimal header (login/signup pages) */
.site-header--minimal .logo-wordmark {
  font-size: 1.25rem;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
}

/* Primary gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  box-shadow: var(--shadow-xl);
  opacity: 0.95;
}

/* Text/ghost */
.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--blue-50);
}

/* Outline */
.btn-outline {
  background: #fff;
  color: var(--gray-900);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--blue-600);
}

/* White (on colored bg) */
.btn-white {
  background: #fff;
  color: var(--blue-600);
  border-color: transparent;
}
.btn-white:hover {
  box-shadow: var(--shadow-xl);
}

/* Blue lighter (on colored bg) */
.btn-blue-light {
  background: var(--blue-500);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-blue-light:hover {
  background: var(--blue-400);
}

/* Full width */
.btn-full {
  width: 100%;
  padding-block: 0.875rem;
}

/* Disabled */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading spinner inside button */
.btn-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================================================
   FEATURE CARDS
   ============================================================================= */

.feature-card {
  background: #fff;
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--blue-100), var(--indigo-100));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue-600);
}
.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================================================
   SECTIONS
   ============================================================================= */

.section {
  padding-block: 4rem;
}

.section-sm {
  padding-block: 2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2,
.section-head h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--gray-600);
}

/* =============================================================================
   HERO
   ============================================================================= */

.hero {
  padding-block: 5rem;
}

.hero__inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__verify {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: center;
}

.verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #fff;
  border: 2px solid var(--blue-200);
  color: var(--blue-700);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-weight: 600;
}
.verify-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
}
.verify-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verify-btn__text { text-align: left; }
.verify-btn__title { display: block; font-weight: 600; }
.verify-btn__sub { display: block; font-size: 0.875rem; color: var(--gray-600); font-weight: 400; }

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-block {
  background: var(--gradient-primary);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.cta-block__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-block__desc {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-block__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  background: var(--gray-900);
  color: #fff;
  padding-block: 3rem;
}

.site-footer .container {
  text-align: center;
}

.site-footer .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.site-footer .logo-wordmark {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-footer .tagline {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

/* =============================================================================
   AUTH CARD (login / signup)
   ============================================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 50%, var(--indigo-50) 100%);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  width: 100%;
  max-width: 28rem;
}

.auth-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card__subtitle {
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 2rem;
}

/* Form fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.input-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-icon-right {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
}
.input-icon-right:hover { color: var(--gray-600); }
.input-icon-right svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem 0.75rem 2.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input::placeholder { color: var(--gray-400); }

.form-input--pr { padding-right: 2.75rem; }

/* Checkbox row */
.form-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.form-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: var(--border-radius-sm);
  accent-color: var(--blue-600);
  cursor: pointer;
}

.form-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
}
.form-link:hover { color: var(--blue-500); }

/* Alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.alert-error {
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-700);
}
.alert svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Auth footer text */
.auth-alt {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}
.auth-alt a {
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: none;
}
.auth-alt a:hover { color: var(--blue-500); }

/* =============================================================================
   MESSAGES DJANGO (success, error, warning, info)
   ============================================================================= */

.messages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.message {
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.9375rem;
  border: 1px solid transparent;
}
.message-error   { background: var(--red-50);   border-color: var(--red-200);   color: var(--red-700);   }
.message-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.message-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.message-info    { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }

/* =============================================================================
   ERROR PAGES (4xx / 5xx)
   ============================================================================= */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 50%, var(--indigo-50) 100%);
}

.error-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* =============================================================================
   UTILITY: SPACING
   ============================================================================= */

.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.py-4  { padding-block: 1rem; }
.py-16 { padding-block: 4rem; }

/* =============================================================================
   AUTH EXTRAS
   ============================================================================= */

.auth-back-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--blue-600);
  margin-bottom: 1.5rem; text-decoration: none;
}
.auth-back-link:hover { color: var(--blue-700); }
.auth-back-link svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.password-toggle {
  position: absolute; top: 50%; right: 0.75rem;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--border-radius-sm); transition: color 0.15s;
}
.password-toggle:hover { color: var(--gray-600); }
.password-toggle svg {
  width: 1.125rem; height: 1.125rem;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* =============================================================================
   HAMBURGER MOBILE NAV
   ============================================================================= */

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: var(--border-radius);
  z-index: 100; transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-drawer { display: none; position: fixed; inset: 0; z-index: 90; }
.mobile-nav-drawer.is-open { display: block; }
.mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(17rem, 85vw); background: #fff;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem; gap: 0.5rem;
  animation: slideInRight 0.25s ease; overflow-y: auto;
}
.mobile-nav-panel a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: var(--border-radius-lg);
  color: var(--gray-700); font-size: 1rem; font-weight: 500;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.mobile-nav-panel a:hover { background: var(--blue-50); color: var(--blue-600); }
.mobile-nav-panel a.btn-primary { background: var(--gradient-primary); color: #fff; }
.mobile-nav-panel .nav-divider { height: 1px; background: var(--gray-100); margin: 0.5rem 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* =============================================================================
   RESPONSIVE — TABLETTE (640px – 1023px)
   ============================================================================= */

@media (min-width: 640px) and (max-width: 1023px) {
  .hero { padding-block: 3.5rem; }
  .section { padding-block: 3rem; }
  .auth-card { max-width: 32rem; padding: 2rem; }
  .cta-block { padding: 2.5rem 1.5rem; }
  .cta-block__btns { flex-direction: column; align-items: center; }
  .cta-block__btns .btn { width: 100%; max-width: 18rem; }
  .account-layout { grid-template-columns: 1fr; margin: 1.5rem auto; }
  .account-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.75rem; }
  .account-nav__title, .account-nav__divider { display: none; }
  .account-nav a { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
}

/* =============================================================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================================================= */

@media (max-width: 639px) {
  .header-nav { display: none; }
  .nav-hamburger { display: flex; }
  .site-header .container { padding-block: 0.875rem; }

  .hero { padding-block: 2.5rem; }
  .hero__title { font-size: clamp(1.625rem, 7vw, 2.25rem); margin-bottom: 1rem; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; padding: 0.875rem 1.5rem !important; }
  .hero__verify { margin-top: 2rem; padding-top: 1.5rem; }
  .verify-btn { padding: 0.875rem 1.25rem; gap: 0.625rem; }
  .verify-btn__sub { display: none; }

  .section { padding-block: 2rem; }
  .section-head { margin-bottom: 1.75rem; }
  .section-head h2, .section-head h3 { font-size: 1.375rem; }
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr !important; }
  .gap-8 { gap: 1rem; }

  .cta-block { padding: 2rem 1.25rem; border-radius: 1rem; }
  .cta-block__title { font-size: 1.375rem; }
  .cta-block__desc { font-size: 0.9375rem; margin-bottom: 1.5rem; }
  .cta-block__btns { flex-direction: column; align-items: stretch; }
  .cta-block__btns .btn { width: 100%; padding: 0.875rem 1rem !important; font-size: 0.9375rem; white-space: normal; text-align: center; }

  .auth-main { padding: 1.5rem 0.75rem; align-items: flex-start; }
  .auth-card { padding: 1.75rem 1.25rem; border-radius: var(--border-radius-xl); max-width: 100%; box-shadow: var(--shadow-lg); }
  .auth-card__title { font-size: 1.5rem; }

  .account-layout { grid-template-columns: 1fr; margin: 1rem auto; padding: 0 0.75rem; gap: 1rem; }
  .account-nav {
    position: static; display: flex; overflow-x: auto;
    gap: 0.25rem; padding: 0.625rem; border-radius: var(--border-radius-lg);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav__title, .account-nav__divider { display: none; }
  .account-nav a { white-space: nowrap; padding: 0.5rem 0.875rem; font-size: 0.8125rem; flex-shrink: 0; }
  .account-card { padding: 1.25rem; border-radius: var(--border-radius-lg); }
  .account-card__title { font-size: 1rem; margin-bottom: 1rem; }
  .profile-grid { grid-template-columns: 1fr !important; gap: 0.75rem; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .profile-avatar { width: 4rem; height: 4rem; font-size: 1.375rem; }
  .profile-name { font-size: 1.125rem; }
  .service-banner { font-size: 0.8125rem; }
  .error-main { padding: 3rem 1rem; }
  .site-footer { padding-block: 2rem; }
}

/* =============================================================================
   RESPONSIVE — DESKTOP (>= 1024px)
   ============================================================================= */

@media (min-width: 1024px) {
  .hero { padding-block: 6rem; }
  .section { padding-block: 5rem; }
  .account-nav a { transition: background 0.15s, color 0.15s, transform 0.15s; }
  .account-nav a:hover { transform: translateX(2px); }
}
