/* ============================================
   Page-Specific Styles
   ============================================ */

/* ---- Site Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  padding-inline: var(--container-padding);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-primary);
}

.site-header__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: all var(--transition-base);
}

.site-header__logo:hover .site-header__logo-img {
  filter: drop-shadow(0 2px 8px rgba(10, 144, 234, 0.2));
  transform: scale(1.05);
}

.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.site-header__nav-link:hover,
.site-header__nav-link--active {
  color: var(--color-primary);
}

.site-header .btn--outline {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border-color: var(--color-border);
  font-weight: var(--weight-bold);
}

.site-header .btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 144, 234, 0.2);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .site-header__actions {
    display: flex;
  }
}

.site-header__cta {
  display: none;
  /* Handled by actions wrapper now */
}

@media (min-width: 768px) {
  .site-header__cta {
    display: inline-flex;
  }
}

.site-header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  font-size: var(--text-xl);
}

@media (min-width: 768px) {
  .site-header__mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: var(--space-24) var(--container-padding) var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all var(--transition-base);
}

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

.mobile-menu__link {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: var(--text-xl);
  border-radius: var(--radius-full);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: var(--color-text-on-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
}

@media (min-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    max-width: 1100px;
    text-align: center;
    padding-block: var(--space-20);
    justify-items: center;
  }
}

.hero__text {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.hero__title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: #fff;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  opacity: 0.95;
  font-weight: var(--weight-medium);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.hero__video {
  margin-top: var(--space-8);
  max-width: 800px;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Optimizations for Hero */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-4));
    padding-bottom: var(--space-8);
  }

  .hero__content {
    padding-block: 0;
    /* Let hero padding handle it */
    gap: var(--space-6);
  }

  .hero__badge {
    margin-bottom: var(--space-4);
  }

  .hero__title {
    font-size: 2.25rem;
    /* ~text-4xl or smaller */
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--space-6);
  }

  .hero__actions {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .hero__actions .btn {
    flex: 1;
    padding-inline: var(--space-2);
    font-size: 0.85rem;
    white-space: nowrap;
  }
}



/* ---- Product Hero (Product Page) ---- */
.product-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 24%),
    linear-gradient(135deg, #20abf3 0%, #0d8dda 56%, #0878c4 100%);
  color: var(--color-text-on-dark);
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(1, 45, 76, 0) 0%, rgba(1, 45, 76, 0.08) 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  opacity: 0.62;
}

.product-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 72vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-50%);
}

.product-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin-inline: auto;
}

.product-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(2, 8, 23, 0.12);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.product-hero .breadcrumb a,
.product-hero .breadcrumb__separator {
  color: rgba(255, 255, 255, 0.82);
}

.product-hero .breadcrumb a:hover {
  color: #fff;
}

.product-hero .badge {
  padding: var(--space-2) var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(251, 191, 36, 0.88));
  color: #112033;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14), 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.product-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  text-align: center;
  line-height: 1.05;
  text-shadow: 0 6px 28px rgba(1, 40, 70, 0.34);
}

.product-hero__subtitle {
  display: inline-block;
  font-size: var(--text-xl);
  color: #fff;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-8);
  max-width: 850px;
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 34px rgba(2, 8, 23, 0.12);
  backdrop-filter: blur(10px);
}

.product-hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-hero__actions .btn {
  min-width: 190px;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.18);
}

.product-hero__actions .btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.product-hero__actions .btn--outline-light:hover {
  color: var(--color-primary-dark);
  background: #fff;
  border-color: #fff;
}

.product-hero__video {
  max-width: 600px;
  margin-inline: auto;
  margin-top: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .product-hero {
    padding-top: calc(var(--header-height) + var(--space-5));
    padding-bottom: var(--space-10);
  }

  .product-hero .breadcrumb {
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }

  .product-hero__title {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
  }

  .product-hero__subtitle {
    display: block;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }

  .product-hero__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Product FAQ ---- */
.product-faq {
  padding: var(--space-16) var(--container-padding);
  background: var(--color-surface-alt);
}

.product-faq__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-10);
}

.product-faq__list {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-faq__item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.product-faq__question-text {
  flex: 1;
  min-width: 0;
}

.product-faq__question-number {
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  margin-right: var(--space-3);
}

.product-faq__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-size: var(--text-xl);
  line-height: 1;
  transition: all var(--transition-fast);
}

.product-faq__item--open .product-faq__icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(0deg);
}

.product-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease-out);
}

.product-faq__item--open .product-faq__answer {
  border-top: 1px solid var(--color-border-light);
}

.product-faq__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.product-faq__answer-inner p {
  margin-bottom: var(--space-3);
}

.product-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

.product-faq__answer-inner a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---- Site Footer (Max Wow Edition) ---- */
.site-footer {
  position: relative;
  background-color: #f5f5f5;
  color: var(--color-text-secondary);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  overflow: hidden;
  border-top: 1px solid var(--color-border-light);
}

.relative-z {
  position: relative;
  z-index: 10;
}

/* Newsletter / CTA Block */
/* Footer Inner Grid Layout */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12) var(--space-8);
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: var(--space-12);
  }
}

/* Brand Section */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: all var(--transition-base);
}

.site-footer__logo:hover .site-footer__logo-img {
  filter: drop-shadow(0 2px 8px rgba(10, 144, 234, 0.15));
  transform: scale(1.05);
}

.site-footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 400px;
  color: var(--color-text-secondary);
}

/* Social Icons */
.site-footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border-light);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-icon--facebook:hover {
  background: #1877f2;
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-icon--zalo:hover {
  background: #0068ff;
  box-shadow: 0 10px 20px rgba(0, 104, 255, 0.4);
}

.social-icon--youtube:hover {
  background: #ff0000;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

.social-icon--phone:hover {
  background: #10b981;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

/* Links Groups */
.site-footer__heading {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: var(--space-2);
}

.site-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-footer__link::before {
  content: '›';
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  transition: transform 0.2s ease;
}

.site-footer__link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.site-footer__list--resources .site-footer__link::before {
  display: none;
}

/* Contact Info */
.site-footer__list--contact li {
  display: flex;
  align-items: center;
  /* Center for most items */
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.contact-icon {
  font-size: 18px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  /* Fixed width for perfect alignment */
  flex-shrink: 0;
}

.site-footer__list--contact a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__list--contact a:hover {
  color: var(--color-primary);
}

/* Footer Bottom */
.site-footer__bottom {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  width: 100%;
}

.site-footer__bct-li {
  margin-top: var(--space-4);
  padding-left: 28px;
  /* Align with text after icons */
}

.site-footer__bct-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.site-footer__bct-link:hover {
  opacity: 0.8;
}

.site-footer__bct-img {
  height: 35px;
  /* Increased size */
  width: auto;
  display: block;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.4s var(--ease-out) forwards;
  opacity: 0;
}

/* Stagger animation delays */
.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* ---- Affiliate Section ---- */
.affiliate-section {
  padding-block: var(--space-16);
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.affiliate-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 1024px) {
  .affiliate-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }
}

.affiliate-copy .section-header__title {
  text-align: left;
  margin-inline: 0;
  font-size: var(--text-2xl);
  /* Smaller than default */
  margin-bottom: var(--space-3);
}

.affiliate-copy .section-header__subtitle {
  text-align: left;
  margin-inline: 0;
  font-size: var(--text-sm);
  /* Smaller text */
  max-width: 480px;
}

.affiliate-steps {
  display: grid;
  gap: 12px;
  margin-top: var(--space-8);
}

.affiliate-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.affiliate-step__number {
  width: 28px;
  /* Smaller circles */
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.affiliate-step h3 {
  font-size: 0.95rem;
  /* Slightly smaller */
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.affiliate-step p {
  font-size: 0.85rem;
  /* Smaller text */
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.affiliate-builder {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}

.affiliate-builder__header {
  margin-bottom: var(--space-5);
}

.affiliate-builder__header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.affiliate-builder__header p {
  color: var(--color-text-secondary);
}

.affiliate-builder__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .affiliate-builder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.affiliate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affiliate-field--full {
  grid-column: 1 / -1;
}

.affiliate-field span {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.affiliate-field input,
.affiliate-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.affiliate-field input[readonly] {
  background: #f1f5f9;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.affiliate-builder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: var(--space-5);
}

/* ---- Article Page ---- */
.article-hero {
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 52%, #0f766e 100%);
  color: var(--color-text-on-dark);
}

.article-hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-16);
}

@media (min-width: 1024px) {
  .article-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.article-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.08;
  margin-bottom: var(--space-4);
  color: #fff;
}

.article-summary {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.88);
  max-width: 62ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}

.article-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-4);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(241, 245, 249, 0.9);
  line-height: 1.5;
}

.article-source strong {
  color: #fff;
}

.article-highlights {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: var(--space-6) 0 0;
  padding: 0;
}

.article-highlights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(241, 245, 249, 0.92);
  line-height: 1.6;
}

.article-checklist__icon {
  flex: 0 0 auto;
  color: var(--color-accent);
  font-weight: 800;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-8);
}

.article-hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.article-hero .btn--outline:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.article-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.article-body {
  padding-block: var(--space-12);
}

.article-content {
  max-width: 760px;
}

.article-section+.article-section {
  margin-top: var(--space-10);
}

.article-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.article-section__text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.article-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.article-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text);
  line-height: 1.7;
}

.article-checklist__icon {
  margin-top: 2px;
}
