/* ==========================================================================
   UNICOACH · CHAMPAGNE GOLD FOIL  (lớp giao diện bổ sung — nạp SAU landing.css)
   --------------------------------------------------------------------------
   QUY TẮC VÀNG (đã đo tương phản, đừng phá):
   1. Foil vàng (.foil-text, --foil) CHỈ đặt trên nền Sapphire/navy tối.
      Trên nền ivory chỉ đạt 1.0–2.3:1 → chữ biến mất.
   2. Trên nền sáng dùng .foil-ink (chữ sapphire ánh kim, 7.0–16:1 trên ivory)
      và --foil-rule-ink cho đường kẻ.
   3. Chữ đặt TRÊN nút foil dùng navy-deep; mọi điểm dừng của --foil-btn đều
      ≥ #B08A3E (tương phản với #0A0E24 ≥ 5.9:1).
   4. Chuyển động: chỉ một lượt "quét ánh" khi tải trang + khi hover. Không lặp
      vô hạn (tốn repaint với background-clip:text). Tắt hẳn khi người dùng bật
      prefers-reduced-motion.
   5. Chữ có dấu tiếng Việt → Prata/EB Garamond. Cinzel chỉ cho chữ KHÔNG dấu.
   ========================================================================== */
:root{
  --foil: linear-gradient(135deg,#C8A14B 0%,#E7CE8E 25%,#FFF8EA 48%,#E7CE8E 70%,#C8A14B 88%,#8A6A28 100%); /* công thức chuẩn Master Brandkit 2026 §4 */
  --foil-btn: linear-gradient(135deg,#C8A14B 0%,#E7CE8E 25%,#FFF8EA 48%,#E7CE8E 70%,#C8A14B 100%); /* bỏ điểm #8A6A28 cuối để chữ navy đủ tương phản */
  --foil-rule: linear-gradient(90deg,transparent,#8A6A28 12%,#E7CE8E 40%,#FFF3C4 50%,#E7CE8E 60%,#8A6A28 88%,transparent);
  --foil-rule-ink: linear-gradient(90deg,transparent,#8A6A28 14%,#C8A14B 44%,#E7CE8E 50%,#C8A14B 56%,#8A6A28 86%,transparent);
  --foil-ink: linear-gradient(115deg,#11183A 0%,#2B3A8C 38%,#3C4FA0 50%,#2B3A8C 62%,#11183A 100%);
  --royal: radial-gradient(120% 80% at 14% 0%,rgba(70,96,200,.34),transparent 60%),
           radial-gradient(90% 70% at 100% 100%,rgba(200,161,75,.10),transparent 60%),
           linear-gradient(165deg,#16206A 0%,#11183A 46%,#0A0E24 100%);
  --royal-flat: linear-gradient(180deg,#141C5C 0%,#0A0E24 100%);
}

/* ---------- Tiện ích foil ---------- */
.foil-text{
  background:var(--foil);background-size:230% 100%;background-position:0 0;
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.28));
}
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .foil-text{color:#E7CE8E;-webkit-text-fill-color:currentColor;background:none}
}
.foil-text.sweep{animation:foil-sweep 2.4s cubic-bezier(.22,.61,.2,1) .35s 1 both}
@keyframes foil-sweep{from{background-position:100% 0}to{background-position:0 0}}

.foil-ink{
  background:var(--foil-ink);background-size:230% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
}
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .foil-ink{color:#11183A;-webkit-text-fill-color:currentColor;background:none}
}
.foil-rule{height:2px;border:0;background:var(--foil-rule)}

/* ---------- Nút ---------- */
.btn-gold,.pp-cta,body.page-wait button,body.page-wait .btn:not(.sec){
  background:var(--foil-btn)!important;background-size:230% 100%!important;background-position:0 0!important;
  color:#0A0E24!important;border:1px solid #8A6A28!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 2px 14px rgba(138,106,40,.38);
  text-shadow:0 1px 0 rgba(255,249,230,.55);
  position:relative;overflow:hidden;
  transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1);
  animation:foilShimmer 6s ease-in-out infinite; /* Brandkit §11: quét sáng 6 giây */
}
@keyframes foilShimmer{0%,100%{background-position:0 0}50%{background-position:100% 0}}
.btn-gold:hover,.pp-cta:hover,body.page-wait button:hover,body.page-wait .btn:not(.sec):hover{
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 6px 22px rgba(231,206,142,.45);
}
.btn-gold:disabled{opacity:.6;transform:none}
:where(a,button,input,select,textarea):focus-visible{outline:2px solid #E7CE8E;outline-offset:3px}
.btn-outline,.btn-ghost{
  border:1px solid transparent!important;color:#F4ECD8;
  background:linear-gradient(#0E1442,#0E1442) padding-box,var(--foil) border-box!important;
}
.btn-outline:hover,.btn-ghost:hover{color:#FFF9E6;filter:brightness(1.12)}

/* ---------- Thanh điều hướng + banner ---------- */
.nav{background:linear-gradient(180deg,rgba(22,32,106,.97),rgba(10,14,36,.98))!important;border-bottom:0!important;position:sticky}
.nav::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--foil-rule)}
.logo span{background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.logo img{filter:drop-shadow(0 2px 8px rgba(231,206,142,.28))}
.nav-links a:hover{color:#FFF3C4}
.promo-bar{background:linear-gradient(90deg,#0A0E24,#1B2557 50%,#0A0E24)!important;border-bottom:1px solid rgba(231,206,142,.35)}
.promo-bar a{color:#F3E2A9}

/* ---------- Hero (nền Sapphire — foil dùng thoải mái ở đây) ---------- */
.hero{background:var(--royal)!important;border-bottom:1px solid rgba(231,206,142,.35)}
.hero::before{ /* hoa văn guilloché mờ, kiểu văn bằng/giấy bạc */
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.9;
  background:repeating-conic-gradient(from 0deg at 88% 18%,rgba(231,206,142,.055) 0 .8deg,transparent .8deg 5deg);
  -webkit-mask-image:radial-gradient(60% 75% at 88% 18%,#000,transparent 72%);mask-image:radial-gradient(60% 75% at 88% 18%,#000,transparent 72%);
}
.hero::after{background:radial-gradient(circle,rgba(231,206,142,.20),transparent 68%)!important}
.hero h1{text-shadow:0 2px 24px rgba(0,0,0,.35)}
.eyebrow,.motto,.motto-f{
  background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
}
.lead{color:#E3DECF}

.stat-card,.live-card{
  border:1px solid transparent!important;
  background:linear-gradient(160deg,rgba(20,30,96,.92),rgba(10,14,36,.94)) padding-box,var(--foil) border-box!important;
  position:relative;overflow:hidden;
}
.stat-card b,.live-card b{
  background:var(--foil);background-size:230% 100%;-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;
}
.live{background:linear-gradient(180deg,#0A0E24,#050818)!important}
.live-title{color:#F3E2A9}
.live-head{border-top:0!important;position:relative}
.live-head::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:var(--foil-rule)}
.live-spark{fill:rgba(231,206,142,.5)}

/* Chip lịch Chủ nhật (thông minh: tự tính từ giờ Việt Nam, không số giả) */
.sun-chip{display:inline-flex;align-items:center;gap:10px;margin:0 0 18px;padding:7px 16px 7px 12px;border-radius:999px;
  font-family:var(--font-family);font-size:14.5px;color:#F4ECD8;text-decoration:none;
  border:1px solid transparent;background:linear-gradient(#0E1442,#0E1442) padding-box,var(--foil) border-box}
.sun-chip[hidden]{display:none}
.sun-chip .dot{width:9px;height:9px;border-radius:50%;background:#E7CE8E;flex:none}
.sun-chip.open .dot{background:#4FBF8A;box-shadow:0 0 0 0 rgba(79,191,138,.55);animation:sun-pulse 2s infinite}
.sun-chip b{color:#FFF3C4;font-weight:600;font-variant-numeric:tabular-nums}
.sun-chip:hover{filter:brightness(1.12)}
@keyframes sun-pulse{0%{box-shadow:0 0 0 0 rgba(79,191,138,.55)}70%{box-shadow:0 0 0 9px rgba(79,191,138,0)}100%{box-shadow:0 0 0 0 rgba(79,191,138,0)}}

/* ---------- Nền sáng: foil-ink + đường kẻ vàng sẫm ---------- */
.sec-title{
  background:var(--foil-ink);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
}
.sec-title::after{height:3px!important;width:84px!important;background:var(--foil-rule-ink)!important}
.register .reg-text h2::after{background:var(--foil-rule)!important}

.feature,.course,.g-box,.path-step,.teacher{position:relative;overflow:hidden}
.feature::before,.course::before,.g-box::before,.path-step::before,.teacher::before{
  content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--foil-rule-ink);opacity:.95;
}
.g-box{border-left:1px solid var(--border)!important}
.path-step{border-top:1px solid var(--border)!important}
.course.combo{box-shadow:none!important;border-color:#C8A14B}
.path-step .band{background:var(--foil-ink);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.avatar{border:2px solid transparent!important;background:linear-gradient(140deg,#16206A,#0A0E24) padding-box,var(--foil) border-box!important;color:#E7CE8E}
.tag{background:linear-gradient(115deg,#F6E7B8,#E7CE8E 50%,#F6E7B8);color:#5E4716;border:1px solid #C8A14B}

/* Medallion cho icon (thay emoji) */
.ico{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:14px!important;
  border:1px solid transparent;background:linear-gradient(#FBF7EE,#F4ECD8) padding-box,var(--foil) border-box}
.ic{width:28px;height:28px;fill:none;stroke:#2B3A8C;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ic .a{stroke:#8A6A28}
.g-box h3 .ic,.reg-text .ic{width:22px;height:22px;vertical-align:-4px;margin-right:8px}

/* Hiệu ứng đèn rọi theo con trỏ (chỉ khi có chuột, tắt khi giảm chuyển động) */
.foil-card::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .25s;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%),rgba(231,206,142,.20),transparent 62%)}
.foil-card:hover::after{opacity:1}
.feature.foil-card::after,.course.foil-card::after,.g-box.foil-card::after,.path-step.foil-card::after,.teacher.foil-card::after{
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%),rgba(200,161,75,.16),transparent 62%)}

/* ---------- Khu đăng ký + chân trang ---------- */
.register{background:var(--royal)!important}
.footer{background:linear-gradient(180deg,#0A0E24,#050818)!important;position:relative}
.footer::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:var(--foil-rule)}
.footer h4{color:#F3E2A9}

/* ---------- Trang Phòng chờ (cho-thi-thu.html) ---------- */
body.page-wait{background:var(--royal)!important;background-attachment:fixed}
body.page-wait h1{background:var(--foil);background-size:230% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
body.page-wait .tag{background:var(--foil-btn);color:#0A0E24;border:1px solid #8A6A28}
body.page-wait .card{border:1px solid transparent;background:linear-gradient(160deg,rgba(20,30,96,.92),rgba(10,14,36,.94)) padding-box,var(--foil) border-box}
body.page-wait .cd b,body.page-wait .metrics b{background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
body.page-wait .btn.sec{background:transparent!important;color:#fff;border:1.5px solid rgba(231,206,142,.6)!important}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion:reduce){
  .btn-gold,.pp-cta,body.page-wait button,body.page-wait .btn:not(.sec){animation:none}
  .foil-text.sweep{animation:none}
  .sun-chip.open .dot{animation:none}
  .btn-gold,.pp-cta{transition:none}
  .foil-card::after{display:none}
}
@media (hover:none){.foil-card::after{display:none}}
@media print{.foil-text,.foil-ink{background:none;color:#5E4716;-webkit-text-fill-color:currentColor}}

/* Phòng chờ: font theo Master Brandkit 2026 — Prata tiêu đề/số, EB Garamond nội dung, Montserrat cho UI (nút, nhãn, đồng hồ) */
body.page-wait{font-family:var(--font-body,'EB Garamond',Georgia,serif)}
body.page-wait h1,body.page-wait .card h2,body.page-wait .cd b,body.page-wait .metrics b{font-family:var(--font-heading,Prata,Georgia,serif);font-weight:400}
body.page-wait .card h2{font-size:15px}
body.page-wait .tag,body.page-wait button,body.page-wait .btn,body.page-wait .cd small,body.page-wait .metrics small,body.page-wait .open{font-family:var(--font-ui,Montserrat,Inter,system-ui,sans-serif)}
body.page-wait .tag{font-weight:700;font-size:12px;letter-spacing:.08em}
body.page-wait button,body.page-wait .btn{font-weight:700;font-size:15px}
body.page-wait .cd small,body.page-wait .metrics small{font-size:12.5px;font-weight:500}
body.page-wait input{font-family:var(--font-body,'EB Garamond',Georgia,serif)}

/* ---------- Thử nhanh: 3 câu bẫy học thuật (landing #quiz) ---------- */
#quizTrap{max-width:720px;margin:0 auto;padding:26px;border-radius:20px;color:#FBF7EE;background:var(--royal);border:1px solid transparent;
  background-image:var(--royal);box-shadow:0 0 0 1px #C8A14B,0 12px 32px rgba(10,14,36,.22)}
#quizTrap .qz-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font:700 12px var(--font-ui,Montserrat,Inter,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase}
#quizTrap .qz-step{color:#E7CE8E}
#quizTrap .qz-tag{padding:3px 10px;border:1px solid rgba(231,206,142,.55);border-radius:99px;color:#E7CE8E}
#quizTrap .qz-bar{height:3px;border-radius:2px;background:rgba(255,255,255,.14);margin:12px 0 18px;overflow:hidden}
#quizTrap .qz-bar i{display:block;height:100%;background:var(--foil);transition:width .3s cubic-bezier(.4,0,.2,1)}
#quizTrap .qz-q{font:400 clamp(20px,3.6vw,26px)/1.4 var(--font-heading,Prata,Georgia,serif);margin:0 0 18px;color:#fff}
#quizTrap .qz-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
#quizTrap .qz-opt{font:600 16px var(--font-ui,Montserrat,Inter,system-ui,sans-serif);padding:13px 14px;border-radius:10px;border:1.5px solid rgba(231,206,142,.5);background:rgba(255,255,255,.05);color:#fff;cursor:pointer;
  transition:background .25s cubic-bezier(.4,0,.2,1),border-color .25s,transform .15s}
#quizTrap .qz-opt:hover:not(:disabled){background:rgba(231,206,142,.14);border-color:#E7CE8E;transform:translateY(-1px)}
#quizTrap .qz-opt.ok{background:rgba(79,191,138,.2);border-color:#4FBF8A}
#quizTrap .qz-opt.no{background:rgba(255,120,120,.16);border-color:#FF9A9A}
#quizTrap .qz-opt:disabled{cursor:default}
#quizTrap .qz-fb{margin-top:16px;font:500 17px/1.6 var(--font-body,'EB Garamond',Georgia,serif);min-height:4px}
#quizTrap .qz-fb b.g{color:#7BE0A8}#quizTrap .qz-fb b.r{color:#FFB4B4}
#quizTrap .qz-next,#quizTrap .qz-again{display:block;margin-top:14px;font:700 14px var(--font-ui,Montserrat,Inter,system-ui,sans-serif);padding:10px 16px;border-radius:8px;cursor:pointer;
  border:1px solid #C8A14B;background:transparent;color:#E7CE8E}
#quizTrap .qz-next:hover,#quizTrap .qz-again:hover{background:rgba(231,206,142,.12)}
#quizTrap .qz-res{text-align:center}
#quizTrap .qz-score{font:400 clamp(44px,9vw,64px)/1 var(--font-heading,Prata,Georgia,serif);background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#quizTrap .qz-msg{font:400 22px var(--font-heading,Prata,Georgia,serif);margin:8px 0}
#quizTrap .qz-note{font:500 16px/1.6 var(--font-body,'EB Garamond',Georgia,serif);opacity:.88;max-width:520px;margin:0 auto 16px}
#quizTrap .qz-actions{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
#quizTrap .qz-again{margin:0}
@media (prefers-reduced-motion:reduce){#quizTrap .qz-opt,#quizTrap .qz-bar i{transition:none}}
