@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Play:wght@400;700&family=Cormorant+Garamond:wght@500;600&family=Dancing+Script:wght@500;600&display=swap');

:root {
  --ink: #3a231d;
  --muted: #7e655e;
  --wine: #5a3328;
  --wine-2: #704236;
  --cream: #f8e8e4;
  --paper: #fff7f5;
  --gold: #d49a94;
  --line: rgba(66, 45, 39, .14);
  --shadow: 0 22px 70px rgba(67, 35, 32, .14);
  --serif: "Play", "Be Vietnam Pro", system-ui, sans-serif;
  --sans: "Aptos", "Aptos Display", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.6 var(--sans);
}
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 22px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand-mark {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wine);
  color: white;
  font-family: var(--serif);
  letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 600; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--wine-2); box-shadow: 0 10px 24px rgba(90,51,40, .2); }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }

.site-header { background: transparent; }
.site-header .shell { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero {
  min-height: 800px;
  padding: 130px 0 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(214,150,150, .14), transparent 18%),
    radial-gradient(circle at 96% 18%, rgba(214,150,150, .16), transparent 16%),
    linear-gradient(180deg, #faeeeb 0%, #f6e3df 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--wine); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h1 { max-width: 680px; margin: 0; font-size: clamp(2.9rem, 5.2vw, 5rem); letter-spacing: -.02em; line-height: 1; }
h1 em { color: var(--wine); font-style: normal; display: block; }
.hero-copy > p:not(.eyebrow) { max-width: 470px; margin: 26px 0 34px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-actions .btn { min-height: 58px; padding: 0 30px; gap: 14px; }
.link-under { padding-bottom: 4px; border-bottom: 1px solid var(--wine); text-decoration: none; font-weight: 500; }

.hero-art {
  position: relative;
  height: 640px;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 55%, rgba(28, 18, 17, .35) 100%),
    url('/assets/truevibe-hero.png') 62% 40% / auto 150%;
  box-shadow: var(--shadow);
}
.hero-quote {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(300px, 70%);
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px 0 0 22px;
  color: white;
  font: 1.9rem/1.2 var(--serif);
  background: rgba(58,35,29, .45);
  backdrop-filter: blur(14px);
}
.hero-quote small { display: block; margin-bottom: 12px; color: #f0d3a0; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero-features { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); background: #f6e3df; position: relative; margin-top: -1px; }
.hero-features ul { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.hero-features li { display: flex; align-items: center; gap: 12px; padding: 0 34px; border-left: 1px solid var(--line); font-size: .92rem; }
.hero-features li:first-child { padding-left: 0; border-left: 0; }
.hero-features svg { width: 30px; height: 30px; fill: none; stroke: #b9787a; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

.intro-strip { padding: 26px 0; color: white; background: var(--wine); }
.intro-strip .shell { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.intro-strip p { margin: 0; }
.intro-strip strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }

.section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -.035em; }
.section-head > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.42); }
.number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); background: #f1dcd7; font-weight: 700; }
.principle h3 { margin: 36px 0 14px; font-size: 1.65rem; }
.principle p { margin: 0; color: var(--muted); }

.preview-band { padding: 100px 0; color: white; background: #3a231d; }
.preview-grid { display: grid; grid-template-columns: 1fr 440px; gap: 90px; align-items: center; }
.preview-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); margin: 0 0 24px; }
.preview-copy p { max-width: 560px; color: rgba(255,255,255,.68); }
.phone {
  width: 330px;
  min-height: 600px;
  margin-inline: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 44px;
  background: #111;
  box-shadow: 0 45px 110px rgba(0,0,0,.48);
}
.phone-screen { min-height: 572px; padding: 28px 20px; border-radius: 32px; color: var(--ink); background: var(--paper); }
.phone-top { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; font-weight: 700; }
.match-card { margin-top: 34px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.match-card small { color: var(--wine); font-weight: 700; letter-spacing: .14em; }
.match-card h3 { margin: 12px 0 6px; font-size: 2rem; }
.match-card p { margin: 10px 0; color: var(--muted); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.chip { padding: 6px 9px; border-radius: 999px; background: var(--cream); font-size: .7rem; font-weight: 600; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.phone-actions button { min-height: 43px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font-weight: 700; }
.phone-actions button:last-child { border-color: var(--wine); background: var(--wine); color: white; }

.journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journey::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.journey-step { position: relative; padding: 0 24px 30px; text-align: center; }
.journey-step .number { position: relative; margin: 0 auto 28px; color: white; background: var(--wine); box-shadow: 0 0 0 8px var(--cream); }
.journey-step h3 { margin: 0 0 12px; font-size: 1.5rem; }
.journey-step p { margin: 0; color: var(--muted); }
.privacy-panel { display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; border-radius: 34px; color: white; background: var(--wine); }
.privacy-copy { padding: clamp(42px, 6vw, 78px); }
.privacy-copy h2 { margin: 0 0 20px; }
.privacy-copy p { color: rgba(255,255,255,.74); }
.privacy-list { display: grid; gap: 12px; margin-top: 28px; }
.privacy-list div { display: flex; align-items: center; gap: 12px; }
.privacy-list span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #f4c9c4; }
.privacy-visual { min-height: 480px; display: grid; place-items: center; padding: 40px; background: linear-gradient(145deg, rgba(0,0,0,.12), rgba(255,255,255,.08)); }
.data-card { width: min(330px, 100%); padding: 26px; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; background: rgba(255,255,255,.1); backdrop-filter: blur(18px); }
.data-card .row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.data-card .row:last-child { border: 0; }
.data-card small { color: rgba(255,255,255,.6); }
.data-card b { color: #f4c9c4; font-size: .82rem; }
.founding { position: relative; overflow: hidden; padding: 110px 0; text-align: center; background: #f1dcd7; }
.founding::before { content: "100"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: rgba(90,51,40,.055); font: 28vw/1 var(--serif); }
.founding .shell { position: relative; }
.founding h2 { max-width: 850px; margin: 0 auto 22px; font-size: clamp(3rem, 6vw, 5.8rem); }
.founding p { max-width: 650px; margin: 0 auto 32px; color: var(--muted); }
.site-footer { padding: 36px 0; color: rgba(255,255,255,.72); background: #3a231d; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner a { text-decoration: none; }

/* Member PWA */
.member-body { min-height: 100vh; background: #f7e6e2; }
.member-layout { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 20px; display: flex; flex-direction: column; color: white; background: #3b241e; }
.sidebar .brand { color: white; }
.side-nav { display: grid; gap: 7px; margin-top: 54px; }
.nav-item { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 13px; padding: 0 15px; border: 0; border-radius: 15px; color: rgba(255,255,255,.64); background: transparent; text-align: left; font-weight: 600; cursor: pointer; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { color: white; background: rgba(255,255,255,.1); }
.profile-mini { margin-top: auto; padding: 14px; display: flex; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; }
.avatar { width: 40px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--wine); background: #f3d9c1; font-weight: 800; }
.profile-mini b, .profile-mini small { display: block; }
.profile-mini small { color: rgba(255,255,255,.5); }
.member-main { min-width: 0; padding: 34px clamp(22px, 4vw, 58px) 80px; }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.member-top h1 { margin: 0; font: 600 clamp(1.65rem, 3vw, 2.3rem)/1.2 var(--sans); letter-spacing: -.035em; }
.member-top p { margin: 4px 0 0; color: var(--muted); }
.top-actions { display: flex; gap: 10px; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.65); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.view { display: none; animation: fade .28s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.66); box-shadow: 0 14px 40px rgba(66,45,39,.06); }
.card-pad { padding: 28px; }
.card-kicker { margin: 0 0 8px; color: var(--wine); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-member { min-height: 430px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background: linear-gradient(145deg, #6b3d30, #3a221b); }
.hero-member::after { content: "♡"; position: absolute; right: 34px; bottom: -68px; color: rgba(255,255,255,.08); font: 260px/1 var(--serif); }
.hero-member > * { position: relative; z-index: 1; }
.hero-member h2 { max-width: 640px; margin: 16px 0; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.hero-member p { max-width: 550px; color: rgba(255,255,255,.7); }
.member-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.light { color: var(--wine); background: white; }
.btn.ghost-light { border-color: rgba(255,255,255,.22); color: white; background: transparent; }
.stack { display: grid; gap: 20px; }
.progress-ring { --value: 92; width: 110px; aspect-ratio: 1; display: grid; place-items: center; margin: 14px auto; border-radius: 50%; background: conic-gradient(var(--wine) calc(var(--value) * 1%), #ead6d1 0); }
.progress-ring::before { content: attr(data-value); width: 84px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #faf7f3; font-size: 1.4rem; font-weight: 800; }
.card h3 { margin: 0; font: 400 1.65rem/1.2 var(--serif); }
.status-line { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #4c8a67; }
.mini-list { display: grid; gap: 15px; margin-top: 20px; }
.mini-list div { display: flex; gap: 12px; align-items: flex-start; }
.mini-list span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--wine); background: #f1dcd7; font-size: .75rem; font-weight: 800; }
.mini-list b, .mini-list small { display: block; }
.mini-list small { color: var(--muted); }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
.profile-card { overflow: hidden; }
.profile-cover { min-height: 260px; position: relative; padding: 30px; color: white; background: linear-gradient(135deg, rgba(58,34,27,.35), rgba(90,51,40,.7)), url('/assets/truevibe-hero.png') center 42% / cover; }
.profile-cover .verified { position: absolute; right: 22px; top: 22px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,0,0,.24); backdrop-filter: blur(12px); font-size: .76rem; font-weight: 700; }
.profile-cover h2 { margin: 105px 0 0; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.profile-cover p { margin: 8px 0 0; color: rgba(255,255,255,.78); }
.profile-content { padding: 30px; }
.profile-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.profile-section:last-child { border: 0; }
.profile-section h4 { margin: 0 0 10px; color: var(--wine); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.profile-section p { margin: 0; color: var(--muted); }
.quote { color: var(--ink) !important; font: 1.55rem/1.45 var(--serif); }
.decision-card { position: sticky; top: 30px; align-self: start; }
.decision-card p { color: var(--muted); }
.decision-buttons { display: grid; gap: 10px; margin-top: 24px; }
.decision-buttons .btn { width: 100%; }
.decision-buttons .btn.secondary { background: white; }
.privacy-note { margin-top: 18px; padding: 14px; border-radius: 14px; color: var(--muted); background: #f2e3df; font-size: .82rem; }
.empty-state { padding: 70px 28px; text-align: center; }
.empty-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 24px; color: var(--wine); background: #f1dcd7; font-size: 2rem; }
.empty-state h2 { margin: 0 0 12px; font-size: 2.5rem; }
.empty-state p { max-width: 530px; margin: 0 auto 26px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; }
.settings-list { display: grid; }
.setting-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-row b, .setting-row small { display: block; }
.setting-row small { color: var(--muted); }
.switch { width: 48px; height: 27px; position: relative; border: 0; border-radius: 999px; background: #cabdb4; cursor: pointer; }
.switch::after { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .2s ease; }
.switch[aria-pressed="true"] { background: var(--wine); }
.switch[aria-pressed="true"]::after { transform: translateX(21px); }
.profile-score { text-align: center; }
.mobile-nav { display: none; }
.demo-badge { position: fixed; right: 18px; bottom: 18px; z-index: 30; padding: 8px 12px; border-radius: 999px; color: white; background: rgba(58,35,29,.82); backdrop-filter: blur(12px); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 120px); padding: 13px 18px; border-radius: 14px; color: white; background: #3a231d; box-shadow: var(--shadow); transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }
dialog { width: min(480px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; background: var(--paper); box-shadow: 0 30px 110px rgba(58,35,29,.3); }
dialog::backdrop { background: rgba(58,35,29,.52); backdrop-filter: blur(4px); }
.dialog-body { padding: 30px; }
.dialog-body h2 { margin: 0 0 12px; font-size: 2.2rem; }
.dialog-body p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }

@media (max-width: 980px) {
  .dashboard-grid, .intro-layout, .profile-grid { grid-template-columns: 1fr; }
  .decision-card { position: static; }
}

.app-shell { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(150deg, #f2e0db, #fbf0ee); }
.app-coming { width: min(560px, calc(100% - 32px)); padding: 46px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.app-coming h1 { font-size: clamp(2.6rem, 10vw, 4.8rem); }
.app-coming p { color: var(--muted); }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 680px); }
  .nav-links a:not(.btn) { display: none; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-grid, .section-head, .preview-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-art { height: 460px; }
  .hero-features { flex-direction: column; align-items: flex-start; }
  .hero-features li { padding: 8px 20px 8px 0; border-left: 0; }
  .intro-strip .shell { align-items: flex-start; flex-direction: column; }
  .principles { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey::before { top: 10%; bottom: 10%; left: 21px; right: auto; width: 1px; height: auto; }
  .journey-step { padding: 0 0 28px 66px; text-align: left; }
  .journey-step .number { position: absolute; left: 0; margin: 0; }
  .privacy-panel { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .member-layout { display: block; }
  .sidebar { display: none; }
  .member-main { padding: 24px 16px 110px; }
  .member-top { align-items: flex-start; }
  .member-top p { font-size: .88rem; }
  .dashboard-grid, .dashboard-grid > *, .stack { min-width: 0; }
  .hero-member { width: 100%; min-height: 500px; }
  .hero-member h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .member-actions { display: grid; grid-template-columns: 1fr; }
  .member-actions .btn { width: 100%; min-width: 0; padding: 11px 14px; white-space: normal; line-height: 1.25; text-align: center; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(255,255,255,.6); border-radius: 22px; background: rgba(255,247,245,.92); box-shadow: 0 18px 50px rgba(58,35,29,.18); backdrop-filter: blur(18px); }
  .mobile-nav .nav-item { min-height: 54px; padding: 4px; flex-direction: column; justify-content: center; gap: 2px; font-size: .68rem; color: var(--muted); text-align: center; }
  .mobile-nav .nav-item svg { width: 19px; height: 19px; }
  .mobile-nav .nav-item.active { color: var(--wine); background: #eee4dc; }
  .demo-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Logo TrueVibe */
.brand-logo { display: block; height: 56px; width: auto; }
.sidebar .brand-logo { height: 64px; }
.solo-card.center .brand-logo { margin: 0 auto; height: 72px; }

/* Font theo bộ nhận diện: tiêu đề Play, nội dung Aptos (thiết bị có sẵn), dự phòng Be Vietnam Pro */
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
