/* XMagic Mobile landing — phong cách xmagic.net (tối ấm, cam/vàng, Oswald + Mulish) */
:root {
  --bg: #0c0907; --surf: #17110d; --text: #f6efe7; --muted: #b9aa9a;
  --orange: #ff8a1f; --gold: #ffc24a; --green: #3fd18b; --droid: #3ddc84; --cyan: #4fd8ff;
  --or-grad: linear-gradient(180deg, #ffc65c, #ff7a1a);
  --line: rgba(255, 255, 255, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: #070504; color: var(--text); font-family: "Mulish", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
svg { width: 1em; height: 1em; flex: none; }

.page { max-width: 520px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; padding-bottom: 84px;
  box-shadow: 0 0 80px rgba(0, 0, 0, .6); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.btn:active { transform: scale(.97); }
.btn svg { font-size: 1.15em; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 54px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--or-grad); color: #1a0d00; box-shadow: 0 8px 22px -6px rgba(255, 122, 26, .55), inset 0 1.5px 0 rgba(255, 255, 255, .45); }
.btn-green { background: rgba(63, 209, 139, .1); color: #9ff0c9; border: 1.5px solid rgba(63, 209, 139, .7); }
.btn-cyan { background: linear-gradient(180deg, #8ff0ff, #22b8e8); color: #04202a; box-shadow: 0 8px 22px -6px rgba(34, 184, 232, .5); }
.btn-outline { background: rgba(255, 138, 31, .1); color: #ffc58a; border: 1.5px solid rgba(255, 138, 31, .7); }
.btn-zalo { background: linear-gradient(180deg, #3b95ff, #0057d9); color: #fff; }
.btn-zalo2 { background: rgba(47, 139, 255, .1); color: #9cc8ff; border: 1.5px solid rgba(90, 162, 255, .7); }
.btn:hover { filter: brightness(1.06); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 16px;
  background: rgba(12, 9, 7, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand { display: flex; align-items: center; gap: 7px; margin-right: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 17px; }
.brand i { font-style: normal; font-weight: 900; font-size: 9px; letter-spacing: 1.6px; color: var(--droid); }
.pc-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  font-size: 12px; font-weight: 700; color: var(--muted); }
.menu { position: relative; flex: none; }
@media (max-width: 400px) {
  .nav { gap: 6px; padding-left: 12px; }
  .pc-link span { display: none; }
  .pc-link { padding: 8px; font-size: 14px; }
}
.menu summary { list-style: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .06);
  display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 44px; min-width: 210px; padding: 6px; border-radius: 16px; background: #17110d;
  border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.menu nav a { padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.menu nav a:hover { background: rgba(255, 255, 255, .05); }

/* ---------- hero ---------- */
.hero { padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 122, 26, .24), transparent 70%); }
.eyebrow-droid { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; color: var(--droid); }
.hero h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 29px; line-height: 1.15; }
.hero h1 span { background: var(--or-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 14.5px; line-height: 1.5; font-weight: 500; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.trust svg { color: var(--green); }
.trust b { color: #cfeedd; font-weight: 700; }
.trust span { color: var(--muted); opacity: .75; font-weight: 600; }

.app-preview { margin-top: 4px; padding: 12px; border-radius: 20px; background: #120d0a; border: 1.5px solid rgba(255, 181, 71, .4);
  box-shadow: 0 14px 34px -8px rgba(255, 122, 26, .35); display: flex; flex-direction: column; gap: 10px; }
.app-bar { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.app-bar b { font-weight: 800; }
.online { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 900; letter-spacing: .8px; color: #7ee8b3; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 6px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer; }
.toggle img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.toggle img.contain, .contain { object-fit: contain; }
.toggle span { font-size: 11.5px; font-weight: 700; color: #e8dccf; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 28px; height: 15px; border-radius: 8px; background: #3a2f28; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(13px); }
.stats { display: flex; justify-content: space-between; padding: 4px; }
.stats div { display: flex; flex-direction: column; align-items: center; }
.stats b { font-family: "Oswald", sans-serif; font-size: 18px; color: var(--gold); }
.stats span { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: 24px 16px 10px; display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec h2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 21px; line-height: 1.2; }
.muted { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.sec-head .muted { font-weight: 600; }

/* modes carousel */
.modes { padding-right: 0; }
.modes .sec-head { padding-right: 16px; }
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 6px 0; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.mode { flex: 0 0 150px; height: 196px; border-radius: 18px; overflow: hidden; position: relative; scroll-snap-align: start;
  background: var(--img) center/cover, #1a1208; border: 1px solid rgba(255, 255, 255, .12); }
.mode::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .9)); }
.mode-swap { background: linear-gradient(135deg, #5a3d06, #1a1208); }
.mode-swap::after { content: ""; position: absolute; left: 25px; top: 14px; width: 100px; height: 100px; background: url("assets/icon-doi-acc.png") center/contain no-repeat; opacity: .35; }
.mode-info { position: absolute; left: 12px; right: 10px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.mode-info img { width: 30px; height: 30px; border-radius: 9px; border: 1.2px solid rgba(255, 255, 255, .7); object-fit: cover; margin-bottom: 4px; }
.mode-info img.contain { border: 0; }
.mode-info b { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 16px; color: #fff; }
.mode-info small { font-size: 11.5px; font-weight: 700; color: #ffd9a8; line-height: 1.3; }

/* install steps */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--surf);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); }
.glyph img { width: 26px; height: 26px; image-rendering: pixelated; }
.step em { font-style: normal; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 24px; color: var(--c); opacity: .45; }
.step b { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.step small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chips i { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); }
.step-video { align-items: center; justify-content: center; text-align: center; --c: #ff8a1f;
  background: radial-gradient(circle, rgba(255, 154, 31, .25), transparent 70%), #1d150b; border-color: rgba(255, 138, 31, .45); }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--or-grad); display: grid; place-items: center; color: #1a0d00; font-size: 18px; margin-bottom: 4px; }

/* pricing */
.pricing { gap: 12px; background: radial-gradient(80% 30% at 50% 0%, rgba(255, 154, 31, .14), transparent 70%); }
.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 1.4px; color: var(--orange); }
.h2-lg { font-size: 24px !important; margin-top: -6px; }
.activation, .notice { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.activation svg { color: var(--gold); font-size: 15px; margin-top: 2px; }
.notice { padding: 11px 14px; border-radius: 14px; background: rgba(255, 194, 74, .08); color: #f3dfae; font-weight: 600; }
.notice svg { color: var(--gold); font-size: 18px; margin-top: 1px; }
.group-label { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.group-label b { font-weight: 900; letter-spacing: 1.4px; }
.group-label span { color: var(--muted); font-weight: 600; opacity: .8; white-space: nowrap; }
.group-label::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.plan { padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--surf); border: 1px solid rgba(255, 255, 255, .09); }
.plan .badge { align-self: flex-start; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 900; letter-spacing: .8px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.plan h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 21px; }
.plan p { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 34px; line-height: 1; }
.price i { font-style: normal; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 18px; }
.price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta .ok, .meta .perday { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.meta .ok { background: rgba(63, 209, 139, .12); color: #9ff0c9; }
.meta .ok svg { color: var(--green); }
.meta .perday { background: rgba(255, 255, 255, .06); color: var(--muted); font-weight: 700; }
.meta .perday.best { color: #7ee8b3; }
.plan-gold { background: radial-gradient(70% 60% at 80% 0%, rgba(255, 176, 32, .16), transparent 70%), #1d150b; border: 1.5px solid rgba(255, 214, 107, .6);
  box-shadow: 0 14px 34px -10px rgba(255, 176, 32, .35); }
.plan-gold .badge { background: var(--or-grad); color: #1a0d00; }
.plan-gold h3 { color: #ffe066; }
.plan-gold .price b, .plan-gold .price i { color: #ffc107; }
.plan-green { background: radial-gradient(70% 60% at 80% 0%, rgba(63, 209, 139, .16), transparent 70%), #0f1a14; border: 1.5px solid rgba(63, 209, 139, .6); }
.plan-green .badge { background: rgba(63, 209, 139, .18); color: #7ee8b3; }
.plan-green h3 { color: #b9f5d3; }
.plan-green .price b { color: #7ee8b3; }
.plan-cyan { background: radial-gradient(70% 60% at 80% 0%, rgba(34, 184, 232, .16), transparent 70%), #0d1a1f; border: 1.5px solid rgba(143, 240, 255, .6);
  box-shadow: 0 14px 34px -10px rgba(34, 184, 232, .35); }
.plan-cyan .badge { background: linear-gradient(180deg, #8ff0ff, #22b8e8); color: #04202a; }
.plan-cyan h3 { color: #a5f3fc; }
.plan-cyan .price b, .plan-cyan .price i { color: var(--cyan); }
.included { border-radius: 18px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.inc-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(63, 209, 139, .08); font-size: 14px; font-weight: 800; color: #dff7ea; }
.inc-head svg { color: var(--green); }
.inc-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.inc-row img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.inc-row span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.inc-row b { font-size: 14px; font-weight: 800; }
.inc-row small { font-size: 12px; font-weight: 500; color: var(--muted); }
.inc-row > svg { color: var(--green); font-size: 14px; }

/* contact */
.contact { padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(100% 140% at 0% 0%, rgba(47, 139, 255, .35), transparent 60%), #0d1830; border: 1px solid rgba(120, 180, 255, .4); }
.contact p { font-size: 13px; line-height: 1.45; font-weight: 500; color: #cfe3ff; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact .others { font-size: 12px; font-weight: 700; color: #8fb4e6; }
.contact .others a { text-decoration: underline; text-underline-offset: 2px; }

/* footer */
.footer { margin-top: 18px; padding: 20px 16px 30px; background: #080605; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 10px; }
.f-brand { display: flex; align-items: center; gap: 8px; }
.f-brand b { font-family: "Oswald", sans-serif; font-size: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.footer p { font-size: 11px; color: var(--muted); opacity: .6; }

/* sticky bar */
.sticky-bar { position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: flex; gap: 8px;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(12, 9, 7, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, .07); }
.sticky-bar .btn-primary { flex: 1; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay-center { align-items: center; padding: 16px; }
.sheet { width: 100%; max-width: 520px; padding: 10px 20px calc(26px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #14100c;
  border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 12px; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.handle { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.sheet-head > div { flex: 1; }
.sheet-head h3 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; }
.sheet-head p { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sheet-head p svg { color: var(--droid); }
.x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 16px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--muted); }
.note svg { font-size: 20px; margin-top: 1px; }
.note span { display: flex; flex-direction: column; gap: 2px; }
.note b { font-size: 14px; font-weight: 800; color: var(--text); }
.note-gold { background: rgba(255, 194, 74, .08); border: 1px solid rgba(255, 194, 74, .35); }
.note-gold svg { color: var(--gold); }
.note-green { background: rgba(63, 209, 139, .08); border: 1px solid rgba(63, 209, 139, .35); }
.note-green svg { color: var(--green); }
.sheet-foot { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); opacity: .85; }
.vmodal { width: 100%; max-width: 720px; background: #14100c; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; }
.vhead h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; }
.vframe { aspect-ratio: 16 / 9; background: #000; }
.vframe video, .vframe iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
