/* =========================================================================
   Tradingthaiview — Components
   All reusable UI defined here. Class prefix: .c-
   ========================================================================= */

/* ---------- Top promo bar (sitewide) ---------- */
.c-top-bar {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 50%, #F59E0B 100%);
  color: #1A0A00;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px var(--s-4);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  line-height: 1.4;
}
.c-top-bar a {
  color: #1A0A00;
  text-decoration: underline;
  font-weight: 700;
}
.c-top-bar__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #DC2626;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(220,38,38,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* ---------- .c-card ---------- */
.c-card {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
  display: block;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.04);
}
.c-card:hover {
  border-color: var(--border-accent-strong);
  box-shadow: 0 12px 28px -12px rgba(14,164,122,0.30),
              0 0 0 1px var(--border-accent-strong);
  transform: translateY(-2px);
  text-decoration: none;
}
.c-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.c-card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 var(--s-2);
  color: var(--text);
}
.c-card__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
}
.c-card__meta {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* ---------- .c-cta-banner ---------- */
.c-cta-banner {
  background: linear-gradient(135deg, #0EA47A 0%, #16A47F 50%, #0F8E69 100%);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  margin: var(--s-10) 0;
  box-shadow: 0 14px 40px -16px rgba(14,164,122,0.55);
}
.c-cta-banner h3 {
  color: #FFFFFF;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--s-3);
  border: 0;
  padding: 0;
}
.c-cta-banner p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 var(--s-5);
  font-size: 1rem;
}
.c-cta-banner .btn {
  background: #FFFFFF;
  color: var(--accent);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.25);
}
.c-cta-banner .btn:hover { background: #F1F5F9; }
.c-cta-banner .c-trust-strip { color: rgba(255,255,255,0.85); margin-top: var(--s-4); }

@media (min-width: 768px) {
  .c-cta-banner { padding: var(--s-10) var(--s-10); }
  .c-cta-banner h3 { font-size: 1.85rem; }
}

/* ---------- .c-cta-sticky (mobile bottom) ---------- */
.c-cta-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--h-sticky-cta);
  background: #FFFFFF;
  border-top: 1px solid var(--border-accent-strong);
  box-shadow: 0 -8px 24px -8px rgba(15,23,42,0.10);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  z-index: 40;
  transform: translateY(0);
  transition: transform 250ms ease;
}
.c-cta-sticky.is-hidden { transform: translateY(110%); }
.c-cta-sticky .btn {
  flex: 1;
  height: 48px;
  font-size: 0.95rem;
}
.c-cta-sticky__close {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.c-cta-sticky__close:hover { color: var(--text); border-color: var(--border-accent-strong); }

@media (min-width: 1024px) {
  .c-cta-sticky { display: none; }
}

/* ---------- .c-callout-tip ---------- */
.c-callout-tip {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF7 100%);
  border: 1px solid var(--border-accent-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-5);
  margin: var(--s-8) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3) var(--s-4);
  align-items: start;
}
.c-callout-tip__icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  box-shadow: 0 2px 6px -2px rgba(14,164,122,0.25);
}
.c-callout-tip__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 var(--s-2);
}
.c-callout-tip__body {
  grid-column: 2;
  margin: 0;
  color: var(--text);
}
.c-callout-tip__body p { margin: 0 0 var(--s-3); }
.c-callout-tip__body p:last-child { margin: 0; }
.c-callout-tip__cta {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- .c-comparison (table) ---------- */
.c-comparison {
  position: relative;
  margin: var(--s-6) 0;
}
.c-comparison__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.c-comparison table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.c-comparison th,
.c-comparison td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.c-comparison th {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.c-comparison tr:last-child td { border-bottom: 0; }
.c-comparison .num { font-family: var(--f-mono); }
.c-comparison .yes { color: var(--accent); font-weight: 700; }
.c-comparison .no { color: var(--text-mute); }
.c-comparison tr.is-recommended td {
  background: linear-gradient(90deg, rgba(14,164,122,0.10) 0%, rgba(34,211,165,0.06) 100%);
  position: relative;
}
.c-comparison tr.is-recommended td:first-child {
  border-left: 3px solid var(--accent);
}

/* fade affordance on right edge while scrollable on small screens */
.c-comparison::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, #FFFFFF);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  opacity: 1;
  transition: opacity 200ms ease;
}
.c-comparison.is-scrolled-end::after { opacity: 0; }
@media (min-width: 1024px) {
  .c-comparison::after { display: none; }
}

/* ---------- .c-toc ---------- */
.c-toc {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-6) 0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.c-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--s-2) 0;
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
}
.c-toc__head svg { transition: transform 200ms ease; flex-shrink: 0; }
.c-toc[aria-expanded="false"] .c-toc__head svg { transform: rotate(-90deg); }
.c-toc__list {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 var(--s-2);
  display: block;
}
.c-toc[aria-expanded="false"] .c-toc__list { display: none; }
.c-toc__list li { margin: 0; }
.c-toc__list a {
  display: block;
  color: var(--text-2);
  padding: var(--s-2) 0;
  font-size: 0.95rem;
  border-left: 2px solid transparent;
  padding-left: var(--s-3);
  margin-left: -2px;
  text-decoration: none;
}
.c-toc__list a:hover { color: var(--text); }
.c-toc__list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}
.c-toc__list .c-toc__sub a {
  font-size: 0.88rem;
  padding-left: var(--s-6);
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .c-toc {
    padding: var(--s-5);
    margin: 0;
  }
  .c-toc__head {
    cursor: default;
    pointer-events: none;
    margin-bottom: var(--s-3);
  }
  .c-toc__head svg { display: none; }
  .c-toc[aria-expanded="false"] .c-toc__list { display: block; }
  .c-toc__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    font-weight: 500;
  }
  /* When TOC duplicated for body+sidebar, hide the body one on desktop */
  .c-toc--mobile { display: none; }
}
@media (max-width: 1023px) {
  /* Hide the desktop-only sidebar TOC on mobile */
  .c-toc--desktop { display: none; }
}

/* ---------- .c-faq ---------- */
.c-faq {
  margin: var(--s-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.c-faq__item {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.c-faq__btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  text-align: left;
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 56px;
}
.c-faq__btn:hover { color: var(--accent); }
.c-faq__btn svg { transition: transform 200ms ease; flex-shrink: 0; }
.c-faq__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.c-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}
.c-faq__panel-inner {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--text-2);
}
.c-faq__panel-inner p:last-child { margin-bottom: 0; }

/* ---------- .c-breadcrumb ---------- */
.c-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: var(--s-4) 0 0;
}
.c-breadcrumb ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.c-breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); }
.c-breadcrumb li + li::before {
  content: "›";
  color: var(--text-mute);
  margin-right: var(--s-2);
}
.c-breadcrumb a { color: var(--text-2); }
.c-breadcrumb a:hover { color: var(--accent); }
.c-breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- .c-author ---------- */
.c-author {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-10) 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
}
.c-author__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px -4px rgba(14,164,122,0.45);
}
.c-author__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 var(--s-1);
}
.c-author__role {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0 0 var(--s-2);
}
.c-author__bio {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0;
}

/* ---------- .c-related ---------- */
.c-related {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  margin: var(--s-8) 0;
}
@media (min-width: 768px) {
  .c-related { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- .c-trust-strip ---------- */
.c-trust-strip {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  justify-content: center;
  align-items: center;
  line-height: 1.5;
}
.c-trust-strip span { display: inline-flex; align-items: center; }

/* ---------- .c-badge ---------- */
.c-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--f-body);
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.6;
}
.c-badge--free { background: rgba(34,211,165,0.15); color: var(--accent); }
.c-badge--rec  { background: var(--accent); color: var(--bg); }
.c-badge--hot  { background: rgba(245,158,11,0.15); color: var(--accent-2); }
.c-badge--new  { background: rgba(245,158,11,0.15); color: var(--accent-2); }

/* ---------- .c-nav-drawer ---------- */
.c-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.c-nav-drawer.is-open { pointer-events: auto; visibility: visible; }
.c-nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.7);
  opacity: 0;
  transition: opacity 200ms ease;
}
.c-nav-drawer.is-open .c-nav-drawer__backdrop { opacity: 1; }
.c-nav-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86%);
  background: #FFFFFF;
  border-left: 1px solid var(--border);
  padding: var(--s-5);
  transform: translateX(100%);
  transition: transform 250ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow-y: auto;
  box-shadow: -16px 0 40px -16px rgba(15,23,42,0.18);
}
.c-nav-drawer.is-open .c-nav-drawer__panel { transform: translateX(0); }
.c-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.c-nav-drawer__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center; justify-content: center;
}
.c-nav-drawer__close:hover { border-color: var(--border-accent-strong); color: var(--accent); }
.c-nav-drawer__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.c-nav-drawer__list a {
  display: block;
  padding: var(--s-3) var(--s-3);
  color: var(--text);
  font-size: 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.c-nav-drawer__list a:hover {
  border-color: var(--border);
  color: var(--accent);
}
.c-nav-drawer__cta { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--border); }

/* ---------- .c-progress ---------- */
.c-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .c-progress { display: none; }
}

/* ---------- .c-tile (homepage feature tiles) ---------- */
.c-tile {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.c-tile:hover {
  border-color: var(--border-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(14,164,122,0.25);
}
.c-tile__num {
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.c-tile h3 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}
.c-tile p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- .c-hero-pricing (homepage decorative right panel) ---------- */
.c-hero-pricing {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: none;
  box-shadow: 0 12px 32px -16px rgba(15,23,42,0.18);
}
.c-hero-pricing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.c-hero-pricing__row:last-child { border-bottom: 0; }
.c-hero-pricing__row .name { color: var(--text); font-weight: 500; }
.c-hero-pricing__row .price { font-family: var(--f-mono); color: var(--text-2); }
.c-hero-pricing__row.is-highlight { background: linear-gradient(90deg, rgba(34,211,165,0.14), rgba(34,211,165,0.06)); border-radius: var(--r-md); padding: var(--s-3) var(--s-3); margin: var(--s-2) -0.5rem; border: 0; }
.c-hero-pricing__row.is-highlight .name { color: var(--accent); font-weight: 700; }
.c-hero-pricing__row.is-highlight .price { color: var(--accent); font-weight: 700; }
.c-hero-pricing h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 500;
  margin: 0 0 var(--s-3);
}

@media (min-width: 1024px) {
  .c-hero-pricing { display: block; }
  .hero__layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 380px);
    gap: var(--s-12);
    align-items: center;
  }
}

/* ---------- Inline CTA card (after TOC) ---------- */
.c-cta-inline {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF7 100%);
  border: 1px solid var(--border-accent-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: 0 4px 14px -8px rgba(14,164,122,0.20);
}
.c-cta-inline__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
}
.c-cta-inline__sub {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* =========================================================================
   THAI-FLAVOR ADD-ONS — bigger CTAs, social proof, ranking,
   testimonials, LINE OA, ribbons, sparkles
   ========================================================================= */

/* ---------- .c-shine-cta — big gradient banner with shimmer ---------- */
.c-shine-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #22D3A5 0%, #16A47F 60%, #0F8E69 100%);
  color: #061811;
  border-radius: 16px;
  padding: var(--s-8) var(--s-5);
  margin: var(--s-10) 0;
  text-align: center;
  box-shadow:
    0 10px 40px -10px rgba(34,211,165,0.45),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}
.c-shine-cta::before {
  content: "";
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: skewX(-20deg);
  animation: shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
.c-shine-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #061811;
  color: #FBBF24;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.c-shine-cta h2,
.c-shine-cta h3 {
  color: #061811;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 var(--s-3);
  border: 0; padding: 0;
}
.c-shine-cta p {
  color: rgba(6,24,17,0.85);
  font-size: 1rem;
  margin: 0 auto var(--s-5);
  max-width: 52ch;
}
.c-shine-cta .btn {
  background: #061811;
  color: var(--accent);
  height: 56px;
  padding: 0 var(--s-8);
  font-size: 1.05rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.45);
}
.c-shine-cta .btn:hover { background: #0A2418; color: #2BE5B4; }
.c-shine-cta .c-trust-strip {
  color: rgba(6,24,17,0.7);
  margin-top: var(--s-4);
  font-weight: 500;
}

@media (min-width: 768px) {
  .c-shine-cta { padding: var(--s-10) var(--s-10); }
  .c-shine-cta h2, .c-shine-cta h3 { font-size: 2rem; }
  .c-shine-cta p { font-size: 1.1rem; }
}

/* ---------- .c-sparkle (★ FREE burst badge) ---------- */
.c-sparkle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FBBF24 0%, #F59E0B 60%, #D97706 100%);
  color: #1A0A00;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  transform: rotate(-12deg);
  box-shadow: 0 8px 24px -8px rgba(245,158,11,0.6);
  flex-shrink: 0;
}
.c-sparkle::before, .c-sparkle::after {
  content: "★";
  position: absolute;
  font-size: 12px;
  color: #FFFFFF;
  text-shadow: 0 0 4px rgba(255,255,255,0.6);
}
.c-sparkle::before { top: -4px; right: 4px; }
.c-sparkle::after  { bottom: 6px; left: 6px; font-size: 10px; }
.c-sparkle small {
  font-size: 0.6rem;
  font-weight: 500;
  display: block;
  text-align: center;
  margin-top: 2px;
}

/* ---------- .c-stat-strip — trust counts ---------- */
.c-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF7 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  box-shadow: 0 12px 32px -16px rgba(14,164,122,0.18);
}
.c-stat-strip__item {
  text-align: center;
  padding: var(--s-3);
}
.c-stat-strip__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
}
.c-stat-strip__label {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .c-stat-strip { grid-template-columns: repeat(4, 1fr); padding: var(--s-6); }
  .c-stat-strip__num { font-size: 2rem; }
}

/* ---------- .c-rating — star rating widget ---------- */
.c-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9rem;
}
.c-rating__stars {
  color: #FBBF24;
  letter-spacing: 1px;
  font-size: 1.05rem;
  line-height: 1;
}
.c-rating__num {
  color: var(--text);
  font-weight: 700;
  font-family: var(--f-mono);
}
.c-rating__count {
  color: var(--text-2);
  font-size: 0.82rem;
}

/* ---------- .c-rank — numbered medal ranking ---------- */
.c-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid;
}
.c-rank--1 {
  background: linear-gradient(135deg, #FBBF24, #D97706);
  color: #1A0A00;
  border-color: #FCD34D;
  box-shadow: 0 4px 14px -4px rgba(251,191,36,0.55);
}
.c-rank--2 {
  background: linear-gradient(135deg, #D1D5DB, #6B7280);
  color: #111827;
  border-color: #E5E7EB;
}
.c-rank--3 {
  background: linear-gradient(135deg, #C4815B, #92400E);
  color: #FFF7ED;
  border-color: #D6A07A;
}
.c-rank--n {
  background: var(--elevated);
  color: var(--text);
  border-color: var(--border);
}

/* ---------- .c-ribbon — corner ribbon on cards ---------- */
.c-card--featured {
  position: relative;
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 1px var(--border-accent-strong);
}
.c-ribbon {
  position: absolute;
  top: 12px; right: -6px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #1A0A00;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
}
.c-ribbon::after {
  content: "";
  position: absolute;
  bottom: -6px; right: 0;
  border: 3px solid transparent;
  border-top-color: #92400E;
  border-right-color: #92400E;
}
.c-ribbon--rec {
  background: linear-gradient(135deg, #22D3A5, #16A47F);
  color: #061811;
}
.c-ribbon--rec::after {
  border-top-color: #0F8E69;
  border-right-color: #0F8E69;
}

/* ---------- .c-author-rich — Thai-style author with photo ---------- */
.c-author-rich {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: center;
  margin: var(--s-6) 0;
}
.c-author-rich__photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, var(--accent-2), var(--accent));
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 18px -6px rgba(14,164,122,0.45);
}
.c-author-rich__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.c-author-rich__check {
  display: inline-flex;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.c-author-rich__role {
  color: var(--text-2);
  font-size: 0.85rem;
  margin: 2px 0 6px;
}
.c-author-rich__meta {
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}

/* ---------- .c-testimonials grid ---------- */
.c-testimonial {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,0.1);
}
.c-testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px; right: 18px;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(14,164,122,0.20);
  line-height: 1;
}
.c-testimonial__rating { color: #FBBF24; letter-spacing: 1px; font-size: 1rem; }
.c-testimonial__quote {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}
.c-testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.c-testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.c-testimonial__name { font-weight: 600; color: var(--text); font-size: 0.92rem; line-height: 1.2; }
.c-testimonial__role { color: var(--text-2); font-size: 0.8rem; line-height: 1.3; }

.c-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) {
  .c-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- .c-pros-cons ---------- */
.c-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: var(--s-6) 0;
}
.c-pros-cons__col {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.c-pros-cons__col--pros { background: linear-gradient(180deg, #F0FDF7 0%, #FFFFFF 100%); }
.c-pros-cons__col--cons { background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%); }
.c-pros-cons__col h4 {
  margin: 0 0 var(--s-3);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.c-pros-cons__col--pros { border-color: rgba(34,211,165,0.30); }
.c-pros-cons__col--pros h4 { color: var(--accent); }
.c-pros-cons__col--cons { border-color: rgba(248,113,113,0.30); }
.c-pros-cons__col--cons h4 { color: #F87171; }
.c-pros-cons ul { list-style: none; padding: 0; margin: 0; }
.c-pros-cons li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.c-pros-cons__col--pros li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: var(--accent); font-weight: 700;
  background: rgba(34,211,165,0.15);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.c-pros-cons__col--cons li::before {
  content: "✕";
  position: absolute; left: 0; top: 6px;
  color: #F87171; font-weight: 700;
  background: rgba(248,113,113,0.15);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}
@media (min-width: 768px) {
  .c-pros-cons { grid-template-columns: 1fr 1fr; }
}

/* ---------- .c-line-oa — LINE Official Account card ---------- */
.c-line-oa {
  background: linear-gradient(135deg, #06C755 0%, #04A044 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-6) 0;
  box-shadow: 0 8px 28px -8px rgba(6,199,85,0.45);
}
.c-line-oa__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #fff;
  color: #06C755;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.c-line-oa__body { flex: 1; min-width: 0; }
.c-line-oa__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.c-line-oa__sub {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.92;
}
.c-line-oa__btn {
  background: #fff;
  color: #06C755;
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.c-line-oa__btn:hover { background: #f3f4f6; text-decoration: none; }

/* ---------- .c-step — numbered how-to step ---------- */
.c-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px dashed var(--border);
}
.c-step:first-child { border-top: 0; }
.c-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--button-grad);
  color: #FFFFFF;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(14,164,122,0.5);
}
.c-step__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--text);
}
.c-step__body { color: var(--text-2); margin: 0; }

/* ---------- .c-ranked-list — numbered guide cards ---------- */
.c-ranked {
  display: grid;
  gap: var(--s-3);
}
.c-ranked-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.c-ranked-card:hover {
  border-color: var(--border-accent-strong);
  transform: translateX(4px);
  box-shadow: 0 8px 22px -12px rgba(14,164,122,0.30);
  text-decoration: none;
}
.c-ranked-card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.35;
}
.c-ranked-card__meta {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.c-ranked-card__arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

/* ---------- .c-section-title — pretty H2 with eyebrow ---------- */
.c-section-title__eyebrow {
  display: inline-block;
  background: rgba(34,211,165,0.12);
  color: var(--accent);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--s-3);
}

/* ---------- Section dividers (alternating bands) ---------- */
.c-band {
  position: relative;
  padding: var(--s-12) 0;
}
.c-band--alt {
  background: linear-gradient(180deg, #F4F7F4 0%, #FAFAF7 100%);
}
.c-band--accent {
  background: linear-gradient(180deg, #F0FDF7 0%, #FAFAF7 100%);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}
@media (min-width: 768px) {
  .c-band { padding: var(--s-16) 0; }
}

/* Diagonal SVG divider — sits between sections */
.c-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 40%, currentColor 40%, currentColor 100%);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'><path d='M0,0 L1200,32 L1200,48 L0,48 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'><path d='M0,0 L1200,32 L1200,48 L0,48 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
.c-divider--up {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'><path d='M0,32 L1200,0 L1200,48 L0,48 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'><path d='M0,32 L1200,0 L1200,48 L0,48 Z' fill='black'/></svg>");
}
.c-divider--alt   { color: #F4F7F4; }
.c-divider--accent { color: #F0FDF7; }
.c-divider--cream { color: #FAFAF7; }
