/* ═══════════════════════════════════════════════════
   front.css — Trang chủ Tử Vi Thông Tuệ v3
   Phụ thuộc: style.css (tokens)
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #2D1157 0%, #1A0A2E 55%, #0F0620 100%);
  padding: 100px 40px 60px;
}
#stars-canvas {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
}
.hero-la-so {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 200px; opacity: .22;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 4px; z-index: 1;
  animation: floatLaSo 6s ease-in-out infinite;
}
@keyframes floatLaSo {
  0%,100% { transform: translateY(-50%) rotate(-2deg); }
  50%      { transform: translateY(-54%) rotate(2deg); }
}
.la-so-cell {
  aspect-ratio: 1;
  border: .5px solid rgba(196,168,255,.3);
  border-radius: 4px;
  background: rgba(123,63,196,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: rgba(196,168,255,.5);
}
.la-so-cell.active { background: rgba(123,63,196,.35); border-color: rgba(196,168,255,.6); color: var(--glow); }
.la-so-cell.gold-cell { border-color: rgba(232,201,122,.5); background: rgba(232,201,122,.12); color: var(--gold); }

.hero-inner { position: relative; z-index: 3; max-width: 780px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 32px; height: .5px; background: var(--gold-dim);
}
.hero h1 { font-size: clamp(34px,6vw,58px); font-weight: 400; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--glow); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto 36px; line-height: 1.65; font-weight: 300; }
.hero-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
  animation: bobUp 2.5s ease-in-out infinite;
}
@keyframes bobUp { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── SHARED ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(26px,4vw,38px); font-weight: 400; color: var(--text); margin-bottom: 12px; font-family: 'Playfair Display',serif; line-height: 1.25; }
.section-desc { font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.65; font-weight: 300; margin-bottom: 0; }
.text-glow { color: var(--glow); font-style: normal; }

/* ── PAIN ── */
.pain-section { padding: 90px 0; background: var(--deep); border-top: .5px solid var(--border); border-bottom: .5px solid var(--border); }
.pain-section .container > .section-desc { margin-bottom: 0; }
.pain-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 48px; }
@media(min-width:768px) { .pain-grid { grid-template-columns: repeat(4,1fr); } }
.pain-card { padding: 24px 20px; border: .5px solid var(--border); border-radius: 12px; background: rgba(196,168,255,.03); transition: border-color .3s, background .3s; }
.pain-card:hover { border-color: var(--border-m); background: rgba(196,168,255,.07); }
.pain-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.pain-card h3 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; font-family: 'Inter',sans-serif; }
.pain-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── FORM SECTION ── */
.form-section { padding: 90px 0; background: var(--night); }
.form-card {
  max-width: 600px; margin: 0 auto;
  background: rgba(45,17,87,.5);
  border: .5px solid var(--border-m);
  border-radius: 20px; padding: 48px 40px;
  backdrop-filter: blur(12px);
}
.form-title { font-family: 'Playfair Display',serif; font-size: 26px; font-weight: 400; color: var(--text); text-align: center; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }
.field { margin-bottom: 22px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--glow); margin-bottom: 8px; }
.req { color: var(--gold); }
.field input[type="text"],
.field select { width: 100%; padding: 11px 14px; background: rgba(255,255,255,.06); border: .5px solid var(--border-m); border-radius: 10px; color: var(--text); font-size: 14px; font-family: 'Inter',sans-serif; outline: none; transition: border-color .2s; appearance: none; }
.field input[type="text"]::placeholder { color: var(--muted); }
.field input[type="text"]:focus, .field select:focus { border-color: var(--purple); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A897C4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.date-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.toggle-group { display: flex; gap: 10px; }
.toggle-group input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-btn { display: inline-block; padding: 9px 20px; border: .5px solid var(--border-m); border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted); transition: all .2s; user-select: none; }
.toggle-group input:checked + .toggle-btn { background: rgba(123,63,196,.3); border-color: var(--purple); color: var(--glow); }
.err-msg { display: none; font-size: 12px; color: #f08080; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: rgba(240,128,128,.6); }
.field.has-error .err-msg { display: block; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; font-size: 15px; padding: 14px; }
.btn-loading { display: none; }
.form-submit.loading .btn-text { display: none; }
.form-submit.loading .btn-loading { display: inline; }
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; opacity: .7; }

/* ── LEAD ── */
.lead-section { position: relative; overflow: hidden; padding: 90px 0; }
.lead-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(123,63,196,.25) 0%, transparent 70%); pointer-events: none; }
.lead-box { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; background: rgba(45,17,87,.6); border: .5px solid var(--border-m); border-radius: 20px; padding: 48px 40px; backdrop-filter: blur(8px); text-align: center; }
.lead-tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 5px 14px; border-radius: 20px; background: rgba(232,201,122,.15); color: var(--gold); border: .5px solid rgba(232,201,122,.3); margin-bottom: 18px; letter-spacing: .06em; text-transform: uppercase; }
.lead-box h2 { font-family: 'Playfair Display',serif; font-size: 26px; font-weight: 400; color: var(--text); margin-bottom: 12px; }
.lead-box p { font-size: 15px; color: var(--muted); margin-bottom: 26px; font-weight: 300; line-height: 1.6; }
.lead-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.lead-input { flex: 1; padding: 12px 16px; background: rgba(255,255,255,.06); border: .5px solid var(--border-m); border-radius: 10px; color: var(--text); font-size: 14px; font-family: 'Inter',sans-serif; outline: none; transition: border-color .2s; }
.lead-input::placeholder { color: var(--muted); }
.lead-input:focus { border-color: var(--purple); }
.lead-btn { padding: 12px 20px; background: var(--gold); color: #1A0A2E; border: none; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s; }
.lead-btn:hover { background: #f0d68a; }
.lead-note { font-size: 12px; color: var(--muted); margin-top: 14px; opacity: .7; }

/* ── HOW ── */
.how-section { padding-top: 90px; }
.how-section .container { padding-bottom: 48px; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media(min-width:768px) { .how-grid { grid-template-columns: repeat(3,1fr); } }
.how-step { padding: 36px 40px; border-top: .5px solid var(--border); }
@media(min-width:768px) { .how-step { border-top: none; border-left: .5px solid var(--border); } .how-step:first-child { border-left: none; } }
.how-step-icon { width: 44px; height: 44px; background: rgba(123,63,196,.15); border: .5px solid var(--border-m); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 20px; }
.step-num { font-family: 'Playfair Display',serif; font-size: 48px; font-weight: 400; font-style: italic; color: var(--purple); opacity: .4; line-height: 1; margin-bottom: 16px; }
.how-step h3 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 10px; font-family: 'Inter',sans-serif; }
.how-step p { font-size: 14px; color: var(--muted); line-height: 1.65; font-weight: 300; }

/* ── COMPARE ── */
.compare-section { padding: 90px 0; background: var(--deep); border-top: .5px solid var(--border); border-bottom: .5px solid var(--border); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.compare-col { padding: 28px; border-radius: 14px; border: .5px solid var(--border); }
.compare-col.ours { background: rgba(123,63,196,.12); border-color: rgba(196,168,255,.25); }
.col-label { font-family: 'Inter',sans-serif; font-size: 14px; font-weight: 500; margin-bottom: 20px; padding-bottom: 14px; border-bottom: .5px solid var(--border); display: block; }
.col-label.dim { color: var(--muted); }
.col-label.bright { color: var(--glow); }
.compare-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.compare-row svg { flex-shrink: 0; margin-top: 2px; }
.compare-row span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.compare-row span.bright { color: var(--glow); }

/* ── TESTIMONIALS ── */
.testi-section { padding: 90px 0; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
@media(min-width:600px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:900px) { .testi-grid { grid-template-columns: 1fr 1fr 1fr; } }
.testi-card { padding: 26px; border: .5px solid var(--border); border-radius: 14px; background: rgba(45,17,87,.3); transition: border-color .3s; }
.testi-card.featured { border-color: rgba(123,63,196,.45); background: rgba(123,63,196,.12); }
.stars { color: var(--gold); font-size: 12px; margin-bottom: 12px; letter-spacing: 3px; }
.testi-quote { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; font-weight: 300; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--mid); border: .5px solid var(--border-m); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--glow); }
.testi-name { font-size: 13px; font-weight: 500; color: var(--text); }
.testi-role { font-size: 12px; color: var(--muted); }

/* ── FINAL CTA ── */
.final-cta-section { position: relative; overflow: hidden; background: var(--deep); border-top: .5px solid var(--border); padding: 100px 40px; text-align: center; }
.final-cta-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 500px; height: 200px; background: radial-gradient(ellipse, rgba(123,63,196,.3) 0%, transparent 70%); pointer-events: none; }
.final-cta-section h2 { font-family: 'Playfair Display',serif; font-size: clamp(28px,5vw,44px); font-weight: 400; color: var(--text); margin-bottom: 16px; position: relative; z-index: 1; }
.final-cta-section h2 em { font-style: italic; color: var(--glow); }
.final-cta-section p { font-size: 16px; color: var(--muted); margin-bottom: 32px; font-weight: 300; }
.final-note { font-size: 12px; color: var(--muted); margin-top: 18px; opacity: .6; }
.btn-main--lg { font-size: 16px; padding: 16px 36px; }

/* ── FADE UP ── */
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp .6s ease forwards; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@media(prefers-reduced-motion:reduce) { .fade-up,.hero-la-so,.scroll-hint{animation:none;opacity:1} }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .hero { padding: 90px 20px 60px; }
  .hero-la-so { display: none; }
  .container { padding: 0 20px; }
  .pain-section,.how-section,.compare-section,.testi-section { padding: 64px 0; }
  .form-section,.lead-section,.final-cta-section { padding: 64px 0; }
  .form-card,.lead-box { padding: 32px 20px; }
  .compare-grid { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; }
  .date-row { grid-template-columns: 1fr 1fr; }
  .date-row select:last-child { grid-column: 1/-1; }
}

/* ── LOADING OVERLAY (tuvi-form.js) ── */
#loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,6,32,.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.lo-inner { text-align: center; }
.lo-spinner {
  width: 52px; height: 52px;
  border: 2px solid rgba(196,168,255,.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-text { font-size: 15px; color: var(--glow); font-weight: 300; }

/* ── FORM ERROR BANNER ── */
.form-err-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 20px;
  background: rgba(240,128,128,.1);
  border: .5px solid rgba(240,128,128,.3);
  border-radius: 10px;
  font-size: 13px; color: #f08080; line-height: 1.5;
}
.form-err-banner svg { flex-shrink: 0; }

/* ── CALENDAR NOTE ── */
.cal-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; transition: color .2s; }

/* ── LEAP FIELD (tháng nhuận âm lịch) ── */
.leap-field { margin-top: 12px; overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.leap-field.visible { max-height: 60px; }
.leap-row { display: flex; align-items: center; gap: 10px; }
.leap-checkbox {
  width: 20px; height: 20px; min-width: 20px;
  border: .5px solid var(--border-m); border-radius: 4px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.leap-checkbox.on { background: var(--purple); border-color: var(--purple); }
.leap-check-inner { width: 10px; height: 10px; }
.leap-checkbox.on .leap-check-inner {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}
.leap-label { font-size: 13px; color: var(--muted); cursor: pointer; }

/* ── FIELD ERROR STATE ── */
.field.err input,
.field.err select { border-color: rgba(240,128,128,.6) !important; }
.field .err-msg { display: none; }
.field.err .err-msg { display: block; color: #f08080; font-size: 12px; margin-top: 5px; }

/* ── FIELD OPTIONAL LABEL ── */
.field-optional { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   POPUP ĐĂNG NHẬP ZALO
══════════════════════════════════════════════════════ */
.tvtt-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,3,15,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tvtt-popup-box {
  background: #0f0f1e;
  border: 1px solid rgba(196,168,255,.2);
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 40px rgba(123,63,196,.15);
  animation: popupIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popupIn {
  from { opacity:0; transform:scale(.88) translateY(20px); }
  to   { opacity:1; transform:scale(1)  translateY(0); }
}

.tvtt-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.tvtt-popup-close:hover { background: rgba(255,255,255,.1); color: #e8e0d0; }

.tvtt-popup-star {
  font-size: 32px;
  color: #c9a84c;
  margin-bottom: 12px;
  display: block;
  animation: starPulse 2.5s ease-in-out infinite;
}
@keyframes starPulse {
  0%,100% { text-shadow: 0 0 12px rgba(201,168,76,.4); }
  50%      { text-shadow: 0 0 24px rgba(201,168,76,.8); }
}

.tvtt-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: #e8e0d0;
  margin: 0 0 10px;
}

.tvtt-popup-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.6;
  font-weight: 300;
}

.tvtt-popup-benefits {
  background: rgba(123,63,196,.1);
  border: .5px solid rgba(196,168,255,.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
}
.tvtt-pb-item {
  font-size: 13px;
  color: #9ca3af;
  padding: 4px 0;
  font-weight: 300;
}
.tvtt-pb-item::before { content: ''; }

/* Zalo login button */
.tvtt-zalo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #0068ff;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.tvtt-zalo-btn:hover {
  background: #0058d6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,104,255,.4);
}
.tvtt-zalo-btn:active  { transform: translateY(0); }
.tvtt-zalo-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.tvtt-skip-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  width: 100%;
  margin-bottom: 16px;
  transition: color .2s;
}
.tvtt-skip-btn:hover { color: #9ca3af; }

.tvtt-popup-note {
  font-size: 11px;
  color: #374151;
  margin: 0;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════
   GOOGLE LOGIN POPUP — tvtt-auth.js
══════════════════════════════════════════════════════ */
.tvtt-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 2, 14, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tvtt-auth-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #0e0a1f;
  border: .5px solid rgba(196, 168, 255, .25);
  border-radius: 20px;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 0 60px rgba(123, 63, 196, .25), 0 24px 60px rgba(0,0,0,.6);
  animation: authCardIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes authCardIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.tvtt-auth-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(123,63,196,.3), transparent 60%);
  pointer-events: none;
}

.tvtt-auth-icon {
  font-size: 28px;
  color: #c9a84c;
  margin-bottom: 16px;
  display: block;
}

.tvtt-auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: #e8e0d0;
  margin: 0 0 10px;
  line-height: 1.3;
}

.tvtt-auth-desc {
  font-size: 14px;
  color: rgba(200, 190, 175, .65);
  line-height: 1.6;
  margin: 0 0 20px;
  font-weight: 300;
}

.tvtt-auth-preview {
  margin-bottom: 24px;
}
.tvtt-auth-laso-info {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(201, 168, 76, .08);
  border: .5px solid rgba(201, 168, 76, .25);
  border-radius: 10px;
  padding: 10px 20px;
}
.tvtt-auth-name {
  font-size: 16px;
  font-weight: 500;
  color: #e0c070;
}
.tvtt-auth-menh {
  font-size: 12px;
  color: rgba(200, 190, 175, .6);
}

/* Google button */
.tvtt-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Google Sans', 'Roboto', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1f1f1f;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  margin-bottom: 14px;
}
.tvtt-google-btn:hover {
  box-shadow: 0 4px 20px rgba(255,255,255,.15);
  transform: translateY(-1px);
}
.tvtt-google-btn:active { transform: translateY(0); }
.tvtt-google-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Status */
.tvtt-auth-status {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

/* Skip link */
.tvtt-auth-skip {
  background: none;
  border: none;
  color: rgba(200, 190, 175, .45);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color .2s;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}
.tvtt-auth-skip:hover { color: rgba(200, 190, 175, .75); }

/* Note */
.tvtt-auth-note {
  font-size: 11px;
  color: rgba(200, 190, 175, .35);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .tvtt-auth-card { padding: 32px 22px 26px; }
  .tvtt-auth-title { font-size: 20px; }
}

/* ── Display Options Toggle ── */
.display-opts-wrap { margin-top: 6px; }
.display-opts-summary {
  font-size: 13px; color: rgba(200,190,175,.6); cursor: pointer;
  padding: 6px 0; list-style: none; user-select: none;
}
.display-opts-summary::-webkit-details-marker { display: none; }
.display-opts-summary:hover { color: rgba(200,190,175,.9); }
.display-opts-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 12px 0 4px;
}
.display-opt {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(200,190,175,.75);
  cursor: pointer; font-weight: 300;
}
.display-opt input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: #c9a84c; cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   INTERACTIVE SECTIONS — stats, wheel, stars, quiz
═══════════════════════════════════════════════════ */

/* ── STATS ── */
.stats-section { padding: 60px 0; border-top: .5px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-num { font-family: 'Playfair Display',serif; font-size: clamp(36px,5vw,52px); font-weight: 700; color: var(--gold); line-height: 1; }
.stat-suffix { font-size: clamp(22px,3vw,32px); color: var(--gold); font-weight: 700; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; max-width: 120px; line-height: 1.4; }
@media(max-width:600px){ .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; } }

/* ── 12 CUNG WHEEL ── */
.wheel-section { padding: 90px 0 60px; background: var(--deep); }
.wheel-wrap { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 32px; padding: 40px 24px 0; }
.cung-wheel { display: grid !important; grid-template-columns: repeat(4,1fr) !important; gap: 14px; max-width: 860px; width: 100%; margin: 0 auto; }
@media(min-width:768px){ .cung-wheel { grid-template-columns: repeat(6,1fr) !important; } }
.cung-node {
  display: flex !important; flex-direction: column !important; align-items: center !important;
  gap: 8px; padding: 20px 10px; border: .5px solid var(--border); border-radius: 14px;
  background: rgba(196,168,255,.04); cursor: pointer; min-height: 90px;
  transition: border-color .25s, background .25s, transform .2s;
  font-size: inherit; line-height: 1.3; text-decoration: none;
}
.cung-node:hover, .cung-node.active {
  border-color: var(--gold) !important; background: rgba(201,168,76,.08);
  transform: translateY(-3px);
}
.cung-node-icon { font-size: 24px !important; line-height: 1; display: block !important; }
.cung-node-name { font-size: 12px !important; font-weight: 600; color: var(--text) !important; text-align: center; display: block !important; }
.cung-node-num {
  font-size: 9px; color: var(--muted); width: 20px; height: 20px;
  border-radius: 50%; border: .5px solid var(--border);
  display: flex !important; align-items: center; justify-content: center;
}
.cung-node.active .cung-node-num { background: var(--gold); color: #0f0620; border-color: var(--gold); }

.cung-detail {
  max-width: 860px; width: 100%; min-height: 80px;
  padding: 20px 28px; border: .5px solid var(--border-m);
  border-radius: 14px; background: rgba(201,168,76,.05);
  text-align: center; transition: opacity .3s;
}
.cung-detail-hint { color: var(--muted); font-size: 13px; font-style: italic; }
.cung-detail-name { font-family: 'Playfair Display',serif; font-size: 20px; color: var(--gold); margin-bottom: 8px; }
.cung-detail-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.wheel-cta { text-align: center; margin-top: 36px; }
@media(max-width:600px){ .cung-wheel { grid-template-columns: repeat(3,1fr); } }

/* ── 14 CHÍNH TINH CARDS (expandable like CafeF +) ── */
.stars-section { padding: 90px 0; }
.stars-grid { display: grid !important; grid-template-columns: repeat(2,1fr) !important; gap: 12px; margin-top: 48px; }
@media(min-width:640px){ .stars-grid { grid-template-columns: repeat(3,1fr) !important; } }
@media(min-width:900px){ .stars-grid { grid-template-columns: repeat(4,1fr) !important; } }
.star-card { border: .5px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .25s; display: block !important; }
.star-card[data-expanded="true"] { border-color: var(--border-m); }
.star-card-header {
  width: 100% !important; display: flex !important; align-items: center !important; gap: 10px;
  padding: 14px 16px; background: transparent !important; cursor: pointer;
  text-align: left; position: relative; border: none !important;
  color: inherit !important;
}
.star-card-header:hover { background: rgba(196,168,255,.05); }
.star-icon { font-size: 18px; flex-shrink: 0; }
.star-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.star-hanh { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.star-hanh-kim  { background: rgba(232,213,163,.15); color: #e8d5a3; }
.star-hanh-mộc, .star-hanh-moc { background: rgba(109,222,140,.15); color: #6dde8c; }
.star-hanh-thủy,.star-hanh-thuy { background: rgba(125,211,252,.15); color: #7dd3fc; }
.star-hanh-hỏa, .star-hanh-hoa  { background: rgba(252,165,165,.15); color: #fca5a5; }
.star-hanh-thổ, .star-hanh-tho  { background: rgba(212,169,106,.15); color: #d4a96a; }
.star-toggle {
  font-size: 18px; font-weight: 300; color: var(--gold);
  width: 22px; height: 22px; border-radius: 50%; border: .5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s, background .25s;
}
.star-card[data-expanded="true"] .star-toggle { transform: rotate(45deg); background: rgba(201,168,76,.15); }
.star-card-body { padding: 0 16px 16px; animation: slideDown .25s ease; }
.star-card-body p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.star-cta-link { font-size: 12px; color: var(--gold); text-decoration: none; }
.star-cta-link:hover { text-decoration: underline; }
@keyframes slideDown { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

/* ── QUIZ ── */
.quiz-section { padding: 90px 0; background: var(--deep); }
.quiz-box {
  max-width: 640px; margin: 48px auto 0;
  border: .5px solid var(--border); border-radius: 20px;
  overflow: hidden;
}
.quiz-progress { height: 3px; background: var(--border); }
.quiz-bar { height: 100%; background: var(--gold); transition: width .4s ease; }
.quiz-step { padding: 36px 32px; }
.quiz-q { font-family: 'Playfair Display',serif; font-size: 18px; color: var(--text); margin-bottom: 24px; line-height: 1.4; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  padding: 13px 18px; border: .5px solid var(--border); border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 14px;
  cursor: pointer; text-align: left; transition: all .2s;
}
.quiz-opt:hover { border-color: var(--gold); color: var(--text); background: rgba(201,168,76,.06); }
.quiz-opt.selected { border-color: var(--gold); background: rgba(201,168,76,.12); color: var(--text); }
.quiz-result { padding: 36px 32px; }
.quiz-result-inner { margin-bottom: 28px; text-align: center; }
.quiz-result-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.quiz-result-title { font-family: 'Playfair Display',serif; font-size: 22px; color: var(--gold); margin-bottom: 10px; }
.quiz-result-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.quiz-result-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quiz-result-note { font-size: 12px; color: var(--muted); max-width: 420px; line-height: 1.5; }
.quiz-restart { background: transparent; border: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.quiz-restart:hover { color: var(--text); }
@media(max-width:600px){ .quiz-step, .quiz-result { padding: 24px 20px; } }



/* ── 3D Canvas (Three.js) — behind stars, fills hero ── */
#hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  z-index: 0;
}
#hero-3d-canvas:active { cursor: grabbing; }

/* Stars canvas stays on top of 3D, below text */
#stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
