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

/* ── ACCESSIBILITY ─────────────────────────────────────────── */
/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute; top: -100%; left: 8px;
  background: var(--navy); color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  font-size: 0.9rem; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Global keyboard focus ring — visible for keyboard users, hidden for mouse */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

:root {
  --cream: #F7F3ED;
  --cream-dark: #EDE8DF;
  --navy: #0D1B2A;
  --navy-mid: #1A2E44;
  --teal: #0ABFA3;
  --teal-dark: #089483;
  --amber: #F5A623;
  --coral: #E8614D;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --card-bg: #FFFFFF;
  --border: rgba(13,27,42,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,243,237,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--navy); color: #fff !important;
  padding: 10px 24px; border-radius: 100px;
  font-size: 0.85rem !important; font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover { background: var(--teal) !important; transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative; overflow: hidden;
}
/* HERO FLOATING SOCIAL PROOF CARDS */
.hero-float-card {
  position: absolute; z-index: 2;
  width: 272px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(13,27,42,0.22), 0 4px 16px rgba(13,27,42,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: heroCardBounce 3.5s ease-in-out infinite;
}
.hfc-l1 { left: 3%; top: 22%; animation-delay: 0s; }
.hfc-l2 { left: 5%; top: 56%; animation-delay: 1.2s; }
.hfc-r1 { right: 3%; top: 18%; animation-delay: 0.6s; }
.hfc-r2 { right: 5%; top: 54%; animation-delay: 1.9s; }
@keyframes heroCardBounce {
  0%, 100% { transform: translateY(0);     animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%       { transform: translateY(-14px); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
.hfc-banner {
  height: 76px;
  display: flex; align-items: flex-end; padding: 0 16px 12px;
  position: relative;
}
.hfc-online-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
  position: absolute; top: 12px; right: 14px;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
.hfc-exam-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.7);
}
.hfc-body { padding: 0 16px 16px; }
.hfc-top {
  display: flex; align-items: flex-end; gap: 10px;
  margin-top: -20px; margin-bottom: 10px;
}
.hfc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.hfc-name-block { flex: 1; padding-bottom: 3px; min-width: 0; }
.hfc-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.hfc-univ { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfc-divider { height: 1px; background: var(--border); margin: 10px 0; }
.hfc-stats { display: flex; }
.hfc-stat-item { flex: 1; text-align: center; padding: 4px; }
.hfc-stat-item:not(:last-child) { border-right: 1px solid var(--border); }
.hfc-stat-num { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 900; color: var(--navy); line-height: 1; }
.hfc-stat-label { font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
@media (max-width: 1100px) { .hero-float-card { display: none; } }

/* STAT AVATARS */
.stat-avatars { display: flex; margin-bottom: 6px; }
.stat-av {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
  border: 2px solid var(--cream); margin-left: -6px; flex-shrink: 0;
}
.stat-av:first-child { margin-left: 0; }
.stat-av-more { background: var(--cream-dark); color: var(--text-muted); font-size: 0.58rem; }

.hero-bg-shape {
  position: absolute; top: -80px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,191,163,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-shape2 {
  position: absolute; bottom: -100px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag, .hero h1, .hero-sub, .hero-actions, .hero-stats {
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-dark); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 28px; width: fit-content;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before { content: '●'; font-size: 0.5rem; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -2px; color: var(--navy);
  max-width: 800px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub {
  margin-top: 28px; font-size: 1.15rem; line-height: 1.7;
  color: var(--text-muted); max-width: 520px; font-weight: 400;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s ease 0.3s both;
}
.btn-primary {
  background: var(--navy); color: #fff;
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  background: var(--teal); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,191,163,0.3);
}
.btn-secondary {
  background: transparent; color: var(--navy);
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  border: 2px solid var(--navy); cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 48px; margin-top: 72px;
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900; color: var(--navy);
  letter-spacing: -1px;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* SEARCH SECTION */
.search-section {
  padding: 80px 48px 110px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.search-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(10,191,163,0.15) 0%, transparent 60%);
}
.search-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.search-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: #fff; font-weight: 700; margin-bottom: 8px;
}
.search-section p { color: rgba(255,255,255,0.55); margin-bottom: 32px; font-size: 0.95rem; }
.search-bar {
  display: flex; gap: 12px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 8px 8px 8px 20px;
  align-items: center; flex-wrap: wrap;
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; min-width: 180px;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.65); }
.search-bar:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.search-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.filter-chip {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); padding: 7px 18px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.search-btn {
  background: var(--teal); color: #fff; border: none;
  padding: 12px 28px; border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.search-btn:hover { background: var(--teal-dark); transform: scale(1.02); }

/* RANK BADGE (on cards + modal) */
.rank-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; letter-spacing: 0.2px; white-space: nowrap;
  font-family: 'DM Mono', monospace;
}

/* FILTER ROW (rank + exam date) */
.filter-row {
  padding: 18px 48px;
  background: var(--cream-dark);
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid var(--border);
}
.filter-group {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.filter-group > span {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase; margin-right: 4px;
  white-space: nowrap;
}
.date-filter-note {
  font-size: 0.75rem; color: var(--text-muted); font-style: italic;
  opacity: 0.7;
}

/* EXAM TAGS ROW */
.exam-row {
  padding: 32px 48px;
  background: var(--cream-dark);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid var(--border);
}
.exam-row span { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-right: 8px; }
.exam-tag {
  background: #fff; border: 1.5px solid var(--border);
  color: var(--navy); padding: 8px 20px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: 'DM Mono', monospace;
}
.exam-tag:hover { border-color: var(--teal); color: var(--teal); background: rgba(10,191,163,0.05); }
.exam-tag.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.exam-select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230D1B2A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 8px 40px 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'DM Mono', monospace;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  min-width: 200px;
}
.exam-select:focus { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.exam-select:hover { border-color: var(--teal); }
/* COLOR SWATCHES */
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.color-swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected { border-color: var(--navy); transform: scale(1.12); }

/* INTEREST GROUPS (edit modal + onboarding) */
.edit-interest-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.interest-group { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.interest-group-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; cursor: pointer; user-select: none;
  font-size: 0.83rem; font-weight: 600; color: var(--navy);
  transition: background 0.15s;
}
.interest-group-header:hover { background: rgba(10,191,163,0.04); }
.interest-group-header .ig-arrow { transition: transform 0.2s; color: var(--text-muted); }
.interest-group-header.open .ig-arrow { transform: rotate(180deg); }
.interest-group-body { display: none; flex-wrap: wrap; gap: 7px; padding: 10px 14px 14px; border-top: 1.5px solid var(--border); }
.interest-group-body.open { display: flex; }
.interest-chip-btn {
  padding: 5px 13px; border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--cream-dark); font-size: 0.8rem; font-weight: 500; color: var(--navy);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.interest-chip-btn:hover { border-color: var(--teal); }
.interest-chip-btn.selected { background: rgba(10,191,163,0.08); border-color: var(--teal); color: var(--teal); }
.pm-interest-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--cream-dark); border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 500; color: var(--navy);
}

.exam-search-wrap { position: relative; display: flex; align-items: center; }
.exam-search-input {
  background: #fff 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='%230D1B2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat left 14px center;
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 8px 16px 8px 38px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: text;
  transition: border-color 0.2s;
  width: 200px;
}
.exam-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.exam-search-input:focus { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.exam-search-input:hover { border-color: var(--teal); }

/* BUDDIES GRID */
.buddies-section { padding: 60px 48px; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--navy);
}
.section-header a {
  color: var(--teal); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: opacity 0.2s;
}
.section-header a:hover { opacity: 0.7; }
.buddies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.buddy-card {
  background: #fff;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s, border-color 0.2s;
  animation: fadeUp 0.5s ease both;
  position: relative;
}
.buddy-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 70px rgba(13,27,42,0.13);
  border-color: rgba(10,191,163,0.3);
}

/* Card banner (colored top area) */
.card-banner {
  height: 90px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 20px;
  position: relative;
}
.card-banner-exam {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.65);
}

/* Avatar overlapping banner */
.card-avatar-wrap {
  margin: -30px 0 0 20px;
  position: relative; width: fit-content;
}
.avatar {
  width: 70px; height: 70px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.avatar-edu {
  position: absolute; bottom: 1px; right: -4px;
  background: var(--teal); color: #fff;
  font-size: 0.82rem; line-height: 1;
  padding: 3px 5px; border-radius: 6px; border: 2px solid #fff;
}
.avatar-edu.badge-student { background: #1d4ed8; }
.avatar-edu.badge-pro     { background: #15803d; }
.pm-verified-label {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 8px;
  background: #dbeafe; color: #1d4ed8;
}
.pm-verified-label.badge-pro { background: #dcfce7; color: #15803d; }

/* Card body */
.card-body { padding: 10px 20px 22px; }
.card-name {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-top: 8px; margin-bottom: 3px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.active-badge {
  font-size: 0.65rem; font-weight: 600; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 100px; padding: 2px 8px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.2px;
  flex-shrink: 0;
}
.card-location {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px;
}
.level-pill {
  display: inline-block;
  padding: 3px 12px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3px;
  font-family: 'DM Mono', monospace; margin-bottom: 12px;
}
.card-bio {
  font-size: 0.83rem; line-height: 1.6; color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: var(--cream); border: 1px solid var(--cream-dark);
  padding: 3px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
}
.card-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: 14px; border-top: 1px solid var(--border); gap: 14px;
}
/* Target score badge on card banner */
.target-score-badge {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.68rem; font-weight: 700; font-family: 'DM Mono', monospace;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(4px);
}
.connect-btn {
  background: var(--navy); color: #fff; border: none;
  padding: 10px 22px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.connect-btn:hover { background: var(--teal); transform: scale(1.05); box-shadow: 0 6px 20px rgba(10,191,163,0.35); }
.connect-btn.matched { background: var(--teal); }
.connect-btn.matched:hover { background: var(--teal-dark); }
.connect-btn.pending { background: var(--text-muted); cursor: default; opacity: 0.8; }

/* HOW IT WORKS */
.how-section {
  padding: 100px 48px;
  background: var(--navy); position: relative; overflow: hidden;
}
.how-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.08);
}
.how-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.how-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--teal);
  background: rgba(10,191,163,0.1); border: 1px solid rgba(10,191,163,0.25);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 20px;
}
.how-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: #fff; margin-bottom: 16px;
  font-weight: 900; letter-spacing: -1px; text-align: center;
}
.how-section h2 span { color: var(--teal); font-style: italic; }
.how-sub { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 64px; }

/* Split layout: steps list + card swap */
.how-split {
  display: flex; align-items: center; gap: 80px;
}
.how-steps-list { flex: 1; min-width: 0; }
.how-step-item {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 36px;
}
.how-step-item:last-child { margin-bottom: 0; }
.how-step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(10,191,163,0.12); color: var(--teal);
  font-family: 'DM Mono', monospace; font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.how-step-text h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.how-step-text p { color: rgba(255,255,255,0.42); font-size: 0.88rem; line-height: 1.7; }
/* How It Works — Step Carousel */
.how-carousel-wrap {
  max-width: 680px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.how-carousel-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}
.how-carousel {
  position: relative;
  height: 290px;
  margin-bottom: 28px;
}
.how-cc {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 230px;
  border-radius: 24px;
  padding: 36px 48px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.55s ease;
  will-change: transform, opacity;
  overflow: hidden;
}
.how-cc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  border-radius: 24px; pointer-events: none;
}
/* Stack depth states */
.how-cc.s0 { transform: translateY(0)   scale(1);    opacity: 1;    z-index: 4; }
.how-cc.s1 { transform: translateY(20px) scale(0.96); opacity: 0.6;  z-index: 3; }
.how-cc.s2 { transform: translateY(36px) scale(0.92); opacity: 0.3;  z-index: 2; }
.how-cc.s3 { transform: translateY(48px) scale(0.88); opacity: 0;    z-index: 1; pointer-events: none; }
.how-cc-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; opacity: 0.72; margin-bottom: 10px;
}
.how-cc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 14px;
}
.how-cc-desc {
  font-size: 1rem; line-height: 1.7; opacity: 0.85; max-width: 520px;
}
.how-cc-nav {
  display: flex; gap: 12px; justify-content: center;
}
.how-cc-btn {
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(10px);
}
.how-cc-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.how-cc-btn:active { transform: scale(0.93); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 1000px; margin: 0 auto;
}
.step-connector {
  display: flex; align-items: flex-start; padding-top: 50px;
}
.step-connector::before {
  content: '';
  display: block; width: 48px; height: 1px;
  background: linear-gradient(90deg, rgba(10,191,163,0.5) 0%, rgba(10,191,163,0.1) 100%);
  margin-top: 6px;
}
.step-card { text-align: center; padding: 0 12px; }
.step-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; width: 48px; height: 48px;
  color: var(--teal);
  filter: drop-shadow(0 0 14px rgba(10,191,163,0.35));
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(10,191,163,0.12); border: 1px solid rgba(10,191,163,0.3);
  margin: 0 auto 18px;
  font-family: 'DM Mono', monospace; font-size: 0.82rem; font-weight: 500; color: var(--teal);
}
.step-card h3 {
  color: #fff; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.3px;
}
.step-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.7; }

/* TESTIMONIALS */
.testimonials-section {
  padding: 80px 0;
  background: var(--cream);
  overflow: hidden;
}
.testimonials-header {
  text-align: center;
  padding: 0 48px;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--teal-dark);
  background: var(--cream-dark); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 16px;
}
.testimonials-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  color: var(--navy); letter-spacing: -1px;
}
.testimonials-header h2 em { font-style: italic; color: var(--teal); }
.testimonials-track-wrap {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.testimonials-track {
  display: flex; gap: 24px; width: max-content;
  animation: testimonials-scroll 40s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tcard {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 28px 28px 24px;
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tcard:hover { box-shadow: 0 12px 40px rgba(13,27,42,0.1); transform: translateY(-3px); }
.tcard-stars { color: var(--amber); font-size: 0.95rem; letter-spacing: 2px; }
.tcard-quote { font-size: 0.92rem; line-height: 1.65; color: var(--text); font-style: italic; flex: 1; }
.tcard-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tcard-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.tcard-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.tcard-meta { font-size: 0.75rem; color: var(--text-muted); font-family: 'DM Mono', monospace; margin-top: 1px; }

/* EDU BADGE */
.edu-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(10,191,163,0.12); color: var(--teal-dark);
  border: 1px solid rgba(10,191,163,0.3);
  border-radius: 100px; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 2px 8px; font-family: 'DM Mono', monospace;
  vertical-align: middle; margin-left: 6px;
  position: relative; top: -1px;
}
.edu-badge::before { content: '✓'; font-size: 0.65rem; }

@media (max-width: 768px) {
  .testimonials-header { padding: 0 24px; }
  .tcard { width: 280px; padding: 22px; }
}

/* CTA */
.cta-section {
  padding: 100px 48px; text-align: center;
  background: var(--cream);
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900; color: var(--navy); line-height: 1.1; margin-bottom: 20px;
}
.cta-section h2 em { font-style: italic; color: var(--teal); }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,27,42,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 24px;
  padding: 40px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--cream); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cream-dark); }
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--navy); margin-bottom: 6px;
}
.modal p.sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.2px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text);
  background: var(--cream); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(10,191,163,0.2);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
  width: 100%; padding: 15px; background: var(--navy); color: #fff;
  border: none; border-radius: 12px; font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s; margin-top: 8px;
}
.submit-btn:hover { background: var(--teal); transform: translateY(-1px); }

/* FOOTER */
footer {
  background: var(--navy); padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #fff; font-weight: 900; }
.footer-logo span { color: var(--teal); }
footer p { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── AVATAR IMAGE ─────────────────────────────────────────── */
.avatar-img {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── RANGE SLIDER ─────────────────────────────────────────── */
.range-slider {
  width: 100%; height: 6px;
  appearance: none; background: var(--cream-dark);
  border-radius: 3px; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--teal);
  cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── FORM SECTION DIVIDER ─────────────────────────────────── */
.form-section-divider {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px; margin: 14px 0 10px;
}
.form-section-divider span { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── PROFILE DETAIL MODAL ─────────────────────────────────── */
.profile-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,27,42,0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.profile-modal-overlay.active { display: flex; }

.profile-modal {
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 460px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeUp 0.25s ease;
}
.profile-modal .modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: rgba(255,255,255,0.8); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); backdrop-filter: blur(4px);
}
.profile-modal .modal-close:hover { background: #fff; color: var(--navy); }

/* Profile modal header banner */
.pm-header {
  height: 100px; border-radius: 24px 24px 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0; position: relative;
}
.pm-avatar {
  width: 90px !important; height: 90px !important;
  font-size: 1.6rem !important;
  position: absolute; bottom: -45px; left: 50%; transform: translateX(-50%);
  border: 4px solid #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.pm-edu {
  position: absolute; bottom: -38px; left: calc(50% + 28px);
}

.pm-body {
  padding: 58px 28px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pm-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.pm-location, .pm-pref {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px;
}

/* Stats rows */
.pm-stats {
  width: 100%; background: var(--cream); border-radius: 14px;
  padding: 14px 16px; margin: 16px 0; text-align: left;
}
.pm-stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 0.88rem;
}
.pm-stat-icon { font-size: 1rem; width: 20px; text-align: center; }
.pm-stat-label { flex: 1; color: var(--text-muted); }
.pm-stat-val { font-weight: 600; color: var(--navy); }
.pm-days-badge {
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
}

/* Material progress bar inside modal */
.pm-material-bar-wrap { width: 100%; padding: 2px 30px 8px; }
.pm-material-bar {
  width: 100%; height: 6px; background: var(--cream-dark); border-radius: 3px;
}
.pm-material-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }

.pm-bio {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 12px; text-align: left; width: 100%;
}

/* ── EDIT PROFILE MODAL ───────────────────────────────────── */
.edit-avatar-section {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.edit-avatar-preview {
  width: 72px; height: 72px; font-size: 1.4rem;
  flex-shrink: 0;
}
.upload-btn {
  display: inline-block;
  padding: 8px 16px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: background 0.15s;
}
.upload-btn:hover { background: var(--cream-dark); }

/* Edit modal lives inside profile-modal styles already */
#editModal { padding: 28px; }

/* ── MOBILE HAMBURGER ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: background 0.2s; z-index: 101; flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--cream-dark); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* NAV */
  nav { padding: 14px 20px; }
  .nav-hamburger { display: flex; }

  #navLinks {
    position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
    display: flex; flex-direction: column; gap: 2px;
    background: rgba(247,243,237,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(13,27,42,0.1);
    padding: 12px 16px 20px;
    visibility: hidden; transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s, visibility 0s linear 0.28s;
  }
  nav.nav-open #navLinks {
    visibility: visible; transform: translateY(0); opacity: 1; pointer-events: all;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s, visibility 0s;
  }
  #navLinks a {
    display: block; width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem !important; font-weight: 600 !important;
    color: var(--navy) !important;
    border-radius: 10px;
    transition: background 0.15s;
    letter-spacing: 0 !important;
  }
  #navLinks a:hover { background: var(--cream-dark); color: var(--teal) !important; }
  .btn-nav {
    background: var(--navy) !important; color: #fff !important;
    text-align: center !important; border-radius: 10px !important;
    padding: 13px 16px !important; margin-top: 4px;
  }
  .btn-nav:hover { background: var(--teal) !important; }
  .nav-user { width: 100%; padding: 10px 16px; gap: 12px; background: var(--cream-dark); border-radius: 10px; margin-top: 4px; }
  .nav-logout { flex: 1; text-align: center; padding: 10px 14px; }
  .nav-messages-btn {
    display: flex !important; width: 100%; padding: 13px 16px !important;
    color: var(--navy) !important; border-radius: 10px;
    justify-content: flex-start; transition: background 0.15s;
  }
  .nav-messages-btn:hover { background: var(--cream-dark) !important; color: var(--teal) !important; }
  .nav-messages-btn svg { width: 20px; height: 20px; }

  /* HERO */
  .hero { padding: 90px 20px 60px; min-height: auto; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); letter-spacing: -1px; }
  .hero-sub { font-size: 1rem; margin-top: 18px; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 32px; align-items: stretch; }
  .hero-actions a, .hero-actions button { width: 100%; text-align: center; box-sizing: border-box; }
  .hero-stats { gap: 20px; margin-top: 48px; flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 1.9rem; }

  /* SECTIONS */
  .buddies-section, .how-section, .cta-section { padding-left: 20px; padding-right: 20px; }

  /* SEARCH SECTION */
  .search-section { padding: 50px 20px 60px; }
  .search-section h2 { font-size: 1.7rem; }
  .search-bar { flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; }
  .search-bar input { min-width: 0; width: 100%; font-size: 1rem; }
  .search-btn { width: 100%; padding: 14px; border-radius: 10px; font-size: 0.9rem; }

  /* EXAM / FILTER ROWS */
  .exam-row { padding: 16px 20px; gap: 10px; flex-direction: column; align-items: stretch; }
  .exam-search-wrap { width: 100%; }
  .exam-search-input { width: 100%; }
  .exam-select { min-width: 0; width: 100%; }
  .filter-row { padding: 12px 20px; gap: 10px; }
  .filter-group { gap: 6px; }

  /* BUDDIES SECTION */
  .buddies-section { padding-top: 40px; padding-bottom: 40px; }
  .buddies-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-header { flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 24px; }

  /* HOW SECTION */
  .how-section { padding-top: 60px; padding-bottom: 60px; }
  .how-cc { padding: 28px 24px; }
  .how-carousel { height: 270px; }
  .how-cc-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .how-cc-desc { font-size: 0.9rem; }
  .how-split { flex-direction: column; gap: 40px; }

  /* TESTIMONIALS */
  .testimonials-header { padding: 0 20px; }
  .tcard { width: 270px; padding: 20px; }

  /* CTA */
  .cta-section { padding: 60px 20px; }
  .cta-section .btn-primary {
    display: block; width: 100%; text-align: center;
    padding: 16px 24px !important; font-size: 1rem !important;
  }

  /* FORMS */
  .form-grid { grid-template-columns: 1fr; }

  /* FOOTER */
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 30px 20px; }
  .footer-links { justify-content: center; gap: 16px; }

  /* MODALS — bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 20px 20px 0 0; padding: 24px 20px 36px;
    max-height: 90vh; width: 100%; max-width: 100%;
    transform: translateY(40px);
  }
  .profile-modal-overlay { align-items: flex-end; padding: 0; }
  .profile-modal { border-radius: 20px 20px 0 0; max-height: 88vh; max-width: 100%; width: 100%; }

  /* STEPS */
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .step-card { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .step-card:last-child { border-bottom: none; }
}

/* Extra-small (iPhone SE 375px / older 320px) */
@media (max-width: 390px) {
  nav { padding: 12px 16px; }
  #navLinks { top: 53px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.7rem; }
  .buddies-grid { gap: 12px; }
  .btn-primary, .btn-secondary { font-size: 0.9rem; padding: 14px 18px; }
}
