:root {
  --pink: #f0506e;
  --pink-deep: #d93a5a;
  --pink-soft: #ffe4ea;
  --bg: #fff8fa;
  --card: #ffffff;
  --text: #2b1d22;
  --muted: #7a6670;
  --line: #f3d6de;
  --shadow: 0 10px 30px rgba(240, 80, 110, .15);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1216;
    --card: #261a20;
    --text: #fbeef2;
    --muted: #c4a9b4;
    --line: #3b2a32;
    --pink-soft: #3a1f29;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); }

/* Thanh trên cùng */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--pink); }
.lang {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* Hero */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-block; background: var(--pink-soft); color: var(--pink-deep);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .pill { color: #ff9db1; } }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 16px 0; font-weight: 800; }
h1 em { font-style: normal; color: var(--pink); }
.hero-text > p { color: var(--muted); font-size: 17px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--pink); color: #fff; box-shadow: var(--shadow); }
.btn.primary span { display: flex; flex-direction: column; line-height: 1.15; }
.btn.primary small { font-weight: 500; font-size: 11px; opacity: .9; }
.btn.ghost { border: 2px solid var(--line); color: var(--text); }

/* Điện thoại minh hoạ */
.phone {
  justify-self: center; width: 290px; padding: 12px; border-radius: 40px;
  background: #1c1418; box-shadow: 0 30px 60px rgba(240, 80, 110, .3);
  transform: rotate(2deg);
}
.screen { border-radius: 30px; overflow: hidden; background: #fff; min-height: 520px; color: #2b1d22; text-align: left;
  display: flex; flex-direction: column; }
.chat-input { margin: auto 12px 14px; display: flex; justify-content: space-between; align-items: center;
  background: #f2edf0; border-radius: 999px; padding: 9px 16px; color: #9b8790; font-size: 14px; }
.chat-input b { color: var(--pink); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid #f3d6de; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top; }
.chat-head small { display: block; color: #2bb673; font-size: 12px; }
.chat { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.bub { margin: 0; padding: 9px 14px; border-radius: 18px; max-width: 82%; font-size: 14px; line-height: 1.4;
  opacity: 0; }
.play .bub { animation: pop .4s forwards; }
.bub.her { background: #f2edf0; align-self: flex-start; border-bottom-left-radius: 6px; }
.bub.me { background: var(--pink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.play .bub:nth-child(1) { animation-delay: .3s; }
.play .bub:nth-child(2) { animation-delay: 1.1s; }
.play .bub:nth-child(3) { animation-delay: 1.9s; }
.play .bub:nth-child(4) { animation-delay: 2.7s; }
.play .bub:nth-child(5) { animation-delay: 3.5s; }
.play .bub:nth-child(6) { animation-delay: 4.2s; }
.typing { background: #f2edf0; align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9a6ae; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .3; } }

/* Các phần */
.section { max-width: 1100px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.section.soft { max-width: none; background: var(--pink-soft); }
.section.soft > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 36px; }

.girls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.girl { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4.6; }
.girl img, .girl video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; display: block; }
.girl:hover img, .girl:hover video { transform: scale(1.05); }
.girl .info {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; color: #fff;
  background: linear-gradient(transparent, rgba(30, 10, 18, .85));
}
.girl h3 { margin: 0; font-size: 24px; }
.girl h3 small { font-size: 14px; font-weight: 500; opacity: .85; background: var(--pink); padding: 1px 8px; border-radius: 999px; }
.girl p { margin: 4px 0 0; font-size: 14px; opacity: .92; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.feat { background: var(--card); border-radius: 20px; padding: 24px 18px; text-align: left; }
.feat .ico { font-size: 30px; }
.feat h3 { margin: 10px 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.final-icon { margin: 0 auto 16px; border-radius: 24px; box-shadow: var(--shadow); }
.final .btn { margin-top: 16px; }

.foot { text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot .note { font-size: 12px; }

/* Trang chính sách */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); }

/* Điện thoại / máy tính bảng */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero-text > p { margin: 0 auto; }
  .cta { justify-content: center; }
  .phone { transform: none; width: 260px; }
  .screen { min-height: 440px; }
  .girls { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .nav nav a:not([href="privacy.html"]) { display: none; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { h1 br { display: none; } }

/* Phần nhắn tin */
.chatsec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left; }
.chatsec .sub { margin: 0; font-size: 17px; }

@media (max-width: 760px) {
  .chatsec { grid-template-columns: 1fr; text-align: center; }
}

/* Đầu trang: chữ ở giữa, 3 cô gái ngay bên dưới */
.hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; gap: 28px; }
.hero h1 { margin: 12px 0 10px; }
.hero-text > p { margin: 0 auto; }
.hero .cta { justify-content: center; margin-top: 22px; }
.hero .girls { text-align: left; }
.hero .girl { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
  .hero .girls { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 8px; }
  .hero .girl { aspect-ratio: 3 / 5; border-radius: 16px; }
  .hero .girl .info { padding: 40px 8px 10px; }
  .hero .girl h3 { font-size: 16px; }
  .hero .girl h3 small { font-size: 11px; padding: 0 6px; }
  .hero .girl p { display: none; }
}

/* Hằng nổi bật ở giữa */
.hero .girls { grid-template-columns: 1fr 1.3fr 1fr; align-items: center; }
.girl.star { aspect-ratio: 3 / 3.9; outline: 4px solid var(--pink); outline-offset: 4px;
  box-shadow: 0 25px 60px rgba(240, 80, 110, .45); z-index: 1; }
.girl.star h3 { font-size: 30px; }
.badge { position: absolute; top: 14px; right: 14px; background: var(--pink); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
@media (max-width: 760px) {
  .hero .girls { grid-template-columns: 1fr 1.35fr 1fr; gap: 8px; }
  .girl.star { aspect-ratio: 3 / 5; outline-width: 3px; outline-offset: 2px; }
  .girl.star h3 { font-size: 19px; }
  .badge { top: 8px; right: 8px; font-size: 10px; padding: 2px 8px; }
}
@media (min-width: 761px) { .hero .girl:not(.star) { aspect-ratio: 3 / 3.7; } }
