/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --teal: #0F5132;
  --teal-dark: #0A3A24;
  --teal-light: #eaf5ef;
  --orange: #E67E22;
  --orange-dark: #c95e11;
  --orange-light: #fff4e8;
  --gold: #D4A017;
  --gold-soft: #f8efcf;

  --text-primary: #1B263B;
  --text-secondary: #5f6e86;
  --secondary: #FAF9F6;
  --border-color: #e7e2d7;
  --white: #ffffff;

  /* legacy aliases used in old templates */
  --primary: #E8711A;
  --primary-dark: #cc5f12;
  --primary-light: #fef3eb;
  --secondary-color: #1B5E7B;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;

  --shadow-card: 0 1px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  --nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.18s ease;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
main { padding-top: var(--nav-height); }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ─── Flex / Grid utils ───────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.grid { display: grid; }
.w-full { width: 100%; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Typography ─────────────────────────────────────────────────── */
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-muted { color: var(--text-secondary); }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #1B5E20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo-image {
  display: block;
  width: auto;
  max-width: 170px;
  height: 46px;
  object-fit: contain;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.navbar-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  font-family: var(--font-body);
}
.navbar-links a:hover, .navbar-links a.active { color: var(--orange); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.navbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn { display: none; padding: 0.5rem; color: white; }

/* ─── Premium homepage sections ─────────────────────────────────── */
body { background: var(--secondary); }
main { padding-top: 0; }
.section { padding: 5rem 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(250,249,246,0.95)); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.75rem;
}
.section-heading p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(10, 31, 24, 0.9), rgba(15, 81, 50, 0.78));
  color: white;
}
.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 28, 21, 0.82) 0%, rgba(12, 45, 34, 0.55) 60%, rgba(7, 25, 19, 0.4) 100%);
  z-index: 1;
}
.hero-shell video,
.hero-shell .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-shell .hero-image {
  background: linear-gradient(120deg, rgba(8, 28, 23, 0.82), rgba(15, 81, 50, 0.5)), url('../images/hero-kigali.jpg') center/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.06;
  margin-bottom: 1rem;
  color: white;
  max-width: 700px;
}
.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 1.7rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.hero-actions .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
}
.hero-actions .btn-primary:hover {
  background: #b8860b;
  border-color: #b8860b;
}
.hero-actions .btn-outline {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.24);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 620px;
}
.stat-pill {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(14px);
}
.stat-pill strong {
  display: block;
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.2rem;
}
.stat-pill span {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
}
.hero-search-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
}
.hero-search-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  color: white;
}
.hero-search-card .search-grid {
  display: grid;
  gap: 0.75rem;
}
.hero-search-card .form-input {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.2);
}
.hero-search-card .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}
.glass-panel {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 16px 40px rgba(17, 32, 29, 0.08);
  backdrop-filter: blur(12px);
}
.feature-grid,
.benefits-grid,
.guides-grid,
.gallery-grid,
.testimonials-grid,
.timeline-grid,
.team-grid {
  display: grid;
  gap: 1.25rem;
}
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.category-card,
.benefit-card,
.guide-card,
.testimonial-card,
.timeline-card,
.team-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 45px rgba(27, 38, 59, 0.06);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover,
.benefit-card:hover,
.guide-card:hover,
.testimonial-card:hover,
.timeline-card:hover,
.team-card:hover,
.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(27, 38, 59, 0.1);
}
.category-card .icon-wrap,
.benefit-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--teal);
}
.category-card h3,
.benefit-card h3,
.guide-card h3,
.timeline-card h3,
.team-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.category-card p,
.benefit-card p,
.guide-card p,
.testimonial-card p,
.timeline-card p,
.team-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.experience-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(27, 38, 59, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.experience-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.experience-card:hover .experience-media img { transform: scale(1.05); }
.experience-body {
  padding: 1.2rem 1.2rem 1.3rem;
}
.experience-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.chip, .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
}
.chip {
  background: var(--gold-soft);
  color: var(--teal);
}
.meta-pill {
  background: var(--teal-light);
  color: var(--teal);
}
.experience-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.experience-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.experience-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.price-tag {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal);
}
.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guides-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-card {
  text-align: center;
}
.guide-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.pinterest-masonry {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pinterest-masonry .masonry-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.masonry-card {
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdf8 0%, #f9f4e8 100%);
  border: 1px solid rgba(24, 92, 68, 0.08);
  box-shadow: 0 20px 48px rgba(17, 43, 34, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.masonry-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 60px rgba(17, 43, 34, 0.13);
}
.masonry-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.masonry-media {
  aspect-ratio: var(--thumb-ratio, 4 / 3);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24, 92, 68, 0.08), rgba(241, 220, 165, 0.24));
  position: relative;
}
.masonry-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(8, 24, 20, 0.08) 100%);
  pointer-events: none;
}
.masonry-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  transition: transform 0.45s ease;
}
.masonry-card:hover .masonry-media img {
  transform: scale(1.04);
}
.masonry-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1rem 1.15rem;
}
.masonry-content h3 {
  color: var(--text-primary);
  font-size: 1.03rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}
.editorial-cta {
  margin-top: 1.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal-light), rgba(255,255,255,0.95));
  border: 1px solid var(--border-color);
}
.editorial-cta h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}
.editorial-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.newsletter-panel {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}
.newsletter-panel p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  border-radius: 999px;
  border: none;
  padding: 0.95rem 1rem;
}
.footer-modern {
  background: linear-gradient(135deg, #0f2e23 0%, #133f2c 100%);
  color: rgba(255,255,255,0.86);
  padding: 4rem 0 1.5rem;
}
.footer-modern .container {
  display: grid;
  gap: 2.2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.76);
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f1dca5;
  margin-bottom: 0.9rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.66);
}
.about-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(9, 31, 24, 0.8), rgba(15, 81, 50, 0.45)), url('../images/login-visual.jpg') center/cover no-repeat;
  color: white;
}
.about-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.about-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: white;
  margin-bottom: 0.9rem;
}
.about-hero p {
  max-width: 720px;
  color: rgba(255,255,255,0.84);
  font-size: 1.03rem;
  line-height: 1.75;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: center;
}
.story-card,
.timeline-card,
.team-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 45px rgba(27, 38, 59, 0.06);
  padding: 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat-card {
  background: linear-gradient(145deg, var(--white), var(--teal-light));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}
.btn-ripple:active { transform: scale(0.98); }

@media (max-width: 1024px) {
  .hero-content,
  .story-grid,
  .newsletter-panel { grid-template-columns: 1fr; }
  .feature-grid,
  .benefits-grid,
  .guides-grid,
  .testimonials-grid,
  .experience-grid,
  .timeline-grid,
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pinterest-masonry {
    gap: 20px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .navbar-links, .navbar-actions .btn-outline, .navbar-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-content { padding-top: 5.5rem; }
  .hero-stats,
  .stats-grid,
  .feature-grid,
  .benefits-grid,
  .guides-grid,
  .testimonials-grid,
  .experience-grid,
  .timeline-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .pinterest-masonry {
    flex-direction: column;
    gap: 18px;
  }
  .pinterest-masonry .masonry-column {
    gap: 18px;
  }
  .newsletter-panel { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Mobile nav — managed by navbar.html with visibility/opacity/transform animation */

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
  height: 40px;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--secondary); color: var(--text-primary); }
.btn-secondary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal-dark); }
.btn-success {
  background: var(--success);
  color: white;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-sm { height: 32px; padding: 0 0.75rem; font-size: 0.8rem; }
.btn-lg { height: 48px; padding: 0 1.75rem; font-size: 1rem; }
.btn-loading { opacity: 0.65; pointer-events: none; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-input, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.form-input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,94,123,0.12);
  background: white;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
.input-wrap { position: relative; }
.input-wrap.has-left-icon input { padding-left: 2.5rem; }
.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 0.9rem;
}
.input-right {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }

/* ─── Badges / Pills ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-teal, .badge-primary { background: var(--teal); color: white; }
.badge-orange { background: var(--orange); color: white; }
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-gray { background: #f1f5f9; color: var(--text-secondary); }
.status-ACTIVE { background: #dcfce7; color: #16a34a; }
.status-PENDING { background: #fef9c3; color: #a16207; }
.status-CONFIRMED { background: #dbeafe; color: #1d4ed8; }
.status-COMPLETED { background: #dcfce7; color: #16a34a; }
.status-CANCELLED { background: #fee2e2; color: #dc2626; }
.status-REJECTED { background: #fee2e2; color: #dc2626; }
.status-APPROVED { background: #dcfce7; color: #16a34a; }
.status-DRAFT, .status-ARCHIVED { background: #f1f5f9; color: var(--text-secondary); }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-warning { background: #fef9c3; border-color: #fde047; color: #a16207; }
.alert-success { background: #dcfce7; border-color: #86efac; color: #166534; }
.alert-error { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-info { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }

/* ─── Toast ──────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 80px; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.2s ease;
  font-size: 0.875rem;
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--teal); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Skeleton ───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Spinner ────────────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Loading / Empty states ─────────────────────────────────────── */
.loading-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--text-secondary);
  text-align: center;
}
.loading-state p, .empty-state p { font-size: 0.875rem; }
.empty-icon { font-size: 3rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-primary); }

/* ─── Table ──────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--secondary); }

/* ─── Dropdown divider ───────────────────────────────────────────── */
.dropdown-divider { border-top: 1px solid rgba(255,255,255,0.12); margin: 0.75rem 0; }

/* ─── Dashboard layout ───────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 1.5rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.12);
  color: white;
}
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }
.dashboard-main {
  flex: 1;
  padding: 2rem;
  background: var(--secondary);
  overflow-y: auto;
}
.dashboard-header {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
.dashboard-title {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}
.dashboard-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.25rem; }
.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow-card);
}
.stat-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

/* ─── Vendor listing row ─────────────────────────────────────────── */
.vendor-listing-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-color);
}
.vendor-listing-row:last-child { border-bottom: none; }
.vendor-listing-thumb {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.vendor-listing-row > div:nth-child(2) { flex: 1; min-width: 0; }

/* ─── Pagination ─────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 0;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.page-btn.active { background: var(--teal); border-color: var(--teal); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Dropdown / User menu ───────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  min-width: 180px;
  z-index: 200;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: background var(--transition);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--secondary); }
.dropdown-item.danger { color: var(--danger); }

/* ─── Focus ring (accessibility) ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
/* Remove outline for mouse users on buttons/links */
.btn:focus:not(:focus-visible),
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 768px) {
  .navbar-actions .btn-outline { display: none; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 0.75rem; gap: 0.25rem; }
  .sidebar-logo { display: none; }
  .sidebar-link { padding: 0.5rem 0.75rem; }
  .dashboard-main { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.2rem; }
}

/* ─── Mobile typography & layout helpers ─────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  h1 { line-height: 1.2; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn-lg { height: 44px; font-size: 0.9rem; padding: 0 1.25rem; }

  /* Toast: full-width on small screens */
  #toast-container { right: 0.75rem; left: 0.75rem; }
  .toast { min-width: 0; width: 100%; max-width: 100%; }

  /* Hero search button: full width when it wraps onto its own row */
  .hero-search-btn { width: 100%; }
}
