:root {
  --primary-color: hsl(20, 100%, 50%); /* Orange */
  --secondary-color: #000000; /* Pure Black headers */
  --accent-color: hsl(150, 18%, 40%); /* Soft sage green */
  --bg-color: hsl(30, 20%, 98%); /* Soft warm cream bg */
  --card-bg: hsl(0, 0%, 100%); /* Pure white card bg */
  --header-bg: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
  --text-color: #000000; /* Pure Black text */
  --text-muted: #000000; /* Pure Black muted text */
  --border-color: hsl(30, 10%, 90%);
  
  --font-family-title: "Playfair Display", Georgia, serif;
  --font-family-body: "Outfit", sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 32px rgba(14, 0, 0, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --safety-box-bg: hsl(350, 80%, 96%);
  --safety-box-border: hsl(350, 65%, 48%);
}

[data-theme="dark"] {
  --primary-color: hsl(20, 100%, 50%); /* Orange */
  --secondary-color: hsl(210, 20%, 93%);
  --accent-color: hsl(150, 20%, 65%);
  --bg-color: hsl(210, 20%, 8%); /* Dark charcoal/navy bg */
  --card-bg: hsl(210, 20%, 14%); /* Soft dark card bg */
  --header-bg: rgba(18, 18, 18, 0.85); /* Semi-transparent dark charcoal */
  --text-color: hsl(210, 20%, 93%);
  --text-muted: hsl(210, 10%, 68%);
  --border-color: hsl(210, 20%, 20%);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
  
  --safety-box-bg: hsl(350, 40%, 15%);
  --safety-box-border: hsl(350, 75%, 65%);
}

.btn-theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.btn-theme-toggle:hover {
  background-color: var(--border-color);
  color: var(--primary-color);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-family-title);
  color: var(--secondary-color);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* Glassmorphism utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Layout Containers */
.mr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.mr-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.mr-logo {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mr-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.mr-nav {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.admin-only {
  display: none !important;
}

.nav-link {
  font-family: var(--font-family-title);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

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

.mr-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.currency-selector {
  font-family: var(--font-family-title);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--secondary-color);
  font-weight: 500;
  cursor: pointer;
}

.currency-selector optgroup {
  font-family: var(--font-family-body);
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.currency-selector option {
  font-family: var(--font-family-body);
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: normal;
  padding: 4px;
}

/* Main Main Section */
.mr-main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 350px);
}

/* Views display controls */
.mr-view {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hidden {
  display: none !important;
}

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

/* Buttons System */
.mr-btn-primary, .mr-btn-secondary {
  font-family: var(--font-family-title);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.mr-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.mr-btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.mr-btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.mr-btn-secondary:hover {
  background-color: rgba(138, 106, 91, 0.05);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-subtext {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

.hero-graphic {
  display: flex;
  justify-content: center;
}

.graphic-card {
  width: 320px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-badge {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--font-family-title);
}

.progress-bar-container {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Founder Hook Card */
.helen-hook-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  align-items: center;
  margin: 3rem 0;
}

.author-avatar {
  font-size: 3.5rem;
  text-align: center;
}

.author-quote {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.author-name {
  font-family: var(--font-family-title);
  font-weight: 600;
  color: var(--primary-color);
}

/* Framework Cards */
.framework-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.framework-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.framework-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.framework-card.do-now { background-color: rgba(138, 106, 91, 0.06); }
.framework-card.prepare { background-color: rgba(229, 176, 152, 0.06); }
.framework-card.ask { background-color: rgba(74, 62, 61, 0.04); }
.framework-card.wait { background-color: rgba(0, 0, 0, 0.02); }

/* Testimonials Grid */
.testimonials-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-family-title);
  font-weight: 600;
  color: var(--primary-color);
}

/* Products Grid view */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-badge {
  font-size: 0.75rem;
  background-color: rgba(255, 85, 0, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--font-family-title);
}

.product-card h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0;
}

.product-target {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.product-price {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
}

.product-cta {
  margin-top: 1.5rem;
}

/* Bundle View Card */
.bundle-sales-card {
  max-width: 800px;
  margin: 2rem auto;
  padding: 3.5rem;
}

.bundle-badge {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--font-family-title);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.bundle-sales-card h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.bundle-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.pricing-card-container {
  background: rgba(255, 85, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.price-strike-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.price-main-label {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: var(--font-family-title);
  margin-bottom: 1.5rem;
}

.bundle-inclusions h3 {
  margin-bottom: 1.25rem;
}

.inclusion-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inclusion-checklist li {
  font-size: 1.05rem;
}

/* Locker portal grids */
.locker-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.locker-empty-state p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.locker-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.locker-card {
  padding: 2rem;
}

.locker-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.locker-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.locker-buttons a {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
  width: 100%;
}

.locker-btn-all {
  grid-column: span 2;
  background-color: var(--secondary-color) !important;
  color: white !important;
  border: 1.5px solid var(--secondary-color) !important;
}

.locker-btn-all:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Analytics Admin Dashboard CSS */
.analytics-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.analytics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.analytics-metric-card {
  padding: 1.75rem;
  text-align: center;
}

.metric-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-family-title);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.analytics-details {
  padding: 2rem;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.analytics-table th, .analytics-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.analytics-table th {
  font-family: var(--font-family-title);
  font-weight: 600;
  color: var(--secondary-color);
}

/* Modal Checkout Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background-color: rgba(74, 62, 61, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  width: 460px;
  max-width: 95%;
  padding: 2.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.close-modal {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(255, 85, 0, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  background-color: white;
}

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

.form-row {
  display: flex;
  gap: 1rem;
}

.col-6 {
  flex: 0 0 calc(50% - 0.5rem);
}

.env-info-box {
  background-color: #faf8f5;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.env-keys-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.env-keys-line code {
  background-color: #f1ede8;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Spinner and processing animation styling */
.processing-state {
  text-align: center;
  padding: 2rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(138, 106, 91, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-state {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
}

.success-state h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.success-state p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Toast simulation notifications */
.email-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  z-index: 300;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.email-toast.hidden {
  display: none !important;
}

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

.email-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.close-toast {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.email-toast-body {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer Section */
.mr-footer {
  background-color: #2b2423;
  color: #edeae6;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.mr-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.6fr;
  gap: 4rem;
}

.footer-logo {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-family-title);
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: #c9c3bd;
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-email {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #8c827c;
  font-size: 0.85rem;
}

/* Legal view layouts */
.legal-content {
  padding: 3rem;
  line-height: 1.8;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* About & contact details */
.about-container {
  padding: 3rem;
}

.about-container h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-quote {
  font-size: 1.2rem;
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  color: var(--secondary-color);
}

/* FAQ Accordions */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-muted);
  display: none;
  animation: slideDown 0.25s ease-out forwards;
}

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

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Responsive breakdowns */
@media (max-width: 1050px) {
  .mr-header-container {
    padding: 1rem 1.5rem;
  }
  .mr-nav {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
  .mr-header-actions {
    gap: 0.75rem;
  }
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 0;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-graphic {
    order: -1;
  }
  .helen-hook-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .framework-grid {
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .mr-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .mr-header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }
  .hero-section {
    padding: 1.25rem 0 2.5rem 0;
  }
  .hero-content h1 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.75px;
  }
  .hero-subtext {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }
  .mr-nav {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 1.25rem;
    padding: 0.25rem 0.5rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .mr-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    flex-shrink: 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .mr-header-actions {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }
  .framework-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .inclusion-checklist {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GROWTH FEATURES: Email Popup, Upsell, Newsletter, Savings
   ============================================================ */

/* --- Email Capture Popup --- */
#email-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.35s ease;
}
#email-popup-overlay.hidden { display: none; }

#email-popup-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: slideUp 0.35s ease;
}

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.popup-close-btn:hover { background: var(--border-color); }

.popup-gift-icon {
  font-size: 3rem;
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
}
#email-popup-box h3 {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
#email-popup-box p {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.popup-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.2s;
}
.popup-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.popup-no-spam {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
  margin-top: 0.25rem !important;
}

/* --- Newsletter Strip --- */
.newsletter-strip {
  background: linear-gradient(135deg, hsl(20, 100%, 50%) 0%, hsl(350, 85%, 45%) 100%);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}
.newsletter-strip h3 {
  font-family: var(--font-family-title);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: white;
}
.newsletter-strip p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: #000;
}
.newsletter-form input:focus { outline: 2px solid white; }
.newsletter-form input::placeholder { color: #888; }
.btn-newsletter {
  background: #000;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-newsletter:hover { opacity: 0.85; }
.newsletter-success-msg {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.75rem;
  opacity: 0.95;
}

/* --- Bundle Savings Badge on Product Cards --- */
.bundle-savings-callout {
  background: linear-gradient(135deg, hsl(20, 100%, 95%), hsl(20, 100%, 88%));
  border: 1px solid hsl(20, 100%, 75%);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
[data-theme="dark"] .bundle-savings-callout {
  background: hsl(20, 60%, 15%);
  border-color: hsl(20, 80%, 40%);
}
.bundle-savings-callout span {
  font-size: 0.82rem;
  color: hsl(20, 100%, 35%);
  font-weight: 600;
  line-height: 1.4;
}
[data-theme="dark"] .bundle-savings-callout span { color: hsl(20, 100%, 70%); }
.bundle-savings-callout .btn-savings-cta {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.bundle-savings-callout .btn-savings-cta:hover { opacity: 0.85; }

/* --- Post-Purchase Upsell Card --- */
#checkout-upsell {
  background: linear-gradient(135deg, hsl(20, 100%, 97%), hsl(20, 60%, 92%));
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  animation: slideUp 0.4s ease;
}
[data-theme="dark"] #checkout-upsell {
  background: hsl(20, 40%, 14%);
}
#checkout-upsell h4 {
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
#checkout-upsell p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.upsell-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.upsell-original-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}
.upsell-new-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}
.upsell-badge {
  background: hsl(142, 69%, 40%);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.btn-upsell-yes {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
  margin-bottom: 0.5rem;
  display: block;
}
.btn-upsell-yes:hover { opacity: 0.88; }
.btn-upsell-no {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

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