/* V4 nav override - solid white background */
.redesign-v4-page .nav {
  background: #ffffff;
  backdrop-filter: none;
}

[data-theme="dark"] .redesign-v4-page .nav {
  background: #0B0F14;
}

.redesign-v4-hero {
  background: linear-gradient(135deg, #031a00 0%, #007539 100%);
  color: white;
  padding: 88px 0 48px;
}

[data-theme="dark"] .redesign-v4-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
}

.redesign-v4-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.redesign-v4-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.redesign-v4-hero-image {
  width: 250px;
  height: 160px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.redesign-v4-hero-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.redesign-v4-hero-image span {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
}

.redesign-v4-hero-content h1 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.redesign-v4-hero-description {
  font-size: 17px;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.redesign-v4-hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.redesign-v4-stars {
  color: #ffd700;
  font-size: 20px;
  letter-spacing: 2px;
}

.redesign-v4-rating-text {
  font-size: 15px;
  opacity: 0.9;
}

.redesign-v4-hero-stats {
  display: flex;
  gap: 32px;
}

.redesign-v4-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #00a651;
}

.redesign-v4-stat-label {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Main Content */
.redesign-v4-main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

/* Cards */
.redesign-v4-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="dark"] .redesign-v4-card {
  background: #1e293b;
}

.redesign-v4-card-compact {
  padding: 0 24px;
}

.redesign-v4-card-compact .ftc-text {
  padding-right: 10px;
}

.redesign-v4-card h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: #1d1d1f;
}

[data-theme="dark"] .redesign-v4-card h3 {
  color: #e5e7eb;
}

/* Sidebars */
.redesign-v4-sidebar-left,
.redesign-v4-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* How to Steps */
.redesign-v4-how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.redesign-v4-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.redesign-v4-step-number {
  width: 30px;
  height: 30px;
  background: #00a651;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.redesign-v4-step-content h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.redesign-v4-step-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* How-to Screenshot */
.redesign-v4-how-to-screenshot {
  display: block;
  max-width: 180px;
  max-height: 180px;
  margin-top: 8px;
  border-radius: 8px;
  border: 2px solid #e3e3e3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

[data-theme="dark"] .redesign-v4-how-to-screenshot {
  border-color: #374151;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Categories Grid */
.redesign-v4-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.redesign-v4-category-card {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.redesign-v4-category-card:hover {
  background: #e8f5e9;
  transform: translateY(-2px);
}

[data-theme="dark"] .redesign-v4-category-card {
  background: #1e293b;
}

[data-theme="dark"] .redesign-v4-category-card:hover {
  background: rgba(16, 185, 129, 0.15);
}

.redesign-v4-category-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.redesign-v4-category-name {
  font-size: 13px;
  font-weight: 600;
}

/* Tips */
.redesign-v4-tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redesign-v4-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.redesign-v4-tip-icon {
  width: 34px;
  height: 34px;
  background: #e8f5e9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.redesign-v4-tip-content h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.redesign-v4-tip-content p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Coupons Section */
.redesign-v4-coupons-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.redesign-v4-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.redesign-v4-section-header h2 {
  font-size: 26px;
}

.redesign-v4-filter-tabs {
  display: flex;
  gap: 8px;
}

.redesign-v4-filter-tab {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  background: #f5f5f7;
  color: #666;
  border: none;
}

.redesign-v4-filter-tab.active {
  background: #00a651;
  color: white;
}

[data-theme="dark"] .redesign-v4-filter-tab {
  background: #1e293b;
  color: #9ca3af;
}

/* Coupon Card */
.redesign-v4-coupon-card {
  position: relative;
  background: #f9fafb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #10B9816E;
}

.redesign-v4-coupon-row {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.redesign-v4-coupon-card .coupon-alerts {
  margin-top: 0;
  padding: 8px 20px;
  background: #fafafa;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

[data-theme="dark"] .redesign-v4-coupon-card .coupon-alerts {
  background: #1e293b;
}

[data-theme="dark"] .redesign-v4-coupon-card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.16);
}

.redesign-v4-coupon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #F59E0B);
  opacity: 0;
  transition: opacity 0.3s;
}

.redesign-v4-coupon-card:hover {
  transform: translateY(-4px);
  border-color: #10B9816E;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 2px rgba(16,185,129,0.25);
}

.redesign-v4-coupon-card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .redesign-v4-coupon-card {
  background: #1e293b;
}

[data-theme="dark"] .redesign-v4-coupon-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 2px rgba(16,185,129,0.25);
}

.redesign-v4-coupon-image {
  max-width: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  padding-left: 10px;
}

[data-theme="dark"] .redesign-v4-coupon-image {
  background: #1e293b;
}

.redesign-v4-coupon-image img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.redesign-v4-coupon-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.redesign-v4-coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #00a651;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}

.redesign-v4-coupon-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.redesign-v4-coupon-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.redesign-v4-coupon-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

.redesign-v4-coupon-action {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  background: #fafafa;
  gap: 8px;
}

[data-theme="dark"] .redesign-v4-coupon-action {
  background: #1e293b;
}

.redesign-v4-code-container {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.redesign-v4-code-text {
  flex: 1;
  min-width: 0;
  background: white;
  border: 2px dashed #00a651;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #00a651;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .redesign-v4-code-text {
  background: #1e293b;
}

.redesign-v4-copy-btn {
  flex-shrink: 0;
  background: white;
  border: 1px solid #00a651;
  color: #00a651;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.redesign-v4-copy-btn:hover {
  background: #e8f5e9;
  transform: scale(1.02);
}

[data-theme="dark"] .redesign-v4-copy-btn {
  background: #1e293b;
}

.redesign-v4-copy-btn.copied {
  background: #00a651;
  color: white;
}

.redesign-v4-coupon-card.code-revealed .redesign-v4-code-container {
  animation: reveal-pulse 0.3s ease-in-out;
}

@keyframes reveal-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.redesign-v4-coupon-btn {
  background: #00a651;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.redesign-v4-coupon-btn:hover {
  background: #008c45;
  transform: scale(1.02);
}

.redesign-v4-activate-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  cursor: pointer;
}

.redesign-v4-activate-link:hover {
  color: #00a651;
}

/* FAQs */
.redesign-v4-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redesign-v4-faq-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.redesign-v4-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.redesign-v4-faq-question {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.redesign-v4-faq-toggle {
  font-size: 18px;
  color: #999;
  transition: transform 0.2s;
}

.redesign-v4-faq-item.active .redesign-v4-faq-toggle {
  transform: rotate(45deg);
}

.redesign-v4-faq-answer {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 8px;
  display: none;
}

.redesign-v4-faq-item.active .redesign-v4-faq-answer {
  display: block;
}

/* About Brand */
.redesign-v4-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.redesign-v4-about-link {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  margin-left: 2px;
  cursor: pointer;
}

.redesign-v4-about-link:hover {
  text-decoration: underline;
}

.redesign-v4-about-full {
  display: none;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 8px;
}

.redesign-v4-card.about-expanded .redesign-v4-about-text {
  display: none;
}

.redesign-v4-card.about-expanded .redesign-v4-about-full {
  display: block;
}

.redesign-v4-website-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #00a651;
  text-decoration: none;
  font-weight: 600;
}

.redesign-v4-website-link:hover {
  text-decoration: underline;
}

/* Compare Brands */
.redesign-v4-compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redesign-v4-compare-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f5f5f7;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.redesign-v4-compare-logo {
  width: 100%;
  max-width: 160px;
  height: 56px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.redesign-v4-compare-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.redesign-v4-compare-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
}

[data-theme="dark"] .redesign-v4-compare-logo {
  background: #152033;
}

.redesign-v4-compare-item:hover {
  background: #e8f5e9;
}

[data-theme="dark"] .redesign-v4-compare-item {
  background: #1e293b;
}

[data-theme="dark"] .redesign-v4-compare-item:hover {
  background: rgba(16, 185, 129, 0.15);
}

.redesign-v4-compare-name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.redesign-v4-compare-deals {
  font-size: 12px;
  color: #666;
}

/* Newsletter */
.redesign-v4-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.redesign-v4-newsletter-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.redesign-v4-newsletter-btn {
  background: #00a651;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Empty State */
.redesign-v4-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.redesign-v4-empty-state p:first-child {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Pagination */
.redesign-v4-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.redesign-v4-page-btn {
  padding: 8px 16px;
  background: #00a651;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.redesign-v4-page-btn:hover {
  background: #008c45;
}

.redesign-v4-page-info {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
  .redesign-v4-main-content {
    grid-template-columns: 1fr;
  }

  /* Coupons first on mobile */
  .redesign-v4-coupons-section {
    order: -1;
  }

  .redesign-v4-sidebar-left,
  .redesign-v4-sidebar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Brand Articles Section */
.redesign-v4-brand-articles { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
.redesign-v4-article-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0 auto; padding: 0 24px; }
.redesign-v4-article-card { flex: 0 1 310px; min-width: 260px; text-decoration: none; color: inherit; background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition); display: block; }
.redesign-v4-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; color: inherit; }
.redesign-v4-article-image { width: 100%; height: 180px; overflow: hidden; }
.redesign-v4-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.redesign-v4-article-card:hover .redesign-v4-article-image img { transform: scale(1.05); }
.redesign-v4-article-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; padding: 12px 16px 0; text-align: center; color: var(--text); }
.redesign-v4-article-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; padding: 0 16px 16px; text-align: center; margin-bottom: 0; }

@media (max-width: 768px) {
  .redesign-v4-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .redesign-v4-hero-stats {
    justify-content: center;
  }

  .redesign-v4-sidebar-left,
  .redesign-v4-sidebar-right {
    grid-template-columns: 1fr;
  }

  .redesign-v4-coupon-card {
    flex-direction: column;
  }

  .redesign-v4-coupon-row {
    flex-direction: column;
  }

  .redesign-v4-coupon-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .redesign-v4-coupon-image img {
    max-width: 80%;
    max-height: 70px;
    object-fit: contain;
  }

  /* Override desktop max-width on mobile */
  .redesign-v4-coupon-image {
    max-width: none !important;
  }

  /* Wider screenshot on mobile */
  .redesign-v4-how-to-screenshot {
    max-width: 260px;
  }

  .redesign-v4-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
