/* =====================================================
   Fly2High - Main Stylesheet
   Brand Colors:
     --bg-primary:    #0D1B2A  (deep navy)
     --bg-secondary:  #1A2B3C  (dark slate)
     --bg-card:       #152233  (card background)
     --accent-blue:   #6B8599  (steel blue from logos)
     --accent-orange: #E85D04  (orange-red bird beak)
     --text-primary:  #FFFFFF
     --text-secondary:#8BA5B8
     --border:        #2A3F52
===================================================== */

:root {
  --bg-primary:    #0D1B2A;
  --bg-secondary:  #1A2B3C;
  --bg-card:       #152233;
  --accent-blue:   #6B8599;
  --accent-orange: #E85D04;
  --accent-orange-hover: #FF6B1A;
  --text-primary:  #FFFFFF;
  --text-secondary:#8BA5B8;
  --border:        #2A3F52;
  --nav-height:    72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--alt { background: var(--bg-secondary); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}
.accent { color: var(--accent-orange); }
.accent-blue { color: var(--accent-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--accent-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(9, 19, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo img { height: 40px; width: auto; }
.nav__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--text-primary);
  background: rgba(107, 133, 153, 0.12);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  user-select: none;
  white-space: nowrap;
}
.nav__dropdown-trigger:hover,
.nav__dropdown.open .nav__dropdown-trigger {
  color: var(--text-primary);
  background: rgba(107, 133, 153, 0.12);
}
.nav__dropdown-trigger svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__dropdown.open .nav__dropdown-trigger svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #0F1F2E;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav__dropdown-item:hover {
  background: rgba(107, 133, 153, 0.15);
  color: var(--text-primary);
}
.nav__dropdown-item svg { color: var(--accent-orange); flex-shrink: 0; }
.nav__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.nav__icon-btn:hover {
  background: rgba(107, 133, 153, 0.15);
  color: var(--text-primary);
}
#theme-toggle {
  color: var(--accent-orange);
}
#theme-toggle:hover {
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent-orange);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(9, 19, 29, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.nav__mobile-link:hover { background: rgba(107,133,153,0.12); color: var(--text-primary); }
.nav__mobile-section {
  padding: 12px 16px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}
.nav__mobile-sub {
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.nav__mobile-sub:hover { background: rgba(107,133,153,0.12); color: var(--text-primary); }

/* ── Page offset for fixed nav ── */
.page-content { padding-top: var(--nav-height); }

/* ── Hero ── */
.hero {
  position: relative;
  height: calc(85vh - var(--nav-height));
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,27,42,0.85) 40%,
    transparent 100%
  ), linear-gradient(
    to top,
    rgba(13,27,42,0.9) 0%,
    transparent 60%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: 16px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-secondary);
}
.product-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2rem;
}
.product-card__body { padding: 16px 18px 20px; }
.product-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-bottom: 6px;
}
.product-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.product-card__subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.product-card__price span { font-size: 0.75rem; color: var(--text-secondary); font-weight: 400; }
.product-card__btn {
  padding: 7px 16px;
  background: var(--accent-orange);
  color: #fff;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.product-card__btn:hover { background: var(--accent-orange-hover); }

/* ── Feature Bands ── */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.feature-band__img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}
.feature-band__img-placeholder {
  min-height: 380px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--accent-blue);
  opacity: 0.3;
}
.feature-band__body {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
}
.feature-band__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 14px;
}
.feature-band__title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.feature-band__desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.feature-band--reverse .feature-band__img { order: 2; }
.feature-band--reverse .feature-band__body { order: 1; background: var(--bg-card); }

/* ── Stats bar ── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-bar__item {}
.stats-bar__value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: -0.04em;
}
.stats-bar__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,133,153,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-hero__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Cards generic ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px;
  background: rgba(232, 93, 4, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-orange);
}
.card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── Support / Contact ── */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.support-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.support-form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(107, 133, 153, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.form-submit:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }

/* Support sidebar */
.support-sidebar { display: flex; flex-direction: column; gap: 16px; }
.support-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.support-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-info-card h3 svg { color: var(--accent-orange); }
.support-info-card p, .support-info-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.support-info-card ul { padding-left: 0; }
.support-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.support-info-card li::before {
  content: '›';
  color: var(--accent-orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.support-discord {
  background: linear-gradient(135deg, #404EED 0%, #5865F2 100%);
  border: none;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.support-discord:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,0.3); }
.support-discord__icon { font-size: 2rem; flex-shrink: 0; }
.support-discord__text h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.support-discord__text p { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* Success message */
.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  color: #4ade80;
  font-size: 0.9rem;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ── About page ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--accent-blue); }
.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}
.team-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-card__role { font-size: 0.82rem; color: var(--accent-orange); }

/* ── Fly2Manager App ── */
.app-feature-list { display: flex; flex-direction: column; gap: 16px; }
.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.app-feature__icon {
  width: 44px; height: 44px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}
.app-feature__content h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.app-feature__content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Vendors ── */
.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.vendor-card:hover { border-color: var(--accent-blue); transform: translateY(-3px); }
.vendor-card__logo {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.vendor-card__body { padding: 20px; }
.vendor-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.vendor-card__desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Footer ── */
.footer {
  background: #090F16;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__logo img { height: 36px; }
.footer__logo-text { font-size: 1rem; font-weight: 700; }
.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
}
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 16px;
}
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__col-link:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 0.82rem; color: var(--text-secondary); }
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer__social:hover { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-orange); }
.breadcrumb span { color: var(--accent-blue); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Tag pills ── */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag--blue { background: rgba(107,133,153,0.15); color: var(--accent-blue); }
.tag--orange { background: rgba(232,93,4,0.12); color: var(--accent-orange); }
.tag--free { background: rgba(34,197,94,0.12); color: #4ade80; }

/* ── Light theme overrides ── */
[data-theme="light"] {
  --bg-primary:          #F0F4F8;
  --bg-secondary:        #E2EAEF;
  --bg-card:             #FFFFFF;
  --text-primary:        #0D1B2A;
  --text-secondary:      #4A6070;
  --border:              #C5D2DC;
  /* Darkened for AA contrast on light backgrounds (4.9:1 on #F0F4F8, 5.4:1 on white) */
  --accent-orange:       #B84400;
  --accent-orange-hover: #D45200;
  /* Darkened for AA contrast on light backgrounds (5.7:1 on #F0F4F8) */
  --accent-blue:         #3D5F72;
}

[data-theme="light"] body { background: var(--bg-primary); color: var(--text-primary); }

/* ── Nav ── */
[data-theme="light"] .nav {
  background: rgba(240, 244, 248, 0.95);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav__mobile { background: rgba(240, 244, 248, 0.98); }
[data-theme="light"] .nav__dropdown-menu {
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
/* Hamburger lines go dark */
[data-theme="light"] .nav__hamburger span { background: var(--text-primary); }

/* ── Hero ── */
[data-theme="light"] .hero__overlay {
  background: linear-gradient(
    to right, rgba(5, 15, 25, 0.78) 40%, transparent 100%
  ), linear-gradient(
    to top, rgba(5, 15, 25, 0.72) 0%, transparent 60%
  );
}
/* All hero text stays white — always over a dark image+overlay */
[data-theme="light"] .hero__eyebrow,
[data-theme="light"] .hero__title,
[data-theme="light"] .hero__title .accent,
[data-theme="light"] .hero__desc { color: #ffffff; }
/* Hero secondary button stays visible over the dark overlay */
[data-theme="light"] .hero__actions .btn-secondary {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.45);
}
[data-theme="light"] .hero__actions .btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
}

/* ── Buttons ── */
[data-theme="light"] .btn-secondary { color: var(--text-primary); }

/* ── Cards / products ── */
[data-theme="light"] .product-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

/* ── Footer: always dark regardless of theme ── */
[data-theme="light"] .footer {
  --text-primary:   #FFFFFF;
  --text-secondary: #8BA5B8;
  --accent-orange:  #E85D04;
  --bg-secondary:   #1A2B3C;
  --border:         #2A3F52;
}

/* ── Green text (#4ade80) is invisible on white cards — replace with dark green ── */
[data-theme="light"] .tag--free            { color: #166534; background: rgba(22,101,52,0.10); }
[data-theme="light"] .form-success         { color: #166534; background: rgba(22,101,52,0.08); border-color: rgba(22,101,52,0.25); }
[data-theme="light"] .status-badge--active { color: #166534; background: rgba(22,101,52,0.10); }

/* ── Auth ── */
[data-theme="light"] .auth-page { background: radial-gradient(ellipse at top, #D8E8F2 0%, var(--bg-primary) 60%); }
[data-theme="light"] .auth-card { box-shadow: 0 24px 60px rgba(0,0,0,0.1); }

/* ── Logo swap: dark logo in dark mode, black-text logo in light mode ── */
.nav__logo-light { display: none; }
.nav__logo-dark  { display: block; }
[data-theme="light"] .nav__logo-dark  { display: none; }
[data-theme="light"] .nav__logo-light { display: block; }

/* ── Cart badge ── */
.nav__cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 2px solid var(--bg-primary);
}

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  background: radial-gradient(ellipse at top, #162537 0%, var(--bg-primary) 60%);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-logo img { height: 38px; }
.auth-logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-primary); }
.auth-title { font-size: 1.45rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 0.9rem; color: var(--text-secondary); text-align: center; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 40px 11px 14px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.auth-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(107,133,153,0.15);
}
.auth-input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.auth-input--no-icon { padding-right: 14px; }
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.auth-eye:hover { color: var(--text-primary); }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  margin-top: -4px;
}
.auth-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.auth-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}
.auth-link { color: var(--accent-blue); transition: color 0.2s; font-size: 0.83rem; }
.auth-link:hover { color: var(--accent-orange); }
.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 2px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-oauth {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.auth-oauth:hover { background: rgba(107,133,153,0.1); border-color: var(--accent-blue); }
.auth-footer { text-align: center; font-size: 0.88rem; color: var(--text-secondary); margin-top: 22px; }
.auth-footer a { color: var(--accent-orange); font-weight: 600; transition: color 0.2s; }
.auth-footer a:hover { color: var(--accent-orange-hover); }
.auth-terms { font-size: 0.78rem; color: var(--text-secondary); text-align: center; line-height: 1.6; }
.auth-terms a { color: var(--accent-blue); }
.auth-terms a:hover { color: var(--accent-orange); }
.auth-strength { height: 3px; border-radius: 2px; background: var(--border); margin-top: 6px; overflow: hidden; }
.auth-strength-bar { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.auth-strength-text { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.auth-error {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 4px;
  display: none;
}
.auth-error.show { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band__img { order: 1 !important; min-height: 260px; }
  .feature-band__body { order: 2 !important; padding: 40px 28px; }
  .feature-band--reverse .feature-band__img { order: 1 !important; }
  .feature-band--reverse .feature-band__body { order: 2 !important; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .support-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { height: calc(92vh - var(--nav-height)); }
  .page-hero { padding: 40px 0 36px; }
  .support-form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .products-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px 24px; }
}
