/* ===== GENERATOR PAGE STYLES ===== */

.gen-nav {
  background: var(--navy);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
}

.gen-nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--white); }

/* HERO BAND */
.gen-hero {
  background: var(--navy);
  padding: 60px 24px 80px;
  text-align: center;
}

.gen-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gen-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.gen-headline em {
  font-style: normal;
  color: var(--orange);
}

.gen-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* MAIN */
.gen-main {
  padding: 48px 24px 80px;
  background: var(--cream);
  min-height: 60vh;
}

.gen-container {
  max-width: 960px;
  margin: 0 auto;
}

/* INPUT FORM */
.input-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.input-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-title svg { color: var(--orange); }

.ad-form { display: flex; flex-direction: column; gap: 24px; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--orange); }

.form-group input,
.form-group textarea {
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { min-height: 100px; }

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.input-icon-wrap input { padding-left: 36px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-generate {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

.btn-generate:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-error {
  background: #FFF0EC;
  border: 1px solid #FFB299;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--orange-dark);
  font-size: 14px;
  margin-top: 8px;
}

/* LOADING */
.loading-section { margin-top: 32px; }

.loading-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ai-thinking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.ai-pulse-lg {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.3s;
}

.step.done { color: var(--orange); }
.step.active .step-icon { color: var(--orange); animation: pulse 1.5s infinite; }

/* RESULTS */
.results-section { margin-top: 32px; }

.results-header { text-align: center; margin-bottom: 32px; }

.results-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.results-sub {
  font-size: 15px;
  color: var(--text-muted);
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ad-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.ad-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,112,67,0.15);
}

.ad-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--cream-dark);
}

.ad-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  letter-spacing: 0.05em;
}

.ad-card-body {
  padding: 16px;
}

.ad-card-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-card-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  font-family: 'Sarabun', sans-serif;
}

.ad-card-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.btn-card-action {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Sarabun', sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-card-action:hover { opacity: 0.85; }

.btn-download {
  background: var(--orange);
  color: var(--white);
}

.btn-preview {
  background: var(--cream-dark);
  color: var(--text);
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-secondary {
  background: var(--cream-dark);
  color: var(--text);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #e8ddd4; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--white);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(0,0,0,0.15); }

.modal-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
}

.modal-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-copy {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  margin-bottom: 20px;
}

.modal-cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--orange);
  color: var(--white);
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.modal-cta:hover { background: var(--orange-dark); }

/* FOOTER */
.gen-footer {
  background: var(--navy);
  padding: 32px 24px;
  text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.footer-logo { display: flex; align-items: center; gap: 10px; }

.gen-footer .logo-mark {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.gen-footer .logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.gen-footer .footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .gen-hero { padding: 40px 20px 60px; }
  .gen-main { padding: 32px 16px 60px; }
  .input-card { padding: 24px 20px; border-radius: 20px; }
  .ad-grid { grid-template-columns: 1fr; gap: 16px; }
  .ad-card-image { height: 200px; }
  .results-title { font-size: 22px; }
}

/* ===== VARIANT ZONE ===== */

.variant-zone {
  padding: 0 12px 16px;
  border-top: 1px dashed rgba(0,0,0,0.07);
  margin-top: 4px;
  padding-top: 12px;
}

.btn-gen-variants {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px dashed rgba(91,106,199,0.45);
  background: rgba(91,106,199,0.04);
  color: #5B6AC7;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-gen-variants:hover:not(:disabled) {
  border-color: #5B6AC7;
  background: rgba(91,106,199,0.09);
}

.btn-gen-variants:disabled { opacity: 0.6; cursor: not-allowed; }

.variant-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.variant-label {
  font-size: 12px;
  font-weight: 700;
  color: #5B6AC7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Horizontal scroll on mobile, 3-column grid on desktop */
.variant-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.variant-carousel::-webkit-scrollbar { height: 3px; }
.variant-carousel::-webkit-scrollbar-thumb { background: #d0d5e8; border-radius: 3px; }

.variant-card {
  flex: 0 0 180px;
  border-radius: 12px;
  background: #F8F9FC;
  border: 1px solid #E4E8F2;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: box-shadow 0.2s;
}

.variant-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }

.variant-index-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
}

.variant-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.variant-body {
  padding: 8px 10px 4px;
}

.variant-headline {
  font-family: 'Sarabun', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0A1628;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-copy {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-cta-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  color: #fff;
  margin-bottom: 4px;
}

.btn-variant-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: calc(100% - 16px);
  margin: 6px 8px 8px;
  padding: 7px;
  border-radius: 8px;
  border: none;
  background: #E4E8F2;
  color: #374151;
  font-family: 'Sarabun', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-variant-download:hover { background: #CBD2E8; }

@media (min-width: 640px) {
  /* On wider screens show all 3 cards side-by-side if space permits */
  .variant-carousel { flex-wrap: nowrap; }
  .variant-card { flex: 1 1 0; min-width: 0; }
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ===== DOWNLOAD PREVIEW CARD (html2canvas target) ===== */
.download-card {
  width: 400px;
  padding: 0;
  font-family: 'Sarabun', sans-serif;
  background: #fff;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.download-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.download-card-body {
  padding: 20px;
}

.download-card-platform {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  margin-bottom: 10px;
}

.download-card-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 6px;
  line-height: 1.3;
}

.download-card-copy {
  font-size: 13px;
  color: #5A6070;
  line-height: 1.55;
  margin-bottom: 14px;
}

.download-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-card-cta {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.download-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A1628;
}

/* ===== MULTI-VARIANT PLATFORM SECTIONS ===== */

/* The ad-grid now holds platform-sections stacked vertically */
.ad-grid { display: flex; flex-direction: column; gap: 28px; }

.platform-section {
  background: var(--white);
  border-radius: 20px;
  padding: 20px 20px 0;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.platform-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-badge-large {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  letter-spacing: 0.04em;
}

.btn-compare-all {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #E4E8F2;
  background: #F8F9FC;
  color: #374151;
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-compare-all:hover { border-color: #5B6AC7; background: #EEF2FF; color: #5B6AC7; }

/* Angle tabs (Emotional / Social Proof / Urgency) */
.angle-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid #F0F2FA;
}

.angle-tab {
  padding: 9px 16px;
  border: none;
  background: none;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8A95A3;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.angle-tab:hover { color: #374151; }
.angle-tab.active { color: #5B6AC7; border-bottom-color: #5B6AC7; }

/* Angle panels — only active is shown */
.angle-tab-panels { padding: 16px 0; }

.angle-panel { display: none; }
.angle-panel.active { display: block; }

/* Variant card inside a panel */
.variant-ad-card {
  background: #F8F9FC;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E4E8F2;
}

.variant-ad-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e8ecf4;
}
.variant-ad-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.variant-ad-angle-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(10,22,40,0.65);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.variant-ad-body { padding: 14px 16px 10px; }

.variant-ad-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.variant-ad-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-ad-cta-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  color: #fff;
}

.variant-ad-actions {
  padding: 8px 16px 12px;
  display: flex;
  gap: 8px;
}

.btn-var-download {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  background: #E4E8F2;
  color: #374151;
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-var-download:hover { background: #CBD2E8; }

.btn-var-winner {
  flex: 1;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1.5px dashed #E4E8F2;
  background: #F8F9FC;
  color: #8A95A3;
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-var-winner:hover { border-color: #FF7043; color: #FF7043; background: #FFF4F0; }
.btn-var-winner.winner-active {
  border-color: #FF7043;
  background: linear-gradient(135deg, #FF7043, #E5511A);
  color: #fff;
  border-style: solid;
}

.winner-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FF7043, #E5511A);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
}

/* ===== COMPARE MODAL GRID ===== */
.compare-platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.compare-card {
  background: #F8F9FC;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E4E8F2;
}

.compare-angle-badge {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #374151;
  background: #EEF2FF;
  border-bottom: 1px solid #E4E8F2;
  text-align: center;
}

.compare-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.compare-body { padding: 10px 12px 8px; }

.compare-headline {
  font-size: 13px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-copy {
  font-size: 11px;
  color: #5A6A7E;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-cta {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  color: #fff;
}

.compare-actions {
  padding: 8px 10px 10px;
  display: flex;
  gap: 6px;
}

.btn-compare-dl {
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: #E4E8F2;
  color: #374151;
  font-family: 'Sarabun', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.btn-compare-dl:hover { background: #CBD2E8; }

.btn-compare-winner {
  flex: 1;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #FF7043, #E5511A);
  color: #fff;
  font-family: 'Sarabun', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-compare-winner:hover { opacity: 0.88; }

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
  .angle-tab { padding: 8px 12px; font-size: 13px; }
  .variant-ad-image { height: 160px; }
}