@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #f3f7f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f7fbf8;
  --bg-elevated: #eaf1ec;
  --border: rgba(20, 80, 45, 0.10);
  --border-hover: rgba(20, 80, 45, 0.22);
  --accent: #1db954;
  --accent-dark: #18a349;
  --accent-glow: rgba(29, 185, 84, 0.14);
  --accent-subtle: rgba(29, 185, 84, 0.08);
  --text: #0f1d15;
  --text-muted: #7a9080;
  --text-soft: #4e6459;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(15, 50, 28, 0.07);
  --shadow-md: 0 8px 24px rgba(15, 50, 28, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 50, 28, 0.14);
  --shadow-accent: 0 8px 32px rgba(29, 185, 84, 0.24);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── NAVBAR (floating) ──────────────────────── */
.navbar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  height: 60px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(15, 50, 28, 0.07);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo svg {
  margin-right: 0.45rem;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ─── BADGE MESSAGES NON LUS ─────────────────── */
.nav-msg-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--bg);
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Aurora gradient layers */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(29, 185, 84, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(29, 185, 84, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { transform: translateX(-50%) scale(1) rotate(0deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(3deg); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(29, 185, 84, 0.18);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 860px;
  margin-bottom: 1.75rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #0fa04e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-value span {
  background: linear-gradient(135deg, var(--accent), #0fa04e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── SECTION COMMONS ────────────────────────── */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ─── CARDS GRID ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

/* ─── TRAINING CARD ──────────────────────────── */
.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.training-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #d4ff60);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.training-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.training-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-level {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-debutant { background: rgba(16, 185, 129, 0.10); color: #059669; }
.level-intermediaire { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.level-avance { background: rgba(239, 68, 68, 0.10); color: #dc2626; }
.level-expert { background: rgba(139, 92, 246, 0.10); color: #7c3aed; }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.card-meta {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-icon {
  font-size: 0.85rem;
}

/* ─── COACH CARD ─────────────────────────────── */
.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  cursor: pointer;
}

.coach-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.coach-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.15), rgba(29, 185, 84, 0.03));
  border: 2px solid rgba(29, 185, 84, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.coach-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.coach-title {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.coach-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-soft);
  font-weight: 500;
}

.coach-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.stars {
  color: #fbbf24;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

/* ─── AUTH PAGES ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 185, 84, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.75rem;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.auth-logo {
  font-family: 'Outfit', sans-serif;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.auth-logo span {
  color: var(--accent);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(0,0,0,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: rgba(29, 185, 84, 0.45);
  background: rgba(29, 185, 84, 0.02);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.09);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234e6459' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231db954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

select.form-input option {
  background: #ffffff;
  color: var(--text);
  padding: 0.5rem;
}

select.form-input option:hover,
select.form-input option:checked {
  background: var(--accent);
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-block {
  width: 100%;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.forgot-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.15rem;
}

.forgot-link:hover {
  color: var(--accent);
}

/* ─── PAGE HEADER ────────────────────────────── */
.page-header {
  padding: 8rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* ─── FILTER BAR ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ─── FEATURES SECTION ───────────────────────── */
.features-section {
  padding: 0 2rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* ─── HOW IT WORKS ───────────────────────────── */
.how-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.how-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(180deg, var(--accent), rgba(29,185,84,0.1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.how-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.how-step p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ─── CTA SECTION ────────────────────────────── */
.cta-section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(29,185,84,0.08), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--accent);
  font-weight: 700;
}

/* Legacy footer (simple) */
footer:not(:has(.footer-inner)) {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer:not(:has(.footer-inner)) strong {
  color: var(--accent);
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

/* ─── HAMBURGER MENU ─────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(15, 50, 28, 0.12);
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  animation: menuDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-menu.open {
  display: flex;
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-mobile-menu a {
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  border-radius: var(--radius-xs);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
}

.nav-mobile-menu a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

/* ─── AUTH NAVBAR STATE ──────────────────────── */
.nav-user-greeting {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  text-align: center;
  padding: 0.6rem;
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(29, 185, 84, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

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

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    top: 8px;
    left: 10px;
    right: 10px;
    padding: 0 1rem;
    height: 56px;
    border-radius: 14px;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { top: 72px; left: 10px; right: 10px; }

  .hero { padding: 6rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; justify-content: center; padding-top: 2rem; margin-top: 3rem; }
  .stat-value { font-size: 1.6rem; }

  .cards-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.5rem; }

  .page-header { padding: 6rem 1.25rem 2rem; }
  .page-header-inner { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 1.7rem; }

  .card-meta { flex-wrap: wrap; gap: 0.5rem; }

  .features-section { padding: 0 1.25rem 5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-section { padding: 4rem 1.25rem; }

  .cta-section { padding: 4rem 1.25rem; }
  .cta-card { padding: 3rem 1.75rem; }

  footer { padding: 2rem 1.25rem; }
  .footer-links { gap: 1rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.8rem; }
  .btn-lg { padding: 0.7rem 1.25rem; font-size: 0.88rem; }
}
