:root {
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --brand-primary: #d97706;
  --brand-secondary: #78350f;
  --brand-accent: #f59e0b;
  --brand-dark-blue: #0f172a; /* Deeper for better contrast */
  --text-heading: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;
  --shadow-soft:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-card:
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #000;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
  position: relative;
}

/* Utility Styles */

.mb-small {
  margin-bottom: 1rem;
}
.mb-base {
  margin-bottom: 2rem;
}
.mb-large {
  margin-bottom: 4rem;
}

.text-white {
  color: #fff;
}
.text-brand {
  color: var(--brand-primary);
}
.text-muted {
  color: var(--text-muted);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-column {
  display: flex;
  flex-direction: column;
}

/* Global Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.08);
  background-color: #fff;
}

.form-control::placeholder {
  color: #94a3b8;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.bg-alt {
  background-color: var(--bg-alt);
}
.bg-dark {
  background-color: var(--brand-secondary);
}

.rounded {
  border-radius: var(--radius-md);
}
.shadow {
  box-shadow: var(--shadow-soft);
}

.op-invisible {
  opacity: 0;
}
.op-faded {
  opacity: 0.6;
}

.max-w-1000 {
  max-width: 1000px;
}
.cta-text-large {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #fff;
}
.cta-p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}
.cta-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.cta-input {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: none;
  flex: 1;
  font-weight: 600;
  outline: none;
}

.t-white {
  color: #fff;
}
.b-white {
  background: #fff;
}
.f-white {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-soft);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-secondary);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--brand-primary);
}

.header-cta {
  display: flex;
  gap: 1rem;
}

/* --- BUTTONS --- */
.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
}

.btn-primary {
  background: var(--brand-secondary);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--brand-primary);
  color: #fff;
}

.btn-accent:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Coupon Reveal Button Component */
.coupon-container {
  position: relative;
  display: inline-block;
  margin-right: 35px; /* Reduced to sit tighter */
  vertical-align: middle;
}

.coupon-code-reveal {
  position: absolute;
  right: -35px;
  top: 0;
  background: #fff;
  border: 2px dashed var(--brand-primary);
  color: var(--text-heading);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 8px;
  height: 44px; /* Slightly shorter */
  box-sizing: border-box;
  min-width: 120px;
  z-index: 1;
  transition: var(--transition);
}

.reveal-btn-v2 {
  position: relative;
  z-index: 2;
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 44px; /* Matches code reveal height */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px; /* Reduced to fit better in columns */
}

.coupon-container:hover .reveal-btn-v2,
.coupon-container.revealed .reveal-btn-v2 {
  transform: translateX(-30px);
  background: var(--brand-secondary);
}

.coupon-container:active .reveal-btn-v2 {
  transform: translateX(-30px) scale(0.98);
}

/* --- HERO BENTO GRID --- */
.hero-bento-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 16px;
  height: 520px;
  margin-top: 1.5rem;
}

.hero-bento-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
}

.hero-bento-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-side-item {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Internal Slider (Left Block) */
.bento-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.bento-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.bento-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Bento Arrows */
.bento-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
  color: var(--text-heading);
  transition: all 0.2s ease;
}

.bento-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.bento-prev {
  left: 20px;
}

.bento-next {
  right: 20px;
}

/* Footer */
.site-footer {
  background: #451a03;
  padding: 6rem 0 2rem;
  color: #f8fafc;
  /*font-size: 0.95rem;*/
}

.footer-grid-v5 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-col-v5 h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col-v5 ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-v5 ul li a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col-v5 ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom-v5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-socials a:hover {
  color: #fff;
}

/* Utility Classes */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mb-base {
  margin-bottom: 2rem;
}

.mb-large {
  margin-bottom: 3rem;
}

.mt-base {
  margin-top: 2rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.text-muted {
  color: var(--text-muted);
}

.color-heading {
  color: var(--text-heading);
}

.border-b {
  border-bottom: 1px solid;
}

.border-dark {
  border-color: currentColor;
}

.bg-alt {
  background: var(--bg-alt);
}

.text-center {
  text-align: center;
}

/* --- CIRCULAR CASH BACK --- */
.cashback-circles {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

.cb-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 130px;
}

.cb-circle {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin-bottom: 1rem;
  padding: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cb-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important;
}

.cb-percent {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cb-circle.has-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cb-bg-color, transparent);
  opacity: 0.1;
  z-index: 0;
}

.cb-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- CLEARANCE CARDS --- */
.clearance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.clearance-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.clearance-card:hover {
  box-shadow: var(--shadow-soft);
}

.cl-top {
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  height: 100px;
}

.cl-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-heading);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.cl-logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  z-index: 1;
}

.cl-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none !important;
}

.cl-logo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.clearance-card:hover .cl-logo-wrap::after {
  background: rgba(0, 0, 0, 0.02);
}

.cl-bottom {
  padding: 1.25rem;
}

.cl-store-name {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.cl-desc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  height: 2.8em;
  overflow: hidden;
}

.cl-btn {
  width: 100%;
  padding: 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  transition: 0.2s;
}

.cl-btn:hover {
  background: #f1f5f9;
}

/* --- ACCORDION FAQ --- */
.faq-wrap {
  max-width: auto;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.faq-icon {
  font-size: 1.5rem;
  color: #64748b;
  font-weight: 300;
  transition: 0.3s;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content p {
  padding-bottom: 1.5rem;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* --- TRENDING LIST --- */
.trending-list-v5 {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  background: transparent;
  border-radius: 12px;
}

.trending-item-v5 {
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 120px 100px 1fr 220px; /* Increased last column slightly */
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.trending-item-v5:hover {
  box-shadow: var(--shadow-soft);
}

.t-logo-v5 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.t-logo-v5 img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.t-discount-v5 {
  text-align: center;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.t-val-v5 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: block;
}

.t-type-v5 {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-info-v5 {
  padding: 0 2rem;
}

.t-info-v5 h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.t-info-v5 p {
  font-size: 0.85rem;
  color: var(--text-body);
}

.t-action-v5 {
  padding-left: 1rem;
}

.coupon-btn-v5-alt {
  background: var(--brand-primary);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  width: 100%;
}

.coupon-btn-v5-alt span {
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
  padding-left: 10px;
  margin-left: 10px;
}

/* --- SHOPPING CARDS SECTION --- */
.shopping-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-card:hover {
  box-shadow: var(--shadow-hover);
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sc-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sc-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-heading);
}

.sc-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff7ed;
  color: #ea580c;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #ffedd5;
}

.sc-save-amt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.sc-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.sc-pill {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 1.5rem;
}

.sc-check {
  display: flex;
  align-items: center;
}

.sc-btn {
  width: 100%;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  display: block;
  text-decoration: none;
}

.sc-btn:hover {
  background: var(--brand-primary);
}

.sc-card-img {
  margin-top: 2rem;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.sc-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .hero-bento-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-bento-main {
    height: 400px;
  }
  .hero-bento-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 250px;
  }
  .footer-grid-v5 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .trending-item-v5 {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .t-discount-v5 {
    border: none;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0;
  }
  .t-info-v5 {
    padding: 0;
  }
  .t-action-v5 {
    padding: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-bento-main {
    height: 300px;
  }
  .hero-bento-side-stack {
    grid-template-columns: 1fr;
    height: auto;
  }
  .bento-side-item {
    height: 200px;
  }
  .footer-grid-v5 {
    grid-template-columns: 1fr;
  }
  .footer-bottom-v5 {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- RESPONSIVE MENU & DRAWER --- */
.hamburger-v5 {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  transform: translateX(0%);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.close-mobile-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .header-cta,
  .nav-links {
    display: none;
  }
  .hamburger-v5 {
    display: block;
  }
  .header-flex {
    justify-content: space-between;
  }
}

/* --- COUPON MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 540px;
  margin: auto;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-heading);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.modal-logo-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.modal-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.modal-logo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  /*background: rgba(217, 119, 6, 0.1);*/
  z-index: -1;
}

.modal-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.store-link {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.coupon-copy-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.coupon-copy-box:hover {
  border-color: var(--brand-primary);
  background: #fff;
}

.code-text {
  flex: 1;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--brand-dark-blue);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
}

.copy-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
}

.copy-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(120, 53, 15, 0.3);
}

.copy-btn:active {
  transform: translateY(1px);
}

.btn-success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-text {
  display: block;
  transition: all 0.3s ease;
}

.copy-btn.copied .btn-text {
  opacity: 0;
  transform: translateY(-30px);
}

.copy-btn.copied .btn-success-icon {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.copy-btn.copied {
  background: #059669 !important;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.modal-redeem-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fffbeb;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 800;
  padding: 1.125rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 1px solid rgba(217, 119, 6, 0.1);
}

.modal-redeem-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

.modal-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.feedback-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.feedback-icons {
  display: flex;
  gap: 0.75rem;
}

.feedback-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.feedback-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.modal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 0 -2.5rem 1.5rem;
}

.modal-details {
  text-align: left;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
}

.modal-details h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-details p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- MODAL MOBILE OPTIMIZATION --- */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 1rem 0.75rem;
  }
  .modal-content {
    border-radius: 20px;
  }
  .modal-body {
    padding: 2.25rem 1.25rem 1.5rem;
  }
  .modal-logo {
    width: 70px;
    height: 70px;
    padding: 10px;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .coupon-copy-box {
    padding: 6px 6px 6px 16px;
    flex-direction: column;
    gap: 12px;
  }
  .code-text {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }
  .copy-btn {
    width: 100%;
    padding: 0.8rem;
  }
}