/* ==========================================================================
   WIPA LANDING PAGES & SALES PAGES DESIGN SYSTEM EXTENSION
   Compliant with WIPA Clean SaaS, 60-30-10 Rule & Theme-Adaptive Standards
   ========================================================================== */

/* ==========================================================================
   PAGE RESETS FOR LANDING & SALE PAGES
   Override app shell flex layout (display: flex; height: 100vh; overflow: hidden)
   from style.css to ensure normal vertical document flow and smooth scrolling.
   ========================================================================== */
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body,
body.app-body,
body.landing-page {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Container & Reading Constraints */
.landing-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .landing-container {
    padding: 0 16px;
  }
}

.landing-prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Domain Top Header / Alliance Navbar */
.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(16, 18, 20, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

[data-theme="light"] .landing-topbar {
  background: rgba(255, 255, 255, 0.92);
}

.landing-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.landing-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--jira-hover);
  border: 1px solid var(--border-subtle);
}

.landing-brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.landing-brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav-link {
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.landing-nav-link:hover {
  color: var(--text-primary);
  background: var(--jira-hover);
}

@media (max-width: 860px) {
  .landing-nav-link {
    display: none;
  }
  .landing-brand-text span {
    display: none;
  }
  .landing-brand-text h1 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .landing-topbar-inner {
    height: 56px;
  }
  .landing-brand-logo {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .domain-switcher-btn {
    padding: 5px 8px;
    font-size: 0.74rem;
  }
  .domain-dropdown-menu {
    width: min(280px, calc(100vw - 24px));
    right: 0;
  }
}

/* Domain Switcher Pill */
.domain-switcher-pill {
  position: relative;
  display: inline-block;
}

.domain-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.domain-switcher-btn:hover {
  border-color: var(--accent-primary);
}

.domain-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  width: 260px;
  background: var(--bg-popover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}

.domain-switcher-pill:hover .domain-dropdown-menu,
.domain-switcher-pill:focus-within .domain-dropdown-menu {
  display: block;
}

.domain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}

.domain-item:hover {
  background: var(--jira-hover);
}

.domain-item.active {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Hero Section */
.landing-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
}

.landing-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 18px;
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 40px 0 28px;
  }
  .landing-hero-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-bottom: 14px;
    white-space: normal;
    text-align: center;
  }
  .landing-hero-title {
    font-size: 1.85rem;
    margin-bottom: 12px;
  }
  .landing-hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }
  .landing-hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .landing-hero-actions a,
  .landing-hero-actions button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
  .hero-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .landing-hero-title {
    font-size: 1.55rem;
  }
  .hero-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hero-stat-card {
    padding: 12px 8px;
  }
  .hero-stat-num {
    font-size: 1.35rem;
  }
  .hero-stat-label {
    font-size: 0.68rem;
  }
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bento Grid System */
.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .bento-grid-3, .bento-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .bento-grid-2, .bento-grid-3, .bento-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bento-card {
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.bento-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.bento-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.bento-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

/* Section Header */
.landing-section {
  padding: 56px 0;
}

@media (max-width: 768px) {
  .landing-section {
    padding: 36px 0;
  }
  .landing-section-header {
    margin-bottom: 24px;
  }
  .landing-section-title {
    font-size: 1.55rem;
  }
  .landing-section-subtitle {
    font-size: 0.9rem;
  }
}

.landing-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.landing-section-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 8px;
}

.landing-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.landing-section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   PRODUCT BUNDLE WRAPPER BLOCK (.salepage-products-wrapper)
   Core feature for sales pages grouping 1 or more products
   ========================================================================== */
.salepage-products-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .salepage-products-wrapper {
    padding: 20px 14px;
    margin: 24px 0;
    border-radius: var(--radius-lg);
  }
}

.salepage-products-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #3B82F6, #F59E0B, #8B5CF6);
}

.wrapper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.wrapper-header-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrapper-header-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.wrapper-badge-pill {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Cards Grid inside Wrapper */
.wrapper-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .wrapper-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .wrapper-header-text h3 {
    font-size: 1.15rem;
  }
  .wrapper-products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wrapper-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .wrapper-summary-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
}

.wrapper-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.wrapper-product-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.wrapper-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wrapper-product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--jira-hover);
  color: var(--text-muted);
}

.wrapper-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.wrapper-product-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.wrapper-product-outcome {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.wrapper-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.wrapper-product-features li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wrapper-product-features li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Wrapper Summary / Total Row */
.wrapper-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.wrapper-summary-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.wrapper-summary-text strong {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.wrapper-summary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-emerald);
  color: #0B0F19;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.wrapper-summary-cta:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* ==========================================================================
   SAN SINH THAI (E-COMMERCE CATALOG & STOREFRONT STYLES)
   ========================================================================== */
.sst-store-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
}

@media (max-width: 768px) {
  .sst-store-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .sst-search-wrap {
    width: 100%;
    min-width: 0;
  }
}

.sst-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sst-filter-pill {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sst-filter-pill.active, .sst-filter-pill:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.sst-search-wrap {
  position: relative;
  min-width: 240px;
}

.sst-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 0.84rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.sst-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Catalog Product Grid */
.sst-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .sst-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.sst-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.sst-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.sst-product-thumb {
  height: 160px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.sst-product-origin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #0B0F19;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.sst-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sst-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sst-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sst-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.sst-product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.sst-product-outcome {
  font-size: 0.76rem;
  color: var(--accent-emerald);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.sst-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.sst-product-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sst-btn-order {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sst-btn-order:hover {
  background: var(--accent-primary-hover);
}

/* ==========================================================================
   INTERACTIVE INTAKE & GOOGLE 1-CLICK AUTH FORM
   ========================================================================== */
.intake-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .intake-form-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .google-auth-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .choice-chips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .choice-chips-grid {
    grid-template-columns: 1fr;
  }
}

.google-auth-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.google-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3B82F6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.google-details {
  display: flex;
  flex-direction: column;
}

.google-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.google-email {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-switch-account {
  font-size: 0.74rem;
  color: var(--accent-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  outline: none;
}

.choice-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.choice-chip {
  padding: 8px 12px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.choice-chip.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
}

.btn-submit-intake {
  width: 100%;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B0F19;
  background: var(--accent-emerald);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-submit-intake:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Toast Message */
.landing-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

.landing-toast.show {
  display: flex;
}

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

@media (max-width: 480px) {
  .landing-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   LANDING FOOTER
   ========================================================================== */
.landing-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

@media (max-width: 768px) {
  .landing-footer {
    padding: 32px 0 20px;
  }
}

/* ==========================================================================
   LANDING PORTAL BLOCKS HUB (INTEGRATED ON PRODUCT MATRIX)
   ========================================================================== */
.landing-portal-blocks-container {
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.landing-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-hub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-hub-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(87, 157, 255, 0.3);
}

.landing-hub-reset-btn {
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}
.landing-hub-reset-btn:hover {
  color: var(--text-primary);
}

.landing-portal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 1200px) {
  .landing-portal-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.landing-portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.landing-portal-card:hover {
  transform: translateY(-2px);
  border-color: var(--portal-color, var(--accent-primary));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.landing-portal-card.active {
  border-color: var(--portal-color, var(--accent-primary));
  background: var(--portal-bg, rgba(59, 130, 246, 0.08));
  box-shadow: 0 0 0 1.5px var(--portal-color, var(--accent-primary)), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.landing-portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--portal-color, var(--accent-primary));
}

.portal-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.portal-domain-chip {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-link-btn {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-fast);
}
.portal-link-btn:hover {
  color: var(--text-primary);
  border-color: var(--portal-color, var(--accent-primary));
  background: var(--jira-hover);
}

.portal-name {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.25;
}

.portal-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

.portal-footer-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.67rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 2px;
}

.portal-stat-pill {
  font-weight: 700;
  color: var(--portal-color, var(--accent-primary));
}

/* ==========================================================================
   SALE PAGE TIER WRAPPER BLOCKS (IN-ZONE WRAPPERS)
   ========================================================================== */
.salepage-tier-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px 10px 12px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: all var(--transition-fast);
  position: relative;
}

.salepage-tier-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .salepage-tier-wrapper {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .salepage-tier-wrapper:hover {
  border-color: #94A3B8 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.salepage-wrapper-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .salepage-wrapper-top {
  border-bottom-color: #E2E8F0;
}

.salepage-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.salepage-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-theme="light"] .salepage-chip-tag {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
  font-weight: 800;
}

.salepage-chip-tag.standalone-chip {
  background: rgba(100, 116, 139, 0.15);
  border-color: rgba(100, 116, 139, 0.35);
  color: var(--text-muted);
}

[data-theme="light"] .salepage-chip-tag.standalone-chip {
  background: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
  font-weight: 800;
}

.salepage-domain-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(87, 157, 255, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.salepage-domain-pill:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

[data-theme="light"] .salepage-domain-pill {
  background: #F0F9FF;
  color: #0369A1 !important;
  border: 1.5px solid #BAE6FD !important;
  font-weight: 700;
}
[data-theme="light"] .salepage-domain-pill:hover {
  background: #E0F2FE;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

.salepage-title-text {
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

[data-theme="light"] .salepage-title-text {
  color: #090D16 !important;
  font-weight: 800;
}

.salepage-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.salepage-wrapped-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.salepage-tier-wrapper.standalone-tier-wrapper {
  border-style: dashed;
  background: transparent;
}

[data-theme="light"] .salepage-tier-wrapper.standalone-tier-wrapper {
  background: #F8FAFC !important;
  border: 1.5px dashed #CBD5E1 !important;
}

/* ==========================================================================
   LANDING PORTAL CARDS - LIGHT MODE OVERHAUL
   ========================================================================== */
[data-theme="light"] .landing-portal-blocks-container {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .landing-hub-title {
  color: #090D16;
}

[data-theme="light"] .landing-portal-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .landing-portal-card:hover {
  background: #FFFFFF;
  border-color: var(--portal-color, #0284C7);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .landing-portal-card.active {
  background: #F0F9FF;
  border-color: var(--portal-color, #0284C7);
  box-shadow: 0 0 0 2px var(--portal-color, #0284C7), 0 4px 14px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .portal-domain-chip {
  color: #090D16;
  font-weight: 800;
}

[data-theme="light"] .portal-name {
  color: #090D16;
  font-weight: 800;
}

[data-theme="light"] .portal-tagline {
  color: #334155;
  font-weight: 500;
}

[data-theme="light"] .portal-footer-stats {
  color: #334155;
  border-top-color: #E2E8F0;
  font-weight: 600;
}

[data-theme="light"] .portal-link-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #090D16;
  font-weight: 600;
}
[data-theme="light"] .portal-link-btn:hover {
  border-color: var(--portal-color, #0284C7);
  background: #F1F5F9;
}

/* ==========================================================================
   HORIZONTAL SALE PAGE LANES (KHỐI DÀN NGANG KÈM 1 BLOCK ĐẠI DIỆN TRANG SALE)
   ========================================================================== */
.zone-products-grid.wrapped-horizontal-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.salepage-horizontal-lane {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 14px;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  width: 100%;
  transition: all var(--transition-fast);
  position: relative;
}

.salepage-horizontal-lane:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .salepage-horizontal-lane {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .salepage-horizontal-lane:hover {
  border-color: #94A3B8 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.salepage-horizontal-lane.standalone-lane {
  border-style: dashed;
}

[data-theme="light"] .salepage-horizontal-lane.standalone-lane {
  border: 1.5px dashed #CBD5E1 !important;
  background: #F8FAFC !important;
}

/* 1 Block Đại Diện Cho Chính Trang Sale Page Chứa */
.salepage-lead-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  position: relative;
}

.salepage-lead-card:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

[data-theme="light"] .salepage-lead-card {
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
}

[data-theme="light"] .salepage-lead-card:hover {
  background: #F0F9FF !important;
  border-color: #0284C7 !important;
}

.salepage-lead-card.standalone-lead-card {
  background: rgba(100, 116, 139, 0.05);
  border-style: dashed;
  cursor: default;
}

[data-theme="light"] .salepage-lead-card.standalone-lead-card {
  background: #F1F5F9 !important;
  border: 1.5px dashed #CBD5E1 !important;
}

.salepage-lead-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 6px 0;
  line-height: 1.35;
  font-family: var(--font-heading);
}

[data-theme="light"] .salepage-lead-title {
  color: #090D16 !important;
}

.salepage-lead-outcome {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="light"] .salepage-lead-outcome {
  color: #334155 !important;
}

.salepage-lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
}

[data-theme="light"] .salepage-lead-footer {
  border-top-color: #E2E8F0;
}

.salepage-product-count-badge {
  color: var(--text-muted);
}

[data-theme="light"] .salepage-product-count-badge {
  color: #475569;
}

.salepage-open-arrow {
  color: var(--accent-primary);
}

[data-theme="light"] .salepage-open-arrow {
  color: #0284C7;
}

/* Dàn Ngang Sản Phẩm */
.salepage-items-horizontal-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  align-content: start;
}

@media (max-width: 1024px) {
  .salepage-horizontal-lane {
    grid-template-columns: 1fr;
  }
}

/* Stage Badges & Filters */
.node-stage-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  white-space: nowrap;
}

.node-stage-badge.stage-1 {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.node-stage-badge.stage-2 {
  background: rgba(59, 130, 246, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.node-stage-badge.stage-3 {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.node-stage-badge.stage-4 {
  background: rgba(139, 92, 246, 0.15);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .node-stage-badge.stage-1 {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

[data-theme="light"] .node-stage-badge.stage-2 {
  background: #F0F9FF;
  color: #0284C7;
  border-color: #BAE6FD;
}

[data-theme="light"] .node-stage-badge.stage-3 {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

[data-theme="light"] .node-stage-badge.stage-4 {
  background: #FAF5FF;
  color: #7E22CE;
  border-color: #E9D5FF;
}

/* Primary Stage Filter in Toolbar */
.primary-stage-filter {
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 700;
}

[data-theme="light"] .primary-stage-filter {
  border-color: #0284C7 !important;
  color: #090D16 !important;
  background: #F0F9FF !important;
}


