/* Vibrant Blue Theme & Card Enhancements */
[data-accent-color="a-c-c2"][data-bs-theme="light"] {
  --text: #0f172a;
  --text-second: #334155;
  --text-third: #64748b;
  --background: #f0f7ff;
  --background-secondary: #e0f2fe;
  --primary: #2563eb;
  --accent: #3b82f6;

  --text-lightest: color-mix(in srgb, var(--text) 25%, white);
  --text-lighter: color-mix(in srgb, var(--text) 50%, white);
  --text-darker: color-mix(in srgb, var(--text) 50%, black);
  --text-darkest: color-mix(in srgb, var(--text) 25%, black);

  --background-lightest: #ffffff;
  --background-lighter: color-mix(in srgb, var(--background) 75%, white);
  --background-darker: color-mix(in srgb, var(--background) 75%, black);
  --background-darkest: color-mix(in srgb, var(--background) 50%, black);

  --background-secondary-lightest: color-mix(in srgb, var(--background-secondary) 75%, white);
  --background-secondary-lighter: color-mix(in srgb, var(--background-secondary) 50%, white);
  --background-secondary-darker: color-mix(in srgb, var(--background-secondary) 50%, black);
  --background-secondary-darkest: color-mix(in srgb, var(--background-secondary) 75%, black);

  --primary-lightest: color-mix(in srgb, var(--primary) 20%, white);
  --primary-lighter: color-mix(in srgb, var(--primary) 50%, white);
  --primary-darker: color-mix(in srgb, var(--primary) 65%, black);
  --primary-darkest: color-mix(in srgb, var(--primary) 35%, black);

  --accent-lightest: color-mix(in srgb, var(--accent) 18%, white);
  --accent-lighter: color-mix(in srgb, var(--accent) 50%, white);
  --accent-darker: color-mix(in srgb, var(--accent) 70%, black);
  --accent-darkest: color-mix(in srgb, var(--accent) 40%, black);

  --border-subtle: #dbeafe;
  --border-light: #bfdbfe;
  --border-base: #93c5fd;
  --border-strong: #60a5fa;
}

[data-accent-color="a-c-c2"][data-bs-theme="dark"] {
  --text: #f8fafc;
  --text-second: #94a3b8;
  --text-third: #64748b;
  --background: #0b1329;
  --background-secondary: #111c38;
  --primary: #3b82f6;
  --accent: #60a5fa;

  --accent-lightest: color-mix(in srgb, var(--accent) 20%, #0b1329);
  --accent-lighter: color-mix(in srgb, var(--accent) 45%, #0b1329);
  --border-subtle: #1e293b;
  --border-light: #1e3a8a;
  --border-base: #2563eb;
  --border-strong: #3b82f6;
}

/* Bigger, Cleaner, Whole-Card Clickable & Zoom-In on Hover */
.coupon-card.coupon-card-clickable {
  cursor: pointer;
  background-color: var(--background-lightest) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease !important;
  will-change: transform;
  overflow: hidden;
}

.coupon-card.coupon-card-clickable:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.18);
  border-color: var(--accent) !important;
  z-index: 2;
}

/* Prevent image-only zoom so the whole card zooms cleanly */
.coupon-card.coupon-card-clickable:hover .banner-image {
  transform: none !important;
}

/* Expanded Card Banner Image */
.coupon-card.coupon-card-clickable .banner-section {
  height: 225px !important;
  overflow: hidden;
  background-color: var(--background-secondary);
}

.coupon-card.coupon-card-clickable .banner-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Compact body so expanded image stands out */
.coupon-card.coupon-card-clickable .card-body {
  padding: 1rem 1.15rem 1.1rem !important;
}

.coupon-card.coupon-card-clickable .card-title {
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--text);
}

.coupon-card.coupon-card-clickable .btn-reveal {
  background-color: var(--primary) !important;
  transition: background-color 0.2s ease;
}

.coupon-card.coupon-card-clickable .btn-reveal:hover {
  background-color: #1d4ed8 !important;
}

/* Ensure theme toggle button is clearly visible */
#themeToggle.btn-theme-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--background-secondary);
  border: 1px solid var(--border-light);
  padding: 0;
  flex-shrink: 0;
}

[data-bs-theme="dark"] #themeToggle .theme-icon-light {
  display: none !important;
}

[data-bs-theme="dark"] #themeToggle .theme-icon-dark {
  display: block !important;
}

[data-bs-theme="light"] #themeToggle .theme-icon-light {
  display: block !important;
}

[data-bs-theme="light"] #themeToggle .theme-icon-dark {
  display: none !important;
}

/* 4-Section Navbar Pills */
.FreeStuff-section-nav .nav-link {
  border: 1px solid var(--border-light);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.FreeStuff-section-nav .nav-link:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}
.FreeStuff-section-nav .nav-link.active,
.FreeStuff-section-nav .nav-link.active:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Prevent two-row header from overlapping main content at any viewport width */
header.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  height: auto !important;
}
.main-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.FreeStuff-section-nav {
  scrollbar-width: none;
}
.FreeStuff-section-nav::-webkit-scrollbar {
  display: none;
}

[x-cloak] { display: none !important; }

/* Selenor Branded Modal & In-Site Content Locker */
.FreeStuff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 31, 22, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.FreeStuff-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--background-lightest);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 31, 22, 0.25);
  overflow: hidden;
  max-height: 92vh;
  overflow-y: auto;
}

.FreeStuff-modal-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  padding: 16px 20px;
}

.FreeStuff-locker-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.FreeStuff-modal-close {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.FreeStuff-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.FreeStuff-modal-body {
  padding: 22px 24px 24px;
}

.FreeStuff-modal-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* Show Full Code Button with Realistic Code Peek on Hover */
.FreeStuff-code-peek-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: var(--background-secondary);
  overflow: hidden;
  cursor: pointer;
  height: 54px;
}

.FreeStuff-show-code-btn {
  position: relative;
  z-index: 2;
  width: 68%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  box-shadow: 4px 0 14px rgba(22, 163, 74, 0.22);
}

.FreeStuff-code-peek-wrap:hover .FreeStuff-show-code-btn {
  width: 56%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.FreeStuff-peek-tail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}

.FreeStuff-code-peek-wrap .peek-hover {
  display: none;
}

.FreeStuff-code-peek-wrap:hover .peek-default {
  display: none;
}

.FreeStuff-code-peek-wrap:hover .peek-hover {
  display: inline;
}

/* Step 2 Validation Circle */
.FreeStuff-valid-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 4px solid #3b82f6;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.FreeStuff-valid-circle.is-valid {
  transform: scale(1.06);
  background: #dbeafe;
}

.FreeStuff-valid-pill {
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.95rem;
}

/* Step 3 In-Site Content Locker */
.FreeStuff-locked-ticket {
  background: var(--background-secondary);
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.FreeStuff-ticket-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-top: 2px;
}

.FreeStuff-rule-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  color: #1e3a8a;
}

.FreeStuff-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.FreeStuff-offer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--background);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.FreeStuff-offer-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.14);
}

.FreeStuff-offer-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.FreeStuff-offer-cta {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.FreeStuff-unlocked-box {
  background: #eff6ff;
  border: 2px dashed #2563eb;
  border-radius: 12px;
  padding: 16px;
}

.FreeStuff-full-code {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e3a8a;
  word-break: break-all;
}

/* =========================================================
   Full Cross-Device Responsiveness (Phones, Tablets, Desktop)
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.FreeStuff-section-nav {
  -webkit-overflow-scrolling: touch;
}

/* Tablet & Below (< 992px): Stack product sidebar cleanly above offers */
@media (max-width: 991.98px) {
  .brand-page-container {
    flex-direction: column !important;
  }

  .brand-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 1.25rem !important;
  }

  .brand-main-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .coupon-card.coupon-card-clickable .banner-section {
    height: 210px !important;
  }
}

/* Category Navigation Smooth Touch Scrolling on All Devices */
.FreeStuff-section-nav,
.selenor-section-nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.FreeStuff-section-nav::-webkit-scrollbar,
.selenor-section-nav::-webkit-scrollbar {
  display: none;
}

/* Tablets (576px - 991.98px): iPad Mini, iPad, Android Tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
  header.header .navbar {
    padding-top: 0.65rem !important;
    padding-bottom: 0.5rem !important;
  }

  .main-content {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 1.75rem !important;
  }

  .main-content h1.h3 {
    font-size: 1.45rem !important;
  }

  .coupon-card.coupon-card-clickable .banner-section {
    height: 200px !important;
  }

  .coupon-card .btn-reveal {
    min-height: 44px !important;
    font-size: 0.95rem !important;
  }

  .FreeStuff-modal-card {
    max-width: 480px !important;
    width: 90% !important;
    margin: auto !important;
    border-radius: 1.25rem !important;
  }
}

/* Phones (< 576px): iPhone, Pixel, Galaxy */
@media (max-width: 575.98px) {
  header.header .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.4rem !important;
  }

  header.header .navbar-brand img {
    width: 32px !important;
    height: 32px !important;
  }

  header.header .navbar-brand span.fs-5 {
    font-size: 1.1rem !important;
  }

  header.header .header-search {
    font-size: 0.88rem !important;
    padding: 0.55rem 0.85rem !important;
    min-height: 42px !important;
  }

  .FreeStuff-section-nav .nav-link {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.75rem !important;
    white-space: nowrap !important;
  }

  .main-content {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1.75rem !important;
  }

  .main-content h1.h3 {
    font-size: 1.2rem !important;
    line-height: 1.35;
  }

  .coupon-card.coupon-card-clickable .banner-section {
    height: 185px !important;
  }

  .coupon-card.coupon-card-clickable .card-title {
    font-size: 0.98rem !important;
    line-height: 1.3;
  }

  .coupon-card .btn-reveal {
    min-height: 44px !important;
    font-size: 0.92rem !important;
    padding: 0.65rem 1rem !important;
  }

  .coupon-card .card-footer {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Modal on Mobile: Centered, touch-friendly, safe viewport bounds */
  .FreeStuff-modal-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .FreeStuff-modal-card {
    width: 100% !important;
    max-width: 420px !important;
    max-height: 90dvh !important;
    border-radius: 1.25rem !important;
    overflow-y: auto !important;
    margin: auto !important;
  }

  .FreeStuff-modal-header {
    padding: 12px 14px;
  }

  .FreeStuff-modal-body {
    padding: 14px;
  }

  .FreeStuff-modal-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }

  .FreeStuff-code-peek-wrap {
    height: 48px;
  }

  .FreeStuff-show-code-btn {
    width: 60%;
    font-size: 0.88rem;
    gap: 6px;
  }

  .FreeStuff-peek-tail {
    font-size: 0.8rem;
    padding: 0 6px;
  }

  .FreeStuff-rule-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .FreeStuff-offer-item {
    padding: 10px 12px;
    min-height: 48px;
  }

  .FreeStuff-offer-cta {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .FreeStuff-full-code {
    font-size: 1.1rem;
    word-break: break-all;
  }

  /* Brand page on phone */
  .brand-coupons-list .coupon-row > .p-4 {
    padding: 0.85rem !important;
  }

  .brand-coupons-list .brand-coupon-incentive {
    margin-right: 0.5rem !important;
    min-width: 72px !important;
  }

  .brand-coupons-list .coupon-action,
  .brand-coupons-list [x-data] {
    max-width: 100% !important;
    width: 100% !important;
  }

  .brand-main-content article {
    padding: 1rem !important;
  }

  /* Footer on mobile */
  .footer {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .footer .footer-top.row > div {
    margin-bottom: 1rem;
  }

  /* Pagination */
  .pagination .page-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }
}

/* Extra small phones (< 380px) */
@media (max-width: 379.98px) {
  header.header .navbar-brand span.fs-5 {
    font-size: 0.95rem !important;
  }

  .coupon-card.coupon-card-clickable .banner-section {
    height: 165px !important;
  }

  .coupon-card.coupon-card-clickable .card-title {
    font-size: 0.9rem !important;
  }
}

/* Disable sticky hover zoom on pure touch devices so cards don't stay zoomed after tap */
@media (hover: none) {
  .coupon-card.coupon-card-clickable:hover {
    transform: none;
  }
}

/* Premium Modern Typography: Plus Jakarta Sans */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .card-title, .nav-link, .badge, .btn-reveal, .footer-title, p, span, a, time {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}



