:root {
  --primary: #3a7afe;
  --primary-dark: #0f1a2b;
  --primary-color: var(--primary);
  --primary-color-dark: var(--primary-dark);
  --primary-light: #e8f0ff;

  --zen-green: #a8d5ba;
  --zen-green-light: #dff5e3;
  --earth-neutral: #e8e2d0;

  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --border-color: #d1d5db;
  --bg-main: #ffffff;
  --bg-alt: #f7f9fc;

  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --success: #2ecc71;
  --warning: #f1c40f;
  --error: #e74c3c;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --radius-card: 8px;
  --shadow-soft: 0 10px 24px rgba(15, 26, 43, 0.08);

  --bs-primary: #3a7afe;
  --bs-primary-rgb: 58, 122, 254;
  --bs-secondary: #6b7280;
  --bs-secondary-rgb: 107, 114, 128;
  --bs-border-color: #d1d5db;
  --bs-body-color: #1a1a1a;
  --bs-body-bg: #ffffff;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0;
  animation: siteFadeIn 120ms ease-out both;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

.form-label {
  font-weight: 500;
}

.lottie-embed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lottie-player {
  display: block;
  width: 100%;
  height: 100%;
}

.navbar {
  background: var(--bg-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-top: 0.52rem;
  padding-bottom: 0.34rem;
}

.community-top-chrome {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #dce7ff;
  box-shadow: 0 6px 14px rgba(15, 26, 43, 0.06);
}

.marketplace-top-chrome {
  position: sticky;
  top: 0;
  z-index: 1008;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #dce7ff;
  box-shadow: 0 6px 14px rgba(15, 26, 43, 0.06);
}

.community-top-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.5rem 0;
}

.community-top-chrome-title-wrap {
  min-width: 0;
}

.community-top-chrome-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1a2b;
  line-height: 1.2;
}

.community-top-chrome-subtitle {
  font-size: 0.76rem;
  color: #5c6b85;
  line-height: 1.25;
  white-space: nowrap;
}

.community-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.community-top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e3fb;
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #365083;
  background: #ffffff;
  transition: all 0.18s ease;
}

.community-top-nav-link:hover,
.community-top-nav-link:focus {
  color: #1648b3;
  border-color: #9fc0ff;
  background: #f3f8ff;
}

.community-top-nav-link.is-active {
  color: #ffffff;
  border-color: #3a7afe;
  background: #3a7afe;
  box-shadow: 0 6px 14px rgba(58, 122, 254, 0.22);
}

.community-top-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
}

.community-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d8e3fb;
  border-radius: 999px;
  background: #ffffff;
  color: #335084;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.24rem 0.58rem;
}

.community-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #24c26a;
  box-shadow: 0 0 0 0 rgba(36, 194, 106, 0.45);
  animation: communityLivePulse 1.8s ease-out infinite;
}

.community-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.marketplace-top-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.5rem 0;
}

.marketplace-top-chrome-title-wrap {
  min-width: 0;
}

.marketplace-top-chrome-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1a2b;
  line-height: 1.2;
}

.marketplace-top-chrome-subtitle {
  font-size: 0.76rem;
  color: #5c6b85;
  line-height: 1.25;
  white-space: nowrap;
}

.marketplace-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.marketplace-top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e3fb;
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #365083;
  background: #ffffff;
  transition: all 0.18s ease;
}

.marketplace-top-nav-link:hover,
.marketplace-top-nav-link:focus {
  color: #1648b3;
  border-color: #9fc0ff;
  background: #f3f8ff;
}

.marketplace-top-nav-link.is-active {
  color: #ffffff;
  border-color: #3a7afe;
  background: #3a7afe;
  box-shadow: 0 6px 14px rgba(58, 122, 254, 0.22);
}

.marketplace-top-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
}

.marketplace-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.community-top-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #3a7afe;
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
  background: #3a7afe;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.community-top-action-btn:hover,
.community-top-action-btn:focus {
  color: #ffffff;
  background: #2f66d8;
  border-color: #2f66d8;
}

.community-top-action-btn.is-outline {
  color: #2f579f;
  background: #ffffff;
  border-color: #d0defa;
}

.community-top-action-btn.is-outline:hover,
.community-top-action-btn.is-outline:focus {
  color: #1f4fa8;
  background: #eff5ff;
  border-color: #a9c3f8;
}

.navbar-brand {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  overflow: visible;
}

.brand-lockup {
  display: inline-flex;
  gap: 0.32rem;
  align-items: center;
  justify-content: flex-start;
  line-height: 1;
}

.brand-it-icon {
  height: 34px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-wordmark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  overflow: visible;
}

.brand-wordmark {
  height: 32px;
  width: auto;
  display: block;
}

body.brand-intro-enabled .brand-lockup-intro .brand-wordmark {
  opacity: 0;
  animation: brandWordmarkFade 0.55s ease-out 0.36s forwards;
  will-change: transform, opacity;
}

@media (max-width: 576px) {
  .navbar {
    padding-top: 0.42rem;
    padding-bottom: 0.28rem;
  }

  .community-top-chrome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.46rem 0;
  }

  .marketplace-top-chrome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.46rem 0;
  }

  .community-top-chrome-subtitle {
    white-space: normal;
  }

  .marketplace-top-chrome-subtitle {
    white-space: normal;
  }

  .community-top-nav {
    width: 100%;
    padding-bottom: 0.05rem;
  }

  .marketplace-top-nav {
    width: 100%;
    padding-bottom: 0.05rem;
  }

  .community-top-meta-row {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.35rem;
  }

  .marketplace-top-meta-row {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.35rem;
  }

  .community-top-actions {
    width: 100%;
  }

  .marketplace-top-actions {
    width: 100%;
  }

  .brand-it-icon {
    height: 30px;
  }

  .brand-wordmark {
    height: 28px;
  }

  .brand-wordmark-wrap {
    padding-top: 0;
  }
}

@keyframes communityLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 194, 106, 0.45);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(36, 194, 106, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(36, 194, 106, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-live-dot {
    animation: none;
  }
}

@keyframes brandWordmarkFade {
  0% {
    opacity: 0;
    transform: translateY(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brand-intro-enabled .brand-lockup-intro .brand-wordmark {
    animation: none;
  }

  .brand-lockup-intro .brand-wordmark {
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .brand-it-icon {
    height: 26px;
  }

  .brand-wordmark {
    height: 24px;
  }
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.18s ease-in-out;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: var(--bg-main);
}

.lang-globe {
  color: var(--primary-dark);
  line-height: 1;
  display: inline-flex;
}

.language-switcher {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.05rem;
  min-width: 3rem;
  cursor: pointer;
}

.language-switcher:focus {
  outline: none;
}

.header-cart-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: var(--bg-main);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-cart-btn:hover {
  background: var(--primary-light);
  border-color: #bfd3fb;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}

.lang-selector-mobile {
  width: fit-content;
  margin-left: 0.75rem;
  background: var(--bg-main);
}

.lang-selector-header-mobile {
  display: none;
}

.mobile-menu-trigger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: var(--bg-main);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.mobile-menu-trigger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-dark);
}

.mobile-menu-trigger:hover {
  background: var(--primary-light);
  border-color: #bfd3fb;
}

.products-menu {
  min-width: 360px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.45rem;
  background: var(--bg-main);
  box-shadow: 0 12px 26px rgba(15, 26, 43, 0.12);
}

.products-menu-modern {
  margin-top: 0.55rem;
  border-color: #d8e4fd;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 30px rgba(15, 26, 43, 0.14);
}

.nav-modern-trigger {
  border-radius: 999px;
  padding: 0.42rem 0.78rem !important;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-modern-trigger:hover,
.nav-modern-trigger:focus,
.nav-modern-trigger.active {
  background: #edf3ff;
  border-color: #ccdcff;
  color: var(--primary-dark);
}

.product-menu-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  color: var(--text-primary);
  white-space: normal;
}

.product-menu-item:hover,
.product-menu-item:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.product-menu-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid #d8e4fd;
}

.product-menu-content {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.product-menu-title {
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.product-menu-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (min-width: 992px) {
  .products-dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .products-menu {
    min-width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
  }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 26, 43, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 1200;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--bg-alt);
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 300ms ease;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

.mobile-drawer-header {
  padding: 1rem 1rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--primary-dark);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.mobile-drawer-nav {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-menu-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 100%;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-support-footer {
  display: none;
  position: static;
  bottom: auto;
  background: #ffffff;
  padding: 16px;
  border-top: 1px solid #e5e5e5;
  box-shadow: none;
  z-index: auto;
  text-align: center;
  flex-shrink: 0;
  pointer-events: auto;
  margin-top: 0;
}

.support-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.support-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.support-phone-icon {
  display: inline-flex;
  line-height: 1;
}

.support-phone:hover,
.support-phone:focus {
  color: var(--primary-color-dark);
}

.mobile-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.72rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}

.mobile-link:hover,
.mobile-link:focus {
  background: var(--primary-light);
  border-color: #ccdcff;
}

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.mobile-accordion-chevron {
  transition: transform 200ms ease;
}

.mobile-accordion-toggle[aria-expanded="true"] .mobile-accordion-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  margin: 0 0.2rem;
  pointer-events: auto;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.mobile-accordion-panel.open {
  padding: 12px 16px 26px;
  max-height: none;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

.dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  max-height: 0;
  overflow: hidden;
  z-index: 30;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.dropdown-panel.open {
  padding: 12px 16px 26px;
  max-height: none;
  overflow: visible;
  opacity: 1;
}

.dropdown-panel a,
.dropdown-panel span {
  white-space: nowrap;
}

.mobile-sublink-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sublink-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex: 0 0 20px;
  vertical-align: middle;
}

.mobile-sublink-content {
  min-width: 0;
  display: block;
}

.mobile-sublink {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 0.56rem 0.65rem;
  margin: 0;
}

.mobile-sublink-title {
  display: block;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.25;
}

.mobile-sublink-description {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.3;
  margin-top: 0.2rem;
}

.mobile-sublink:hover,
.mobile-sublink:focus {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: #ccdcff;
}

.active-menu-item {
  background: rgba(58, 122, 254, 0.12);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 600;
}

.active-menu-item .mobile-sublink-title,
.active-menu-item .mobile-sublink-description,
.active-menu-item .mobile-sublink-icon {
  color: var(--primary);
}

body.mobile-drawer-open {
  overflow: hidden;
}

body.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

body.mobile-drawer-open .mobile-drawer-backdrop {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-drawer-open .ai-chat-widget-root {
  opacity: 0;
  pointer-events: none;
}

body.ios-browser .mobile-drawer {
  height: var(--ios-vh, 100dvh);
  max-height: var(--ios-vh, 100dvh);
}

body.ios-browser .mobile-menu-content {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 26, 43, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 1140;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 400px);
  height: 100dvh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-left: 1px solid #dbe7fb;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -10px 0 30px rgba(15, 26, 43, 0.16);
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

body.cart-drawer-open .cart-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

body.cart-drawer-open .cart-drawer-backdrop {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #dbe7fb;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-drawer-items {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.7rem;
}

.cart-line-item {
  border: 1px solid #d9e5fb;
  border-radius: 14px;
  padding: 0.78rem 0.86rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(58, 122, 254, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.cart-line-title {
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.cart-line-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.24rem;
}

.cart-drawer-footer {
  border-top: 1px solid #dbe7fb;
  padding: 0.95rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.cart-remove {
  border-radius: 10px;
  text-decoration: none;
  padding: 0.24rem 0.5rem;
}

.cart-remove:hover,
.cart-remove:focus {
  background: #fff3f3;
}

.cart-billing-note {
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (min-width: 1200px) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none;
  }
}

@media (max-width: 768px) {
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .cart-drawer-footer {
    padding-bottom: calc(1.05rem + env(safe-area-inset-bottom));
  }

  .mobile-support-footer {
    display: block;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 44px;
  }

  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-left,
  .header-right {
    display: flex;
    align-items: center;
  }

  .header-left {
    width: 48px;
  }

  .header-right {
    width: auto;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .lang-selector-header-mobile {
    display: inline-flex;
    padding: 0.16rem 0.34rem;
    gap: 0.22rem;
  }

  .lang-selector-header-mobile .lang-globe {
    color: #5e6f8f;
  }

  .lang-selector-header-mobile .language-switcher {
    min-width: 2.3rem;
    font-size: 0.76rem;
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .mobile-support-footer {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 44px;
  }

  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-left,
  .header-right {
    display: flex;
    align-items: center;
  }

  .header-left {
    width: 48px;
  }

  .header-right {
    width: auto;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .lang-selector-header-mobile {
    display: inline-flex;
    padding: 0.16rem 0.34rem;
    gap: 0.22rem;
  }

  .lang-selector-header-mobile .lang-globe {
    color: #5e6f8f;
  }

  .lang-selector-header-mobile .language-switcher {
    min-width: 2.3rem;
    font-size: 0.76rem;
    padding: 0;
  }
}

/* iPhone landscape can exceed md width, which can accidentally show desktop header.
   Keep compact mobile header layout for coarse-touch landscape screens. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .desktop-header-row {
    display: none !important;
  }

  .header-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
  }

  .navbar {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .brand-it-icon {
    height: 24px;
  }

  .brand-wordmark {
    height: 22px;
  }

  .brand-wordmark-wrap {
    padding-top: 0;
  }

  .mobile-menu-trigger,
  .header-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .lang-selector-header-mobile {
    padding: 0.08rem 0.24rem;
  }

  .lang-selector-header-mobile .language-switcher {
    min-width: 2rem;
    font-size: 0.72rem;
  }
}

.hero {
  background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--bg-alt) 40%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.1;
}

.hero-carousel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.08);
}

.hero-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(58, 122, 254, 0.35);
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--primary);
}

.hero-slide {
  background: linear-gradient(120deg, var(--primary-light) 0%, var(--bg-alt) 100%);
  padding: 2.6rem 2.6rem 3rem;
  min-height: 290px;
  display: flex;
  align-items: center;
}

.hero-slide .row {
  width: 100%;
  align-items: center;
}

.hero-slide h2,
.hero-slide-title {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.hero-slide-subtitle,
.hero-slide-cta,
.hero-slide-title {
  opacity: 0;
}

.hero-slide-media-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide-icon {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #ccdcff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(58, 122, 254, 0.12);
  position: relative;
  overflow: visible;
}

.hero-slide-icon::before {
  content: "";
  position: absolute;
  width: clamp(280px, 30vw, 360px);
  height: clamp(280px, 30vw, 360px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 122, 254, 0.25) 0%, rgba(58, 122, 254, 0.08) 42%, rgba(58, 122, 254, 0) 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.hero-slide-icon .lottie-player {
  width: 100%;
  height: 100%;
}

.lottie-slide {
  width: 260px;
  height: 260px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.carousel-item.active .hero-slide-title {
  animation: heroFadeIn 0.6s ease both;
}

.carousel-item.active .hero-slide-subtitle {
  animation: heroFadeIn 0.65s ease 0.08s both;
}

.carousel-item.active .hero-slide-cta {
  animation: heroFadeIn 0.65s ease 0.14s both;
}

.slide-active .lottie-slide {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 48px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: rgba(15, 26, 43, 0.65);
  background-size: 52% 52%;
}

@media (max-width: 991.98px) {
  .hero-slide {
    padding: 1.7rem 1.3rem 2.7rem;
    min-height: 360px;
  }

  .hero-slide .row {
    text-align: center;
  }

  .hero-slide-media-col {
    margin-top: 0.35rem;
  }

  .hero-slide .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-slide-icon {
    width: 280px;
    height: 280px;
  }

  .hero-slide-icon::before {
    width: 280px;
    height: 280px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .compare-card {
    padding: 1.05rem 0.95rem 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    min-height: 360px;
    padding: 2.7rem 2.8rem 3rem;
  }

  .hero-slide-icon {
    width: 520px;
    height: 520px;
    border-radius: 24px;
  }

  .lottie-slide {
    width: 520px;
    height: 520px;
    max-width: min(520px, 92vw);
    max-height: min(520px, 92vw);
  }
}

.section-title {
  color: var(--primary-dark);
  font-weight: 700;
}

.value-grid-section {
  background: var(--bg-alt);
}

.compare-page {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-alt) 100%);
}

.compare-grid-section {
  padding: 0.25rem 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.compare-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 26, 43, 0.06);
  padding: 1.25rem 1.1rem 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.compare-card:hover {
  transform: translateY(-3px);
  border-color: #bfd3fb;
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.1);
}

.compare-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dde6f8;
}

.compare-card-head h3 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.compare-product-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #cfe0ff;
  flex: 0 0 2rem;
}

.compare-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.compare-product-link {
  margin-top: 0.95rem;
  text-decoration: none;
}

.compare-product-link:hover,
.compare-product-link:focus {
  color: #fff;
  text-decoration: none;
}

.compare-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  color: var(--text-primary);
  font-size: 0.94rem;
  line-height: 1.38;
}

.compare-check,
.compare-no {
  width: 1.15rem;
  min-width: 1.15rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
}

.compare-check {
  color: var(--primary);
}

.compare-no {
  color: #a8b0be;
}

.compare-wizard {
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.compare-wizard-q + .compare-wizard-q {
  margin-top: 0.85rem;
}

.compare-wizard-option.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.compare-wizard-result {
  margin-top: 0.95rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cfe0ff;
  background: #eef4ff;
}

.compare-bundle-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.compare-bundle-card.is-recommended {
  border-color: #86aefe !important;
  box-shadow: 0 10px 22px rgba(58, 122, 254, 0.16);
  transform: translateY(-2px);
}

.compare-mobile-meta {
  display: none;
}

@media (max-width: 768px) {
  .compare-page .compare-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 82%);
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 0.15rem 0.15rem 0.45rem;
    scrollbar-width: none;
  }

  .compare-page .compare-grid::-webkit-scrollbar {
    display: none;
  }

  .compare-page .compare-card {
    scroll-snap-align: start;
    min-width: 0;
    height: 100%;
  }

  .compare-mobile-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
  }

  .compare-mobile-hint {
    font-size: 0.78rem;
    color: #718096;
  }

  .compare-mobile-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .compare-mobile-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #cfd8ea;
    transition: width 0.2s ease, transform 0.18s ease, background-color 0.18s ease;
    touch-action: manipulation;
  }

  .compare-mobile-dot.is-active {
    width: 20px;
    background: var(--primary);
    transform: scale(1);
  }

  .compare-page .compare-product-link,
  .compare-page .compare-wizard-option {
    touch-action: manipulation;
  }
}

.how-it-works-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.how-it-works-grid {
  align-items: stretch;
}

.how-it-works-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
  padding: 24px;
  text-align: center;
  height: 100%;
}

.how-it-works-icon {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #cfe0ff;
  margin-bottom: 14px;
}

.how-it-works-icon .lottie-player {
  width: 46px;
  height: 46px;
}

.how-it-works-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.how-it-works-cta {
  width: auto;
  min-width: 220px;
}

.how-it-works-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.how-it-works-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.value-item-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.value-item-card:hover {
  transform: translateY(-2px);
  border-color: #bfd3fb;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 26, 43, 0.08);
}

.value-item-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #ccdcff;
}

.value-item-icon .lottie-player {
  width: 20px;
  height: 20px;
}

.value-item-card h5 {
  color: var(--primary-dark);
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-hero-lottie {
  width: 128px;
  height: 128px;
  border-radius: 16px;
  background: var(--primary-light);
  border: 1px solid #ccdcff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-hero-lottie .lottie-player {
  width: 78px;
  height: 78px;
}

.feature-card,
.content-card,
.pricing-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.feature-card:hover,
.content-card:hover,
.pricing-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.1);
  border-color: #b9c8eb;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(58, 122, 254, 0.2);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid #c8dafd;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--cta));
  color: #fff;
  border-radius: 16px;
}

.muted {
  color: var(--text-secondary);
}

.store-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.store-icon {
  display: inline-flex;
}

.store-icon.store-icon-hidden {
  display: none !important;
}

.store-links.single-platform {
  justify-content: center;
}

.store-icon img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-icon img:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .store-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
  }

  .store-icon {
    width: 100%;
    justify-content: center;
  }

  .store-icon img {
    width: 100%;
    max-width: 160px;
    height: 42px;
  }

  .store-links.single-platform {
    grid-template-columns: minmax(0, 1fr);
    max-width: 180px;
  }

  .store-links.single-platform .store-icon {
    grid-column: 1 / -1;
  }

  .store-links .store-icon:last-child {
    grid-column: 1 / -1;
  }
}

.product-download-strip {
  background: linear-gradient(135deg, #f6faff 0%, #eef4ff 100%);
  border: 1px solid #d7e5ff;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 22px rgba(58, 122, 254, 0.08);
}

.product-download-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2956a3;
}

.product-download-quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--primary-dark);
}

.product-download-author {
  font-size: 0.82rem;
  color: #4c5f85;
}

.product-store-links {
  margin-top: 0.85rem;
}

.zen-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.zen-pricing-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 26, 43, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.zen-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
}

.zen-pricing-card.popular {
  transform: scale(1.02);
  box-shadow: 0 20px 36px rgba(58, 122, 254, 0.2);
  border-color: rgba(58, 122, 254, 0.35);
}

.zen-pricing-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.zen-tier-name {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

.zen-tier-subtitle {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.zen-tier-price {
  color: var(--primary-dark);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.zen-tier-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.2rem;
}

.zen-feature-list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.zen-feature-list li {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.zen-feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  transform: translateY(1px);
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: all 0.25s ease;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.add-to-cart-btn:hover {
  background: var(--primary-color-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.zen-popular-badge {
  margin-bottom: 0.75rem;
}

.product-detail-section .section-title {
  color: var(--primary-dark);
}

.ai-product-advisor {
  border: 1px solid #d6e4ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.08);
}

.ai-product-advisor .btn {
  border-radius: 999px;
}

.subscription-start-shell {
  background:
    radial-gradient(circle at top right, rgba(168, 213, 186, 0.2), transparent 42%),
    radial-gradient(circle at top left, rgba(58, 122, 254, 0.08), transparent 36%),
    linear-gradient(180deg, #f9fcff 0%, #f5faf7 100%);
}

.subscription-start-container {
  max-width: 1100px;
}

.subscription-start-title {
  margin: 0;
  color: var(--primary-dark);
}

.subscription-start-subtitle {
  margin-top: 0.65rem;
  font-size: 1.05rem;
}

.subscription-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.subscription-product-card {
  border-radius: 16px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 26, 43, 0.08);
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.subscription-product-heading {
  width: 100%;
}

.subscription-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 26, 43, 0.14);
}

.subscription-product-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: rgba(58, 122, 254, 0.11);
  margin-bottom: 14px;
}

.subscription-product-name {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.subscription-product-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  min-height: 72px;
}

.subscription-product-price {
  margin: 18px 0 16px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.35rem;
}

.subscription-packages {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.subscription-package-box {
  border-radius: 14px;
  border: 1px solid rgba(15, 26, 43, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 26, 43, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.subscription-package-name {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.subscription-package-price {
  margin: 6px 0 4px;
  color: var(--primary-dark);
  font-weight: 700;
}

.subscription-package-description {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.subscription-package-highlights {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.subscription-package-highlights li {
  margin-bottom: 4px;
}

@media (max-width: 991.98px) {
  .zen-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works-card {
    padding: 20px;
  }
}

@media (max-width: 767.98px) {
  .zen-pricing-grid {
    grid-template-columns: 1fr;
  }

  .subscription-start-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .subscription-products-grid {
    grid-template-columns: 1fr;
  }

  .subscription-product-card {
    padding: 24px;
  }

  .subscription-product-description {
    min-height: 0;
  }

  .subscription-package-box {
    min-height: 0;
  }

  .how-it-works-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-it-works-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .zen-pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.download-app {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.download-app h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.download-app p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.login-shell {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  min-height: calc(100vh - 220px);
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 26, 43, 0.08);
  padding: 28px;
}

.login-title {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.45rem;
  text-align: center;
}

.login-form .form-label {
  font-weight: 500;
  color: var(--primary-dark);
}

.login-support {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-support a {
  margin-left: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.login-support a:hover,
.login-support a:focus {
  color: var(--primary-color-dark);
}

.footer-modern {
  background: #0f1a2b;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 20px 30px;
  font-size: 15px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: auto;
}

.footer-col {
  min-width: 0;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-lottie-player {
  width: 170px;
  height: 170px;
  margin-bottom: 10px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-col p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #3a7afe;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact p {
  margin: 6px 0;
}

.footer-icon {
  color: #ffffff;
  line-height: 1;
  transform: translateY(2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.legal-page {
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.legal-container {
  max-width: 900px;
}

.legal-title {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.legal-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.06);
  padding: 22px 22px 18px;
  margin-bottom: 14px;
}

.legal-section h2 {
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin: 0 0 0.55rem;
}

.legal-section p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.62;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.legal-nav-link:hover,
.legal-nav-link:focus {
  border-color: var(--primary);
  color: var(--primary);
  background: #f7fbff;
}

.legal-nav-link-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.legal-nav-link-active:hover,
.legal-nav-link-active:focus {
  color: #ffffff;
  border-color: var(--primary);
  background: #2f66da;
}

.legal-lang-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #ffffff;
}

.legal-lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-lang-btn:hover,
.legal-lang-btn:focus {
  background: #f2f7ff;
  color: var(--primary);
}

.legal-lang-btn.is-active {
  background: var(--primary);
  color: #ffffff;
}

.legal-governing-note {
  margin: 0 0 14px;
  color: #49566a;
  font-size: 0.95rem;
}

.help-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.help-container {
  max-width: 1100px;
}

.help-detail-container {
  max-width: 840px;
}

.help-title {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.help-topic-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.07);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-topic-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border: 1px solid #cfe0ff;
  color: var(--primary-dark);
  font-weight: 700;
}

.help-topic-card h2 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--primary-dark);
}

.help-topic-card p {
  margin: 0 0 4px;
  line-height: 1.55;
}

.help-topic-card .btn {
  align-self: flex-start;
}

.help-detail-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.07);
  padding: 24px 24px 20px;
}

.help-detail-card h2 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 1.06rem;
}

.help-steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  line-height: 1.56;
}

.account-dashboard-page,
.billing-history-page,
.devices-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.account-dashboard-container,
.billing-history-container,
.devices-container,
.sms-credits-container {
  max-width: 980px;
}

/* SMS credits page: tool UI first; long copy lives in collapsed <details> to reduce Safari Reader heuristics. */
.sms-portal-help-details > summary {
  cursor: pointer;
  list-style: none;
}

.sms-portal-help-details > summary::-webkit-details-marker {
  display: none;
}

.sms-portal-help-summary {
  color: var(--bs-primary, #0d6efd);
}

.sms-portal-help-body {
  max-width: 100%;
  overflow-x: clip;
}

.account-dashboard-card,
.billing-history-card,
.devices-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  max-width: 100%;
  overflow-x: clip;
}

/* Keep action buttons full tap targets; wrap to next row instead of shrinking or overflowing on mobile. */
.dashboard-subscription-actions .btn {
  flex-shrink: 0;
}

/* Mobile subscription portal: persistent shortcuts under hamburger header (Dashboard, SMS, Devices, …). */
.subscription-portal-quicknav {
  background: linear-gradient(180deg, #f3f6ff 0%, #eef3ff 100%);
  position: sticky;
  /* Just below Bootstrap .sticky-top navbar (1020); stay above page content when scrolling. */
  z-index: 1018;
  top: calc(48px + env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
}

.subscription-portal-quicknav-inner {
  max-width: 100%;
  justify-content: center;
}

.subscription-portal-quicknav .btn {
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .subscription-portal-quicknav-inner {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .subscription-portal-quicknav {
    /* Desktop navbar (brand + nav row + padding) is taller than 56px; too small a value hides the bar under the header. */
    top: calc(72px + env(safe-area-inset-top, 0px));
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .subscription-portal-quicknav-inner {
    justify-content: center;
  }
}

.account-dashboard-card:hover,
.billing-history-card:hover,
.devices-card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.1);
}

.portal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #d8e2f9;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.portal-icon-badge.icon-success { color: var(--success); }
.portal-icon-badge.icon-warning { color: #b38b00; }
.portal-icon-badge.icon-error { color: var(--error); }

.sms-table-dense th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.sms-table-dense td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.sms-table-dense th,
.sms-table-dense td {
  padding: 0.6rem 0.68rem;
}

.sms-history-footer {
  border-top: 1px solid #dbe5fb;
  padding-top: 0.75rem;
}

.btn,
.add-to-cart-btn {
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.dashboard-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.dashboard-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.billing-history-table th {
  color: var(--primary-dark);
  font-weight: 600;
}

.dashboard-subscription-summary {
  display: grid;
  gap: 6px;
}

.dashboard-subscription-row {
  color: var(--text-primary);
}

.dashboard-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(15, 26, 43, 0.08);
  margin-left: 4px;
}

.dashboard-status-badge.is-active {
  background: #d4f5dd;
  color: #1b7f3b;
}

.dashboard-status-badge.is-canceling {
  background: #ffe9cc;
  color: #b86b00;
}

.dashboard-status-badge.is-canceled {
  background: #e6e6e6;
  color: #555;
}

.dashboard-status-badge.is-past-due {
  background: #ffe0e0;
  color: #b30000;
}

.dashboard-status-badge.is-unpaid {
  background: #ffcccc;
  color: #990000;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.devices-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.devices-empty-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 2px;
}

.devices-limit-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.devices-limit-warning {
  background: #ffe0e0;
  color: #b30000;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 4px 10px rgba(179, 0, 0, 0.08);
}

.warning {
  background: #ffe0e0;
  color: #b30000;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.devices-table th {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.86rem;
}

.devices-table td {
  font-size: 0.88rem;
  vertical-align: middle;
}

.devices-view-toggle .btn.active {
  background: var(--primary-light);
  border-color: #cfe0ff;
  color: var(--primary-dark);
}

.devices-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(15, 26, 43, 0.08);
}

.devices-status-badge.is-active {
  background: #d4f5dd;
  color: #1b7f3b;
}

.devices-status-badge.is-blocked {
  background: #ffe0e0;
  color: #b30000;
}

.devices-status-badge.is-expired {
  background: #ffe9cc;
  color: #b86b00;
}

.devices-status-badge.is-unprovisioned {
  background: #e6e6e6;
  color: #555;
}

.device-qr-box {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfe0ff;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  word-break: break-word;
  text-align: center;
}

.feedback-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.feedback-container {
  max-width: 760px;
}

.feedback-title {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feedback-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(58, 122, 254, 0.12);
  padding: 26px;
}

.feedback-form .form-label {
  color: var(--primary-dark);
  font-weight: 500;
}

.feedback-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.feedback-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-chat-widget-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1160;
}

/* Keep the floating chatbot from blocking cart drawer actions. */
body.cart-drawer-open .ai-chat-widget-root {
  opacity: 0;
  pointer-events: none;
}

.ai-chat-bubble-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(58, 122, 254, 0.22);
  background: linear-gradient(135deg, #d4f5dd 0%, #e0e0ff 100%);
  box-shadow: 0 10px 22px rgba(58, 122, 254, 0.22);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.ai-chat-bubble-btn:hover,
.ai-chat-bubble-btn:focus {
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(58, 122, 254, 0.28);
}

.ai-chat-bubble-btn.is-pulse {
  animation: aiChatPulse 1.3s ease-in-out 0s 2;
}

.ai-chat-bubble-lottie {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ai-chat-bubble-lottie .lottie-player {
  width: 100%;
  height: 100%;
}

@keyframes aiChatPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 122, 254, 0.38);
  }
  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 14px rgba(58, 122, 254, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 122, 254, 0);
  }
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 360px;
  height: 480px;
  border-radius: 16px;
  border: 1px solid #d8e4fd;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 34px rgba(15, 26, 43, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  touch-action: pan-y;
}

.ai-chat-widget-root.is-open .ai-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #e2eafc;
  color: var(--primary-dark);
}

.ai-chat-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-clear-btn {
  border: 1px solid #d6e3ff;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 9px;
  height: 32px;
  padding: 0 9px;
  font-size: 0.75rem;
  line-height: 1;
}

.ai-chat-clear-btn:hover,
.ai-chat-clear-btn:focus {
  background: #eef3ff;
  border-color: #bfd3fb;
}

.ai-chat-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: #fff;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e2eafc;
  background: #f9fbff;
}

.ai-chat-suggestions.is-hidden {
  display: none;
}

.ai-chat-suggestion-btn {
  border: 1px solid #d6e3ff;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.25;
  padding: 6px 10px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.ai-chat-suggestion-btn:hover,
.ai-chat-suggestion-btn:focus {
  background: #eef3ff;
  border-color: #bfd3fb;
}

.ai-chat-suggestion-btn:disabled {
  opacity: 0.55;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ai-chat-message {
  display: flex;
}

.ai-chat-message.user {
  justify-content: flex-end;
}

.ai-chat-message.ai {
  justify-content: flex-start;
}

.ai-chat-bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.42;
  white-space: pre-wrap;
}

.ai-chat-message.user .ai-chat-bubble {
  background: #3a7afe;
  color: #fff;
}

.ai-chat-message.ai .ai-chat-bubble {
  background: #eef3ff;
  color: var(--primary-dark);
}

.ai-chat-bubble-rich {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat-bubble-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ai-chat-bubble-content h4 {
  margin: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #355497;
}

.ai-chat-bubble-content p {
  margin: 0;
}

.ai-chat-bubble-content ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}

.ai-chat-copy-btn {
  border: 1px solid #c6d8ff;
  background: #fff;
  color: #355497;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  padding: 5px 9px;
}

.ai-chat-copy-btn:hover,
.ai-chat-copy-btn:focus {
  background: #edf3ff;
  border-color: #9fbfff;
}

.ai-chat-message.is-loading .ai-chat-bubble {
  opacity: 0.75;
}

.ai-chat-bundle-card {
  border: 1px solid #ccdcff;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.ai-chat-bundle-title {
  font-weight: 700;
  color: #28417a;
  margin-bottom: 2px;
}

.ai-chat-bundle-subtitle {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #4f6289;
}

.ai-chat-bundle-list {
  display: grid;
  gap: 8px;
}

.ai-chat-bundle-item {
  border: 1px solid #d4e0fb;
  border-radius: 10px;
  background: #fff;
  padding: 8px 9px;
}

.ai-chat-bundle-item-title {
  font-weight: 600;
  color: #2d487f;
  font-size: 0.82rem;
}

.ai-chat-bundle-item-sub {
  color: #556a92;
  font-size: 0.76rem;
  margin: 2px 0 6px;
}

.ai-chat-bundle-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9cdf9;
  border-radius: 999px;
  background: #f4f8ff;
  color: #2f4f93;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 8px;
}

.ai-chat-bundle-link:hover,
.ai-chat-bundle-link:focus {
  background: #eaf2ff;
  border-color: #9fbfff;
  color: #26437d;
}

.ai-chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e2eafc;
  background: #fff;
}

@media (max-width: 768px) {
  .login-card {
    max-width: 100%;
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-col-brand {
    align-items: center;
  }

  .footer-contact-line {
    justify-content: center;
  }

  .legal-section {
    padding: 18px 16px 14px;
  }

  .help-topic-grid {
    grid-template-columns: 1fr;
  }

  .help-topic-card .btn {
    align-self: stretch;
  }

  .help-detail-card {
    padding: 18px 16px 14px;
  }

  .feedback-card {
    padding: 18px 16px;
  }

  .account-dashboard-card,
  .billing-history-card,
  .devices-card {
    padding: var(--space-16);
  }

  .sms-table-dense {
    min-width: 720px;
  }

  .sms-table-dense th,
  .sms-table-dense td {
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .sms-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, #ffffff 34%);
    padding-top: 0.55rem;
    padding-bottom: 0.25rem;
    margin-top: 0.55rem;
  }

  .sms-history-footer {
    border-top-color: #d6e2fc;
    margin-top: 0.8rem !important;
  }

  .sms-history-footer .btn {
    min-width: 92px;
  }

  .devices-grid {
    grid-template-columns: 1fr;
  }

  .devices-view-toggle {
    display: none;
  }

  .ai-chat-widget-root {
    right: 10px;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    pointer-events: none;
  }

  .ai-chat-bubble-btn {
    margin-left: auto;
    display: flex;
    pointer-events: auto;
  }

  .ai-chat-panel {
    width: 100%;
    height: min(74dvh, 500px);
    max-height: calc(100dvh - 92px);
    bottom: 66px;
    right: 0;
    left: 0;
    pointer-events: none;
  }
}

@keyframes siteFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .main-content,
  .feature-card,
  .content-card,
  .pricing-card,
  .account-dashboard-card,
  .billing-history-card,
  .devices-card,
  .btn,
  .add-to-cart-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cta);
  --bs-btn-border-color: var(--cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cta-hover);
  --bs-btn-hover-border-color: var(--cta-hover);
  --bs-btn-focus-shadow-rgb: 37, 99, 235;
  --bs-btn-active-bg: var(--cta-hover);
  --bs-btn-active-border-color: var(--cta-hover);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-focus-shadow-rgb: 58, 122, 254;
}

.btn-outline-secondary {
  --bs-btn-color: var(--text-secondary);
  --bs-btn-border-color: var(--border-color);
  --bs-btn-hover-color: var(--primary-dark);
  --bs-btn-hover-bg: var(--earth-neutral);
  --bs-btn-hover-border-color: #c2bba8;
}

.form-control,
.form-select {
  border-color: var(--border-color);
  background-color: var(--bg-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(58, 122, 254, 0.18);
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(58, 122, 254, 0.18);
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--error) !important;
}

.marketplace-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.marketplace-header h1 {
  color: var(--primary-dark);
  font-weight: 600;
}

.marketplace-card {
  background: #fff;
  border: 1px solid #dbe5fb;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
  padding: var(--space-24);
}

.community-auth-shell {
  background: radial-gradient(circle at top right, rgba(58, 122, 254, 0.12), transparent 42%), linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  min-height: calc(100vh - 220px);
  min-height: calc(100svh - 220px);
  display: flex;
  align-items: flex-start;
}

.community-auth-shell > .container {
  width: 100%;
}

.community-auth-card {
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(58, 122, 254, 0.14);
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.unified-login-card {
  overflow: hidden;
}

.unified-login-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(58, 122, 254, 0.08);
  border: 1px solid #cfe0ff;
}

.unified-login-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 240ms ease, opacity 220ms ease, transform 220ms ease;
}

.unified-login-panel.is-active {
  max-height: 920px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.modern-login-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background: linear-gradient(140deg, rgba(107, 70, 223, 0.14), rgba(219, 184, 129, 0.16));
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(107, 70, 223, 0.28);
  box-shadow: inset 0 1px 2px rgba(34, 24, 58, 0.08);
}

.modern-login-highlight {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #6b46df 0%, #5232c8 100%);
  box-shadow: 0 7px 16px rgba(82, 50, 200, 0.34);
  transition: transform 180ms ease;
}

.modern-login-segment {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.56rem 0.9rem;
  color: #4b3f73;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.modern-login-segment:hover {
  transform: translateY(-1px);
  color: #3f2a94;
}

.modern-login-segment.is-active {
  color: #fff;
}

.modern-login-stack {
  position: relative;
  min-height: 560px;
  display: grid;
}

/* Inactive panel was position:absolute + full inset; on some mobile WebKit builds it still
   sat above the active panel for hit-testing. Only render the active panel. */
.modern-login-stack .unified-login-panel:not(.is-active) {
  display: none !important;
}

.modern-login-stack .unified-login-panel.is-active {
  grid-area: 1 / 1;
  display: flex;
  position: relative;
  inset: auto;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.unified-login-panel-auth {
  display: flex;
  flex-direction: column;
}

.auth-form-sticky {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.auth-form-sticky > button[type="submit"] {
  margin-top: auto;
}

.unified-login-panel-auth .small.text-muted.mt-3 {
  margin-top: 0.9rem !important;
}

@media (max-width: 991.98px) {
  .community-auth-shell {
    min-height: 0;
  }

  .community-auth-card {
    min-height: 0;
  }

  .modern-login-stack {
    min-height: 0;
  }
}

.header-user-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5fb;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: #334155;
  background: #f8fbff;
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe5fb;
}

.community-verify-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(58, 122, 254, 0.12), rgba(168, 213, 186, 0.2));
  border: 1px solid #bfd3fb;
  border-radius: 14px;
  padding: 14px 16px;
}

.community-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #cfe0ff;
  box-shadow: 0 8px 20px rgba(58, 122, 254, 0.2);
}

.community-profile-avatar-lg {
  width: 120px;
  height: 120px;
}

.community-cover-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe5fb;
}

.community-cover-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.community-cover-upload {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 8px;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.community-badge-icon {
  font-weight: 700;
  line-height: 1;
}

.community-badge-verified {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.community-badge-top-seller {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.community-badge-active-member {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.community-message-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe5fb;
}

.community-notify-dropdown {
  width: min(360px, 92vw);
}

.community-notify-item {
  white-space: normal;
}

.community-stat-card {
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.community-stat-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.community-stat-card span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.community-login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 43, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1180;
}

.community-login-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.community-login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(92vw, 420px);
  border-radius: 16px;
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 40px rgba(58, 122, 254, 0.26);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1181;
}

.community-login-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.community-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.community-chat-row {
  display: flex;
}

.community-chat-row-mine {
  justify-content: flex-end;
}

.community-chat-bubble {
  max-width: min(84%, 660px);
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px 12px;
}

.community-chat-bubble-mine {
  background: #eaf3ff;
  border-color: #c9dcff;
}

.community-chat-attachment {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe5fb;
}

.community-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.community-achievement-card {
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.community-achievement-icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.community-post-highlight {
  border-color: #9fc0ff;
  box-shadow: 0 0 0 2px rgba(58, 122, 254, 0.16), 0 12px 26px rgba(58, 122, 254, 0.12);
  animation: community-post-highlight-pulse 1200ms ease-out 1;
}

.community-feed-wrap {
  max-width: 760px;
}

.community-composer-card {
  border-radius: 14px;
  border: 1px solid #dbe4fa;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 26, 43, 0.06);
}

.community-composer-title,
.community-composer-body {
  border-radius: 12px;
}

.community-composer-body {
  resize: vertical;
  min-height: 110px;
}

.community-feed-card {
  border-radius: 14px;
  border: 1px solid #dbe4fa;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 26, 43, 0.06);
}

.community-post-header {
  border-bottom: 1px solid #edf2ff;
  padding-bottom: 10px;
}

.community-post-menu-btn {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  line-height: 1;
  color: #5f6f8d;
}

.community-post-time {
  margin-top: 2px;
}

.community-post-reaction-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-post-reaction-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e4fb;
  border-radius: 999px;
  background: #ffffff;
  color: #4c5f86;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
}

.community-like-pulse {
  animation: community-like-pulse 280ms ease-out;
}

.community-like-flash-on {
  animation: community-like-flash-on 360ms ease-out;
}

.community-like-flash-off {
  animation: community-like-flash-off 360ms ease-out;
}

@keyframes community-like-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.11);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes community-like-flash-on {
  0% {
    color: inherit;
    background-color: transparent;
  }
  45% {
    color: #1f4fbd;
    background-color: rgba(58, 122, 254, 0.16);
  }
  100% {
    color: inherit;
    background-color: transparent;
  }
}

@keyframes community-like-flash-off {
  0% {
    color: inherit;
    background-color: transparent;
  }
  45% {
    color: #5f6f8f;
    background-color: rgba(143, 159, 191, 0.16);
  }
  100% {
    color: inherit;
    background-color: transparent;
  }
}

.community-post-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid #dbe5fb;
  border-radius: 999px;
  background: #f8fbff;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #516387;
}

.community-post-metrics strong {
  color: #2f4879;
}

.community-hashtag-link {
  color: #2f67dd;
  font-weight: 600;
  text-decoration: none;
}

.community-hashtag-link:hover,
.community-hashtag-link:focus {
  text-decoration: underline;
}

.for-you-feed {
  display: grid;
  gap: 1rem;
}

.for-you-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.for-you-body {
  padding: 0.9rem 1rem 1rem;
}

.for-you-meta {
  display: flex;
  gap: 0.9rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.for-you-video,
.for-you-image {
  width: 100%;
  display: block;
  max-height: 78vh;
  object-fit: cover;
  background: #000;
}

.salon-cover-wrap {
  height: 230px;
  overflow: hidden;
  background: #f3f6ff;
}

.salon-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.salon-profile {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(18, 44, 105, 0.15);
}

.salon-masonry {
  columns: 3 220px;
  column-gap: 12px;
}

.salon-media-tile {
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f6f8ff;
}

.salon-media-tile img {
  width: 100%;
  display: block;
}

.salon-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.salon-reel-tile {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: #0f172a;
}

.salon-reel-tile img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.salon-reel-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
}

.salon-play-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.78rem;
}

.salon-viewer {
  width: min(92vw, 980px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: #000;
}

.salon-viewer::backdrop {
  background: rgba(2, 6, 23, 0.7);
}

.salon-viewer img,
.salon-viewer video {
  width: 100%;
  max-height: 88vh;
  display: block;
}

.community-post-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf2ff;
}

.community-post-like-form {
  display: inline-flex;
  position: relative;
}

.community-post-action-btn {
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
}

.community-like-plus-one {
  position: absolute;
  right: -6px;
  top: -10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2f67dd;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

.community-like-plus-one.is-visible {
  animation: community-like-plus-one-rise 560ms ease-out;
}

.community-share-copied {
  border-color: #9bc0ff !important;
  background: #eef4ff !important;
  color: #2e5196 !important;
}

.community-inline-comment-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.community-recent-comments {
  display: grid;
  gap: 6px;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.booking-calendar-col {
  border: 1px solid rgba(20, 26, 38, 0.1);
  border-radius: 0.75rem;
  padding: 0.55rem;
  background: #fff;
  min-height: 84px;
}

.booking-chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  margin: 0.08rem;
  border: 1px solid transparent;
}

.booking-chip-pending,
.booking-status-pending {
  background: #fff9e8;
  border-color: #f6cf80;
}

.booking-chip-confirmed,
.booking-status-confirmed {
  background: #ecfdf5;
  border-color: #86efac;
}

.booking-chip-completed,
.booking-status-completed {
  background: #eff6ff;
  border-color: #93c5fd;
}

.booking-chip-cancelled,
.booking-status-cancelled {
  background: #fff1f2;
  border-color: #fda4af;
}

.admin-login-icon-btn {
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.45rem 0.6rem;
  min-width: 2.2rem;
}

.community-comment-sort-toggle {
  display: inline-flex;
  background: #edf2fb;
  border: 1px solid #e0e9fb;
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.community-comment-sort-btn {
  border: 0;
  background: transparent;
  color: #607199;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.community-comment-sort-btn.is-active {
  background: #fff;
  color: #2f4f93;
  box-shadow: 0 1px 2px rgba(16, 32, 62, 0.15);
}

.community-recent-comments-list {
  display: grid;
  gap: 6px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.community-recent-comments-list.is-sorting {
  opacity: 0.55;
  transform: translateY(2px);
}

.community-recent-comment-item {
  border-radius: 12px;
  background: #f2f5fb;
  border: 1px solid #e5ecfb;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: #2e405f;
  transition: transform 180ms ease, opacity 180ms ease;
  transition-delay: var(--comment-stagger-delay, 0ms);
}

.community-recent-comments-list.is-sorting .community-recent-comment-item {
  opacity: 0.78;
  transform: translateY(3px);
}

.community-recent-comment-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.community-recent-comment-author {
  font-weight: 700;
}

.community-recent-comment-time {
  font-size: 0.75rem;
  color: #6f7f9e;
  white-space: nowrap;
}

.community-view-all-comments-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2f58aa;
  text-decoration: none;
}

.community-view-all-comments-link:hover,
.community-view-all-comments-link:focus {
  text-decoration: underline;
}

.community-inline-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbe5fb;
}

.community-inline-comment-input {
  border-radius: 999px;
  background: #f3f6fb;
  border-color: #e3ebfb;
}

.community-inline-comment-input:focus {
  background: #fff;
}

.community-inline-comment-submit {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.community-like-tap-bounce {
  animation: community-like-tap-bounce 180ms ease-out;
}

@keyframes community-like-tap-bounce {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.93);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes community-like-plus-one-rise {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(0.95);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-15px) scale(1.04);
  }
}

.reels-feed-stack {
  display: grid;
  gap: 16px;
}

.reels-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d6e3ff;
  background: #0f1728;
}

.reels-media-wrap {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.reels-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  padding: 14px;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0) 0%, rgba(10, 14, 24, 0.78) 62%, rgba(10, 14, 24, 0.92) 100%);
}

.reels-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reels-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .community-like-pulse,
  .community-like-flash-on,
  .community-like-flash-off,
  .community-like-plus-one.is-visible,
  .community-like-tap-bounce,
  .community-recent-comments-list,
  .community-recent-comment-item,
  .community-post-highlight {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes community-post-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 122, 254, 0.35), 0 12px 26px rgba(58, 122, 254, 0.12);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(58, 122, 254, 0.16), 0 12px 26px rgba(58, 122, 254, 0.12);
  }
}

.community-share-modal {
  border-radius: 18px;
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 24px 56px rgba(18, 36, 74, 0.24);
  overflow: hidden;
}

.community-share-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
}

.community-share-overlay.is-open {
  display: flex;
}

.community-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 43, 0.55);
  backdrop-filter: blur(3px);
}

.community-share-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin: 0 auto;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.community-share-overlay.is-open .community-share-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.community-share-header {
  justify-content: center;
  border-bottom: none;
  padding: 1.15rem 1.25rem 0.55rem;
}

.community-share-header .modal-title {
  font-weight: 700;
  color: var(--primary-dark);
}

.community-share-body {
  padding: 0.75rem 1.25rem 1rem;
}

.community-share-qr-shell {
  width: fit-content;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid #d9e5ff;
  background: #fff;
  box-shadow: 0 10px 26px rgba(58, 122, 254, 0.14);
}

.community-share-footer {
  justify-content: center;
  gap: 0.6rem;
  border-top: none;
  padding: 0.35rem 1.25rem 1.2rem;
}

.community-share-close-btn {
  background: transparent;
  border-color: #d4ddf3;
  color: #5a6680;
}

.community-share-close-btn:hover,
.community-share-close-btn:focus {
  background: #f4f7ff;
  border-color: #c3d3f8;
  color: #2f3f63;
}

body.community-share-open {
  overflow: hidden;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
}

.marketplace-listing-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.marketplace-listing-card:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 30px rgba(15, 26, 43, 0.1);
  border-color: #bfd3fb;
}

.marketplace-post-time {
  margin-top: 3px;
}

.marketplace-card-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid #dbe5fb;
  border-radius: 999px;
  background: #f8fbff;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #516387;
}

.marketplace-card-metrics strong {
  color: #2f4879;
}

.marketplace-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-like-form {
  display: inline-flex;
}

.marketplace-copy-link-btn.is-copied {
  border-color: #94b7ff;
  background: #eef4ff;
  color: #2a4f99;
}

.marketplace-card-media-wrap {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.marketplace-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid #dbe5fb;
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  background: #eaf1ff;
  color: var(--primary-dark);
  border: 1px solid #cbdbff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
}

.marketplace-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5fb;
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.24rem 0.55rem;
  color: var(--text-secondary);
}

.marketplace-verified-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(58, 122, 254, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  box-shadow: 0 8px 18px rgba(58, 122, 254, 0.3);
}

.marketplace-verified-badge.is-detail {
  left: auto;
  right: 12px;
}

.marketplace-filters {
  border-color: #cfdbf8;
}

.marketplace-search-input {
  border-width: 2px;
}

.marketplace-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-skeleton-list {
  display: grid;
  grid-template-columns: inherit;
  gap: var(--space-16);
  width: 100%;
}

.marketplace-skeleton-card {
  height: 260px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf3ff 25%, #f7faff 40%, #edf3ff 55%);
  background-size: 240% 100%;
  animation: marketplaceSkeleton 1.1s linear infinite;
}

@keyframes marketplaceSkeleton {
  0% { background-position: 0 50%; }
  100% { background-position: 200% 50%; }
}

.marketplace-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.marketplace-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.marketplace-thumb {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe5fb;
}

.marketplace-richtext {
  white-space: pre-wrap;
  line-height: 1.6;
}

.marketplace-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-16);
  align-items: start;
}

.marketplace-hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.marketplace-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #dbe5fb;
}

.marketplace-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.marketplace-gallery-btn {
  border: 0;
  padding: 0;
  background: transparent;
}

.marketplace-gallery-thumb {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe5fb;
}

.marketplace-sticky-sidebar {
  position: sticky;
  top: 96px;
}

.marketplace-divider {
  margin: 1.1rem 0;
  border-color: #e5ecfb;
}

@media (min-width: 992px) {
  .marketplace-filters-sticky {
    position: sticky;
    top: 84px;
    z-index: 5;
  }
}

@media (max-width: 1199.98px) {
  .marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .marketplace-detail-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-sticky-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .marketplace-card {
    padding: var(--space-16);
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-filters-sticky {
    position: static;
  }

  .marketplace-stepper {
    overflow-x: auto;
    white-space: nowrap;
  }

  .marketplace-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .marketplace-thumb {
    height: 96px;
  }
}

/* Homepage marketplace redesign */
.marketplace-home-hero {
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.marketplace-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: #0f1a2b;
}

.marketplace-global-search .form-control,
.marketplace-global-search .form-select {
  border-radius: 10px;
}

.marketplace-hero-lottie-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
}

.marketplace-hero-lottie {
  min-height: 260px;
}

.marketplace-mini-card {
  overflow: hidden;
}

.marketplace-mini-media {
  position: relative;
  display: block;
}

.marketplace-badge-corner,
.marketplace-chip-corner {
  position: absolute;
  right: 10px;
  top: 10px;
}

.marketplace-chip-corner {
  background: #fff8db;
}

.featured-listings-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.featured-listings-track {
  display: flex;
  gap: 1rem;
  min-width: max-content;
}

.featured-listing-card {
  width: 320px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
  color: inherit;
  scroll-snap-align: start;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 26, 43, 0.1);
}

.featured-listing-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.seo-content-block p {
  color: #4b5563;
  line-height: 1.7;
}

.marketplace-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.marketplace-action-item {
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
  padding: 0.95rem 0.9rem;
  color: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.marketplace-action-item:hover,
.marketplace-action-item:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 26, 43, 0.1);
  border-color: #bfd3fb;
}

.marketplace-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid #cfe0ff;
  background: #edf3ff;
  margin-bottom: 0.45rem;
}

.marketplace-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.marketplace-step {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #dbe5fb;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.marketplace-step.is-active {
  color: var(--primary-dark);
  border-color: #bcd0ff;
  background: #edf3ff;
}

.marketplace-step-panel {
  display: none;
}

.marketplace-step-panel.is-active {
  display: block;
}

.marketplace-dropzone {
  border: 2px dashed #c8d8fa;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #f8fbff;
}

.marketplace-dropzone.is-dragover {
  border-color: #3a7afe;
  background: #edf3ff;
}

.marketplace-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-readmore summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.marketplace-hero-fade {
  animation: marketplaceHeroFadeIn 220ms ease-out both;
}

@keyframes marketplaceHeroFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.marketplace-mini-card {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.marketplace-mini-card:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 28px rgba(15, 26, 43, 0.10);
}

.marketplace-mini-media .marketplace-verified-badge {
  left: 10px;
  top: 10px;
}

.marketplace-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 9999;
  max-height: none;
  overflow: visible;
  border-radius: 10px;
  border: 1px solid #dbe5fb;
  box-shadow: 0 12px 26px rgba(15, 26, 43, 0.10);
}

.marketplace-dropdown {
  position: relative;
}

.marketplace-dropdown .dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .marketplace-dropdown > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .marketplace-dropdown:hover > .dropdown-menu,
  .marketplace-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 70ms, 70ms, 0s;
  }
}

.marketplace-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  height: auto;
  overflow: visible;
  white-space: normal;
}

.marketplace-menu-modern {
  min-width: 360px;
  margin-top: 0.55rem;
  border: 1px solid #d8e4fd;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 30px rgba(15, 26, 43, 0.14);
  padding: 0.5rem;
}

.marketplace-menu-item span:last-child {
  white-space: nowrap;
  overflow-wrap: normal;
}

.marketplace-menu-content {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.marketplace-menu-title {
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.menu-new-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  vertical-align: middle;
}

.menu-new-pill.is-intro-pulse {
  animation: menu-new-pill-pulse 1.05s ease-in-out 2;
}

@keyframes menu-new-pill-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
  45% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.marketplace-menu-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.marketplace-menu-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid #d8e4fd;
  background: #edf3ff;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
}

.navbar-nav .nav-link[href="/marketplace"] {
  position: relative;
}

.navbar-nav .nav-link[href="/marketplace"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  background: transparent;
  border-radius: 999px;
  transition: background-color 140ms ease;
}

.navbar-nav .nav-link[href="/marketplace"]:hover::after,
.navbar-nav .nav-link[href="/marketplace"].active::after {
  background: rgba(58, 122, 254, 0.85);
}

.navbar-nav .marketplace-dropdown .nav-link:hover {
  text-shadow: 0 0 10px rgba(58, 122, 254, 0.28);
}

.marketplace-menu-item:hover,
.marketplace-menu-item:focus {
  background: var(--primary-light);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .marketplace-global-search-wrap {
    position: sticky;
    top: 74px;
    z-index: 9;
    padding: 0.4rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid #dbe5fb;
  }
}

.marketplace-preview-section {
  background: linear-gradient(180deg, rgba(58, 122, 254, 0.03) 0%, rgba(245, 247, 250, 0.55) 100%);
}

.marketplace-preview-shell {
  border-radius: 8px;
  border: 1px solid #dbe5fb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
}

.market-community-showcase {
  border-radius: 14px;
  border: 1px solid #dbe5fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.1);
}

.market-community-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d8e4fd;
}

.market-community-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  color: #4b5563;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.market-community-tab:hover {
  transform: translateY(-1px);
}

.market-community-tab.is-active {
  background: #3B82F6;
  color: #fff;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.28);
}

.market-community-panel {
  display: none;
}

.market-community-panel.is-active {
  display: block;
  animation: marketplaceHeroFadeIn 180ms ease-out both;
}

.market-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.market-community-card {
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
  padding: 0.95rem 0.9rem;
}

.market-community-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.market-community-card h3 {
  font-size: 0.96rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.market-community-side-panel {
  border: 1px solid #dbe5fb;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.market-community-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.market-community-bullets li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 1.2rem;
  position: relative;
}

.market-community-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

.marketplace-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.marketplace-preview-card {
  border: 1px solid #dbe5fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 26, 43, 0.08);
  padding: 0.95rem 0.85rem;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.marketplace-preview-card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 24px rgba(15, 26, 43, 0.1);
  border-color: #bfd3fb;
}

.marketplace-preview-card h3 {
  font-size: 0.96rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.marketplace-preview-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.marketplace-preview-thumb {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe5fb;
}

.marketplace-preview-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid #cfe0ff;
  background: #edf3ff;
}

.marketplace-preview-lottie {
  animation: heroFadeIn 0.55s ease both;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marketplace-preview-lottie-wrap {
  width: min(360px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dbe5fb;
  box-shadow: 0 12px 26px rgba(58, 122, 254, 0.12);
}

.marketplace-preview-lottie-player {
  width: 100%;
  height: min(300px, 60vw);
}

.market-community-feed {
  border: 1px solid #dbe5fb;
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem;
}

.market-community-feed-list {
  display: grid;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.market-community-feed-item {
  display: block;
  text-decoration: none;
  color: var(--primary-dark);
  border: 1px solid #e5ecfb;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  background: #fbfdff;
}

.market-community-feed-item:hover,
.market-community-feed-item:focus {
  border-color: #c9dcff;
  background: #eef4ff;
}

@media (max-width: 991.98px) {
  .marketplace-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-preview-grid {
    grid-template-columns: 1fr;
  }

  .market-community-grid {
    grid-template-columns: 1fr;
  }

  .market-community-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-preview-lottie-wrap {
    width: min(320px, 100%);
  }

  .marketplace-preview-lottie-player {
    height: min(250px, 62vw);
  }
}

@media (max-width: 576px) {
  .marketplace-action-grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumb-shell {
  padding: 16px 0 24px;
}

.zen-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  opacity: 0;
  animation: breadcrumb-fade-in 0.4s ease forwards;
}

.zen-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
}

.zen-breadcrumbs a:hover {
  color: var(--primary, #3a7afe);
}

.zen-breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

.zen-breadcrumb-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes breadcrumb-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .breadcrumb-shell {
    padding: 16px 0;
  }

  .zen-breadcrumbs {
    font-size: 13px;
    gap: 6px;
  }
}

/* ==========================================================================
   Luxury Minimal Design Refresh (Phase 1)
   ========================================================================== */
:root {
  --primary: #6b46df;
  --primary-dark: #1b1730;
  --primary-color: var(--primary);
  --primary-color-dark: var(--primary-dark);
  --primary-light: #efe9ff;

  --text-primary: #221f33;
  --text-secondary: #6f6887;
  --border-color: #e7deef;
  --bg-main: #fdfbf8;
  --bg-alt: #f5f1fb;

  --cta: #5b34d5;
  --cta-hover: #4b27ba;
  --shadow-soft: 0 14px 34px rgba(43, 30, 74, 0.1);

  --bs-primary: #6b46df;
  --bs-primary-rgb: 107, 70, 223;
  --bs-secondary: #6f6887;
  --bs-secondary-rgb: 111, 104, 135;
  --bs-border-color: #e7deef;
  --bs-body-color: #221f33;
  --bs-body-bg: #fdfbf8;
}

body {
  font-family: "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 480px at 88% -8%, rgba(107, 70, 223, 0.07) 0%, rgba(107, 70, 223, 0) 66%),
    radial-gradient(820px 320px at -8% 22%, rgba(221, 185, 126, 0.1) 0%, rgba(221, 185, 126, 0) 72%),
    var(--bg-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.015em;
  color: #1e1a2e;
}

.navbar {
  background: rgba(253, 251, 248, 0.88) !important;
  border-bottom: 1px solid rgba(152, 128, 214, 0.25) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(32, 24, 56, 0.06);
}

.community-top-chrome,
.marketplace-top-chrome {
  background: linear-gradient(180deg, rgba(247, 242, 255, 0.96) 0%, rgba(255, 252, 248, 0.97) 100%);
  border-bottom: 1px solid rgba(146, 118, 210, 0.24);
  box-shadow: 0 10px 20px rgba(35, 24, 60, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link,
.dropdown-item {
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.hero {
  background:
    linear-gradient(180deg, #fcf9ff 0%, #fdfbf8 62%, #fdfbf8 100%);
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-slide {
  border: 1px solid rgba(146, 118, 210, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(107, 70, 223, 0.08) 0%, rgba(254, 251, 245, 0.96) 52%, rgba(219, 184, 129, 0.08) 100%);
  box-shadow: 0 24px 50px rgba(39, 28, 67, 0.11);
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(107, 70, 223, 0.32);
}

.hero-carousel .carousel-indicators .active {
  background-color: #6b46df;
  width: 26px;
  border-radius: 999px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(23, 18, 40, 0.62);
  border-radius: 999px;
  background-size: 56% 56%;
}

.section-title {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feature-card,
.content-card,
.value-item-card,
.market-community-card,
.market-community-side-panel,
.ai-product-advisor,
.product-download-strip,
.zen-pricing-card {
  border-radius: 18px;
  border: 1px solid rgba(147, 118, 213, 0.2);
  box-shadow: 0 14px 30px rgba(38, 27, 65, 0.08);
}

.feature-card:hover,
.content-card:hover,
.value-item-card:hover,
.market-community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(36, 25, 63, 0.12);
  border-color: rgba(107, 70, 223, 0.42);
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary,
.add-to-cart-btn {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #6b46df 0%, #5232c8 100%);
  box-shadow: 0 10px 22px rgba(82, 50, 200, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
  color: #fff;
  background: linear-gradient(135deg, #5c38d3 0%, #4629b6 100%);
  box-shadow: 0 14px 24px rgba(82, 50, 200, 0.36);
}

.btn-outline-secondary,
.btn-outline-primary {
  border-width: 1px;
  border-color: rgba(107, 70, 223, 0.35);
  color: #4d36a6;
  background: rgba(255, 255, 255, 0.78);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #3f2a94;
  border-color: rgba(107, 70, 223, 0.55);
  background: rgba(239, 233, 255, 0.92);
}

.tag {
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4d329d;
  background: linear-gradient(120deg, rgba(107, 70, 223, 0.15), rgba(219, 184, 129, 0.24));
  border: 1px solid rgba(107, 70, 223, 0.24);
}

.muted {
  color: #6f6887;
}

.mobile-drawer,
.cart-drawer {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.99) 0%, rgba(250, 245, 255, 0.98) 100%);
}

.mobile-link,
.mobile-sublink-title {
  color: #261f3c;
}

.mobile-accordion-panel.open,
.dropdown-panel.open {
  background: rgba(243, 236, 255, 0.68);
  border: 1px solid rgba(139, 106, 210, 0.22);
  border-radius: 14px;
}

@media (max-width: 768px) {
  .hero-slide {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(38, 27, 65, 0.11);
  }

  .feature-card,
  .content-card,
  .value-item-card,
  .market-community-card,
  .market-community-side-panel,
  .ai-product-advisor,
  .product-download-strip,
  .zen-pricing-card {
    border-radius: 14px;
  }
}

/* ==========================================================================
   Luxury Minimal Design Refresh (Phase 2)
   ========================================================================== */
.home-hero-lux .container {
  position: relative;
}

.home-hero-lux .container::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 8%;
  width: clamp(180px, 24vw, 300px);
  height: clamp(180px, 24vw, 300px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(106, 72, 223, 0.08) 0%, rgba(106, 72, 223, 0) 70%);
  pointer-events: none;
  filter: blur(1px);
}

.home-value-section .value-item-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 255, 0.9));
}

.home-value-grid .col-md-6:nth-child(odd) .home-value-card {
  transform: translateY(10px);
}

.home-value-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(137, 106, 206, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 239, 255, 0.9) 100%);
  box-shadow: 0 18px 32px rgba(33, 24, 58, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-value-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(107, 70, 223, 0.46);
  box-shadow: 0 22px 38px rgba(33, 24, 58, 0.16);
}

.home-value-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.home-value-card-pill {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #2d2250;
  margin-right: auto;
}

.home-value-item-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0;
  color: #5a38cc;
  background: transparent;
  border: none;
  padding: 0;
  flex: 0 0 auto;
}

.auth-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  margin-left: 0.28rem;
  border: 1px solid rgba(107, 70, 223, 0.32);
  background: rgba(239, 233, 255, 0.6);
  color: #4d36a6 !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.auth-switch-link:hover,
.auth-switch-link:focus {
  background: rgba(107, 70, 223, 0.12);
  border-color: rgba(107, 70, 223, 0.48);
  color: #3f2a94 !important;
}

.home-value-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.home-value-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0.35rem;
}

@media (max-width: 991.98px) {
  .home-value-grid .col-md-6:nth-child(odd) .home-value-card {
    transform: none;
  }
}

.home-popular-section .feature-card {
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(91, 52, 213, 0.12) 0%, rgba(255, 251, 246, 0.94) 52%, rgba(219, 184, 129, 0.14) 100%);
}

.home-marketplace-featured-section .feature-card {
  border-radius: 20px;
  border-color: rgba(130, 98, 201, 0.25);
}

.home-highlights-section .feature-card {
  border: 1px solid rgba(147, 118, 213, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 242, 255, 0.8));
}

.home-download-section .container {
  max-width: 840px;
}

.home-download-section .container {
  text-align: center;
  border: 1px solid rgba(146, 118, 210, 0.22);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(107, 70, 223, 0.09) 0%, rgba(255, 252, 248, 0.95) 70%);
  box-shadow: 0 16px 34px rgba(35, 24, 60, 0.1);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.home-market-community-section .market-community-showcase {
  border-radius: 24px;
  border: 1px solid rgba(146, 118, 210, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 255, 0.9));
  box-shadow: 0 18px 36px rgba(39, 28, 67, 0.08);
}

.home-final-cta-section .cta-band {
  border-radius: 24px;
  background: linear-gradient(126deg, #2a1f4e 0%, #5431be 42%, #6b46df 100%);
  box-shadow: 0 20px 36px rgba(37, 24, 70, 0.3);
}

.home-final-cta-section .cta-band,
.home-final-cta-section .cta-band h1,
.home-final-cta-section .cta-band h2,
.home-final-cta-section .cta-band h3,
.home-final-cta-section .cta-band h4,
.home-final-cta-section .cta-band h5,
.home-final-cta-section .cta-band h6,
.home-final-cta-section .cta-band p {
  color: #ffffff;
}

.product-page-shell {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.product-page-shell::before {
  content: "";
  position: absolute;
  right: 0;
  top: 40px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(107, 70, 223, 0.16) 0%, rgba(107, 70, 223, 0) 72%);
  pointer-events: none;
  transform: translateX(24%);
}

.product-intro-shell {
  position: relative;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(147, 118, 213, 0.24);
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(107, 70, 223, 0.08) 0%, rgba(255, 252, 248, 0.95) 62%);
  box-shadow: 0 18px 34px rgba(39, 28, 67, 0.1);
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}

.product-intro-shell .content-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.product-pricing-shell {
  margin-top: 2.2rem !important;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(146, 118, 210, 0.35);
}

.product-page-shell .zen-pricing-card.popular {
  border-color: rgba(107, 70, 223, 0.52);
  box-shadow: 0 22px 38px rgba(74, 44, 156, 0.22);
}

.marketplace-home-hero-lux {
  background:
    radial-gradient(860px 360px at 0% 8%, rgba(219, 184, 129, 0.16) 0%, rgba(219, 184, 129, 0) 74%),
    radial-gradient(980px 460px at 100% 0%, rgba(107, 70, 223, 0.18) 0%, rgba(107, 70, 223, 0) 72%),
    linear-gradient(180deg, #fcf8ff 0%, #fdfbf8 100%);
  border-bottom: 1px solid rgba(146, 118, 210, 0.18);
}

.marketplace-trending-shell .marketplace-card {
  border-radius: 16px;
  border: 1px solid rgba(146, 118, 210, 0.22);
  background: linear-gradient(180deg, rgba(248, 243, 255, 0.88), rgba(255, 255, 255, 0.92));
}

.marketplace-stream-shell {
  position: relative;
}

.marketplace-stream-shell .marketplace-mini-card {
  border-radius: 16px;
  border: 1px solid rgba(147, 118, 213, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 255, 0.9));
}

.marketplace-stream-shell .marketplace-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(36, 25, 63, 0.12);
}

.marketplace-stream-salons {
  background: linear-gradient(180deg, rgba(247, 241, 255, 0.56), rgba(253, 251, 248, 0));
}

@media (max-width: 991.98px) {
  .product-page-shell::before {
    width: 190px;
    height: 190px;
    right: 0;
    top: 20px;
    transform: translateX(18%);
  }

  .product-intro-shell {
    border-radius: 18px;
  }

  .home-download-section .container {
    border-radius: 16px;
    padding: 1.1rem;
  }
}
