/* ===== CSS Custom Properties ===== */
:root {
  --clr-primary: #2D6A4F;
  --clr-primary-dark: #1B4332;
  --clr-primary-light: #52B788;
  --clr-primary-lighter: #95D5B2;
  --clr-accent: #E8A838;
  --clr-accent-hover: #D4922A;
  --clr-accent-light: #F4B942;
  --clr-bg: #FAFAF5;
  --clr-bg-alt: #F0F5EE;
  --clr-bg-card: #FFFFFF;
  --clr-text: #1B2A1E;
  --clr-text-muted: #5A6B5E;
  --clr-text-light: #8A9B8E;
  --clr-border: #D8E4DA;
  --clr-footer-bg: #1B2A1E;
  --clr-footer-text: #C5D0C8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(27,43,30,.06);
  --shadow-md: 0 4px 20px rgba(27,43,30,.08);
  --shadow-lg: 0 8px 40px rgba(27,43,30,.10);
  --shadow-card: 0 2px 16px rgba(45,106,79,.07);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary-dark);
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-accent); }

img { max-width: 100%; height: auto; }

/* ===== Ad Notice Bar ===== */
.ad-notice {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 0;
  text-align: center;
  z-index: 1100;
  position: relative;
}
.ad-notice span {
  opacity: .85;
}
.ad-notice i {
  margin-right: 6px;
  font-size: .65rem;
}

/* ===== Navbar ===== */
.navbar-main {
  background: rgba(250,250,245,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  padding: 14px 0;
  z-index: 1050;
}
.navbar-main.scrolled {
  background: rgba(250,250,245,.97);
  border-bottom-color: var(--clr-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-primary-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand-custom i {
  color: var(--clr-accent);
  font-size: 1.1rem;
}

.navbar-main .nav-link {
  color: var(--clr-text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--clr-primary);
  background: var(--clr-bg-alt);
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  width: 60%;
}

/* ===== Buttons ===== */
.btn-accent {
  background: var(--clr-accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232,168,56,.25);
  cursor: pointer;
}
.btn-accent:hover {
  background: var(--clr-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,168,56,.35);
}

.btn-outline-primary-custom {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  background: transparent;
}
.btn-outline-primary-custom:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45,106,79,.2);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-primary-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,.92) 0%, rgba(45,106,79,.75) 50%, rgba(27,43,30,.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--clr-accent-light);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge i { font-size: .8rem; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-title span {
  color: var(--clr-accent-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}
.hero-stat {
  text-align: left;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent-light);
}
.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* decorative blob */
.hero-blob {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,185,66,.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Section Commons ===== */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 70px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}

.section-desc {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 50px;
}

/* ===== Key Facts Cards ===== */
.facts-section {
  background: var(--clr-bg);
  position: relative;
  z-index: 5;
  margin-top: -60px;
}

.fact-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  height: 100%;
}
.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}

.fact-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.fact-icon.green {
  background: rgba(45,106,79,.1);
  color: var(--clr-primary);
}
.fact-icon.amber {
  background: rgba(232,168,56,.12);
  color: var(--clr-accent);
}
.fact-icon.teal {
  background: rgba(82,183,136,.1);
  color: var(--clr-primary-light);
}

.fact-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 4px;
}

.fact-label {
  font-size: .9rem;
  color: var(--clr-text-muted);
}

/* ===== Article Section ===== */
.article-section {
  background: var(--clr-bg);
}

.article-body {
  max-width: 780px;
}

.article-body h3 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--clr-primary-dark);
  position: relative;
  padding-left: 20px;
}
.article-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 28px;
  background: var(--clr-accent);
  border-radius: 3px;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.article-body ul {
  padding-left: 0;
  list-style: none;
}
.article-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.pullquote {
  border-left: 4px solid var(--clr-accent);
  background: var(--clr-bg-alt);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--clr-primary-dark);
}

.stat-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--clr-bg-alt);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--clr-primary);
  white-space: nowrap;
}

/* ===== Chart Containers ===== */
.chart-wrapper {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin: 36px 0;
}
.chart-wrapper h4 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clr-primary-dark);
}

/* ===== Table ===== */
.table-styled {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin: 36px 0;
}
.table-styled table {
  margin-bottom: 0;
}
.table-styled thead th {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 14px 18px;
  border: none;
  white-space: nowrap;
}
.table-styled tbody td {
  padding: 12px 18px;
  font-size: .92rem;
  border-color: var(--clr-border);
  vertical-align: middle;
}
.table-styled tbody tr {
  transition: background var(--transition);
}
.table-styled tbody tr:hover {
  background: var(--clr-bg-alt);
}
.table-styled tbody tr:nth-child(even) {
  background: rgba(240,245,238,.5);
}
.table-styled tbody tr:nth-child(even):hover {
  background: var(--clr-bg-alt);
}

/* ===== Quiz Section ===== */
.quiz-section {
  background: linear-gradient(180deg, var(--clr-bg-alt) 0%, var(--clr-bg) 100%);
  position: relative;
  overflow: hidden;
}
.quiz-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,56,.07) 0%, transparent 70%);
  pointer-events: none;
}

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--clr-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.quiz-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.quiz-progress-step {
  flex: 1;
  height: 6px;
  background: var(--clr-border);
  border-radius: 3px;
  transition: background .5s ease;
  position: relative;
  overflow: hidden;
}
.quiz-progress-step.active {
  background: var(--clr-primary);
}
.quiz-progress-step.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  animation: progressShimmer 1.5s ease infinite;
}
@keyframes progressShimmer {
  0% { opacity: .7; }
  50% { opacity: 1; }
  100% { opacity: .7; }
}
.quiz-progress-step.done {
  background: var(--clr-primary-light);
}

.quiz-step-counter {
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--clr-primary-dark);
  margin-bottom: 28px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background: var(--clr-bg);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.quiz-option:hover {
  border-color: var(--clr-primary-light);
  background: var(--clr-bg-alt);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--clr-primary);
  background: rgba(45,106,79,.06);
  box-shadow: 0 0 0 3px rgba(45,106,79,.1);
}

.quiz-option-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: .7rem;
  color: transparent;
}
.quiz-option.selected .quiz-option-marker {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
}

.quiz-slide {
  display: none;
  animation: quizFadeIn .4s ease;
}
.quiz-slide.active {
  display: block;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.btn-quiz-back {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-size: .95rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-quiz-back:hover {
  color: var(--clr-primary);
  background: var(--clr-bg-alt);
}
.btn-quiz-back:disabled {
  opacity: .3;
  cursor: default;
}

.btn-quiz-next {
  background: var(--clr-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(45,106,79,.2);
}
.btn-quiz-next:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.3);
}
.btn-quiz-next:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

/* Quiz Result */
.quiz-result {
  text-align: center;
  animation: quizFadeIn .5s ease;
}

.quiz-result-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 24px;
  animation: resultPulse 2s ease infinite;
}
@keyframes resultPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,106,79,.3); }
  50% { box-shadow: 0 0 0 16px rgba(45,106,79,0); }
}

.quiz-result h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.quiz-result-saving {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin: 16px 0 8px;
}

.quiz-result-desc {
  color: var(--clr-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-result .btn-accent {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.quiz-restart {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--clr-text-light);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}
.quiz-restart:hover {
  color: var(--clr-primary);
}

/* ===== Sources Section ===== */
.sources-section {
  background: var(--clr-bg-alt);
}

.source-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  text-decoration: none;
  color: var(--clr-text);
}
.source-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-light);
  color: var(--clr-primary);
}

.source-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45,106,79,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.source-card-body {
  flex: 1;
}
.source-card-title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 2px;
}
.source-card-url {
  font-size: .8rem;
  color: var(--clr-text-light);
}

.source-card .external-icon {
  color: var(--clr-text-light);
  font-size: .8rem;
  transition: color var(--transition);
}
.source-card:hover .external-icon {
  color: var(--clr-accent);
}

/* ===== Footer ===== */
.footer-main {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand i {
  color: var(--clr-accent);
  margin-right: 6px;
}

.footer-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--clr-footer-text);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--clr-accent);
  padding-left: 4px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 32px 0 24px;
}

.footer-disclaimer {
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.8;
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,.4);
}
.footer-bottom a:hover {
  color: var(--clr-accent);
}

/* ===== Scroll-to-top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

/* ===== Counter Animation ===== */
.count-up {
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-section { min-height: 80vh; }
  .hero-title { font-size: 2.2rem; }
  .hero-stat-row { gap: 24px; }
  .hero-stat-value { font-size: 1.5rem; }
  .quiz-container { padding: 36px 28px; }
  .section-padding { padding: 70px 0; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 70vh; }
  .hero-content { padding: 60px 0 80px; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stat-row { flex-wrap: wrap; gap: 20px; }
  .hero-stat-value { font-size: 1.3rem; }
  .hero-blob { display: none; }
  .facts-section { margin-top: -40px; }
  .fact-card { padding: 28px 20px; }
  .fact-value { font-size: 1.6rem; }
  .quiz-container { padding: 28px 20px; }
  .quiz-question { font-size: 1.2rem; }
  .quiz-result-saving { font-size: 2.2rem; }
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .article-body h3 { font-size: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.6rem; }
  .quiz-option { padding: 14px 16px; font-size: .92rem; }
  .btn-accent { padding: 12px 24px; font-size: .95rem; }
}

/* ===== Misc Utility ===== */
.bg-alt { background: var(--clr-bg-alt); }
.text-accent { color: var(--clr-accent) !important; }
.text-primary-custom { color: var(--clr-primary) !important; }
.fw-semibold { font-weight: 600; }

.tips-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  height: 100%;
}
.tips-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tips-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(45,106,79,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.tips-card h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--clr-primary-dark);
}
.tips-card p {
  font-size: .9rem;
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Trustpilot Section ===== */
.trustpilot-section {
  background: var(--clr-primary-dark);
  position: relative;
  overflow: hidden;
}
.trustpilot-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(82,183,136,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(232,168,56,.06) 0%, transparent 50%);
  pointer-events: none;
}

.tp-brand {
  text-align: center;
}
.tp-logo {
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.tp-stars-big {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}
.tp-stars-big i {
  color: #00b67a;
  font-size: 2rem;
  background: #00b67a;
  color: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.1rem;
}
.tp-score {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.tp-score strong {
  font-size: 1.2rem;
}
.tp-count {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}

.tp-review-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(82,183,136,.2);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.tp-review-card:hover {
  border-color: rgba(0,182,122,.45);
  background: rgba(255,255,255,.08);
  transform: translateY(-4px);
}

.tp-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tp-stars-sm {
  display: flex;
  gap: 2px;
}
.tp-stars-sm i {
  color: #fff;
  background: #00b67a;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: .6rem;
}
.tp-verified {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
}
.tp-verified i {
  color: #00b67a;
}

.tp-review-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: #00b67a;
  margin-bottom: 8px;
}

.tp-review-text {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.tp-review-author {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 8px;
}

.tp-review-link {
  font-size: .82rem;
  color: #00b67a;
  text-decoration: none;
  transition: color var(--transition);
}
.tp-review-link:hover {
  color: #00d68f;
}

.tp-disclaimer {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin: 0;
}
.tp-disclaimer a {
  color: #00b67a;
  text-decoration: none;
}
.tp-disclaimer a:hover {
  color: #00d68f;
}

/* ===== Legal Modal Content ===== */
.legal-content h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-primary-dark);
  margin-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--clr-bg-alt);
}
.legal-content h6:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--clr-text);
}
.legal-content ul {
  padding-left: 20px;
}
.legal-content ul li {
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--clr-accent);
}

.modal-header {
  border-bottom-color: var(--clr-border);
}
.modal-footer {
  border-top-color: var(--clr-border);
}
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-primary-dark);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--clr-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(27,43,30,.18);
  border: 1px solid var(--clr-border);
  padding: 28px 24px 22px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(45,106,79,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.cookie-banner h6 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  color: var(--clr-primary-dark);
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: .82rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.cookie-banner p a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}
.cookie-btn-accept {
  flex: 1;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-btn-accept:hover {
  background: var(--clr-primary-dark);
}
.cookie-btn-settings {
  background: var(--clr-bg-alt);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-btn-settings:hover {
  background: var(--clr-border);
  color: var(--clr-text);
}
.cookie-btn-reject {
  background: transparent;
  color: var(--clr-text-light);
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-btn-reject:hover {
  color: var(--clr-text);
  background: var(--clr-bg-alt);
}

/* Cookie Settings Panel */
.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
}
.cookie-settings.open {
  display: block;
  animation: quizFadeIn .3s ease;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.cookie-toggle-row + .cookie-toggle-row {
  border-top: 1px solid var(--clr-bg-alt);
}
.cookie-toggle-label {
  font-size: .82rem;
  color: var(--clr-text);
  font-weight: 500;
}
.cookie-toggle-desc {
  font-size: .72rem;
  color: var(--clr-text-light);
  margin-top: 1px;
}

.cookie-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--clr-border);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-switch-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform var(--transition);
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: var(--clr-primary);
}
.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(16px);
}
.cookie-switch input:disabled + .cookie-switch-slider {
  opacity: .5;
  cursor: default;
}

.cookie-save-btn {
  width: 100%;
  margin-top: 14px;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.cookie-save-btn:hover {
  background: var(--clr-primary-dark);
}

@media (max-width: 575.98px) {
  .cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 22px 18px 18px;
  }
}
