:root {
  --primary: #1dd9bf;
  --primary-light: #00d4d4;
  --accent: #ffc107;
  --dark: #1a1a1a;
  --dark-2: #0f0f0f;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --border: #333333;
  --section: #292929;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.topbar {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-buynow {
  background: #9ccc65;
  color: #000;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Header */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
}

.logo span {
  font-size: 28px;
}

.search-bar {
  flex: 1;
  max-width: 300px;
  display: flex;
  gap: 0;
  margin: 0 40px;
}

.search-bar input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 10px 15px;
  color: var(--text);
  font-size: 13px;
  border-radius: 0;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.btn-search {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
}

/* Navbar */
.navbar {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.navbar .container {
  display: flex;
  gap: 30px;
  padding: 15px 20px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* Hero Banner */
.hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
}

.banner-text {
  padding: 40px;
}

.banner-text h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.banner-text .highlight {
  color: #ff4444;
}

.shop-link {
  border: 2px solid var(--text);
  width: fit-content;
  padding: 10px 20px;
  margin: 15px 0;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.banner-text h3 {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
}

.banner-image {
  position: relative;
  background: linear-gradient(135deg, #333 0%, #444 100%);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

.coupon-box {
  position: absolute;
  background: rgba(0,0,0,0.8);
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  z-index: 10;
}

.coupon-logo {
  background: #444;
  color: #999;
  padding: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.coupon-name {
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
}

.coupon-code {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 5px;
}

.coupon-badge {
  position: absolute;
  bottom: 20px;
  left: 40px;
  background: var(--primary);
  color: #000;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
}

/* Trending Stores */
.trending-stores {
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: bold;
}

.section-header a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
}

.stores-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.carousel-btn.prev {
  left: -50px;
}

.carousel-btn.next {
  right: -50px;
}

.store-item {
  background: var(--section);
  border: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.store-item:hover {
  border-color: var(--primary);
}

.store-logo {
  color: var(--text-muted);
  font-weight: bold;
  font-size: 14px;
}

/* Coupons Section */
.coupons-section {
  margin-top: 40px;
}

.coupons-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 10px 0;
  transition: color 0.3s;
  position: relative;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.coupons-list {
  display: grid;
  gap: 20px;
}

/* Coupon Item */
.coupon-item {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: start;
}

.coupon-store-logo {
  width: 80px;
  height: 80px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  font-weight: bold;
  color: var(--text-muted);
  font-size: 14px;
}

.coupon-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.coupon-header h3 {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.code-id {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.code-id::before {
  content: '🔒';
}

.badge-exclusive {
  background: var(--primary);
  color: #000;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.coupon-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.coupon-desc a {
  color: var(--primary);
  text-decoration: none;
}

.coupon-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-printcode {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  align-self: start;
}

.btn-printcode:hover {
  background: #ffb300;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s;
}

.category-list li:hover {
  color: var(--primary);
}

.category-list i {
  color: var(--primary);
  width: 20px;
}

.count {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Submit CTA */
.submit-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #00c4b3 100%);
  color: #000;
  text-align: center;
  padding: 40px 20px;
  border: none;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cta-icon {
  font-size: 36px;
}

.submit-cta h4 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 2px;
  border: 2px solid #000;
  padding: 10px 20px;
  display: inline-block;
  width: calc(100% - 40px);
}

.submit-cta p {
  font-size: 12px;
  margin: 0;
  letter-spacing: 1px;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, var(--primary) 0%, #00c4b3 100%);
  border: none;
  color: #000;
  padding: 20px;
}

.info-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.info-content p {
  font-size: 12px;
  margin: 5px 0 0;
}

/* Search Filter */
.search-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.3s;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.filter-input,
.filter-select {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  padding: 8px 12px;
  color: var(--text);
  border-radius: 4px;
  font-size: 12px;
}

.filter-input::placeholder,
.filter-select {
  color: var(--text-muted);
}

.filter-select option {
  background: var(--dark);
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal:nth-child(3) {
  animation-delay: 0.2s;
}

.reveal:nth-child(4) {
  animation-delay: 0.3s;
}

.reveal:nth-child(5) {
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .coupon-item {
    grid-template-columns: 1fr;
  }

  .btn-printcode {
    justify-self: start;
  }

  .stores-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    width: 100%;
  }

  .search-bar {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .banner-text {
    padding: 20px;
  }

  .banner-text h2 {
    font-size: 32px;
  }

  .stores-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 15px;
  }
}
