/* Vỏ ứng dụng di động (docs/design.md). Dùng token của design.css; ép sáng để giống app thương mại. */
html { background: #e9edf5; }
body { margin: 0; background: var(--nen-phu); color: var(--chu); font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--nen-phu); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--vien); }
#man { flex: 1; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.dau-app { position: sticky; top: 0; z-index: 20; background: var(--nen); border-bottom: 1px solid var(--vien); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.dau-app h1 { font-size: 18px; margin: 0; flex: 1; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dau-app .lui { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--nen-phu); display: grid; place-items: center; color: var(--chu); padding: 0; }
.dau-app .lui svg, .nut-tron svg { width: 20px; height: 20px; }
.nut-tron { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--nen-phu); display: grid; place-items: center; color: var(--chu); padding: 0; }
.dau-trang-chu { background: var(--chinh); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 64px; border-radius: 0 0 28px 28px; }
.dau-trang-chu .hang { display: flex; align-items: center; gap: 12px; }
.dau-trang-chu .hang > div { flex: 1; }
.dau-trang-chu .chao { font-size: 13px; opacity: .9; }
.dau-trang-chu .ten { font-size: 18px; font-weight: 700; }
.dau-trang-chu .vi-tri { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; margin-top: 6px; }
.dau-trang-chu .vi-tri svg { width: 14px; height: 14px; }
.dau-trang-chu .nut-tron { background: rgba(255,255,255,.18); color: #fff; }
.tim { margin: -46px 16px 0; background: var(--nen); border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 36, 94, .12); display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--chu-mo); position: relative; }
.tim svg { width: 20px; height: 20px; color: var(--chinh); }
.tim input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; color: var(--chu); min-width: 0; }
.khoi { padding: 18px 16px 0; }
.khoi h2 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }
.khoi h2 a { font-size: 13px; font-weight: 600; color: var(--chinh); }
.banner { margin: 16px 16px 0; background: var(--nhan); color: #fff; border-radius: 18px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.banner strong { display: block; font-size: 16px; margin-bottom: 4px; }
.banner p { margin: 0; font-size: 13px; opacity: .95; }
.banner .nut { background: #fff; color: var(--nhan); font-weight: 700; border: 0; border-radius: 12px; padding: 10px 14px; white-space: nowrap; }
.luoi-nghe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.luoi-nghe a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: var(--chu); }
.luoi-nghe .o { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--chinh-nhat); color: var(--chinh); }
.luoi-nghe .o svg { width: 26px; height: 26px; }
.luoi-nghe a:nth-child(2) .o { background: #e6f4ec; color: #0b7a4b; } .luoi-nghe a:nth-child(3) .o { background: #fdebdd; color: var(--nhan); } .luoi-nghe a:nth-child(4) .o { background: #efe9fb; color: #6d28d9; }
.luoi-nghe a:nth-child(5) .o { background: #fdf1e0; color: #b45309; } .luoi-nghe a:nth-child(6) .o { background: #e0f2fe; color: #0369a1; } .luoi-nghe a:nth-child(7) .o { background: #fee2e2; color: #b91c1c; } .luoi-nghe a:nth-child(8) .o { background: #ecfccb; color: #4d7c0f; }
.cuon-ngang { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cuon-ngang::-webkit-scrollbar { display: none; }
.the-tho { scroll-snap-align: start; flex: 0 0 150px; background: var(--nen); border-radius: 18px; padding: 14px 12px; text-align: center; border: 1px solid var(--vien); }
.the-tho .avatar { margin: 0 auto 8px; }
.the-tho .ten { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.the-tho .nghe { font-size: 12px; color: var(--chu-mo); margin-bottom: 6px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; position: relative; flex: 0 0 auto; }
.avatar.lon { width: 84px; height: 84px; font-size: 30px; }
.avatar.nho { width: 40px; height: 40px; font-size: 15px; }
.avatar .tich { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #0b7a4b; border: 2px solid #fff; display: grid; place-items: center; }
.avatar .tich svg { width: 12px; height: 12px; color: #fff; }
.sao-dong { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #b45309; }
.sao-dong svg { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }
.nhan { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 8px; background: var(--chinh-nhat); color: var(--chinh); white-space: nowrap; }
.nhan svg { width: 12px; height: 12px; }
.nhan.ok { background: #e6f4ec; color: #0b7a4b; } .nhan.cho { background: #fdf1e0; color: #b45309; } .nhan.xam { background: #eef0f5; color: var(--chu-mo); } .nhan.cam { background: #fdebdd; color: var(--nhan); } .nhan.tim { background: #efe9fb; color: #6d28d9; }
.the-viec { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; background: var(--nen); border: 1px solid var(--vien); border-radius: 18px; padding: 14px; margin-bottom: 10px; align-items: start; color: var(--chu); }
.the-viec .o { width: 48px; height: 48px; border-radius: 14px; background: var(--chinh-nhat); color: var(--chinh); display: grid; place-items: center; }
.the-viec .o svg { width: 24px; height: 24px; }
.the-viec .tieu-de { font-weight: 700; font-size: 15px; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.the-viec .meta { font-size: 12.5px; color: var(--chu-mo); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.the-viec .meta span { display: inline-flex; align-items: center; gap: 3px; } .the-viec .meta svg { width: 13px; height: 13px; }
.the-viec .phai { text-align: right; font-size: 12px; color: var(--chu-mo); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.the-viec .phai b { color: var(--chinh); font-size: 13px; }
.chip-dong { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.chip-dong::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--vien); background: var(--nen); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--chu); }
.chip[aria-pressed="true"] { background: var(--chinh); color: #fff; border-color: var(--chinh); }
.tab-duoi { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--nen); border-top: 1px solid var(--vien); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
.tab-duoi a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--chu-mo); padding: 4px 0; }
.tab-duoi a svg { width: 24px; height: 24px; }
.tab-duoi a[aria-current="page"] { color: var(--chinh); }
.tab-duoi a.giua { margin-top: -26px; }
.tab-duoi a.giua .vong { width: 52px; height: 52px; border-radius: 50%; background: var(--nhan); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(234, 88, 12, .35); }
.tab-duoi a.giua .vong svg { width: 26px; height: 26px; }
/* màn chi tiết */
.dai-mau { background: linear-gradient(135deg, var(--chinh), #4f86ff); color: #fff; padding: 20px 16px 24px; }
.dai-mau .o-lon { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 12px; }
.dai-mau .o-lon svg { width: 32px; height: 32px; }
.dai-mau h2 { margin: 0 0 6px; font-size: 20px; }
.dai-mau .nhan { background: rgba(255,255,255,.2); color: #fff; }
.the { background: var(--nen); border: 1px solid var(--vien); border-radius: 18px; padding: 14px; margin: 12px 16px 0; }
.the h3 { font-size: 14px; margin: 0 0 8px; color: var(--chu-mo); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hang-thong-tin { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vien); font-size: 14px; }
.hang-thong-tin:last-child { border-bottom: 0; }
.hang-thong-tin svg { width: 20px; height: 20px; color: var(--chinh); }
.hang-thong-tin small { display: block; color: var(--chu-mo); font-size: 12px; }
.nut-day { position: fixed; bottom: calc(74px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px 16px; background: linear-gradient(to top, var(--nen-phu) 70%, transparent); z-index: 25; display: flex; gap: 10px; }
.nut { width: 100%; border: 0; border-radius: 14px; padding: 14px; font-weight: 700; font-size: 15px; background: var(--chinh); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nut svg { width: 18px; height: 18px; }
.nut.phu { background: var(--chinh-nhat); color: var(--chinh); } .nut.cam { background: var(--nhan); } .nut.vien { background: var(--nen); color: var(--chu); border: 1px solid var(--vien); } .nut.nho { padding: 9px 12px; font-size: 13px; width: auto; border-radius: 10px; }
.nut:disabled { opacity: .55; }
.hang-nguoi { display: flex; align-items: center; gap: 12px; }
.hang-nguoi .ten { font-weight: 700; } .hang-nguoi .phu { font-size: 12.5px; color: var(--chu-mo); }
.hang-nguoi > div { flex: 1; min-width: 0; } .hang-nguoi > .avatar { flex: 0 0 auto; }
.danh-gia-item { padding: 10px 0; border-bottom: 1px solid var(--vien); font-size: 14px; } .danh-gia-item:last-child { border-bottom: 0; }
.danh-gia-item .dau-dg { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--chu-mo); margin-bottom: 2px; }
/* form */
.form { padding: 0 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--chu-mo); margin: 14px 0 6px; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--vien); background: var(--nen); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--chu); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--chinh); outline-offset: 0; border-color: transparent; }
.form [aria-invalid="true"] { border-color: var(--do); }
.form .loi-o { color: var(--do); font-size: 12.5px; margin: 4px 0 0; }
.form .hai { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; color: var(--chu); margin-top: 14px; }
.form .check input { width: auto; margin-top: 3px; }
.chon-o { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chon-o button { border: 2px solid var(--vien); background: var(--nen); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--chu); }
.chon-o button svg { width: 24px; height: 24px; color: var(--chinh); }
.chon-o button[aria-pressed="true"] { border-color: var(--chinh); background: var(--chinh-nhat); }
.chon-o.bon { grid-template-columns: repeat(4, 1fr); } .chon-o.bon button { padding: 10px 4px; font-size: 11.5px; }
.buoc-thanh { display: flex; gap: 6px; padding: 12px 16px 0; } .buoc-thanh i { flex: 1; height: 4px; border-radius: 2px; background: var(--vien); } .buoc-thanh i.xong { background: var(--chinh); }
.bao { margin: 12px 16px 0; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.bao.loi { background: #fde8e8; color: var(--do); } .bao.ok { background: #e6f4ec; color: #0b7a4b; } .bao.chu-y { background: #fdf1e0; color: #b45309; }
.rong { text-align: center; padding: 36px 24px; color: var(--chu-mo); }
.rong .o { width: 72px; height: 72px; border-radius: 24px; background: var(--chinh-nhat); color: var(--chinh); display: grid; place-items: center; margin: 0 auto 12px; }
.rong .o svg { width: 36px; height: 36px; } .rong strong { display: block; color: var(--chu); margin-bottom: 4px; }
.tam { position: fixed; inset: 0; background: rgba(10, 16, 32, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.tam .to { width: 100%; max-width: 480px; background: var(--nen); border-radius: 22px 22px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88dvh; overflow: auto; }
.tam .keo { width: 40px; height: 4px; border-radius: 2px; background: var(--vien); margin: 4px auto 12px; }
.tam h2 { font-size: 17px; margin: 0 0 8px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #121a2b; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: 90%; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.menu-toi a, .menu-toi button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: var(--nen); border: 0; border-bottom: 1px solid var(--vien); font: inherit; color: var(--chu); text-align: left; font-size: 15px; }
.menu-toi a:first-child, .menu-toi button:first-child { border-radius: 18px 18px 0 0; } .menu-toi a:last-child, .menu-toi button:last-child { border-bottom: 0; border-radius: 0 0 18px 18px; }
.menu-toi svg { width: 22px; height: 22px; color: var(--chinh); } .menu-toi .mui { margin-left: auto; color: var(--chu-mo); }
.menu-toi { margin: 12px 16px 0; border: 1px solid var(--vien); border-radius: 18px; overflow: hidden; }
.vai-tro-chon { display: grid; gap: 12px; padding: 0 16px; }
.vai-tro-chon button { display: grid; grid-template-columns: 56px 1fr 20px; gap: 12px; align-items: center; text-align: left; background: var(--nen); border: 2px solid var(--vien); border-radius: 18px; padding: 14px; font: inherit; color: var(--chu); }
.vai-tro-chon button .o { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--chinh-nhat); color: var(--chinh); } .vai-tro-chon button .o svg { width: 28px; height: 28px; }
.vai-tro-chon button strong { display: block; font-size: 16px; } .vai-tro-chon button span { font-size: 13px; color: var(--chu-mo); }
.vai-tro-chon button[aria-pressed="true"] { border-color: var(--chinh); }
.sao-chon { display: inline-flex; gap: 4px; } .sao-chon button { border: 0; background: none; padding: 2px; color: var(--vien); } .sao-chon button svg { width: 30px; height: 30px; fill: currentColor; } .sao-chon button.chon { color: #f59e0b; }
.ma-truy-cap { font-family: ui-monospace, Menlo, monospace; background: var(--nen-phu); border: 1px dashed var(--chinh); padding: 10px 12px; border-radius: 10px; word-break: break-all; font-size: 14px; }
.thong-ke-o { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; } .thong-ke-o div { background: var(--nen); border: 1px solid var(--vien); border-radius: 14px; padding: 10px; text-align: center; } .thong-ke-o b { display: block; font-size: 22px; color: var(--chinh); } .thong-ke-o span { font-size: 11.5px; color: var(--chu-mo); }
.an { display: none !important; }
