/* ==========================================================================
   PRIME PRO DEALS - CSS DESIGN SYSTEM
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. VARIABLES & TOKENS
   ========================================================================== */
:root {
  --bg-primary: #0f0b1e;
  --bg-secondary: #1a1333;
  --bg-card: rgba(26, 19, 51, 0.85);
  --bg-glass: rgba(124, 58, 237, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #a5b4fc;
  --text-muted: #6b7280;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-secondary: #10b981;
  --accent-secondary-light: #34d399;
  --gold: #f59e0b;
  --hot: #ef4444;
  --sakura: #ec4899;
  --border: rgba(124, 58, 237, 0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1320px;
  --header-h: 70px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   3. ANIMATED BACKGROUND
   ========================================================================== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  left: -100px;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--sakura);
  bottom: -150px;
  right: -100px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.9); }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #1e293b;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-glass);
  color: var(--accent-light);
  padding-left: 25px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-trigger {
  color: #1e293b;
  font-size: 1.2rem;
}

.search-trigger:hover {
  color: var(--accent-light);
  transform: scale(1.1);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  transform-origin: left;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 999;
  padding: 100px 30px 30px;
  transition: var(--transition);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-link {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   5. SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 11, 30, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: var(--text-primary);
}

.search-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.search-form {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--text-muted);
  font-size: 3rem;
  color: var(--text-primary);
  padding: 10px 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-bottom-color: var(--accent);
}

.search-input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #d8b4fe, var(--sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-search-box {
  max-width: 700px;
  margin: 0 auto 4rem;
  position: relative;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.hero-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 15px 25px;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
}

.hero-search-btn {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: white;
  padding: 0 35px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* Animated Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-glass);
  padding: 20px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
  min-width: 180px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, 0.15);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   7. SECTIONS & HEADINGS
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: var(--accent);
}

.view-all {
  color: var(--accent-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all:hover {
  color: var(--text-primary);
  gap: 8px;
}

/* ==========================================================================
   8. COUPON CARD STYLES (.cp-card)
   ========================================================================== */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.cp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
}

.cp-featured {
  border-color: rgba(245, 158, 11, 0.3);
}

.cp-featured:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2);
}

.cp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cp-brand-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cp-brand-logo {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cp-brand-logo img {
  max-height: 100%;
  object-fit: contain;
}

.cp-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.cp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--accent-secondary-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.cp-favorite-btn {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.cp-favorite-btn:hover, .cp-favorite-btn.active {
  color: var(--sakura);
  transform: scale(1.1);
}

.cp-discount-badge {
  background: linear-gradient(135deg, #f43f5e, var(--sakura));
  color: white;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  padding: 5px 15px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.cp-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Code Box */
.cp-code-container {
  margin-bottom: 20px;
}

.cp-code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.05);
  padding: 10px 15px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.cp-code-box:hover {
  background: rgba(124, 58, 237, 0.1);
}

.cp-code-text {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.cp-copy-btn {
  background: var(--accent);
  color: white;
  padding: 6px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.cp-code-box:hover .cp-copy-btn {
  background: #9333ea;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.cp-no-code {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  text-align: center;
  color: var(--accent-secondary-light);
  font-weight: 600;
  margin-bottom: 20px;
}

/* Card Footer */
.cp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 15px;
}

.cp-expiry {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cp-expiry.safe { color: var(--accent-secondary-light); }
.cp-expiry.warning { color: var(--gold); }
.cp-expiry.danger { color: var(--hot); }

.cp-shop-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cp-shop-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Voting */
.cp-vote-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cp-vote-btn {
  color: var(--text-muted);
}

.cp-vote-btn:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   9. CATEGORY DEALS (HOMEPAGE)
   ========================================================================== */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.05);
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-light);
  margin-bottom: 15px;
  transition: var(--transition);
}

.cat-card:hover .cat-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.cat-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.cat-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10. TRENDING SECTION (HORIZONTAL SCROLL)
   ========================================================================== */
.trending-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 5px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

.trending-carousel::-webkit-scrollbar {
  height: 8px;
}

.trending-carousel::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.trending-carousel::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 4px;
}

.trending-carousel .cp-card {
  min-width: 350px;
  scroll-snap-align: start;
}

/* ==========================================================================
   11. SPIN THE WHEEL SECTION
   ========================================================================== */
.spin-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: inset 0 0 50px rgba(124, 58, 237, 0.05);
}

.spin-content {
  flex: 1;
}

.spin-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--gold), #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spin-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.spin-btn {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 25px rgba(245, 158, 11, 0.4);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spin-result-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: none;
  animation: fadeIn 0.5s;
}

.spin-wheel-area {
  position: relative;
  width: 300px;
  height: 300px;
}

#spin-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.spin-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--hot);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 2;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

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

/* ==========================================================================
   12. COUPONS PAGE SPECIFIC
   ========================================================================== */
.cp-hero {
  padding: 60px 0 30px;
  text-align: center;
}

.cp-stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 15px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cp-stats-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cp-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.cp-search-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.cp-search-wrap input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 20px 12px 45px;
  border-radius: 30px;
  outline: none;
  transition: var(--transition);
}

.cp-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.cp-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.cp-sort-wrap select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 30px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.cp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.cp-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.cp-tab:hover {
  background: var(--bg-glass);
  border-color: var(--accent-light);
}

.cp-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.cp-results-info {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
}

.page-btn:hover {
  background: var(--bg-glass);
  color: var(--accent-light);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ==========================================================================
   13. SAVINGS TRACKER (FLOATING)
   ========================================================================== */
.savings-tracker {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent), #9333ea);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  color: white;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}

.savings-tracker.minimized {
  transform: translateX(calc(100% - 60px));
}

.savings-tracker.pulse {
  animation: pulseSavings 1s ease;
}

.tracker-icon {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tracker-info h4 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}

.tracker-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.tracker-toggle {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

@keyframes pulseSavings {
  0% { transform: scale(1); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.8), 0 0 20px rgba(255,255,255,0.5); }
  100% { transform: scale(1); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4); }
}

/* ==========================================================================
   14. TOAST NOTIFICATION
   ========================================================================== */
.cp-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-toast.show {
  bottom: 40px;
}

/* ==========================================================================
   15. ABOUT & CONTACT PAGES
   ========================================================================== */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, transparent 100%);
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
}

/* Verification Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 30px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent);
  color: white;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-light);
}

.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-light);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  color: var(--accent-light);
}

.legal-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.legal-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
footer {
  background: #080512;
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--accent);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   17. CONFETTI ANIMATION
   ========================================================================== */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  opacity: 0;
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .cp-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .spin-container { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 50px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-stats { gap: 20px; }
  .stat-item { min-width: 140px; padding: 15px; }
  .section { padding: 50px 0; }
  .cp-controls { flex-direction: column; align-items: stretch; }
  .cp-search-wrap { max-width: 100%; }
  .step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cp-grid { grid-template-columns: 1fr; }
  .hero-search-box { flex-direction: column; border-radius: 15px; background: transparent; box-shadow: none; padding: 0; }
  .hero-search-input { background: var(--bg-card); border-radius: 15px; margin-bottom: 10px; border: 1px solid var(--border); }
  .hero-search-btn { border-radius: 15px; padding: 15px; }
  .savings-tracker { bottom: 20px; right: 20px; padding: 10px 15px; }
  .tracker-info h4 { display: none; }
  .tracker-amount { font-size: 1.2rem; }
}

/* ==========================================================================
   19. PRINT STYLES
   ========================================================================== */
@media print {
  body { background: white; color: black; }
  header, footer, .animated-bg, .savings-tracker, .spin-section, .scroll-top { display: none; }
  .cp-card { page-break-inside: avoid; border: 1px solid #ccc; box-shadow: none; color: black; }
  .cp-code-box { border-color: black; }
  .gradient-text { -webkit-text-fill-color: black; background: none; }
}

/* ==========================================================================
   20. FEATURE EXPANSION STYLES (COUPONDUNIA & DESIDIME INSPIRED)
   ========================================================================== */
.trending-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trending-chips a {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.trending-chips a:hover {
  background: var(--accent);
  color: #fff;
}

.hotness-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.top-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.store-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.store-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}
.store-hub-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
}
.store-hub-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}
.store-hub-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.store-hub-count {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.scratch-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.scratch-title {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.scratch-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.scratch-card-area {
  border: 3px dashed var(--accent);
  border-radius: 16px;
  padding: 8px;
  background: #0f0b1e;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cp-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cp-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cp-modal-card {
  background: #130e2a;
  border: 1px solid var(--accent);
  border-radius: 24px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.cp-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.8rem; cursor: pointer;
}
.cp-modal-header {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 20px;
}
.cp-modal-logo {
  width: 56px; height: 56px;
  border-radius: 14px; background: white; padding: 4px; object-fit: contain;
}
.cp-modal-badge {
  font-size: 0.8rem; color: #f97316; font-weight: bold;
}
.cp-modal-title {
  font-size: 1.2rem; margin-bottom: 10px; color: #fff;
}
.cp-modal-desc {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px;
}
.cp-modal-code-area {
  background: #090616; border: 2px dashed var(--accent);
  border-radius: 16px; padding: 20px; text-align: center;
  margin-bottom: 20px;
}
.cp-modal-code {
  font-size: 1.8rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent-light); margin-bottom: 12px;
}
.cp-modal-copy-btn {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  color: white; border: none; padding: 12px 24px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform 0.2s ease;
}
.cp-modal-copy-btn:hover { transform: scale(1.05); }
.cp-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.cp-vote-pill {
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  padding: 4px 10px; border-radius: 10px; cursor: pointer; margin-left: 4px;
}
.cp-vote-pill.active { background: var(--accent); }
.cp-modal-store-link { color: var(--accent-light); text-decoration: none; font-weight: bold; }

