/* ===== CSS Variables & Root ===== */
:root {
  --background: #ebebeb;
  --foreground: #1a2b4a;
  --card: #ffffff;
  --card-foreground: #1a2b4a;
  --primary: #cc0000;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #1a2b4a;
  --muted: #f0f0f0;
  --muted-foreground: #6b7280;
  --accent: #003087;
  --accent-foreground: #ffffff;
  --border: #e0e0e0;
  --input: #e0e0e0;
  --ring: #cc0000;
  --radius: 0.75rem;
  --costco-red: #cc0000;
  --costco-blue: #003087;
  --notification-bg: #1d7a8c;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== Animations ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(204, 0, 0, 0.5);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ===== Notification Bar ===== */
.notification-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--notification-bg);
  color: white;
  font-size: 12px;
  font-weight: 500;
  animation: slideDown 0.5s ease-out;
}

.notification-icon {
  width: 16px;
  height: 16px;
  stroke: white;
  flex-shrink: 0;
}

.notification-name,
.notification-amount {
  font-weight: bold;
}

/* ===== Main Container ===== */
.main-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ===== Reward Card ===== */
.reward-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.6s ease-out;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 0.5rem;
}

.logo-img {
  width: 144px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-headline {
  text-align: center;
  padding: 0.25rem 1.5rem 0.5rem;
}

.headline-subtitle {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.headline-amount {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.headline-description {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.card-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0.75rem 1.25rem;
}

/* ===== Steps List ===== */
.steps-list {
  list-style: none;
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-text {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== CTA Button ===== */
.cta-button-wrapper {
  padding: 0 1.25rem 0.5rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 900;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.cta-button:hover {
  filter: brightness(1.1);
}

.cta-button:active {
  transform: scale(0.99);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
}

/* ===== Urgency Text ===== */
.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  font-size: 12px;
  color: #999;
}

.urgency-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ===== Trustpilot Section ===== */
.trustpilot-section {
  margin: 1rem;
  padding: 0.75rem;
  background: var(--secondary);
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trustpilot-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.trustpilot-text {
  font-weight: bold;
  font-size: 0.875rem;
  color: black;
  letter-spacing: -0.02em;
}

.trustpilot-stars {
  display: flex;
  gap: 3px;
}

.star-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.full-green {
  background: #00b67a;
}

.full-green svg {
  width: 20px;
  height: 20px;
}

.half-split {
  overflow: hidden;
}

.half-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #00b67a;
}

.half-grey {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #dcdce5;
}

.half-star {
  position: relative;
  z-index: 10;
  width: 20px;
  height: 20px;
}

.trustpilot-score {
  font-size: 11px;
  color: #999;
}

.trustpilot-score strong {
  color: #4a5568;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 0 1rem 2rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.faq-title {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.faq-subtitle {
  color: #4a8fa0;
  font-size: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #fafafa;
}

.faq-question h3 {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.faq-chevron {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1rem;
  padding-top: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 12px;
  color: #000000;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-domain {
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-domain:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .main-container {
    padding: 1rem 0.75rem 2rem;
  }

  .reward-card {
    border-radius: 0.75rem;
  }

  .headline-amount {
    font-size: 2.5rem;
  }

  .step-text {
    font-size: 11px;
  }

  .faq-title {
    font-size: 1.1rem;
  }
}

/* ===== Hide Link Preview ===== */
.link-no-preview {
  position: relative;
  user-select: none;
}

.link-no-preview:hover::after {
  content: '';
  position: absolute;
  display: none;
}
