/* GoatSteam — Black, white + #d72d27 only */
:root {
  --accent: #d72d27;
  --accent-muted: rgba(215, 45, 39, 0.75);
  --text: #f5f5f5;
  --text-muted: #f1f1f1;
  --border: rgba(255, 255, 255, 0.08);
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.06);
  --ring: rgba(215, 45, 39, 0.35);
  --gradient-1: #000000;
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Light theme overrides */
:root[data-theme="light"] {
  --accent: #b32420;
  --accent-muted: #8b1e1a;
  --text: #111111;
  --text-muted: #444444;
  --border: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --ring: rgba(215, 45, 39, 0.4);
  --gradient-1: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] a {
  color: #b32420;
}
:root[data-theme="light"] a:hover {
  color: #8b1e1a;
}

:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .auth-submit,
:root[data-theme="light"] .header-btn.btn-primary {
  color: #ffffff !important;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--gradient-1);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 0;
  margin-top: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-muted); }

/* Better focus visibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Toasts */
#gs-toasts {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 99999;
  display: grid;
  gap: 0.6rem;
  max-width: min(420px, calc(100vw - 1.8rem));
  pointer-events: none;
}
.gs-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.gs-toast.is-in { transform: translateY(0); opacity: 1; }
.gs-toast.is-leaving { transform: translateY(-6px); opacity: 0; }
.gs-toast-text { color: #f1f1f1; font-size: 0.95rem; line-height: 1.35; }
.gs-toast-close {
  background: transparent;
  border: 0;
  color: #f1f1f1;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}
.gs-toast-close:hover { color: #fff; }
.gs-toast--success { border-color: rgba(255, 255, 255, 0.25); }
.gs-toast--error { border-color: rgba(215, 45, 39, 0.5); }
.gs-toast--info { border-color: rgba(255,255,255,0.12); }
@media (max-width: 520px) {
  #gs-toasts { left: 0.9rem; right: 0.9rem; max-width: calc(100vw - 1.8rem); }
}

/* Confirm modal */
body.gs-modal-open { overflow: hidden; }
#gs-confirm {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
}
#gs-confirm.is-open { display: block; }
.gs-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gs-confirm-dialog {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 2rem));
  border-radius: 16px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 1rem;
}
.gs-confirm-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
  margin-bottom: 0.35rem;
}
.gs-confirm-message { color: #f1f1f1; margin-bottom: 0.9rem; }
.gs-confirm-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }

/* Header — Split bar (logo center, nav left/right) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-bar .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: 3.5rem;
}
.header-burger {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.header-burger:hover { background: rgba(255,255,255,0.1); }
.header-burger-lines {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  position: relative;
  display: block;
}
.header-burger-lines::before,
.header-burger-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.header-burger-lines::before { top: -6px; }
.header-burger-lines::after { top: 6px; }
.header-menu-open .header-burger-lines { background: transparent; }
.header-menu-open .header-burger-lines::before { top: 0; transform: rotate(45deg); }
.header-menu-open .header-burger-lines::after { top: 0; transform: rotate(-45deg); }

.header-menus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.75rem;
  flex-wrap: wrap;
}
.header-nav-left { flex: 1; justify-content: flex-start; }
.header-nav-right { flex: 1; justify-content: flex-end; }
.header-logo {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
  padding: 0.25rem 0.5rem;
}
.header-logo:hover { opacity: 0.9; color: #fff; }
.header-logo span { color: #f1f1f1; font-weight: 700; }
.header-logo-img {
  display: block;
  max-height: 2.25rem;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
.header-logo-img--light { display: none !important; }
:root[data-theme="light"] .header-logo-img--dark { display: none !important; }
:root[data-theme="light"] .header-logo-img--light { display: block !important; }
.header-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f1f1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.header-link-dropdown {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.header-btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-left: 0.25rem;
}
.header-btn:hover { transform: translateY(-1px); }
.nav-chevron {
  font-size: 0.6em;
  margin-left: 0.25rem;
  opacity: 0.8;
  transition: transform 0.2s var(--ease);
}
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* User menu: show Logout on hover (no button, link is Dashboard) */
.nav-dropdown-user:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-user .nav-dropdown-menu {
  left: auto;
  right: 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f1f1f1;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s var(--ease);
}
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  color: #f1f1f1;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}
.header-cart:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.header-cart-icon { display: block; width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.header-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: #d72d27;
  border-radius: 999px;
}
.header-theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: #f1f1f1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.35rem;
}
:root[data-theme="light"] .header-theme-toggle {
  border-color: rgba(15, 23, 42, 0.15);
  color: #111827;
  background: #ffffff;
}

/* Light theme: header bar and nav must be visible (light bg, dark text) */
:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
:root[data-theme="light"] .header-logo,
:root[data-theme="light"] .header-logo:hover {
  color: #111827;
}
:root[data-theme="light"] .header-logo span {
  color: #111827;
}
:root[data-theme="light"] .header-link {
  color: #374151;
}
:root[data-theme="light"] .header-link:hover,
:root[data-theme="light"] .header-link.active {
  color: #111827;
  background: rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .header-link-dropdown {
  color: inherit;
}
:root[data-theme="light"] .header-btn.btn-secondary {
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.15);
}
:root[data-theme="light"] .header-btn.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #111827;
}
:root[data-theme="light"] .header-cart {
  color: #374151;
}
:root[data-theme="light"] .header-cart:hover {
  color: #111827;
  background: rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .nav-chevron {
  color: inherit;
}
:root[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .nav-dropdown-menu a {
  color: #374151;
}
:root[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}
:root[data-theme="light"] .header-burger {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .header-burger:hover {
  background: rgba(15, 23, 42, 0.1);
}
:root[data-theme="light"] .header-burger-lines,
:root[data-theme="light"] .header-burger-lines::before,
:root[data-theme="light"] .header-burger-lines::after {
  background: #374151;
}

.header-theme-toggle-icon {
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .site-header-bar .header-inner { flex-wrap: wrap; padding: 0.6rem 1rem; }
  .header-burger { display: inline-flex; }
  .header-logo { order: 0; margin: 0 auto; }
  .header-menus {
    order: 10;
    width: 100%;
    flex: 1 1 100%;
    display: none;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  :root[data-theme="light"] .header-menus {
    border-top-color: rgba(15, 23, 42, 0.12);
  }
  .header-menu-open .header-menus { display: flex; }
  .header-nav-left, .header-nav-right { justify-content: center; }
  .header-nav-right { gap: 0.25rem; }
  .header-link { font-size: 0.8rem; padding: 0.4rem 0.6rem; justify-content: center; }
  .nav-dropdown-menu { left: 50%; transform: translate(-50%, -4px); }
  .nav-dropdown.is-open .nav-dropdown-menu { transform: translate(-50%, 0); }
}
@media (max-width: 600px) {
  .header-nav { gap: 0.2rem; }
  .header-link { padding: 0.35rem 0.5rem; font-size: 0.75rem; }
}

/* Tubelight navbar — fixed pill, lamp active state, hover dropdowns */
.tubelight-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0 0 1rem;
  pointer-events: none;
}
.tubelight-nav .tubelight-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem 0.5rem;
  background: rgba(18, 18, 18, 0.97);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.25rem 0.25rem;
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: min(100vw - 2rem, 56rem);
  flex-wrap: wrap;
  justify-content: center;
}
.tubelight-logo {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}
.tubelight-logo:hover { opacity: 0.9; color: var(--text); }
.tubelight-logo-img {
  display: block;
  max-height: 2rem;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tubelight-logo-img--light { display: none !important; }
:root[data-theme="light"] .tubelight-logo-img--dark { display: none !important; }
:root[data-theme="light"] .tubelight-logo-img--light { display: block !important; }
.tubelight-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tubelight-logo-text span { font-weight: 700; }
.tubelight-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tubelight-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  line-height: 1;
}
.tubelight-item:hover { color: var(--accent); }
.tubelight-item.active { color: var(--accent); }
.tubelight-item.active .tubelight-lamp { opacity: 1; }
.tubelight-label { display: inline; }
@media (min-width: 768px) {
  .tubelight-item { padding: 0.5rem 1.25rem; }
}
.tubelight-lamp {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.2s var(--ease);
}
.tubelight-lamp-bar {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 4px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.tubelight-lamp-glow {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.75rem;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.25;
}
.tubelight-chevron {
  display: none;
  font-size: 0.6em;
  margin-left: 0.2rem;
  opacity: 0.8;
}
@media (min-width: 768px) {
  .tubelight-chevron { display: inline; }
}
.tubelight-trigger { width: auto; }
.tubelight-dropdown {
  position: relative;
}
.tubelight-dropdown .tubelight-panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 12rem;
  padding: 0.5rem 0;
  background: rgba(22, 22, 24, 0.97);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.tubelight-panel--cards.tubelight-panel {
  min-width: 42rem;
  padding: 0;
}
.tubelight-dropdown.is-open .tubelight-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tubelight-panel-inner {
  padding: 0.25rem 0;
}
.tubelight-panel-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s var(--ease);
  border-radius: 0.5rem;
  margin: 0 0.25rem;
}
.tubelight-panel-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
:root[data-theme="light"] .tubelight-panel-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--accent);
}
.tubelight-panel--cards .tubelight-panel-inner {
  padding: 1.25rem 1rem;
}
.tubelight-panel-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  min-width: 42rem;
}
.tubelight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s var(--ease);
  text-align: left;
  min-width: 0;
}
.tubelight-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] .tubelight-card:hover {
  background: rgba(15, 23, 42, 0.05);
}
.tubelight-card img {
  width: 5.5rem;
  min-width: 5.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.tubelight-card > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tubelight-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}
.tubelight-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  max-width: none;
}
.tubelight-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border);
  padding-left: 0.5rem;
}
.tubelight-item--sm { padding: 0.4rem 0.65rem; }
.tubelight-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.tubelight-btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.tubelight-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
:root[data-theme="light"] .tubelight-btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.tubelight-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tubelight-cart:hover { color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.tubelight-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 3px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  color: #fff;
  background: #d72d27;
  border-radius: 999px;
}
/* Hamburger: hidden on desktop, shown on mobile */
.tubelight-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.25rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tubelight-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.tubelight-mobile-toggle[aria-expanded="true"] .tubelight-mobile-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.tubelight-mobile-toggle[aria-expanded="true"] .tubelight-mobile-toggle-bar:nth-child(2) {
  opacity: 0;
}
.tubelight-mobile-toggle[aria-expanded="true"] .tubelight-mobile-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.tubelight-mobile-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* Mobile menu popup overlay */
.mobile-menu-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s var(--ease), opacity 0.25s var(--ease);
}
.mobile-menu-popup.is-open {
  visibility: visible;
  opacity: 1;
}
.mobile-menu-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.mobile-menu-popup-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 320px);
  max-width: 100%;
  background: rgba(18, 18, 18, 0.98);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu-popup.is-open .mobile-menu-popup-panel {
  transform: translateX(0);
}
.mobile-menu-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-popup-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.mobile-menu-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.mobile-menu-popup-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  border-radius: 0;
}
.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}
.mobile-menu-link.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-menu-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: auto;
  transition: transform 0.2s var(--ease);
}
.mobile-menu-group.is-open .mobile-menu-trigger::after {
  transform: rotate(180deg);
}
.mobile-menu-sublinks {
  display: none;
  flex-direction: column;
  padding: 0 0 0.5rem 0;
  padding-left: 1.25rem;
}
.mobile-menu-group.is-open .mobile-menu-sublinks {
  display: flex;
}
.mobile-menu-sublink {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
  border-radius: 0.5rem;
}
.mobile-menu-sublink:hover {
  color: var(--accent);
}
.mobile-menu-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  margin-left: 0.35rem;
}
:root[data-theme="light"] .mobile-menu-popup-panel {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.1);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .mobile-menu-link { color: var(--text); }
:root[data-theme="light"] .mobile-menu-link:hover,
:root[data-theme="light"] .mobile-menu-link.active { color: var(--accent); }
:root[data-theme="light"] .mobile-menu-link:hover { background: rgba(15, 23, 42, 0.06); }
:root[data-theme="light"] .mobile-menu-link.active { background: rgba(15, 23, 42, 0.08); }
:root[data-theme="light"] .mobile-menu-sublink { color: var(--text-muted); }
:root[data-theme="light"] .mobile-menu-sublink:hover { color: var(--accent); }
body.mobile-menu-open { overflow: hidden; }

/* Tubelight: desktop top; mobile = compact header + hamburger + popup, bottom recap */
@media (min-width: 768px) {
  .tubelight-nav { top: 25px; padding: 0 0 1rem; }
  main { padding-top: 0; }
  main > *:first-child:not(.hero-lamp):not(.hero-lamp-react) { padding-top: 6rem; }
  .mobile-bottom-recap { display: none !important; }
  .mobile-menu-popup { display: none !important; }
}
@media (max-width: 767px) {
  .tubelight-mobile-toggle { display: flex; }
  .tubelight-links { display: none !important; }
  .tubelight-nav {
    top: 0;
    bottom: auto;
    padding: 0.5rem 0.5rem 0.75rem;
    margin-top: 0;
  }
  .tubelight-pill {
    max-width: calc(100vw - 1rem);
    padding: 0.4rem 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.25rem;
  }
  .tubelight-logo { margin-right: 0; }
  .tubelight-logo-img { max-height: 1.75rem; max-width: 88px; }
  .tubelight-actions { border-left: none; padding-left: 0; margin-left: 0; }
  .tubelight-dropdown .tubelight-panel {
    left: 50%;
    right: auto;
    max-width: calc(100vw - 2rem);
    top: calc(100% + 0.5rem);
    bottom: auto;
    transform: translateX(-50%) translateY(0);
  }
  .tubelight-dropdown.is-open .tubelight-panel {
    transform: translateX(-50%) translateY(0);
  }
  .tubelight-panel-cards { grid-template-columns: 1fr; min-width: 14rem; gap: 0.75rem; }
  .tubelight-panel--cards .tubelight-panel-inner { padding: 1rem 0.75rem; }
  .tubelight-card { padding: 0.875rem; gap: 0.875rem; }
  .tubelight-card-desc { max-width: none; }
  main { padding-top: 4.5rem; padding-bottom: 4.25rem; }
}

/* Mobile bottom recap: pages only, no logo, no cart */
.mobile-bottom-recap {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 199;
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(18, 18, 18, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  align-items: center;
}
@media (max-width: 767px) {
  .mobile-bottom-recap {
    display: flex;
  }
}
.mobile-recap-link {
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.mobile-recap-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-recap-link.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .mobile-bottom-recap {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .mobile-recap-link { color: var(--text-muted); }
:root[data-theme="light"] .mobile-recap-link:hover,
:root[data-theme="light"] .mobile-recap-link.active { color: var(--accent); }
:root[data-theme="light"] .mobile-recap-link:hover { background: rgba(15, 23, 42, 0.06); }
:root[data-theme="light"] .mobile-recap-link.active { background: rgba(15, 23, 42, 0.08); }
:root[data-theme="light"] .tubelight-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .tubelight-item { color: var(--text-muted); }
:root[data-theme="light"] .tubelight-item:hover,
:root[data-theme="light"] .tubelight-item.active { color: var(--accent); }
:root[data-theme="light"] .tubelight-lamp-bar,
:root[data-theme="light"] .tubelight-lamp-glow { background: var(--accent); }
:root[data-theme="light"] .tubelight-panel {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .tubelight-cart { color: var(--text-muted); }
:root[data-theme="light"] .tubelight-cart:hover { color: var(--accent); background: rgba(15, 23, 42, 0.06); }

/* Legacy pill header (kept for reference, not used) */
.site-header-pill .nav-pill-wrap { display: flex; justify-content: center; padding-top: 0.5rem; }
.nav-pill { display: flex; align-items: center; gap: 0.25rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(12px); padding: 0.5rem; border-radius: 9999px; flex-wrap: wrap; justify-content: center; max-width: min(100%, 42rem); }
.nav-pill-logo, .nav-pill-item { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600; color: #f1f1f1; }
.nav-pill-logo:hover, .nav-pill-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-pill-divider { width: 1px; height: 1.25rem; background: rgba(255,255,255,0.15); margin: 0 0.15rem; }
.nav-pill-cta-primary { background: rgba(255,255,255,0.95); color: #000 !important; }
@keyframes nav-pill-glow { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes nav-pill-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Member area header (classic layout with .inner) */
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.site-header .logo span { color: #f1f1f1; font-weight: 700; }
.site-header .main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.site-header .main-nav a {
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
.site-header .nav-cta { display: flex; gap: 0.5rem; align-items: center; }
.site-header .nav-welcome {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
  margin-right: 0.25rem;
}
.site-header .nav-cart { position: relative; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  border: none;
  cursor: pointer;
  text-align: center;
  color: var(--text);
}
.btn:visited { color: var(--text); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15);
}
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25); }
.admin-body .btn-primary,
.admin-body .btn.btn-primary {
  color: #ffffff !important;
  background: var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Main content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  width: 100%;
}
/* Public pages: consistent spacing between blocks */
main > :where(* + *) { margin-top: 1.25rem; }
main > :where(.page-title, .page-subtitle, .gs-breadcrumb) { margin-top: 0; }
main > :where(.section, .page-intro) { margin-top: 0; }
main :where(h1, h2, h3, h4) { line-height: 1.2; }
main :where(h2, h3) { margin-top: 2rem; }
main :where(h2 + *, h3 + *) { margin-top: 0.85rem; }
main :where(p) { margin: 0.75rem 0; }
main :where(ul, ol) { margin: 0.75rem 0 0.75rem 1.25rem; }
main :where(li + li) { margin-top: 0.35rem; }
main :where(hr) { border: 0; border-top: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; }
@media (min-width: 768px) {
  main { padding: 0 2rem 3rem; }
}
@media (max-width: 600px) {
  main { padding: 0 1rem 1.6rem; }
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
@media (max-width: 600px) {
  .page-title { margin-bottom: 0.35rem; }
  .page-subtitle { margin-bottom: 1.5rem; font-size: 1rem; }
}

/* Breadcrumbs — hidden on PC (desktop), shown only on small screens if desired */
.gs-breadcrumb,
main .gs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  main .gs-breadcrumb {
    display: none !important;
  }
}
.gs-breadcrumb a { color: var(--text-muted); }
.gs-breadcrumb a:hover { color: #fff; }
.gs-breadcrumb .sep { opacity: 0.55; }
@media (max-width: 480px) {
  .gs-breadcrumb { gap: 0.25rem; font-size: 0.86rem; }
}

/* Breadcrumb inside hero (lamp) — hidden */
.hero-lamp .lamp-breadcrumb { display: none; }

/* Footer — hover layout + GOATS effect */
.site-footer {
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.site-footer--hover {
  background: rgba(15, 15, 17, 0.95);
  border-top: 1px solid var(--border);
  border-radius: 1.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(125% 125% at 50% 10%, rgba(15, 15, 17, 0.4) 50%, rgba(215, 45, 39, 0.15) 100%);
}
.site-footer .footer-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem 3rem; }
}
.footer-brand .footer-brand-name {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-brand .footer-brand-name:hover { color: var(--accent); }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 20rem;
}
.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.footer-newsletter-input {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 12rem;
}
.footer-newsletter-input::placeholder { color: var(--text-muted); }
.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}
.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.footer-links-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li,
.footer-contact-list li { margin-bottom: 0.4rem; }
.footer-links-list a,
.footer-contact-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links-list a:hover,
.footer-contact-list a:hover { color: var(--accent); }
.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.site-footer .footer-theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.site-footer .footer-theme-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}
.site-footer .footer-theme-toggle-icon { font-size: 0.95rem; }
:root[data-theme="light"] .site-footer .footer-theme-toggle {
  border-color: rgba(15, 23, 42, 0.2);
  color: #374151;
}
:root[data-theme="light"] .site-footer .footer-theme-toggle:hover {
  border-color: rgba(15, 23, 42, 0.35);
  color: #111827;
}
:root[data-theme="light"] .site-footer--hover {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .footer-gradient {
  background: radial-gradient(125% 125% at 50% 10%, rgba(248, 250, 252, 0.5) 50%, rgba(215, 45, 39, 0.08) 100%);
}
.copyright { color: var(--text-muted); font-size: 0.9rem; }

/* GOATS background — ~300px tall, clear top gap; light by default, dark on hover */
.footer-goats-bg {
  position: absolute;
  top: 3rem;
  left: 15%;
  right: 15%;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}
.footer-hover-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.footer-hover-svg-wrap {
  width: 100%;
  height: 100%;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-hover-svg {
  width: 100%;
  height: 100%;
  max-height: 300px;
  overflow: visible;
  object-fit: contain;
}
.footer-hover-svg text {
  font-family: var(--font, 'Outfit'), system-ui, sans-serif;
  font-size: clamp(8rem, 20vmin, 300px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
@keyframes footer-goats-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.65; }
}
@keyframes footer-goats-gradient-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.5; }
}
/* Default: light stroke; hover: dark stroke (opposite of before) */
.footer-goats-stroke {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.5;
  opacity: 1;
  animation: footer-goats-pulse 3.5s ease-in-out infinite;
  transition: stroke 0.3s, opacity 0.3s;
}
.site-footer:hover .footer-goats-stroke {
  stroke: rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  animation: none;
}
.footer-goats-gradient {
  stroke-width: 0.5;
  opacity: 0.5;
  animation: footer-goats-gradient-pulse 4s ease-in-out infinite;
  transition: opacity 0.3s;
}
.site-footer:hover .footer-goats-gradient {
  opacity: 0.15;
  animation: none;
}
:root[data-theme="light"] .footer-goats-stroke {
  stroke: rgba(0, 0, 0, 0.12);
}
:root[data-theme="light"] .site-footer:hover .footer-goats-stroke {
  stroke: rgba(0, 0, 0, 0.45);
}

/* Hero — Animated Marquee (hero-3 style), full-width background */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Break out of main's max-width so hero background is full viewport width */
main > .hero,
main > .hero-about {
  width: 100vw;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.hero-marquee {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 12rem;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}
.hero-tagline {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero-title-line {
  display: block;
}
.hero-desc {
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-buttons { gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; }
}
.hero-cta {
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.2); }
.hero-buttons .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-buttons .btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-testimonial {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-testimonial { margin-bottom: 4.5rem; }
}
.hero-testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}
.hero-testimonial-author {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Light mode: hero keeps a dark bg image, so keep hero text and buttons light for contrast */
:root[data-theme="light"] .hero .hero-tagline,
:root[data-theme="light"] .hero .hero-title,
:root[data-theme="light"] .hero .hero-desc,
:root[data-theme="light"] .hero .hero-testimonial-quote,
:root[data-theme="light"] .hero .hero-testimonial-author {
  color: #fff !important;
}
:root[data-theme="light"] .hero .hero-desc,
:root[data-theme="light"] .hero .hero-tagline,
:root[data-theme="light"] .hero .hero-testimonial-quote,
:root[data-theme="light"] .hero .hero-testimonial-author {
  opacity: 0.95;
}
:root[data-theme="light"] .hero .hero-tagline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .hero .hero-buttons .btn-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
:root[data-theme="light"] .hero .hero-buttons .btn-secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .hero .hero-testimonial {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Blog post reading time */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.post-reading-time { color: var(--text-muted); font-size: 0.95em; }

/* Animated image marquee at bottom */
.hero-marquee-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  min-height: 12rem;
  max-height: 18rem;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-marquee-wrap {
    height: 40%;
    min-height: 14rem;
  }
}
.hero-marquee-track {
  display: flex;
  gap: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: hero-marquee 45s linear infinite;
}
.hero-marquee-item {
  flex-shrink: 0;
  width: 10rem;
  aspect-ratio: 3 / 4;
  transform: rotate(var(--rotate, 0deg));
}
@media (min-width: 768px) {
  .hero-marquee-item {
    width: 12rem;
  }
}
.hero-marquee-item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hero-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Simple lamp hero (no effect): other pages — 45vh, title + subtitle only */
.hero-lamp {
  --lamp-bg: #0a0a0a;
  position: relative;
  background: var(--lamp-bg);
  height: 45vh;
  min-height: 45vh;
  max-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-lamp .lamp-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-lamp .lamp-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: 56rem;
  width: 100%;
  box-sizing: border-box;
}
.hero-lamp .lamp-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  background: linear-gradient(to bottom right, #d72d27, #8b1e1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lamp .lamp-subtitle {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: #f1f1f1;
  line-height: 1.5;
}
.hero-lamp .lamp-content .hero-title { margin-top: 0.5rem; }
.hero-lamp .lamp-slot-after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

main > .hero-lamp + * { margin-top: 1.5rem; }

/* ========== About page only: 45vh lamp hero — full bg image, overlay, subtle lamp ========== */
.hero-lamp-react {
  --hero-lamp-about-bg: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&auto=format&fit=crop&q=80');
  --lamp-react-bg: rgba(0, 0, 0, 0.85);
  --lamp-react-accent: #d72d27;
  --lamp-react-accent-light: #e85c57;
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 45vh;
  max-height: 45vh;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-lamp-react .lamp-react-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-lamp-about-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hero-lamp-react .lamp-react-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}
.hero-lamp-react .lamp-react-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-lamp-react .lamp-react-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scaleY(0.55);
  transform-origin: top center;
  isolation: isolate;
  z-index: 0;
  pointer-events: none;
}
/* Lamp effect: scaled to fit 45vh, subtle and decorative */
.hero-lamp-react .lamp-react-beam {
  position: absolute;
  top: 0;
  height: 12rem;
  overflow: visible;
  opacity: 0.35;
  animation: lamp-react-beam-in 0.8s ease-in-out 0.3s forwards;
}
.hero-lamp-react .lamp-react-beam--left {
  right: 50%;
  width: 15rem;
  background: conic-gradient(from 70deg at center top, var(--lamp-react-accent) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to top, transparent, black 25%), linear-gradient(to right, transparent, black 35%);
  mask-image: linear-gradient(to top, transparent, black 25%), linear-gradient(to right, transparent, black 35%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-lamp-react .lamp-react-beam--left::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: var(--lamp-react-bg);
  -webkit-mask-image: linear-gradient(to top, white, transparent);
  mask-image: linear-gradient(to top, white, transparent);
  z-index: 20;
}
.hero-lamp-react .lamp-react-beam--right {
  left: 50%;
  width: 15rem;
  background: conic-gradient(from 290deg at center top, transparent 0%, var(--lamp-react-accent) 65%);
  -webkit-mask-image: linear-gradient(to top, transparent, black 25%), linear-gradient(to left, transparent, black 35%);
  mask-image: linear-gradient(to top, transparent, black 25%), linear-gradient(to left, transparent, black 35%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-lamp-react .lamp-react-beam--right::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: var(--lamp-react-bg);
  -webkit-mask-image: linear-gradient(to top, white, transparent);
  mask-image: linear-gradient(to top, white, transparent);
  z-index: 20;
}
.hero-lamp-react .lamp-react-blur {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12rem;
  transform: translateY(3rem) scaleX(1.5);
  background: transparent;
  filter: blur(2rem);
  z-index: 1;
  pointer-events: none;
}
.hero-lamp-react .lamp-react-backdrop {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12rem;
  background: transparent;
  opacity: 0.05;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}
.hero-lamp-react .lamp-react-orb--center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28rem;
  height: 9rem;
  border-radius: 9999px;
  background: var(--lamp-react-accent);
  opacity: 0.35;
  filter: blur(3rem);
  z-index: 2;
}
.hero-lamp-react .lamp-react-orb--glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8rem;
  height: 9rem;
  transform: translate(-50%, calc(-50% - 1.5rem));
  border-radius: 9999px;
  background: var(--lamp-react-accent-light);
  opacity: 0.5;
  filter: blur(2rem);
  z-index: 3;
  animation: lamp-react-orb-in 0.8s ease-in-out 0.3s forwards;
}
/* The bar — thin line at top; soft glow, decorative */
.hero-lamp-react .lamp-react-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15rem;
  height: 2px;
  transform: translate(-50%, 2rem);
  background: var(--lamp-react-accent-light);
  opacity: 0.7;
  z-index: 5;
  animation: lamp-react-line-in 0.8s ease-in-out 0.3s forwards;
}
.hero-lamp-react .lamp-react-shade {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 11rem;
  transform: translateY(calc(-50% + 1.5rem));
  background: transparent;
  z-index: 4;
  pointer-events: none;
}
@keyframes lamp-react-beam-in {
  from { opacity: 0.5; width: 15rem; }
  to { opacity: 1; width: 30rem; }
}
@keyframes lamp-react-orb-in {
  from { width: 8rem; }
  to { width: 16rem; }
}
@keyframes lamp-react-line-in {
  from { width: 15rem; }
  to { width: 30rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-lamp-react .lamp-react-beam,
  .hero-lamp-react .lamp-react-orb--glow,
  .hero-lamp-react .lamp-react-line { animation: none; }
  .hero-lamp-react .lamp-react-beam { width: 30rem !important; opacity: 1; }
  .hero-lamp-react .lamp-react-orb--glow { width: 16rem; }
  .hero-lamp-react .lamp-react-line { width: 30rem; }
}
.hero-lamp-react .lamp-react-content {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 150px 1.25rem 1.5rem;
  max-width: 56rem;
  width: 100%;
  box-sizing: border-box;
}
.hero-lamp-react .lamp-react-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
.hero-lamp-react .lamp-react-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #ffffff !important;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .hero-lamp-react .lamp-react-effect { transform: scaleY(0.5); }
  .hero-lamp-react .lamp-react-content { padding: 120px 1rem 1rem; }
  .hero-lamp-react .lamp-react-title { font-size: clamp(1.35rem, 5vw, 2rem); }
  .hero-lamp-react .lamp-react-subtitle { font-size: 0.9rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-lamp-react .lamp-react-effect { transform: scaleY(0.52); }
  .hero-lamp-react .lamp-react-content { padding: 140px 1.25rem 1.5rem; }
}

main > .hero-lamp-react + * { margin-top: 1.5rem; }
main > .hero + * { margin-top: 2rem; }
@media (min-width: 768px) {
  main > .hero + * { margin-top: 2.5rem; }
}

/* Layout grid — What We Offer (expand-on-click) */
.section-offer { padding-bottom: 0.5rem; }
/* Why GoatSteam? — bigger title, centred */
.section-why .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-why .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.section-offer .section-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .section-offer .section-title { font-size: 3rem; }
}
.section-offer .section-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .section-offer .section-subtitle { font-size: 1.25rem; }
}
.card-grid .card .exercise-card-media { height: 160px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-grid .card .exercise-card-media iframe, .card-grid .card .exercise-card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-grid .card .exercise-card-placeholder { font-size: 3rem; opacity: 0.85; }
.layout-grid {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.layout-grid-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 40;
  pointer-events: none;
  transition: background 0.3s ease;
}
.layout-grid-backdrop--open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}
.layout-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 20rem;
}
@media (min-width: 768px) {
  .layout-grid-inner { gap: 2rem; }
}
@media (max-width: 767px) {
  .layout-grid-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.layout-card {
  position: relative;
  min-height: 14rem;
  cursor: pointer;
}
.layout-card-span-1 { grid-column: span 1; }
.layout-card-span-2 { grid-column: span 2; }
@media (max-width: 767px) {
  .layout-card-span-1,
  .layout-card-span-2 { grid-column: span 1; }
}
.layout-card-tile {
  position: relative;
  height: 100%;
  min-height: 14rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Spotlight/glow card effect (What We Offer) */
.layout-card-tile.glow-card {
  --radius: 14;
  --border: 3;
  --size: 200;
  --border-size: calc(var(--border, 2) * 1px);
  --spotlight-size: calc(var(--size, 150) * 1px);
  --x: 0;
  --y: 0;
  --xp: 0.5;
  --yp: 0.5;
  --base: 220;
  --spread: 200;
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
  --backdrop: rgba(255, 255, 255, 0.06);
  --backup-border: var(--backdrop);
  background-color: var(--backdrop);
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue, 210) 100% 70% / 0.12),
    transparent
  );
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  border: var(--border-size) solid var(--backup-border);
  touch-action: none;
}
.layout-card-tile.glow-card[data-glow-color="blue"] { --base: 0; --spread: 25; }
.layout-card-tile.glow-card[data-glow-color="purple"] { --base: 0; --spread: 20; }
.layout-card-tile.glow-card[data-glow-color="green"] { --base: 2; --spread: 15; }
.layout-card-tile.glow-card[data-glow-color="orange"] { --base: 0; --spread: 30; }
.layout-card-tile.glow-card[data-glow-color="red"] { --base: 0; --spread: 25; }
.layout-card-tile.glow-card::before,
.layout-card-tile.glow-card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask-clip: padding-box, border-box;
  mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  z-index: 1;
}
.layout-card-tile.glow-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue, 210) 100% 50% / 0.9),
    transparent 100%
  );
  filter: brightness(2);
}
.layout-card-tile.glow-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(0 100% 100% / 0.8),
    transparent 100%
  );
}
.glow-card-inner {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 1px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: blur(12px);
  background: transparent;
}
.layout-card-tile.glow-card {
  overflow: visible;
}
.layout-card-tile.glow-card .layout-card-img {
  border-radius: calc(var(--radius) * 1px);
  z-index: 0;
}
.layout-card-tile.glow-card .layout-card-overlay {
  border-radius: calc(var(--radius) * 1px);
  z-index: 1;
}
.layout-card-tile.glow-card .layout-card-content {
  border-radius: calc(var(--radius) * 1px);
  z-index: 2;
}

.layout-card:not(.layout-card--selected):hover .layout-card-tile {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.layout-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.layout-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.4) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.layout-card--selected .layout-card-overlay {
  background: rgba(0,0,0,0.6);
}
.layout-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem;
  z-index: 2;
  transform: translateY(0);
  opacity: 1;
}
.layout-card--selected .layout-card-content {
  padding: 2rem 1.5rem;
}
.layout-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.layout-card--selected .layout-card-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.layout-card-desc {
  font-size: 0.9rem;
  color: #f1f1f1;
  margin-bottom: 0.75rem;
  max-width: 36rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.layout-card--selected .layout-card-desc {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.layout-card-cta {
  display: inline-block;
  margin-top: 0.25rem;
  color: #0a0a0a !important;
  background: #ffffff !important;
  border-color: transparent;
}
.layout-card-cta:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0a0a0a !important;
}
/* Light mode: card CTAs need white text on accent for visibility */
:root[data-theme="light"] .layout-card-cta {
  color: #ffffff !important;
  background: var(--accent) !important;
}
:root[data-theme="light"] .layout-card-cta:hover {
  color: #ffffff !important;
  background: var(--accent-muted) !important;
}
.layout-card--selected .layout-card-cta {
  margin-top: 0.5rem;
}

/* Expanded card overlay state */
.layout-card--selected .layout-card-tile {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 56rem);
  height: min(80vh, 32rem);
  z-index: 50;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.layout-card--selected .layout-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem 2rem 2.5rem;
}

/* Cards (default grid — used elsewhere) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.14);
}
.card-img {
  height: 160px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #141414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 1.35rem; }
.card-title { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 700; }
.card-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; position: relative; z-index: 2; }

/* Programs page: clickable card overlay + hover */
.program-card { position: relative; cursor: pointer; }
.program-card__link { position: absolute; inset: 0; z-index: 1; }
.program-card__link:hover { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-lg); }
.program-card-img { padding: 0 !important; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1a1a1a; }
.program-card-img img { width: 100%; height: 100%; object-fit: cover; }
.program-card-icon { font-size: 3rem; opacity: 0.85; }
.program-card-price { margin: 0.5rem 0; }

/* Programs page: compare table */
.program-compare-wrap { margin-top: 2.5rem; }
.program-compare-table { width: 100%; border-collapse: collapse; }
.program-compare-table th,
.program-compare-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.program-compare-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; background: rgba(255,255,255,0.03); }
.program-compare-table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* Programs page: exercise category cards with icon */
.exercise-cat-card .card-img { height: 100px; }
.exercise-cat-card-img { padding: 0 !important; height: 100px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%); }
.exercise-cat-icon { font-size: 2.25rem; opacity: 0.9; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 400px;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #f1f1f1;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.075);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}
.form-group select option {
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
/* Light mode: form labels and inputs (coaching, login, register, contact, etc.) */
:root[data-theme="light"] .form-group label,
:root[data-theme="light"] .coaching-scheduler-date-wrap label,
:root[data-theme="light"] .coaching-scheduler-time-wrap label,
:root[data-theme="light"] .contact-request-type-legend {
  color: var(--text) !important;
}
:root[data-theme="light"] .coaching-step-label,
:root[data-theme="light"] .coaching-scheduler-heading {
  color: var(--text) !important;
}
:root[data-theme="light"] .form-group input::placeholder,
:root[data-theme="light"] .form-group textarea::placeholder {
  color: var(--text-muted);
}
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group textarea,
:root[data-theme="light"] .form-group select {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group textarea:focus,
:root[data-theme="light"] .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  background: #fff;
}
@media (max-width: 600px) {
  .form-group { margin-bottom: 0.9rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { max-width: none; }
}

/* Compact form layout: 2 columns on desktop to reduce page height */
.form-compact .form-group { margin-bottom: 0; }
.form-compact .form-group input,
.form-compact .form-group textarea,
.form-compact .form-group select { max-width: none; }
@media (min-width: 768px) {
  .form-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
    align-items: start;
    max-width: 800px;
  }
  .form-compact .form-group-full,
  .form-compact .form-group:has(textarea),
  .form-compact button[type="submit"],
  .form-compact button[type="button"],
  .form-compact .form-actions,
  .form-compact h2,
  .form-compact h3,
  .form-compact h4,
  .form-compact #ingredients-list { grid-column: 1 / -1; }
  .form-compact input[type="hidden"] { grid-column: 1 / -1; height: 0; min-height: 0; overflow: hidden; margin: 0; padding: 0; display: block; border: 0; }
  .form-compact .form-group.slider-group { max-width: none; }
  .form-compact .form-group-full .form-group input,
  .form-compact .form-group-full .form-group textarea,
  .form-compact .form-group-full .form-group select { max-width: none; }
}
/* Auth form: email + password on one row on desktop */
@media (min-width: 768px) {
  .auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .auth-form .form-row .form-group { margin-bottom: 0; }
  .auth-form .form-row .form-group input { max-width: none; }
}

/* All forms: dropdown/list options readable (black text on white background) */
select option,
option,
.admin-search select option,
.multistep-fields select option {
  background: #fff !important;
  color: #1a1a1a !important;
}

/* Training profile sliders */
.form-group.slider-group { max-width: 420px; }
.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.slider-row label { margin-bottom: 0; }
.slider-value {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: flex-end;
}
.slider-value input {
  width: 3.5rem;
  padding: 0.2rem 0.35rem !important;
  background: transparent !important;
  border: none !important;
  text-align: right;
  font-weight: 600;
}
.slider-value input:focus { box-shadow: none !important; }
.slider-track-wrap {
  position: relative;
  height: 1.5rem;
  margin-bottom: 1.5rem;
}
.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transform: translateY(-50%);
  overflow: hidden;
}
.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s ease;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.slider-thumb:active { cursor: grabbing; }
.slider-marks {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.slider-mark {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}
input[type="range"] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* Number + range slider (register, coaching, etc.) — visible native range + number input */
.number-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.number-slider-wrap label { margin-bottom: 0; }
.number-slider-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.number-slider-head input[type="number"] {
  width: 5.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  -moz-appearance: textfield;
}
.number-slider-head input[type="number"]::-webkit-outer-spin-button,
.number-slider-head input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }
.number-slider-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.number-slider-wrap .number-slider-range {
  position: relative;
  width: 100%;
  height: 28px;
  margin: 0;
  opacity: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.number-slider-wrap .number-slider-range:focus { outline: none; }
.number-slider-wrap .number-slider-range::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.number-slider-wrap .number-slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease;
}
.number-slider-wrap .number-slider-range::-webkit-slider-thumb:hover { transform: scale(1.08); }
.number-slider-wrap .number-slider-range::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.number-slider-wrap .number-slider-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Section */
/* Section spacing — consistent vertical rhythm */
.section {
  margin-bottom: 4.5rem;
  padding-top: 0.25rem;
}
.section:first-of-type { padding-top: 0; }
.section + .section { margin-top: 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

/* Page intro (product/filter pages) */
.page-intro {
  margin-bottom: 2rem;
  max-width: 56rem;
}
.page-intro .page-title { margin-bottom: 0.35rem; }
.page-intro .page-subtitle { margin-bottom: 0; }

/* Page intro: make copy feel designed (no inline styles) */
.page-intro-card {
  margin-top: 1.25rem;
  padding: 1.25rem 1.25rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}
.page-lead { color: var(--text-muted); max-width: 48rem; margin: 0; }
.page-kicker {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 48rem;
}
.page-kicker strong { color: var(--text); }
.page-proof {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 48rem;
}
.page-help {
  margin: 0.9rem 0 0;
  max-width: 48rem;
}
.page-help a { font-size: 0.95rem; }

/* Programs page: centered layout, reduced redundancy */
.programs-page { max-width: 56rem; margin-left: auto; margin-right: auto; }
.programs-page .page-intro { text-align: center; margin-bottom: 2rem; }
.programs-page .page-title { margin-bottom: 0.35rem; }
.programs-page .page-subtitle { margin-bottom: 0; color: var(--text-muted); font-size: 1.05rem; }
.programs-intro-card {
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}
.programs-intro-card .page-lead { margin: 0; }
.programs-intro-card .page-kicker { margin: 0.6rem 0 0; }
.programs-intro-card .page-help { margin: 0.75rem 0 0; font-size: 0.95rem; }
.programs-intro-card .page-help a { font-weight: 500; }
.programs-toolbar {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
.programs-filter { margin-bottom: 0; justify-content: center; }
.programs-jump { text-align: center; margin-bottom: 1rem; }
.programs-jump .back-link { font-size: 0.9rem; color: var(--text-muted); }
.programs-empty-wrap { justify-content: center; }
.program-empty-card { max-width: 32rem; margin: 0 auto; }
.program-compare-wrap {
  margin-top: 2.5rem;
  text-align: center;
}
.programs-page .program-compare-wrap .section-title { text-align: center; margin-bottom: 1rem; }
.program-compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  max-width: 100%;
  margin-top: 0.5rem;
}
.programs-exercises-section { text-align: center; }
.programs-exercises-section .section-title { text-align: center; }
.programs-exercises-section .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
.programs-page .card-grid.program-card-grid { margin-top: 1rem; }
.programs-page .card-grid.program-card-grid .card { text-align: left; }
.exercise-cat-card .card-body .btn { margin-top: 0.5rem; }

/* Inner pages: consistent with home (max-width, centred intro, section titles) */
.page-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.page-content .page-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.page-content .page-intro .page-intro-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
}
.page-content .page-intro-card .page-lead {
  margin: 0;
}
.page-content .section-title {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.page-content .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}
.page-content .filter-bar {
  margin-bottom: 1.5rem;
}
.page-content .card-grid {
  margin-top: 1rem;
}
.about-cards-grid .section-title { text-align: left; }

/* Shared: content max width, empty state, card actions */
.content-max { max-width: 52rem; }
.page-empty-state { max-width: 36rem; }
.page-empty-state .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.section-cta { margin-top: 1rem; }
a.card-link { text-decoration: none; color: inherit; display: block; }
.diabetes-products-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.diabetes-product-card-img { height: 160px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.diabetes-product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.diabetes-product-card .card-body .badge { font-size: 0.75rem; margin-bottom: 0.35rem; }
.diabetes-product-card .card-title { margin-bottom: 0.35rem; }
.diabetes-product-card .card-text { font-size: 0.9rem; margin-bottom: 0.5rem; }
.diabetes-product-card .btn { margin-top: 0.5rem; }

/* 404 page */
.page-404 .page-404-search .filter-bar { flex-wrap: wrap; }
.page-404-links { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.page-404-links .card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.page-404-links .card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.card.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Skip link (accessibility) */
.skip-link { position: absolute; top: -4rem; left: 0.5rem; z-index: 9999; padding: 0.5rem 1rem; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 0.5rem; outline: 2px solid var(--ring); outline-offset: 2px; }

/* Visually hidden (SEO/accessibility: keep in DOM and outline, hide from view) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.card-actions-btn { margin-top: 0.75rem; display: inline-block; }
.free-resource-img,
.blog-card-img { display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* Pagination */
.pagination-wrap { margin-top: 2rem; }
.pagination { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* About page */
/* About page hero — full-width background image */
.hero-about {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 100%),
    url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1920&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 1.5rem;
}
.hero-about-content {
  position: relative;
  z-index: 2;
}
.hero-about-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-about-subtitle {
  font-size: 1.1rem;
  color: #f1f1f1;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
main > .hero-about + .section { margin-top: 2rem; }

/* About page content (below hero) — intro + two-column cards */
.about-content-section { max-width: 72rem; margin-left: auto; margin-right: auto; }
.about-intro { margin-bottom: 2rem; }
.about-intro .about-intro-card { margin-top: 0; text-align: center; }
.about-intro .about-intro-card .page-lead { margin-left: auto; margin-right: auto; max-width: 48rem; }
.about-cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-cards-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
.about-hero-card { margin: 0; }
.about-hero-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.about-diabetes-card { margin: 0; }
.about-diabetes-cta { margin-top: 0.75rem; display: inline-block; }
.cta-block { margin-top: 2.5rem; text-align: center; }

/* FAQ */
.faq-list { max-width: 44rem; }
.faq-item { margin-bottom: 1rem; }
.faq-item:last-child { margin-bottom: 0; }

/* Testimonials */
.testimonial-card .card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.testimonial-quote { font-style: italic; margin: 0; color: var(--text); font-size: 1rem; line-height: 1.5; }
.testimonial-author { font-style: normal; font-size: 0.95rem; color: var(--text-muted); }
.testimonial-stars { color: #d72d27; font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.testimonial-stars span { color: var(--text-muted); opacity: 0.5; }

/* Testimonials marquee section — full-width black band */
.testimonials-marquee-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0a0a0a;
  color: var(--text);
  padding: 3rem 0 4rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .testimonials-marquee-section { padding: 4rem 0 6rem; }
}
@media (min-width: 768px) {
  .testimonials-marquee-section { padding: 6rem 0 8rem; }
}
.testimonials-marquee-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .testimonials-marquee-inner { gap: 2rem; }
}
.testimonials-marquee-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  max-width: 720px;
}
.testimonials-marquee-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 640px) {
  .testimonials-marquee-title { font-size: 3rem; }
}
.testimonials-marquee-description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}
@media (min-width: 640px) {
  .testimonials-marquee-description { font-size: 1.25rem; }
}
.testimonials-marquee-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.testimonials-marquee-cta .btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.testimonials-marquee-cta .btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #fff; }
.testimonials-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  --testimonial-gap: 1rem;
  --testimonial-duration: 40s;
}
.testimonials-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--testimonial-gap);
  animation: testimonials-marquee var(--testimonial-duration) linear infinite;
  width: max-content;
}
.testimonials-marquee-wrap:hover .testimonials-marquee-group {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee-group { animation: none; }
}
@keyframes testimonials-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
.testimonial-marquee-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 1rem 1.5rem;
  text-align: left;
  max-width: 320px;
  transition: background 0.3s ease;
}
.testimonial-marquee-card:hover {
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}
.testimonial-marquee-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-marquee-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-marquee-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.testimonial-marquee-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.testimonial-marquee-handle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.testimonial-marquee-stars {
  color: #d72d27;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}
.testimonial-marquee-stars span { color: var(--text-muted); opacity: 0.5; }
.testimonial-marquee-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 1rem 0 0;
}
@media (min-width: 640px) {
  .testimonial-marquee-text { font-size: 1rem; }
}
.testimonials-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.333%;
  pointer-events: none;
}
.testimonials-marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.testimonials-marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Light mode: testimonials/review section — light bg, dark text, accent CTA */
:root[data-theme="light"] .testimonials-marquee-section {
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] .testimonials-marquee-title {
  color: var(--text);
}
:root[data-theme="light"] .testimonials-marquee-description {
  color: var(--text-muted);
}
:root[data-theme="light"] .testimonial-marquee-card {
  background: var(--panel);
  border-top-color: var(--border);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .testimonial-marquee-card:hover {
  background: var(--panel-2);
  box-shadow: var(--shadow-hover);
}
:root[data-theme="light"] .testimonial-marquee-name {
  color: var(--text);
}
:root[data-theme="light"] .testimonial-marquee-handle,
:root[data-theme="light"] .testimonial-marquee-text {
  color: var(--text-muted);
}
:root[data-theme="light"] .testimonial-marquee-stars span {
  color: var(--text-muted);
}
:root[data-theme="light"] .testimonials-marquee-cta .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
}
:root[data-theme="light"] .testimonials-marquee-cta .btn:hover {
  background: var(--accent-muted);
  border-color: var(--accent-muted);
  color: #ffffff !important;
}

/* Stories page — before/after + full story */
.stories-list { display: flex; flex-direction: column; gap: 2rem; }
.story-card { overflow: hidden; }
.story-card-header { padding: 1.25rem 1.25rem 0; }
.story-card-title { font-size: 1.35rem; margin: 0 0 0.25rem; font-weight: 700; }
.story-card-author { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.story-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem 0;
  max-width: 36rem;
}
.story-image-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.story-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-image-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.7); color: #fff; text-align: center;
}
.story-body { padding-top: 1rem; }
.story-body p { margin: 0.5rem 0; }
@media (max-width: 639px) {
  .testimonials-marquee-fade { display: none; }
}

/* Timeline section (scroll-driven vertical line, sticky titles) */
.timeline-section {
  width: 100%;
  background: var(--panel);
  padding: 0 1rem;
  box-sizing: border-box;
}
main > .timeline-section {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@media (min-width: 768px) {
  .timeline-section { padding: 0 2.5rem; }
}
.timeline-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem 5rem;
}
@media (min-width: 768px) {
  .timeline-container { padding: 4rem 2rem 5rem; }
}
@media (min-width: 1024px) {
  .timeline-container { padding: 5rem 2rem 5rem; }
}
.timeline-header {
  margin-bottom: 2rem;
  max-width: 56rem;
}
.timeline-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .timeline-heading { font-size: 2.25rem; }
}
.timeline-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 24rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .timeline-description { font-size: 1rem; }
}
.timeline-outer {
  position: relative;
  padding-bottom: 5rem;
}
.timeline-track {
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 2px;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 10%, var(--border) 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
@media (min-width: 768px) {
  .timeline-track { left: 2rem; }
}
.timeline-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, #d72d27, #8b1e1a);
  border-radius: 2px;
  transition: height 0.1s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-track-fill { height: 100% !important; opacity: 1 !important; }
}
.timeline-entries {
  position: relative;
  z-index: 2;
}
.timeline-entry {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2.5rem;
  gap: 0;
  min-height: 1px;
}
@media (min-width: 768px) {
  .timeline-entry {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 6rem;
    gap: 2.5rem;
  }
  .timeline-entry:first-child { padding-top: 2rem; }
}
.timeline-entry-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  max-width: 14rem;
  width: 100%;
}
@media (min-width: 768px) {
  .timeline-entry-side {
    position: sticky;
    top: 5rem;
    flex-direction: row;
    align-items: center;
    align-self: flex-start;
    max-width: 20rem;
  }
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-dot::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.timeline-entry-title {
  display: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding-left: 3rem;
}
@media (min-width: 768px) {
  .timeline-entry-title { display: block; font-size: 2.25rem; padding-left: 3rem; }
}
.timeline-entry-title-mobile {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  padding-left: 3rem;
  text-align: left;
}
@media (min-width: 768px) {
  .timeline-entry-title-mobile { display: none; }
}
/* Light mode: timeline years (about page) must be dark for visibility */
:root[data-theme="light"] .timeline-entry-title,
:root[data-theme="light"] .timeline-entry-title-mobile {
  color: var(--text) !important;
}
.timeline-entry-content {
  position: relative;
  padding-left: 3rem;
  padding-right: 1rem;
  width: 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .timeline-entry-content { padding-left: 1rem; padding-right: 1rem; }
}
.timeline-entry-body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}
.timeline-entry-body p {
  margin: 0 0 1rem;
  color: var(--text);
}
.timeline-entry-body p:last-child { margin-bottom: 0; }
.timeline-entry-body .timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.timeline-entry-body .timeline-grid img {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .timeline-entry-body .timeline-grid img { height: 11rem; }
}
@media (min-width: 1024px) {
  .timeline-entry-body .timeline-grid img { height: 15rem; }
}
.timeline-entry-body .timeline-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.timeline-entry-body .timeline-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.timeline-entry-body .timeline-list li::before {
  content: '✓';
  color: var(--text);
  font-weight: 700;
}

/* Contact — centered layout for 1-on-1 coaching */
.contact-section--centered { text-align: center; }
.contact-page-wrap {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-page-wrap .page-intro--centered { text-align: center; }
.contact-page-wrap .page-intro-card--centered { text-align: left; }
.contact-form-block { margin-top: 1.5rem; text-align: left; }
.contact-form-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.contact-form-card .form-group { margin-bottom: 1rem; }
.contact-form-card .form-row--two { margin-bottom: 1rem; }
.contact-form-card .form-actions { margin-top: 0.75rem; margin-bottom: 0; }

/* Coaching multi-step form */
.coaching-steps-card { position: relative; }
.coaching-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.coaching-step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.coaching-step-dot.active {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
.coaching-step-line {
  width: 2rem;
  height: 2px;
  background: var(--border);
}
.coaching-step-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}
.coaching-panel { display: none; min-height: 8rem; }
.coaching-panel.active { display: block; }
.coaching-steps-form .coaching-panel { grid-column: 1 / -1; }
.coaching-steps-form .coaching-steps-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.contact-request-type { margin-bottom: 1.25rem; }
.contact-request-type-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.contact-request-type-legend {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: block;
}
.contact-request-type-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
}
.contact-request-type-option input { margin: 0; }
.contact-request-type-option span { user-select: none; }
.contact-call-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 520px) {
  .contact-call-fields { grid-template-columns: 1fr; }
}

/* Coaching step 2: scheduler-style date & time (calendar-scheduler look) */
.coaching-scheduler-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.coaching-scheduler-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  text-align: center;
}
.coaching-scheduler-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.coaching-scheduler-date-wrap {
  min-width: 0;
}
.coaching-scheduler-date-wrap label,
.coaching-scheduler-time-wrap label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.coaching-date-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
/* Calendar day-picker grid — fixed cell size so days stay in a compact 7-column grid */
.coaching-calendar-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.75rem;
  width: fit-content;
}
.coaching-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.coaching-calendar-month {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.coaching-calendar-prev,
.coaching-calendar-next {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.coaching-calendar-prev:hover,
.coaching-calendar-next:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-muted);
}
.coaching-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 2.25rem);
  gap: 2px;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
/* Calendar: table layout so days are always 7 per row (Mon–Sun) */
.coaching-calendar-table {
  border-collapse: collapse;
  border-spacing: 0;
  width: auto;
}
.coaching-calendar-table td {
  width: 2.25rem;
  height: 2.25rem;
  padding: 2px;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
}
.coaching-calendar-table td.coaching-calendar-day--empty {
  padding: 0;
  visibility: hidden;
}
.coaching-calendar-table .coaching-calendar-day {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}
.coaching-calendar-table .coaching-calendar-day:not(.coaching-calendar-day--disabled):hover {
  background: rgba(255,255,255,0.1);
}
.coaching-calendar-table .coaching-calendar-day--today {
  font-weight: 700;
  color: var(--accent);
}
.coaching-calendar-table .coaching-calendar-day--selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.coaching-calendar-table .coaching-calendar-day--selected.coaching-calendar-day--today {
  color: #fff;
}
.coaching-calendar-table .coaching-calendar-day--disabled {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}
.coaching-time-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
}
.coaching-time-grid .booking-time-slot span {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}
.coaching-time-grid .booking-time-slot input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.coaching-steps-actions .coaching-btn-back {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.coaching-steps-actions .coaching-btn-back:hover {
  background: rgba(215, 45, 39, 0.12);
  color: var(--accent);
}
/* Checkbox + label on one line, clear styling */
.coaching-checkbox-row { margin-bottom: 1rem; }
.coaching-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
}
.coaching-checkbox-label span {
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.coaching-checkbox-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
@media (max-width: 600px) {
  .coaching-scheduler-fields { grid-template-columns: 1fr; }
  .coaching-time-grid { max-height: none; }
  .coaching-checkbox-label span { white-space: normal; }
}
.form-compact--centered { margin-left: auto; margin-right: auto; }
.form-actions--centered { justify-content: center; }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-row--two .form-group { flex: 1; min-width: 0; min-width: min(100%, 12rem); }
.contact-cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.contact-card .card-body { padding: 1rem 1.25rem; }

/* Booking scheduler (Schedule a call with Shouaib) */
#booking .contact-page-wrap { max-width: 36rem; }
.booking-scheduler { margin-top: 1.5rem; text-align: left; }
.booking-form .form-group { margin-bottom: 1.25rem; }
.booking-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: 0.5rem;
}
.booking-time-slot {
  display: block;
  cursor: pointer;
}
.booking-time-slot input { position: absolute; opacity: 0; pointer-events: none; }
.booking-time-slot span {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.booking-time-slot input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.booking-time-slot span:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-muted); }
.booking-time-slot input:checked + span { border-color: var(--accent); background: rgba(255,255,255,0.12); font-weight: 600; color: var(--text); }
/* Solid red when selected (overridden by .coaching-time-grid above for scheduler layout) */
.coaching-time-grid .booking-time-slot input:checked + span { background: var(--accent); color: #fff; }

/* Contact (legacy) */
.contact-cards { margin-top: 2rem; }

/* Product page: help card */
.card-help { margin-top: 1.25rem; }

.program-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.program-includes-list li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.program-includes-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-muted);
  font-weight: 700;
}

/* Blog single post */
.post-single .page-intro { margin-bottom: 1rem; }
.post-body { line-height: 1.65; }
.post-back { margin-top: 2rem; }

/* Filter bar — horizontal filters on listing pages */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  max-width: 100%;
}
.filter-bar label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="search"] {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  min-width: 10rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.filter-bar .btn { flex-shrink: 0; }
@media (min-width: 768px) {
  .filter-bar { padding: 1.1rem 1.5rem; gap: 1rem 1.25rem; }
}

/* Blog gallery — carousel cards (Gallery4-style) */
.blog-gallery {
  padding: 2rem 0 2.5rem;
}
.blog-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
.blog-gallery-heading { display: flex; flex-direction: column; gap: 0.5rem; }
.blog-gallery-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--text);
}
.blog-gallery-description {
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.blog-gallery-nav {
  display: none;
  flex-shrink: 0;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .blog-gallery-nav { display: flex; }
}
.blog-gallery-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.blog-gallery-btn:hover:not(:disabled) {
  background: var(--panel-2);
  color: var(--accent);
}
.blog-gallery-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.blog-gallery-btn svg { width: 1.25rem; height: 1.25rem; }
.blog-gallery-track-wrap {
  width: 100%;
  overflow: hidden;
}
.blog-gallery-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.blog-gallery-track::-webkit-scrollbar { height: 6px; }
.blog-gallery-track::-webkit-scrollbar-track { background: var(--panel); border-radius: 3px; }
.blog-gallery-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.blog-gallery-item {
  flex: 0 0 auto;
  width: min(320px, 85vw);
  scroll-snap-align: start;
  padding-right: 1.25rem;
}
@media (min-width: 1024px) {
  .blog-gallery-item { width: 360px; }
}
.blog-gallery-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease);
}
.blog-gallery-card:hover { transform: scale(1.02); }
.blog-gallery-card-media {
  position: relative;
  min-height: 27rem;
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .blog-gallery-card-media { aspect-ratio: 5/4; }
}
@media (min-width: 1024px) {
  .blog-gallery-card-media { aspect-ratio: 16/9; }
}
.blog-gallery-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s var(--ease);
}
.blog-gallery-card:hover .blog-gallery-card-media img {
  transform: scale(1.05);
}
.blog-gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
  pointer-events: none;
}
.blog-gallery-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
  .blog-gallery-card-content { padding: 2rem; }
}
.blog-gallery-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.blog-gallery-card-desc {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .blog-gallery-card-desc { margin-bottom: 1.25rem; }
}
.blog-gallery-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.blog-gallery-card-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.blog-gallery-card:hover .blog-gallery-card-cta svg {
  transform: translateX(4px);
}
.blog-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.blog-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.blog-gallery-dot:hover { background: var(--text-muted); }
.blog-gallery-dot.active { background: var(--accent); }

/* Homepage: static row of blog cards (no carousel) */
.blog-gallery--home .blog-gallery-nav { display: none; }
.blog-gallery--home .blog-gallery-track--static {
  overflow-x: visible;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  scroll-snap-type: none;
}
.blog-gallery--home.blog-gallery--align-left .blog-gallery-track--static {
  justify-content: flex-start;
}
.blog-gallery--home .blog-gallery-item { padding-right: 0; }

/* Product/listing grid — denser grid for exercises & cards */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .listing-grid { gap: 1.75rem; }
}
.listing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}
.listing-card-media {
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.listing-card-media img,
.listing-card-media video,
.listing-card-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-card-media .exercise-card-placeholder {
  font-size: 3.5rem;
  opacity: 0.9;
}
.listing-card-body { padding: 1.25rem; }
.listing-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.listing-card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.listing-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.listing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.listing-card-link:hover .listing-card-title { color: var(--accent); }
.listing-card-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}
.listing-card-link:hover .listing-card-cta { color: #fff; }

/* Exercise detail page */
.back-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--accent); }
.exercise-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
}
@media (min-width: 768px) {
  .exercise-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}
.exercise-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 10;
}
.exercise-detail-media iframe,
.exercise-detail-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exercise-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exercise-detail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.9;
}
.exercise-detail-body .page-title { margin-bottom: 0.35rem; }
.exercise-detail-meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.exercise-detail-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Admin: Meal ingredient editor */
.ingredient-editor {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.ingredient-head {
  display: grid;
  grid-template-columns: 2fr 110px 120px 44px;
  gap: 0.6rem;
  padding: 0 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ingredient-row {
  display: grid;
  grid-template-columns: 2fr 110px 120px 44px;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.6rem;
}
.ingredient-row input,
.ingredient-row select {
  width: 100%;
  max-width: none;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
}
.ingredient-row input:focus,
.ingredient-row select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.ingredient-remove {
  padding: 0.45rem 0 !important;
  width: 44px;
  height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ingredient-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.ingredient-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.ingredient-bulk {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ingredient-bulk textarea {
  width: 100%;
  max-width: none;
  min-height: 120px;
}
.ingredient-bulk-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .ingredient-head { display: none; }
  .ingredient-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name name"
      "amount unit"
      "remove remove";
  }
  .ingredient-name { grid-area: name; }
  .ingredient-amount { grid-area: amount; }
  .ingredient-unit { grid-area: unit; }
  .ingredient-remove { grid-area: remove; width: 100%; }
}

/* Home: stats strip */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-strip-item {
  text-align: center;
}
.stats-strip-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.stats-strip-label { font-size: 0.9rem; color: var(--text-muted); }

/* Home: testimonial preview */
.testimonial-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.testimonial-preview .card { height: 100%; }
.testimonial-preview .card-body { display: flex; flex-direction: column; }
.testimonial-preview .card-text { flex: 1; }

/* Home: CTA section — cta-3 style (corner pluses, borders, radial gradient, two buttons) */
.cta-section {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* cta-3 variant: radial gradient, corner pluses, vertical lines, dashed center */
.cta-section.cta-3 {
  position: relative;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: radial-gradient(35% 80% at 25% 0%, rgba(255, 255, 255, 0.08), transparent),
              radial-gradient(35% 80% at 75% 0%, rgba(255, 255, 255, 0.05), transparent);
}
.cta-3-corner {
  position: absolute;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.cta-3-corner svg { width: 100%; height: 100%; }
.cta-3-corner--tl { top: -0.75rem; left: -0.75rem; }
.cta-3-corner--tr { top: -0.75rem; right: -0.75rem; }
.cta-3-corner--bl { bottom: -0.75rem; left: -0.75rem; }
.cta-3-corner--br { bottom: -0.75rem; right: -0.75rem; }
.cta-3-edge {
  position: absolute;
  top: -1.5rem;
  bottom: -1.5rem;
  width: 1px;
  border-left: 1px solid var(--border);
  pointer-events: none;
  opacity: 0.6;
}
.cta-3-edge--left { left: 0; }
.cta-3-edge--right { right: 0; border-left: none; border-right: 1px solid var(--border); }
.cta-3-center {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  border-left: 1px dashed var(--border);
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.4;
}
.cta-3-content { display: flex; flex-direction: column; gap: 0.25rem; }
.cta-3-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.cta-3-subtitle {
  font-size: 1rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}
.cta-3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cta-3-btn-primary,
.cta-3-btn-outline { margin: 0; }
.cta-3-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.cta-3-arrow { flex-shrink: 0; margin-left: 0.15rem; transition: transform 0.2s var(--ease); }
.cta-3-btn-primary:hover .cta-3-arrow { transform: translateX(3px); }

/* Legacy CTA section (no .cta-3) */
.cta-section .section-title { margin-bottom: 0.5rem; }
.cta-section .section-subtitle {
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-section:not(.cta-3) .btn { margin: 0 0.35rem; }

/* Flash messages */
.flash {
  padding: 0.85rem 1.5rem;
  margin: 0 1.5rem 1rem;
  border-radius: var(--radius);
  animation: flash-in 0.4s var(--ease-out);
  box-shadow: var(--shadow);
}
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash-success { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.flash-error { background: rgba(255, 255, 255, 0.08); color: #e5e5e5; border: 1px solid rgba(255,255,255,0.2); }
:root[data-theme="light"] .flash-success {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}
:root[data-theme="light"] .flash-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Badge */
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.badge:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.badge--diabetic {
  background: rgba(215, 45, 39, 0.2);
  color: #e85a55;
  border-color: rgba(215, 45, 39, 0.35);
}
.badge--diabetic:hover { background: rgba(215, 45, 39, 0.28); border-color: rgba(215, 45, 39, 0.5); }

.filter-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.filter-checkbox input[type="checkbox"] { margin: 0; }
.filter-checkbox span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

.store-card-badge { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; }

/* ========== Dashboard (Admin + Member) — collapsible sidebar ========== */
.dash-layout {
  display: flex;
  min-height: 100vh;
}
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 16rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 20, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  transition: width 0.3s ease;
  overflow: hidden;
}
.dash-sidebar--collapsed {
  width: 4rem;
  min-width: 4rem;
  max-width: 4rem;
  overflow-x: hidden;
}
/* Collapsed: hide labels completely so they take no space and no horizontal scroll appears */
.dash-sidebar--collapsed .dash-sidebar__label,
.dash-sidebar--collapsed .dash-nav-label,
.dash-sidebar--collapsed .dash-footer-label,
.dash-sidebar--collapsed .dash-section-title {
  display: none !important;
  width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
}
.dash-sidebar--collapsed .dash-sidebar__brand-text {
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.dash-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  min-height: 3.5rem;
}
.dash-sidebar__brand:hover { opacity: 0.9; }
.dash-sidebar__brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #d72d27, #8b1e1a);
  color: #fff;
}
.dash-sidebar__brand-logo img {
  max-width: 1.5rem;
  max-height: 1.5rem;
  object-fit: contain;
}
.dash-sidebar__brand-text { min-width: 0; }
.dash-sidebar__brand-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.dash-sidebar__brand-sub {
  display: block;
  font-size: 0.7rem;
  color: #fff;
}
.dash-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0;
  min-width: 0;
}
.dash-section-title {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, visibility 0.2s;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  height: 2.75rem;
  width: 100%;
  padding: 0 0.5rem;
  margin-bottom: 0.15rem;
  border-radius: 0.5rem;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  font-family: inherit;
}
.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dash-nav-item.active {
  background: rgba(215, 45, 39, 0.15);
  color: #fff;
  border-left-color: #d72d27;
}
.dash-nav-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-content: center;
}
.dash-nav-item-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.9;
}
.dash-nav-item.active .dash-nav-item-icon svg { opacity: 1; }
.dash-nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, visibility 0.2s;
}
.dash-nav-badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  background: #d72d27;
  color: #fff;
  border-radius: 999px;
}

/* Nav groups with expandable sub-items */
.dash-nav-group {
  margin-bottom: 0.15rem;
}
.dash-nav-group-trigger {
  display: flex;
  align-items: center;
  height: 2.75rem;
  width: 100%;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  font-family: inherit;
  gap: 0;
}
.dash-nav-group-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dash-nav-group-trigger .dash-nav-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-content: center;
}
.dash-nav-group-trigger .dash-nav-item-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.9;
}
.dash-nav-group-trigger .dash-nav-chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  display: grid;
  place-content: center;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.dash-nav-group.is-open .dash-nav-group-trigger .dash-nav-chevron {
  transform: rotate(90deg);
}
.dash-nav-group-children {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.dash-nav-group.is-open .dash-nav-group-children {
  max-height: 20rem;
  opacity: 1;
}
.dash-nav-item--sub,
.dash-nav-group-children .dash-nav-item {
  padding-left: 2.5rem;
  height: 2.5rem;
  font-size: 0.8125rem;
}
.dash-nav-group.is-open .dash-nav-group-trigger {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.dash-sidebar--collapsed .dash-nav-group-children {
  display: none !important;
}
.dash-sidebar--collapsed .dash-nav-group .dash-nav-chevron {
  display: none;
}

.dash-sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: auto;
}
.dash-footer-section-title {
  padding: 0 0.75rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, visibility 0.2s;
}
.dash-sidebar__footer .dash-nav-item { margin-bottom: 0.1rem; }
.dash-sidebar-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dash-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dash-sidebar-toggle-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: transform 0.3s ease;
}
.dash-sidebar--collapsed .dash-sidebar-toggle-icon { transform: rotate(180deg); }
.dash-footer-label {
  flex: 1;
  text-align: left;
  transition: opacity 0.2s, visibility 0.2s;
}

/* Admin: use dash layout — all text white for visibility (buttons keep their styles) */
.admin-body {
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
}
.admin-body .dash-layout {
  overflow-x: hidden;
  min-width: 0;
}
.admin-body .admin-main {
  min-width: 0;
}
.admin-body a:not(.btn):not([role="button"]) { color: #fff; }
.admin-body a:not(.btn):not([role="button"]):hover { color: rgba(255,255,255,0.9); }

/* Member dashboard: same dark shell — all text white */
body.member-area {
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
}
body.member-area .dash-layout {
  overflow-x: hidden;
  min-width: 0;
}
body.member-area .member-content {
  min-width: 0;
}
body.member-area a:not(.btn):not([role="button"]) { color: #fff; }
body.member-area a:not(.btn):not([role="button"]):hover { color: rgba(255,255,255,0.9); }

.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar { display: none; }
.admin-layout .dash-sidebar { }
.admin-brand-logo {
  display: block;
  max-height: 1.5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.member-brand-logo {
  display: block;
  max-height: 1.5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.75rem 2rem 2rem;
}

/* Member dashboard main content (same layout as admin) */
.member-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
}
.member-content-inner {
  padding: 1.75rem 2rem 2rem;
}

.admin-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-main table th,
.admin-main table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-main table th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-main table td { color: #fff; }
.admin-main table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.admin-main .admin-table-wrap table { margin: 0; }

/* Public tables: keep readable on mobile */
main table {
  width: 100%;
  border-collapse: collapse;
}
main table th,
main table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
main table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.03);
}
main table tbody tr:hover { background: rgba(255,255,255,0.03); }
@media (max-width: 720px) {
  main table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.admin-page-header .admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Legacy admin header (same layout as admin-page-header) */
.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-top h1 { font-size: 1.75rem; font-weight: 700; margin: 0; }

.admin-welcome {
  font-size: 0.9rem;
  color: #fff;
}

/* Admin Settings — tabbed layout */
.settings-tabs {
  margin-bottom: 2rem;
}
.settings-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}
.settings-tab {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.settings-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.settings-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.settings-panel {
  display: none;
  padding: 1rem 0 0;
}
.settings-panel.active {
  display: block;
}
.settings-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}
.settings-tabs-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Customize page: compact grid + collapsible + sticky save */
.customize-form-grid {
  display: block;
}
@media (min-width: 900px) {
  .customize-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    align-items: start;
  }
  .customize-form-grid .form-group:not(.form-group-full):not(:has(textarea)) { margin-bottom: 0; }
  .customize-form-grid .form-group-full,
  .customize-form-grid .form-group:has(textarea),
  .customize-form-grid .settings-panel-title,
  .customize-form-grid .customize-block,
  .customize-form-grid details.customize-details { grid-column: 1 / -1; }
  .customize-form-grid .customize-block .form-group:not(.form-group-full):not(:has(textarea)) { margin-bottom: 0; }
}
.customize-form-grid .form-group-full,
.customize-form-grid .form-group:has(textarea) { margin-bottom: 1rem; }
.customize-details {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.customize-details summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.customize-details summary::-webkit-details-marker { display: none; }
.customize-details summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.customize-details[open] summary::before { transform: rotate(90deg); }
.customize-details .customize-details-inner { padding: 1rem; }
.customize-details .customize-details-inner .form-group { margin-bottom: 0.75rem; }
@media (min-width: 900px) {
  .customize-details .customize-details-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }
  .customize-details .customize-details-inner .form-group:has(textarea),
  .customize-details .customize-details-inner fieldset { grid-column: 1 / -1; }
  .customize-details .customize-details-inner fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
  }
  .customize-details .customize-details-inner fieldset .form-group:has(textarea) { grid-column: 1 / -1; }
}
.customize-save-sticky {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 0;
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.admin-main .customize-save-sticky .btn { min-width: 10rem; }

/* Image picker modal (admin) — hidden by default until opened */
.image-picker-modal[hidden] {
  display: none !important;
}
.image-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.image-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.image-picker-dialog {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.image-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.image-picker-title { margin: 0; font-size: 1.1rem; font-weight: 600; }
.image-picker-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.image-picker-close:hover { color: #fff; }
.image-picker-tabs {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.image-picker-tab {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  cursor: pointer;
}
.image-picker-tab:hover { color: #fff; }
.image-picker-tab.active { color: #fff; border-bottom-color: var(--accent); }
.image-picker-panel {
  padding: 1.25rem;
  overflow-y: auto;
}
.image-picker-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.image-picker-thumb { transition: border-color 0.2s; }
.gs-image-url-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gs-image-url-wrap input[type="url"] { flex: 1; min-width: 180px; }
.image-picker-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.admin-card:hover { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.admin-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s var(--ease);
}
.admin-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table td { color: #fff; }
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.admin-table-row-unread {
  background: rgba(255, 255, 255, 0.06);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .table-actions {
  white-space: nowrap;
}
.admin-table .table-actions a {
  margin-right: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
}
.admin-table .table-actions a:hover {
  color: rgba(255,255,255,0.9);
}
.admin-table .table-actions button {
  margin-right: 0.5rem;
  font-size: 0.85rem;
}
.admin-table .table-actions form { display: inline; }
.admin-table .table-actions button[type="submit"] {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}
.admin-table .table-actions button[type="submit"]:hover { color: #f87171; }

.admin-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.admin-search input[type="text"],
.admin-search input[type="search"],
.admin-search select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  min-width: 12rem;
  font-size: 0.9rem;
}
.admin-search input::placeholder { color: rgba(255,255,255,0.6); }
.admin-search select { min-width: auto; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.admin-stat:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.admin-stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.admin-stat-label {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.admin-stat-link {
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.admin-stat-link:hover { text-decoration: underline; color: rgba(255,255,255,0.9); }

.admin-quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
}

/* Mobile: top bar + overlay sidebar so content is full width and not under menu */
.dash-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 102;
  height: 3rem;
  padding: 0 0.75rem;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 18, 18, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-mobile-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.dash-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dash-mobile-menu-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.dash-sidebar-open .dash-mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.dash-sidebar-open .dash-mobile-menu-bar:nth-child(2) {
  opacity: 0;
}
body.dash-sidebar-open .dash-mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.dash-mobile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
body.dash-sidebar-open .dash-sidebar-backdrop {
  display: block;
}

@media (max-width: 900px) {
  .dash-mobile-header { display: flex; }
  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 101;
    width: 16rem;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    box-shadow: none;
  }
  body.dash-sidebar-open .dash-sidebar {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
  .dash-sidebar--collapsed { width: 16rem; min-width: auto; max-width: 85vw; }
  .dash-sidebar--collapsed .dash-sidebar__label,
  .dash-sidebar--collapsed .dash-nav-label,
  .dash-sidebar--collapsed .dash-footer-label,
  .dash-sidebar--collapsed .dash-section-title { display: block !important; width: auto; min-width: 0; overflow: visible; opacity: 1; visibility: visible; }
  .dash-sidebar--collapsed .dash-sidebar__brand-text { width: auto; }
  .dash-sidebar-toggle { display: none; }
  .admin-main,
  .member-content {
    margin-left: 0;
    padding-top: 3.5rem;
  }
  .admin-main,
  .member-content-inner {
    padding: 0.75rem 0.875rem 1.25rem;
    font-size: 0.875rem;
  }
  .admin-page-header h1,
  .admin-top h1 {
    font-size: 1.2rem;
    font-weight: 700;
  }
  .admin-page-header,
  .admin-top { margin-bottom: 1rem; }
  .admin-main table { font-size: 0.8125rem; }
  .admin-main table th,
  .admin-main table td { padding: 0.5rem 0.6rem; }
  .admin-main .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-welcome { font-size: 0.8125rem; }
  .card-title,
  .admin-main h2,
  .member-content-inner h2 { font-size: 1rem; }
  .admin-main h3,
  .member-content-inner h3 { font-size: 0.9375rem; }
  .admin-main h4,
  .member-content-inner h4 { font-size: 0.875rem; }
  .form-compact .form-group label,
  .admin-main label,
  .member-content-inner label { font-size: 0.8125rem; }
  .btn { font-size: 0.8125rem; padding: 0.45rem 0.75rem; }
  .settings-tab { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }
  .settings-panel-title { font-size: 1rem; }
  .dash-sidebar__brand-title { font-size: 0.85rem; }
  .dash-sidebar__brand-sub { font-size: 0.65rem; }
  .dash-nav-item,
  .dash-nav-group-trigger { font-size: 0.8125rem; height: 2.5rem; }
  .dash-section-title,
  .dash-footer-section-title { font-size: 0.6rem; }
}
@media (max-width: 600px) {
  .admin-main,
  .member-content-inner {
    padding: 0.6rem 0.75rem 1rem;
    font-size: 0.8125rem;
  }
  .admin-page-header h1,
  .admin-top h1 { font-size: 1.1rem; }
  .admin-main table { font-size: 0.75rem; }
  .admin-main table th,
  .admin-main table td { padding: 0.4rem 0.5rem; }
  .card-title,
  .admin-main h2,
  .member-content-inner h2 { font-size: 0.9375rem; }
  .admin-main h3,
  .member-content-inner h3 { font-size: 0.875rem; }
  .dash-mobile-title { font-size: 0.875rem; }
}
body.dash-sidebar-open { overflow: hidden; }

/* Member progression (expected vs actual) */
.progression-expected { color: var(--text-muted); font-size: 0.9rem; }
.progression-actual { color: var(--accent); font-weight: 600; }
.progression-missing { color: var(--text-muted); font-style: italic; }
.progression-table-wrap { margin-bottom: 0.5rem; }

/* Multi-step form (e.g. registration) */
.multistep-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}
.multistep-card {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.multistep-header {
  padding: 1.5rem 1.5rem 0.5rem;
}
.multistep-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--text);
}
.multistep-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
.multistep-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
}
.multistep-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.multistep-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.multistep-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}
.multistep-form {
  display: flex;
  flex-direction: column;
}
.multistep-content {
  min-height: 280px;
  overflow: hidden;
  padding: 0 1.5rem;
  position: relative;
}
.multistep-step {
  padding: 0.5rem 0 1rem;
  animation: multistep-enter 0.35s ease-out;
}
.multistep-step-hidden {
  display: none;
}
.multistep-step-enter {
  animation: multistep-enter 0.35s ease-out;
}
@keyframes multistep-enter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.multistep-step-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}
.multistep-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.multistep-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.multistep-fields .form-group { margin-bottom: 0; }
.multistep-fields .form-group input,
.multistep-fields .form-group select {
  max-width: none;
}
.multistep-card .required { color: #f87171; }
.multistep-card .optional { font-weight: normal; color: var(--text-muted); font-size: 0.85em; }
.multistep-alert {
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.multistep-alert-error {
  background: rgba(215, 45, 39, 0.15);
  border: 1px solid rgba(215, 45, 39, 0.4);
  color: #e85a55;
}
.multistep-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.multistep-footer-left { flex: 1; }
.multistep-footer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.multistep-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.multistep-link:hover { color: var(--accent); }
@media (max-width: 600px) {
  .multistep-footer { flex-direction: column; align-items: stretch; }
  .multistep-footer-left { order: 2; text-align: center; }
  .multistep-footer-actions { order: 1; justify-content: flex-end; }
}

/* Auth pages: login, forgot password (card layout) */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 12rem);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.auth-card-header {
  padding: 2rem 2rem 0.5rem;
  text-align: center;
}
.auth-card-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--text);
  letter-spacing: -0.02em;
}
.auth-card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.auth-form {
  padding: 1.5rem 2rem 2rem;
}
.auth-form .form-group input {
  max-width: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-form .form-group input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.auth-submit {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 0.25rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease);
}
.auth-submit:hover { transform: translateY(-1px); }
.auth-card-footer {
  padding: 0 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.auth-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.auth-link:hover {
  color: var(--accent);
}
.auth-card-cta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.auth-card-cta a {
  font-weight: 600;
}
.auth-alert {
  margin: 0 2rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}
.auth-alert-success {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f1f1;
}
.auth-alert-error {
  background: rgba(215, 45, 39, 0.15);
  border: 1px solid rgba(215, 45, 39, 0.4);
  color: #e85a55;
}
@media (max-width: 480px) {
  .auth-card-header,
  .auth-form,
  .auth-card-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .auth-alert { margin-left: 1.5rem; margin-right: 1.5rem; }
}

/* Store — Interactive product cards (tilt, glassmorphism) */
.store-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
  justify-items: center;
}
.store-product-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 12;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.store-product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  position: relative;
}
.store-product-card .store-card-bg {
  position: absolute;
  inset: 0;
  transform: translateZ(-20px) scale(1.1);
}
.store-product-card .store-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.store-product-card:hover .store-card-bg img {
  transform: scale(1.08);
}
.store-product-card .store-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
  border-radius: 1.5rem;
  pointer-events: none;
}
.store-product-card .store-card-content {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transform: translateZ(40px);
  pointer-events: none;
}
.store-product-card .store-card-content > a {
  pointer-events: auto;
}
.store-product-card .store-card-glass {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.store-product-card .store-card-glass-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}
.store-product-card .store-card-glass-text p {
  font-size: 0.75rem;
  color: #f1f1f1;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-product-card .store-card-logo {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f1f1f1;
  letter-spacing: 0.02em;
}
.store-product-card .store-card-price {
  position: absolute;
  top: 6.5rem;
  left: 1.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.store-product-card .store-card-cta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.store-product-card .store-card-cta .btn {
  pointer-events: auto;
}
@media (max-width: 380px) {
  .store-card-grid {
    grid-template-columns: 1fr;
  }
  .store-product-card { max-width: none; }
}

/* Store card — type badge */
.store-product-card .store-card-type {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #f1f1f1;
  z-index: 2;
}
.store-product-card .store-card-type--program { background: rgba(76, 175, 80, 0.5); }
.store-product-card .store-card-type--ebook { background: rgba(215, 45, 39, 0.35); }
.store-product-card .store-card-type--physical { background: rgba(255, 152, 0, 0.5); }

/* Product detail page — type-specific layout */
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.product-detail__media { min-width: 0; }
.product-detail__img {
  border-radius: 1rem;
  overflow: hidden;
}
.product-detail__info { min-width: 0; }
.product-detail__type-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-detail__type-badge--physical { background: rgba(215, 45, 39, 0.2); color: #e85a55; }
.product-detail__type-badge--ebook { background: rgba(215, 45, 39, 0.2); color: #d72d27; }
.product-detail__type-badge--program { background: rgba(215, 45, 39, 0.25); color: #e85a55; }
.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}
.product-detail__stock { margin: 0.25rem 0; font-weight: 600; }
.product-detail__stock--in { color: #f1f1f1; }
.product-detail__stock--out { color: #d72d27; }
.product-detail__note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}
.product-detail__description {
  margin: 1rem 0;
  line-height: 1.6;
}
.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
  .product-detail__img { height: 240px !important; }
  .product-detail__actions { gap: 0.6rem; }
  .product-detail__actions .btn { width: 100%; }
}

/* ========== Print ========== */
@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .hero-marquee-wrap,
  .hero-testimonial,
  .filter-bar,
  .btn,
  .card-link,
  .breadcrumb,
  .gs-breadcrumb,
  .flash,
  #gs-toasts { display: none !important; }
  body {
    background: #fff;
    color: #111;
  }
  a[href]:not([href^="#"]):not([href^="javascript:"])::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
  .hero-content,
  .section,
  .card-body,
  .page-intro,
  .post-body,
  .content-max { max-width: 100%; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  main { padding: 0; }
}
