:root {
    --bg: #f3f6fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #1663f5;
    --primary-dark: #0f46b8;
    --green: #0f9f6e;
    --amber: #d97706;
    --red: #e11d48;
    --purple: #7c3aed;
    --shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

[v-cloak] { display: none !important; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.nav-svg,
.btn-svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.btn-svg {
    margin-right: 7px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.hide-mobile { display: inline; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.admin-side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 18px 14px;
    background: #111827;
    color: #dbe4f0;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 18px; }
.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}
.brand-mark.dark { background: #111827; color: #fff; }
.brand-logo {
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .28);
}
.brand-logo.dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
}
.brand-title { color: #fff; font-size: 16px; font-weight: 800; }
.brand-sub { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.nav-group { margin: 10px 0 16px; }
.nav-title { color: #7f8ea3; font-size: 12px; padding: 8px 10px; }
.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    margin: 3px 0;
    font-size: 14px;
}
.admin-nav a:hover, .admin-nav a.active { background: #1f2937; color: #fff; }
.admin-main { min-width: 0; }
.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { margin: 0; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.content { padding: 24px 28px 36px; }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.card.compact { padding: 14px; }
.card h2, h2 { font-size: 16px; margin: 0 0 14px; }
h1 { font-size: 22px; margin: 0; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.page-head h2 { margin: 0 0 6px; font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }

.metric {
    position: relative;
    min-height: 114px;
    overflow: hidden;
}
.metric .muted { margin-bottom: 10px; }
.metric strong { display: block; font-size: 30px; line-height: 1.1; }
.metric.accent-blue { border-top: 3px solid var(--primary); }
.metric.accent-green { border-top: 3px solid var(--green); }
.metric.accent-amber { border-top: 3px solid var(--amber); }
.metric.accent-purple { border-top: 3px solid var(--purple); }
.metric.accent-red { border-top: 3px solid var(--red); }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.toolbar form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.btn:hover { color: #fff; background: var(--primary-dark); }
.btn.gray { background: #eef2f7; color: #334155; }
.btn.gray:hover { background: #e2e8f0; color: #111827; }
.btn.red { background: var(--red); }
.btn.green { background: var(--green); }
.btn.small { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }

label { display: block; color: #334155; font-size: 13px; font-weight: 600; }
input, select, textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 99, 245, .12);
}
textarea { min-height: 118px; resize: vertical; }
input[type="color"] { min-height: 42px; padding: 4px; }

.form-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.check {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    font-weight: 600;
}
.check input { width: auto; margin: 0; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
.card > table { min-width: 760px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 11px 10px; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-weight: 800; white-space: nowrap; }
td.actions { white-space: nowrap; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    background: #eaf1ff;
    color: #174ea6;
}
.badge.ok { background: #e8fff5; color: #057a55; }
.badge.warn { background: #fff7ed; color: #b45309; }
.badge.off { background: #eef2f7; color: #64748b; }
.badge.red { background: #fff1f2; color: #be123c; }

.code {
    display: inline-block;
    max-width: 100%;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 7px;
    word-break: break-all;
    color: #1e293b;
}
.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.input-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 7px;
}
.input-with-action input { margin-top: 0; }
.upload-preview {
    min-height: 0;
    display: none;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.upload-preview:has(img),
.upload-preview.has-image { display: block; }
.upload-preview img {
    display: block;
    max-width: 220px;
    max-height: 120px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}
.upload-preview.banner-preview img {
    width: min(360px, 100%);
    max-width: 100%;
    max-height: 190px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
}
.flash.success { background: #ecfdf3; color: #067647; border: 1px solid #bbf7d0; }
.flash.error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.empty {
    display: grid;
    place-items: center;
    min-height: 160px;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
}
.download-share-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(22, 99, 245, .16);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}
.download-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.download-share-head strong { display: block; margin-bottom: 4px; }
.download-share-box input {
    margin-top: 0;
    font-size: 12px;
    color: #334155;
    background: rgba(255,255,255,.88);
}
.download-card { overflow-x: hidden; }
.download-site-list > div { display: block; }
.download-update-status-list b {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    text-align: right;
}
.download-update-form textarea { min-height: 92px; }
.app-bind-box { margin-top: 18px; }
.app-bind-box form { margin-top: 12px; }
label small.muted { display: block; margin-top: 8px; line-height: 1.55; }
.active-soft {
    border-color: rgba(22,99,245,.38) !important;
    background: #eef4ff !important;
}
.ticket-thread {
    display: grid;
    gap: 12px;
}
.ticket-thread article {
    max-width: 860px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ticket-thread article.admin {
    margin-left: auto;
    background: #eef4ff;
    border-color: rgba(22,99,245,.18);
}
.ticket-thread article.user {
    margin-right: auto;
}
.ticket-thread article > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}
.ticket-thread b { color: var(--text); }
.ticket-thread p {
    margin: 0;
    color: #1f2937;
    line-height: 1.8;
    word-break: break-word;
}
.attachment-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}
.attachment-list a {
    display: block;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    word-break: break-all;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
    margin-top: 0;
}
.settings-section {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.settings-section:first-of-type { border-top: 0; padding-top: 4px; }
.settings-title {
    margin-bottom: 14px;
}
.settings-title span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.settings-title h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.settings-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.skin-card {
    position: relative;
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}
.skin-card.active {
    border-color: var(--primary);
    background: #eef4ff;
    box-shadow: 0 0 0 3px rgba(22, 99, 245, .10);
}
.skin-card.locked {
    opacity: .58;
    cursor: not-allowed;
}
.skin-card input { position: absolute; opacity: 0; pointer-events: none; }
.skin-swatch {
    display: block;
    width: 42px;
    height: 28px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}
.skin-card strong,
.skin-card em { display: block; }
.skin-card strong { color: var(--text); margin-bottom: 5px; }
.skin-card em { color: var(--muted); font-style: normal; font-size: 12px; line-height: 1.55; }
.ops-thumb-placeholder {
    width: 168px;
    aspect-ratio: 16 / 7;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 900;
}

.upgrade-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}
.upgrade-hero h2 { margin: 0 0 10px; font-size: 24px; }
.upgrade-hero p { margin: 0; color: #cbd5e1; line-height: 1.8; }
.upgrade-hero .code { background: rgba(255,255,255,.08); color: #e2e8f0; border-color: rgba(255,255,255,.16); }
.upgrade-status {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 130px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    text-align: center;
}
.upgrade-status span { color: #cbd5e1; font-size: 13px; font-weight: 800; }
.upgrade-status strong { font-size: 24px; }
.upgrade-status strong.ok { color: #86efac; }
.upgrade-status strong.bad { color: #fda4af; }
.upgrade-drop {
    display: grid;
    place-items: center;
    min-height: 176px;
    margin-top: 0;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
}
.upgrade-drop input {
    width: min(340px, 100%);
    margin: 0 0 12px;
    background: #fff;
}
.drop-title { display: block; font-size: 16px; color: var(--text); font-weight: 900; }
.drop-text { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.upgrade-kv { display: grid; gap: 10px; }
.upgrade-kv div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.upgrade-kv span { color: var(--muted); font-size: 13px; font-weight: 700; }
.upgrade-kv strong { color: var(--text); font-size: 14px; }
.upgrade-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.upgrade-steps div {
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.upgrade-steps b { display: block; margin-bottom: 10px; }
.upgrade-steps span { color: var(--muted); line-height: 1.8; font-size: 13px; }
.upgrade-log {
    display: grid;
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12px;
}
.upgrade-log div {
    padding: 9px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    word-break: break-all;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 16px;
    background:
        linear-gradient(135deg, rgba(22,99,245,.10), transparent 34%),
        linear-gradient(315deg, rgba(15,159,110,.10), transparent 38%),
        #f3f6fb;
}
.auth-card {
    width: 430px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 10px; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(360px, 520px);
    background: #f4f7fb;
}
.auth-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 68px;
    background: #101827;
    color: #fff;
}
.brand-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    margin-bottom: 34px;
}
.auth-hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 18px;
}
.auth-hero p {
    max-width: 620px;
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0;
}
.auth-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.auth-points span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}
.auth-panel {
    align-self: center;
    width: min(430px, calc(100% - 48px));
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.auth-panel.wide { width: min(680px, calc(100% - 48px)); }
.auth-panel h2 {
    font-size: 26px;
    margin: 0 0 8px;
}
.auth-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
}

.front-shell { min-height: 100vh; background: #f5f7fb; }
.front-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
}
.front-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.front-main { max-width: 1180px; margin: 0 auto; padding: 0 20px 46px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0 22px;
}
.hero-copy {
    background: #111827;
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy h1 { font-size: 38px; line-height: 1.15; margin-bottom: 16px; }
.hero-copy p { color: #cbd5e1; font-size: 15px; line-height: 1.9; max-width: 720px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.flow-list { display: grid; gap: 12px; margin-top: 18px; }
.flow-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.flow-no {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 800;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; min-height: 238px; }
.price { font-size: 30px; font-weight: 900; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }

.user-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    background:
        linear-gradient(135deg, rgba(22,99,245,.08), transparent 28%),
        linear-gradient(315deg, rgba(15,159,110,.07), transparent 32%),
        var(--bg);
}
.user-side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: rgba(255,255,255,.92);
    border-right: 1px solid rgba(226,232,240,.9);
    padding: 18px 14px;
    backdrop-filter: blur(12px);
}
.user-nav a {
    display: block;
    color: #334155;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px 0;
    font-size: 14px;
    font-weight: 700;
}
.user-nav a:hover, .user-nav a.active { color: var(--primary); background: #eaf1ff; }
.user-main { min-width: 0; }
.user-bottom-nav { display: none; }

.panel-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.commerce-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}
.commerce-copy {
    min-height: 280px;
    padding: 34px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37,99,235,.34), transparent 42%),
        #111827;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.commerce-copy h2 { font-size: 32px; line-height: 1.18; margin: 0 0 12px; }
.commerce-copy p { color: #cbd5e1; line-height: 1.9; margin: 0; max-width: 760px; }
.eyebrow.light { background: rgba(255,255,255,.1); color: #bfdbfe; }
.eyebrow.plain {
    display: inline-flex;
    width: auto;
    margin-bottom: 9px;
    background: #eaf1ff;
    color: var(--primary);
}
.quota-board {
    min-height: 280px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    place-items: center;
    gap: 18px;
}
.quota-ring {
    width: 156px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 60%),
        conic-gradient(var(--green) calc(var(--value) * 1%), #e2e8f0 0);
}
.quota-ring strong { display: block; font-size: 38px; line-height: 1; }
.quota-ring span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; margin-top: 8px; }
.quota-lines {
    width: 100%;
    display: grid;
    gap: 10px;
}
.quota-lines div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
}
.quota-lines span { color: var(--muted); font-size: 13px; font-weight: 700; }
.quota-lines b { font-size: 18px; }
.quota-lines.standalone { margin-top: 12px; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.service-card {
    min-height: 126px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}
.service-card.accent-green { border-top-color: var(--green); }
.service-card.accent-amber { border-top-color: var(--amber); }
.service-card.accent-purple { border-top-color: var(--purple); }
.service-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.service-card strong { display: block; font-size: 32px; margin: 8px 0 4px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-split,
.detail-grid,
.create-license-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 16px;
    align-items: start;
}
.entitlement-list,
.license-list,
.order-strip,
.stepper {
    display: grid;
    gap: 10px;
}
.entitlement-list article,
.license-tile,
.order-strip article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.entitlement-list b,
.license-tile b { display: block; margin-bottom: 4px; }
.quota-mini { text-align: right; }
.quota-mini strong { display: block; }
.quota-mini span { color: var(--muted); font-size: 12px; }
.order-strip article {
    grid-template-columns: minmax(170px, 1fr) minmax(120px, 1fr) auto auto;
    background: #fff;
}
.license-head,
.license-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.license-head h2,
.license-detail-head h2 { margin: 0 0 6px; font-size: 24px; }
.license-actions,
.license-state {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.quota-chip {
    min-width: 120px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}
.quota-chip span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.quota-chip strong { font-size: 24px; }
.entitlement-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.entitlement-pills article {
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
}
.entitlement-pills b,
.entitlement-pills span,
.entitlement-pills small { display: block; }
.entitlement-pills span { margin: 8px 0 4px; font-weight: 900; }
.entitlement-pills small { color: var(--muted); }
.license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.license-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.license-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.license-top h3 { margin: 0 0 6px; font-size: 18px; }
.license-top p { margin: 0; color: var(--muted); word-break: break-all; }
.license-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin: 16px 0;
}
.license-meta div,
.status-matrix div {
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}
.license-meta span,
.status-matrix span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}
.license-meta b,
.status-matrix b { word-break: break-word; }
.copy-line { margin: 12px 0; }
.license-note {
    margin: 12px 0 2px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.advanced-box {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px 14px;
}
.advanced-box.compact { margin-top: 12px; }
.advanced-box summary {
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}
.advanced-box summary::-webkit-details-marker { display: none; }
.advanced-box summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-weight: 900;
}
.advanced-box[open] summary { margin-bottom: 12px; }
.advanced-box[open] summary::after { content: '-'; }
.advanced-box label { margin-top: 0; }
.mini-list {
    display: grid;
    gap: 8px;
}
.mini-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}
.mini-list span { color: #334155; font-size: 13px; font-weight: 800; }
.status-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.feature-tags.large span {
    border-radius: 8px;
    padding: 9px 11px;
}
.feature-tags span.enabled { background: #e8fff5; color: #057a55; }
.feature-tags span.disabled { background: #eef2f7; color: #64748b; }
.stepper div {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 6px 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.stepper i {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.stepper p { margin: 0; color: var(--muted); }
.plan-select-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.site-switch {
    min-width: 260px;
}
.site-switch select {
    margin-top: 0;
    min-height: 42px;
    background: #fff;
}
.ops-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.ops-summary-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.ops-summary-card::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -28px;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #eaf1ff;
}
.ops-summary-card.accent-green::after { background: #dcfce7; }
.ops-summary-card.accent-amber::after { background: #fef3c7; }
.ops-summary-card.accent-purple::after { background: #f3e8ff; }
.ops-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.ops-summary-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 10px 0 6px;
    font-size: 25px;
    line-height: 1.16;
    word-break: break-word;
}
.ops-summary-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.app-ops-tabs {
    position: sticky;
    top: 68px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
}
.app-ops-tabs button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.app-ops-tabs button strong,
.app-ops-tabs button span { display: block; }
.app-ops-tabs button strong { font-size: 14px; color: #111827; }
.app-ops-tabs button span { margin-top: 4px; font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ops-tabs button.active {
    border-color: rgba(22, 99, 245, .28);
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(22,99,245,.08);
}
.platform-popup-mask {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(8px);
}
.platform-popup {
    position: relative;
    width: min(560px, 100%);
    max-height: min(86vh, 760px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 86px rgba(15, 23, 42, .32);
}
.platform-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}
.platform-popup-image {
    width: 100%;
    max-height: 260px;
    aspect-ratio: 16 / 8;
    display: block;
    object-fit: cover;
    background: #f1f5f9;
}
.platform-popup-body {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}
.platform-popup-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #eef4ff;
    color: #1663f5;
    font-size: 12px;
    font-weight: 900;
}
.platform-popup h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.28;
    word-break: break-word;
}
.platform-popup p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}
.platform-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
body.app-ops-has-tabs [data-app-ops-section] { display: none; }
body.app-ops-has-tabs [data-app-ops-section].active { display: block; }
body.app-ops-has-tabs section.grid[data-app-ops-section].active,
body.app-ops-has-tabs .grid[data-app-ops-section].active { display: grid; }
.ops-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ops-detail-grid article {
    min-height: 116px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ops-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.ops-detail-grid strong {
    display: block;
    margin: 9px 0 6px;
    font-size: 22px;
    color: var(--text);
    word-break: break-word;
}
.ops-detail-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.app-config-panel {
    border-top: 3px solid var(--primary);
}
.feature-permission-shell {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.feature-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.feature-mode-tab {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    min-height: 76px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
    color: inherit;
    font: inherit;
}
.feature-mode-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}
.feature-mode-tab span { min-width: 0; }
.feature-mode-tab strong {
    display: block;
    font-size: 16px;
    color: #111827;
}
.feature-mode-tab small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-mode-tab em {
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}
.feature-mode-tab.free.active {
    border-color: rgba(16, 185, 129, .38);
    background: linear-gradient(135deg, #ecfdf5, #fff);
}
.feature-mode-tab.free.active em {
    background: #dcfce7;
    color: #047857;
}
.feature-mode-tab.member.active {
    border-color: rgba(245, 158, 11, .42);
    background: linear-gradient(135deg, #fff7ed, #fff);
}
.feature-mode-tab.member.active em {
    background: #ffedd5;
    color: #c2410c;
}
.feature-mode-panel {
    display: none;
    padding: 16px;
    background: #fff;
}
.feature-mode-panel.active { display: block; }
.feature-picker-hint {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}
.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.feature-card-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfbff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
    cursor: pointer;
    transition: .16s ease;
    overflow: hidden;
}
.feature-card-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
}
.feature-card-item:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, .24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .075);
}
.feature-card-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.feature-card-check {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card-check::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    opacity: 0;
    margin-top: -2px;
}
.feature-card-body {
    display: block;
    min-width: 0;
    flex: 1;
}
.feature-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.feature-card-top strong {
    display: block;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feature-card-top em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}
.feature-card-body small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected {
    border-color: rgba(16, 185, 129, .42);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected::before { background: #10b981; }
.feature-mode-panel[data-feature-panel="free"] .feature-card-item.selected .feature-card-check {
    background: #10b981;
    border-color: #10b981;
}
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected {
    border-color: rgba(245, 158, 11, .46);
    background: linear-gradient(180deg, #fff, #fff7ed);
}
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected::before { background: #f59e0b; }
.feature-mode-panel[data-feature-panel="member"] .feature-card-item.selected .feature-card-check {
    background: #f59e0b;
    border-color: #f59e0b;
}
.feature-card-item.selected .feature-card-check::after { opacity: 1; }
.feature-closed-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}
.feature-closed-note strong { color: #111827; }
.member-feature-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}
.member-feature-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}
.member-feature-summary .muted {
    background: #f8fafc;
    color: #64748b;
}
.ops-hint-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.ops-hint-grid div {
    min-height: 92px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.ops-hint-grid strong {
    display: block;
    margin-bottom: 7px;
}
.ops-hint-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.ops-list {
    display: grid;
    gap: 12px;
}
.ops-item {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.ops-item img {
    width: 168px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}
.ops-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}
.ops-item p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}
.ops-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.order-cards {
    display: grid;
    gap: 12px;
}
.order-card {
    display: grid;
    grid-template-columns: minmax(260px,1fr) auto minmax(120px,auto) minmax(110px,auto) minmax(150px,auto);
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.order-card h3 { margin: 9px 0 4px; font-size: 17px; }
.order-money { font-size: 22px; font-weight: 900; }
.order-entitlement b { display: block; font-size: 18px; }
.order-entitlement span { color: var(--muted); font-size: 12px; font-weight: 800; }

.vue-plan-page {
    display: grid;
    gap: 18px;
}
.vue-plan-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: stretch;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #0f766e 100%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .12);
    color: #fff;
}
.vue-plan-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
}
.vue-plan-hero-copy span {
    width: max-content;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 7px 11px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
}
.vue-plan-hero-copy h2 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
}
.vue-plan-hero-copy p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    line-height: 1.8;
    font-size: 15px;
}
.vue-plan-hero-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
}
.vue-plan-hero-panel div {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}
.vue-plan-hero-panel span {
    display: block;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}
.vue-plan-hero-panel strong {
    display: block;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
}
.vue-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.vue-plan-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .075);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vue-plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .34);
    box-shadow: 0 26px 68px rgba(15, 23, 42, .11);
}
.vue-plan-card.popular::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}
.vue-plan-card form {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}
.vue-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.vue-plan-tag {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}
.vue-card-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.2;
}
.vue-card-top em {
    font-style: normal;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.vue-plan-desc {
    min-height: 46px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
}
.vue-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.vue-price-row strong {
    color: #dc2626;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
}
.vue-price-row span {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}
.vue-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.vue-feature-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}
.vue-feature-list i {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #dcfce7;
    position: relative;
    flex: 0 0 auto;
}
.vue-feature-list i::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    width: 6px;
    height: 9px;
    border: solid #16a34a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.vue-card-section {
    display: grid;
    gap: 10px;
}
.vue-section-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}
.vue-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.vue-period {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}
.vue-period:hover,
.vue-period.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}
.vue-period input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vue-period b,
.vue-period small {
    display: block;
}
.vue-period b {
    color: #0f172a;
    font-size: 15px;
}
.vue-period small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
.vue-period strong {
    color: #111827;
    font-size: 17px;
}
.vue-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.vue-pay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}
.vue-pay:hover,
.vue-pay.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.vue-pay input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vue-pay i {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
}
.vue-pay i.alipay { background: #1677ff; }
.vue-pay i.wxpay { background: #16a34a; }
.vue-pay i.qqpay { background: #f59e0b; }
.vue-manual-pay,
.vue-no-site {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 800;
}
.vue-switch-box {
    display: grid;
    gap: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
}
.vue-switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}
.vue-switch-line input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vue-switch-line span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: .18s ease;
    flex: 0 0 auto;
}
.vue-switch-line span::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .22);
    transition: .18s ease;
}
.vue-switch-line input:checked + span {
    background: #2563eb;
}
.vue-switch-line input:checked + span::after {
    transform: translateX(18px);
}
.vue-switch-box select,
.vue-remark {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
}
.vue-remark {
    margin-top: auto;
    background: #fff;
}
.vue-buy-btn {
    min-height: 48px;
    border-radius: 10px;
    font-size: 15px;
}

.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 24px;
    align-items: stretch;
    padding: 20px 0 30px;
}
.site-hero-copy {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    border-radius: 8px;
    background: #101827;
    color: #fff;
}
.eyebrow {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}
.site-hero h1 {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 18px;
}
.site-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}
.site-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.ghost-light {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}
.btn.ghost-light:hover { background: rgba(255,255,255,.18); }
.site-hero-board {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.board-head { display: flex; gap: 7px; }
.board-head span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.board-head span:first-child { background: #ef4444; }
.board-head span:nth-child(2) { background: #f59e0b; }
.board-head span:nth-child(3) { background: #22c55e; }
.board-metric {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.board-metric strong { display: block; font-size: 42px; }
.board-metric small { color: var(--muted); font-weight: 700; }
.board-list { display: grid; gap: 12px; }
.board-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}
.site-section { padding: 34px 0; }
.section-title {
    max-width: 720px;
    margin: 0 auto 20px;
    text-align: center;
}
.section-title.left { margin: 0 0 20px; text-align: left; }
.section-title span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.section-title h2 { font-size: 28px; margin: 0 0 8px; }
.section-title p { color: var(--muted); line-height: 1.8; margin: 0; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.feature-grid article,
.integration-card,
.plan-card-official {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.feature-grid b { display: block; font-size: 17px; margin-bottom: 8px; }
.feature-grid p,
.plan-card-official p,
.stack-row p,
.timeline p { margin: 0; color: var(--muted); line-height: 1.7; }
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 18px;
    align-items: start;
}
.timeline { display: grid; gap: 12px; }
.timeline div {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 10px 14px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.timeline i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.timeline b { align-self: end; }
.integration-card h2 { font-size: 22px; margin: 0 0 14px; }
.stack-row {
    display: grid;
    grid-template-columns: 78px minmax(0,1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.stack-row span { color: var(--primary); font-weight: 900; }
.plan-grid.official { align-items: stretch; }
.plan-card-official {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plan-card-official h3 { font-size: 22px; margin: 12px 0 8px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

/* User center shell refresh: grouped sidebar on desktop, drawer on mobile. */
.user-shell {
    grid-template-columns: 274px minmax(0, 1fr);
    background:
        linear-gradient(135deg, rgba(22,99,245,.07), transparent 30%),
        linear-gradient(315deg, rgba(15,159,110,.06), transparent 34%),
        #f5f7fb;
}
.user-side {
    padding: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 10px 0 30px rgba(15, 23, 42, .045);
}
.user-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.user-side-head .admin-brand {
    min-width: 0;
    padding: 0;
}
.user-side-card {
    margin: 16px 0 18px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10213f, #1663f5);
    color: #fff;
    box-shadow: 0 12px 24px rgba(22, 99, 245, .18);
}
.user-side-card b,
.user-side-card span {
    display: block;
}
.user-side-card b {
    font-size: 15px;
    margin-bottom: 6px;
}
.user-side-card span {
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.55;
}
.user-nav {
    display: grid;
    gap: 14px;
    padding-bottom: 14px;
}
.user-nav-group {
    display: grid;
    gap: 4px;
}
.user-nav-title {
    padding: 0 10px 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}
.user-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    color: #334155;
    border-radius: 8px;
    padding: 9px 12px 9px 30px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}
.user-nav a::before {
    content: "";
    position: absolute;
    left: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}
.user-nav a:hover {
    color: #0f46b8;
    background: #eef4ff;
}
.user-nav a.active {
    color: #0f46b8;
    background: #eaf1ff;
    box-shadow: inset 3px 0 0 #1663f5;
}
.user-nav a.active::before {
    background: #1663f5;
}
.user-nav-system {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.drawer-toggle,
.drawer-close,
.user-drawer-backdrop {
    display: none;
}
.topbar-title {
    min-width: 0;
}
.user-main .topbar {
    min-height: 72px;
    height: auto;
    padding: 13px 28px;
}
.user-main .content {
    max-width: 1520px;
}

@media (max-width: 980px) {
    .user-shell {
        display: block;
        padding-bottom: 0 !important;
    }
    .user-shell .user-side {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 90;
        display: block;
        width: min(86vw, 330px);
        height: 100vh;
        padding: 18px;
        overflow-y: auto;
        transform: translateX(-106%);
        transition: transform .22s ease;
        border-right: 1px solid rgba(226,232,240,.95);
        box-shadow: 24px 0 60px rgba(15, 23, 42, .18);
    }
    .user-shell .user-side.open {
        transform: translateX(0);
    }
    .user-shell .user-nav {
        display: grid;
        gap: 14px;
        overflow: visible;
        padding-bottom: 24px;
    }
    .user-shell .user-nav a {
        white-space: normal;
    }
    .drawer-toggle {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        display: inline-grid;
        place-items: center;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 8px 18px rgba(15,23,42,.06);
    }
    .drawer-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #0f172a;
    }
    .drawer-close {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: #f1f5f9;
        color: #0f172a;
        font-size: 24px;
        line-height: 1;
    }
    .user-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, .42);
        backdrop-filter: blur(2px);
    }
    body.user-drawer-lock {
        overflow: hidden;
    }
    .user-main .topbar {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        min-height: 64px;
        padding: 10px 16px;
        background: rgba(255,255,255,.96);
        border-bottom: 1px solid rgba(226,232,240,.9);
        box-shadow: 0 8px 24px rgba(15,23,42,.05);
    }
    .user-main .topbar h1 {
        font-size: 20px;
        line-height: 1.25;
    }
    .user-main .top-actions {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
    }
    .user-main .top-actions .btn {
        width: auto;
        min-height: 36px;
        padding: 8px 12px;
    }
    .user-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .user-main .topbar {
        gap: 10px;
    }
    .user-main .topbar-title {
        flex: 1 1 auto;
    }
    .user-main .content {
        padding: 12px 12px 20px;
    }
    .user-shell .user-side {
        width: min(88vw, 318px);
        padding: 16px;
    }
    .user-side-card {
        margin: 12px 0 14px;
    }
    .user-nav {
        gap: 12px;
    }
    .user-nav a {
        min-height: 40px;
    }
    .drawer-toggle {
        width: 38px;
        height: 38px;
    }
    .user-main .top-actions .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }
}

/* Premium user-center skin. Real icon navigation, calmer cards, and better desktop/mobile rhythm. */
:root {
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0f172a;
    --ink-soft: #475569;
    --brand: #2563eb;
    --brand-2: #0f766e;
}
.user-shell {
    grid-template-columns: 286px minmax(0, 1fr) !important;
    background:
        linear-gradient(180deg, #eef4ff 0, rgba(245, 247, 251, 0) 280px),
        #f5f7fb !important;
}
.user-side {
    padding: 20px 16px !important;
    background: #0f172a !important;
    border-right: 0 !important;
    box-shadow: 12px 0 34px rgba(15, 23, 42, .10) !important;
}
.user-side .brand-title {
    color: #fff !important;
}
.user-side .brand-sub,
.user-nav-title {
    color: #94a3b8 !important;
}
.user-side .brand-logo,
.user-side .brand-mark {
    border-color: rgba(255,255,255,.16) !important;
}
.user-side-card {
    margin: 18px 0 20px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.07) !important;
    box-shadow: none !important;
}
.user-nav {
    gap: 16px !important;
}
.user-nav a {
    min-height: 44px !important;
    padding: 8px 10px !important;
    color: #cbd5e1 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
}
.user-nav a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.10) !important;
}
.user-nav a.active {
    color: #fff !important;
    background: #2563eb !important;
    border-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .34) !important;
}
.nav-icon {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    background: rgba(255,255,255,.08) !important;
    color: #cbd5e1 !important;
}
.user-nav a.active .nav-icon {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}
.drawer-close {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
}
.user-main .topbar {
    min-height: 76px !important;
    padding: 14px 30px !important;
    background: rgba(255, 255, 255, .86) !important;
    border-bottom: 1px solid rgba(226, 232, 240, .8) !important;
    backdrop-filter: blur(14px);
}
.user-main .topbar h1 {
    font-size: 23px !important;
    letter-spacing: 0 !important;
}
.user-main .content {
    padding: 28px 32px 48px !important;
}
.user-main .panel-block,
.user-main .card,
.user-main .license-card,
.user-main .download-card,
.user-main .order-card,
.user-main .ops-summary-card,
.user-main .service-card,
.user-main .info-box,
.user-main .quota-board {
    border-radius: 8px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .065) !important;
}
.user-main .panel-block:hover,
.user-main .card:hover,
.user-main .license-card:hover,
.user-main .download-card:hover,
.user-main .order-card:hover {
    border-color: rgba(37, 99, 235, .28) !important;
}
.user-main .license-head,
.user-main .page-head {
    padding: 24px !important;
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .10), transparent 42%),
        #fff !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .065) !important;
}
.user-main .license-head h2,
.user-main .page-head h2 {
    font-size: 26px !important;
}
.btn {
    gap: 0;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn.gray {
    background: #f8fafc !important;
    color: #334155 !important;
}
.commerce-copy {
    min-height: 300px !important;
    padding: 36px !important;
    background:
        linear-gradient(135deg, rgba(37,99,235,.42), transparent 46%),
        #0f172a !important;
}
.commerce-copy h2 {
    font-size: 34px !important;
}
.quota-board {
    background: #fff !important;
}
.quota-lines div,
.status-matrix div,
.license-meta div,
.mini-list div,
.stepper div {
    border-radius: 8px !important;
    background: #f8fafc !important;
}
.service-grid,
.ops-summary-grid,
.grid4 {
    gap: 14px !important;
}
.service-card,
.ops-summary-card,
.metric {
    border-left: 0 !important;
    border-top: 4px solid var(--brand) !important;
}
.service-card.accent-green,
.ops-summary-card.accent-green,
.metric.accent-green { border-top-color: #0f9f6e !important; }
.service-card.accent-amber,
.ops-summary-card.accent-amber,
.metric.accent-amber { border-top-color: #d97706 !important; }
.service-card.accent-purple,
.ops-summary-card.accent-purple,
.metric.accent-purple { border-top-color: #7c3aed !important; }
.metric.accent-red { border-top-color: #e11d48 !important; }
.user-main .table-wrap,
.user-main .panel-block > table,
.user-main .card > table {
    overflow: hidden;
}
.user-main th {
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 12px;
    text-transform: none;
}
.user-main td {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}
.app-ops-tabs {
    padding: 8px !important;
    background: #fff !important;
}
.app-ops-tabs button {
    min-height: 62px !important;
    background: transparent !important;
}
.app-ops-tabs button.active {
    background: #eef4ff !important;
    border-color: rgba(37, 99, 235, .22) !important;
}
.feature-card-item,
.skin-card,
.vue-period,
.vue-pay,
.download-card,
.license-card {
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.feature-card-item:hover,
.skin-card:hover,
.vue-period:hover,
.vue-pay:hover,
.download-card:hover,
.license-card:hover {
    transform: translateY(-2px);
}

.vue-plan-hero {
    min-height: 230px !important;
    background:
        linear-gradient(135deg, rgba(37,99,235,.72), transparent 52%),
        linear-gradient(315deg, rgba(15,118,110,.56), transparent 54%),
        #0f172a !important;
}
.vue-plan-card {
    box-shadow: 0 20px 52px rgba(15, 23, 42, .08) !important;
}
.vue-plan-card.popular::before {
    height: 5px !important;
    background: linear-gradient(90deg, #2563eb, #0f766e) !important;
}
.vue-plan-tag {
    border-radius: 8px !important;
}
.vue-price-row {
    background:
        linear-gradient(135deg, rgba(37,99,235,.07), transparent),
        #f8fafc !important;
}
.vue-period.active,
.vue-pay.active {
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.26), 0 10px 24px rgba(37,99,235,.10) !important;
}

.front-nav,
.front-main {
    max-width: 1240px !important;
}
.home-hero-copy {
    min-height: 460px !important;
    background:
        linear-gradient(135deg, rgba(37,99,235,.42), transparent 48%),
        #0f172a !important;
}
.home-visual,
.home-feature-grid article,
.home-flow article,
.home-plan-card {
    box-shadow: 0 18px 44px rgba(15, 23, 42, .065) !important;
}
.auth-hero {
    background:
        linear-gradient(135deg, rgba(37,99,235,.35), transparent 50%),
        #0f172a !important;
}
.auth-panel {
    box-shadow: 0 24px 58px rgba(15, 23, 42, .13) !important;
}

@media (max-width: 980px) {
    .user-side {
        background: #0f172a !important;
    }
    .user-main .content {
        padding: 20px 16px 32px !important;
    }
}

@media (max-width: 560px) {
    .user-main .topbar {
        padding: 10px 14px !important;
        min-height: 62px !important;
    }
    .user-main .topbar h1 {
        font-size: 19px !important;
    }
    .user-main .content {
        padding: 14px 12px 22px !important;
    }
    .user-bottom-nav {
        background: rgba(15, 23, 42, .96) !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
    }
    .user-bottom-nav a {
        color: #cbd5e1 !important;
    }
    .user-bottom-nav b {
        background: rgba(255,255,255,.08) !important;
        color: #cbd5e1 !important;
    }
    .user-bottom-nav a.active {
        color: #fff !important;
        background: #2563eb !important;
    }
    .user-bottom-nav a.active b {
        background: rgba(255,255,255,.18) !important;
        color: #fff !important;
    }
    .commerce-copy {
        padding: 22px !important;
    }
    .commerce-copy h2 {
        font-size: 27px !important;
    }
}

.doc-admin-head,
.docs-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}
.doc-admin-head h2,
.docs-hero h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}
.docs-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}
.docs-search {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    gap: 10px;
    align-items: end;
}
.docs-search input { margin-top: 0; }
.docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.docs-sidebar {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 8px;
}
.docs-sidebar a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}
.docs-sidebar a.active {
    border-color: rgba(22,99,245,.36);
    background: #eef4ff;
    color: var(--primary);
}
.docs-sidebar strong { font-size: 14px; }
.docs-sidebar span {
    min-width: 28px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}
.docs-sidebar em {
    grid-column: 1 / -1;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    line-height: 1.6;
}
.docs-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.doc-card,
.doc-detail {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.doc-card {
    display: grid;
    gap: 12px;
    min-height: 190px;
    padding: 18px;
}
.doc-card > div,
.doc-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.doc-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}
.doc-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}
.doc-card footer {
    color: var(--muted);
    font-size: 13px;
}
.doc-category {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.doc-detail {
    padding: 24px;
}
.doc-detail-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.doc-detail-head h2 {
    margin: 12px 0 10px;
    font-size: 28px;
    line-height: 1.25;
}
.doc-detail-head p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.8;
}
.doc-video {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.doc-video video,
.upload-preview.video-preview video {
    width: 100%;
    max-height: 420px;
    display: block;
    border-radius: 8px;
    background: #0f172a;
}
.doc-body {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.95;
    word-break: break-word;
}
.doc-related {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.compact-doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.doc-editor .doc-content-input {
    min-height: 300px;
    line-height: 1.8;
}
.video-preview {
    display: block;
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(22,99,245,.08), transparent 42%),
        linear-gradient(315deg, rgba(15,159,110,.07), transparent 40%),
        #f4f7fb;
}
.auth-hero {
    background:
        linear-gradient(135deg, rgba(22,99,245,.18), transparent 48%),
        #0f172a;
}
.auth-panel {
    border: 1px solid rgba(148,163,184,.34);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .12);
}
.auth-panel form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.auth-panel label {
    color: #1f2937;
    font-weight: 800;
}
.auth-panel input {
    min-height: 46px;
    background: #f8fafc;
}
.auth-panel input:focus {
    background: #fff;
}
.auth-foot {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .doc-admin-head,
    .docs-hero {
        align-items: stretch;
        flex-direction: column;
    }
    .docs-search {
        grid-template-columns: 1fr;
    }
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .docs-list,
    .compact-doc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .docs-sidebar {
        grid-template-columns: 1fr;
    }
    .doc-detail {
        padding: 16px;
    }
    .doc-detail-head h2 {
        font-size: 22px;
    }
    .auth-shell {
        display: block;
    }
    .auth-hero {
        min-height: auto;
        padding: 28px 20px;
    }
    .auth-hero h1 {
        font-size: 30px;
    }
    .auth-panel,
    .auth-panel.wide {
        width: calc(100% - 24px);
        margin: 12px auto 24px;
        padding: 20px;
    }
}

/* Front home refresh. */
.home-landing {
    display: grid;
    gap: 34px;
}
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    gap: 22px;
    align-items: stretch;
    padding: 18px 0 8px;
}
.home-hero-copy,
.home-visual,
.home-feature-grid article,
.home-flow article,
.home-plan-card {
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}
.home-hero-copy {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(22,99,245,.34), transparent 42%),
        linear-gradient(315deg, rgba(15,159,110,.22), transparent 46%),
        #111827;
}
.home-kicker {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
}
.home-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.12;
}
.home-hero p {
    max-width: 760px;
    margin: 0;
    color: #d7e1ee;
    font-size: 16px;
    line-height: 1.9;
}
.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.home-visual {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
}
.home-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.home-visual-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}
.home-visual-head b {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8fff5;
    color: #057a55;
    font-size: 12px;
}
.home-visual-main {
    padding: 34px 0 26px;
}
.home-visual-main strong {
    display: block;
    color: #0f172a;
    font-size: 42px;
    line-height: 1;
}
.home-visual-main p {
    max-width: 430px;
    margin-top: 12px;
    color: #64748b;
}
.home-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.home-visual-grid div {
    min-height: 86px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 8px;
    background: #fff;
}
.home-visual-grid span,
.home-plan-meta span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}
.home-visual-grid b {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 18px;
}
.home-section {
    padding: 18px 0;
}
.home-section-title {
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: center;
}
.home-section-title.left {
    margin-left: 0;
    text-align: left;
}
.home-section-title span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.home-section-title h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
}
.home-section-title p,
.home-feature-grid p,
.home-flow p,
.home-plan-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.home-feature-grid article,
.home-flow article,
.home-plan-card {
    background: #fff;
    padding: 20px;
}
.home-feature-grid b,
.home-flow b {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 17px;
}
.home-flow-section {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.home-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.home-flow i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}
.home-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.home-plan-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.home-plan-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}
.home-price {
    color: #0f172a;
    font-size: 32px;
    font-weight: 900;
}
.home-plan-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.home-plan-meta span {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, .18);
}
.home-plan-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-plan-list li {
    position: relative;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
}
.home-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
}

@media (max-width: 980px) {
    .home-hero,
    .home-flow-section,
    .home-flow,
    .home-feature-grid,
    .home-plan-grid {
        grid-template-columns: 1fr;
    }
    .home-hero-copy,
    .home-visual {
        min-height: auto;
    }
    .home-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 560px) {
    .home-landing {
        gap: 20px;
    }
    .home-hero {
        padding-top: 6px;
    }
    .home-hero-copy,
    .home-visual,
    .home-feature-grid article,
    .home-flow article,
    .home-plan-card {
        border-radius: 12px;
        padding: 16px;
    }
    .home-visual-grid,
    .home-plan-meta {
        grid-template-columns: 1fr;
    }
    .home-section-title h2 {
        font-size: 23px;
    }
    .home-actions .btn {
        width: 100%;
    }
}

/* Merchant/user center component skin. This layer upgrades every user page without changing each PHP view. */
.user-main {
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 220px),
        transparent;
}
.user-main .content {
    padding: 26px 30px 44px;
}
.user-main .panel-block,
.user-main .card,
.user-main .license-card,
.user-main .service-card,
.user-main .ops-summary-card,
.user-main .download-card,
.user-main .order-card,
.user-main .ticket-thread article,
.user-main .info-box,
.user-main .advanced-box,
.user-main .skin-card,
.user-main .feature-card-item,
.user-main .ops-detail-grid article,
.user-main .quota-board {
    border-color: rgba(148, 163, 184, .28);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
}
.user-main .panel-block,
.user-main .card,
.user-main .license-card,
.user-main .download-card {
    border-radius: 10px;
    background: rgba(255,255,255,.98);
}
.user-main .panel-block:hover,
.user-main .card:hover,
.user-main .license-card:hover,
.user-main .download-card:hover {
    border-color: rgba(22, 99, 245, .18);
}
.user-main h2 {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}
.user-main .license-head,
.user-main .page-head {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(22,99,245,.09), transparent 38%),
        linear-gradient(315deg, rgba(15,159,110,.08), transparent 42%),
        #fff;
}
.user-main .license-head::after,
.user-main .page-head::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -52px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(22, 99, 245, .08);
}
.user-main .license-head > *,
.user-main .page-head > * {
    position: relative;
    z-index: 1;
}
.user-main .license-head h2,
.user-main .page-head h2 {
    font-size: 24px;
    letter-spacing: 0;
}
.user-main .eyebrow.plain,
.user-main .settings-title span {
    min-height: 26px;
    align-items: center;
    border: 1px solid rgba(22, 99, 245, .14);
    background: #eef4ff;
}
.user-main .toolbar {
    margin-bottom: 16px;
}
.user-main .toolbar h2 {
    margin-bottom: 5px;
}
.user-main .btn {
    box-shadow: 0 8px 18px rgba(22, 99, 245, .12);
}
.user-main .btn.gray {
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, .20);
}
.user-main .btn.red,
.user-main .btn.green {
    box-shadow: none;
}
.user-main input,
.user-main select,
.user-main textarea {
    min-height: 42px;
    border-color: rgba(148, 163, 184, .56);
    background: #fbfdff;
}
.user-main textarea {
    line-height: 1.7;
}
.user-main label {
    color: #1f2937;
}
.user-main .check {
    background: #fbfdff;
}
.user-main .table-wrap {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    background: #fff;
}
.user-main .table-wrap table {
    border-collapse: separate;
    border-spacing: 0;
}
.user-main th {
    background: #f3f7ff;
    color: #334155;
}
.user-main th:first-child {
    border-top-left-radius: 10px;
}
.user-main th:last-child {
    border-top-right-radius: 10px;
}
.user-main td {
    color: #1f2937;
}
.user-main tr:last-child td {
    border-bottom: 0;
}
.user-main tbody tr:hover,
.user-main table tr:hover td {
    background: #fbfdff;
}
.user-main .badge {
    border: 1px solid rgba(22, 99, 245, .10);
}
.user-main .code {
    background: #f8fafc;
}
.user-main .grid4 > .quota-chip,
.user-main .quota-chip {
    border-color: rgba(148, 163, 184, .26);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.user-main .quota-chip strong {
    color: #0f172a;
}
.user-main .service-grid,
.user-main .ops-summary-grid,
.user-main .grid4 {
    gap: 12px;
}
.user-main .service-card,
.user-main .ops-summary-card,
.user-main .metric {
    border-top-width: 0;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
}
.user-main .service-card.accent-green,
.user-main .metric.accent-green,
.user-main .ops-summary-card.accent-green { border-left-color: var(--green); }
.user-main .service-card.accent-amber,
.user-main .metric.accent-amber,
.user-main .ops-summary-card.accent-amber { border-left-color: var(--amber); }
.user-main .service-card.accent-purple,
.user-main .metric.accent-purple,
.user-main .ops-summary-card.accent-purple { border-left-color: var(--purple); }
.user-main .metric.accent-red { border-left-color: var(--red); }
.user-main .service-card strong,
.user-main .ops-summary-card strong,
.user-main .metric strong {
    letter-spacing: 0;
}
.user-main .commerce-copy {
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(22,99,245,.32), transparent 42%),
        linear-gradient(315deg, rgba(15,159,110,.18), transparent 45%),
        #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.user-main .quota-board {
    border-radius: 10px;
}
.user-main .license-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.user-main .license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, .08);
}
.user-main .license-meta div,
.user-main .status-matrix div,
.user-main .quota-lines div,
.user-main .mini-list div,
.user-main .stepper div,
.user-main .timeline div {
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, .18);
}
.user-main .empty {
    border-color: rgba(22, 99, 245, .20);
    background:
        linear-gradient(135deg, rgba(22,99,245,.06), transparent),
        #fbfdff;
    color: #64748b;
}
.user-main .ticket-thread article {
    border-radius: 10px;
}
.user-main .app-ops-tabs {
    border-radius: 10px;
}
.user-main .app-ops-tabs button {
    border-radius: 8px;
}
.user-main .feature-permission-shell {
    border-radius: 10px;
}
.user-main .feature-mode-tab,
.user-main .feature-card-item {
    border-radius: 10px;
}
.user-main .order-card {
    border-radius: 10px;
}
.user-main .order-card h3 {
    line-height: 1.35;
}
.user-main .order-money {
    color: #0f172a;
}
.user-main .input-with-action,
.user-main .copy-row {
    align-items: stretch;
}
.user-main .input-with-action .btn,
.user-main .copy-row .btn {
    min-height: 42px;
}

@media (max-width: 980px) {
    .user-main .content {
        padding: 18px 16px 28px;
    }
    .user-main .license-head,
    .user-main .page-head {
        padding: 18px;
    }
    .user-main .license-head h2,
    .user-main .page-head h2 {
        font-size: 22px;
    }
}

@media (max-width: 560px) {
    .user-main .content {
        padding: 12px 10px 20px;
    }
    .user-main .panel-block,
    .user-main .card,
    .user-main .license-card,
    .user-main .download-card,
    .user-main .service-card,
    .user-main .ops-summary-card,
    .user-main .order-card {
        border-radius: 12px;
        padding: 13px;
    }
    .user-main .license-head,
    .user-main .page-head {
        border-radius: 12px;
        padding: 16px;
    }
    .user-main .license-head h2,
    .user-main .page-head h2 {
        font-size: 21px;
    }
    .user-main .table-wrap {
        border: 0;
        background: transparent;
    }
    .user-main table:not(.keep-table) tr {
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }
    .user-main table:not(.keep-table) td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }
    .user-main table:not(.keep-table) td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.7;
    }
    .user-main table:not(.keep-table) td:empty::before {
        content: "";
    }
    .user-main table:not(.keep-table) td.actions {
        display: flex;
    }
    .user-main .toolbar form input,
    .user-main .toolbar form select,
    .user-main .toolbar form .btn {
        width: 100% !important;
    }
    .user-main .order-card {
        gap: 10px;
    }
    .user-main .app-ops-tabs {
        border-radius: 0;
    }
}

@media (max-width: 980px) {
    .admin-shell, .user-shell { display: block; }
    .admin-side, .user-side { position: static; height: auto; }
    .admin-nav, .user-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .admin-nav a, .user-nav a { white-space: nowrap; }
    .nav-title { display: none; }
    .topbar { position: static; padding: 0 16px; }
    .content, .front-main { padding-left: 16px; padding-right: 16px; }
    .app-ops-tabs { position: static; grid-template-columns: repeat(2, minmax(180px, 1fr)); overflow-x: auto; }
    .feature-mode-tabs { grid-template-columns: repeat(2, minmax(180px, 1fr)); overflow-x: auto; }
    .feature-card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .grid, .grid3, .grid4, .check-grid, .plan-grid, .hero, .upgrade-hero, .upgrade-steps { grid-template-columns: 1fr; }
    .auth-shell, .site-hero, .feature-grid, .split-section, .commerce-hero, .dashboard-split, .detail-grid, .create-license-layout, .license-grid, .service-grid, .config-grid, .plan-select-grid, .order-card, .ops-summary-grid, .ops-item, .ops-hint-grid, .skin-grid, .ops-detail-grid, .vue-plan-hero { grid-template-columns: 1fr; }
    .vue-plan-hero-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .auth-hero { min-height: auto; padding: 34px 24px; }
    .auth-panel { margin: 24px auto; }
    .site-hero-copy, .site-hero-board { min-height: auto; }
    .site-hero h1, .auth-hero h1 { font-size: 34px; }
    .hero-copy { min-height: auto; padding: 26px; }
    .hero-copy h1 { font-size: 30px; }
    .commerce-copy { min-height: auto; padding: 26px; }
    .commerce-copy h2 { font-size: 28px; }
    .quota-board { min-height: auto; }
    .hide-mobile { display: none; }
}

@media (max-width: 560px) {
    body { background: #f6f8fc; }
    .vue-plan-hero {
        padding: 18px;
        border-radius: 12px;
    }
    .vue-plan-hero-copy {
        min-height: auto;
    }
    .vue-plan-hero-copy h2 {
        font-size: 26px;
    }
    .vue-plan-hero-panel,
    .vue-plan-grid,
    .vue-feature-list,
    .vue-period-grid,
    .vue-pay-grid {
        grid-template-columns: 1fr;
    }
    .vue-plan-hero-panel div {
        min-height: 72px;
    }
    .vue-plan-card form {
        padding: 16px;
        gap: 14px;
    }
    .vue-price-row strong {
        font-size: 32px;
    }
    .vue-card-top {
        align-items: flex-start;
    }
    .user-shell { padding-bottom: 76px; }
    .user-side {
        display: none;
    }
    .topbar {
        min-height: 64px;
        height: auto;
        padding: 12px 16px;
        border-bottom: 0;
        background: rgba(246, 248, 252, .96);
    }
    .topbar h1 {
        font-size: 19px;
        line-height: 1.25;
    }
    .user-main .content {
        padding: 12px 12px 18px;
    }
    .user-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        min-height: 64px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        border-top: 1px solid rgba(226,232,240,.92);
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .08);
        backdrop-filter: blur(14px);
    }
    .user-bottom-nav a {
        min-width: 0;
        min-height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
    }
    .user-bottom-nav a.active {
        color: #1663f5;
        background: #eaf1ff;
    }
    .user-bottom-nav span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .panel-block,
    .card,
    .license-card,
    .service-card,
    .ops-summary-card,
    .ops-detail-grid article,
    .download-card,
    .ticket-thread,
    .report-card {
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
        overflow: hidden;
    }
    .table-wrap,
    .card {
        overflow-x: visible;
    }
    table:not(.keep-table) {
        min-width: 0 !important;
    }
    table:not(.keep-table),
    table:not(.keep-table) thead,
    table:not(.keep-table) tbody,
    table:not(.keep-table) tr,
    table:not(.keep-table) th,
    table:not(.keep-table) td {
        display: block;
        width: 100%;
    }
    table:not(.keep-table) thead {
        display: none;
    }
    table:not(.keep-table) tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }
    table:not(.keep-table) td {
        border-bottom: 0;
        padding: 7px 0;
        word-break: break-word;
    }
    table:not(.keep-table) td.actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
    }
    table:not(.keep-table) td.actions .btn {
        width: auto;
        flex: 1 1 112px;
    }
    .app-ops-tabs {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -12px 12px;
        padding: 10px 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .055);
    }
    .app-ops-tabs button {
        flex: 0 0 auto;
        min-width: 112px;
        padding: 10px 12px;
    }
    .app-ops-tabs button span {
        display: none;
    }
    .toolbar, .page-head, .top-actions, .license-head, .license-detail-head { align-items: stretch; flex-direction: column; }
    .toolbar form, .front-links { width: 100%; }
    .btn { width: 100%; }
    .btn.small { width: auto; }
    .content { padding: 16px; }
    .card { padding: 14px; }
    .copy-row, .input-with-action { grid-template-columns: 1fr; }
    .panel-block { padding: 14px; }
    .entitlement-list article, .license-tile, .order-strip article, .license-meta, .status-matrix { grid-template-columns: 1fr; }
    .license-actions, .license-state { width: 100%; }
    .license-actions .btn, .license-state .btn { width: 100%; }
    .ops-item img { width: 100%; }
    .ops-thumb-placeholder { width: 100%; }
    .ops-actions { justify-content: flex-start; }
    .ops-summary-grid {
        gap: 8px;
        margin-bottom: 10px;
    }
    .ops-summary-card {
        min-height: 92px;
        padding: 12px;
        border-radius: 12px;
    }
    .ops-summary-card::after {
        width: 62px;
        height: 62px;
        right: -18px;
        top: -20px;
    }
    .ops-summary-card strong {
        margin-top: 5px;
        font-size: 24px;
    }
    .ops-summary-card p {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.45;
    }
    .download-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    .download-card h2 {
        margin-top: 8px !important;
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.35;
    }
    .download-card > .muted,
    .download-card > p.muted {
        margin: 4px 0;
        font-size: 12px;
        line-height: 1.45;
    }
    .download-card > .btn.block {
        min-height: 34px;
        margin-top: 8px;
        padding: 7px 10px;
        font-size: 13px;
    }
    .compact-download-share,
    .download-update-box {
        margin-top: 10px !important;
        padding: 10px;
        border-radius: 12px;
    }
    .download-share-head {
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    .download-share-head strong,
    .download-update-box > strong,
    .download-site-share > strong {
        font-size: 13px;
        line-height: 1.35;
    }
    .download-share-head .muted,
    .download-update-box > .muted,
    .download-site-share > .muted {
        display: none;
    }
    .download-share-head .btn.small {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 12px;
    }
    .compact-download-share .copy-row,
    .download-site-share .copy-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }
    .compact-download-share input,
    .download-site-share input {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }
    .compact-download-share .copy-row .btn,
    .download-site-share .copy-row .btn {
        width: auto;
        min-height: 32px;
        padding: 6px 8px;
        font-size: 12px;
    }
    .download-site-share {
        margin-top: 8px !important;
        padding: 9px;
        border-radius: 10px;
    }
    .download-site-list,
    .download-update-status-list {
        gap: 6px;
        max-height: 166px;
        overflow-y: auto;
        padding-right: 2px;
    }
    .download-site-list {
        margin-top: 8px !important;
    }
    .download-site-list > div,
    .download-update-status-list > div {
        min-height: 0;
        padding: 7px;
        border-radius: 9px;
    }
    .download-site-list span,
    .download-update-status-list span {
        font-size: 12px;
        line-height: 1.35;
        word-break: break-word;
    }
    .download-update-status-list {
        margin: 8px 0 !important;
        max-height: 132px;
    }
    .download-update-status-list > div {
        align-items: flex-start;
        gap: 6px;
    }
    .download-update-status-list b {
        max-width: 52%;
        gap: 4px;
    }
    .download-update-status-list .badge {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 11px;
    }
    .download-update-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        margin-top: 8px !important;
    }
    .download-update-form label {
        font-size: 12px;
    }
    .download-update-form input,
    .download-update-form select,
    .download-update-form textarea {
        min-height: 34px;
        margin-top: 5px;
        padding: 7px 8px;
        font-size: 12px;
        border-radius: 8px;
    }
    .download-update-form textarea {
        min-height: 58px;
        line-height: 1.45;
    }
    .download-update-form.reject textarea {
        min-height: 50px;
    }
    .download-update-form .check {
        min-height: 34px;
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.25;
    }
    .download-update-form .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }
}

/* Admin shell refresh: drawer navigation and shared component skin for all backend pages. */
.admin-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,0) 230px),
        var(--bg);
}
.admin-side {
    background: #0f172a;
    border-right: 1px solid rgba(148, 163, 184, .16);
    box-shadow: 10px 0 30px rgba(15, 23, 42, .08);
}
.admin-brand {
    position: relative;
    gap: 12px;
    padding: 10px 8px 12px;
}
.admin-side-card {
    margin: 4px 6px 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}
.admin-side-card b,
.admin-side-card span {
    display: block;
}
.admin-side-card b {
    color: #fff;
    font-size: 14px;
}
.admin-side-card span {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}
.admin-nav {
    display: grid;
    gap: 8px;
}
.admin-nav a {
    min-height: 40px;
    border: 1px solid transparent;
}
.admin-nav a:hover {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.07);
}
.admin-nav a.active {
    background: #eaf1ff;
    color: #174ea6;
    border-color: rgba(22, 99, 245, .28);
    box-shadow: 0 8px 22px rgba(22, 99, 245, .16);
}
.admin-main .topbar {
    min-height: 74px;
    height: auto;
    padding: 12px 28px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}
.topbar-title {
    flex: 1 1 auto;
    min-width: 0;
}
.admin-main .content {
    padding: 26px 30px 44px;
}
.admin-main .card,
.admin-main .panel-block,
.admin-main .info-box {
    border-color: rgba(148, 163, 184, .28);
    border-radius: 10px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
}
.admin-main .page-head,
.admin-hero-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(22,99,245,.09), transparent 38%),
        linear-gradient(315deg, rgba(15,159,110,.08), transparent 42%),
        #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
}
.admin-hero-card > * {
    position: relative;
    z-index: 1;
}
.admin-hero-card h2 {
    margin: 8px 0 6px;
    font-size: 24px;
    line-height: 1.25;
}
.admin-main .eyebrow.plain {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid rgba(22, 99, 245, .14);
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.admin-main .table-wrap {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    background: #fff;
}
.admin-main .table-wrap table {
    border-collapse: separate;
    border-spacing: 0;
}
.admin-main th {
    background: #f3f7ff;
    color: #334155;
}
.admin-main th:first-child { border-top-left-radius: 10px; }
.admin-main th:last-child { border-top-right-radius: 10px; }
.admin-main tr:last-child td { border-bottom: 0; }
.admin-main tbody tr:hover,
.admin-main table tr:hover td {
    background: #fbfdff;
}
.admin-main input,
.admin-main select,
.admin-main textarea {
    min-height: 42px;
    border-color: rgba(148, 163, 184, .56);
    background: #fbfdff;
}
.admin-main .btn {
    box-shadow: 0 8px 18px rgba(22, 99, 245, .12);
}
.admin-main .btn.gray {
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, .22);
}
.admin-main .metric {
    border-top-width: 0;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
}
.admin-main .metric.accent-green { border-left-color: var(--green); }
.admin-main .metric.accent-amber { border-left-color: var(--amber); }
.admin-main .metric.accent-purple { border-left-color: var(--purple); }
.admin-main .metric.accent-red { border-left-color: var(--red); }
.admin-drawer-toggle,
.admin-drawer-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
}
.admin-drawer-toggle {
    display: none;
    place-items: center;
    gap: 4px;
    padding: 9px;
}
.admin-drawer-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}
.admin-drawer-close {
    display: none;
    margin-left: auto;
    font-size: 24px;
    line-height: 1;
}
.admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}
body.admin-drawer-lock {
    overflow: hidden;
}
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}
.admin-user-cell img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, .28);
}
.admin-user-cell strong,
.admin-user-cell span {
    display: block;
}
.admin-user-cell.large img {
    width: 58px;
    height: 58px;
}
.admin-filter-form {
    margin-top: 8px;
}
.admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.admin-metric-grid {
    margin-bottom: 16px;
}

@media (max-width: 980px) {
    .admin-shell {
        display: block !important;
    }
    .admin-shell .admin-side {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(86vw, 330px);
        height: 100vh !important;
        padding: 16px;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    .admin-shell.drawer-open .admin-side,
    .admin-shell.admin-drawer-open .admin-side,
    body.admin-drawer-lock #admin-shell-app .admin-side {
        transform: translateX(0) !important;
    }
    .admin-drawer-toggle,
    .admin-drawer-close {
        display: grid;
        place-items: center;
    }
    .admin-nav {
        display: grid !important;
        gap: 10px !important;
        overflow: visible !important;
        padding-bottom: 20px !important;
    }
    .admin-nav a {
        white-space: normal !important;
    }
    .admin-shell .nav-title {
        display: block !important;
    }
    .admin-main .topbar {
        position: sticky !important;
        top: 0;
        z-index: 40;
        padding: 10px 16px;
        background: rgba(255,255,255,.96);
    }
    .admin-main .topbar h1 {
        font-size: 20px;
        line-height: 1.25;
    }
    .admin-main .content {
        padding: 18px 16px 28px;
    }
    .admin-main .top-actions {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
    }
    .admin-main .top-actions .btn {
        width: auto;
        min-height: 36px;
        padding: 8px 12px;
    }
    .admin-name {
        display: none;
    }
    .admin-hero-card {
        flex-direction: column;
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .admin-main .content {
        padding: 12px 10px 20px;
    }
    .admin-main .topbar {
        gap: 10px;
    }
    .admin-main .top-actions .btn {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }
    .admin-main .card,
    .admin-hero-card {
        border-radius: 12px;
        padding: 13px;
    }
    .admin-main .table-wrap {
        border: 0;
        background: transparent;
    }
    .admin-main table:not(.keep-table) tr {
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }
    .admin-main table:not(.keep-table) td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }
    .admin-main table:not(.keep-table) td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.7;
    }
    .admin-main table:not(.keep-table) td:empty::before {
        content: "";
    }
    .admin-main table:not(.keep-table) td.actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .admin-main .toolbar form input,
    .admin-main .toolbar form select,
    .admin-main .toolbar form .btn,
    .admin-main .admin-filter-form input,
    .admin-main .admin-filter-form select,
    .admin-main .admin-filter-form .btn {
        width: 100% !important;
    }
}

/* User frontend final polish. Keep this layer last so pages never fall back to bare form styles. */
.user-shell {
    grid-template-columns: 276px minmax(0, 1fr) !important;
    background: #f5f7fb !important;
}
.user-side {
    border-right: 1px solid rgba(226, 232, 240, .92) !important;
    background: rgba(255, 255, 255, .98) !important;
}
.user-side .brand-title {
    color: #0f172a !important;
}
.user-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 9px 11px !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
}
.user-nav a::before {
    display: none !important;
}
.nav-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
}
.user-nav a:hover {
    color: #0f46b8 !important;
    background: #f8fbff !important;
    border-color: rgba(22, 99, 245, .14) !important;
}
.user-nav a.active {
    color: #0f46b8 !important;
    background: #eef4ff !important;
    border-color: rgba(22, 99, 245, .22) !important;
    box-shadow: none !important;
}
.user-nav a.active .nav-icon {
    background: #1663f5;
    color: #fff;
}
.user-main .topbar {
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}
.user-main .content {
    max-width: 1520px;
    margin: 0 auto;
}
.user-main .license-head::after,
.user-main .page-head::after {
    display: none !important;
}
.user-main .license-head,
.user-main .page-head {
    background: #fff !important;
}
.user-main .panel-block,
.user-main .card,
.user-main .license-card,
.user-main .download-card,
.user-main .order-card,
.user-main .ops-summary-card,
.user-main .service-card,
.user-main .info-box,
.user-main .quota-board {
    border-radius: 8px !important;
    border-color: rgba(148, 163, 184, .26) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .055) !important;
}
.user-main .toolbar {
    align-items: flex-start;
}
.user-main .toolbar .muted,
.user-main .page-head .muted,
.user-main .license-head .muted {
    max-width: 760px;
}
.user-main input,
.user-main select,
.user-main textarea {
    border-radius: 8px !important;
}
.user-main .btn {
    border-radius: 8px !important;
}
.commerce-hero {
    align-items: stretch;
}
.commerce-copy {
    border-radius: 8px !important;
    background: #111827 !important;
}
.commerce-copy h2 {
    max-width: 820px;
}
.service-card,
.ops-summary-card,
.metric {
    min-width: 0;
}
.app-ops-tabs {
    border-radius: 8px !important;
    border-color: rgba(148, 163, 184, .26) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05) !important;
}
.app-ops-tabs button {
    border-radius: 8px !important;
}

.vue-plan-page {
    display: grid !important;
    gap: 18px !important;
}
.vue-plan-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) !important;
    gap: 18px !important;
    align-items: stretch !important;
    padding: 26px !important;
    border: 1px solid rgba(148, 163, 184, .26) !important;
    border-radius: 8px !important;
    background: #111827 !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12) !important;
}
.vue-plan-hero-copy {
    display: flex !important;
    min-height: 178px !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.vue-plan-hero-copy span {
    width: fit-content !important;
    margin-bottom: 12px !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 8px !important;
    color: #bfdbfe !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
.vue-plan-hero-copy h2 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1.15 !important;
}
.vue-plan-hero-copy p {
    max-width: 760px !important;
    margin: 0 !important;
    color: #dbeafe !important;
    line-height: 1.8 !important;
}
.vue-plan-hero-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-content: center !important;
}
.vue-plan-hero-panel div {
    min-height: 104px !important;
    padding: 15px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .10) !important;
}
.vue-plan-hero-panel span,
.vue-plan-hero-panel strong {
    display: block !important;
    color: #fff !important;
}
.vue-plan-hero-panel span {
    margin-bottom: 12px !important;
    color: #dbeafe !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
.vue-plan-hero-panel strong {
    font-size: 27px !important;
    line-height: 1.1 !important;
}
.vue-plan-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}
.vue-plan-card {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07) !important;
}
.vue-plan-card form {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 22px !important;
}
.vue-card-top,
.vue-price-row,
.vue-switch-line,
.vue-pay,
.vue-period {
    display: flex !important;
}
.vue-card-top {
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}
.vue-card-top h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
}
.vue-plan-tag {
    display: inline-flex !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    background: #eef4ff !important;
    color: #1663f5 !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
.vue-plan-desc {
    min-height: 46px !important;
    margin: 0 !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    font-size: 14px !important;
}
.vue-price-row {
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.vue-price-row strong {
    color: #dc2626 !important;
    font-size: 38px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}
.vue-feature-list,
.vue-card-section,
.vue-period-grid,
.vue-pay-grid,
.vue-switch-box {
    display: grid !important;
}
.vue-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
.vue-feature-list span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 34px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
.vue-card-section {
    gap: 10px !important;
}
.vue-section-title {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}
.vue-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.vue-period {
    position: relative !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 64px !important;
    padding: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer !important;
}
.vue-period.active {
    border-color: #1663f5 !important;
    background: #eef4ff !important;
}
.vue-period input,
.vue-pay input,
.vue-switch-line input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
}
.vue-period b,
.vue-period small {
    display: block !important;
}
.vue-period b {
    color: #0f172a !important;
    font-size: 15px !important;
}
.vue-period small {
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}
.vue-period strong {
    color: #111827 !important;
    font-size: 17px !important;
}
.vue-pay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.vue-pay {
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #334155 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}
.vue-pay.active {
    border-color: #1663f5 !important;
    background: #eef4ff !important;
    color: #0f46b8 !important;
}
.vue-pay i {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    color: #fff !important;
    font-style: normal !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}
.vue-switch-box {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.vue-switch-line {
    position: relative !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    cursor: pointer !important;
}
.vue-switch-line span {
    position: relative !important;
    width: 42px !important;
    height: 24px !important;
    flex: 0 0 42px !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
}
.vue-switch-line span::after {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .22) !important;
}
.vue-switch-line input:checked + span {
    background: #1663f5 !important;
}
.vue-switch-line input:checked + span::after {
    transform: translateX(18px) !important;
}
.vue-remark {
    margin-top: auto !important;
}
.vue-buy-btn {
    min-height: 48px !important;
    font-size: 15px !important;
}

.front-shell {
    background: #f5f7fb !important;
}
.front-nav {
    max-width: 1220px !important;
}
.front-main {
    max-width: 1220px !important;
}
.home-hero-copy,
.home-visual,
.home-feature-grid article,
.home-flow article,
.home-plan-card {
    border-radius: 8px !important;
}
.home-hero-copy {
    background: #111827 !important;
}
.auth-shell {
    background: #f5f7fb !important;
}
.auth-hero {
    background: #111827 !important;
}
.auth-panel {
    border-radius: 8px !important;
}

@media (max-width: 980px) {
    .user-shell {
        display: block !important;
        padding-bottom: 0 !important;
    }
    .user-shell .user-side {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 90 !important;
        width: min(88vw, 330px) !important;
        height: 100vh !important;
        transform: translateX(-106%) !important;
        transition: transform .2s ease !important;
    }
    .user-shell .user-side.open,
    .user-shell.drawer-open .user-side {
        transform: translateX(0) !important;
    }
    .user-main .topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 40 !important;
        min-height: 64px !important;
        padding: 10px 16px !important;
    }
    .vue-plan-hero,
    .commerce-hero,
    .dashboard-split,
    .detail-grid,
    .create-license-layout,
    .license-grid,
    .service-grid,
    .ops-summary-grid,
    .ops-detail-grid,
    .home-hero,
    .home-flow-section,
    .home-feature-grid,
    .home-plan-grid {
        grid-template-columns: 1fr !important;
    }
    .vue-plan-hero-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .user-shell {
        padding-bottom: 78px !important;
    }
    .user-side {
        display: block !important;
    }
    .user-main .top-actions .btn.gray {
        display: none;
    }
    .user-main .top-actions .btn {
        width: auto !important;
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: 13px !important;
    }
    .user-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 60 !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
        min-height: 66px !important;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) !important;
        background: rgba(255,255,255,.97) !important;
        border-top: 1px solid rgba(226,232,240,.92) !important;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .08) !important;
    }
    .user-bottom-nav a {
        min-width: 0 !important;
        min-height: 52px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        border-radius: 8px !important;
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }
    .user-bottom-nav b {
        width: 24px !important;
        height: 24px !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        color: #64748b !important;
        font-size: 11px !important;
    }
    .user-bottom-nav a.active {
        color: #1663f5 !important;
        background: #eef4ff !important;
    }
    .user-bottom-nav a.active b {
        background: #1663f5 !important;
        color: #fff !important;
    }
    .vue-plan-hero,
    .vue-plan-card form {
        padding: 16px !important;
    }
    .vue-plan-hero-copy h2 {
        font-size: 26px !important;
    }
    .vue-plan-hero-panel,
    .vue-plan-grid,
    .vue-feature-list,
    .vue-period-grid,
    .vue-pay-grid {
        grid-template-columns: 1fr !important;
    }
    .vue-price-row strong {
        font-size: 32px !important;
    }
    .home-hero-copy,
    .home-visual {
        min-height: auto !important;
        padding: 18px !important;
    }
    .home-hero h1 {
        font-size: 32px !important;
    }
    .auth-panel,
    .auth-panel.wide {
        width: calc(100% - 24px) !important;
        margin: 12px auto 24px !important;
        padding: 20px !important;
    }
}

/* Final user-center override: keep the modern icon shell above older compatibility layers. */
.user-shell {
    grid-template-columns: 286px minmax(0, 1fr) !important;
    background:
        linear-gradient(180deg, #eef4ff 0, rgba(245, 247, 251, 0) 280px),
        #f5f7fb !important;
}
.user-side {
    padding: 20px 16px !important;
    background: #0f172a !important;
    border-right: 0 !important;
    box-shadow: 12px 0 34px rgba(15, 23, 42, .10) !important;
}
.user-side .brand-title { color: #fff !important; }
.user-side .brand-sub,
.user-nav-title { color: #94a3b8 !important; }
.user-side-card {
    margin: 18px 0 20px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.user-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    color: #cbd5e1 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.user-nav a::before { display: none !important; }
.user-nav a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.10) !important;
}
.user-nav a.active {
    color: #fff !important;
    background: #2563eb !important;
    border-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .34) !important;
}
.nav-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.08) !important;
    color: #cbd5e1 !important;
}
.user-nav a.active .nav-icon {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}
.nav-svg,
.btn-svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: currentColor !important;
}
.user-main .topbar {
    min-height: 76px !important;
    background: rgba(255, 255, 255, .88) !important;
    backdrop-filter: blur(14px);
}
.user-main .panel-block,
.user-main .card,
.user-main .license-card,
.user-main .download-card,
.user-main .order-card,
.user-main .ops-summary-card,
.user-main .service-card,
.user-main .info-box,
.user-main .quota-board,
.vue-plan-card,
.home-visual,
.home-feature-grid article,
.home-flow article,
.home-plan-card {
    border-radius: 8px !important;
    border-color: rgba(148, 163, 184, .22) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .065) !important;
}
.commerce-copy,
.home-hero-copy,
.auth-hero {
    background:
        linear-gradient(135deg, rgba(37,99,235,.42), transparent 48%),
        #0f172a !important;
}
.vue-plan-hero {
    background:
        linear-gradient(135deg, rgba(37,99,235,.72), transparent 52%),
        linear-gradient(315deg, rgba(15,118,110,.56), transparent 54%),
        #0f172a !important;
}
.vue-period.active,
.vue-pay.active {
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.26), 0 10px 24px rgba(37,99,235,.10) !important;
}
.platform-popup-mask {
    z-index: 160 !important;
}
.platform-popup {
    border-radius: 8px !important;
}
@media (max-width: 980px) {
    .user-shell {
        display: block !important;
        padding-bottom: 0 !important;
    }
    .user-shell .user-side {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 90 !important;
        width: min(88vw, 330px) !important;
        height: 100vh !important;
        transform: translateX(-106%) !important;
    }
    .user-shell .user-side.open,
    .user-shell.drawer-open .user-side {
        transform: translateX(0) !important;
    }
}
@media (max-width: 560px) {
    .user-shell { padding-bottom: 78px !important; }
    .platform-popup-mask {
        align-items: end !important;
        padding: 12px 12px 88px !important;
    }
    .platform-popup {
        width: 100% !important;
        max-height: calc(100vh - 112px) !important;
    }
    .platform-popup-image {
        max-height: 190px !important;
    }
    .platform-popup-body {
        padding: 18px !important;
    }
    .platform-popup h2 {
        font-size: 20px !important;
    }
    .platform-popup-actions .btn {
        flex: 1 1 130px !important;
    }
    .user-bottom-nav {
        background: rgba(15, 23, 42, .96) !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
    }
    .user-bottom-nav a { color: #cbd5e1 !important; }
    .user-bottom-nav b {
        background: rgba(255,255,255,.08) !important;
        color: #cbd5e1 !important;
    }
    .user-bottom-nav a.active {
        color: #fff !important;
        background: #2563eb !important;
    }
    .user-bottom-nav a.active b {
        background: rgba(255,255,255,.18) !important;
        color: #fff !important;
    }
}
