/* ==========================================================================
   NINEONLINE DISCOUNT DESIGN SYSTEM & STYLING TOKENS
   Aesthetic: Deep Space Glassmorphism, Neon Cyan, Emerald & Amber Accents
   100% Mobile Friendly & Highly Responsive (Strict Rule)
   Target URLs: nineonline.online/discount and discount.nineonline.online
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #060814;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);

  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.3);
  --secondary: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --border-hover: #0284c7;

  --primary: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  padding-bottom: 70px;
}

h1, h2, h3, h4, h5, h6, .brand-title, .coupon-scissor-btn, .deal-activate-btn {
  font-family: 'Outfit', sans-serif;
}

/* Legal Notice Banner */
.legal-notice-banner {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.legal-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.legal-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  white-space: nowrap;
}
.dismiss-banner-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(6, 8, 20, 0.92);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
}
.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.country-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
}

/* Search Form */
.search-form {
  flex: 1;
  max-width: 520px;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 10px 135px 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px -2px var(--primary-glow);
}
[data-theme="light"] .search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}
[data-theme="light"] .search-input::placeholder {
  color: #94a3b8;
}
.clear-search-btn {
  position: absolute;
  right: 95px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 5;
  transition: var(--transition);
}
.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: #060814;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.vault-badge {
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Top Stores Carousel Strip */
.store-ticker-strip {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.store-ticker-strip::-webkit-scrollbar {
  display: none;
}
.store-ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: max-content;
}
.store-ticker-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-amber);
  white-space: nowrap;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.store-chip:hover, .store-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.store-chip-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Coupon Hero */
.coupon-hero {
  text-align: center;
  padding: 44px 20px 32px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.coupon-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.coupon-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .coupon-hero-title {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coupon-hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

/* Stats Row */
.coupon-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.coupon-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-main);
}
.coupon-stat-num {
  font-weight: 900;
  color: var(--primary);
}

/* Category Strip */
.coupon-category-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 16px 0;
  scrollbar-width: none;
}
.coupon-category-strip::-webkit-scrollbar {
  display: none;
}
.coupon-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.coupon-cat-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary);
  color: #fff;
}
.coupon-cat-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border-color: #38bdf8;
  color: #fff;
}

/* Secondary Filter Bar */
.coupon-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.discount-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.discount-pill {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.discount-pill:hover {
  color: #fff;
}
.discount-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Sort Dropdown */
.sort-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.sort-dropdown:hover, .sort-dropdown:focus {
  border-color: var(--primary);
}
[data-theme="light"] .sort-dropdown {
  background: #ffffff;
  color: #0f172a;
}

/* Cart Savings Calculator */
.calc-input, .calc-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
  transition: var(--transition);
}
.calc-input:focus, .calc-select:focus {
  border-color: var(--primary);
}
[data-theme="light"] .calc-input, [data-theme="light"] .calc-select {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}
.calc-result-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
}
[data-theme="light"] .calc-result-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Community Voting Row */
.ticket-voting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.vote-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.vote-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.vote-btn.voted-up {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}
.vote-btn.voted-down {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #f43f5e;
}
[data-theme="light"] .vote-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Coupon Layout */
.coupon-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 1024px) {
  .coupon-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.coupon-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.sidebar-box-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
[data-theme="light"] .sidebar-box-title {
  color: #0f172a;
}
/* Sidebar Lists & Elements */
.sidebar-category-list,
.sidebar-store-list,
.sidebar-blog-list {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar-category-list li,
.sidebar-store-list li,
.sidebar-blog-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-store-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}
.sidebar-store-list::-webkit-scrollbar {
  width: 5px;
}
.sidebar-store-list::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-store-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
.sidebar-store-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.sidebar-cat-btn,
.sidebar-store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sidebar-cat-btn:hover, 
.sidebar-cat-btn.active,
.sidebar-store-btn:hover, 
.sidebar-store-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
}

[data-theme="light"] .sidebar-cat-btn,
[data-theme="light"] .sidebar-store-btn {
  color: #475569;
}

[data-theme="light"] .sidebar-cat-btn:hover, 
[data-theme="light"] .sidebar-cat-btn.active,
[data-theme="light"] .sidebar-store-btn:hover, 
[data-theme="light"] .sidebar-store-btn.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
}

.store-count-badge {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--primary);
}

[data-theme="light"] .store-count-badge {
  background: #e2e8f0;
  color: #0284c7;
}

/* Sidebar Blog Guides */
.sidebar-blog-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  text-decoration: none !important;
  transition: var(--transition);
}

.sidebar-blog-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary);
  transform: translateX(3px);
}

.sidebar-blog-title {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8 !important;
  line-height: 1.4;
  display: block;
}

[data-theme="light"] .sidebar-blog-title {
  color: #0284c7 !important;
}

.sidebar-blog-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* Category Showcase Section & Grid (Popular Deal Categories) */
.category-showcase-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

[data-theme="light"] .category-showcase-section {
  background: #ffffff;
  border-color: #cbd5e1;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="light"] .category-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .category-card:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
}

.category-card-icon {
  font-size: 24px;
}

.category-card-info {
  display: flex;
  flex-direction: column;
}

.category-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

[data-theme="light"] .category-card-name {
  color: #0f172a;
}

.category-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
}

/* Ticket Cards */
.coupon-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 480px;
}
.coupon-ticket {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.coupon-ticket:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.2);
}

/* Proprietary Digital Ticket Punch Notches (Authentic Boarding Pass Perforation) */
.coupon-ticket::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 151px;
  width: 18px;
  height: 18px;
  background-color: var(--bg-main);
  border-radius: 50%;
  border: 1px solid var(--border-color);
  z-index: 3;
}
.coupon-ticket::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 151px;
  width: 18px;
  height: 18px;
  background-color: var(--bg-main);
  border-radius: 50%;
  border: 1px solid var(--border-color);
  z-index: 3;
}

.ticket-left {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-right: 2px dashed rgba(255, 255, 255, 0.15);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ticket-discount-value {
  font-size: 26px;
  font-weight: 900;
  color: #10b981;
  line-height: 1.1;
  margin-bottom: 6px;
}
.ticket-deal-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.ticket-store-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.ticket-store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-center {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ticket-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticket-store-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}
.ticket-success-rate {
  font-size: 11.5px;
  color: var(--accent-amber);
  font-weight: 700;
}
.ticket-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}
[data-theme="light"] .ticket-title {
  color: #0f172a;
}
.ticket-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ticket-competitors-bar {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-dim);
}
.competitor-label {
  font-weight: 700;
  color: var(--text-muted);
}
.competitor-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.competitor-link:hover {
  text-decoration: underline;
}
.competitor-separator {
  color: rgba(255, 255, 255, 0.2);
}

.ticket-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.4);
  border-left: 1px solid var(--border-color);
}
.coupon-scissor-btn {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.coupon-scissor-btn:hover {
  transform: scale(1.02);
}
.deal-activate-btn {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.deal-activate-btn:hover {
  transform: scale(1.02);
}
.ticket-uses-text {
  font-size: 11px;
  color: var(--text-dim);
}
.ticket-fav-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ticket-fav-btn.active {
  color: #f43f5e;
}

/* Modal */
.coupon-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.coupon-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
[data-theme="light"] .coupon-modal-card {
  background: #ffffff;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}
.modal-store-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px auto;
  border: 3px solid var(--primary);
}
.modal-discount-callout {
  font-size: 28px;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 6px;
}
.modal-deal-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
[data-theme="light"] .modal-deal-title {
  color: #0f172a;
}
.coupon-code-box {
  background: #1e293b;
  border: 2px dashed #38bdf8;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
[data-theme="light"] .coupon-code-box {
  background: #f1f5f9;
}
.coupon-code-text {
  font-family: monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #38bdf8;
}
.coupon-copy-btn {
  background: #38bdf8;
  border: none;
  color: #060814;
  font-weight: 800;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.coupon-copy-btn.copied {
  background: #10b981;
  color: #fff;
}
.modal-auto-launch-notice {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.modal-visit-btn {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Arbitrage Table */
.arbitrage-benchmark-section {
  max-width: 1400px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}
.benchmark-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}
.benchmark-header {
  text-align: center;
  margin-bottom: 24px;
}
.benchmark-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
[data-theme="light"] .benchmark-title {
  color: #0f172a;
}
.benchmark-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}
.benchmark-table-wrapper {
  overflow-x: auto;
}
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.benchmark-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 14px 16px;
  font-weight: 800;
  color: #fff;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
[data-theme="light"] .benchmark-table th {
  background: #f8fafc;
  color: #0f172a;
}
.benchmark-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.highlight-cell {
  color: #10b981 !important;
  font-weight: 800;
}

/* FAQ */
.coupon-faq-section {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}
.coupon-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.coupon-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="light"] .coupon-faq-question {
  color: #0f172a;
}
.coupon-faq-answer {
  display: none;
  padding: 0 22px 20px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.coupon-faq-item.active .coupon-faq-answer {
  display: block;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 8, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  padding: 8px 4px;
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.95);
}
.mobile-nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  min-width: 48px;
  padding: 4px;
}
.mobile-nav-item.active {
  color: var(--primary);
}
.mobile-nav-icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .coupon-ticket::before,
  .coupon-ticket::after {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .coupon-ticket {
    grid-template-columns: 1fr !important;
  }
  .ticket-left {
    border-right: none !important;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15) !important;
    padding: 16px !important;
  }
  [data-theme="light"] .ticket-left {
    border-bottom: 2px dashed #cbd5e1 !important;
  }
  .ticket-right {
    border-left: none !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 16px !important;
  }
  .search-btn-text {
    display: none;
  }
  .search-submit-btn {
    padding: 7px 10px;
  }
  .clear-search-btn {
    right: 50px;
  }
  .search-input {
    padding: 9px 85px 9px 14px;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 15px !important;
  }
  .brand-sub, .country-pill {
    display: none !important;
  }
  .coupon-hero-title {
    font-size: 24px !important;
  }
  .coupon-stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .scratch-vault-container {
    padding: 16px !important;
  }
  .coupon-filter-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .sort-dropdown {
    width: 100% !important;
  }
  .modal-dialog {
    margin: 10px !important;
    padding: 18px 14px !important;
  }
}

/* ==========================================================================
   PRISTINE LIGHT THEME OVERRIDES (HIGH READABILITY & WCAG AAA COMPLIANCE)
   ========================================================================== */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #0284c7;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
}

[data-theme="light"] body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  color: #0f172a;
}

[data-theme="light"] .coupon-hero-subtitle {
  color: #334155 !important;
}

[data-theme="light"] .coupon-stat-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .coupon-stat-num {
  color: #0284c7 !important;
}

[data-theme="light"] .coupon-cat-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .coupon-cat-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .coupon-cat-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .coupon-filter-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .discount-pill {
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] .discount-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .discount-pill.active {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}

/* TICKET CARD LIGHT THEME - CRYSTAL CLEAR READABILITY */
[data-theme="light"] .coupon-ticket {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .coupon-ticket:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .ticket-left {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-right: 2px dashed #cbd5e1 !important;
}

[data-theme="light"] .ticket-left::before,
[data-theme="light"] .ticket-left::after {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .ticket-discount-value {
  color: #047857 !important;
  text-shadow: none !important;
}

[data-theme="light"] .ticket-deal-type {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

[data-theme="light"] .ticket-center {
  background: #ffffff !important;
}

[data-theme="light"] .verified-tag {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
}

[data-theme="light"] .ticket-store-name {
  color: #0284c7 !important;
}

[data-theme="light"] .ticket-success-rate {
  color: #b45309 !important;
}

[data-theme="light"] .ticket-title {
  color: #0f172a !important;
}

[data-theme="light"] .ticket-desc {
  color: #475569 !important;
}

/* COMPETITOR ARBITRAGE BAR (FIXES CONTRAST ISSUE) */
[data-theme="light"] .ticket-competitors-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .competitor-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .competitor-link {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .competitor-link:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

[data-theme="light"] .competitor-separator {
  color: #cbd5e1 !important;
}

/* TICKET RIGHT COLUMN */
[data-theme="light"] .ticket-right {
  background: #f8fafc !important;
  border-left: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .ticket-uses-text {
  color: #64748b !important;
  font-weight: 600 !important;
}

[data-theme="light"] .ticket-fav-btn {
  color: #64748b !important;
}

[data-theme="light"] .ticket-fav-btn:hover,
[data-theme="light"] .ticket-fav-btn.active {
  color: #f43f5e !important;
}

/* ==========================================================================
   FEATURED CATEGORY CARDS SHOWCASE
   ========================================================================== */
.category-showcase-section {
  max-width: 1400px;
  margin: 0 auto 28px auto;
  padding: 0 20px;
}
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(56, 189, 248, 0.2);
}
.category-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-card-info {
  display: flex;
  flex-direction: column;
}
.category-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
[data-theme="light"] .category-card-name {
  color: #0f172a;
}
.category-card-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  margin-top: 3px;
}

/* SIDEBAR BLOG & CATEGORY EXTENSIONS */
.sidebar-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.sidebar-cat-btn:hover, .sidebar-cat-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}
[data-theme="light"] .sidebar-cat-btn:hover, [data-theme="light"] .sidebar-cat-btn.active {
  color: #0284c7;
}
.sidebar-blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-blog-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.sidebar-blog-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary);
  transform: translateX(3px);
}
.sidebar-blog-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
[data-theme="light"] .sidebar-blog-title {
  color: #0f172a;
}
.sidebar-blog-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   AUTHORITATIVE RICH MULTI-COLUMN FOOTER
   ========================================================================== */
.coupon-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 40px 20px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 13px;
  line-height: 1.6;
}
[data-theme="light"] .coupon-footer {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.rich-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  text-align: left;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
[data-theme="light"] .footer-col-title {
  color: #0f172a;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a, .footer-col-links button {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.footer-col-links a:hover, .footer-col-links button:hover {
  color: var(--primary);
  transform: translateX(3px);
}
[data-theme="light"] .footer-col-links a:hover, [data-theme="light"] .footer-col-links button:hover {
  color: #0284c7;
}

.footer-legal-text {
  max-width: 1100px;
  margin: 0 auto 20px auto;
  text-align: justify;
  font-size: 11.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
}
[data-theme="light"] .footer-links a {
  color: #0284c7;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-copy {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
}

/* High-Authority Competitor Comparison Matrix (Information Gain Engine) */
.comparison-matrix-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  margin: 40px auto;
}
.comparison-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}
.comparison-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px auto;
}
[data-theme="light"] .comparison-title {
  color: #0f172a;
}
.table-responsive-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.seo-comparison-table th, .seo-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}
.seo-comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
[data-theme="light"] .seo-comparison-table th {
  background: #f1f5f9;
  color: #0284c7;
}
.seo-comparison-table tr:hover td {
  background: rgba(56, 189, 248, 0.03);
}
.highlight-col {
  background: rgba(16, 185, 129, 0.06);
  font-weight: 700;
  color: #10b981;
}
[data-theme="light"] .highlight-col {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

/* Social Authentication & Profile Modal */
.social-login-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.social-btn-google {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}
.social-btn-google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}
.social-btn-facebook {
  background: #1877f2;
  color: #ffffff;
}
.social-btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-1px);
}
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profile-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .profile-modal-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  border: 3px solid var(--bg-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.profile-input-group {
  margin-bottom: 14px;
  text-align: left;
}
.profile-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.profile-input-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}
.profile-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
[data-theme="light"] .profile-input-field {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   INTERACTIVE SCRATCH CARD VAULT & RETENTION HUB STYLES
   ========================================================================== */
.scratch-vault-container {
  transition: var(--transition);
}
.scratch-vault-container:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 36px -4px rgba(56, 189, 248, 0.2);
}
[data-theme="light"] .scratch-vault-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .scratch-vault-container h3 {
  color: #0f172a !important;
}

.scratch-canvas-wrapper {
  user-select: none;
  -webkit-user-select: none;
}

/* Modal Companion Cards */
.modal-comp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-comp-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary);
  transform: translateX(3px);
}
[data-theme="light"] .modal-comp-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .modal-comp-card:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

/* ==========================================================================
   MASTER ULTRA-RESPONSIVE SYSTEM (Mobile-First 320px to 4K Ultrawide)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  position: relative !important;
  -webkit-text-size-adjust: 100% !important;
}

.container, 
.navbar, 
.hero-content, 
.deals-grid, 
.stores-grid, 
.footer-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .navbar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "brand actions"
      "search search" !important;
    gap: 8px 10px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .navbar-brand-group {
    grid-area: brand !important;
    min-width: 0 !important;
  }
  .nav-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .nav-links, .nav-legal-link {
    display: none !important;
  }
  .search-form {
    grid-area: search !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
  .search-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }
  .search-input {
    width: 100% !important;
  }
  .deals-grid, .stores-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .category-pill, .filter-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .categories-bar, .filter-scroll-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .categories-bar::-webkit-scrollbar, .filter-scroll-wrapper::-webkit-scrollbar {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  body {
    padding-bottom: 75px !important;
  }
}



