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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #1a0a2e 0%, #16082a 30%, #0d0d0d 100%);
  color: #ffffff;
  min-height: 100vh;
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 48px 16px 32px;
  text-align: center;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  font-size: 24px;
}

.sparkle.left {
  top: 16px;
  left: 16px;
}

.sparkle.right {
  top: 80px;
  right: 32px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #f39c12 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

.logo-text {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 50%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  margin-bottom: 24px;
}

.badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(30, 30, 46, 0.8);
  border: 1px solid #2a2a3e;
  font-size: 14px;
  font-weight: 600;
}

.badge-green {
  color: #00ff88;
}

.badge-yellow {
  color: #fbbf24;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.green {
  background: #00ff88;
}

.dot.yellow {
  background: #fbbf24;
}

.dot.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.search-wrapper {
  width: 100%;
  max-width: 448px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  padding-right: 48px;
  border-radius: 16px;
  background: rgba(30, 30, 46, 0.9);
  border: 1px solid #2a2a3e;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

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

.search-input:focus {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Coupons Section */
.coupons-section {
  padding: 24px 16px;
}

.coupons-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.coupon-card {
  background: rgba(30, 30, 46, 0.9);
  border-radius: 16px;
  border: 1px solid #2a2a3e;
  padding: 16px;
  transition: all 0.3s;
}

.coupon-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.coupon-header {
  display: flex;
  gap: 16px;
}

.coupon-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.coupon-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.coupon-info {
  flex: 1;
  min-width: 0;
}

.coupon-brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.coupon-discount {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.coupon-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.coupon-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #2a2a3e;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.coupon-stat.orange {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.coupon-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #00d26a;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.coupon-btn:hover {
  background: #00e676;
}

.coupon-btn:active {
  transform: scale(0.98);
}

.no-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 20px;
  font-size: 16px;
}

/* Why Us Section */
.why-us-section {
  padding: 32px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box.green-bg {
  background: rgba(52, 211, 153, 0.2);
}

.emoji-icon {
  font-size: 24px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.emerald {
  background: #10b981;
}

.feature-icon.indigo {
  background: #6366f1;
}

.feature-icon.purple {
  background: #a855f7;
}

.feature-icon.amber {
  background: #f59e0b;
}

.feature-item span {
  font-size: 16px;
  color: #d1d5db;
}

/* Categories Section */
.categories-section {
  padding: 32px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.categories-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid #2a2a3e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.category-btn:hover {
  background: rgba(42, 42, 62, 0.6);
}

.category-btn:active {
  transform: scale(0.98);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon.blue {
  background: #3b82f6;
}
.cat-icon.pink {
  background: #ec4899;
}
.cat-icon.emerald {
  background: #10b981;
}
.cat-icon.red {
  background: #ef4444;
}
.cat-icon.amber {
  background: #f59e0b;
}
.cat-icon.violet {
  background: #a855f7;
}

/* Stats Section */
.stats-section {
  padding: 32px 16px 64px;
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid #2a2a3e;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-icon.green {
  background: #00ff88;
}
.stat-icon.cyan {
  background: #06b6d4;
}
.stat-icon.pink {
  background: #ec4899;
}
.stat-icon.lavender {
  background: #c4b5fd;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 16px;
  margin-top: 16px;
}

.footer p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 384px;
  background: #1e1e2e;
  border-radius: 24px;
  border: 1px solid #2a2a3e;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-logo-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.modal-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.modal-discount {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.modal-verified {
  font-size: 14px;
  color: #00ff88;
}

.modal-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid #2a2a3e;
  border-bottom: 1px solid #2a2a3e;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #2a2a3e;
  font-size: 14px;
}

.modal-badge.gray {
  color: rgba(255, 255, 255, 0.7);
}

.modal-badge.orange {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.progress-section {
  text-align: center;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.progress-percent {
  font-size: 14px;
  font-weight: 600;
  color: #00ff88;
  font-family: monospace;
}

.progress-track {
  height: 12px;
  background: #2a2a3e;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff88 0%, #00d26a 100%);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.progress-wait {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.reveal-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: #00d26a;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.reveal-btn:hover {
  background: #00e676;
}

.reveal-btn:active {
  transform: scale(0.98);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4e;
}
