:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --violet: #7c3aed;
    --nav: #0b1220;
    --nav-2: #111c32;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    background: linear-gradient(180deg, var(--nav), #0b1528 55%, #0a1324);
    color: #cbd5e1;
    z-index: 50;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 18px;
}
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,99,235,.35);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { color: #fff; font-size: 17px; letter-spacing: .3px; display: block; }
.brand-text span { font-size: 11px; color: #7f8ea5; letter-spacing: 1.6px; text-transform: uppercase; }
.sidebar-nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-section { padding: 16px 12px 6px; font-size: 10px; letter-spacing: 1.6px; color: #5b6b83; text-transform: uppercase; }
.nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #aab8cc;
    font-weight: 500;
    margin-bottom: 2px;
    transition: .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link.active {
    background: linear-gradient(90deg, rgba(37,99,235,.26), rgba(6,182,212,.08));
    color: #fff;
    box-shadow: inset 2px 0 0 #38bdf8;
}
.nav-link .icon { width: 18px; height: 18px; opacity: .9; }
.nav-link .nav-badge {
    margin-left: auto; background: var(--red); color: #fff; font-size: 10px;
    padding: 1px 6px; border-radius: 20px;
}
.sidebar-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #0891b2);
    color: #fff; display: grid; place-items: center; font-weight: 700;
}
.sidebar-user strong { display: block; color: #fff; font-size: 13px; line-height: 1.3; }
.sidebar-user span { font-size: 11px; color: #7f8ea5; }
.sidebar-actions { display: flex; gap: 6px; margin-top: 12px; }
.sidebar-actions .btn { flex: 1; }

.main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; }
.sidebar-overlay.open { display: block; }
.topbar {
    height: 68px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px;
    padding: 0 28px;
    position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-weight: 700; font-size: 15px; }
.topbar-title span { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 12px; }
.topbar-spacer { flex: 1; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.topbar-link:hover { color: var(--primary); }
.mobile-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px; }
.content { padding: 26px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.4px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 22px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card:after {
    content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(37,99,235,.12), transparent 65%);
}
.stat-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 27px; font-weight: 750; letter-spacing: -.6px; margin: 8px 0 4px; }
.stat-meta { font-size: 12px; color: var(--muted); }
.stat-meta .up { color: var(--green); font-weight: 600; }
.stat-icon { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eff6ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--green); }
.stat-icon.amber { background: #fffbeb; color: var(--amber); }
.stat-icon.violet { background: #f5f3ff; color: var(--violet); }

.grid-2 { display: grid; grid-template-columns: 1.45fr .9fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid transparent; border-radius: 10px;
    padding: 9px 15px; background: var(--primary); color: #fff;
    font-weight: 600; font-size: 13px; cursor: pointer;
    transition: .18s ease; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: #cbd5e1; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--green); }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; padding: 12px 16px; background: var(--surface-2);
    color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .4px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tbody tr:hover { background: #fbfdff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .strong { font-weight: 600; }
.table .sub { font-size: 11px; color: var(--muted); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table-empty { padding: 54px 20px; text-align: center; color: var(--muted); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: #f1f5f9; color: #475569; white-space: nowrap;
}
.badge.success { background: #ecfdf5; color: #047857; }
.badge.warning { background: #fffbeb; color: #b45309; }
.badge.danger { background: #fef2f2; color: #b91c1c; }
.badge.info { background: #eff6ff; color: #1d4ed8; }
.badge.muted { background: #f1f5f9; color: #64748b; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 2px; }
.field label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 7px; color: #334155; }
.field label .req { color: var(--red); margin-left: 2px; }
.input, .select, textarea.input {
    width: 100%; border: 1px solid #dbe3ee; border-radius: 10px;
    background: #fff; color: var(--ink); padding: 10px 12px; font-size: 13px;
    outline: none; transition: .16s ease;
}
.input:focus, .select:focus, textarea.input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: #a3afc0; }
.help { margin-top: 5px; font-size: 11px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 30px; transition: .2s; cursor: pointer; }
.switch span:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span:before { transform: translateX(18px); }
.switch.small { width: 36px; height: 20px; }
.switch.small span:before { width: 14px; height: 14px; }
.switch.small input:checked + span:before { transform: translateX(16px); }

/* ---------- Alerts / toasts ---------- */
.alert { padding: 12px 15px; border-radius: 12px; border: 1px solid transparent; font-size: 13px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.toast-stack { position: fixed; right: 22px; top: 84px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
    background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px;
    font-size: 13px; box-shadow: var(--shadow-lg); animation: slideIn .25s ease both;
    display: flex; gap: 9px; align-items: flex-start;
}
.toast.success { background: #065f46; }
.toast.danger { background: #991b1b; }
.toast.warning { background: #92400e; }
.toast.info { background: #1e3a8a; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Auth ---------- */
.guest-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.guest-side {
    background: radial-gradient(1200px 600px at 10% 0%, #1d4ed8 0%, transparent 55%), linear-gradient(145deg, #070d1a, #0b1b3a 55%, #083344);
    color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.guest-side:before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.guest-side > * { position: relative; z-index: 1; }
.guest-brand { display: flex; align-items: center; gap: 12px; }
.guest-brand strong { font-size: 18px; }
.guest-hero h1 { font-size: 38px; line-height: 1.18; letter-spacing: -1px; margin: 0 0 16px; }
.guest-hero h1 span { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest-hero p { color: #9fb0c9; max-width: 480px; line-height: 1.8; }
.guest-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 32px; max-width: 520px; }
.guest-point { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; font-size: 13px; }
.guest-point .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(34,211,238,.15); color: #22d3ee; display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; }
.guest-foot { color: #6b7c96; font-size: 12px; }
.guest-main { display: flex; align-items: center; justify-content: center; padding: 36px 28px; background: linear-gradient(180deg,#fff,#f8fbff); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.5px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.auth-alt { margin-top: 26px; text-align: center; font-size: 12px; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; font-size: 11px; }

/* ---------- Home ---------- */
.marketing { background: #fff; }
.nav-public { display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.nav-public .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-public .brand strong { font-size: 17px; }
.hero { padding: 72px 0 60px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--primary); background: #eff6ff; border: 1px solid #dbeafe; padding: 5px 11px; border-radius: 20px; }
.hero h1 { font-size: 46px; line-height: 1.13; letter-spacing: -1.6px; margin: 20px 0 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 24px; letter-spacing: -.5px; }
.hero-stat span { font-size: 12px; color: var(--muted); }
.hero-panel { position: relative; }
.hero-card {
    background: linear-gradient(150deg, #0b1220, #111f3d);
    border-radius: 24px; padding: 26px; color: #fff; box-shadow: 0 30px 70px rgba(15,23,42,.28);
    border: 1px solid rgba(255,255,255,.08);
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hero-card-top span { color: #8ea2bd; font-size: 12px; }
.hero-card-amount { font-size: 34px; font-weight: 700; letter-spacing: -.8px; }
.hero-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.hero-method { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: #dbeafe; }
.hero-method i { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; display: block; }
.hero-float {
    position: absolute; right: -12px; bottom: -22px; background: #fff; border-radius: 14px;
    padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 12px; display: flex; align-items: center; gap: 9px;
}
.section { padding: 66px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head h2 { font-size: 30px; letter-spacing: -.9px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
    transition: .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ficon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eff6ff; color: var(--primary); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ad-slot { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 24px; }
.ad-item { display: block; flex: 1 1 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ad-item img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover; }
.ad-text { display: block; padding: 14px 18px; color: var(--ink); font-weight: 600; background: linear-gradient(90deg, #eff6ff, #f0fdfa); }
.logo-chip { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 16px; font-weight: 600; font-size: 13px; color: #334155; display: inline-flex; gap: 8px; align-items: center; }
.logo-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--primary); display: block; }
.cta { background: linear-gradient(135deg, #0b1220, #12244a); border-radius: 24px; padding: 46px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; font-size: 27px; }
.cta p { margin: 0; color: #9fb0c9; }
.public-footer { padding: 28px 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* ---------- Cashier ---------- */
.blank-body { background: radial-gradient(1000px 500px at 50% -10%, #dbeafe, transparent 60%), var(--bg); min-height: 100vh; }
.cashier-wrap { max-width: 940px; margin: 0 auto; padding: 28px 20px 50px; }
.cashier-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cashier-brand .brand { display: flex; align-items: center; gap: 10px; }
.cashier-brand strong { font-size: 15px; }
.cashier-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; }
.pay-summary { background: linear-gradient(160deg, #0b1220, #12244a); color: #fff; border-radius: 20px; padding: 28px; }
.pay-summary .label { color: #93a7c4; font-size: 12px; }
.pay-amount { font-size: 40px; font-weight: 750; letter-spacing: -1px; margin: 8px 0 4px; }
.pay-subject { color: #cbd5e1; font-size: 13px; margin-bottom: 24px; }
.pay-meta { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; display: grid; gap: 10px; font-size: 12px; }
.pay-meta div { display: flex; justify-content: space-between; gap: 14px; color: #93a7c4; }
.pay-meta strong { color: #e2e8f0; font-weight: 500; text-align: right; word-break: break-all; }
.pay-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.pay-panel h2 { margin: 0 0 4px; font-size: 17px; }
.pay-panel .sub { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.channel-list { display: grid; gap: 9px; margin-bottom: 18px; }
.channel-option {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .16s;
    background: #fff;
}
.channel-option:hover { border-color: #bfdbfe; background: #f8fbff; }
.channel-option.selected { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.channel-option input { accent-color: var(--primary); }
.channel-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.channel-icon.wechat { background: #07c160; }
.channel-icon.alipay { background: #1677ff; }
.channel-icon.qqpay { background: #12b7f5; }
.channel-icon.unionpay { background: #d92b2b; }
.channel-icon.international { background: #635bff; }
.channel-icon.other { background: #64748b; }
.channel-name { font-weight: 600; font-size: 13px; }
.channel-desc { color: var(--muted); font-size: 11px; }
.channel-radio { margin-left: auto; }
.pay-tip { background: #f8fafc; border: 1px dashed #dbe3ee; border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.qr-stage { text-align: center; padding: 12px 0 0; }
.qr-frame { width: 230px; height: 230px; margin: 0 auto 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.08); display: grid; place-items: center; }
.qr-frame img, .qr-frame canvas { max-width: 100%; max-height: 100%; display: block; }
.qr-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 7px 12px; border-radius: 20px; background: #f1f5f9; }
.qr-status .spinner { width: 12px; height: 12px; border: 2px solid #cbd5e1; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.result-box { max-width: 560px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; text-align: center; box-shadow: var(--shadow-lg); }
.result-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #ecfdf5; color: var(--green); }
.result-icon.warn { background: #fffbeb; color: var(--amber); }
.result-box h1 { margin: 0 0 8px; font-size: 24px; }
.result-box p { color: var(--muted); margin: 0 0 20px; }
.result-detail { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; text-align: left; font-size: 12px; display: grid; gap: 8px; margin-bottom: 22px; }
.result-detail div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.result-detail strong { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }

/* ---------- Chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 10px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar .bar { width: 100%; max-width: 40px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #60a5fa, #2563eb); min-height: 4px; transition: .3s; position: relative; }
.chart-bar .bar:hover { filter: brightness(1.08); }
.chart-bar .bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; opacity: 0; transition: .2s; }
.chart-bar:hover .bar span { opacity: 1; }
.chart-label { font-size: 10px; color: var(--muted); }

/* ---------- Misc ---------- */
.code-block { background: #0b1220; color: #dbeafe; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.7; position: relative; }
.code-block pre { margin: 0; white-space: pre; }
.copy-btn { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.1); color: #dbeafe; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; padding: 4px 9px; font-size: 11px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.18); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-all; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 20px; position: relative; }
.timeline-item:before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child:before { display: none; }
.timeline-dot { width: 17px; height: 17px; border-radius: 50%; background: #dbeafe; border: 4px solid #fff; box-shadow: 0 0 0 1px #dbeafe; margin-top: 3px; }
.timeline-dot.ok { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-dot.fail { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.timeline-title { font-size: 13px; font-weight: 600; }
.timeline-meta { font-size: 11px; color: var(--muted); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 38px; height: 38px; margin-bottom: 8px; opacity: .5; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 12px; color: var(--muted); background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 430px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px; }
.qr-upload-preview { margin-top: 10px; width: 170px; height: 170px; border-radius: 12px; border: 1px dashed #cbd5e1; background: var(--surface-2); object-fit: contain; display: block; }
.banner {
    border-radius: 14px; padding: 15px 18px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center;
    background: linear-gradient(90deg, #eff6ff, #f0fdfa); border: 1px solid #dbeafe; color: #1e40af; font-size: 13px;
}
.banner.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.banner .btn { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-2, .hero, .cashier-grid { grid-template-columns: 1fr; }
    .guest-wrap { grid-template-columns: 1fr; }
    .guest-side { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); transition: .22s ease; }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .mobile-toggle { display: inline-flex; }
    .content { padding: 20px 16px 40px; }
    .topbar { padding: 0 16px; }
    .stat-grid { gap: 10px; }
    .stat-value { font-size: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .grid-3, .feature-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 44px 0; }
    .hero h1 { font-size: 34px; }
    .cta { padding: 30px; }
    .table th, .table td { padding: 10px 12px; }
    .guest-main { padding: 30px 20px; }
}
@media (max-width: 760px) {
    .nav-public .small.muted { display: none; }
    .nav-public { gap: 10px; }
    .hero { padding-top: 34px; }
    .hero h1 { font-size: 31px; }
    .hero-stats { gap: 20px; }
    .section { padding: 42px 0; }
    .section-head h2 { font-size: 24px; }
    .cta { border-radius: 18px; }
    .cashier-wrap { padding: 14px 14px 34px; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 21px; }
    .pay-summary, .pay-panel { padding: 20px; }
    .pay-amount { font-size: 32px; }
    .kv { grid-template-columns: 1fr; gap: 3px; }
    .kv dd { margin-bottom: 8px; }
}

/* ==================== UI Refresh 2026 ==================== */
:root {
    --radius: 18px;
    --shadow: 0 10px 34px rgba(15, 23, 42, .055);
    --shadow-lg: 0 26px 70px rgba(15, 23, 42, .14);
    --primary-gradient: linear-gradient(135deg, #2563eb, #4f46e5 55%, #0891b2);
}

html { scroll-behavior: smooth; }
body {
    background:
        radial-gradient(1000px 500px at 8% -8%, rgba(37, 99, 235, .075), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(6, 182, 212, .055), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
::selection { background: rgba(37, 99, 235, .18); }
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

/* Admin shell */
.sidebar {
    width: 258px;
    background:
        radial-gradient(700px 300px at 0% 0%, rgba(37, 99, 235, .24), transparent 60%),
        linear-gradient(180deg, #080f1e, #0b1528 60%, #091222);
    box-shadow: 14px 0 40px rgba(2, 8, 23, .08);
}
.sidebar-brand { padding: 16px 16px 12px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar-brand .brand-text strong { font-size: 16px; }
.sidebar-nav {
    padding: 2px 9px 10px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.20) transparent;
    scrollbar-gutter: stable;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; height: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.20);
    border: 0;
    border-radius: 999px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.34); }
.nav-section {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 10px 3px;
    font-size: 8.5px;
    letter-spacing: 1.4px;
    color: #61728b;
    background: #0a1426;
}
.nav-link {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    gap: 9px;
    line-height: 1.35;
    margin-bottom: 0;
}
.nav-link .icon { width: 16px; height: 16px; }
.nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, .30), rgba(6, 182, 212, .09));
    box-shadow: inset 2px 0 0 #38bdf8, 0 4px 16px rgba(2, 6, 23, .18);
}
.sidebar-foot {
    padding: 10px 14px 12px;
    background: rgba(7, 13, 26, .62);
    backdrop-filter: blur(12px);
}
.sidebar-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.sidebar-actions { margin-top: 9px; }
.main { margin-left: 258px; }
.topbar {
    height: 64px;
    padding: 0 clamp(18px, 2.6vw, 34px);
    background: rgba(255, 255, 255, .80);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.content {
    max-width: 1600px;
    padding: 24px clamp(18px, 2.6vw, 34px) 56px;
}
.page-head { align-items: flex-end; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(22px, 2vw, 27px); letter-spacing: -.55px; }
.page-actions { align-items: center; }

/* Cards / tables */
.card, .stat-card { border-color: rgba(226, 232, 240, .9); }
.card { box-shadow: var(--shadow); }
.card-head { padding: 17px 22px; }
.card-body { padding: 21px 22px; }
.stat-card {
    padding: 17px 19px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15, 23, 42, .085); }
.stat-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    opacity: .7;
}
.stat-value { font-size: 26px; letter-spacing: -.8px; }
.table th { padding: 11px 16px; background: #f8fafc; }
.table td { padding: 12px 16px; }
.table tbody tr { transition: background .15s ease; }
.table-wrap { scrollbar-width: thin; }
.btn {
    background: var(--primary-gradient);
    box-shadow: 0 5px 16px rgba(37, 99, 235, .16);
}
.btn:hover { box-shadow: 0 9px 22px rgba(37, 99, 235, .24); }
.btn-secondary { background: #fff; box-shadow: none; }
.btn-secondary:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .07); }
.input, .select, textarea.input { background: #fbfdff; }
.input:focus, .select:focus, textarea.input:focus { background: #fff; }
.badge { padding: 4px 9px; }

/* Public shell */
.public-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 28px);
}
.nav-public {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 13px 0;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
}
.nav-public .brand strong { letter-spacing: -.3px; }
.hero { padding: clamp(44px, 7vw, 78px) 0 clamp(40px, 6vw, 64px); gap: clamp(28px, 4vw, 52px); }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(34px, 4.8vw, 52px); letter-spacing: -1.8px; }
.hero p { font-size: clamp(13px, 1.2vw, 15px); max-width: 100%; }
.hero-panel { min-width: 0; }
.hero-card { border-radius: 26px; padding: clamp(20px, 2.6vw, 28px); width: 100%; }
.hero-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-float { right: 8px; }
.section { padding: clamp(42px, 5.5vw, 66px) 0; }
.section-head h2 { font-size: clamp(24px, 2.7vw, 31px); }
.feature { border-radius: 18px; }
.feature:hover { transform: translateY(-4px); }
.grid-4 .card { transition: transform .2s ease, box-shadow .2s ease; }
.grid-4 .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cta {
    background:
        radial-gradient(600px 240px at 90% 10%, rgba(34, 211, 238, .18), transparent 60%),
        linear-gradient(135deg, #07101f, #12244a);
    border: 1px solid rgba(255, 255, 255, .07);
}
.public-footer { border-top-color: rgba(226, 232, 240, .8); }
.marketing .card { background: rgba(255, 255, 255, .92); }

/* Installer theme (inline overrides are scoped by install.php) */
body.installer {
    background:
        radial-gradient(900px 460px at 15% -10%, rgba(37, 99, 235, .16), transparent 60%),
        radial-gradient(800px 460px at 95% 0%, rgba(6, 182, 212, .12), transparent 55%),
        linear-gradient(180deg, #f7faff, #eef4fb);
}

@media (max-width: 1280px) {
    .content { max-width: 100%; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nav-public .small.muted { display: none; }
    .nav-public { gap: 12px; }
}
@media (max-width: 860px) {
    .sidebar { width: 280px; }
    .main { margin-left: 0; }
    .topbar { height: 58px; }
    .content { padding: 18px 14px 42px; }
    .page-head { align-items: flex-start; }
    .public-shell { padding: 0 16px; }
    .nav-public { gap: 8px; }
    .hero h1 { letter-spacing: -1.1px; }
}
@media (max-width: 760px) {
    .nav-public { position: relative; flex-wrap: wrap; }
    .nav-public .brand { flex: 1; min-width: 0; }
    .nav-public .btn { margin-left: auto; }
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; }
    .hero-float { right: 8px; bottom: -16px; }
    .topbar .small.muted { display: none; }
}

/* ---------- Card shop 2.0 ---------- */
.shop-page {
    --shop: #ff6b2c;
    --shop-dark: #0b1220;
    padding: clamp(14px, 2.4vw, 26px) 0 30px;
}
.shop-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: clamp(26px, 4vw, 46px);
    color: #fff;
    background:
        radial-gradient(700px 300px at 92% 0%, rgba(255, 107, 44, .38), transparent 62%),
        radial-gradient(520px 320px at 0% 100%, rgba(34, 211, 238, .20), transparent 60%),
        linear-gradient(135deg, #07101f, #101f3d 62%, #1a1730);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 26px 70px rgba(15,23,42,.16);
}
.shop-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
    pointer-events: none;
}
.shop-hero > * { position: relative; z-index: 1; }
.shop-hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(255,107,44,.14); border: 1px solid rgba(255,107,44,.28); color: #ffb08b; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.shop-hero h1 { margin: 14px 0 8px; font-size: clamp(30px, 4.1vw, 46px); letter-spacing: -1.6px; line-height: 1.12; }
.shop-hero p { margin: 0; max-width: 650px; color: #a9b8cf; font-size: 13px; line-height: 1.8; }
.shop-search { display: flex; gap: 8px; max-width: 520px; margin-top: 22px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); padding: 5px; border-radius: 13px; backdrop-filter: blur(10px); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 9px 12px; font-size: 13px; }
.shop-search input::placeholder { color: #8798b0; }
.shop-search button { border: 0; border-radius: 9px; background: var(--shop); color: #fff; font-weight: 700; padding: 9px 18px; cursor: pointer; font-size: 12px; }
.shop-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; color: #93a7c4; font-size: 11px; }
.shop-hero-meta strong { display: block; color: #fff; font-size: 15px; margin-top: 2px; }
.shop-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 2; }
.shop-cats a { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #c8d5e6; font-size: 12px; background: rgba(255,255,255,.05); }
.shop-cats a:hover { border-color: rgba(255,107,44,.55); color: #fff; }
.shop-cats a.active { background: var(--shop); border-color: var(--shop); color: #fff; font-weight: 700; }
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.shop-side { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 84px; }
.shop-side-head { padding: 15px 16px 10px; font-size: 11px; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.shop-side a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; color: #334155; font-size: 12px; border-left: 2px solid transparent; }
.shop-side a:hover { background: #fff8f4; color: #c2410c; }
.shop-side a.active { background: #fff4ed; color: #c2410c; border-left-color: var(--shop); font-weight: 700; }
.shop-side a span { color: #94a3b8; font-size: 11px; }
.shop-side-foot { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.7; }
.shop-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shop-toolbar h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.shop-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shop-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: 0 8px 26px rgba(15,23,42,.045); transition: .2s ease; color: inherit; }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(15,23,42,.10); border-color: #fed7aa; color: inherit; }
.shop-card-cover { height: 132px; background: linear-gradient(135deg,#fff1e8,#eef2ff); display: grid; place-items: center; overflow: hidden; position: relative; }
.shop-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-cover span { font-size: 34px; font-weight: 800; color: var(--shop); opacity: .55; }
.shop-card-badge { position: absolute; left: 10px; top: 10px; background: rgba(15,23,42,.82); color: #fff; border-radius: 6px; padding: 3px 7px; font-size: 10px; font-weight: 700; backdrop-filter: blur(6px); }
.shop-card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.shop-card-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card-desc { color: var(--muted); font-size: 11px; line-height: 1.55; min-height: 34px; }
.shop-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #edf1f6; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.shop-price { color: var(--shop); font-size: 21px; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.shop-price small { font-size: 10px; font-weight: 600; color: #94a3b8; }
.shop-stock { font-size: 10px; color: #94a3b8; text-align: right; }
.shop-stock b { display: block; color: #475569; font-size: 11px; }
.shop-buy-mini { margin-top: 10px; display: block; text-align: center; border-radius: 8px; padding: 7px; background: #fff4ed; color: #c2410c; font-size: 11px; font-weight: 700; }
.shop-card:hover .shop-buy-mini { background: var(--shop); color: #fff; }
.shop-empty { background: #fff; border: 1px dashed #dbe3ee; border-radius: 18px; padding: 50px 20px; text-align: center; color: var(--muted); }

/* Product detail */
.product-crumbs { margin: 4px 0 14px; font-size: 12px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); gap: 20px; align-items: start; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.product-media-cover { height: clamp(240px, 34vw, 360px); background: linear-gradient(135deg,#fff1e8,#eef2ff); display: grid; place-items: center; overflow: hidden; }
.product-media-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-media-cover span { font-size: 72px; font-weight: 800; color: var(--shop); opacity: .45; }
.product-media-body { padding: 20px 22px; }
.product-media-body h1 { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.7px; }
.product-media-body .summary { color: var(--muted); font-size: 13px; line-height: 1.8; }
.product-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.product-badges .badge { background: #fff4ed; color: #c2410c; }
.buy-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 48px rgba(15,23,42,.09); overflow: hidden; position: sticky; top: 84px; }
.buy-panel-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fffaf6); }
.buy-panel-head .name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.buy-price { display: flex; align-items: baseline; gap: 8px; }
.buy-price strong { color: var(--shop); font-size: 32px; letter-spacing: -1px; line-height: 1; }
.buy-price s { color: #94a3b8; font-size: 12px; }
.buy-price .plan-tip { margin-left: auto; font-size: 10px; color: #047857; background: #ecfdf5; border-radius: 20px; padding: 4px 8px; }
.buy-panel-body { padding: 16px 20px 20px; }
.buy-section-label { font-size: 11px; font-weight: 700; color: #64748b; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.buy-section-label span { color: #94a3b8; font-weight: 500; }
.spec-grid { display: grid; gap: 8px; margin-bottom: 15px; }
.spec-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .15s; background: #fff; }
.spec-option:hover { border-color: #fdba74; background: #fffaf6; }
.spec-option:has(input:checked) { border-color: var(--shop); background: #fff7f1; box-shadow: 0 0 0 3px rgba(255,107,44,.08); }
.spec-option input { accent-color: var(--shop); }
.spec-option .spec-name { font-size: 12px; font-weight: 700; }
.spec-option .spec-meta { font-size: 10px; color: #94a3b8; }
.spec-option .spec-price { margin-left: auto; color: var(--shop); font-weight: 800; font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.qty-stepper { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-stepper button { width: 34px; height: 34px; border: 0; background: #f8fafc; color: #475569; cursor: pointer; font-size: 16px; }
.qty-stepper button:hover { background: #fff4ed; color: #c2410c; }
.qty-stepper input { width: 52px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: 0; font-size: 13px; }
.pay-methods { display: grid; gap: 7px; margin-bottom: 14px; }
.pay-method { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 12px; cursor: pointer; background: #fff; }
.pay-method:has(input:checked) { border-color: var(--shop); background: #fff7f1; }
.pay-method input { accent-color: var(--shop); }
.pay-method .pay-meta { margin-left: auto; color: #94a3b8; font-size: 10px; }
.buy-note { background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 11px; color: #64748b; line-height: 1.7; margin-bottom: 12px; }
.buy-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.buy-total .label { font-size: 11px; color: #64748b; }
.buy-total .value { color: var(--shop); font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#ff7a3d,#f4511e); color: #fff; font-weight: 800; font-size: 13px; padding: 12px 18px; cursor: pointer; box-shadow: 0 10px 24px rgba(244,81,30,.24); }
.shop-btn:hover { filter: brightness(1.04); color: #fff; }
.shop-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 0; }
.shop-tab { padding: 12px 16px; font-size: 13px; font-weight: 700; color: #64748b; border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; }
.shop-tab.active { color: #c2410c; border-bottom-color: var(--shop); }
.shop-panel { display: none; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; padding: 22px; font-size: 13px; line-height: 1.9; }
.shop-panel.active { display: block; }
.shop-panel h3 { font-size: 14px; margin: 0 0 8px; }
.shop-panel ul { margin: 0; padding-left: 18px; }
.shop-reviews { display: grid; gap: 10px; }
.shop-review { padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.shop-review:last-child { border-bottom: 0; }
.shop-review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.shop-review-head strong { font-weight: 700; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 11px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 1180px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-side { position: static; display: flex; flex-wrap: wrap; align-items: center; padding: 6px; }
    .shop-side-head, .shop-side-foot { display: none; }
    .shop-side a { border-left: 0; border-radius: 8px; padding: 7px 11px; }
    .shop-side a.active { background: #fff4ed; }
    .shop-side a span { display: none; }
}
@media (max-width: 980px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .product-grid { grid-template-columns: 1fr; }
    .buy-panel { position: static; }
}
@media (max-width: 620px) {
    .shop-hero { border-radius: 18px; padding: 22px 18px; }
    .shop-grid, .related-grid { grid-template-columns: 1fr; }
    .shop-card-cover { height: 150px; }
    .shop-toolbar h2 { font-size: 19px; }
    .shop-tabs { overflow-x: auto; }
    .shop-tab { white-space: nowrap; padding: 11px 12px; }
    .shop-panel { padding: 17px; }
    .buy-panel-head, .buy-panel-body { padding-left: 16px; padding-right: 16px; }
}


/* ===== v1.5.0 账户中心 ===== */
.account-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.account-links a {
    display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none;
    border: 1px solid var(--line); background: #fff; transition: .16s;
}
.account-links a:hover { border-color: var(--brand); background: #fff8f8; }
.account-links a strong { display: block; font-size: 13px; color: var(--text); }
.account-links a span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.identity-chip {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 10px;
    border-radius: 10px; background: #fff8f8; border: 1px dashed #fecaca;
    font-size: 12px; color: #b91c1c;
}
.identity-chip a { color: #b91c1c; font-weight: 700; text-decoration: none; }
@media (max-width: 620px) { .account-links { grid-template-columns: 1fr; } }

/* v1.5.0 规格行内操作 */
.v-restock { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.v-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.v-actions form { margin: 0; }

/* v1.5.0 表格内操作列收紧，避免被表格右边缘裁切 */
.table .btn-group { flex-wrap: nowrap; }
.table td:last-child .btn-sm { padding: 5px 9px; }
.table .btn-group > *, .v-actions > *, .v-restock > * { flex: 0 0 auto; }

/* v1.5.0 修复：文件末尾的 .btn{background:gradient} 覆盖了 ghost/success/danger 的底色，
   导致「删除 / 停用 / 下架 / 退出」等按钮变成蓝底灰字看不清。此处重新声明，靠顺序覆盖。 */
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; color: var(--ink); }
.btn-success { background: var(--green); color: #fff; box-shadow: 0 5px 16px rgba(5, 150, 105, .18); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
