:root {
  --navy: #08152a; --navy2: #10233f; --brand: #2563eb; --brand2: #4679ff;
  --ink: #172540; --sub: #6b7791; --line: #e5eaf2; --paper: #ffffff;
  --bg: #f5f7fb; --good: #0a9766; --bad: #d44d57; --warning: #db901b;
  --shadow: 0 10px 35px rgba(35, 63, 112, .075);
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-size: 14px; }
button,input,select,textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid rgba(49,107,245,.45); outline-offset: 3px; }
#app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: 257px minmax(0,1fr); min-height:100vh; }
.sidebar { position: sticky; top: 0; height:100vh; display:flex; flex-direction:column; background: var(--navy); color:#dce7ff; padding: 30px 17px 18px; overflow-y:auto; z-index: 4; }
.brand { display:flex; align-items:center; gap:12px; font-weight:850; color:#fff; font-size:21px; letter-spacing:-.9px; padding:0 12px; }
.brand-mark { display:grid; place-items:center; width:40px; height:40px; flex:none; background:linear-gradient(145deg,#55c5ff,#2461ea); border-radius:13px; box-shadow: 0 6px 25px rgba(22,114,255,.35); color:white; }
.brand small { display:block; font-size:9px; font-weight:700; letter-spacing:2.4px; color:#84a3d7; margin-top:1px; }
.sidebar-kicker { text-transform:uppercase; font-size:10px; letter-spacing:2px; color:#6c83a7; font-weight:800; padding:0 15px; margin:43px 0 15px; }
.side-link { display:flex; align-items:center; gap:13px; padding:13px 14px; border-radius:12px; margin:3px 0; font-weight:620; color:#9eafcb; font-size:13px; transition:background .15s; }
.side-link svg { width:19px; height:19px; }
.side-link.active { background:#214a91; color:#fff; box-shadow: inset 3px 0 #5cabff; }
.side-link:hover { background:#152d52; color:#fff; }
.side-spacer { flex:1; min-height:22px; }
.side-help { border:1px solid #2a4263; border-radius:16px; background:#122848; padding:18px 15px; }
.side-help .help-icon { font-size:21px; margin-bottom:9px; }
.side-help strong { display:block; color:white; font-size:13px; }
.side-help p { color:#a6bbdb; font-size:11px; line-height:1.7; margin:7px 0 12px; }
.side-help a { display:inline-block; color:#98c7ff; font-size:12px; font-weight:700; }
.side-footer { font-size:11px; color:#647a9e; padding:23px 12px 3px; }
.workspace { min-width:0; }
.topbar { display:flex; align-items:center; gap:16px; justify-content:space-between; height:88px; padding:0 clamp(22px,4vw,54px); border-bottom:1px solid var(--line); background:#fff; }
.topbar .mobile-brand { display:none; }
.breadcrumb { font-weight:770; font-size:16px; letter-spacing:-.3px; }
.breadcrumb small { display:block; font-size:11px; font-weight:520; color:#9aa5b7; margin-top:4px; letter-spacing:0; }
.top-actions { display:flex; align-items:center; gap:12px; }
.wallet-mini { display:flex; align-items:center; gap:10px; border:1px solid #dce7ff; border-radius:13px; background:#f5f8ff; padding:9px 13px; }
.wallet-mini .wallet-icon { width:31px; height:31px; background:#e3edff; color:#2563eb; border-radius:9px; display:grid; place-items:center; }
.wallet-mini small { display:block; color:#8795b0; font-size:10px; margin-bottom:3px; }
.wallet-mini strong { font-size:14px; }
.avatar { border-radius:12px; height:41px; width:41px; display:grid; place-items:center; color:white; background:linear-gradient(140deg,#285ddc,#7b9bff); font-weight:830; font-size:16px; }
.content { padding:33px clamp(22px,4vw,54px) 60px; max-width:1600px; margin:0 auto; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:14px; margin-bottom:24px; }
.page-head h1 { margin:0; font-size:26px; letter-spacing:-1px; font-weight:850; }
.page-head p { margin:8px 0 0; color:var(--sub); font-size:13px; line-height:1.65; }
.brow { display:inline-block; letter-spacing:2px; text-transform:uppercase; font-weight:800; font-size:10px; color:var(--brand); margin-bottom:10px; }
.card { background:white; border:1px solid #e7ebf2; border-radius:17px; box-shadow:var(--shadow); }
.btn { display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:8px; padding:11px 16px; border-radius:10px; border:1px solid transparent; font-weight:730; font-size:12px; line-height:1.25; white-space:nowrap; transition:transform .12s, background .15s,box-shadow .15s; }
.btn:hover:not(:disabled) { transform:translateY(-1px); }
.btn-primary { background:var(--brand); color:#fff; box-shadow:0 7px 18px rgba(37,99,235,.2); }
.btn-primary:hover { background:#1c56d4; }
.btn-outline { background:white; border-color:#dce3ef; color:#243b5b; }
.btn-outline:hover { background:#f6f9ff; }
.btn-soft { color:#2355b8; background:#eaf1ff; }
.btn-danger { background:#fff1f2; color:#bf3546; }
.btn-success { background:#e8f9f0; color:#0c915b; }
.btn-small { padding:8px 11px; font-size:11px; }
.btn-lg { padding:14px 21px; font-size:13px; }
.btn-full { width:100%; }
.icon { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.icon svg { width:18px; height:18px; }
.hero { background: radial-gradient(circle at 85% 18%,rgba(79,147,245,.35),transparent 35%),linear-gradient(120deg,#091c3b,#143c84); border-radius:22px; color:#fff; min-height:245px; position:relative; overflow:hidden; display:flex; align-items:center; padding:37px 45px; box-shadow:0 20px 35px rgba(11,42,95,.14); }
.hero:after { content:""; position:absolute; width:280px; height:280px; border:1px solid rgba(255,255,255,.15); border-radius:50%; right:-35px; top:-120px; box-shadow:0 0 0 48px rgba(255,255,255,.028),0 0 0 100px rgba(255,255,255,.022); }
.hero-copy { max-width:610px; position:relative; z-index:1; }
.hero .eyebrow { color:#a5d3ff; font-size:11px; font-weight:800; letter-spacing:1.7px; text-transform:uppercase; }
.hero h1 { font-size:clamp(26px,3.5vw,39px); line-height:1.22; letter-spacing:-1.7px; margin:15px 0 11px; font-weight:860; }
.hero p { color:#c1d3ed; line-height:1.8; margin:0 0 22px; max-width:530px; font-size:13px; }
.hero .btn-white { border:0; background:#fff; color:#194894; box-shadow:none; }
.hero-decoration { position:absolute; right:7%; top:27%; height:122px; width:122px; display:grid; place-items:center; border-radius:28px; transform:rotate(-12deg); background:linear-gradient(140deg,#477bdf,#17448a); border:1px solid #83b5ff60; color:#cce5ff; box-shadow:0 20px 60px #0002; }
.hero-decoration svg { width:65px; height:65px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; margin:23px 0; }
.stat { padding:19px 20px; display:flex; align-items:center; gap:15px; min-width:0; }
.stat-icon { display:grid; place-items:center; width:45px; height:45px; flex:none; border-radius:13px; background:#edf3ff; color:#3373e9; }
.stat-icon.green { background:#e7f8f0; color:#0d9c68; }
.stat-icon.orange { background:#fff4e5; color:#dc9138; }
.stat-icon.purple { background:#f1efff; color:#7965d7; }
.stat strong { display:block; font-size:19px; font-weight:860; letter-spacing:-.6px; overflow-wrap:anywhere; }
.stat small { display:block; font-size:11px; color:#8793a6; margin-top:5px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:29px 0 16px; }
.section-head h2 { margin:0; font-size:18px; letter-spacing:-.5px; }
.section-head span { color:var(--sub); font-size:12px; }
.how-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.how { padding:24px 21px; }
.how-number { color:#2563eb; background:#eaf2ff; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:15px; font-weight:860; }
.how h3 { margin:18px 0 7px; font-size:15px; }
.how p { margin:0; line-height:1.7; font-size:12px; color:var(--sub); }
.callout { background:#eef5ff; border:1px solid #d4e6ff; border-radius:13px; color:#2a588f; padding:13px 16px; display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.6; margin-bottom:21px; }
.callout svg { flex:none; width:17px; height:17px; }
.two-col { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr); gap:18px; }
.padded { padding:23px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th { background:#f9fbff; color:#73829a; font-size:11px; white-space:nowrap; font-weight:700; }
th,td { padding:14px 16px; border-bottom:1px solid #eef1f5; }
td { font-size:12px; line-height:1.5; }
tr:last-child td { border:0; }
.chip { display:inline-flex; align-items:center; border-radius:100px; padding:5px 9px; font-size:10px; font-weight:750; white-space:nowrap; }
.chip-green { color:#00865d; background:#e7f8ef; }
.chip-yellow { color:#a87719; background:#fff4dd; }
.chip-red { color:#bc4149; background:#fff0f0; }
.chip-blue { color:#1e63c9; background:#e8f0ff; }
.chip-gray { color:#78859c; background:#eef0f4; }
.balance-banner { background:linear-gradient(120deg,#123775,#2862cc); border-radius:16px; color:white; padding:24px; margin-bottom:17px; overflow:hidden; position:relative; }
.balance-banner small { color:#b6d1ff; }
.balance-banner strong { display:block; font-size:31px; margin:12px 0; font-weight:870; letter-spacing:-1px; }
.balance-banner .extra { font-size:11px; color:#bfdbff; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.form-field { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; min-width:0; }
.form-field label { font-size:12px; font-weight:720; color:#314463; }
.form-field input,.form-field select,.form-field textarea { width:100%; border:1px solid #dbe2ee; border-radius:10px; background:#fff; padding:11px 13px; outline:none; color:#19304c; font-size:13px; transition:border .15s; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color:#4384f4; box-shadow:0 0 0 3px #4384f417; }
.form-field textarea { resize:vertical; min-height:83px; }
.form-hint { color:#9aa5b4; font-size:11px; line-height:1.6; }
.form-title { margin:0 0 19px; font-size:18px; }
.task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.task-card { padding:21px; }
.task-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.task-image { background:#ebf2ff; border-radius:14px; color:#3974de; width:47px; height:47px; display:grid; place-items:center; flex:none; }
.task-title { font-size:15px; font-weight:800; margin:13px 0 6px; letter-spacing:-.3px; }
.task-desc { min-height:39px; color:#79869a; font-size:12px; line-height:1.65; margin:0; }
.task-info { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #edf1f6; margin-top:17px; padding:14px 0; }
.task-reward { color:#0e966a; font-size:17px; font-weight:850; }
.task-reward small { font-size:11px; color:#91a2b4; font-weight:550; display:block; margin-bottom:3px; }
.task-limit { text-align:right; font-size:11px; color:#8694a6; }
.task-limit b { display:block; margin-top:4px; color:#36506e; font-weight:750; }
.task-actions { display:flex; gap:8px; align-items:center; }
.tabs { display:flex; gap:8px; margin-bottom:18px; overflow-x:auto; padding-bottom:2px; }
.tab { background:#fff; border:1px solid var(--line); border-radius:10px; color:#738099; font-size:12px; font-weight:700; padding:10px 16px; white-space:nowrap; }
.tab.active { background:#215ad2; border-color:#215ad2; color:#fff; }
.empty { text-align:center; padding:53px 18px; color:#95a1b2; }
.empty .empty-emoji { width:62px; height:62px; display:grid; place-items:center; margin:0 auto 16px; background:#f0f5ff; border-radius:20px; color:#3572dc; }
.empty h3 { color:#41516d; font-size:16px; margin:0 0 8px; }
.empty p { max-width:330px; margin:0 auto 17px; font-size:12px; line-height:1.6; }
.leader-podium { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:22px 0; }
.leader { padding:24px 15px; text-align:center; }
.leader .medal { font-size:27px; margin-bottom:12px; }
.leader .leader-avatar { width:54px; height:54px; margin:0 auto 10px; background:#eaf1ff; color:#2563eb; border-radius:50%; display:grid; place-items:center; font-size:19px; font-weight:800; }
.leader strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.leader span { color:#119366; display:block; font-size:14px; font-weight:800; margin-top:7px; }
.leader small { color:#9ca5b5; font-size:11px; }
.prow { display:flex; gap:15px; align-items:center; padding:16px 21px; border-bottom:1px solid #edf1f6; }
.prow:last-child { border:0; }
.prow .initial { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; background:#e8efff; color:#2657bc; font-size:15px; font-weight:850; }
.prow strong { font-size:13px; }
.prow small { display:block; color:#98a3b4; font-size:11px; margin-top:5px; }
.copy-line { display:flex; background:#f7faff; border:1px solid #dfe9f8; align-items:center; padding:7px; border-radius:11px; gap:10px; }
.copy-line code { flex:1; overflow:auto; font-size:11px; color:#49709c; white-space:nowrap; padding-left:8px; }
.footer-note { color:#a0abba; text-align:center; font-size:11px; margin:35px 0 0; }
.mobile-nav { display:none; }
.modal-overlay { position:fixed; inset:0; background:rgba(5,18,39,.68); display:grid; place-items:center; z-index:30; padding:18px; backdrop-filter:blur(4px); }
.modal { background:#fff; width:min(100%,530px); max-height:91vh; overflow:auto; border-radius:21px; box-shadow:0 18px 80px #0003; }
.modal-head { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:25px 26px 16px; }
.modal-head h2 { font-size:20px; letter-spacing:-.6px; margin:0; }
.modal-body { padding:0 26px 27px; }
.close-btn { border:0; background:#f2f5fa; color:#6b7b92; border-radius:10px; width:33px; height:33px; font-size:18px; }
.modal-desc { color:var(--sub); line-height:1.7; font-size:12px; margin:0 0 23px; }
.auth-switch { text-align:center; font-size:12px; color:#7f8ca0; margin-top:20px; }
.auth-switch button { color:var(--brand); font-weight:800; border:0; background:none; }
#toast-root { position:fixed; right:25px; top:22px; z-index:50; display:grid; gap:10px; }
.toast { background:#102746; color:white; border-radius:12px; padding:13px 18px; max-width:355px; box-shadow:0 18px 45px #0004; font-size:12px; line-height:1.65; border-left:4px solid #4f96ff; animation:toast-in .25s; }
.toast.error { border-left-color:#ee6669; }
@keyframes toast-in { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.loading-screen { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#70809a; gap:14px; }
.spinner { border:3px solid #d9e6fa; border-top-color:#2469e2; height:36px; width:36px; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.narrow { max-width:740px; }
.muted { color:var(--sub); }
.text-green { color:var(--good); }
.text-red { color:var(--bad); }
.bold { font-weight:800; }
.admin-tabs { margin-bottom:19px; }
.actions-inline { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.w100 { width:100%; }
@media (max-width:1250px) {
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .two-col { grid-template-columns:1fr; }
  .hero-decoration { right:5%; opacity:.5; }
}
@media (max-width:910px) {
  .shell { display:block; }
  .sidebar { display:none; }
  .topbar { height:69px; padding:0 19px; }
  .topbar .mobile-brand { display:flex; align-items:center; gap:9px; font-size:15px; color:#142d59; font-weight:860; }
  .topbar .mobile-brand .brand-mark { width:30px; height:30px; border-radius:9px; }
  .topbar .mobile-brand .brand-mark svg { width:20px; height:20px; }
  .breadcrumb { display:none; }
  .content { padding:25px 19px 105px; }
  .mobile-nav { position:fixed; bottom:0; left:0; width:100%; z-index:5; background:#fff; border-top:1px solid #e8edf5; display:flex; justify-content:space-around; gap:0; padding:7px 7px max(8px,env(safe-area-inset-bottom)); box-shadow:0 -5px 20px #00000008; }
  .mobile-nav a { color:#8f9bb0; font-size:10px; font-weight:700; flex:1; min-width:0; display:grid; justify-items:center; gap:3px; padding:5px 2px; }
  .mobile-nav a.active { color:var(--brand); }
  .mobile-nav a svg { width:20px; height:20px; }
  .hero { padding:31px 29px; }
}
@media (max-width:650px) {
  .hero { min-height:260px; }
  .hero-decoration { display:none; }
  .hero h1 { font-size:27px; }
  .hero p { font-size:12px; }
  .page-head h1 { font-size:23px; }
  .stats-grid { gap:10px; }
  .stat { padding:16px 12px; gap:9px; }
  .stat-icon { height:38px; width:38px; border-radius:10px; }
  .stat-icon svg { width:19px; height:19px; }
  .stat strong { font-size:16px; }
  .stat small { font-size:10px; }
  .how-grid,.task-grid { grid-template-columns:1fr; }
  .wallet-mini { border:0; padding:0; background:transparent; }
  .wallet-mini .wallet-icon { display:none; }
  .wallet-mini strong { font-size:12px; }
  .avatar { height:36px; width:36px; font-size:12px; }
  .form-grid { grid-template-columns:1fr; gap:0; }
  .leader-podium { gap:7px; }
  .leader { padding:17px 7px; }
  .leader .leader-avatar { width:43px; height:43px; }
  .leader strong { font-size:11px; }
  .leader span { font-size:11px; }
  th,td { padding:12px 13px; }
  .page-head .btn { font-size:11px; padding:9px 11px; }
  .padded { padding:18px; }
  .modal-head { padding:20px 20px 14px; }
  .modal-body { padding:0 20px 22px; }
  #toast-root { left:14px; right:14px; top:12px; }
  .toast { max-width:100%; }
}

/* V2 — Dashboard & nhiệm vụ: bảng điều khiển sáng, rõ ràng trên mọi thiết bị */
:root {
  --navy:#0b1630; --brand:#315df5; --brand2:#7a6cff;
  --ink:#19243d; --sub:#71809a; --line:#e6ebf5; --bg:#f5f7fc;
  --shadow:0 12px 34px rgba(26,51,106,.046);
}
body { background:radial-gradient(ellipse at 60% -18%,#e5ecff 0,transparent 47%),var(--bg); color:var(--ink); }
.sidebar { background:linear-gradient(170deg,#101b3a,#09152d 82%); box-shadow:12px 0 34px rgba(13,28,65,.025); }
.brand-mark { background:linear-gradient(140deg,#6080ff,#3563f2); box-shadow:0 8px 24px rgba(63,91,232,.23); }
.side-link { border-radius:13px; transition:color .2s,background .2s; }
.side-link.active { background:linear-gradient(105deg,#3449a8,#2b4f98); box-shadow:inset 3px 0 #93adff; }
.sidebar-kicker { margin-top:38px; }
.topbar { box-shadow:0 2px 18px rgba(44,63,115,.025); }
.content { max-width:1680px; }
.card { border-color:#e7ebf5; border-radius:19px; }
.btn { border-radius:11px; }
.btn-primary { background:linear-gradient(110deg,#325ffa,#4b6ef6); box-shadow:0 8px 18px rgba(57,91,235,.16); }
.btn-primary:hover { background:linear-gradient(110deg,#2551e2,#3e61e7); }
.wallet-mini { background:#f6f8ff; border-color:#e5ebff; }
.avatar { background:linear-gradient(135deg,#4d69e8,#9e81f3); border-radius:14px; }
.hero-modern { min-height:278px; background:radial-gradient(circle at 92% 0%,#6958eb9e,transparent 38%),linear-gradient(115deg,#202e7a,#315ee0 65%,#5865d8); padding:42px 48px; border-radius:25px; }
.hero-modern:after { width:380px; height:380px; top:-230px; right:-80px; }
.hero-modern .hero-copy { max-width:650px; }
.hero-modern h1 { font-size:clamp(28px,3.4vw,43px); max-width:570px; letter-spacing:-1.6px; }
.hero-modern .hero-person { color:#f8e9a0; }
.hero-modern p { font-size:13px; max-width:550px; color:#e0e7ff; }
.hero-modern .eyebrow { color:#dbe4ff; font-size:10px; letter-spacing:2px; }
.hero-buttons { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.hero .btn-ghost { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.26); }
.hero .btn-white { color:#294db9; }
.hero-visual { position:absolute; width:254px; height:240px; right:5.5%; top:15px; display:grid; place-items:center; pointer-events:none; }
.visual-core { width:133px; height:133px; border-radius:37px; display:grid; place-items:center; background:linear-gradient(135deg,#91a5ff,#4a60da); color:white; transform:rotate(-11deg); border:1px solid #ffffff80; box-shadow:0 22px 45px #0b1e6d45,inset 0 1px #ffffff60; z-index:1; }
.visual-core .icon svg { width:58px; height:58px; }
.visual-orbit { position:absolute; width:200px; height:200px; border:1px solid #fff5; border-radius:45px; transform:rotate(16deg); }
.orbit-b { width:245px; height:245px; border-radius:60px; border-color:#ffffff29; transform:rotate(-13deg); }
.float-chip { position:absolute; background:#fff; color:#2e4b9c; border-radius:12px; padding:10px 14px; font-size:11px; font-weight:800; box-shadow:0 13px 28px #131c633d; z-index:2; white-space:nowrap; }
.chip-top { top:37px; left:0; transform:rotate(-7deg); }
.chip-bottom { right:0; bottom:28px; transform:rotate(5deg); }
.overview-label { display:flex; justify-content:space-between; align-items:end; gap:12px; margin:29px 0 15px; }
.overview-label h2 { font-size:21px; letter-spacing:-.7px; margin:0; }
.overview-label .brow { margin-bottom:5px; }
.overview-date { display:flex; align-items:center; gap:5px; font-size:11px; color:#9aa5b6; }
.overview-date .icon svg { width:14px; height:14px; }
.dashboard-stats { margin-top:0; }
.dashboard-stats .stat { min-height:113px; padding:20px 19px; gap:15px; border:1px solid #e9edf6; box-shadow:0 9px 32px #1e40820d; }
.dashboard-stats .stat strong { font-size:23px; font-weight:850; color:#1a2c51; }
.dashboard-stats .stat small { font-size:12px; margin-top:7px; }
.dashboard-stats .stat-icon { width:50px; height:50px; border-radius:16px; }
.dashboard-stats .stat-icon.blue { background:#eaf0ff; color:#315ff5; }
.mini-insights { display:flex; gap:18px; flex-wrap:wrap; padding:15px 20px; background:#fff; border:1px solid #e8edf8; border-radius:15px; margin:-4px 0 24px; color:#7686a0; }
.mini-insights > div { display:flex; align-items:center; gap:6px; font-size:12px; }
.mini-insights strong { color:#23385e; font-weight:800; }
.mini-insights .icon { color:#5576dc; }
.mini-insights .icon svg { width:17px; height:17px; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.14fr) minmax(300px,.86fr); gap:18px; margin-top:23px; }
.dashboard-panel { padding:22px 23px; min-width:0; }
.panel-title { display:flex; align-items:center; gap:12px; margin-bottom:21px; }
.panel-title .brow { margin:0 0 5px; }
.panel-title h2 { margin:0; font-size:17px; letter-spacing:-.5px; }
.panel-icon { display:grid; place-items:center; color:#3563dd; background:#ecf2ff; width:43px; height:43px; border-radius:13px; }
.panel-icon.secondary { color:#8964d7; background:#f1ebff; }
.news-feed { display:grid; gap:11px; max-height:440px; overflow:auto; padding:1px 3px 1px 0; }
.notice-item { display:flex; align-items:flex-start; gap:13px; border:1px solid #e7edf8; background:#f8faff; padding:15px; border-radius:14px; }
.notice-item.notice-warning { background:#fffbf2; border-color:#f9e8c9; }
.notice-item.notice-success { background:#f4fdf9; border-color:#dcefe5; }
.notice-symbol { color:#416be0; background:#e7edff; width:34px; height:34px; display:grid; place-items:center; flex:none; border-radius:11px; }
.notice-warning .notice-symbol { background:#fff0d1; color:#c88d28; }
.notice-success .notice-symbol { background:#dcf7e7; color:#168c61; }
.notice-copy { min-width:0; flex:1; }
.notice-copy h3 { margin:1px 0 7px; font-size:13px; letter-spacing:-.15px; }
.notice-copy p { margin:0 0 8px; color:#62738f; line-height:1.68; font-size:12px; white-space:pre-line; overflow-wrap:anywhere; }
.notice-copy time { color:#99a5b5; font-size:10px; }
.notice-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.pin-tag { background:#dde8ff; color:#375fca; border-radius:6px; font-size:9px; padding:3px 6px; font-weight:800; }
.activity-feed { display:grid; gap:0; }
.activity-item { display:flex; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid #f0f2f7; }
.activity-item:last-child { border:0; }
.activity-dot { width:36px; height:36px; background:#eff4ff; color:#5677de; border-radius:11px; display:grid; place-items:center; flex:none; }
.activity-item > div { flex:1; min-width:0; }
.activity-item b { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-item small { display:flex; align-items:center; gap:6px; margin-top:5px; font-size:10px; color:#99a4b6; }
.activity-item .chip { padding:2px 7px; font-size:9px; }
.activity-item > strong { font-size:12px; color:#089367; flex:none; }
.panel-link { display:flex; justify-content:center; align-items:center; gap:7px; background:#f0f5ff; color:#345fca; border-radius:11px; font-size:12px; font-weight:800; padding:12px; margin-top:18px; }
.steps-list { display:grid; gap:21px; margin:26px 0; }
.steps-list > div { display:flex; gap:15px; align-items:center; font-size:13px; }
.steps-list b { width:35px; height:35px; background:#ecf2ff; color:#4165d9; border-radius:11px; display:grid; place-items:center; }
.featured-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.featured-card { display:flex; align-items:center; gap:12px; padding:16px; box-shadow:none; transition:transform .15s; }
.featured-card:hover { transform:translateY(-3px); }
.featured-icon { width:37px; height:37px; display:grid; place-items:center; border-radius:12px; flex:none; background:#eaf0ff; color:#315ced; }
.featured-card > div:nth-child(2) { flex:1; min-width:0; }
.featured-card h3 { margin:0 0 5px; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.featured-card small { display:block; color:#8c9aaf; font-size:10px; }
.featured-card strong { color:#0c9569; font-size:12px; white-space:nowrap; }
.featured-card > .icon:last-child { color:#abb6c6; }
.task-page-head { align-items:center; }
.task-day-badge { display:flex; gap:7px; align-items:center; padding:12px 15px; background:#fff; border:1px solid #e5ebf7; border-radius:13px; color:#61728f; font-size:12px; }
.task-day-badge b { color:#28478d; }
.task-summary-bar { display:flex; justify-content:space-between; flex-wrap:wrap; gap:9px 20px; padding:16px 19px; background:#fff; border:1px solid #e8edfa; border-radius:14px; margin-bottom:22px; }
.task-summary-bar > div { display:flex; align-items:center; gap:7px; color:#7b8ca3; font-size:12px; }
.task-summary-bar b { color:#1d3564; }
.task-summary-bar .icon { color:#4364c9; }
.task-grid { gap:18px; }
.task-card-v2 { padding:21px 22px 18px; box-shadow:0 12px 27px #2743750a; transition:transform .17s,border-color .17s; }
.task-card-v2:hover { transform:translateY(-3px); border-color:#cbd8fb; }
.task-card-v2 .task-top { align-items:center; }
.task-card-v2 .task-image { width:49px; height:49px; background:linear-gradient(145deg,#eaf0ff,#e4ecff); color:#496ee5; }
.task-card-v2 .task-title { font-size:16px; margin-top:19px; }
.task-card-v2 .task-desc { min-height:34px; }
.task-payout { display:flex; align-items:center; justify-content:space-between; border-radius:12px; background:#effbf5; margin:17px 0; padding:12px 15px; }
.task-payout span { color:#438c6d; font-size:10px; font-weight:800; letter-spacing:.6px; }
.task-payout strong { color:#08915c; font-size:19px; letter-spacing:-.4px; }
.task-quota { margin:0 0 19px; }
.quota-line { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 10px; font-size:12px; color:#7c8ba2; }
.quota-line b { color:#233958; font-size:12px; }
.quota-line.mini { font-size:10px; margin-top:9px; }
.progress-track { height:7px; border-radius:50px; overflow:hidden; background:#edf1fb; margin-top:10px; }
.progress-fill { height:100%; border-radius:50px; background:linear-gradient(90deg,#5679f9,#9a81f7); min-width:0; }
.task-actions { min-height:39px; }
.task-actions .btn { flex:1; }
.task-unavailable { opacity:.81; }
.task-unavailable .progress-fill { background:#9ba6b6; }
@media (max-width:1350px) {
  .hero-visual { right:1.5%; transform:scale(.84); }
  .featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:1150px) {
  .dashboard-columns { grid-template-columns:1fr; }
  .hero-visual { opacity:.55; }
  .hero-modern .hero-copy { max-width:610px; }
}
@media (max-width:910px) {
  .dashboard-columns { grid-template-columns:minmax(0,1fr); }
  .hero-modern { padding:30px; }
  .hero-visual { display:none; }
  .featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .hero-modern { min-height:225px; padding:25px; border-radius:19px; }
  .hero-modern h1 { font-size:25px; letter-spacing:-1px; }
  .hero-modern p { line-height:1.65; }
  .overview-label { align-items:flex-start; margin-top:23px; }
  .overview-label h2 { font-size:18px; }
  .overview-date { display:none; }
  .dashboard-stats { gap:10px; }
  .dashboard-stats .stat { min-height:105px; padding:14px 12px; flex-direction:column; align-items:flex-start; gap:9px; }
  .dashboard-stats .stat strong { font-size:18px; }
  .dashboard-stats .stat small { font-size:10px; }
  .dashboard-stats .stat-icon { height:33px; width:33px; border-radius:10px; }
  .dashboard-stats .stat-icon svg { height:17px; width:17px; }
  .mini-insights { gap:11px; padding:13px; }
  .mini-insights > div { font-size:11px; }
  .dashboard-panel { padding:17px 15px; }
  .panel-title h2 { font-size:16px; }
  .featured-grid { grid-template-columns:1fr; }
  .task-day-badge { font-size:11px; }
  .task-summary-bar { padding:13px; flex-direction:column; }
  .task-page-head { align-items:flex-start; }
  .task-card-v2 { padding:18px; }
}

/* V2.1.1: cảnh báo thay cho màn hình tải vô hạn */
.load-notice,.load-warning{padding:13px 17px;margin-bottom:18px;border-radius:14px;font-size:14px;line-height:1.55}
.load-notice{background:#ebf3ff;color:#2451a4;border:1px solid #caddff}
.load-warning{background:#fff7e7;color:#814a08;border:1px solid #ffdf9a;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.loading-help{max-width:400px;text-align:center;font-size:12px;color:#64748b;margin-top:15px}
.loading-help summary{cursor:pointer}
.loading-help a{color:#2867ea}
.loading-screen a{display:inline-block;margin-top:16px;font-size:13px;color:#2462d5}


/* TaskMoney V1.2.2: the nhiem vu co vua, nho hon ban goc nhung thoang hon V1.2.1. */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 15px;
  align-items: start;
}
.task-card-v2 {
  width: 100%;
  min-width: 0;
  padding: 17px 18px 16px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(39, 67, 117, .065);
}
.task-card-v2 .task-top { gap: 10px; }
.task-card-v2 .task-image {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.task-card-v2 .task-image svg { width: 21px; height: 21px; }
.task-card-v2 .task-top .chip { font-size: 10px; padding: 4px 9px; }
.task-card-v2 .task-title {
  margin: 13px 0 5px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.2px;
}
.task-card-v2 .task-desc {
  min-height: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.task-card-v2 .task-payout {
  margin: 13px 0 12px;
  padding: 11px 13px;
  border-radius: 11px;
  gap: 9px;
}
.task-card-v2 .task-payout span { font-size: 10px; letter-spacing: .3px; }
.task-card-v2 .task-payout strong { font-size: 18px; white-space: nowrap; }
.task-card-v2 .task-quota { margin: 0 0 14px; }
.task-card-v2 .quota-line { font-size: 11px; gap: 5px 8px; }
.task-card-v2 .quota-line b { font-size: 11px; }
.task-card-v2 .quota-line.mini { margin-top: 0; font-size: 10px; }
.task-card-v2 .progress-track { height: 6px; margin-top: 8px; }
.task-card-v2 .task-actions { min-height: 39px; gap: 8px; }
.task-card-v2 .task-actions .btn {
  min-height: 39px;
  padding: 9px 12px;
  font-size: 12px;
  white-space: normal;
}
.task-card-v2 .task-actions .chip { font-size: 10px; white-space: normal; }
@media (max-width: 650px) {
  .task-grid { gap: 13px; }
  .task-card-v2 { padding: 16px; }
}

/* V1.3 – ba hình thức nhận thưởng và ngân hàng kèm logo thật */
.payment-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:21px}
.payment-method,.carrier-option{cursor:pointer;position:relative;border:1.5px solid #e1e7f2;background:#fff;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:15px 8px;transition:border-color .15s,background .15s,transform .15s;min-width:0}
.payment-method:hover,.carrier-option:hover{border-color:#adc6fa;transform:translateY(-1px)}
.payment-method.active,.carrier-option.active{border-color:#3d6cf6;background:#f2f6ff;box-shadow:0 0 0 2px #3566f519}
.payment-method input,.carrier-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.payment-method strong,.carrier-option strong{font-size:13px;color:#19304c}
.payment-method small{color:#8595ac;font-size:11px}
.payment-method-icon{display:grid;place-items:center;width:46px;height:46px;color:#3267e6;background:#ebf2ff;border-radius:13px}
.payment-method-icon.card-icon{color:#e79335;background:#fff4e2}
.payment-logo{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #edf0f7;border-radius:11px;background:white;flex:none;overflow:hidden}
.payment-logo img{display:block;max-width:96%;max-height:87%;object-fit:contain;min-width:0}
.payment-logo small{display:none;color:#4d6386;font-weight:800;font-size:11px!important}
.payment-logo.logo-fallback small{display:block}
.payment-logo.momo-logo{width:46px;height:46px;border:0;border-radius:12px;background:#a81065}
.payment-logo.momo-logo.logo-fallback small{color:white}
.bank-picker{border:1px solid #dbe2ee;border-radius:11px;background:#fff;width:100%;min-height:51px;display:flex;gap:10px;align-items:center;text-align:left;padding:6px 12px;color:#314b71}
.bank-picker .bank-picker-label,.bank-picker strong{flex:1;font-size:13px}
.bank-picker .payment-logo{height:36px;width:44px}
.bank-picker>span:last-child{margin-left:auto}
.bank-list{border:1px solid #dce5f4;background:#fff;box-shadow:0 12px 28px #1834621a;border-radius:14px;padding:11px;margin-top:7px}
.bank-list[hidden],#withdraw-bank-fields[hidden],#withdraw-momo-fields[hidden],#withdraw-card-fields[hidden]{display:none!important}
#bank-search{width:100%;padding:11px 13px;border-radius:10px;border:1px solid #dce4ee;font:inherit;margin-bottom:10px}
.bank-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:260px;overflow-y:auto}
.bank-option{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #edf0f5;border-radius:10px;padding:7px 9px;text-align:left;color:#21385d;cursor:pointer;min-width:0}
.bank-option:hover{background:#f3f7ff;border-color:#bad0fd}
.bank-option[hidden]{display:none!important}
.bank-option span:not(.payment-logo){flex:1;font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis}
.bank-option>small{font-size:10px;color:#9aa6ba}
.bank-option .payment-logo{width:39px;height:34px;border:none}
.carrier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.carrier-option{padding:14px 5px;gap:10px}
.carrier-option .carrier-logo{height:43px;width:92px;max-width:95%;border:none}
.withdraw-info{display:block;font-size:11px;color:#8191a8;margin-top:4px}
.delivered-card{margin-top:10px;padding:11px 12px;background:#eafaf2;border:1px dashed #93daba;border-radius:11px;min-width:220px}
.delivered-card div{margin-bottom:5px}.delivered-card code{font-weight:700;color:#0d7853;font-size:12px;overflow-wrap:anywhere}
.delivered-card small{color:#3a9075}
@media(max-width:560px){.payment-method-grid{gap:7px}.payment-method{padding:13px 4px}.payment-method strong{font-size:12px}.bank-options{grid-template-columns:1fr}.carrier-option .carrier-logo{width:70px}}

/* Ngân hàng V1.3.2: ưu tiên logo thật; chỉ thay chữ nếu ảnh bị lỗi. */
.payment-logo img { display:block; max-width:100%; max-height:86%; object-fit:contain; }
.payment-logo small { display:none; }
.payment-logo.logo-fallback img { display:none!important; }
.payment-logo.logo-fallback small { display:block; }
.payment-logo.logo-loaded:not(.logo-fallback) img { display:block; }
.bank-option .payment-logo { width:50px; height:39px; border:1px solid #ecf0f6; background:#fff; border-radius:9px; }
.bank-option .payment-logo img { max-width:95%; max-height:90%; }
.bank-picker .payment-logo { width:54px; height:40px; }
@media(max-width:560px) { .bank-option .payment-logo { width:48px; height:38px; } }

/* V1.3.1 – Icon MoMo màu hồng / trắng. File SVG đi kèm nên chạy không cần mạng. */
.payment-logo.momo-logo {
  width:46px; height:46px; background:#a50064; border:0; border-radius:12px; overflow:hidden;
}
.payment-logo.momo-logo img {
  width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain;
}
.payment-logo.momo-logo.logo-loaded img { display:block; }
.payment-logo.momo-logo small { color:#fff!important; font-weight:850; }


/* V1.3.3 – Cài đặt admin cân đối hai cột; không dùng khối TrafficVN riêng. */
.admin-settings-grid { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr); align-items:start; gap:22px; width:100%; }
.admin-settings-grid > .card { min-width:0; }
.admin-settings-main,.admin-api-panel { padding:26px 27px; }
.admin-section-title { display:flex; align-items:center; gap:12px; min-width:0; }
.admin-section-icon { display:grid; flex:none; place-items:center; width:39px; height:39px; color:#315ff3; border-radius:12px; background:#edf2ff; }
.admin-section-icon svg { width:19px; height:19px; }
.admin-section-title .form-title { margin:0; font-size:17px; }
.admin-section-title p { margin:4px 0 0; font-size:11px; line-height:1.55; }
.admin-settings-main .admin-section-title { margin-bottom:24px; }
.admin-settings-main .form-field { margin-bottom:16px; }
.admin-settings-main textarea { min-height:91px; }
.admin-api-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.admin-api-heading .btn { flex:none; }
.admin-api-panel .callout { margin:0 0 18px; }
.admin-api-list { display:grid; gap:11px; }
.admin-api-item { min-width:0; padding:15px; border:1px solid #e6ebf5; border-radius:13px; background:#fbfcff; }
.admin-api-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.admin-api-name { display:grid; gap:4px; min-width:0; }
.admin-api-name strong { font-size:13px; color:#192b4b; overflow-wrap:anywhere; }
.admin-api-name small { font-size:11px; color:#8695ad; }
.admin-api-top .chip { flex:none; }
.admin-api-url { background:#f0f4fa; border-radius:7px; font-size:11px; padding:8px 10px; color:#5f7191; margin-top:11px; overflow-wrap:anywhere; }
.admin-api-actions { margin-top:12px; gap:9px; }
.admin-api-empty .empty { margin:0; }
.admin-api-hint { margin:18px 0 0; overflow-wrap:anywhere; }
@media (max-width:1280px) { .admin-settings-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:650px) { .admin-settings-main,.admin-api-panel { padding:19px 17px; } .admin-api-heading .btn { width:100%; } .admin-section-title { align-items:flex-start; } }

/* V1.4: Turnstile + nhiều nhà cung cấp nằm cùng cột bên phải. */
.admin-verify-stack { min-width:0; display:flex; flex-direction:column; gap:16px; }
.admin-verify-stack > .card { min-width:0; }

/* V1.4.1 – Bốn loại thẻ gồm Garena; bố cục 4 cột desktop, 2 cột trên mobile. */
.carrier-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.carrier-option{min-width:0;}
.carrier-option .carrier-logo{width:92px;max-width:95%;}
@media(max-width:850px){.carrier-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:400px){.carrier-option{padding:12px 4px;gap:6px}.carrier-option strong{font-size:12px}}

/* V1.4.2: logo thẻ cào tải trực tiếp từ source, khung không nhảy bố cục */
.carrier-option .carrier-logo { min-width:0; width:104px; height:43px; flex:0 0 43px; border:0; background:transparent; }
.carrier-option .carrier-logo img { width:100%; max-width:100%; max-height:40px; object-fit:contain; }
.carrier-option .carrier-logo small { text-align:center; }
@media(max-width:560px){.carrier-option .carrier-logo{width:82px}}

/* V1.5 - Thành viên / Hồ sơ quản trị */
.detail-header { display:flex; align-items:flex-end; justify-content:space-between; gap:15px; flex-wrap:wrap; margin-bottom:18px; }
.detail-header h2 { margin:16px 0 5px; font-size:21px; letter-spacing:-.6px; }
.detail-header h2 small { font-size:12px; color:#8292aa; }
.detail-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:12px 0 22px; }
.detail-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin:14px 0 20px; }
.detail-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.detail-two-col .card.padded { min-width:0; padding:23px; }
.detail-two-col h3,.detail-table h3 { margin:0 0 15px; font-size:16px; }
.detail-kv { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:10px 0; border-bottom:1px solid #eef1f6; font-size:12px; }
.detail-kv span { color:#6d7b91; }
.detail-kv strong { text-align:right; color:#182c4a; overflow-wrap:anywhere; max-width:65%; }
.detail-table { margin-bottom:20px; }
.detail-agent { max-width:270px; overflow-wrap:anywhere; color:#62718c; font-size:11px; }
.detail-table code { font-size:11px; }
.text-red { color:#c23e4b; }
@media(max-width:1100px){.detail-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.detail-two-col{grid-template-columns:1fr}.detail-cards{grid-template-columns:1fr 1fr}.detail-two-col .card.padded{padding:17px}.detail-tabs .btn{flex:1}}
