/* autovolam2.com — hướng A (mockup docs/web/mockup/trang-chu-A.png). Màu theo bảng Auto trong game. */
:root {
  --bg: #0b231f; --bg2: #123a34; --card: rgba(18, 58, 52, .55); --card-hi: rgba(28, 78, 70, .6);
  --line: rgba(90, 170, 150, .35); --line-hi: rgba(255, 214, 120, .7);
  --jade: #5aaa96; --text: #e9f2ee; --muted: #a8c4bb;
  --gold1: #ffe29a; --gold: #ffd678; --gold3: #d99a2b; --ink: #1d1404;
  --radius: 14px; --wrap: 1180px;
  --ok: #7fd3a8; --warn: #f0b860; --info: #8fc7ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(90, 170, 150, .14), transparent 60%);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.gold-text {
  background: linear-gradient(180deg, var(--gold1), var(--gold) 45%, var(--gold3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- đầu trang ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 35, 31, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--gold); }
.brand:hover { text-decoration: none; }
.brand b { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 13px; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { width: 40px; height: 40px; }
.brand-logo > span { display: flex; flex-direction: column; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--text); padding: 8px 14px; border-radius: 8px; font-weight: 500; position: relative; }
.nav a:hover { background: rgba(90, 170, 150, .12); text-decoration: none; }
.nav a.on { color: var(--gold); }
.nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--gold); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---- nút ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold1), var(--gold) 55%, #e8b04a); color: var(--ink);
  box-shadow: 0 6px 18px rgba(217, 154, 43, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(217, 154, 43, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-line { background: rgba(11, 35, 31, .5); color: var(--gold); border-color: var(--line-hi); }
.btn-line:hover { background: rgba(255, 214, 120, .08); }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 18px; }
.btn[aria-disabled="true"] { filter: grayscale(.7) brightness(.8); cursor: default; transform: none; }

/* ---- chọn game (chỗ để logo game) ---- */
.games-bar { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 58, 52, .5), rgba(11, 35, 31, 0)); }
.games-bar .wrap { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.games-bar .label { font-weight: 700; white-space: nowrap; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; flex: 1; }
.game { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.game:hover { border-color: rgba(255, 214, 120, .45); }
.game[aria-checked="true"] { border-color: var(--line-hi); background: linear-gradient(135deg, rgba(255, 214, 120, .16), rgba(18, 58, 52, .6));
  box-shadow: 0 0 0 1px rgba(255, 214, 120, .25), 0 8px 24px rgba(0, 0, 0, .25); }
.game-logo { width: 64px; height: 64px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255, 214, 120, .18), rgba(11, 35, 31, .9) 70%); border: 1px solid var(--line); }
.game-logo img { width: 100%; height: 100%; object-fit: contain; }
.game-logo .ph { font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--gold); text-align: center; line-height: 1.05; }
.game-logo .ph small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .08em; margin-top: 3px; }
.game-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.game-sub { color: var(--muted); font-size: 13px; }
.game .tick { margin-left: auto; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.game[aria-checked="true"] .tick { background: var(--gold); border-color: var(--gold); }
.game[aria-checked="true"] .tick::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--ink); border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg); }

/* ---- khối đầu trang chủ ---- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/img/hero.jpg") right center / cover no-repeat; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 35, 31, .85) 35%, rgba(11, 35, 31, .2) 70%, rgba(11, 35, 31, .35) 100%),
              linear-gradient(180deg, transparent 70%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .06em; font-size: 18px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
.hero .lead { font-size: 20px; color: var(--text); margin: 14px 0 28px; opacity: .92; }
.dl-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* điện thoại minh hoạ bảng Auto (vẽ bằng CSS, không dùng ảnh game) */
.phone { justify-self: center; width: 250px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 12px;
  background: linear-gradient(145deg, #3d4a47, #0d1513 45%, #2e3a37); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-screen { height: 100%; border-radius: 28px; overflow: hidden; position: relative; padding: 18px 16px;
  background: linear-gradient(180deg, #0f2e29, #0b231f 60%, #123a34); display: flex; flex-direction: column; gap: 12px; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #050807; border-radius: 12px; }
.phone .bar { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 4px; }
.phone h4 { margin: 10px 0 4px; text-align: center; color: var(--gold); font-size: 24px; }
.phone .rows { border: 1px solid var(--line); border-radius: 10px; background: rgba(18, 58, 52, .5); }
.phone .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 13px; }
.phone .row + .row { border-top: 1px solid var(--line); }
.sw { width: 36px; height: 20px; border-radius: 10px; background: #2b4a44; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfe0da; }
.sw.on { background: var(--gold); }
.sw.on::after { left: 19px; background: #fff7dd; }
.phone .start { margin-top: 4px; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--ink);
  background: linear-gradient(180deg, var(--gold1), var(--gold) 55%, #e8b04a); }
.phone .hills { margin-top: auto; height: 70px; border-radius: 12px; opacity: .7;
  background: radial-gradient(60px 30px at 30% 100%, #1f5a50, transparent), radial-gradient(90px 40px at 70% 100%, #1a4d45, transparent); }

/* ---- khung phần ---- */
.section { padding: 56px 0; }
.section-title { display: flex; align-items: center; gap: 24px; justify-content: center; margin-bottom: 28px; }
.section-title::before, .section-title::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.section-title::after { transform: scaleX(-1); }
.section-title h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-align: center; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-head p { color: var(--muted); margin: 8px 0 0; font-size: 18px; }
.more-link { display: flex; justify-content: flex-end; margin-top: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* tính năng */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ico { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--gold);
  background: rgba(255, 214, 120, .08); border: 1px solid rgba(255, 214, 120, .25); }
.feat .ico svg { width: 28px; height: 28px; }
.feat h3 { font-size: 18px; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* tin */
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--gold); }
.tag.update { background: var(--gold); }
.tag.maintenance { background: #9fd8c6; }
.tag.event { background: #f4b27a; }
.tag.other { background: #c9d6d2; }
.news-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: border-color .15s, transform .15s; }
.news-card:hover { text-decoration: none; border-color: var(--line-hi); transform: translateY(-2px); }
.news-card h3 { font-size: 19px; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-card .read { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 14px; }
.news-pin { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 214, 120, .14), rgba(18, 58, 52, .6)); border-color: var(--line-hi); }
.news-pin h3 { font-size: 26px; }
.empty { text-align: center; color: var(--muted); padding: 32px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }

/* đọc tin */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 32px 0 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 8px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.article .sum { font-size: 18px; margin: 0; }
.article .body { font-size: 17px; margin-top: 24px; }
.article .body p { margin: 0 0 16px; }
.article .body h2 { font-size: 22px; color: var(--gold); margin: 28px 0 10px; }
.article .body ul { padding-left: 22px; margin: 0 0 16px; }
.article .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.side h3 { font-size: 18px; margin-bottom: 14px; }
.side a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.side a small { display: block; color: var(--muted); }

/* giá */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { text-align: center; display: flex; flex-direction: column; gap: 6px; position: relative; padding: 28px 22px; }
.plan .days { font-size: 22px; font-weight: 700; }
.plan .price { font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; }
.plan .pnote { color: var(--muted); font-size: 15px; min-height: 24px; }
.plan .btn { margin-top: 14px; }
.plan.hot { border-color: var(--line-hi); background: linear-gradient(180deg, rgba(255, 214, 120, .14), rgba(18, 58, 52, .6));
  box-shadow: 0 0 0 1px rgba(255, 214, 120, .3), 0 14px 32px rgba(0, 0, 0, .3); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 13px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.trial { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.trial b { color: var(--gold); font-size: 20px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* tải về */
.dl-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.dl-card .head { display: flex; align-items: center; gap: 14px; }
.dl-card .head svg { width: 40px; height: 40px; color: var(--gold); }
.dl-card h3 { font-size: 24px; }
.dl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.dl-card dt { color: var(--muted); }
.dl-card dd { margin: 0; font-weight: 600; }
.dl-card .btn { align-self: flex-start; }
.history { width: 100%; border-collapse: collapse; }
.history th, .history td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.history th { color: var(--muted); font-weight: 600; font-size: 14px; }
.history td.notes { color: var(--muted); white-space: pre-line; }

/* hướng dẫn */
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin: 20px 0; }
.tabs button { font: inherit; font-weight: 600; padding: 9px 22px; border-radius: 9px; border: 0; background: none; color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); white-space: pre-line; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px; }

/* dải cuối */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px; }
.cta h2 { font-size: 28px; }
.cta p { margin: 4px 0 0; color: var(--muted); }

/* chân trang */
.foot { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; pointer-events: none;
  background: url("/img/footer.jpg") center bottom / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot nav a { color: var(--text); padding: 0 14px; border-left: 1px solid var(--line); }
.foot nav a:first-child { padding-left: 0; border-left: 0; }

.skeleton { background: linear-gradient(90deg, rgba(90, 170, 150, .12), rgba(90, 170, 150, .22), rgba(90, 170, 150, .12));
  border-radius: 8px; min-height: 18px; animation: sk 1.4s infinite; background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---- điện thoại ---- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 36px 0 48px; text-align: center; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 35, 31, .75), rgba(11, 35, 31, .6) 60%, var(--bg)); }
  .dl-row { justify-content: center; }
  .grid3, .plans, .steps { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .news-pin { grid-template-columns: 1fr; }
  .plan.hot { order: -1; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .5); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(90, 170, 150, .15); }
  .nav a.on::after { display: none; }
  .menu-btn { display: block; }
  .top .dl-top { display: none; }
  .games-bar .wrap { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; }
  .games { gap: 10px; }
  .game { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
  .game .tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; }
  .game-name { font-size: 15px; }
  .game-sub { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .dl-row .btn { flex: 1 1 100%; }
  .cta, .trial, .contact { flex-direction: column; align-items: stretch; text-align: center; }
  .section { padding: 40px 0; }
  .history th:nth-child(3), .history td:nth-child(3) { display: none; }
}
.center-text { text-align: center; margin-top: 18px; }
.hero h1, .section-title h2, .page-head h1 { text-wrap: balance; }
