/* SQ License Shop — v17 White Blue Red */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-top: #d6e6f8;
    --bg: #dce8f5;
    --bg-bottom: #d0dff0;
    --surface: #ffffff;
    --surface-2: #edf3fb;
    --border: #c5d5ea;
    --border-strong: #a8bdd4;
    --text: #1e293b;
    --muted: #64748b;
    --dim: #94a3b8;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;
    --blue-border: #bfdbfe;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-soft: #fef2f2;
    --accent: var(--blue);
    --accent-dark: var(--blue-dark);
    --accent-soft: var(--blue-soft);
    --accent-border: var(--blue-border);
    --cta: var(--red);
    --cta-dark: var(--red-dark);
    --cta-soft: var(--red-soft);
    --ink: #1e40af;
    --ok: #16a34a;
    --ok-soft: #f0fdf4;
    --err: var(--red);
    --err-soft: var(--red-soft);
    --warn: #d97706;
    --alipay: #1677ff;
    --wechat: #07c160;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --font: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    --shadow-md: 0 12px 36px rgba(37, 99, 235, 0.14);
    --header-h: 60px;
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg) 42%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.sq-bg, .sq-grid-bg { display: none; }

/* Header */
.sq-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.06);
}
.sq-header-inner {
    max-width: var(--max); margin: 0 auto;
    height: 100%; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sq-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 15px;
}
.sq-brand-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--blue); color: #fff;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800;
}
.sq-brand-sub { display: block; font-size: 10px; font-weight: 500; color: var(--dim); }

.sq-nav { display: flex; align-items: center; gap: 4px; }
.sq-nav a, .sq-nav button {
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--muted);
    background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.sq-nav a:hover, .sq-nav button:hover { color: var(--text); background: var(--surface-2); }
.sq-nav .sq-nav-active { color: var(--blue) !important; background: var(--blue-soft); }
.sq-nav .sq-nav-cta {
    background: var(--red); color: #fff !important; font-weight: 600;
    margin-left: 4px;
}
.sq-nav .sq-nav-cta:hover { background: var(--red-dark); color: #fff !important; }
.sq-nav .sq-balance {
    padding: 5px 10px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); font-size: 13px; font-weight: 600;
}
.sq-menu-btn {
    display: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.sq-mobile-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px;
    flex-direction: column; gap: 4px;
}
.sq-mobile-nav.open { display: flex; }
.sq-mobile-nav a, .sq-mobile-nav button {
    padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px;
    color: var(--muted); background: transparent; border: none; text-align: left; font-family: inherit;
}
.sq-nav-form { display: inline; }

.sq-nav-dropdown { position: relative; }
.sq-nav-dropdown-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--muted);
    background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.sq-nav-dropdown-btn:hover,
.sq-nav-dropdown.open .sq-nav-dropdown-btn { color: var(--text); background: var(--surface-2); }
.sq-nav-dropdown-btn svg { transition: transform .15s; opacity: .7; }
.sq-nav-dropdown.open .sq-nav-dropdown-btn svg { transform: rotate(180deg); }
.sq-nav-dropdown-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    width: min(360px, calc(100vw - 48px));
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 8px; z-index: 120;
}
.sq-nav-dropdown.open .sq-nav-dropdown-panel { display: block; }
.sq-nav-feature-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: background .12s;
}
.sq-nav-feature-item:hover { background: var(--surface-2); }
.sq-nav-feature-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--blue-soft); display: grid; place-items: center;
    font-size: 16px; flex-shrink: 0;
}
.sq-nav-feature-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.sq-nav-feature-item small { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; line-height: 1.4; }
.sq-nav-dropdown-section { padding: 4px 0; }
.sq-nav-dropdown-label {
    display: block; padding: 6px 12px 4px;
    font-size: 10px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--dim);
}
.sq-nav-dropdown-divider {
    height: 1px; margin: 6px 8px; background: var(--border);
}
.sq-nav-feature-ext .sq-nav-feature-icon { background: #fff7ed; }
.sq-nav-ext {
    font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 7px 10px; border-radius: var(--radius-sm);
}
.sq-nav-ext:hover, .sq-nav-ext.sq-nav-active { color: var(--blue); background: var(--blue-soft); }
.sq-nav-pricing { font-weight: 600; }

/* Layout */
.sq-main { max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }
.sq-main-narrow { max-width: 480px; }
.sq-main-medium { max-width: 640px; }
.sq-main-legal { max-width: 760px; }
.sq-main-checkout { max-width: 960px; margin-left: auto; margin-right: auto; }

.sq-legal-page { padding: 32px 0 48px; }
.sq-legal-head { margin-bottom: 28px; }
.sq-legal-head h1 { font-size: 28px; font-weight: 800; margin: 8px 0 0; letter-spacing: -.02em; }
.sq-legal-meta { font-size: 13px; color: var(--dim); margin-top: 8px; }
.sq-legal-body {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 28px 32px; line-height: 1.75; color: var(--text);
}
.sq-legal-body h2 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.sq-legal-body h2:first-child { margin-top: 0; }
.sq-legal-body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sq-legal-foot {
    display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px;
    font-size: 13px;
}
.sq-legal-foot a { color: var(--blue); font-weight: 600; text-decoration: none; }
.sq-legal-agree {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.sq-legal-agree input { margin-top: 3px; flex-shrink: 0; }
.sq-legal-agree a { color: var(--blue); font-weight: 600; }
.sq-auth-legal-foot {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--dim); text-align: center;
}
.sq-auth-legal-foot a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ========== Homepage ========== */
.sq-home-hero {
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: transparent;
}
.sq-home-subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 100%;
}
.sq-home-subnav-dev {
    border-left: 1px solid var(--border);
    margin-left: auto;
}
@media (max-width: 768px) {
    .sq-home-subnav { flex-direction: column; }
    .sq-home-subnav-dev { border-left: none; border-top: 1px solid var(--border); margin-left: 0; }
}
.sq-home-subnav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sq-home-subnav-inner::-webkit-scrollbar { display: none; }
.sq-home-subnav-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 12px 14px 12px 0;
    margin-right: 4px;
}
.sq-home-subnav-item {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .12s, border-color .12s;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.sq-home-subnav-item strong { font-size: 13px; font-weight: 700; color: inherit; }
.sq-home-subnav-item small { font-size: 10px; font-weight: 500; color: var(--dim); }
.sq-home-subnav-item:hover { color: var(--blue); }
.sq-home-subnav-item:hover small { color: var(--muted); }
.sq-home-subnav-item.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.sq-home-subnav-item.active small { color: var(--blue); opacity: .75; }
.sq-home-subnav-ext {
    color: var(--dim);
}
.sq-home-subnav-ext:hover { color: var(--blue); }
.sq-home-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(220, 38, 38, 0.06), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    pointer-events: none;
}
.sq-home-hero-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px 56px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.sq-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-dark);
}
.sq-home-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.sq-home-hero-copy h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    color: var(--text);
}
.sq-home-hero-copy h1 span {
    color: var(--blue);
    font-weight: 800;
}
.sq-home-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}
.sq-home-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.sq-home-trustline {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--dim);
}
.sq-home-trustline li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sq-home-trustline li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
}

.sq-home-spec-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.sq-home-spec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.sq-home-spec-head strong {
    font-size: 15px;
    font-weight: 700;
}
.sq-home-spec-head span {
    font-size: 12px;
    color: var(--dim);
}
.sq-home-spec-list {
    list-style: none;
}
.sq-home-spec-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}
.sq-home-spec-list li:last-child { border-bottom: none; }
.sq-home-spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.sq-home-spec-list em {
    display: block;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.sq-home-spec-list strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.sq-home-section {
    margin-bottom: 64px;
}
.sq-home-section-head {
    margin-bottom: 32px;
}
.sq-home-section-head h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.sq-home-section-head p {
    font-size: 15px;
    color: var(--muted);
}
.sq-home-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.sq-home-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.sq-home-flow::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}
.sq-home-flow-step {
    padding: 28px 24px 32px;
    position: relative;
    border-right: 1px solid var(--border);
}
.sq-home-flow-step:last-child { border-right: none; }
.sq-home-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--blue);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.sq-home-flow-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sq-home-flow-step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.sq-home-capabilities {
    padding: 48px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.sq-home-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sq-home-cap {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.sq-home-cap:hover {
    background: var(--bg);
    border-color: var(--border);
}
.sq-home-cap-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-border);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.sq-home-cap h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sq-home-cap p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.sq-home-platform {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    border-radius: 20px;
}
.sq-home-platform-copy h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.sq-home-platform-copy p {
    font-size: 15px;
    color: #bfdbfe;
    line-height: 1.7;
    max-width: 400px;
}
.sq-home-platform-copy .sq-home-kicker {
    color: #93c5fd;
}
.sq-home-platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.sq-home-platform-item {
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sq-home-platform-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.sq-home-platform-item span {
    font-size: 13px;
    color: #bfdbfe;
    line-height: 1.5;
}

.sq-home-cta-band {
    margin-bottom: 8px;
}
.sq-home-cta-band-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 2px solid var(--red);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.sq-home-cta-band h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}
.sq-home-cta-band p {
    font-size: 14px;
    color: var(--muted);
}

/* Features intro page */
.sq-features-page .sq-main { padding-top: 0; }
.sq-features-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.sq-features-hero-inner {
    max-width: var(--max); margin: 0 auto; padding: 48px 24px 40px;
}
.sq-features-hero h1 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2;
    letter-spacing: -0.03em; margin-bottom: 14px; color: var(--text);
}
.sq-features-hero h1 span { color: var(--blue); }
.sq-features-lead {
    font-size: 16px; line-height: 1.7; color: var(--muted);
    max-width: 560px; margin-bottom: 22px;
}
.sq-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.sq-features-card {
    padding: 22px 20px; border-radius: 16px; background: #fff;
    border: 1px solid var(--border); transition: box-shadow .15s, border-color .15s;
}
.sq-features-card:hover {
    border-color: var(--blue-border); box-shadow: var(--shadow-md);
}
.sq-features-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--blue-soft); color: var(--blue); margin-bottom: 14px;
}
.sq-features-card h3 {
    font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--text);
}
.sq-features-card > p {
    font-size: 13px; line-height: 1.65; color: var(--muted); margin-bottom: 12px;
}
.sq-features-list {
    margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.7; color: var(--dim);
}
.sq-features-list li { margin-bottom: 4px; }
.sq-features-list a { color: var(--blue); text-decoration: none; font-weight: 600; }
.sq-features-list a:hover { text-decoration: underline; }
.sq-features-flow-wrap { padding-top: 8px; }
.sq-features-flow { grid-template-columns: repeat(3, 1fr); }
.sq-features-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero (legacy — other pages) */
.sq-hero {
    max-width: var(--max); margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.sq-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid var(--accent-border);
    font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 20px;
}
.sq-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok);
}
.sq-hero h1 {
    font-size: clamp(28px, 4.5vw, 42px); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px;
}
.sq-hero h1 em {
    font-style: normal; color: var(--accent);
}
.sq-hero-lead { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; max-width: 520px; }
.sq-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sq-hero-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.sq-hero-card-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.sq-hero-card-row:last-child { border-bottom: none; }
.sq-hero-card-row span { color: var(--muted); }
.sq-hero-card-row strong { color: var(--text); font-weight: 600; }

/* Section */
.sq-section { margin-bottom: 56px; }
.sq-section-head { margin-bottom: 24px; }
.sq-section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.sq-section-head p { font-size: 14px; color: var(--muted); }
.sq-section-head-center { text-align: center; }

/* Process */
.sq-process { margin-bottom: 56px; }
.sq-process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.sq-process-step {
    padding: 24px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sq-process-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12px; font-weight: 800; margin-bottom: 12px;
}
.sq-process-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sq-process-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Features */
.sq-bento {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px;
}
.sq-bento-item {
    padding: 22px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sq-bento-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--border);
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800; color: var(--accent);
    margin-bottom: 14px;
}
.sq-bento-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sq-bento-item span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Pricing */
.sq-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sq-plan {
    display: flex; flex-direction: column;
    padding: 28px; background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.sq-plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sq-plan.featured { border-color: var(--blue); box-shadow: var(--shadow-md); }
.sq-plan-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; width: fit-content;
}
.sq-plan-tag-pop { background: var(--red-soft); color: var(--red); border: 1px solid #fecaca; }
.sq-plan-tag-pro { background: var(--surface-2); color: var(--muted); }
.sq-plan h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.sq-plan-desc { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.6; margin-bottom: 20px; }
.sq-plan-price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.sq-plan-price small { font-size: 14px; font-weight: 500; color: var(--dim); }
.sq-plan-meta { font-size: 12px; color: var(--dim); margin: 6px 0 18px; }
.sq-plan-features { list-style: none; margin-bottom: 22px; }
.sq-plan-features li {
    font-size: 13px; color: var(--muted); padding: 5px 0 5px 20px; position: relative;
}
.sq-plan-features li::before {
    content: ""; position: absolute; left: 0; top: 11px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
}
.sq-plan-highlight { color: var(--ok) !important; font-weight: 600; }

/* Trust */
.sq-trust-v3 {
    padding: 40px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 32px;
}
.sq-trust-v3 h2 { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 28px; }
.sq-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sq-trust-item { padding: 4px 8px; }
.sq-trust-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800; margin-bottom: 12px;
}
.sq-trust-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.sq-trust-item p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.sq-trust {
    display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
    padding: 20px; font-size: 13px; color: var(--dim);
    border-top: 1px solid var(--border);
}

/* Buttons */
.sq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; font-size: 14px; font-weight: 600;
    font-family: inherit; transition: all .15s; text-decoration: none;
}
.sq-btn-primary { background: var(--red); color: #fff; }
.sq-btn-primary:hover { background: var(--red-dark); color: #fff; }
.sq-btn-blue { background: var(--blue); color: #fff; }
.sq-btn-blue:hover { background: var(--blue-dark); color: #fff; }
.sq-btn-ghost { background: var(--surface); color: var(--blue); border: 1px solid var(--blue-border); }
.sq-btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.sq-btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.sq-btn-accent { background: var(--accent); color: #fff; }
.sq-btn-alipay { background: var(--alipay); color: #fff; }
.sq-btn-wechat { background: var(--wechat); color: #fff; }
.sq-btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }
.sq-btn-inline { width: auto; }

/* Cards & forms */
.sq-card {
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
}
.sq-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sq-card .sq-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.sq-field { margin-bottom: 16px; }
.sq-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sq-field input, .sq-field textarea {
    width: 100%; padding: 11px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit;
    transition: border-color .15s, box-shadow .15s; outline: none;
}
.sq-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sq-field-hint { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; }
.sq-field-icon { position: relative; }
.sq-field-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.sq-field-icon input { padding-left: 40px; }
.sq-field-icon:focus-within svg { color: var(--accent); }

.sq-code-row { display: flex; gap: 10px; }
.sq-code-input { flex: 1; min-width: 0; }
.sq-btn-code {
    width: auto; flex-shrink: 0; padding: 0 16px; white-space: nowrap;
    background: var(--surface); color: var(--accent); border: 1px solid var(--accent-border);
}
.sq-btn-code:disabled { opacity: .5; cursor: not-allowed; }

.sq-reg-mode {
    display: flex; gap: 4px; margin-bottom: 20px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.sq-reg-mode-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 12px; border: none; border-radius: 999px;
    background: transparent; color: var(--muted);
    font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.sq-reg-mode-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sq-reg-mode-btn.active { color: var(--accent); }

/* Alerts */
.sq-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.sq-alert-ok { background: var(--ok-soft); border-color: #a7f3d0; color: var(--ok); }
.sq-alert-err { background: var(--err-soft); border-color: #fecaca; color: var(--err); }
.sq-alert-info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

/* Footer */
.sq-footer-v3 {
    border-top: 1px solid var(--border);
    padding: 40px 24px 24px;
    margin-top: 16px;
    background: var(--surface);
    box-shadow: 0 -8px 24px rgba(37, 99, 235, 0.06);
}
.sq-footer-inner {
    max-width: var(--max); margin: 0 auto 20px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.sq-footer-brand strong { font-size: 15px; display: block; margin-bottom: 4px; }
.sq-footer-brand p { font-size: 13px; color: var(--muted); }
.sq-footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.sq-footer-links a { color: var(--muted); }
.sq-footer-links a:hover { color: var(--accent); }
.sq-footer-copy { text-align: center; font-size: 12px; color: var(--dim); max-width: var(--max); margin: 0 auto; }

/* Dashboard */
.sq-dash { padding-top: 32px; }
.sq-dash-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
    padding: 24px 28px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sq-dash-user { display: flex; align-items: center; gap: 16px; }
.sq-dash-avatar {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--blue); color: #fff;
    display: grid; place-items: center; font-size: 22px; font-weight: 800;
}
.sq-dash-welcome { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.sq-dash-user h1 { font-size: 22px; font-weight: 800; margin: 2px 0; }
.sq-dash-meta { font-size: 13px; color: var(--muted); }
.sq-dash-wallet {
    text-align: right; padding: 16px 20px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.sq-dash-wallet-label { font-size: 12px; color: var(--dim); }
.sq-dash-wallet-amount { display: block; font-size: 26px; font-weight: 800; color: var(--text); margin: 4px 0 10px; }

.sq-dash-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.sq-chip {
    font-size: 12px; padding: 4px 10px; border-radius: 6px;
    background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.sq-chip-muted { background: var(--surface-2); color: var(--dim); border: 1px solid var(--border); }

.sq-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.sq-metric {
    padding: 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; align-items: center; gap: 14px;
}
.sq-metric-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--border);
    display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent);
    flex-shrink: 0;
}
.sq-metric strong { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.sq-metric span { font-size: 12px; color: var(--dim); }
.sq-metric-highlight strong { color: var(--accent); }

.sq-tabs {
    display: flex; gap: 4px; margin-bottom: 20px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); width: fit-content;
}
.sq-tab {
    padding: 9px 18px; border: none; border-radius: var(--radius-sm);
    background: transparent; color: var(--muted);
    font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.sq-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sq-panel { display: none; }
.sq-panel.active { display: block; }
.sq-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sq-panel-head h2 { font-size: 17px; font-weight: 700; }
.sq-panel-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.sq-list-item {
    display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
    padding: 18px 20px; margin-bottom: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.sq-list-key { font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent); word-break: break-all; }
.sq-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sq-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.sq-tag-ok { background: var(--ok-soft); color: var(--ok); }
.sq-tag-green { background: var(--ok-soft); color: var(--ok); }
.sq-tag-blue { background: #eff6ff; color: #2563eb; }
.sq-tag-warn { background: #fffbeb; color: var(--warn); }
.sq-tag-err { background: var(--err-soft); color: var(--err); }
.sq-tag-muted { background: var(--surface-2); color: var(--dim); }
.sq-info-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.sq-info-item span { display: block; font-size: 11px; color: var(--dim); }
.sq-info-item { font-size: 13px; }
.sq-list-actions { display: flex; flex-direction: column; gap: 6px; }
.sq-empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.sq-empty h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sq-empty p { font-size: 14px; color: var(--muted); }

.sq-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sq-settings-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sq-settings-head { display: flex; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sq-settings-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent-soft); display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: var(--accent);
}
.sq-settings-head h2 { font-size: 15px; font-weight: 700; }

.sq-pay-note { font-size: 12px; color: var(--dim); margin-top: 16px; line-height: 1.6; }

.sq-pay-timer {
    padding: 14px 16px; margin-bottom: 16px;
    background: var(--red-soft); border: 1px solid #fecaca; border-radius: var(--radius-sm);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.sq-pay-timer-label { font-size: 12px; color: var(--muted); }
.sq-pay-timer strong { font-size: 22px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.sq-pay-timer-hint { font-size: 12px; color: var(--dim); width: 100%; }
.sq-pay-timer-expired strong { color: var(--dim); }

/* Checkout page */
.sq-pay-main { padding-bottom: 56px; }
.sq-page-pay-body { background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 45%, #fff 100%); }

.sq-checkout {
    width: 100%; max-width: 920px; margin: 0 auto; padding: 8px 16px 0;
}
.sq-checkout-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.sq-checkout-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    text-decoration: none; transition: color .15s;
}
.sq-checkout-back:hover { color: var(--blue); }

.sq-checkout-steps {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; color: var(--dim);
}
.sq-checkout-steps li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.sq-checkout-steps li span {
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800;
    background: var(--surface-2); color: var(--dim);
    border: 1px solid var(--border); flex-shrink: 0;
}
.sq-checkout-steps li.is-done { color: var(--muted); }
.sq-checkout-steps li.is-done span {
    background: var(--blue-soft); color: var(--blue); border-color: var(--blue-border);
}
.sq-checkout-steps li.is-active {
    color: var(--text); background: #fff;
    box-shadow: 0 1px 4px rgba(15,23,42,.06);
}
.sq-checkout-steps li.is-active span {
    background: var(--blue); color: #fff; border-color: var(--blue);
}

.sq-checkout-card {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(148,163,184,.35);
    background: #fff;
    box-shadow: 0 16px 40px rgba(15,23,42,.07);
}

.sq-checkout-summary {
    padding: 26px 24px 22px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0; display: flex; flex-direction: column;
    writing-mode: horizontal-tb;
}
.sq-checkout-summary-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 18px;
}
.sq-checkout-type {
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.12); color: #f8fafc;
    border: 1px solid rgba(255,255,255,.18); white-space: nowrap;
}
.sq-checkout--renewal .sq-checkout-type { background: rgba(59,130,246,.25); border-color: rgba(147,197,253,.4); }
.sq-checkout--recharge .sq-checkout-type { background: rgba(34,197,94,.2); border-color: rgba(134,239,172,.35); }
.sq-checkout-secure {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap;
}
.sq-checkout-title {
    font-size: 20px; font-weight: 800; color: #fff;
    margin: 0 0 4px; letter-spacing: -.02em;
}
.sq-checkout-product {
    font-size: 14px; color: #94a3b8; margin: 0 0 20px; line-height: 1.5;
    word-break: break-word;
}
.sq-checkout-amount { margin-bottom: 18px; }
.sq-checkout-amount-label {
    display: block; font-size: 11px; font-weight: 600;
    letter-spacing: .04em; color: #64748b; margin-bottom: 4px;
}
.sq-checkout-price {
    font-size: 42px; font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1; margin: 0;
}
.sq-checkout-price small {
    font-size: 22px; font-weight: 700; color: #94a3b8; margin-right: 2px;
}

.sq-checkout-specs {
    margin: 0 0 20px; padding: 0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; overflow: hidden; flex: 1;
}
.sq-checkout-specs > div {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 10px 14px; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sq-checkout-specs > div:last-child { border-bottom: 0; }
.sq-checkout-specs dt { margin: 0; color: #94a3b8; font-weight: 500; flex-shrink: 0; }
.sq-checkout-specs dd {
    margin: 0; font-weight: 600; color: #f1f5f9; text-align: right;
    word-break: break-word;
}
.sq-checkout-specs dd code {
    font-family: ui-monospace, monospace; font-size: 11px;
    background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 4px;
}
.sq-checkout-specs dd.is-highlight { color: #86efac; }

.sq-checkout-meta {
    margin-top: auto; padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,.15);
    display: flex; flex-direction: column; gap: 3px;
    font-size: 11px; color: #64748b;
    font-family: ui-monospace, monospace; word-break: break-all;
}

.sq-checkout-pay {
    padding: 24px 28px; background: #fff;
    display: flex; flex-direction: column; gap: 0;
    min-width: 0; width: 100%;
    writing-mode: horizontal-tb;
    box-sizing: border-box;
}
.sq-checkout-alert { margin-bottom: 14px; }

.sq-checkout-timer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-bottom: 16px;
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
    width: 100%; box-sizing: border-box;
}
.sq-checkout-timer-left {
    display: flex; align-items: flex-start; gap: 10px;
    flex: 1; min-width: 0;
}
.sq-checkout-timer-left svg { flex-shrink: 0; color: #ea580c; margin-top: 2px; }
.sq-checkout-timer-left div { min-width: 0; }
.sq-checkout-timer-left strong {
    display: block; font-size: 13px; font-weight: 700; color: #9a3412;
    line-height: 1.3;
}
.sq-checkout-timer-left span {
    display: block; font-size: 11px; color: #c2410c; margin-top: 2px;
    line-height: 1.4; word-break: break-word;
}
.sq-checkout-timer-value {
    font-style: normal; font-size: 28px; font-weight: 800;
    font-variant-numeric: tabular-nums; color: #ea580c;
    line-height: 1; flex-shrink: 0; white-space: nowrap;
}
.sq-checkout-timer.is-expired {
    background: var(--surface-2); border-color: var(--border);
}
.sq-checkout-timer.is-expired .sq-checkout-timer-left svg,
.sq-checkout-timer.is-expired .sq-checkout-timer-left strong,
.sq-checkout-timer.is-expired .sq-checkout-timer-left span,
.sq-checkout-timer.is-expired .sq-checkout-timer-value { color: var(--dim); }

.sq-checkout-wallet {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 16px; margin-bottom: 18px;
    background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
    width: 100%; box-sizing: border-box;
}
.sq-checkout-wallet-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.sq-checkout-wallet strong {
    margin-left: auto; font-size: 18px; font-weight: 800; color: var(--blue-dark);
    white-space: nowrap;
}
.sq-checkout-wallet.is-low { background: #fff1f2; border-color: #fecaca; }
.sq-checkout-wallet.is-low strong { color: var(--red); }
.sq-checkout-wallet-tag {
    font-size: 11px; font-weight: 700; color: var(--red);
    padding: 2px 8px; border-radius: 999px; background: #fff;
}

.sq-checkout-methods { width: 100%; min-width: 0; }
.sq-checkout-methods h2 {
    font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--text);
}
.sq-checkout-method-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sq-checkout-method-list form { margin: 0; width: 100%; display: block; }
.sq-checkout-method {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; box-sizing: border-box;
    border: 1.5px solid var(--border); border-radius: 12px;
    background: #fff; cursor: pointer; font-family: inherit; text-align: left;
    transition: border-color .15s, box-shadow .15s;
    position: relative; min-width: 0;
    writing-mode: horizontal-tb;
}
.sq-checkout-method:hover {
    border-color: var(--blue-border);
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}
.sq-checkout-method.is-balance:hover { border-color: var(--blue); }
.sq-checkout-method.is-alipay:hover { border-color: var(--alipay); }
.sq-checkout-method.is-wechat:hover { border-color: var(--wechat); }
.sq-checkout-method.is-sim { border-style: dashed; background: #fafafa; }
.sq-checkout-method-tag {
    position: absolute; top: -8px; right: 12px;
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: var(--blue); color: #fff;
}
.sq-checkout-method-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 15px; font-weight: 800; color: #fff;
}
.sq-checkout-method.is-balance .sq-checkout-method-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sq-checkout-method.is-alipay .sq-checkout-method-icon { background: linear-gradient(135deg, #4096ff, #1677ff); }
.sq-checkout-method.is-wechat .sq-checkout-method-icon { background: linear-gradient(135deg, #34d399, #07c160); }
.sq-checkout-method.is-sim .sq-checkout-method-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.sq-checkout-method-text { flex: 1; min-width: 0; overflow: hidden; }
.sq-checkout-method-text strong {
    display: block; font-size: 14px; font-weight: 700; margin-bottom: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-checkout-method-text small {
    display: block; font-size: 12px; color: var(--dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-checkout-method-amt {
    font-size: 14px; font-weight: 700; color: var(--blue);
    flex-shrink: 0; white-space: nowrap;
}
.sq-checkout-method-go { flex-shrink: 0; color: var(--dim); }

.sq-checkout-note {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--dim); line-height: 1.65;
    word-break: break-word;
}
.sq-checkout-note svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

@media (max-width: 768px) {
    .sq-checkout-top { flex-direction: column; align-items: stretch; }
    .sq-checkout-steps { justify-content: center; flex-wrap: wrap; }
    .sq-checkout-card { grid-template-columns: 1fr; }
    .sq-checkout-pay { padding: 20px 16px; }
    .sq-checkout-price { font-size: 36px; }
    .sq-checkout-timer { flex-wrap: wrap; }
    .sq-checkout-timer-value { font-size: 24px; }
}

/* legacy recharge checkout head */
.sq-checkout-head { margin-bottom: 28px; }
.sq-checkout-head h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.sq-checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }

/* legacy pay aliases (wechat page etc.) */
.sq-pay-page { max-width: 920px; margin: 0 auto; padding: 8px 16px 0; }
.sq-pay-hero {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 22px; position: relative;
}
.sq-pay-hero-icon {
    width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
    border: 1px solid #86efac; color: #07c160;
    box-shadow: 0 4px 14px rgba(7, 193, 96, .12);
}
.sq-pay-hero-text { flex: 1; min-width: 0; }
.sq-pay-kicker {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #15803d; background: #f0fdf4;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.sq-pay-hero h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.sq-pay-hero-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.sq-pay-key {
    font-family: ui-monospace, monospace; font-size: 12px; font-weight: 600;
    background: rgba(37, 99, 235, .08); padding: 2px 8px; border-radius: 6px;
}
.sq-pay-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    text-decoration: none; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    flex-shrink: 0;
}
.sq-pay-back:hover { border-color: var(--blue-border); color: var(--blue); }
.sq-pay-order {
    padding: 28px 24px; display: flex; flex-direction: column;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #1e3a5f 100%);
    color: #e2e8f0;
}
.sq-pay-order-top {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.sq-pay-order-label {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .06em;
}
.sq-pay-type {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    background: rgba(255,255,255,.12); color: #f8fafc; border: 1px solid rgba(255,255,255,.18);
}
.sq-pay-type--green { background: rgba(34,197,94,.2); border-color: rgba(134,239,172,.35); }
.sq-pay-price {
    font-size: 44px; font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1; margin: 12px 0 22px;
}
.sq-pay-price small { font-size: 24px; font-weight: 700; color: #94a3b8; margin-right: 2px; }
.sq-pay-details {
    list-style: none; margin: 0; padding: 0;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; overflow: hidden;
}
.sq-pay-details li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sq-pay-details li:last-child { border-bottom: 0; }
.sq-pay-details span { color: #94a3b8; }
.sq-pay-details strong { font-weight: 600; color: #f1f5f9; text-align: right; }

/* Balance recharge */
.sq-recharge { max-width: 640px; }
.sq-recharge-grid {
    display: grid; gap: 20px;
    padding: 28px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sq-recharge-balance {
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.sq-recharge-balance-amount {
    display: block; font-size: 36px; font-weight: 800;
    color: var(--red); margin: 8px 0;
}
.sq-recharge-balance-hint { font-size: 13px; color: var(--dim); margin: 0; }
.sq-recharge-presets {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px; margin-bottom: 18px;
}
.sq-recharge-preset {
    padding: 12px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 700;
    cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.sq-recharge-preset:hover { border-color: var(--red); color: var(--red); }
.sq-recharge-preset.active {
    border-color: var(--red); background: #fff5f5; color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}
.sq-recharge-input-wrap {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.sq-recharge-input-wrap:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.sq-recharge-currency { font-size: 18px; font-weight: 700; color: var(--dim); }
.sq-recharge-input-wrap input {
    flex: 1; border: 0; background: transparent; padding: 12px 0;
    font-size: 22px; font-weight: 700; color: var(--text);
}
.sq-recharge-input-wrap input:focus { outline: none; }
.sq-recharge-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.sq-recharge-note { font-size: 12px; color: var(--dim); margin: 16px 0 0; line-height: 1.6; }
.sq-btn-recharge { border-color: #93c5fd; color: #2563eb; }
.sq-btn-recharge:hover { background: #eff6ff; border-color: #60a5fa; }

.sq-label { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.sq-order-no { font-family: ui-monospace, monospace; font-size: 12px; color: var(--dim); }

.sq-balance-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; margin-bottom: 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px;
}
.sq-balance-bar strong { color: var(--text); font-size: 18px; font-weight: 700; }
.sq-balance-warn { font-size: 12px; color: var(--err); }

.sq-pay-methods-v3 { display: flex; flex-direction: column; gap: 10px; }
.sq-pay-btn {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-family: inherit; cursor: pointer; text-align: left;
    transition: border-color .15s;
}
.sq-pay-btn:hover { border-color: var(--accent); }
.sq-pay-btn strong { display: block; font-size: 14px; }
.sq-pay-btn small { font-size: 12px; color: var(--dim); }
.sq-pay-btn-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
}
.sq-pay-balance .sq-pay-btn-icon { background: var(--blue); }
.sq-pay-alipay .sq-pay-btn-icon { background: var(--alipay); }
.sq-pay-wechat .sq-pay-btn-icon { background: var(--wechat); }

.sq-order-box {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.sq-order-box .sq-amount { font-size: 32px; font-weight: 800; }

/* Success */
.sq-success-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--ok-soft); border: 2px solid var(--ok);
    display: grid; place-items: center; font-size: 24px; color: var(--ok);
}
.sq-license-reveal {
    text-align: center; padding: 24px; margin: 20px 0;
    background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius);
}
.sq-license-reveal .sq-key-value {
    display: block; margin-top: 10px; font-size: 18px; font-weight: 700;
    font-family: ui-monospace, monospace; color: var(--accent); word-break: break-all;
}

/* Auth */
.sq-auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.sq-auth-brand {
    padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
    background: var(--surface); border-right: 1px solid var(--border);
}
.sq-auth-brand-grid { display: none; }
.sq-auth-brand-main { margin-top: 48px; }
.sq-auth-brand h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 16px 0; }
.sq-auth-brand p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 380px; }
.sq-auth-perks { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.sq-auth-perks li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.sq-auth-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.sq-auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--bg); }
.sq-auth-card {
    width: 100%; max-width: 400px; padding: 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.sq-auth-tabs {
    display: flex; gap: 4px; margin-bottom: 24px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.sq-auth-tabs a {
    flex: 1; text-align: center; padding: 10px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--muted);
}
.sq-auth-tabs a.active { background: var(--blue); color: #fff; }
.sq-auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.sq-auth-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--dim); }

.sq-doc-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}

code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px; padding: 2px 6px; border-radius: 4px;
    background: var(--surface-2); color: var(--accent); border: 1px solid var(--border);
}

.text-ok { color: var(--ok); }

.sq-acc-chip-red { background: var(--red-soft); color: var(--red); border-color: #fecaca; }
.sq-acc-wallet-v2 { text-align: left; min-width: 240px; }
.sq-acc-wallet-sub { font-size: 11px; color: var(--dim); margin-top: 4px; }

/* ========== Ticket Center v2 ========== */
.sq-tk-page-wrap .sq-main { max-width: 960px; }

.sq-tk-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue-soft), var(--surface));
    border: 1px solid var(--blue-border); border-radius: 14px;
}
.sq-tk-banner-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--blue); color: #fff; display: grid; place-items: center;
}
.sq-tk-banner strong { display: block; font-size: 14px; margin-bottom: 2px; }
.sq-tk-banner p { font-size: 12px; color: var(--muted); margin: 0; }

.sq-tk-steps {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding: 0 8px;
}
.sq-tk-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.sq-tk-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--blue-soft); color: var(--blue);
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
    border: 2px solid var(--blue-border);
}
.sq-tk-step em { font-size: 11px; color: var(--muted); font-style: normal; font-weight: 600; }
.sq-tk-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px 18px; max-width: 48px; }

.sq-tk-list { display: flex; flex-direction: column; gap: 10px; }
.sq-tk-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    text-decoration: none; color: inherit; box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    border-left: 4px solid var(--blue);
}
.sq-tk-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.sq-tk-card-pending { border-left-color: var(--warn); }
.sq-tk-card-processing { border-left-color: var(--blue); }
.sq-tk-card-waiting { border-left-color: #ec4899; }
.sq-tk-card-done { border-left-color: var(--ok); }
.sq-tk-card-cancelled { border-left-color: var(--dim); opacity: .75; }
.sq-tk-card-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.sq-tk-card-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: var(--blue-soft); color: var(--blue);
    display: grid; place-items: center;
}
.sq-tk-card-body { min-width: 0; flex: 1; }
.sq-tk-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.sq-tk-card-top code { font-size: 11px; color: var(--blue); font-weight: 700; background: var(--blue-soft); padding: 2px 8px; border-radius: 4px; border: none; }
.sq-tk-card-body strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-tk-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.sq-tk-card-arrow { color: var(--dim); font-size: 18px; flex-shrink: 0; }
.sq-tk-badge-refund { color: var(--ok); font-weight: 600; }

.sq-tk-status {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.sq-tk-status-pending { background: #fffbeb; color: var(--warn); }
.sq-tk-status-processing { background: var(--blue-soft); color: var(--blue); }
.sq-tk-status-waiting { background: #fce7f3; color: #be185d; }
.sq-tk-status-done { background: var(--ok-soft); color: var(--ok); }
.sq-tk-status-cancelled { background: var(--surface-2); color: var(--dim); }
.sq-tk-status-lg { font-size: 13px; padding: 6px 14px; }

.sq-tk-fee-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 20px; padding: 14px 16px;
    background: var(--red-soft); border: 1px solid #fecaca; border-radius: 12px;
    font-size: 13px; color: var(--muted); line-height: 1.55;
}
.sq-tk-fee-note svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.sq-tk-fee-note strong { color: var(--red); }

.sq-tk-empty {
    text-align: center; padding: 48px 24px;
    background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
}
.sq-tk-empty-icon { color: var(--dim); margin-bottom: 12px; }
.sq-tk-empty h3 { font-size: 17px; margin-bottom: 6px; }
.sq-tk-empty p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* Ticket pages */
.sq-tk-page { padding-top: 8px; padding-bottom: 48px; }
.sq-tk-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 16px;
}
.sq-tk-back:hover { color: var(--blue); }

.sq-tk-hero {
    margin-bottom: 24px; padding: 24px 28px; border-radius: 20px;
    background: var(--surface); border: 1px solid rgba(255,255,255,.95);
    box-shadow: var(--shadow-md); overflow: hidden; position: relative;
}
.sq-tk-hero-create::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--blue), #3b82f6, var(--red));
}
.sq-tk-hero-detail { padding-bottom: 20px; }
.sq-tk-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sq-tk-hero-badge {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.sq-tk-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.sq-tk-hero p { font-size: 14px; color: var(--muted); }
.sq-tk-balance-chip {
    padding: 12px 18px; border-radius: 12px;
    background: var(--red-soft); border: 1px solid #fecaca; text-align: right;
}
.sq-tk-balance-chip span { display: block; font-size: 11px; color: var(--muted); }
.sq-tk-balance-chip strong { font-size: 22px; font-weight: 800; color: var(--red); }

.sq-tk-create-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.sq-tk-form-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
}
.sq-tk-form-section { margin-bottom: 22px; }
.sq-tk-form-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.sq-tk-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.sq-tk-req { color: var(--red); }
.sq-tk-input, .sq-tk-textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.sq-tk-input:focus, .sq-tk-textarea:focus {
    outline: none; border-color: var(--blue-border); box-shadow: 0 0 0 3px var(--blue-soft);
}
.sq-tk-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.sq-tk-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sq-tk-type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sq-tk-type-box {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 10px; border: 2px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .15s; text-align: center;
}
.sq-tk-type-opt input:checked + .sq-tk-type-box {
    border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.sq-tk-type-icon {
    font-size: 11px; font-weight: 800; font-style: normal;
    padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
}
.sq-tk-type-icon-api { background: var(--blue-soft); color: var(--blue); }
.sq-tk-type-icon-red { background: var(--red-soft); color: var(--red); }
.sq-tk-type-box strong { font-size: 12px; font-weight: 600; line-height: 1.3; }

.sq-tk-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 15px; gap: 8px; }
.sq-tk-aside { display: flex; flex-direction: column; gap: 14px; }
.sq-tk-aside-card {
    padding: 20px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow);
}
.sq-tk-aside-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sq-tk-aside-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sq-tk-aside-head h3 { margin: 0; }
.sq-tk-aside-head svg { color: var(--red); }
.sq-tk-aside-fee { border-color: #fecaca; background: linear-gradient(180deg, #fff, var(--red-soft)); }
.sq-tk-aside-fee ul { list-style: none; }
.sq-tk-aside-fee li {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid rgba(254,202,202,.5); font-size: 13px;
}
.sq-tk-aside-fee li:last-child { border-bottom: none; }
.sq-tk-aside-fee strong { color: var(--red); }
.sq-tk-tips { padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }

.sq-tk-toast {
    padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500;
}
.sq-tk-toast-ok { background: var(--ok-soft); color: #065f46; border: 1px solid #a7f3d0; }
.sq-tk-alert { max-width: none; }

/* Detail page */
.sq-tk-detail-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.sq-tk-no {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue);
    background: var(--blue-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 8px; border: none;
}
.sq-tk-detail-title h1 { font-size: 22px; font-weight: 800; line-height: 1.3; }

.sq-tk-progress {
    display: flex; align-items: center; padding-top: 4px;
}
.sq-tk-progress-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.sq-tk-progress-step span {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border); border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--border);
    transition: all .2s;
}
.sq-tk-progress-step.active span { background: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.sq-tk-progress-step.current span { width: 14px; height: 14px; box-shadow: 0 0 0 4px var(--blue-soft); }
.sq-tk-progress-step em { font-size: 10px; color: var(--dim); font-style: normal; font-weight: 600; white-space: nowrap; }
.sq-tk-progress-step.active em { color: var(--blue); }
.sq-tk-progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px 18px; min-width: 24px; }
.sq-tk-progress-line.active { background: var(--blue); }

.sq-tk-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.sq-tk-chat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.sq-tk-chat-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.sq-tk-chat-head h3 { font-size: 15px; font-weight: 700; }
.sq-tk-chat-head span { font-size: 12px; color: var(--dim); }
.sq-tk-chat-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 480px; overflow-y: auto; }

.sq-tk-bubble-wrap { display: flex; gap: 10px; align-items: flex-start; }
.sq-tk-bubble-user { flex-direction: row-reverse; }
.sq-tk-bubble-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.sq-tk-bubble-user .sq-tk-bubble-avatar { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.sq-tk-bubble-staff .sq-tk-bubble-avatar { background: linear-gradient(135deg, #64748b, #475569); }
.sq-tk-bubble { max-width: 78%; }
.sq-tk-bubble-user .sq-tk-bubble { align-items: flex-end; }
.sq-tk-bubble-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; flex-wrap: wrap; }
.sq-tk-bubble-user .sq-tk-bubble-meta { justify-content: flex-end; }
.sq-tk-bubble-meta strong { font-size: 12px; color: var(--text); }
.sq-tk-bubble-meta span { color: var(--dim); }
.sq-tk-bubble-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #fffbeb; color: var(--warn); }
.sq-tk-bubble-tag-ok { background: var(--ok-soft); color: var(--ok); }
.sq-tk-bubble-text {
    padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6;
    background: var(--surface-2); border: 1px solid var(--border);
}
.sq-tk-bubble-user .sq-tk-bubble-text { background: var(--blue-soft); border-color: var(--blue-border); border-bottom-right-radius: 4px; }
.sq-tk-bubble-staff .sq-tk-bubble-text { border-bottom-left-radius: 4px; }

.sq-tk-reply-box {
    margin-top: 16px; padding: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
}
.sq-tk-reply-box h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sq-tk-reply-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.sq-tk-closed-note {
    margin-top: 16px; padding: 16px; text-align: center; font-size: 13px; color: var(--dim);
    background: var(--surface-2); border-radius: 12px; border: 1px dashed var(--border);
}

.sq-tk-side-card {
    padding: 18px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.sq-tk-side-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sq-tk-dl { font-size: 13px; }
.sq-tk-dl dt { color: var(--dim); font-size: 11px; margin-bottom: 2px; }
.sq-tk-dl dd { margin: 0 0 12px; font-weight: 600; }
.sq-tk-fee { color: var(--red); }
.sq-tk-refund { color: var(--ok); }
.sq-tk-side-billing { border-color: #fecaca; }
.sq-tk-side-fee-hint { background: var(--red-soft); border-color: #fecaca; font-size: 13px; }
.sq-tk-side-fee-hint strong { color: var(--red); }
.sq-tk-cancel-btn {
    width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--muted); font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .15s;
}
.sq-tk-cancel-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.sq-api-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.sq-api-card {
    padding: 20px; background: var(--surface); border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.sq-api-card-balance { background: linear-gradient(135deg, var(--blue-soft), var(--surface)); border-color: var(--blue-border); }
.sq-api-card-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.sq-api-balance { font-size: 32px; font-weight: 800; color: var(--red); display: block; }
.sq-api-card-hint { font-size: 12px; color: var(--dim); margin: 8px 0 12px; line-height: 1.5; }
.sq-api-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sq-api-metrics strong { display: block; font-size: 20px; font-weight: 800; }
.sq-api-metrics span { font-size: 11px; color: var(--dim); }
.sq-api-creds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sq-api-creds-head h3 { font-size: 16px; font-weight: 700; }
.sq-api-cred-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sq-api-cred-row code { flex: 1; word-break: break-all; }
.sq-api-endpoint { margin: 10px 0; font-size: 13px; }
.sq-api-example { margin-top: 10px; font-size: 12px; }
.sq-api-product-list { list-style: none; font-size: 13px; color: var(--muted); }
.sq-api-product-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.text-err { color: var(--red); }

.sq-api-security {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px;
}
.sq-api-sec-item {
    padding: 14px 16px; border-radius: 12px; background: var(--surface);
    border: 1px solid var(--border); text-align: center;
}
.sq-api-sec-item span {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em;
    color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}
.sq-api-sec-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.sq-api-sec-item p { font-size: 11px; color: var(--dim); }
.sq-api-whitelist-warn { border-color: #fca5a5; background: linear-gradient(135deg, #fff, var(--red-soft)); }
.sq-api-whitelist-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-family: ui-monospace, Consolas, monospace; font-size: 13px; resize: vertical;
}
.sq-field-err { display: block; font-size: 12px; color: var(--red); margin-top: 4px; }
.sq-doc-list { list-style: none; font-size: 14px; }
.sq-doc-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ========== Account Dashboard v3 ========== */
.sq-acc-page { padding-top: 28px; }

.sq-dash {
    position: relative;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.sq-dash-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, #3b82f6 45%, var(--red) 100%);
}
.sq-dash-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px 32px 24px;
}
.sq-dash-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
.sq-dash-avatar-wrap { position: relative; flex-shrink: 0; }
.sq-dash-avatar {
    width: 72px; height: 72px; border-radius: 20px;
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff; display: grid; place-items: center;
    font-size: 28px; font-weight: 800;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
}
.sq-dash-online {
    position: absolute; bottom: -2px; right: -2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--ok); border: 2.5px solid var(--surface);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .2);
}
.sq-dash-kicker {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 6px;
}
.sq-dash-name {
    font-size: 26px; font-weight: 800; line-height: 1.2;
    letter-spacing: -.02em; margin-bottom: 6px;
}
.sq-dash-contact {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.sq-dash-contact svg { opacity: .55; flex-shrink: 0; }
.sq-dash-dot { color: var(--dim); }
.sq-dash-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-dash-tag {
    font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.sq-dash-tag-blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-border); }
.sq-dash-tag-red { background: var(--red-soft); color: var(--red); border-color: #fecaca; }

.sq-dash-wallet {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    min-width: 280px; max-width: 340px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8f8 0%, var(--red-soft) 100%);
    border: 1px solid #fecaca;
}
.sq-dash-wallet-warn {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border-color: #fca5a5;
    animation: sq-dash-pulse 2.5s ease-in-out infinite;
}
@keyframes sq-dash-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .12); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.sq-dash-wallet-icon {
    grid-row: 1 / 3;
    align-self: start;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.85);
    color: var(--red);
    display: grid; place-items: center;
    border: 1px solid #fecaca;
}
.sq-dash-wallet-label { font-size: 12px; color: var(--muted); display: block; }
.sq-dash-wallet-amount {
    display: block; font-size: 32px; font-weight: 800;
    color: var(--red); line-height: 1.1; margin: 2px 0 6px;
    letter-spacing: -.02em;
}
.sq-dash-wallet-hint {
    font-size: 11px; color: var(--dim); line-height: 1.5;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.sq-dash-wallet-hint em { font-style: normal; font-weight: 600; color: var(--muted); }
.sq-dash-wallet-alert {
    font-weight: 600; color: var(--red);
    padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.7);
}
.sq-dash-wallet-ok { font-weight: 600; color: var(--ok); }
.sq-dash-wallet-actions {
    grid-column: 1 / -1;
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}

.sq-dash-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
}
.sq-dash-metric {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: var(--surface);
    transition: background .15s;
}
.sq-dash-metric:hover { background: var(--surface-2); }
.sq-dash-metric-icon {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center; flex-shrink: 0;
}
.sq-dash-metric-blue .sq-dash-metric-icon { background: var(--blue-soft); color: var(--blue); }
.sq-dash-metric-muted .sq-dash-metric-icon { background: var(--surface-2); color: var(--muted); }
.sq-dash-metric-red .sq-dash-metric-icon { background: var(--red-soft); color: var(--red); }
.sq-dash-metric-data strong {
    display: block; font-size: 22px; font-weight: 800;
    line-height: 1; margin-bottom: 4px; letter-spacing: -.02em;
}
.sq-dash-metric-data span { font-size: 12px; color: var(--muted); }
.sq-dash-metric-red .sq-dash-metric-data strong { color: var(--red); }

.sq-acc-tabs {
    display: flex; gap: 6px; margin-bottom: 20px; padding: 5px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; width: fit-content; box-shadow: var(--shadow);
}
.sq-acc-tab {
    padding: 10px 20px; border: none; border-radius: 8px; background: transparent;
    font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit;
}
.sq-acc-tab.active { background: var(--blue); color: #fff; }
.sq-acc-panel { display: none; }
.sq-acc-panel.active { display: block; }
.sq-acc-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}
.sq-acc-panel-head h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.sq-acc-panel-head p { font-size: 14px; color: var(--muted); }

/* License card v3 — account tab (左右分栏：已购套餐 | 授权信息) */
.sq-lc3-list { display: flex; flex-direction: column; gap: 18px; }

.sq-lc3-switcher-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding: 6px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 14px;
}
.sq-lc3-switch-arrow {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border); background: #fff; color: var(--muted);
    display: grid; place-items: center; cursor: pointer; transition: all .12s;
}
.sq-lc3-switch-arrow:hover:not(:disabled) {
    border-color: var(--blue-border); color: var(--blue); background: var(--blue-soft);
}
.sq-lc3-switch-arrow:disabled { opacity: .35; cursor: not-allowed; }
.sq-lc3-switcher {
    flex: 1; display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
    padding: 2px 0; min-width: 0;
    scrollbar-width: none;
}
.sq-lc3-switcher::-webkit-scrollbar { display: none; }
.sq-lc3-switch {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 10px 14px; border-radius: 10px; border: 1px solid transparent;
    background: transparent; cursor: pointer; font-family: inherit; text-align: left;
    transition: all .15s; min-width: 140px; max-width: 200px;
}
.sq-lc3-switch:hover { background: #fff; border-color: var(--border); }
.sq-lc3-switch.active {
    background: #fff; border-color: var(--blue-border);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}
.sq-lc3-switch-name {
    font-size: 13px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.sq-lc3-switch-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sq-lc3-switch-dot {
    font-style: normal; font-size: 10px; font-weight: 700; color: #b45309;
    background: #fef3c7; padding: 1px 6px; border-radius: 99px;
}
.sq-lc3-switch-count {
    flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--dim);
    min-width: 42px; text-align: center;
}
.sq-lc3-viewport { min-height: 120px; }
.sq-lc3-license-panel { display: none; }
.sq-lc3-license-panel.active { display: block; animation: sq-lc3-fade .2s ease; }

/* ========== License card v4 ========== */
.sq-lc4 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.sq-lc4:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); }
.sq-lc4-attn { border-color: #fbbf24; box-shadow: 0 0 0 1px rgba(251, 191, 36, .2), var(--shadow); }
.sq-lc4-ready { border-color: #86efac; }

.sq-lc4-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
}
.sq-lc4-head-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.sq-lc4-plan { display: flex; align-items: flex-start; gap: 12px; }
.sq-lc4-plan-icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.15); display: grid; place-items: center;
}
.sq-lc4-kicker {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; opacity: .75; margin-bottom: 2px;
}
.sq-lc4-plan-text h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0 0 4px; }
.sq-lc4-plan-meta { font-size: 12px; opacity: .88; margin: 0; }
.sq-lc4-head-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-lc4-tag {
    display: inline-flex; padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); color: #fff;
}
.sq-lc4-tag-warn { background: #fde047; color: #713f12; }
.sq-lc4-tag-ok { background: #4ade80; color: #14532d; }
.sq-lc4-tag-err { background: #fca5a5; color: #7f1d1d; }

.sq-lc4-head-side {
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0;
}
.sq-lc4-expiry { text-align: right; font-size: 12px; line-height: 1.4; }
.sq-lc4-expiry-label { display: block; font-size: 10px; opacity: .75; font-weight: 600; }
.sq-lc4-expiry strong { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.sq-lc4-pill {
    display: inline-flex; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; vertical-align: middle;
}
.sq-lc4-pill-warn { background: #fde047; color: #713f12; }
.sq-lc4-pill-err { background: #fecaca; color: #991b1b; }
.sq-lc4-renew-form { margin: 0; }
.sq-lc4-renew-btn {
    padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.95); color: #1d4ed8;
    font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: background .12s, transform .12s;
}
.sq-lc4-renew-btn:hover { background: #fff; transform: translateY(-1px); }

.sq-lc4-tip {
    margin: 0; padding: 10px 18px; font-size: 12px; color: #92400e;
    background: #fffbeb; border-bottom: 1px solid #fde68a;
}

.sq-lc4-body {
    display: grid; grid-template-columns: 1fr minmax(140px, 200px);
    gap: 0; border-bottom: 1px solid var(--border);
}
.sq-lc4-key {
    padding: 16px 18px; min-width: 0;
    border-right: 1px solid var(--border);
}
.sq-lc4-quota {
    padding: 16px 18px; display: flex; flex-direction: column;
    background: #f8fafc;
}
.sq-lc4-field-head {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
    margin-bottom: 10px;
}
.sq-lc4-field-label {
    font-size: 13px; font-weight: 700; letter-spacing: 0;
    text-transform: none; color: var(--text);
}
.sq-lc4-field-hint {
    font-size: 11px; font-weight: 500; color: var(--dim);
}
.sq-lc4-keybox {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 4px 4px 6px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 50%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, .08), inset 0 1px 0 rgba(255,255,255,.9);
    transition: border-color .15s, box-shadow .15s;
}
.sq-lc4-keybox:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .1), inset 0 1px 0 rgba(255,255,255,.9);
}
.sq-lc4-key-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.sq-lc4-keybox code {
    flex: 1; min-width: 0; padding: 8px 4px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 15px; font-weight: 700; letter-spacing: .04em;
    color: #1e40af; word-break: break-all; background: none;
}
.sq-lc4-copy {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 9px; border: none;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .3);
    transition: transform .12s, box-shadow .12s, background .12s;
}
.sq-lc4-copy:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
}
.sq-lc4-copy:active { transform: translateY(0); }
.sq-lc4-copy.copied { background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); box-shadow: 0 2px 6px rgba(22, 163, 74, .35); }

.sq-lc4-quota-data { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sq-lc4-quota-num { font-size: 26px; font-weight: 800; line-height: 1; color: var(--text); }
.sq-lc4-quota-num span { font-size: 15px; color: var(--muted); font-weight: 600; }
.sq-lc4-quota-bar {
    flex: 1; height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.sq-lc4-quota-bar i {
    display: block; height: 100%; border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #60a5fa);
    transition: width .3s ease;
}
.sq-lc4-attn .sq-lc4-quota-bar i { background: linear-gradient(90deg, var(--warn), #f59e0b); }
.sq-lc4-quota-hint { margin: 0; font-size: 11px; color: var(--dim); }

.sq-lc4-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 18px; background: #fff;
}
.sq-lc4-dl {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0;
}
.sq-lc4-dl-primary {
    padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700;
    background: var(--blue); color: #fff; text-decoration: none; transition: background .12s;
}
.sq-lc4-dl-primary:hover { background: #1d4ed8; color: #fff; }
.sq-lc4-dl-hint { font-size: 10px; font-weight: 600; color: var(--dim); padding: 0 4px; }
.sq-lc4-dl-link {
    padding: 6px 11px; border-radius: 7px; font-size: 12px; font-weight: 600;
    color: var(--muted); text-decoration: none; border: 1px solid var(--border); background: #fff;
    transition: all .12s;
}
.sq-lc4-dl-link:hover { color: var(--blue); border-color: var(--blue-border); background: var(--blue-soft); }
.sq-lc4-dl-accent { color: var(--blue); border-color: var(--blue-border); background: var(--blue-soft); }

.sq-lc4-manage {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 8px 14px; border-radius: 10px; border: none; cursor: pointer;
    background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
    font-family: inherit; transition: background .12s;
}
.sq-lc4-manage em { font-style: normal; font-size: 11px; font-weight: 600; opacity: .85; }
.sq-lc4-manage:hover { background: var(--blue-dark); }
.sq-lc4-manage.open .sq-lc4-chevron { transform: rotate(180deg); }
.sq-lc4-chevron { transition: transform .2s; }

.sq-lc3 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.sq-lc3:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); }
.sq-lc3-attn { border-color: #fbbf24; box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), var(--shadow); }
.sq-lc3-ready { border-color: #86efac; }

.sq-lc3-split {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(0, 64%);
    align-items: stretch;
    min-height: 168px;
}

/* 左侧：已购产品 */
.sq-lc3-product {
    display: flex; flex-direction: column; gap: 12px;
    padding: 20px 20px 0; order: 1;
    background: linear-gradient(165deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    color: #fff;
}
.sq-lc3-product-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,.16); display: grid; place-items: center;
}
.sq-lc3-product-tag {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; opacity: .75; margin-bottom: 4px;
}
.sq-lc3-product-info h3 {
    font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 6px;
}
.sq-lc3-product-info p { font-size: 12px; opacity: .9; line-height: 1.5; }
.sq-lc3-product-meta { font-size: 11px !important; opacity: .75 !important; margin-top: 4px; }
.sq-lc3-expiry {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 12px; opacity: .92; line-height: 1.5; margin-bottom: 4px;
}
.sq-lc3-expiry-expired { opacity: 1; }
.sq-lc3-expiry-soon { opacity: 1; }
.sq-lc3-expiry-badge {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700;
}
.sq-lc3-expiry-badge-warn { background: #fde047; color: #713f12; }
.sq-lc3-expiry-badge-err { background: #fecaca; color: #991b1b; }
.sq-lc3-renew-form { margin: 8px 0 4px; }
.sq-lc3-renew-btn {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: background .12s;
}
.sq-lc3-renew-btn small { font-size: 10px; font-weight: 600; opacity: .85; }
.sq-lc3-renew-btn:hover { background: rgba(255,255,255,.28); }
.sq-lic-expiry { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sq-lic-renew-form { margin: 0; }
.sq-lc3-product-foot {
    margin-top: auto; margin-left: -20px; margin-right: -20px;
    padding: 10px 20px 12px; font-size: 11px; line-height: 1.55;
    background: rgba(0, 0, 0, .14); border-top: 1px solid rgba(255, 255, 255, .1);
}
.sq-lc3-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sq-lc3-badge {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); color: #fff;
}
.sq-lc3-badge-warn { background: #fde047; color: #713f12; }
.sq-lc3-badge-ok { background: #4ade80; color: #14532d; }
.sq-lc3-badge-err { background: #fca5a5; color: #7f1d1d; }
.sq-lc3-badge-warn,
.sq-lc3-badge-ok,
.sq-lc3-badge-err { box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* 右侧：License Key + 授权配置 */
.sq-lc3-license {
    display: flex; flex-direction: column; min-width: 0; background: #fff; order: 2;
}
.sq-lc3-license-row {
    display: flex; flex-direction: row; align-items: stretch; flex: 1;
}
.sq-lc3-pane { padding: 16px 20px; min-width: 0; }
.sq-lc3-pane-key { flex: 1 1 auto; }
.sq-lc3-pane-stat {
    flex: 0 0 132px; text-align: right;
    border-left: 1px solid var(--border);
}
.sq-lc3-keybox {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px 9px 12px; background: var(--blue-soft);
    border: 1px solid var(--blue-border); border-radius: 10px;
}
.sq-lc3-keybox code {
    flex: 1; min-width: 0;
    font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700;
    color: var(--blue); word-break: break-all; background: none;
}
.sq-lc3-copy {
    flex-shrink: 0; padding: 4px 10px; border-radius: 6px;
    border: 1px solid var(--blue-border); background: #fff;
    color: var(--blue); font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .12s;
}
.sq-lc3-copy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.sq-lc3-pane-stat .sq-lc3-meter { margin-left: auto; width: 100%; max-width: 108px; }
.sq-lc3-label {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.sq-lc3-stat-num { display: block; font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 8px; color: var(--text); }
.sq-lc3-stat-num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.sq-lc3-meter {
    height: 5px; border-radius: 99px; background: var(--border); overflow: hidden;
}
.sq-lc3-meter i {
    display: block; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    transition: width .3s;
}
.sq-lc3-attn .sq-lc3-meter i { background: linear-gradient(90deg, var(--warn), #f59e0b); }

.sq-lc3-actionbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 20px 12px; border-top: 1px solid var(--border); margin-top: auto;
    flex-wrap: nowrap;
}
.sq-lc3-action-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.sq-lc3-action-right { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.sq-lc3-tools { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.sq-lc3-tool {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); background: #fff; color: var(--muted);
    text-decoration: none; transition: all .12s; font-family: inherit; cursor: pointer;
}
.sq-lc3-tool:hover { border-color: var(--blue-border); color: var(--blue); background: var(--blue-soft); }
.sq-lc3-tool-accent { border-color: var(--blue-border); color: var(--blue); background: var(--blue-soft); }
.sq-lc3-tool-danger { border-color: #fecaca; color: var(--red); background: var(--red-soft); }
.sq-lc3-tool-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.sq-lc3-dl-group {
    display: inline-flex; align-items: stretch; flex-wrap: wrap;
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
}
.sq-lc3-dl-main {
    display: inline-flex; align-items: center; padding: 7px 14px;
    font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--blue); border: none; transition: background .12s; white-space: nowrap;
}
.sq-lc3-dl-main:hover { background: #1d4ed8; color: #fff; }
.sq-lc3-dl-meta {
    display: inline-flex; align-items: center; padding: 0 10px;
    font-size: 10px; font-weight: 600; color: var(--dim); letter-spacing: .02em;
    background: #f8fafc; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    white-space: nowrap;
}
.sq-lc3-dl-item {
    display: inline-flex; align-items: center; padding: 7px 12px;
    font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none;
    background: #fff; border-left: 1px solid var(--border); transition: all .12s; white-space: nowrap;
}
.sq-lc3-dl-item:first-of-type { border-left: none; }
.sq-lc3-dl-item:hover { color: var(--blue); background: var(--blue-soft); }
.sq-lc3-delete { margin: 0; display: inline; }

.sq-lc3-manage-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px; cursor: pointer; user-select: none;
    background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
    border: none; transition: background .12s; white-space: nowrap; flex-shrink: 0;
}
.sq-lc3-manage-btn:hover { background: var(--blue-dark); }
.sq-lc3-manage-hint {
    font-size: 11px; font-weight: 600; opacity: .85;
    padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.2);
}
.sq-lc3-chevron { transition: transform .2s; flex-shrink: 0; }

.sq-lc3-workflow-panel {
    display: none; border-top: 1px solid var(--border); background: var(--surface-2);
}
.sq-lc3-workflow-panel.open { display: block; }
.sq-lc3-workflow-body { padding: 16px 20px 20px; }

.sq-lc3-manage-trigger { font-family: inherit; }
.sq-lc3-manage-trigger.open .sq-lc3-chevron { transform: rotate(180deg); }
.sq-lc3-rail {
    display: flex; align-items: center; gap: 0; list-style: none;
    margin: 16px 0 18px; padding: 0;
}
.sq-lc3-rail-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative; text-align: center;
}
.sq-lc3-rail-item:not(:last-child)::after {
    content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px);
    height: 2px; background: var(--border); z-index: 0;
}
.sq-lc3-rail-done:not(:last-child)::after,
.sq-lc3-rail-current:not(:last-child)::after { background: var(--blue); }
.sq-lc3-rail-dot {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; font-weight: 800; z-index: 1;
    background: #fff; border: 2px solid var(--border); color: var(--dim);
}
.sq-lc3-rail-current .sq-lc3-rail-dot {
    border-color: var(--blue); background: var(--blue); color: #fff;
    box-shadow: 0 0 0 4px var(--blue-soft);
}
.sq-lc3-rail-done .sq-lc3-rail-dot {
    border-color: var(--ok); background: var(--ok); color: #fff;
}
.sq-lc3-rail-locked .sq-lc3-rail-dot { opacity: .45; }
.sq-lc3-rail-text { font-size: 11px; font-weight: 600; color: var(--muted); }
.sq-lc3-rail-current .sq-lc3-rail-text { color: var(--blue); }
.sq-lc3-rail-done .sq-lc3-rail-text { color: var(--ok); }

.sq-lc3-callout {
    padding: 12px 14px; margin-bottom: 16px; border-radius: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 13px; color: #92400e; line-height: 1.55;
}

.sq-lc3-tabs {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 16px;
    background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border);
}
.sq-lc3-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px; border: none; border-radius: 9px; background: transparent;
    font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
    font-family: inherit; transition: all .15s; position: relative;
}
.sq-lc3-tab:hover:not(.disabled) { color: var(--blue); }
.sq-lc3-tab.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(37,99,235,.12); }
.sq-lc3-tab.disabled { opacity: .45; cursor: not-allowed; }
.sq-lc3-tab-count {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
    background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800;
    display: inline-grid; place-items: center;
}
.sq-lc3-tab-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--warn);
    animation: sq-lc3-pulse 1.2s ease infinite;
}
@keyframes sq-lc3-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}

.sq-lc3-panels { min-height: 120px; }
.sq-lc3-panel { display: none; }
.sq-lc3-panel.active { display: block; animation: sq-lc3-fade .2s ease; }
@keyframes sq-lc3-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.sq-lc3-panel .sq-bind-table { font-size: 12px; margin-bottom: 14px; }
.sq-lc3-panel .sq-bind-note { font-size: 11px; color: var(--dim); margin-top: 12px; }
.sq-bind-inline-err {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
    font-size: 13px; color: var(--red); background: var(--red-soft);
    border: 1px solid #fecaca;
}
.sq-bind-field-err {
    margin: -4px 0 14px; font-size: 12px; line-height: 1.5; color: var(--red);
}
.sq-bind-row-dup {
    background: #fef2f2;
    outline: 2px solid #fecaca;
    outline-offset: -2px;
}
.sq-bind-row-dup code { color: var(--red); }
.sq-input-err {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}
.sq-lc3-panel .sq-lic-bind-form .sq-field input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; transition: border-color .12s;
}
.sq-lc3-panel .sq-lic-bind-form .sq-field input:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}

.sq-lc3-deploy-tip {
    margin-top: 16px; padding: 14px 16px; border-radius: 12px;
    background: var(--ok-soft); border: 1px solid #bbf7d0;
}
.sq-lc3-deploy-tip strong { display: block; font-size: 13px; margin-bottom: 4px; color: #166534; }
.sq-lc3-deploy-tip p { font-size: 12px; color: #15803d; margin-bottom: 10px; line-height: 1.5; }

.sq-lc3-empty-icon { color: var(--dim); margin-bottom: 12px; }

.sq-bind-form-lead {
    font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5;
}
.sq-lic-bind-open { border-top: none; padding-top: 0; }
.sq-lic-bind-open .sq-lic-bind-form { margin-top: 0; }

.sq-lic-encrypt-embedded {
    margin: 0; padding: 0; background: transparent; border: none;
}
.sq-lic-encrypt-statusbar { margin-bottom: 12px; }

.sq-lic-encrypt-locked {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; background: #f8fafc; border: 1px dashed var(--border); border-radius: 12px;
}
.sq-lic-encrypt-locked-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: #e2e8f0; color: var(--dim); display: grid; place-items: center;
}
.sq-lic-encrypt-locked strong { display: block; font-size: 14px; margin-bottom: 4px; }
.sq-lic-encrypt-locked p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.sq-file-picker {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.sq-file-picker-input {
    position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.sq-file-picker-btn {
    display: inline-flex; align-items: center; padding: 9px 16px;
    font-size: 13px; font-weight: 600; color: var(--blue);
    background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: 9px;
    cursor: pointer;
}
.sq-file-picker-btn:hover { background: #dbeafe; }
.sq-file-picker-name { font-size: 13px; color: var(--muted); }
.sq-lic-encrypt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sq-lic-encrypt-upload .sq-field-hint { display: block; margin-bottom: 0; font-size: 12px; color: var(--dim); }
.sq-lic-encrypt-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.55; }

/* legacy alias */
.sq-lv2-list { display: flex; flex-direction: column; gap: 18px; }
.sq-lv2-empty-icon { color: var(--dim); margin-bottom: 12px; }

.sq-lic-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,.9);
    border-radius: 18px; padding: 24px; box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; height: 100%;
}

.sq-lic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.sq-lic-grid-full { grid-column: 1 / -1; }

.sq-lic-meta-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
.sq-lic-download-btns-compact { grid-template-columns: repeat(3, 1fr); }

.sq-lic-encrypt {
    margin: 14px 0; padding: 14px 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.sq-lic-encrypt-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.sq-lic-encrypt-hint { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.sq-lic-encrypt-ready p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sq-lic-encrypt-meta { font-size: 12px; color: var(--dim); margin-top: -6px; margin-bottom: 12px !important; }
.sq-lic-encrypt-reupload { margin-top: 0; }
.sq-lic-encrypt-reupload-active {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border, #e5e7eb);
}
.sq-lic-encrypt-reupload-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--text, #111827); }
.sq-lic-encrypt-reupload-hint { font-size: 12px; color: var(--dim); margin: 0 0 12px; line-height: 1.5; }
.sq-lic-encrypt-step { font-size: 12px; color: var(--blue); }
.sq-lic-encrypt-upload input[type="file"] { font-size: 13px; }
.sq-lic-card-head { margin-bottom: 16px; }
.sq-lic-key-label { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.sq-lic-key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sq-lic-key {
    font-family: ui-monospace, monospace; font-size: 15px; font-weight: 700;
    color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-border);
    padding: 10px 14px; border-radius: 10px; word-break: break-all;
}
.sq-lic-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.sq-lic-meta-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.sq-lic-meta-item span { display: block; font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.sq-lic-meta-item strong { font-size: 14px; font-weight: 600; word-break: break-all; }

.sq-lic-downloads { margin-bottom: 16px; }
.sq-lic-downloads-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; display: block; }
.sq-lic-download-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sq-lic-dl {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
    text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.sq-lic-dl:hover { border-color: var(--blue-border); box-shadow: var(--shadow); color: var(--text); }
.sq-lic-dl em {
    font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em;
    color: var(--blue); text-transform: uppercase;
}
.sq-lic-dl span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sq-lic-dl-primary { border-color: var(--blue-border); background: var(--blue-soft); }
.sq-lic-dl-primary em { color: var(--blue-dark); }
.sq-lic-dl-accent { border-color: #fecaca; background: var(--red-soft); }
.sq-lic-dl-accent em { color: var(--red); }

.sq-lic-bind { border-top: 1px solid var(--border); padding-top: 4px; }
.sq-lic-bind summary {
    cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue);
    padding: 12px 0; list-style: none;
}
.sq-lic-bind summary::-webkit-details-marker { display: none; }
.sq-lic-bind-form { padding: 8px 0 4px; }
.sq-lic-bind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }

.sq-order-card {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 18px 22px; margin-bottom: 10px;
    background: var(--surface); border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px; box-shadow: var(--shadow);
}
.sq-order-main strong { font-size: 15px; display: block; margin-bottom: 6px; }
.sq-order-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.sq-order-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sq-order-amount { font-size: 18px; font-weight: 800; color: var(--red); }

.sq-acc-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sq-acc-settings-card { padding: 24px !important; }
.sq-acc-settings-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sq-acc-settings-head h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sq-acc-settings-head p { font-size: 13px; color: var(--muted); }
.sq-acc-empty { margin-top: 8px; }

.sq-lic-bindings-wrap { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }

.sq-bind-slots { margin-bottom: 16px; }
.sq-bind-slots-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.sq-bind-slots-count { font-weight: 800; color: var(--blue); }
.sq-bind-slots-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.sq-bind-slots-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); border-radius: 999px; transition: width .3s; }
.sq-bind-slots-hint { font-size: 12px; color: var(--dim); margin-top: 6px; }

.sq-bind-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.sq-bind-table th, .sq-bind-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sq-bind-table th { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.sq-bind-table code { font-size: 12px; padding: 2px 6px; }
.sq-bind-time small { color: var(--dim); margin-left: 4px; }
.sq-bind-empty, .sq-bind-full { font-size: 13px; color: var(--muted); padding: 12px 0; }
.sq-bind-note { font-size: 12px; color: var(--dim); margin-top: 8px; }
.sq-bind-inline-err {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
    font-size: 13px; color: var(--red); background: var(--red-soft);
    border: 1px solid #fecaca;
}
.sq-bind-field-err {
    margin: -4px 0 14px; font-size: 12px; line-height: 1.5; color: var(--red);
}
.sq-bind-row-dup {
    background: #fef2f2;
    outline: 2px solid #fecaca;
    outline-offset: -2px;
}
.sq-bind-row-dup code { color: var(--red); }
.sq-input-err {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}
.sq-dim { color: var(--dim); }
.sq-btn-danger-text { color: var(--red) !important; }
.sq-btn-danger-text:hover { background: var(--red-soft) !important; }
.sq-lic-meta-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* License detail page */
.sq-lic-page { padding-top: 28px; }
.sq-lic-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.sq-lic-header h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.sq-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.sq-lic-key-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 20px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--blue-border);
    border-radius: 14px; box-shadow: var(--shadow);
}
.sq-lic-key-bar code { font-size: 16px; font-weight: 700; padding: 0; border: none; background: transparent; flex: 1; word-break: break-all; }
.sq-lic-key-bar-v2 {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
    border-color: #bfdbfe;
}
.sq-lic-key-bar-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--text);
}
.sq-lic-key-bar-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #2563eb, #3b82f6); color: #fff;
}
.sq-lic-key-bar-box {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 8px 12px; background: #fff;
    border: 1px solid #dbeafe; border-radius: 10px;
}
.sq-lic-key-bar-box code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 15px; letter-spacing: .04em; color: #1e40af;
}
.sq-lic-key-bar-copy {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    padding: 7px 12px; border-radius: 8px; border: none;
    background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: background .12s;
}
.sq-lic-key-bar-copy:hover { background: #1d4ed8; }
.sq-lic-delete-form { display: inline; margin: 0; }
.sq-lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sq-lic-panel {
    padding: 24px; background: var(--surface); border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px; box-shadow: var(--shadow-md);
}
.sq-lic-panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.sq-status-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sq-lic-steps { margin: 16px 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.sq-lic-steps li { margin-bottom: 12px; }
.sq-lic-steps p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sq-code-block, .sq-api-box pre {
    background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px;
    font-size: 12px; line-height: 1.55; overflow-x: auto; margin-top: 8px;
}

/* ========== Developer API Docs ========== */
.sq-apidoc-page .sq-main { max-width: none; padding-left: 0; padding-right: 0; }
.sq-apidoc-page .sq-alert { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.sq-apidoc { padding-bottom: 48px; }

.sq-apidoc-hero {
    position: relative; overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 42%, #3b82f6 100%);
    color: #fff;
}
.sq-apidoc-hero-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(220, 38, 38, .22), transparent 50%),
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(255,255,255,.12), transparent 55%);
    pointer-events: none;
}
.sq-apidoc-hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max); margin: 0 auto;
    padding: 48px 24px 52px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
}
.sq-apidoc-badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 16px;
}
.sq-apidoc-hero h1 {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15;
    letter-spacing: -.03em; margin-bottom: 14px;
}
.sq-apidoc-hero h1 em { font-style: normal; color: #fecaca; }
.sq-apidoc-hero-text > p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 520px; }
.sq-apidoc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.sq-apidoc-hero-actions .sq-btn-ghost {
    background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff;
}
.sq-apidoc-hero-actions .sq-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.sq-apidoc-hero-stats { display: flex; flex-direction: column; gap: 10px; }
.sq-apidoc-stat {
    padding: 16px 20px; border-radius: 14px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}
.sq-apidoc-stat-red { background: rgba(220, 38, 38, .2); border-color: rgba(254, 202, 202, .35); }
.sq-apidoc-stat-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: 4px; }
.sq-apidoc-stat strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

.sq-apidoc-layout {
    max-width: var(--max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start;
}
.sq-apidoc-toc {
    position: sticky; top: calc(var(--header-h) + 20px);
    padding: 18px 16px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sq-apidoc-toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.sq-apidoc-toc nav { display: flex; flex-direction: column; gap: 2px; }
.sq-apidoc-toc a {
    display: block; padding: 8px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--muted);
    border-left: 2px solid transparent; transition: all .15s;
}
.sq-apidoc-toc a:hover { color: var(--blue); background: var(--blue-soft); }
.sq-apidoc-toc a.active { color: var(--blue); font-weight: 600; background: var(--blue-soft); border-left-color: var(--blue); }

.sq-apidoc-main { min-width: 0; }
.sq-apidoc-block {
    margin-bottom: 48px; padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.sq-apidoc-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sq-apidoc-block-head {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.sq-apidoc-block-num {
    font-size: 13px; font-weight: 800; color: var(--blue);
    background: var(--blue-soft); padding: 6px 10px; border-radius: 8px; flex-shrink: 0;
}
.sq-apidoc-block-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.sq-apidoc-block-head p { font-size: 14px; color: var(--muted); }

.sq-apidoc-defense {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.sq-apidoc-def-card {
    position: relative; padding: 20px 18px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.sq-apidoc-def-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sq-apidoc-def-card-red { border-color: #fecaca; background: linear-gradient(180deg, #fff, var(--red-soft)); }
.sq-apidoc-def-level {
    position: absolute; top: 12px; right: 12px;
    font-size: 10px; font-weight: 800; color: var(--blue);
    background: var(--blue-soft); padding: 2px 8px; border-radius: 4px;
}
.sq-apidoc-def-card-red .sq-apidoc-def-level { color: var(--red); background: #fee2e2; }
.sq-apidoc-def-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 14px;
}
.sq-apidoc-def-icon-blue { background: var(--blue-soft); color: var(--blue); }
.sq-apidoc-def-icon-red { background: var(--red-soft); color: var(--red); }
.sq-apidoc-def-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sq-apidoc-def-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }

.sq-apidoc-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sq-apidoc-step {
    display: flex; gap: 14px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow);
}
.sq-apidoc-step-n {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--blue); color: #fff;
    display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.sq-apidoc-step h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sq-apidoc-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.sq-apidoc-endpoint {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; margin-bottom: 24px;
    background: #0f172a; border-radius: 12px;
    border: 1px solid #1e293b;
}
.sq-apidoc-endpoint-sm { background: var(--surface); border-color: var(--border); margin-bottom: 10px; }
.sq-apidoc-method {
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    padding: 5px 10px; border-radius: 6px;
    background: var(--red); color: #fff; flex-shrink: 0;
}
.sq-apidoc-method-get { background: var(--blue); }
.sq-apidoc-url, .sq-apidoc-endpoint code {
    flex: 1; font-family: ui-monospace, Consolas, monospace;
    font-size: 13px; color: #94a3b8; word-break: break-all;
    background: transparent; border: none; padding: 0;
}
.sq-apidoc-endpoint-sm code { color: var(--text); font-size: 12px; }
.sq-apidoc-endpoint-desc { font-size: 12px; color: var(--dim); width: 100%; margin-top: 4px; padding-left: 52px; }
.sq-apidoc-endpoint-sm .sq-apidoc-endpoint-desc { padding-left: 0; width: auto; margin-top: 0; margin-left: auto; }
.sq-apidoc-copy {
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px;
    border: 1px solid #334155; background: #1e293b; color: #e2e8f0;
    cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.sq-apidoc-copy:hover { background: #334155; }
.sq-apidoc-endpoints { display: flex; flex-direction: column; gap: 0; }

.sq-apidoc-sub { margin-bottom: 20px; }
.sq-apidoc-sub h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sq-apidoc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.sq-apidoc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sq-apidoc-table th {
    text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--dim);
    background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.sq-apidoc-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sq-apidoc-table tbody tr:last-child td { border-bottom: none; }
.sq-apidoc-table tbody tr:hover td { background: var(--surface-2); }
.sq-apidoc-table code { font-size: 12px; }

.sq-apidoc-http {
    display: inline-block; min-width: 36px; text-align: center;
    font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
}
.sq-apidoc-http-4xx { background: var(--red-soft); color: var(--red); }
.sq-apidoc-http-warn { background: #fffbeb; color: var(--warn); }

.sq-apidoc-code {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #1e293b; background: #0f172a;
}
.sq-apidoc-code-ok { border-color: #166534; }
.sq-apidoc-code-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; background: #1e293b; border-bottom: 1px solid #334155;
    font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
}
.sq-apidoc-code-ok .sq-apidoc-code-bar { background: #14532d; border-color: #166534; color: #86efac; }
.sq-apidoc-code pre {
    margin: 0; padding: 16px 18px; font-size: 12px; line-height: 1.6;
    color: #e2e8f0; overflow-x: auto; font-family: ui-monospace, Consolas, monospace;
}
.sq-apidoc-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sq-apidoc-note { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.55; }

.sq-apidoc-cta {
    max-width: var(--max); margin: 48px auto 0; padding: 0 24px;
}
.sq-apidoc-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 28px 32px; border-radius: 18px;
    background: linear-gradient(135deg, var(--blue-soft), var(--surface));
    border: 1px solid var(--blue-border); box-shadow: var(--shadow-md);
}
.sq-apidoc-cta h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.sq-apidoc-cta p { font-size: 14px; color: var(--muted); }

.sq-api-box { margin-top: 20px; padding: 16px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }
.sq-api-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sq-lic-trust { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

/* Responsive */
@media (max-width: 900px) {
    .sq-home-hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
    .sq-home-spec-card { order: -1; }
    .sq-home-flow { grid-template-columns: 1fr 1fr; }
    .sq-home-flow::before { display: none; }
    .sq-home-flow-step { border-right: none; border-bottom: 1px solid var(--border); }
    .sq-home-flow-step:nth-child(odd) { border-right: 1px solid var(--border); }
    .sq-home-cap-grid { grid-template-columns: repeat(2, 1fr); }
    .sq-features-grid { grid-template-columns: repeat(2, 1fr); }
    .sq-features-flow { grid-template-columns: 1fr; }
    .sq-home-capabilities { padding: 28px 24px; }
    .sq-home-platform { grid-template-columns: 1fr; padding: 28px 24px; }
    .sq-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
    .sq-hero-visual { order: -1; }
    .sq-bento, .sq-process-grid, .sq-trust-grid, .sq-metrics { grid-template-columns: repeat(2, 1fr); }
    .sq-settings-grid, .sq-checkout-grid { grid-template-columns: 1fr; }
    .sq-dash-body { grid-template-columns: 1fr; padding: 22px 20px 18px; }
    .sq-dash-wallet { max-width: none; width: 100%; }
    .sq-dash-metrics { grid-template-columns: repeat(2, 1fr); }
    .sq-dash-metric:nth-child(5) { grid-column: 1 / -1; }
    .sq-api-security { grid-template-columns: repeat(2, 1fr); }
    .sq-lic-grid { grid-template-columns: 1fr; }
    .sq-lic-download-btns-compact { grid-template-columns: 1fr; }
    .sq-lic-meta-grid, .sq-lic-meta-grid-2, .sq-lic-meta-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sq-bind-table { display: block; overflow-x: auto; }
    .sq-lic-bind-grid { grid-template-columns: 1fr; }
    .sq-acc-settings { grid-template-columns: 1fr; }
    .sq-apidoc-hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 40px; }
    .sq-apidoc-layout { grid-template-columns: 1fr; gap: 24px; }
    .sq-apidoc-toc { position: static; }
    .sq-apidoc-toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .sq-apidoc-toc a { border-left: none; padding: 6px 12px; }
    .sq-apidoc-defense { grid-template-columns: repeat(2, 1fr); }
    .sq-apidoc-steps { grid-template-columns: 1fr; }
    .sq-apidoc-code-grid { grid-template-columns: 1fr; }
    .sq-apidoc-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .sq-menu-btn { display: flex; align-items: center; justify-content: center; }
    .sq-nav { display: none; }
    .sq-nav-dropdown-panel {
        position: static; width: 100%; box-shadow: none;
        border: none; padding: 0; margin-top: 4px;
    }
    .sq-mobile-nav .sq-nav-dropdown.open .sq-nav-dropdown-panel { display: block; }
    .sq-mobile-nav .sq-nav-dropdown-btn { width: 100%; justify-content: space-between; }
    .sq-home-flow { grid-template-columns: 1fr; }
    .sq-home-flow-step:nth-child(odd) { border-right: none; }
    .sq-home-cap-grid { grid-template-columns: 1fr; }
    .sq-features-grid { grid-template-columns: 1fr; }
    .sq-home-platform-grid { grid-template-columns: 1fr; }
    .sq-home-cta-band-inner { padding: 28px 24px; }
    .sq-bento, .sq-process-grid, .sq-trust-grid, .sq-metrics { grid-template-columns: 1fr; }
    .sq-list-item { grid-template-columns: 1fr; }
    .sq-lic-download-btns { grid-template-columns: 1fr 1fr; }
    .sq-order-card { flex-direction: column; align-items: flex-start; }
    .sq-dash-metrics { grid-template-columns: 1fr 1fr; }
    .sq-dash-metric { padding: 14px 16px; }
    .sq-dash-name { font-size: 22px; }
    .sq-dash-avatar { width: 60px; height: 60px; font-size: 24px; }
    .sq-apidoc-defense { grid-template-columns: 1fr; }
    .sq-apidoc-hero h1 { font-size: 26px; }
    .sq-tk-create-layout, .sq-tk-detail-layout { grid-template-columns: 1fr; }
    .sq-tk-type-grid { grid-template-columns: repeat(2, 1fr); }
    .sq-tk-progress { overflow-x: auto; padding-bottom: 4px; }
    .sq-tk-bubble { max-width: 90%; }
}

/* Ticket image upload & gallery */
.tk-upload-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tk-upload { position: relative; margin-top: 4px; }
.tk-upload-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text, #1e293b); }
.tk-upload-hint { font-weight: 400; color: var(--dim, #94a3b8); font-size: 12px; }
.tk-upload-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 22px 16px; border: 2px dashed var(--border, #e2e8f0); border-radius: 14px;
    background: var(--surface-2, #f8fafc); cursor: pointer; transition: all .15s; text-align: center;
}
.tk-upload-zone svg { color: var(--blue, #2563eb); opacity: .85; }
.tk-upload-zone span { font-size: 13px; font-weight: 600; color: var(--muted, #64748b); }
.tk-upload-zone em { font-size: 11px; color: var(--dim, #94a3b8); font-style: normal; }
.tk-upload-zone:hover, .tk-upload-zone.dragover {
    border-color: var(--blue, #2563eb); background: var(--blue-soft, #eff6ff);
}
.tk-upload-preview {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px; margin-top: 12px;
}
.tk-upload-thumb {
    position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border, #e2e8f0); background: #fff;
}
.tk-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-upload-thumb span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px;
    font-size: 9px; color: #fff; background: rgba(0,0,0,.55); text-align: center;
}
.tk-upload-remove {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tk-upload-remove:hover { background: var(--red, #dc2626); }
.tk-upload-count { font-size: 12px; color: var(--dim, #94a3b8); margin-top: 8px; }
.tk-upload-error { font-size: 12px; color: var(--red, #dc2626); margin-top: 6px; }

.tk-images {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px; margin-top: 10px;
}
.tk-image-link {
    display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border, #e2e8f0); background: #fff;
    transition: transform .15s, box-shadow .15s;
}
.tk-image-link:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(37,99,235,.15); }
.tk-image-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
    .sq-lc4-head { flex-direction: column; align-items: stretch; }
    .sq-lc4-head-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .sq-lc4-expiry { text-align: left; }
    .sq-lc4-body { grid-template-columns: 1fr; }
    .sq-lc4-key { border-right: none; border-bottom: 1px solid var(--border); }
    .sq-lc3-split { grid-template-columns: 1fr; }
    .sq-lc3-product { order: 1; }
    .sq-lc3-license { order: 2; }
}

@media (max-width: 520px) {
    .sq-lc4-foot { flex-direction: column; align-items: stretch; }
    .sq-lc4-manage { width: 100%; justify-content: center; }
    .sq-lc4-manage em { display: none; }
    .sq-lc4-dl { justify-content: flex-start; }
    .sq-lc3-license-row { flex-direction: column; }
    .sq-lc3-pane-stat {
        flex: none; width: 100%; text-align: left;
        border-left: none; border-top: 1px solid var(--border);
    }
    .sq-lc3-pane-stat .sq-lc3-meter { margin-left: 0; max-width: none; }
    .sq-lc3-actionbar { flex-wrap: wrap; }
    .sq-lc3-action-right { width: 100%; }
    .sq-lc3-manage-btn { width: 100%; justify-content: center; }
    .sq-lc3-manage-hint { display: none; }
}

/* ========== Shop v18 SaaS Console UI ========== */
.sq-app {
    --shell-bg: #eef2f8;
    --shell-surface: #ffffff;
    --shell-border: #dbe3ef;
    --shell-muted: #64748b;
    --shell-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #f8fafc 0%, var(--shell-bg) 220px, #e8edf5 100%);
    background-attachment: fixed;
}

.sq-header-v2 {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--shell-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.sq-nav-item {
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--muted);
    background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.sq-nav a.sq-nav-item:hover, .sq-nav button.sq-nav-item:hover { color: var(--text); background: #f1f5f9; }
.sq-nav .sq-nav-active { color: var(--blue) !important; background: var(--blue-soft); }
.sq-nav-dropdown-panel-v2 {
    width: 520px; padding: 14px; border-radius: 16px;
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-nav-dropdown-head {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--dim); padding: 4px 8px 10px;
}
.sq-nav-dropdown-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.sq-balance-v2 {
    background: #fff; border-color: var(--shell-border);
    color: var(--blue); font-weight: 700;
}
.sq-nav-logout { color: var(--dim); }

.sq-footer-v4 {
    margin-top: 48px; padding: 40px 24px 28px;
    background: #0f172a; color: #cbd5e1; border-top: none;
}
.sq-footer-grid {
    max-width: var(--max); margin: 0 auto 24px;
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px;
}
.sq-footer-brand strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.sq-footer-brand p { font-size: 13px; line-height: 1.7; color: #94a3b8; }
.sq-footer-col { display: flex; flex-direction: column; gap: 10px; }
.sq-footer-col span {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #64748b; margin-bottom: 4px;
}
.sq-footer-col a { color: #cbd5e1; font-size: 14px; }
.sq-footer-col a:hover { color: #fff; }
.sq-footer-bottom {
    max-width: var(--max); margin: 0 auto; padding-top: 18px; border-top: 1px solid #1e293b;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sq-footer-bottom p, .sq-footer-bottom a { font-size: 12px; color: #64748b; }
.sq-footer-bottom a:hover { color: #fff; }

.sq-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 24px;
}
.sq-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.sq-section-kicker, .sq-home-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 8px;
}
.sq-section-head h2, .sq-home-section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.sq-section-desc, .sq-home-section-head p { font-size: 15px; color: var(--muted); max-width: 640px; }

.sq-home-hero-v2 {
    position: relative; padding: 48px 24px 0; overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--shell-border);
}
.sq-home-hero-v2 .sq-home-hero-inner {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch;
}
.sq-home-hero-v2 h1 { font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.sq-home-hero-v2 h1 span { color: var(--blue); }
.sq-home-console-card {
    background: var(--shell-surface); border: 1px solid var(--shell-border);
    border-radius: 20px; padding: 22px; box-shadow: var(--shell-shadow);
}
.sq-home-console-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.sq-home-console-head strong { font-size: 15px; }
.sq-home-console-live {
    font-size: 11px; font-weight: 700; color: var(--ok);
    background: var(--ok-soft); padding: 4px 10px; border-radius: 999px;
}
.sq-home-console-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.sq-home-console-stat {
    padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--shell-border);
}
.sq-home-console-stat span { display: block; font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.sq-home-console-stat strong { font-size: 15px; font-weight: 700; }
.sq-home-console-links {
    display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--shell-border);
}
.sq-home-console-links a {
    font-size: 12px; font-weight: 600; color: var(--blue);
    padding: 6px 10px; border-radius: 8px; background: var(--blue-soft);
}

.sq-home-subnav-v2 {
    position: sticky; top: var(--header-h); z-index: 90;
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--shell-border);
}
.sq-home-subnav-v2 .sq-home-subnav-track {
    max-width: var(--max); margin: 0 auto; padding: 10px 24px;
    display: flex; gap: 8px; overflow-x: auto;
}
.sq-home-subnav-v2 .sq-home-subnav-item {
    flex: 0 0 auto; min-width: 150px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; color: inherit;
}
.sq-home-subnav-v2 .sq-home-subnav-item:hover { background: #f8fafc; border-color: var(--shell-border); }
.sq-home-subnav-v2 .sq-home-subnav-item.active {
    background: var(--blue-soft); border-color: var(--blue-border); color: var(--blue);
}
.sq-home-subnav-v2 .sq-home-subnav-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.sq-home-subnav-v2 .sq-home-subnav-item small { display: block; font-size: 11px; color: var(--dim); }
.sq-home-subnav-v2 .sq-home-subnav-item.active small { color: #3b82f6; }

.sq-func-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.sq-func-card {
    display: flex; flex-direction: column; gap: 14px; min-height: 220px;
    padding: 22px; border-radius: 18px; border: 1px solid var(--shell-border);
    background: var(--shell-surface); box-shadow: var(--shell-shadow);
    color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sq-func-card:hover {
    transform: translateY(-2px); border-color: var(--blue-border);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}
.sq-func-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-size: 22px; background: #f8fafc;
}
.sq-func-card-buy .sq-func-icon { background: #eff6ff; }
.sq-func-card-deploy .sq-func-icon { background: #f0fdf4; }
.sq-func-card-api .sq-func-icon { background: #fff7ed; }
.sq-func-card-support .sq-func-icon { background: #fdf2f8; }
.sq-func-card h3 { font-size: 17px; font-weight: 700; }
.sq-func-card p { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.sq-func-link { font-size: 12px; font-weight: 700; color: var(--blue); }

.sq-home-flow-v2 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    list-style: none;
}
.sq-home-flow-v2 .sq-home-flow-step {
    padding: 22px; border-radius: 16px; background: var(--shell-surface);
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-home-cap-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sq-home-cap-grid-v2 .sq-home-cap {
    border-radius: 16px; border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-home-cap-grid-v2 .sq-home-cap-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-size: 20px; background: #f8fafc; margin-bottom: 14px;
}

.sq-pricing-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sq-pricing-v2 .sq-plan {
    border-radius: 18px; border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-pricing-v2 .sq-plan.featured {
    border-color: var(--blue-border); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
}

.sq-home-platform-v2 {
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center;
    padding: 28px; border-radius: 20px; background: var(--shell-surface);
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-home-cta-band-v2 {
    margin-top: 8px; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
}
.sq-home-cta-band-v2 .sq-home-cta-band-inner {
    padding: 36px 32px; color: #fff;
}
.sq-home-cta-band-v2 h2, .sq-home-cta-band-v2 p { color: #fff; }
.sq-home-cta-band-v2 .sq-btn-primary { background: #fff; color: var(--blue); border-color: #fff; }

.sq-legal-layout {
    display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start;
}
.sq-legal-side {
    position: sticky; top: calc(var(--header-h) + 20px);
    padding: 22px; border-radius: 18px; background: var(--shell-surface);
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-legal-side h2 { font-size: 18px; font-weight: 700; margin: 10px 0 16px; }
.sq-legal-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sq-legal-nav a {
    padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted);
}
.sq-legal-nav a:hover, .sq-legal-nav a.active {
    background: var(--blue-soft); color: var(--blue); font-weight: 600;
}
.sq-legal-side-meta {
    padding-top: 14px; border-top: 1px solid var(--shell-border); font-size: 12px;
}
.sq-legal-side-meta span { display: block; color: var(--dim); margin-bottom: 4px; }
.sq-legal-page-v2 {
    padding: 28px 32px; border-radius: 20px; background: var(--shell-surface);
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-legal-page-v2 .sq-legal-head h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }

.sq-auth-page-v2 { background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%); }
.sq-auth-card-v2 {
    border-radius: 20px; border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}
.sq-auth-tabs-v2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px;
    padding: 4px; background: #f8fafc; border-radius: 12px;
}
.sq-auth-tabs-v2 a {
    text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--muted);
}
.sq-auth-tabs-v2 a.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.sq-auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.sq-auth-back { position: relative; z-index: 1; font-size: 14px; color: var(--dim); }

.sq-page-console .sq-dash {
    border-radius: 20px; overflow: hidden; border: 1px solid var(--shell-border);
    box-shadow: var(--shell-shadow); margin-bottom: 20px;
}
.sq-page-console .sq-acc-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
    padding: 6px; background: #fff; border: 1px solid var(--shell-border);
    border-radius: 14px; box-shadow: var(--shell-shadow);
}
.sq-page-console .sq-acc-tab {
    border: none; background: transparent; padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit;
}
.sq-page-console .sq-acc-tab.active {
    background: var(--blue-soft); color: var(--blue);
}
.sq-page-console .sq-acc-panel,
.sq-page-console .sq-api-card,
.sq-page-console .sq-order-card {
    border-radius: 18px; border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
}

.sq-pay-wechat-shell {
    display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start;
}
.sq-pay-wechat-panel {
    padding: 32px; border-radius: 18px; background: var(--shell-surface);
    border: 1px solid var(--shell-border); box-shadow: var(--shell-shadow);
    text-align: center;
}
.sq-pay-wechat-qr {
    display: inline-flex; padding: 18px; border-radius: 18px;
    background: #fff; border: 1px solid var(--shell-border); margin-bottom: 18px;
}
.sq-pay-wechat-hints strong { display: block; font-size: 16px; margin-bottom: 6px; }
.sq-pay-wechat-hints p { font-size: 13px; color: var(--muted); }
.sq-pay-hero-icon-wechat { background: #07c160; color: #fff; }

@media (max-width: 1024px) {
    .sq-home-hero-v2 .sq-home-hero-inner,
    .sq-home-platform-v2,
    .sq-func-grid,
    .sq-home-flow-v2,
    .sq-home-cap-grid-v2,
    .sq-pricing-v2,
    .sq-footer-grid,
    .sq-legal-layout,
    .sq-pay-wechat-shell { grid-template-columns: 1fr; }
    .sq-nav-dropdown-panel-v2 { width: min(92vw, 420px); }
    .sq-nav-dropdown-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .sq-home-hero-v2 h1 { font-size: 30px; }
    .sq-section-head { flex-direction: column; align-items: flex-start; }
    .sq-legal-side { position: static; }
    .sq-legal-page-v2 { padding: 22px 18px; }
}
