/* =========================================================
   ShortTwist: Mini Drama Reels - Stylesheet dùng chung
   Đổi màu thương hiệu tại các biến --brand / --brand-2
   ========================================================= */
:root {
  --bg: #0b0a10;
  --bg-2: #13111b;
  --card: #1a1724;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f3fa;
  --muted: #a9a3b8;
  --brand: #ff2e63;      /* Màu chủ đạo (hồng drama) */
  --brand-2: #8b5cf6;    /* Màu phụ (tím twist) */
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 16, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s; border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 46, 99, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(255, 46, 99, .8); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .nav .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: var(--brand); top: -160px; left: -140px; }
.hero::after { width: 520px; height: 520px; background: var(--brand-2); bottom: -200px; right: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 46, 99, .12); color: #ff8fab; font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(255, 46, 99, .3);
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 800; margin: 18px 0; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.gp-badge img { height: 62px; width: auto; margin: -8px; transition: transform .2s; }
.gp-badge:hover img { transform: scale(1.04); }
.stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.stats b { display: block; font-size: 1.6rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .88rem; }

/* Mockup điện thoại (CSS thuần) */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 280px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #2a2635, #0f0d15);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .08);
  position: relative; animation: float 6s ease-in-out infinite;
}
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 20px; z-index: 2; }
.floating-card {
  position: absolute; background: rgba(26, 23, 36, .9); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .85rem;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.floating-card i { color: var(--brand); }
.fc-1 { top: 18%; left: 0; animation: float 5s ease-in-out infinite; }
.fc-2 { bottom: 16%; right: 0; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 860px) {
  .hero { padding: 50px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-cta, .stats { justify-content: center; }
  .fc-1 { left: 4%; } .fc-2 { right: 4%; }
}

/* ---------- Sections chung ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin: 10px 0 12px; letter-spacing: -.01em; }

/* ---------- Features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 46, 99, .45); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); font-size: 1.3rem; margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 34px 28px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -20px; left: 28px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Screenshots ---------- */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: #3a3448; border-radius: 8px; }
.shot {
  flex: 0 0 auto; width: 240px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  scroll-snap-align: center; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shots-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.shots-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; transition: background .2s;
}
.shots-nav button:hover { background: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600;
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer;
}
.faq-q i { transition: transform .3s; color: var(--brand); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-box {
  text-align: center; padding: 60px 30px; border-radius: 28px; background: var(--grad); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.cta-box p { opacity: .9; margin-bottom: 22px; }
.cta-box .gp-badge { display: inline-block; }

/* ---------- Legal cards (trang chủ) ---------- */
.legal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.legal-links a { display: flex; align-items: center; gap: 14px; }
.legal-links a i { font-size: 1.3rem; color: var(--brand); }
@media (max-width: 760px) { .legal-links { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .93rem; }
.footer ul a:hover { color: var(--text); }
.footer .copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Trang pháp lý ---------- */
.legal-hero { padding: 64px 0 30px; text-align: center; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.legal-hero p { color: var(--muted); margin-top: 8px; }
.legal { max-width: 820px; margin: 0 auto; padding: 20px 20px 90px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; padding-top: 6px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #cfcadb; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: #ff8fab; text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .93rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--card); }
.table-scroll { overflow-x: auto; }
.notice {
  background: rgba(255, 46, 99, .08); border: 1px solid rgba(255, 46, 99, .3); border-radius: 14px; padding: 16px 18px; margin: 18px 0;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Form xóa tài khoản ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #332e40; background: #100e16;
  color: var(--text); font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: auto; margin-top: 5px; }
.form .btn { margin-top: 20px; }
.form-msg { margin-top: 14px; font-size: .93rem; }

/* Tôn trọng người dùng tắt animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
