/* MTTB Shop – giao diện nền tảng & bảng điều khiển */
:root {
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-3: #06b6d4;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f7;
  --bg: #ffffff; --soft: #f8fafc; --soft-2: #f1f5f9;
  --success: #059669; --warning: #d97706; --danger: #dc2626; --info: #0284c7;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2, .h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3, .h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--soft-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.pt-0 { padding-top: 0 !important; }
.text-primary { color: var(--brand); }
.text-lg { font-size: 22px; }
.gap { gap: 16px; }
.wrap { flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(79, 70, 229, .38); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft-2); }
.btn-light { background: #fff; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger-outline:hover { background: #fef2f2; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; vertical-align: middle; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* Badges & chips */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-primary { background: #e0e7ff; color: #3730a3; }
.badge-muted { background: var(--soft-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.ok { color: var(--success); border-color: #a7f3d0; }
.chip.bad { color: var(--danger); border-color: #fecaca; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none !important; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--brand-3)); color: #fff; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; }
.main-nav > a:hover, .main-nav > a.active { color: var(--brand); background: #eef2ff; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; flex-direction: column; }
}

/* Flash */
.flash-wrap { position: fixed; top: 80px; right: 16px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--info); font-size: 15px; animation: slideIn .3s ease; }
.flash span { flex: 1; }
.flash-success { border-color: var(--success); } .flash-success .ic { color: var(--success); }
.flash-error { border-color: var(--danger); } .flash-error .ic { color: var(--danger); }
.flash-info .ic { color: var(--info); }
.flash-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 85% 10%, rgba(124, 58, 237, .14), transparent 60%), radial-gradient(700px 400px at 5% 90%, rgba(6, 182, 212, .14), transparent 60%), linear-gradient(180deg, #f8faff, #fff); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: var(--brand); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; min-height: 380px; }
.browser { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--soft-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.browser-bar i:nth-child(2) { background: #fcd34d; } .browser-bar i:nth-child(3) { background: #86efac; }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 6px; flex: 1; max-width: 280px; }
.phone { position: absolute; right: -10px; bottom: -30px; width: 150px; border: 6px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.phone .tthumb { aspect-ratio: 9 / 17; }
.phone .tt-row span:nth-child(n+3) { display: none; }
.phone .tt-row { grid-template-columns: 1fr 1fr; }
.float-card { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13px; animation: float 5s ease-in-out infinite; }
.float-card .ic { color: var(--brand); }
.float-card b { color: var(--success); }
.fc-1 { left: -20px; top: 40%; } .fc-2 { right: 40px; top: -16px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin: 0 8px 24px; }
  .browser { transform: none; }
  .phone { width: 110px; right: -4px; bottom: -24px; border-width: 4px; }
  .fc-1 { left: -4px; } .fc-2 { right: 8px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.row-between { text-align: left; max-width: none; align-items: flex-end; }
.page-head { padding: 48px 0 32px; background: linear-gradient(180deg, #f8faff, #fff); }
.page-head h1 { font-size: clamp(28px, 4.4vw, 42px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.gap-lg { gap: 32px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-2, .grid-2-1 { grid-template-columns: 1fr; } .section { padding: 52px 0; } }
@media (max-width: 520px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { gap: 16px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.empty { text-align: center; color: var(--muted); padding: 32px 16px !important; }

/* Features & steps */
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: var(--brand); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
.feature { transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Template thumb (mock) – vẽ theo tùy chọn của mẫu */
.tthumb { --rd: 6px; --ln: color-mix(in srgb, var(--tx) 14%, transparent); aspect-ratio: 4 / 3; background: var(--bg); display: flex; flex-direction: column; gap: 5%; padding: 0 0 5%; overflow: hidden; position: relative; }
.tthumb.R-0 { --rd: 0; } .tthumb.R-sm { --rd: 2px; } .tthumb.R-md { --rd: 5px; } .tthumb.R-lg { --rd: 9px; } .tthumb.R-xl { --rd: 14px; }
.tt-bar { display: flex; align-items: center; gap: 5%; height: 11%; padding: 0 5%; border-bottom: 1px solid var(--ln); flex-shrink: 0; }
.tt-logo { width: 20%; height: 42%; border-radius: 3px; background: var(--tx); opacity: .85; }
.tt-links { flex: 1; height: 26%; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--tx) 0 14%, transparent 14% 22%); opacity: .25; }
.tt-l1 { display: none; }
.tt-cart { width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--a); }
.H-center .tt-bar, .H-split .tt-bar { justify-content: center; }
.H-center .tt-l2, .H-split .tt-l2, .H-split .tt-l1 { flex: 0 0 22%; }
.H-split .tt-l1 { display: block; }
.H-center .tt-logo { order: -1; } .H-center .tt-bar { flex-wrap: wrap; height: 15%; align-content: center; gap: 4px 5%; } .H-center .tt-logo { flex: 0 0 30%; height: 28%; } .H-center .tt-l2 { flex: 0 0 50%; height: 16%; } .H-center .tt-cart { display: none; }
.H-bar .tt-bar { background: var(--p); border: 0; }
.H-bar .tt-logo, .H-bar .tt-links { background-color: #fff; }
.H-bar .tt-links { background: repeating-linear-gradient(90deg, #fff 0 14%, transparent 14% 22%); opacity: .6; }
.H-minimal .tt-logo { height: 20%; width: 26%; }
.tt-hero { flex: 1.35; display: flex; gap: 6%; align-items: center; margin: 0 5%; padding: 5%; border-radius: var(--rd); background: var(--sf); position: relative; }
.tt-hero-txt { flex: 1; display: flex; flex-direction: column; gap: 9%; }
.tt-hero-txt i { display: block; height: 9px; border-radius: 3px; background: var(--tx); opacity: .8; }
.tt-hero-txt i + i { width: 72%; opacity: .3; height: 6px; }
.tt-hero-txt b { display: block; width: 38%; height: 11px; border-radius: var(--rd); background: var(--p); }
.tt-hero-img { width: 38%; aspect-ratio: 1; border-radius: var(--rd); background: linear-gradient(135deg, var(--p), var(--a)); display: grid; place-items: center; font-size: clamp(16px, 3vw, 32px); }
.tt-mosaic { display: none; }
.tt-row { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; padding: 0 5%; }
.tt-row span { border-radius: var(--rd); background: var(--sf); border: 1px solid var(--ln); position: relative; }
.tt-row span::after { content: ''; position: absolute; left: 12%; right: 32%; bottom: 10%; height: 9%; border-radius: 2px; background: var(--p); opacity: .75; }
/* banner */
.HE-center .tt-hero, .HE-color .tt-hero, .HE-framed .tt-hero { flex-direction: column; justify-content: center; gap: 8%; text-align: center; }
.HE-center .tt-hero-txt, .HE-color .tt-hero-txt, .HE-framed .tt-hero-txt { align-items: center; width: 70%; flex: 0; }
.HE-center .tt-hero-img, .HE-color .tt-hero-img, .HE-framed .tt-hero-img { display: none; }
.HE-color .tt-hero { background: var(--p); }
.HE-color .tt-hero-txt i { background: #fff; }
.HE-color .tt-hero-txt b { background: var(--a); }
.HE-framed .tt-hero { background: var(--bg); border: 1px solid color-mix(in srgb, var(--p) 45%, transparent); outline: 2px solid var(--sf); outline-offset: -5px; }
.HE-center .tt-hero { background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--p) 20%, var(--bg)), var(--bg) 70%); }
.HE-mosaic .tt-hero { background: transparent; padding: 0; gap: 4%; }
.HE-mosaic .tt-hero-txt { flex: .8; }
.HE-mosaic .tt-hero-img { width: 30%; aspect-ratio: auto; height: 100%; }
.HE-mosaic .tt-mosaic { display: grid; flex: 1; grid-template-columns: 1fr 1fr; gap: 6%; height: 100%; }
.HE-mosaic .tt-mosaic span { border-radius: var(--rd); background: var(--sf); }
.HE-mosaic .tt-mosaic span:nth-child(2) { background: color-mix(in srgb, var(--a) 40%, var(--sf)); }
.HE-banner .tt-hero { background: linear-gradient(120deg, var(--p), var(--a)); }
.HE-banner .tt-hero-txt i { background: #fff; }
.HE-banner .tt-hero-txt b { background: #fff; }
.HE-banner .tt-hero-img { border-radius: 50%; background: rgba(255, 255, 255, .25); }
.HE-minimal .tt-hero { background: transparent; border-bottom: 1px solid var(--ln); border-radius: 0; }
.HE-minimal .tt-hero-img { display: none; }
.HE-minimal .tt-hero-txt i:first-child { height: 15px; width: 85%; }
/* thẻ */
.C-shadow .tt-row span { border: 0; background: var(--bg); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.C-flat .tt-row span { border: 0; }
.C-overlay .tt-row span { border: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .45)), color-mix(in srgb, var(--p) 25%, var(--sf)); }
.C-overlay .tt-row span::after { background: #fff; }
.C-arch .tt-row span { border-radius: 999px 999px var(--rd) var(--rd); border: 0; }
.C-polaroid .tt-row span { background: #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.C-polaroid .tt-row span:nth-child(odd) { transform: rotate(-3deg); } .C-polaroid .tt-row span:nth-child(even) { transform: rotate(3deg); }
.is-dark .tt-row span { border-color: color-mix(in srgb, var(--p) 35%, transparent); }
/* Template / shop cards */
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl-thumb { position: relative; display: block; border-bottom: 1px solid var(--line); }
.tpl-premium { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(15, 23, 42, .85); color: #fde68a; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tpl-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tpl-body h3 { font-size: 17px; margin: 0; }
.tpl-body h3 a { color: var(--ink); }
.tpl-body p { margin: 0; }
.tpl-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* Categories */
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-ic { font-size: 38px; line-height: 1; }
.cat-row { display: flex; gap: 20px; align-items: flex-start; }
.cat-big { font-size: 48px; line-height: 1; padding: 14px; border-radius: 16px; background: var(--soft); }
.cat-row h2 a { color: var(--ink); }
.mini-p { padding: 16px; text-align: center; }
.mini-p-img { font-size: 48px; aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #ecfeff); border-radius: 12px; margin-bottom: 12px; }
.mini-p h3 { font-size: 15px; }
.mini-p p { margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 16px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.plan-popular { border: 2px solid var(--brand); box-shadow: 0 20px 40px rgba(79, 70, 229, .16); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan-price { margin: 4px 0 18px; }
.plan-price b { font-size: 32px; font-weight: 800; }
.plan-price span { color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 15px; }
.plan li .ic { color: var(--success); margin-top: 4px; }
.plan .field { margin-bottom: 14px; }
.table.compare td, .table.compare th { text-align: center; }
.table.compare th[scope="row"] { text-align: left; }
.table.compare .ic { color: var(--success); }

/* FAQ, CTA */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, #0e7490); color: #fff; padding: 56px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0 0 6px; }
.cta-in p { margin: 0; opacity: .9; }

/* Footer */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 56px 0 0; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 16px; }
.site-footer a { display: block; color: #cbd5e1; padding: 4px 0; font-size: 15px; }
.site-footer a.brand { display: inline-flex; margin-bottom: 12px; }
.site-footer p { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.site-footer .muted { color: #94a3b8; display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding: 20px 16px; font-size: 14px; color: #94a3b8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Template preview */
.preview-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.device-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.device-switch button { background: #fff; border: 0; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.device-switch button.active { background: var(--ink); color: #fff; }
.preview-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft-2); }
.preview-frame iframe { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; margin: 0 auto; background: #fff; transition: width .3s; }

/* Forms */
.form { display: grid; gap: 16px; }
.form h3 { margin-bottom: 0; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.field > span { display: block; }
.field-sm { max-width: 110px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }
input[disabled] { background: var(--soft); color: var(--muted); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; }
.form-row.align-end { align-items: end; }
.form-row > .btn, .form-row > button { align-self: end; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 5px; }
.input-prefix { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.input-prefix em { font-style: normal; background: var(--soft-2); color: var(--muted); padding: 10px 10px; font-weight: 400; white-space: nowrap; font-size: 14px; }
.input-prefix input { border: 0; border-radius: 0; }
.pw { position: relative; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(248, 250, 252, .92); backdrop-filter: blur(6px); padding: 12px 0; z-index: 5; }

/* Auth */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(600px 300px at 80% 0, rgba(124, 58, 237, .1), transparent), radial-gradient(600px 300px at 0 100%, rgba(6, 182, 212, .1), transparent); }
.auth-card { width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow-lg); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { color: var(--brand); margin-top: 3px; }
.contact-list b, .contact-list span { display: block; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:hover { background: #fafbff; }
.table select { padding: 6px 8px; font-size: 14px; min-width: 140px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ Dashboard ============ */
.dash-body { background: var(--soft); }
.dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); z-index: 60; }
.dash-side.is-admin { background: #0b1020; border-color: #0b1020; }
.dash-side.is-admin .brand { color: #fff; }
.dash-brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; }
.dash-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; display: grid; align-content: start; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; }
.dash-nav a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav a em { font-style: normal; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 999px; line-height: 20px; }
.dash-nav a:hover { background: var(--soft-2); }
.dash-nav a.active { background: #eef2ff; color: var(--brand); }
.is-admin .dash-nav a { color: #cbd5e1; }
.is-admin .dash-nav a:hover { background: rgba(255, 255, 255, .06); }
.is-admin .dash-nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.dash-nav-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 16px 12px 6px; font-weight: 600; }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.is-admin .dash-user { border-color: rgba(255, 255, 255, .08); color: #e2e8f0; }
.is-admin .dash-user small { color: #94a3b8; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; font-weight: 700; flex-shrink: 0; }
.dash-user-info { flex: 1; min-width: 0; line-height: 1.3; }
.dash-user-info b, .dash-user-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-info small { color: var(--muted); }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dash-title { font-size: 20px; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-toggle { display: none; }
.dash-content { padding: 24px; display: grid; gap: 24px; align-content: start; max-width: 1400px; width: 100%; }
.dash-content .grid { gap: 24px; }
.dash-overlay { display: none; }
.dash-body .flash-wrap { top: 76px; }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .dash-side.open { transform: none; }
  .dash-side.open + .dash-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; }
  .dash-toggle { display: inline-grid; }
  .dash-top { padding: 0 16px; }
  .dash-content { padding: 16px; gap: 16px; }
  .hide-sm { display: none; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none !important; }
a.stat:hover { border-color: var(--brand); }
.stat > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #eef2ff; color: var(--brand); flex-shrink: 0; }
.stat-warn > span { background: #fef3c7; color: var(--warning); }
.stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.stat small { color: var(--muted); font-size: 13px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #eef2ff, #fdf4ff); }
.welcome p { margin: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid; }
.notice > .ic { margin-top: 3px; }
.notice-info { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.notice-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-ic { width: 80px; height: 80px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; color: var(--brand); }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; }
.shop-head h2 { margin-bottom: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; scrollbar-width: thin; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { background: var(--soft-2); }
.tabs a.active { background: var(--ink); color: #fff; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 12px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list.contacts li { display: flex; align-items: flex-start; }
.list.contacts li.unread { background: #f8faff; margin: 0 -12px; padding: 12px; border-radius: 10px; }
.list.contacts p { margin: 6px 0 0; white-space: normal; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.quick a { display: grid; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.quick a:hover { border-color: var(--brand); background: #fafbff; }
.quick .ic { color: var(--brand); }
.quick small { color: var(--muted); }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.danger-zone form { margin-top: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h3 { margin: 0; }
.search-inline { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; max-width: 640px; }
.search-inline input { flex: 1; min-width: 160px; }
.search-inline select { width: auto; }
.prod-cell { display: flex; gap: 12px; align-items: center; }
.prod-thumb { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-2); font-size: 24px; overflow: hidden; flex-shrink: 0; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.items-mini { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.img-prev { aspect-ratio: 1; border-radius: 12px; background: var(--soft-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-emoji { font-size: 72px; }
.logo-prev { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.logo-prev img { max-height: 48px; width: auto; border-radius: 6px; border: 1px solid var(--line); }
.order-act { display: grid; gap: 6px; justify-items: end; min-width: 220px; }
.order-act input { padding: 6px 10px; font-size: 13px; }
.howto { padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
.domain-box { padding: 14px; border-radius: 12px; background: var(--soft); margin-bottom: 12px; }
.table.dns td, .table.dns th { padding: 8px; }
.pay-card { text-align: center; }
.pay-card .dl { text-align: left; }
.qr { display: block; margin: 0 auto 16px; width: 280px; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 220px; padding-top: 24px; margin-bottom: 12px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { display: block; width: 100%; max-width: 48px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); min-height: 2px; }
.bar small { color: var(--muted); font-size: 12px; }
.bar-val { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.log { background: #0b1020; color: #cbd5e1; padding: 16px; border-radius: 12px; max-height: 360px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.color-field { display: grid; gap: 2px; text-align: center; font-size: 12px; color: var(--muted); }
.color-field input { width: 52px; height: 36px; }
.tpl-admin-head { display: flex; gap: 14px; align-items: center; }
.tpl-admin-thumb { width: 120px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }

/* Create shop pickers */
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; margin-right: 8px; }
.create-shop { gap: 24px; }
.pick-grid { display: grid; gap: 12px; }
.pick-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick-tpls { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 16px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-box { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 16px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.pick-tpl { padding: 8px 8px 12px; align-items: stretch; }
.pick-tpl .tthumb { border-radius: 8px; }
.pick-ic { font-size: 32px; line-height: 1; }
.pick:hover .pick-box { border-color: #c7d2fe; }
.pick input:checked + .pick-box { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.pick input:focus-visible + .pick-box { outline: 3px solid rgba(79, 70, 229, .45); }
.pick input:checked + .pick-box::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .dash-side, .dash-top, .flash-wrap { display: none !important; } }

/* ============ Trình tùy biến giao diện ============ */
.customizer { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cz-side { display: grid; gap: 16px; align-content: start; }
.cz-card { padding: 20px; }
.cz-preview { position: sticky; top: 80px; }
.dash-body .cz-preview { top: 76px; }
.cz-preview iframe { height: calc(100vh - 190px); min-height: 520px; }
.cz-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: space-between; padding: 12px 0; background: linear-gradient(transparent, var(--soft) 30%); z-index: 3; }
.cz-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 4px 4px 0; margin-top: 12px; }
.cz-tpl .pick-box { padding: 6px 6px 8px; font-size: 13px; }
.cz-tpl[hidden] { display: none; }
.chips-sm .chip { padding: 5px 11px; font-size: 13px; cursor: pointer; font-family: inherit; }
.tc { display: grid; gap: 4px; }
.tc-sec { border-top: 1px solid var(--line); padding: 4px 0; }
.tc-sec:first-child { border-top: 0; }
.tc-sec summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 12px 0; font-size: 15px; }
.tc-sec summary::-webkit-details-marker { display: none; }
.tc-sec summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.tc-sec:not([open]) summary::after { transform: rotate(-90deg); }
.tc-sec > *:not(summary) { margin-bottom: 12px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.sw { position: relative; display: grid; justify-items: center; gap: 3px; cursor: pointer; text-align: center; }
.sw input { position: absolute; opacity: 0; }
.sw-box { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%); box-shadow: inset 0 0 0 4px var(--c3, #fff); transition: transform .15s; }
.sw-tpl { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); background: repeating-linear-gradient(45deg, #f1f5f9 0 6px, #fff 6px 12px); box-shadow: none; }
.sw small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.sw:hover .sw-box { transform: scale(1.06); }
.sw input:checked + .sw-box { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--c3, #fff), 0 0 0 3px rgba(79, 70, 229, .3); }
.sw input:focus-visible + .sw-box { outline: 3px solid rgba(79, 70, 229, .45); }
.tc-custom { margin-top: 10px; }
.tc-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tc-colors .color-field input { width: 100%; height: 34px; }
.tc-row { display: grid; gap: 6px; margin-bottom: 14px; }
.tc-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; transition: all .15s; }
.seg label:hover span { border-color: #c7d2fe; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .45); }
.group-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 72px auto auto; gap: 8px; align-items: center; }
.group-row input { padding: 7px 9px; }
.in-icon { text-align: center; }
@media (max-width: 1100px) { .customizer { grid-template-columns: 1fr; } .cz-preview { position: static; order: -1; } .cz-preview iframe { height: 70vh; } }
@media (max-width: 520px) { .tc-colors { grid-template-columns: repeat(3, 1fr); } .group-row { grid-template-columns: 48px 1fr; } }
/* ============ v1.3: sản phẩm, hướng dẫn, đơn hàng ============ */
.tab-badge { font-style: normal; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; line-height: 18px; }
.tabs a.active .tab-badge { background: #fff; color: var(--ink); }
.gal-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gal-manage:empty { display: none; }
.gal-item { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gal-item small { padding: 4px 8px; font-size: 12px; color: var(--muted); }
.gal-main { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; align-items: center; background: rgba(255, 255, 255, .92); padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.gal-main:has(input:checked) { background: var(--brand); color: #fff; }
.gal-tools { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 6px; }
.gal-tools input[type=number] { width: 56px; padding: 4px 6px; font-size: 13px; }
.gal-del { font-size: 12px; color: var(--danger); display: flex; gap: 4px; align-items: center; cursor: pointer; }
.gal-item:has(.gal-del input:checked) img { opacity: .3; }
.dropzone { position: relative; display: grid; place-items: center; text-align: center; padding: 28px 16px; border: 2px dashed #c7d2fe; border-radius: 14px; background: #f8faff; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #eef2ff; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone span { display: grid; gap: 4px; justify-items: center; pointer-events: none; }
.dropzone .ic { color: var(--brand); }
.dropzone small { color: var(--muted); }
.gal-new { margin-top: 12px; }
.editor-wrap { border-radius: 10px; background: #fff; }
.editor-wrap .ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: var(--line); background: var(--soft); position: sticky; top: 64px; z-index: 4; }
.editor-wrap .ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: var(--line); font-family: inherit; font-size: 15px; }
.editor-wrap .ql-editor { min-height: 280px; max-height: 70vh; overflow-y: auto; line-height: 1.7; }
.editor-wrap .ql-editor img { max-width: 100%; border-radius: 8px; }
.editor-src { width: 100%; min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; border-radius: 0 0 10px 10px; }
.ql-snow .ql-extra { width: auto !important; padding: 2px 6px !important; font-weight: 700; font-size: 13px; color: #444; }
.ql-snow .ql-extra.ql-active { color: var(--brand); }
.pf-side { display: grid; gap: 24px; align-content: start; }
.pf-main { display: grid; gap: 24px; align-content: start; min-width: 0; }
.hero-prev { max-height: 160px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.coupon-code { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.upper { text-transform: uppercase; }
.stars-sm { color: #f59e0b; letter-spacing: 1px; }
.reviews-admin li { align-items: flex-start; }
.reviews-admin li.unread { background: #fffbeb; margin: 0 -12px; padding: 12px; border-radius: 10px; }
.reviews-admin p { margin: 6px 0 0; }
.invoice tfoot td { border-bottom: 0; padding: 6px 12px; }
.onboard summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr minmax(160px, 260px); gap: 16px; align-items: center; }
.onboard summary::-webkit-details-marker { display: none; }
.onboard summary b, .onboard summary small { display: block; }
.progress { height: 10px; background: var(--soft-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-3)); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.checklist li a:first-of-type { flex: 1; color: var(--ink); font-weight: 500; }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.checklist li.ok { background: #f0fdf4; border-color: #bbf7d0; }
.checklist li.ok .ck { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.ok a:first-of-type { color: var(--muted); text-decoration: line-through; }
@media (max-width: 640px) { .onboard summary { grid-template-columns: 1fr; } }
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff !important; font-weight: 600; box-shadow: 0 12px 30px rgba(79, 70, 229, .35); text-decoration: none !important; }
.help-fab:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .help-fab span { display: none; } .help-fab { padding: 14px; } }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-toc { position: sticky; top: 80px; padding: 18px; }
.guide-toc nav { display: grid; margin: 10px 0; }
.guide-toc nav a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.guide-toc nav a:hover { background: var(--soft-2); color: var(--brand); }
.guide-body { display: grid; gap: 20px; }
.guide-body section { scroll-margin-top: 80px; }
.guide-body h2 { font-size: 22px; }
.guide-body ol, .guide-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 14px; }
.guide-body section:target { outline: 3px solid rgba(79, 70, 229, .35); }
.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.guide-steps div { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--soft); border-radius: 12px; font-weight: 500; }
.guide-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; flex-shrink: 0; }
.guide-tip { padding: 12px 16px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; margin-bottom: 14px; font-size: 15px; }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .guide-toc { position: static; } .guide-toc nav { grid-template-columns: 1fr 1fr; } }
.pw-meter { display: grid; gap: 4px; }
.pw-meter i { display: block; height: 6px; width: 0; border-radius: 99px; background: var(--danger); transition: width .2s, background .2s; }
.pw-meter.s3 i { background: var(--warning); } .pw-meter.s4 i, .pw-meter.s5 i { background: var(--success); }
.pw-meter small { font-weight: 400; color: var(--muted); }
@media print {
  .no-print, .help-fab, .tabs, .shop-head, .notice { display: none !important; }
  .dash { display: block; } .dash-content { padding: 0; } .grid-2-1 { grid-template-columns: 1fr; }
  .card { border: 0; box-shadow: none; padding: 0; }
  body, .dash-body { background: #fff; }
}/* Việt hóa nhãn Quill */
.editor-wrap .ql-snow .ql-picker.ql-header .ql-picker-label::before, .editor-wrap .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Đoạn văn'; }
.editor-wrap .ql-snow .ql-picker.ql-header [data-value="2"]::before { content: 'Tiêu đề lớn' !important; }
.editor-wrap .ql-snow .ql-picker.ql-header [data-value="3"]::before { content: 'Tiêu đề vừa' !important; }
.editor-wrap .ql-snow .ql-picker.ql-header [data-value="4"]::before { content: 'Tiêu đề nhỏ' !important; }
.editor-wrap .ql-snow .ql-picker.ql-header { width: 118px; }
.editor-wrap .ql-snow .ql-picker.ql-size .ql-picker-label::before, .editor-wrap .ql-snow .ql-picker.ql-size .ql-picker-item::before { content: 'Cỡ thường'; }
.editor-wrap .ql-snow .ql-picker.ql-size [data-value="small"]::before { content: 'Nhỏ' !important; }
.editor-wrap .ql-snow .ql-picker.ql-size [data-value="large"]::before { content: 'Lớn' !important; }
.editor-wrap .ql-snow .ql-picker.ql-size [data-value="huge"]::before { content: 'Rất lớn' !important; }
.editor-wrap .ql-snow .ql-tooltip[data-mode=link]::before { content: 'Nhập liên kết:'; }
.editor-wrap .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Lưu'; }
.editor-wrap .ql-snow .ql-tooltip::before { content: 'Mở liên kết:'; }
.editor-wrap .ql-snow .ql-tooltip a.ql-action::after { content: 'Sửa'; }
.editor-wrap .ql-snow .ql-tooltip a.ql-remove::before { content: 'Xóa'; }