/* ═══════════════════════════════════════════════════════════
   Kidioz Theme — single source of truth for all app styling.
   Based on: kidioz (17).html — never override these tokens.
   ═══════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Scroll-triggered fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

:root {
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px);
  --teal: #2BB8C8;
  --teal-dark: #1A9BAF;
  --navy: #0F2A44;
  --navy-light: #1F4970;
  --coral: #FF8A6B;
  --text-dark: #0F2A3F;
  --text-mid: #2C3E50;
  --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* ── Utility ────────────────────────────────────────────── */
.glass-bg {
  background: rgba(255,255,255,0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ── Announce bar ──────────────────────────────────────── */
.announce-bar {
  background: var(--teal);
  padding: 9px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.2px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Sticky header wrapper (announce bar + nav together) ── */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 24px rgba(15,42,68,0.08);
}

/* ── Header shell ──────────────────────────────────────── */
.kidioz-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Nav top row ───────────────────────────────────────── */
.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}
.logo-img { height: 36px; width: auto; display: block; object-fit: contain; }

/* Search */
.nav-search-wrap {
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(43,184,200,0.2);
  border-radius: 999px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,184,200,0.12);
}
.nav-search-icon { width: 16px; height: 16px; opacity: 0.45; color: var(--navy); flex-shrink: 0; }
.nav-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  color: var(--navy);
}
.nav-search-wrap input::placeholder { color: #a0aab4; }

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-btn {
  background: rgba(15,42,68,0.05);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.2s, transform 0.15s, color 0.2s;
  position: relative;
  flex-shrink: 0;
}
.nav-icon-btn svg { display: block; }
.nav-icon-btn:hover { background: rgba(43,184,200,0.13); color: var(--teal); transform: scale(1.08); }

.nav-icon-btn--user {
  width: auto;
  border-radius: 999px;
  padding: 0 14px 0 8px;
  gap: 7px;
  font-size: 17px;
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auth group (sign in / sign up) */
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-signin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-signin-link:hover { background: rgba(43,184,200,0.1); }

.nav-signup-btn {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--teal);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(43,184,200,0.3);
}
.nav-signup-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43,184,200,0.4);
}

/* Auth loading skeleton */
.nav-auth-group--loading {
  width: 140px;
  justify-content: center;
}
.nav-auth-loading {
  display: inline-block;
  width: 80px;
  height: 18px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 9px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Cart badge */
.nav-cart-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1.5px solid white;
}

/* User dropdown */
.nav-user-wrap { position: relative; }
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  border-radius: 20px;
  padding: 18px 16px;
  flex-direction: column;
  gap: 4px;
  z-index: 300;
  box-shadow: 0 16px 40px rgba(15,42,68,0.18);
  border: 1px solid var(--glass-border);
}
/* Bridge the 10px gap between button and dropdown so :hover doesn't break */
.nav-user-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
  z-index: 299;
}
.nav-user-wrap:hover .nav-user-dropdown,
.nav-user-wrap:focus-within .nav-user-dropdown,
.nav-user-wrap--open .nav-user-dropdown { display: flex; }

.nav-user-greeting {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15,42,68,0.08);
  margin-bottom: 6px;
}
.nav-user-item {
  display: block;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s;
  font-weight: 500;
}
.nav-user-item:hover { background: rgba(43,184,200,0.1); color: var(--teal); }
.nav-user-signout {
  margin-top: 6px;
  border: 1.5px solid var(--coral);
  background: none;
  color: var(--coral);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.nav-user-signout:hover { background: var(--coral); color: white; }

/* ── Category strip ────────────────────────────────────── */
.nav-cats {
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.7);
}
.nav-cats-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav-cat-link:hover { background: rgba(43,184,200,0.12); color: var(--teal); }
.nav-cat-link--sale { color: var(--coral); }
.nav-cat-link--sale:hover { background: rgba(255,138,107,0.1); color: var(--coral); }
.nav-cat-link--new { color: #7c3aed; }
.nav-cat-link--new:hover { background: rgba(124,58,237,0.08); color: #7c3aed; }

/* Hamburger (hidden on desktop) */
.nav-hamburger { display: none; }

/* Show/hide helpers */
.nav-mobile-only  { display: none; }
.nav-desktop-only { display: flex; }

/* Mobile drawer nav-inner: logo | search(hidden) | actions+hamburger */
/* Hamburger is rightmost — lives outside nav-actions on mobile */

/* Page main spacing */
.page-main { min-height: 60vh; }

/* ── Hero carousel ─────────────────────────────────────── */
.hero { padding: 24px 24px 40px; }
.hero-stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  height: clamp(420px, 60vh, 600px);
  box-shadow: 0 25px 50px rgba(15, 42, 68, 0.18);
  container-type: inline-size;
  container-name: hero;
}
.hero-carousel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right,
    rgba(15,42,68,0.45) 0%, rgba(15,42,68,0.25) 40%,
    rgba(15,42,68,0.1) 70%, rgba(15,42,68,0) 100%);
  pointer-events: none;
}
.captions-layer {
  position: absolute; inset: 0; z-index: 3;
  overflow: hidden; pointer-events: none;
}
.captions-track {
  display: flex; height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}
.caption-slot { flex: 0 0 100%; height: 100%; position: relative; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.slide-caption {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 50px 72px 130px 100px;
  color: white; max-width: 820px;
}
.hero-caption-stage {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  color: white;
  pointer-events: none;
}
.hero-caption-stage .slide-eyebrow,
.hero-caption-stage .slide-title,
.hero-caption-stage .slide-subtitle {
  margin: 0;
  padding: 0;
}
.hero-caption-stage .hero-slide-cta { pointer-events: auto; }
.hero-caption-stage .slide-title em { color: var(--slide-title-accent, #FFD966); font-style: italic; }
.hero-caption-stage .slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 7px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .slide-title {
  font-size: clamp(var(--slide-title-size-min, 24px), 4.8cqi, var(--slide-title-size, 48px));
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .slide-subtitle {
  font-size: clamp(var(--slide-subtitle-size-min, 12px), 1.15cqi, var(--slide-subtitle-size, 17px));
  font-weight: 500;
  line-height: 1.4;
  max-width: 520px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 17px 0 0;
  padding: 15px 32px;
  background: var(--teal);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(43,184,200,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .hero-slide-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,184,200,0.5); }
.slide-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #FFD966; margin-bottom: 18px;
  width: fit-content;
}
.slide-caption:not(.slide-caption--designed) .slide-eyebrow {
  opacity: 0; transform: translateY(30px);
}
.slide-eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.slide-title {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.slide-caption:not(.slide-caption--designed) .slide-title {
  opacity: 0; transform: translateY(30px);
}
.slide-title em { font-style: italic; color: #FFD966; }
.slide-subtitle {
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500; line-height: 1.6; max-width: 520px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.slide-caption:not(.slide-caption--designed) .slide-subtitle {
  opacity: 0; transform: translateY(30px);
}
.hero-fixed-cta {
  position: absolute; bottom: 70px; left: 100px; z-index: 6;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: white;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 10px 24px rgba(43,184,200,0.4);
  transition: 0.2s;
}
.hero-fixed-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,184,200,0.5); }
.hero-slide-cta {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  margin-top: 0; pointer-events: auto;
  background: var(--teal); color: white;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 10px 24px rgba(43,184,200,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.slide-caption:not(.slide-caption--designed) .hero-slide-cta {
  opacity: 0; transform: translateY(30px);
}
.hero-slide-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,184,200,0.5); }
.hero--loading .hero-stage { min-height: 420px; border-radius: 24px; }

.caption-slot.active .hero-caption-stage .slide-eyebrow  { animation: slideFadeUp 0.7s ease-out 0.25s forwards; }
.caption-slot.active .hero-caption-stage .slide-title    { animation: slideFadeUp 0.8s ease-out 0.45s forwards; }
.caption-slot.active .hero-caption-stage .slide-subtitle { animation: slideFadeUpSubtitle 0.8s ease-out 0.65s forwards; }
.caption-slot.active .hero-caption-stage .hero-slide-cta { animation: slideFadeUp 0.8s ease-out 0.85s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-eyebrow  { animation: slideFadeUp 0.7s ease-out 0.25s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-title    { animation: slideFadeUp 0.8s ease-out 0.45s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-subtitle { animation: slideFadeUpSubtitle 0.8s ease-out 0.65s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .hero-slide-cta { animation: slideFadeUp 0.8s ease-out 0.85s forwards; }
@keyframes slideFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideFadeUpSubtitle { to { opacity: var(--slide-subtitle-opacity, 1); transform: translateY(0); } }

.carousel-arrow {
  position: absolute; top: 50%;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: none; cursor: pointer;
  font-size: 22px; font-weight: 700; color: var(--navy);
  z-index: 5; transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2); transition: 0.2s;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.1); background: white; }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-indicators {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 5;
}
.carousel-indicators .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.carousel-indicators .dot.active { background: white; width: 28px; border-radius: 999px; }

/* ── Sections ──────────────────────────────────────────── */
.age-section, .cats-section, .products-section, .blog-section, .newsletter { padding: 48px 24px; }
.section-title { text-align: center; font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto 32px; flex-wrap: wrap; gap: 12px; }
.section-header .section-title { margin: 0; text-align: left; }
.section-header .view-all { color: var(--teal); text-decoration: none; font-weight: 600; white-space: nowrap; }
.section-header .view-all:hover { text-decoration: underline; }

.age-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.age-btn {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: 60px;
  padding: 10px 24px; font-weight: 600; cursor: pointer;
  color: var(--text-dark); transition: 0.2s; text-decoration: none;
}
.age-btn:hover {
  background: rgba(43,184,200,0.14);
  border-color: rgba(43,184,200,0.35);
  transform: translateY(-1px);
}
.age-btn.active { background: var(--teal); color: white; border-color: var(--teal); }

.cats-grid, .products-grid, .blog-grid { display: grid; gap: 24px; max-width: 1300px; margin: 0 auto; }
.cats-grid { grid-template-columns: repeat(2,1fr); }

.cat-card {
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border-radius: 32px; padding: 28px 16px; text-align: center;
  border: 1px solid var(--glass-border); text-decoration: none;
  color: inherit; transition: 0.2s;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card__icon { font-size: 42px; line-height: 1; }
.cat-card__name { font-weight: 800; margin: 12px 0 4px; color: var(--navy); }
.cat-card__meta { color: var(--text-mid); font-size: 14px; margin-top: 4px; }
.cat-card__icon {
  font-size: 42px;
  line-height: 1;
}

/* Smooth route transition for enhanced navigation */
.page-main {
  animation: page-fade-in 220ms ease-out;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.products-grid { grid-template-columns: 1fr; }
.prod-tab-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.prod-tab {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: 60px;
  padding: 10px 24px; font-weight: 600; cursor: pointer;
  color: var(--text-dark); transition: 0.2s;
}
.prod-tab.active { background: var(--teal); color: white; border-color: var(--teal); }

.prod-card {
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border-radius: 32px; overflow: hidden;
  border: 1px solid var(--glass-border); transition: 0.2s; text-decoration: none; color: inherit;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img-wrap { aspect-ratio: 1; background: #f0f2f5; position: relative; overflow: hidden; }
.prod-img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: white; font-size: 10px;
  padding: 4px 12px; border-radius: 30px; font-weight: 800;
}
.prod-body { padding: 18px; }
.prod-name { font-weight: 700; font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.prod-price { font-weight: 800; font-size: 16px; color: var(--navy); }
.btn-add-small {
  background: rgba(200,237,245,0.7); border: none;
  padding: 7px 14px; border-radius: 40px;
  font-weight: 700; cursor: pointer; color: var(--navy); transition: 0.2s;
}
.btn-add-small:hover { background: var(--teal); color: white; }

.blog-grid { grid-template-columns: 1fr; }
.blog-card {
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border-radius: 32px; padding: 28px; border: 1px solid var(--glass-border);
}
.blog-card h3 { color: var(--navy); margin: 16px 0 8px; }
.blog-card p  { color: var(--text-mid); line-height: 1.6; }

/* ── Newsletter ────────────────────────────────────────── */
.newsletter { position: relative; padding: 0; overflow: hidden; background: var(--navy); }
.nl-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(43,184,200,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,138,107,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.nl-content {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; padding: 80px 48px;
}
.nl-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.nl-title { font-size: clamp(44px, 5vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -2px; color: white; margin-bottom: 16px; }
.nl-title em { font-style: italic; color: var(--teal); }
.nl-sub { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 32px; }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nl-input {
  flex: 1; min-width: 220px;
  padding: 15px 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white; font-size: 15px; outline: none;
  backdrop-filter: blur(4px); transition: 0.2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.45); }
.nl-input:focus { border-color: var(--teal); background: rgba(255,255,255,0.12); }
.nl-btn {
  background: var(--teal); color: white;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: none;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(43,184,200,0.35);
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,184,200,0.45); }
.nl-disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); }
.nl-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.nl-perk {
  display: flex; gap: 14px; align-items: flex-start;
  opacity: 0; transform: translateY(24px);
  animation: nlFadeUp 0.6s ease-out var(--d, 0s) forwards;
}
@keyframes nlFadeUp { to { opacity: 1; transform: translateY(0); } }
.nl-perk-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nl-perk strong { display: block; font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.nl-perk span { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.nl-testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 20px 24px;
}
.nl-stars { color: #FFD966; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.nl-testimonial p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; font-style: italic; margin-bottom: 10px; }
.nl-author { font-size: 12px; color: var(--teal); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────── */
footer.kidioz-footer { background: var(--navy-light); padding: 40px 20px 28px; color: white; }
.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}
.footer-grid h4 { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul li { opacity: 0.7; margin-bottom: 6px; font-size: 14px; }
.footer-grid a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand { grid-column: 1 / -1; }
.footer-logo { margin-bottom: 10px; }
.footer-logo .logo-img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; max-width: 320px; }
.footer-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ── Connection Status Bar (YouTube-style) ──────────────── */
.connection-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  min-height: 32px;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.connection-bar--offline {
  background: #cc0000;
  color: white;
}
.connection-bar--reconnecting {
  background: #ffcc00;
  color: #333;
}

.connection-bar__icon { font-size: 14px; }
.connection-bar__text { flex: 1; text-align: center; }

.connection-bar__retry {
  background: rgba(255,255,255,0.2);
  border: none;
  color: inherit;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.connection-bar__retry:hover { background: rgba(255,255,255,0.3); }

.connection-bar__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── App Loading Overlay ───────────────────────────────── */
body:has(.app-loading-overlay) {
  overflow: hidden;
}
.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.app-loading-content {
  text-align: center;
  z-index: 1;
  animation: loadingFadeIn 0.4s ease-out;
}
@keyframes loadingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-loading-logo {
  margin-bottom: 40px;
}
.app-loading-logo .logo-img { height: 60px; }

.app-loading-spinner {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.app-loading-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  animation: loadingDot 1.4s ease-in-out infinite;
}
.app-loading-dot:nth-child(2) { animation-delay: 0.2s; background: var(--coral); }
.app-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.app-loading-text {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
  animation: loadingPulse 2s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.app-loading-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: loadingFloat 8s ease-in-out infinite;
}
.app-loading-bg-shape--top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43,184,200,0.35) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.app-loading-bg-shape--bottom {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,138,107,0.3) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}
@keyframes loadingFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* Hide elements during loading */
.site-header-wrap--hidden {
  visibility: hidden;
  opacity: 0;
}
.page-main--hidden {
  display: none;
}

/* ── Auth background (Kidioz style) ─────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  background-attachment: fixed;
  overflow: hidden;
}
.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}
.auth-bg-shape--top {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43,184,200,0.25) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}
.auth-bg-shape--bottom {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,138,107,0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

/* ── Stars canvas (visible on all pages) ───────────────── */
.stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;  /* Above background gradient, below content */
}
.star-particle {
  position: absolute;
  color: #FFD966;
  opacity: 0.6;  /* More visible */
  font-size: 16px;
  animation: floatStar 4s ease-in-out infinite alternate;
  text-shadow: 0 0 8px rgba(255, 217, 102, 0.8);  /* Glow effect */
}
@keyframes floatStar {
  0%   { opacity: 0.1; transform: translateY(0px); }
  100% { opacity: 0.5; transform: translateY(-15px); }
}

/* ── Blazor plumbing ───────────────────────────────────── */
#blazor-error-ui {
  background: lightyellow; bottom: 0;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
  display: none; left: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; }
.blazor-error-boundary { padding: 1rem 1rem 1rem 3.7rem; color: white; background: #b32121; }
.blazor-error-boundary::after { content: "An error has occurred."; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    height: 60px;
    padding: 0 14px;
    gap: 10px;
  }
  .nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .nav-desktop-only { display: none !important; }
  .nav-mobile-only  { display: flex; }
  /* Tighten auth group for mobile bar */
  .nav-actions { gap: 4px; }
  .nav-signin-link { padding: 6px 10px; font-size: 13px; }
  .nav-signup-btn  { padding: 8px 12px; font-size: 12px; box-shadow: none; }
  .nav-cats-inner { padding: 0 12px; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.2s;
  }
  .nav-hamburger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-hamburger--open span:nth-child(2) { opacity: 0; }
  .nav-hamburger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  /* Disable hover dropdown on mobile — use hamburger drawer instead */
  .nav-user-wrap:hover .nav-user-dropdown,
  .nav-user-wrap:focus-within .nav-user-dropdown { display: none; }
  .nav-user-wrap::after { display: none; }
  /* Mobile drawer */
  .nav-mobile-drawer {
    background: rgba(255,255,255,0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(15,42,68,0.07);
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 12px 30px rgba(15,42,68,0.12);
  }
  .nav-mobile-user-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    padding: 8px 10px 12px;
    border-bottom: 1px solid rgba(15,42,68,0.07);
    margin-bottom: 4px;
  }
  .nav-mobile-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .nav-mobile-link:hover,
  .nav-mobile-link:active { background: rgba(43,184,200,0.09); color: var(--teal); }
  .nav-mobile-link--highlight {
    background: var(--teal);
    color: white;
    text-align: center;
    font-weight: 700;
    margin-top: 4px;
    border-radius: 12px;
  }
  .nav-mobile-link--highlight:hover { background: var(--teal-dark); color: white; }
  .nav-mobile-divider {
    border: none;
    border-top: 1px solid rgba(15,42,68,0.07);
    margin: 6px 0;
  }
  .nav-mobile-signout {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--coral);
    text-decoration: none;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .nav-mobile-signout:hover { background: rgba(255,138,107,0.08); }
  .nav-cats { display: none; }
  /* Hero */
  .hero { padding: 10px 10px 16px; }
  .hero-stage { height: 52vw; min-height: 280px; max-height: 380px; border-radius: 18px; }
  .slide-caption {
    padding: 16px 12px 62px;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 75%;
    overflow: visible;
  }
  .hero-caption-stage {
    padding: 0;
    max-width: none;
  }
  .hero-caption-stage .slide-eyebrow { margin-bottom: 5px; }
  .hero-caption-stage .slide-title { margin-bottom: 0; }
  .hero-caption-stage .hero-slide-cta { margin-top: 12px; }
  .slide-title {
    font-size: clamp(14px, 4vw, 20px);
    letter-spacing: -0.2px;
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.25;
  }
  .slide-subtitle { display: none; }
  .slide-eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  .carousel-arrow { display: none; }
  /* CTA — absolute bottom-centre, well below the caption text */
  .hero-fixed-cta {
    left: 12px;
    transform: none;
    bottom: 14px;
    padding: 9px 20px;
    font-size: 12px;
    white-space: nowrap;
    gap: 6px;
  }
  .hero-fixed-cta:hover { transform: translateY(-2px); }
  .carousel-indicators { display: none; }
  /* Sections */
  .age-section, .cats-section, .products-section, .blog-section { padding: 28px 14px; }
  .newsletter { padding: 0; }
  .section-title { font-size: 22px; margin-bottom: 18px; }
  .section-header { margin-bottom: 18px; }
  .section-header .section-title { font-size: 20px; }
  /* Grids on mobile */
  .cats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Product tab row — scroll on mobile */
  .prod-tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .prod-tab-row::-webkit-scrollbar { display: none; }
  .prod-tab { flex-shrink: 0; }
  /* Footer */
  footer.kidioz-footer { padding: 32px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  /* Age filters — horizontal scroll, no wrap */
  .age-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    padding: 4px 2px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .age-filters::-webkit-scrollbar { display: none; }
  .age-btn { flex-shrink: 0; padding: 8px 16px; font-size: 13px; }
  /* Newsletter */
  .nl-content { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .nl-perks { grid-template-columns: 1fr 1fr; gap: 14px; }
  .nl-title { font-size: 36px; letter-spacing: -1px; }
  .nl-sub { font-size: 15px; }
  .nl-form { flex-direction: column; gap: 10px; }
  .nl-input { min-width: 0; width: 100%; }
  .nl-btn { width: 100%; text-align: center; padding: 14px 20px; }
  /* Auth */
  .auth-section { padding: 60px 14px 32px; }
  .auth-card { padding: 32px 20px 28px; border-radius: 24px; }

}

@media (min-width: 640px) {
  .cats-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4,1fr); }
  .cats-grid { grid-template-columns: repeat(5,1fr); }
  .blog-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: auto; }
}

/* ── Auth layout (no nav) ───────────────────────────────── */
.auth-layout-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  animation: authFadeIn 0.5s ease-out both;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card {
  width: 100%;
  max-width: 460px;
  border-radius: 32px;
  padding: 44px 40px 40px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255,255,255,0.75);
  box-shadow: 0 24px 64px rgba(15,42,68,0.14), 0 2px 8px rgba(43,184,200,0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.auth-logo:hover { opacity: 0.8; }
.auth-logo .logo-img { height: 40px; }

.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: #6b7a8d;
  text-align: center;
  margin-bottom: 28px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.auth-optional {
  font-weight: 400;
  color: #9ca3af;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(43,184,200,0.25);
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43,184,200,0.15);
}
.auth-field input::placeholder { color: #b0bac4; }

.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input { padding-right: 44px; }
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}

.auth-validation {
  font-size: 12px;
  color: #e05050;
  margin-top: 2px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.auth-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: stretch;
  margin-bottom: 0;
}

.auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  font-size: 16px;
}
.auth-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.auth-alert--error {
  background: rgba(224,80,80,0.1);
  color: #c0392b;
  border: 1px solid rgba(224,80,80,0.3);
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #6b7a8d;
  margin-top: 20px;
}

.danger-title {
  color: #e53e3e !important;
}

.danger-btn {
  width: 100%;
  padding: 13px;
  background: #e53e3e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.danger-btn:hover:not(:disabled) { background: #c53030; }
.danger-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.danger-checklist {
  background: rgba(229,62,62,0.07);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.danger-check-item {
  font-size: 13.5px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-link-btn:disabled { opacity: 0.5; cursor: default; }

input[autocomplete="one-time-code"] {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* ── Nav auth links ─────────────────────────────────────── */
.nav-auth-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.nav-auth-link:hover { background: rgba(43,184,200,0.1); }

.nav-auth-signup {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
}

.nav-account-wrap {
  position: relative;
}
.nav-account-wrap:hover .nav-account-menu { display: flex; }

.nav-account-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border-radius: 16px;
  padding: 16px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(15,42,68,0.15);
}

.nav-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.nav-account-logout {
  background: none;
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.nav-account-logout:hover { background: var(--coral); color: #fff; }

@media (max-width: 768px) {
  .auth-card { padding: 32px 20px 28px; }
  .auth-row--2col { grid-template-columns: 1fr; }
  .nav-auth-link, .nav-auth-signup { display: none; }
  .nav-account-menu {
    position: static;
    box-shadow: none;
    border-radius: 12px;
    padding: 8px 0 0;
    background: transparent;
    border: none;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   Account Section
   ═══════════════════════════════════════════════════════ */

.account-wrap {
  max-width: 1160px;
  margin: 40px auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.account-sidebar {
  border-radius: 22px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}

.acct-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(43,184,200,0.35);
}

.acct-name {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.acct-email {
  text-align: center;
  font-size: 11px;
  color: #8a9ab0;
  margin-bottom: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.acct-divider {
  border: none;
  border-top: 1px solid rgba(15,42,68,0.08);
  margin: 6px 0 10px;
}

.acct-divider--bottom { margin-top: auto; }

.acct-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.acct-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.acct-nav-link:hover { background: rgba(43,184,200,0.09); color: var(--teal-dark); }
.acct-nav-link:hover svg, .acct-nav-link.active svg { opacity: 1; }
.acct-nav-link.active { background: rgba(43,184,200,0.12); color: var(--teal-dark); font-weight: 600; }

.acct-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #d9534f;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.acct-signout svg { width: 16px; height: 16px; flex-shrink: 0; }
.acct-signout:hover { background: rgba(217,83,79,0.07); }

/* ── Main content area ───────────────────────────────── */
.account-main { min-width: 0; }

.acct-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 22px;
}

.acct-card--danger {
  border: 1px solid rgba(229,62,62,0.25);
  background: rgba(255,255,255,0.92);
}

.acct-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,42,68,0.07);
  display: flex;
  align-items: center;
  gap: 9px;
}
.acct-card-title svg { width: 18px; height: 18px; color: var(--teal); }

/* Dashboard stats */
.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.acct-stat {
  background: rgba(255,255,255,0.88);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}
.acct-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}
.acct-stat-label { font-size: 11.5px; color: #8a9ab0; font-weight: 500; }

.acct-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.acct-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(15,42,68,0.07);
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.acct-quick-link:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(43,184,200,0.15);
  transform: translateY(-2px);
}
.acct-quick-link svg { width: 26px; height: 26px; color: var(--teal); }

/* Skeleton loader */
.acct-skeleton {
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Forms */
.acct-form { display: flex; flex-direction: column; gap: 18px; }
.acct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.acct-field { display: flex; flex-direction: column; gap: 6px; }
.acct-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.acct-field input,
.acct-field select {
  width: 100%;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(15,42,68,0.11);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acct-field .auth-input-wrap {
  width: 100%;
  display: block;
  position: relative;
}
.acct-field input:focus,
.acct-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,184,200,0.11);
}
.acct-field input::placeholder { color: #b0bac4; }
.acct-field input:disabled { opacity: 0.55; cursor: not-allowed; }
.acct-validation { font-size: 12px; color: #d9534f; font-weight: 500; }

.acct-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
}
.acct-alert--error  { background: rgba(217,83,79,0.07); color: #b94040; border: 1px solid rgba(217,83,79,0.18); }
.acct-alert--success { background: rgba(43,184,200,0.07); color: var(--teal-dark); border: 1px solid rgba(43,184,200,0.2); }

.acct-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

/* Addresses */
.acct-address-list { display: flex; flex-direction: column; gap: 14px; }

.acct-address-card {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(15,42,68,0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.acct-address-card--default { border-color: rgba(43,184,200,0.4); background: rgba(43,184,200,0.03); }

.acct-address-info { flex: 1; min-width: 0; }
.acct-address-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(43,184,200,0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 7px;
}
.acct-address-line { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; }

.acct-address-actions { display: flex; gap: 7px; flex-shrink: 0; }

.acct-btn-ghost {
  background: none;
  border: 1.5px solid rgba(15,42,68,0.12);
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.acct-btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.acct-btn-danger {
  background: none;
  border: 1.5px solid rgba(217,83,79,0.18);
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d9534f;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.acct-btn-danger:hover { background: rgba(217,83,79,0.06); }

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 820px) {
  /* Stack sidebar above content */
  .account-wrap {
    grid-template-columns: 1fr;
    padding: 0 0 70px;
    margin: 0;
    gap: 0;
  }

  /* Sidebar → sticky horizontal tab bar (announce ~34px + nav 60px = 94px) */
  .account-sidebar {
    position: sticky;
    top: 94px;
    z-index: 190;
    border-radius: 0;
    padding: 0 8px;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border: none;
    border-bottom: 1px solid rgba(15,42,68,0.09);
    background: rgba(255,255,255,0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .account-sidebar::-webkit-scrollbar { display: none; }

  /* Hide profile block on mobile */
  .acct-avatar, .acct-name, .acct-email,
  .acct-divider, .acct-divider--bottom { display: none; }

  /* Nav links → compact underline tabs */
  .acct-nav-link {
    flex-shrink: 0;
    flex-direction: row;
    padding: 14px 14px;
    border-radius: 0;
    font-size: 13px;
    gap: 6px;
    color: #7a8899;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    align-items: center;
  }
  .acct-nav-link:hover  { background: none; color: var(--navy); }
  .acct-nav-link.active {
    background: none;
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
    font-weight: 600;
  }
  .acct-nav-link svg { opacity: 0.6; }
  .acct-nav-link.active svg { opacity: 1; }

  /* Sign out → compact tab */
  .acct-signout {
    flex-shrink: 0;
    padding: 14px 14px;
    border-radius: 0;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Main content with proper padding */
  .account-main { padding: 20px 16px 0; }

  /* Cards */
  .acct-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  .acct-card-title { font-size: 15px; margin-bottom: 16px; padding-bottom: 12px; }

  /* Forms */
  .acct-form-row { grid-template-columns: 1fr; }
  .acct-form { gap: 14px; }

  /* Stats — 2×2 grid */
  .acct-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acct-stat { padding: 16px 12px; }
  .acct-stat-value { font-size: 22px; }

  /* Quick links — 2 columns */
  .acct-quick-links { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acct-quick-link { padding: 16px 10px; font-size: 12px; }
  .acct-quick-link svg { width: 22px; height: 22px; }

  /* Address cards — stack vertically */
  .acct-address-card { flex-direction: column; gap: 12px; }
  .acct-address-actions { justify-content: flex-start; flex-wrap: wrap; }

  /* Form actions — wrap on small screens */
  .acct-form-actions { flex-wrap: wrap; }
}

/* ── Extra-small phones (≤ 420px) ───────────────────────── */
@media (max-width: 420px) {
  .nav-inner { padding: 0 10px; gap: 8px; }
  .nav-logo .logo-img { height: 28px; }
  .nav-icon-btn { width: 34px; height: 34px; }
  .nav-signup-btn { padding: 7px 10px; font-size: 11px; }

  .hero { padding: 8px 8px 14px; }
  .hero-stage { height: 54vw; min-height: 240px; border-radius: 14px; }
  .slide-caption { padding: 10px 10px 54px; overflow: hidden; }
  .slide-title {
    font-size: clamp(13px, 4vw, 17px);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .slide-eyebrow { display: none; }
  .hero-fixed-cta { font-size: 12px; padding: 9px 16px; bottom: 14px; }
  .carousel-indicators { bottom: 50px; }
  .carousel-arrow { width: 28px; height: 28px; font-size: 13px; }

  .auth-card { padding: 28px 16px 24px; border-radius: 20px; }
  .auth-title { font-size: 22px; }

  .nl-content { padding: 32px 14px; }
  .nl-title { font-size: 30px; }
  .nl-perks { grid-template-columns: 1fr; }

  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-quick-links { grid-template-columns: 1fr 1fr; }
  .account-main { padding: 14px 12px 0; }
  .acct-card { padding: 16px 13px; }

  .announce-bar { font-size: 11px; padding: 7px 14px; }
  .section-title { font-size: 20px; }
}
