/* HUB_APPGIAITRI_v1 — khu chợ ứng dụng giải trí: sáng, hiện đại, ưu tiên điện thoại */
:root { --p: #5b6cff; --p2: #b04dff; --ink: #151b3a; --mut: #5e6788; --bg: #f5f7ff; --card: #fff; --line: #e6eaf6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); background: var(--bg); padding-bottom: 72px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.hh { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 19px; }
.brand i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 4px 12px rgba(91,108,255,.35); }
.hn { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; }
.hn a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 12px; color: var(--mut); white-space: nowrap; }
.hn a:hover, .hn a.on { background: #eef0ff; color: var(--p); }
.acc { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 14px; background: var(--p); color: #fff; border-radius: 14px; padding: 9px 14px; white-space: nowrap; }
.acc.in { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 4px 12px 4px 4px; }
.acc i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 900; }
main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.b { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 800; text-decoration: none; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.b.main { background: linear-gradient(180deg, #6f7dff, var(--p)); color: #fff; box-shadow: 0 8px 20px rgba(91,108,255,.3); }
.b.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.b.sm { min-height: 42px; font-size: 15px; padding: 0 16px; }
.kick { font-weight: 800; color: var(--p); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 36px 0 20px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; margin: 0 0 14px; font-weight: 900; letter-spacing: -1px; }
.sub { font-size: 18px; color: var(--mut); line-height: 1.55; margin: 0 0 20px; font-weight: 600; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-3deg); }
.tile { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1.3; box-shadow: 0 14px 34px rgba(20,30,80,.18); background: var(--c); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 5px 10px; font-weight: 900; font-size: 14px; }
.tile.t1, .tile.t3 { transform: translateY(24px); }
.blk { padding: 28px 0; }
.blk.pt { padding-top: 26px; }
.blk h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 8px; font-weight: 900; }
.blk h2 { font-size: 24px; margin: 0; font-weight: 900; }
.bh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.more { font-weight: 800; color: var(--p); text-decoration: none; }
.lead { font-size: 17px; color: var(--mut); line-height: 1.6; font-weight: 600; max-width: 760px; }
.muted { color: var(--mut); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.chip { text-decoration: none; font-weight: 800; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: 0 8px 26px rgba(20,30,80,.08); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.cover { display: block; aspect-ratio: 1.9; background: var(--c); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cb { display: flex; gap: 12px; padding: 14px 16px 6px; }
.ico { width: 56px; height: 56px; border-radius: 16px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); margin-top: -34px; border: 3px solid #fff; background: #fff; }
.ico.big { width: 112px; height: 112px; border-radius: 28px; margin: 0; border-width: 4px; }
.ct h3 { margin: 0; font-size: 20px; font-weight: 900; } .ct h3 a { text-decoration: none; }
.ct p { margin: 4px 0 8px; color: var(--mut); font-weight: 600; font-size: 14px; line-height: 1.45; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta span { font-size: 12px; font-weight: 800; background: #f1f3fb; border-radius: 8px; padding: 3px 8px; color: var(--mut); }
.ca { display: flex; gap: 8px; padding: 10px 16px 16px; margin-top: auto; }
.ca .b { flex: 1; }
.acct { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, #eef0ff, #f7eeff); border-radius: 28px; padding: 28px; margin: 12px 0; }
.acct p { color: var(--mut); font-weight: 600; line-height: 1.6; }
.acct-card { background: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 22px rgba(91,108,255,.14); }
.acct-card span { color: var(--mut); font-weight: 600; }
.chal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ch { text-decoration: none; background: #fff; border-radius: 20px; padding: 16px; border-left: 6px solid var(--c); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 6px 18px rgba(20,30,80,.06); }
.ch small { color: var(--c); font-weight: 900; } .ch b { font-size: 18px; } .ch span { color: var(--mut); font-weight: 600; font-size: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.col { text-decoration: none; background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px rgba(20,30,80,.06); }
.col b { font-size: 18px; } .col span { color: var(--mut); font-weight: 600; font-size: 14px; }
.icos { display: flex; gap: 6px; margin-top: 6px; } .icos img { width: 40px; height: 40px; border-radius: 12px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.post { text-decoration: none; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(20,30,80,.06); }
.post img { aspect-ratio: 1.9; object-fit: cover; width: 100%; }
.post b { padding: 12px 14px 4px; font-size: 17px; line-height: 1.35; } .post span { padding: 0 14px 14px; color: var(--mut); font-size: 14px; font-weight: 600; }
.apphero { position: relative; margin: 16px 0 0; border-radius: 28px; overflow: hidden; background: var(--c); min-height: 300px; display: flex; align-items: flex-end; }
.apphero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: blur(4px) saturate(1.2); transform: scale(1.08); }
.apphero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,40,0) 20%, rgba(10,15,40,.72)); }
.ah { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-end; padding: 24px; color: #fff; flex-wrap: wrap; }
.ah h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 900; } .ah .sub { color: rgba(255,255,255,.9); margin-bottom: 14px; } .ah .kick { color: #fff; opacity: .9; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.feat { padding-left: 0; list-style: none; } .feat li { padding: 10px 0 10px 32px; position: relative; font-weight: 600; border-bottom: 1px dashed var(--line); }
.feat li::before { content: "✓"; position: absolute; left: 4px; color: #2fb36b; font-weight: 900; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-weight: 600; } .facts dt { color: var(--mut); } .facts dd { margin: 0; }
.note { background: #fff8e6; border-radius: 16px; padding: 12px 14px; font-weight: 600; font-size: 14px; color: #7a5a00; }
.panel { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 6px 18px rgba(20,30,80,.06); margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; }
.panel.center, .center { text-align: center; }
.lb { list-style: none; padding: 0; margin: 0; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-weight: 700; }
.lb li span { width: 28px; height: 28px; border-radius: 9px; background: #f1f3fb; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; }
.lb li:nth-child(1) span { background: #ffd966; } .lb li:nth-child(2) span { background: #dfe6f3; } .lb li:nth-child(3) span { background: #f5c9a3; }
.lb li b { flex: 1; font-weight: 800; } .lb li b a { text-decoration: none; color: var(--p); } .lb li em { font-style: normal; color: var(--p); font-weight: 900; }
.mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mini a { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-decoration: none; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 4px 14px rgba(20,30,80,.06); }
.mini img { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; } .mini b { font-weight: 900; } .mini span { font-size: 13px; color: var(--mut); font-weight: 600; }
.colblk { margin: 22px 0; } .colblk h2 { margin-bottom: 2px; }
.chals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.chx { background: #fff; border-radius: 22px; padding: 18px; border-top: 6px solid var(--c); box-shadow: 0 6px 18px rgba(20,30,80,.06); display: flex; flex-direction: column; gap: 10px; }
.chh { display: flex; gap: 12px; align-items: center; } .chh img { border-radius: 14px; } .chh small { color: var(--c); font-weight: 900; } .chh h2 { font-size: 20px; }
.chx p { margin: 0; color: var(--mut); font-weight: 600; }
.me { max-width: 760px; }
.prof { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 6px 18px rgba(20,30,80,.06); }
.prof > div { flex: 1; } .prof h2 { margin: 0; font-size: 26px; }
.ava { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 32px; font-weight: 900; flex: none; }
.bar { height: 12px; background: #eef0f8; border-radius: 6px; overflow: hidden; margin: 8px 0 4px; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--p), var(--p2)); }
.plusb { font-size: 12px; background: linear-gradient(135deg, #ffd166, #ff9f1c); color: #5a3a00; border-radius: 8px; padding: 2px 8px; vertical-align: middle; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; } .badges span { background: #fff6dc; color: #7a5200; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; }
.progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pg { text-decoration: none; background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(20,30,80,.05); } .pg span { color: var(--mut); font-weight: 600; font-size: 14px; }
.set { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 4px 12px rgba(20,30,80,.05); }
.set label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.set input:not([type=checkbox]) { font: inherit; padding: 12px; border-radius: 12px; border: 2px solid var(--line); }
.set label.chk { flex-direction: row; align-items: center; gap: 10px; } .set .chk input { width: 22px; height: 22px; accent-color: var(--p); }
.plus .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.pc { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px rgba(20,30,80,.06); } .pc span { color: var(--mut); font-weight: 600; font-size: 14px; }
.hf { background: #151b3a; color: #c9cfe8; padding: 36px 16px 90px; margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.hf .brand { color: #fff; } .hf p { font-weight: 600; line-height: 1.6; font-size: 14px; }
.fcol { display: flex; flex-direction: column; gap: 8px; } .fcol b { color: #fff; } .fcol a { text-decoration: none; font-weight: 600; font-size: 14px; }
.copy { grid-column: 1 / -1; font-size: 13px; opacity: .7; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.bn { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: none; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); }
.bn a { flex: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; font-size: 12px; font-weight: 800; color: var(--mut); gap: 2px; padding: 4px; }
.bn i { font-style: normal; font-size: 20px; }
@media (max-width: 860px) {
  .hero, .acct, .two { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .hero-g { transform: none; }
  .hn { display: none; }
  .bn { display: flex; }
  .hf { grid-template-columns: 1fr 1fr; }
  .hf .fcol:first-child { grid-column: 1 / -1; }
}
@media (min-width: 861px) { body { padding-bottom: 0; } .hf { padding-bottom: 36px; } }
/* thanh trên kiểu Content Hub: thương hiệu trái, tài khoản + nút menu (drawer) phải */
.hh { flex-direction: row !important; justify-content: flex-start !important; }
.hh .brand { order: 0; } .hh .hn { order: 1; } .hh .acc { order: 2; margin-left: auto; } .hh .hbg { order: 3; }
.hbg { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f1f3fb; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; flex: none; }
.hbg i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.dwb { position: fixed; inset: 0; background: rgba(15,20,50,.45); z-index: 40; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: #fff; z-index: 41; overflow-y: auto; padding: max(12px, env(safe-area-inset-top)) 14px 24px; box-shadow: -10px 0 30px rgba(10,20,60,.2); animation: dwIn .2s ease; }
@keyframes dwIn { from { transform: translateX(40px); opacity: 0; } }
.dwh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dwx { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f1f3fb; font-size: 16px; cursor: pointer; }
.dwacc { display: block; text-align: center; text-decoration: none; font-weight: 800; background: linear-gradient(180deg, #6f7dff, var(--p)); color: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.dw nav { display: flex; flex-direction: column; }
.dw nav > a { text-decoration: none; font-weight: 800; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.dw nav > a.sub { font-weight: 700; color: var(--mut); padding-left: 14px; }
.dwt { margin: 14px 6px 4px; color: var(--p); text-transform: uppercase; font-size: 12px; letter-spacing: .6px; }
.dwapps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.dwapps a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; background: #f5f7ff; border-radius: 12px; padding: 7px 8px; }
.dwapps img { border-radius: 8px; }
@media (max-width: 860px) { .hbg { display: flex; } .hh .acc { padding: 8px 12px; font-size: 13px; } }
.bn a { min-width: 0; }
.dwh { flex-direction: row !important; }
.dw nav > a { font-size: 16px !important; line-height: 1.3 !important; }
.dw nav > a.sub { font-size: 15px !important; padding: 9px 6px 9px 14px !important; }
