/* ============================================================
 * Enterprise Blue SaaS Theme — 前台兑换页
 * 设计令牌沿用旧变量名，确保所有 inline style="var(--xxx)" 仍生效
 * ============================================================ */
:root {
    /* 主色 */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.18);
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --accent-glow: rgba(37, 99, 235, 0.18);

    /* 中性色 */
    --bg-page: #f4f7fb;
    --bg-dark: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f1f5f9;
    --glass: #ffffff;
    --glass-border: #e5e7eb;
    --border-strong: #cbd5e1;
    --divider: #eef2f7;

    /* 文本 */
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-dim: #64748b;
    --text-muted: #94a3b8;

    /* 状态色 */
    --success: #10b981;
    --success-soft: #ecfdf5;
    --error: #ef4444;
    --error-soft: #fef2f2;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --info: #0ea5e9;
    --info-soft: #f0f9ff;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.14);

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ============ 全局滚动条 ============ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid var(--bg-page);
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

* {
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

/* ============ 装饰背景（极淡蓝色光晕） ============ */
.background-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(at 12% 8%, rgba(37, 99, 235, 0.10) 0px, transparent 45%),
        radial-gradient(at 88% 6%, rgba(14, 165, 233, 0.08) 0px, transparent 45%),
        radial-gradient(at 90% 92%, rgba(37, 99, 235, 0.08) 0px, transparent 45%),
        radial-gradient(at 5% 95%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
        var(--bg-page);
    pointer-events: none;
}

.blob {
    display: none;
}

@keyframes rotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

/* ============ 主容器（卡片） ============ */
.glass-container {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-container::before {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.logo svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-main);
    margin-bottom: 6px;
    background: none;
    -webkit-text-fill-color: var(--text-main);
}

header p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ============ 输入框 ============ */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-shadow: var(--shadow-sm);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--border-strong);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-focus);
}

#tokenInput,
#sessionInput {
    padding-bottom: 50px;
    min-height: 120px;
}

textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

textarea::-webkit-scrollbar {
    display: block;
    width: 8px;
}

/* ============ 主按钮 ============ */
button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
    gap: 8px;
}

button:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: none;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    background: var(--text-muted);
}

button:disabled::after {
    display: none;
}

button::after {
    display: none;
}

/* 次要按钮 */
.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text-main);
    box-shadow: none;
}

/* ============ 辅助卡片 ============ */
.helper-box {
    background: var(--primary-soft);
    border: 1px solid #dbeafe;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 0;
    text-align: center;
    color: var(--text-secondary);
}

.get-token-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.textarea-wrapper {
    position: relative;
    width: 100%;
    display: flex;
}

.get-token-btn-floating {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s, color 0.15s;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.get-token-btn-floating::after {
    display: none;
}

.get-token-btn-floating:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.24);
}

.get-token-btn-floating:active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.get-token-btn-floating:focus-visible {
    outline: none;
    color: #ffffff !important;
    box-shadow: var(--shadow-focus), 0 2px 6px rgba(37, 99, 235, 0.2);
}

.get-token-btn-floating svg {
    width: 14px;
    height: 14px;
}

.hint {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.hint b {
    color: var(--primary);
}

.notice-box {
    margin: 12px 0;
    padding: 12px 14px;
    background: var(--warning-soft);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    text-align: left;
}

.notice-box p {
    color: #92400e !important;
    font-size: 13px !important;
    line-height: 1.55;
    margin: 0 !important;
}

.notice-box b {
    color: #b45309;
}

/* ============ 任务进度 ============ */
.task-progress {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.task-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-progress-header b {
    color: var(--primary);
    text-shadow: none;
    font-weight: 700;
}

.task-progress-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    border: none;
}

.task-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    box-shadow: none;
    transition: width 0.5s ease;
}

.task-progress-bar.error {
    background: linear-gradient(90deg, var(--error), #fb923c);
    box-shadow: none;
}

.status-message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1.55;
}

@keyframes slideUp {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.status-success {
    background: var(--success-soft);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: var(--error-soft);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    margin: 0;
    flex: 0 0 auto;
}

.btn-secondary .loader {
    border-color: rgba(15, 23, 42, 0.18);
    border-top-color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ Tab 导航 ============ */
.main-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 1px;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: var(--primary);
    text-transform: uppercase;
}

/* ============ 公共运行时面板（右侧并发槽） ============ */
.public-runtime-panel {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    width: 220px;
    z-index: 5;
}

.public-runtime-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.public-runtime-title {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.public-runtime-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    color: var(--text-main);
}

.public-runtime-meta {
    color: var(--text-dim);
    font-size: 12px;
    text-align: left;
    line-height: 1.45;
}

.public-slot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.public-slot-box {
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--surface-soft);
    transition: 0.2s ease;
}

.public-slot-box.idle {
    background: var(--surface-soft);
    border-color: var(--glass-border);
}

.public-runtime-panel.load-low .public-runtime-value {
    color: var(--success);
}

.public-runtime-panel.load-low .public-slot-box.occupied {
    background: var(--success);
    border-color: #6ee7b7;
}

.public-runtime-panel.load-mid .public-runtime-value {
    color: #d97706;
}

.public-runtime-panel.load-mid .public-slot-box.occupied {
    background: var(--warning);
    border-color: #fcd34d;
}

.public-runtime-panel.load-high .public-runtime-value {
    color: var(--error);
}

.public-runtime-panel.load-high .public-slot-box.occupied {
    background: var(--error);
    border-color: #fca5a5;
}

.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--surface-soft);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 100;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: none;
}

.tab-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    box-shadow: none;
    transform: none;
}

.tab-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.tab-btn:disabled {
    background: transparent;
    color: var(--text-muted);
}

/* ============ 查询结果 ============ */
.query-result-box {
    margin-top: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    animation: slideUp 0.3s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span:first-child {
    color: var(--text-dim);
    font-size: 14px;
    white-space: nowrap;
}

.result-item b,
.result-item span:last-child {
    color: var(--text-main);
    font-size: 14px;
    font-family: 'SF Mono', 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
    font-variant-numeric: tabular-nums;
    text-align: right;
    word-break: break-all;
    margin-left: 12px;
}

.status-unused {
    color: var(--success) !important;
}

.status-used {
    color: var(--error) !important;
}

/* ============ 复制小按钮（结果页用） ============ */
.copy-btn-mini {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

.copy-btn-mini:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 6px var(--primary-glow);
    transform: none;
}

/* ============ Inline-style 兼容兜底 ============
 * index.html 里有大量历史 inline `style="background: rgba(255, 255, 255, 0.03)"` 等暗色覆层。
 * 在亮色主题下这些会变成"白上加白"看不见，用属性选择器统一替换为浅灰底。
 */
[style*="background: rgba(255,255,255,0.03)"],
[style*="background: rgba(255, 255, 255, 0.03)"],
[style*="background: rgba(255,255,255,0.05)"],
[style*="background: rgba(255, 255, 255, 0.05)"],
[style*="background: rgba(255,255,255,0.02)"],
[style*="background: rgba(255, 255, 255, 0.02)"],
[style*="background:rgba(255,255,255,0.03)"],
[style*="background:rgba(255, 255, 255, 0.03)"] {
    background: var(--surface-soft) !important;
}

[style*="border: 1px solid rgba(255,255,255,0.05)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.05)"],
[style*="border: 1px solid rgba(255,255,255,0.08)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.08)"],
[style*="border: 1px solid rgba(255,255,255,0.1)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.1)"] {
    border-color: var(--glass-border) !important;
}

/* code / 等宽 inline 文本：在亮底下变成深灰 + 蓝字 */
code {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
    font-size: 0.92em;
}

/* index.html 里 `code` 直接 inline 颜色 #fff 的，强制覆盖回深色 */
code[style*="color: #fff"],
code[style*="color:#fff"],
code[style*="color: white"] {
    color: var(--primary) !important;
}

/* 链接默认企业蓝 */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

/* 选择文本时的高亮 */
::selection {
    background: var(--primary);
    color: #ffffff;
}

/* index.html 内联色覆盖：浅紫 / 浅蓝 / 浅红在白底改成深一档同色系 */
[style*="color: #818cf8"] { color: var(--primary) !important; }
[style*="color:#818cf8"] { color: var(--primary) !important; }
[style*="color: #6ee7b7"] { color: #047857 !important; }
[style*="color: #f87171"] { color: #b91c1c !important; }
[style*="color: #fbbf24"] { color: #b45309 !important; }
[style*="color: #fde68a"] { color: #b45309 !important; }
[style*="color: #fff"]:not(.btn-primary):not(button):not(.copy-btn-mini):not([style*="color: #fff5"]) {
    color: var(--text-main) !important;
}
[style*="color:#fff"]:not(.btn-primary):not(button):not(.copy-btn-mini) {
    color: var(--text-main) !important;
}

/* 查询/结果卡片里 inline 的暗色边框 */
[style*="border: 1px solid rgba(255,255,255,0.05)"] { border-color: var(--divider) !important; }
[style*="border: 1px solid rgba(255, 255, 255, 0.05)"] { border-color: var(--divider) !important; }
[style*="border-bottom: 1px solid rgba(255, 255, 255, 0.05)"] { border-bottom-color: var(--divider) !important; }
[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] { border-bottom-color: var(--divider) !important; }
[style*="border-top: 1px solid rgba(255, 255, 255, 0.05)"] { border-top-color: var(--divider) !important; }
[style*="border-top: 1px solid rgba(255,255,255,0.05)"] { border-top-color: var(--divider) !important; }

/* ============ 自助充值中心（仿 cdk.98-xj.com 布局） ============ */
body.recharge-page {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(at 10% 0%, rgba(37, 99, 235, 0.12) 0, transparent 42%),
        radial-gradient(at 90% 8%, rgba(14, 165, 233, 0.10) 0, transparent 40%),
        linear-gradient(180deg, #eef4ff 0%, var(--bg-page) 38%, #f8fafc 100%);
}

.page-shell {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 56px;
    animation: fadeIn 0.45s ease;
}

.site-hero {
    text-align: center;
    margin-bottom: 28px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.site-hero h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    max-width: 560px;
    margin: 0 auto 18px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.feature-badge svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
}

.recharge-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-lg);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.card-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-head p {
    color: var(--text-dim);
    font-size: 13px;
}

.flow-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-soft);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.flow-badge.pending { background: #f1f5f9; color: #64748b; }
.flow-badge.cdk_ok { background: var(--info-soft); color: #0369a1; border-color: #bae6fd; }
.flow-badge.running { background: var(--primary-soft); color: var(--primary); border-color: #bfdbfe; }
.flow-badge.success { background: var(--success-soft); color: #047857; border-color: #a7f3d0; }
.flow-badge.failed,
.flow-badge.manual { background: var(--error-soft); color: #b91c1c; border-color: #fecaca; }

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    border: 1px solid var(--divider);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.active .step-num {
    background: var(--primary);
    color: #fff;
}

.step-item.done .step-num {
    background: var(--success);
    color: #fff;
}

.step-item.active,
.step-item.done {
    color: var(--text-main);
}

.step-line {
    width: 36px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    flex-shrink: 0;
}

.notice-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--warning-soft);
    border: 1px solid #fde68a;
}

.notice-banner svg {
    width: 18px;
    height: 18px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.notice-banner p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.55;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.field-hint {
    margin-top: -8px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.cdk-confirmed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--success-soft);
    border: 1px solid #a7f3d0;
    font-size: 13px;
    color: #065f46;
}

.cdk-confirmed code {
    background: rgba(255, 255, 255, 0.7);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 15px;
}

button.is-loading .btn-text {
    opacity: 0.85;
}

.task-progress-text {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.query-result-card {
    text-align: left;
    background: var(--surface-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 4px 14px;
}

.query-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 14px;
}

.query-row:last-child {
    border-bottom: none;
}

.query-row span {
    color: var(--text-dim);
}

.query-row strong {
    color: var(--text-main);
    font-weight: 600;
}

.status-processing {
    color: var(--warning) !important;
}

.faq-panel {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.faq-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    list-style: none;
}

.faq-panel summary::-webkit-details-marker {
    display: none;
}

.faq-panel ul {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}

.recharge-page .public-runtime-panel {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .page-shell {
        width: calc(100% - 20px);
        padding: 24px 0 40px;
    }

    .recharge-card {
        padding: 20px 16px;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-label {
        font-size: 12px;
    }

    .step-line {
        width: 20px;
    }
}

/* ============ 套餐说明 / 发票助手 ============ */
.plan-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.plan-card.highlight {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.plan-card h3 {
    font-size: 15px;
    font-weight: 700;
}

.plan-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-dim);
}

.plan-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.plan-tag.pro {
    background: var(--primary-soft);
    color: var(--primary);
}

.region-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.feature-badge.feature-link {
    text-decoration: none;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
}

.feature-badge.feature-link:hover {
    color: var(--primary);
    border-color: #bfdbfe;
}

.plan-confirmed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    border: 1px solid #bfdbfe;
    font-size: 13px;
    color: #1e3a8a;
}

.plan-confirmed strong {
    font-weight: 700;
}

.compact-hero {
    margin-bottom: 20px;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
}

.back-home-link:hover {
    color: var(--primary);
}

.subscription-card .guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guide-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-step h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.guide-step p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subscription-query-section {
    margin-top: 4px;
}

.subscription-field-hint {
    margin-top: 10px;
    margin-bottom: 14px;
}

.subscription-query-actions {
    margin-top: 0;
}

.subscription-query-actions button {
    width: 100%;
}

button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.is-loading .loader {
    display: block;
}

.subscription-result {
    margin-top: 18px;
}

.subscription-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.subscription-result-head h2 {
    font-size: 16px;
    margin: 0;
}

.subscription-billing-actions {
    margin-top: 14px;
}

.subscription-guide-panel {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    border: 1px solid var(--glass-border);
}

.subscription-guide-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 0;
}

.subscription-guide-panel[open] summary {
    margin-bottom: 12px;
}

.action-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .plan-showcase {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FF01 风格新版前台 UI
   仅覆盖视觉样式，不修改业务逻辑
   ========================================================= */

:root {
    --primary: #111827;
    --primary-hover: #000000;
    --primary-soft: #f3f4f6;
    --primary-glow: rgba(17, 24, 39, .12);

    --bg-page: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --surface-hover: #f3f4f6;

    --glass-border: #e5e7eb;
    --border-strong: #d1d5db;
    --divider: #eef0f2;

    --text-main: #111827;
    --text-secondary: #374151;
    --text-dim: #6b7280;
    --text-muted: #9ca3af;

    --success: #16a34a;
    --success-soft: #f0fdf4;
    --error: #dc2626;
    --error-soft: #fef2f2;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --info: #2563eb;
    --info-soft: #eff6ff;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.03);
    --shadow: 0 4px 16px rgba(0,0,0,.05);
    --shadow-lg: 0 15px 45px rgba(0,0,0,.08);
    --shadow-focus: 0 0 0 4px rgba(17,24,39,.08);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

/* ---------- 页面 ---------- */

html,
body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        sans-serif !important;
}

body.recharge-page {
    min-height: 100vh;
    display: block;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255,255,255,.95),
            transparent 42%
        ),
        #f7f8fa;
    color: var(--text-main);
    overflow-x: hidden;
}

.page-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 70px;
}

/* ---------- 顶部 Hero ---------- */

.site-hero {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 850px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.site-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.045em;
    color: #111827;
}

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s ease;
}

.feature-badge svg {
    width: 14px;
    height: 14px;
}

.feature-badge:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
    transform: translateY(-1px);
}

.feature-link {
    color: #111827;
}

/* ---------- 套餐 ---------- */

.plan-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 10px;
}

.plan-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
    transition: .2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.plan-card.highlight {
    border-color: #111827;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.plan-card h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.plan-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.plan-card strong {
    color: #111827;
}

.plan-tag {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.plan-tag.pro {
    background: #111827;
    color: #fff;
}

.region-hint {
    margin: 10px 0 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* ---------- 主卡片 ---------- */

.recharge-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.card-head h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.card-head p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

/* ---------- 状态 ---------- */

.flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.flow-badge.success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.flow-badge.failed {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.flow-badge.running,
.flow-badge.cdk_ok {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.flow-badge.manual {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

/* ---------- 步骤条 ---------- */

.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.step-num {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.step-item.active {
    color: #111827;
}

.step-item.active .step-num {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.step-item.done {
    color: #111827;
}

.step-item.done .step-num {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.step-line {
    flex: 1;
    height: 1px;
    margin: 0 14px;
    background: #e5e7eb;
}

/* ---------- 提示 ---------- */

.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.notice-banner svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: #6b7280;
}

.notice-banner p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- Tabs ---------- */

.tab-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border-radius: 10px;
    background: #f3f4f6;
}

.tab-btn {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 9px 12px;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.tab-btn:hover {
    color: #111827;
}

.tab-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ---------- 表单 ---------- */

.field-label {
    display: block;
    margin-bottom: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
}

.input-group {
    gap: 12px;
}

input,
textarea,
select {
    border: 1px solid #d1d5db !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #111827 !important;
    transition: .2s ease;
}

input {
    min-height: 46px;
    padding: 12px 14px !important;
}

textarea {
    min-height: 120px;
    padding: 13px 14px !important;
    line-height: 1.65;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #9ca3af !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17,24,39,.08) !important;
}

/* ---------- 按钮 ---------- */

.btn-primary {
    min-height: 46px;
    border: 1px solid #111827 !important;
    border-radius: 11px !important;
    background: #111827 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #000 !important;
    border-color: #000 !important;
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-lg {
    min-height: 48px;
}

.btn-secondary {
    min-height: 42px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #4b5563 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* ---------- Session ---------- */

.textarea-wrapper {
    position: relative;
}

.get-token-btn-floating {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: rgba(255,255,255,.96);
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,.04);
}

.get-token-btn-floating:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #fff;
}

.field-hint {
    color: #9ca3af !important;
    font-size: 11px !important;
    line-height: 1.6;
}

/* ---------- CDK / 已确认 ---------- */

.cdk-confirmed,
.plan-confirmed {
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
}

/* ---------- 进度 ---------- */

.task-progress {
    margin-top: 24px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f9fafb;
}

.task-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #374151;
    font-size: 12px;
}

.task-progress-header b {
    color: #111827;
}

.task-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.task-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #111827;
    transition: width .3s ease;
}

.task-progress-text {
    margin: 9px 0 0;
    color: #6b7280;
    font-size: 11px;
}

/* ---------- 状态信息 ---------- */

.status-message {
    margin-top: 16px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.6;
}

.status-success {
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-error {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ---------- FAQ ---------- */

.faq-panel {
    margin-top: 14px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
}

.faq-panel summary {
    padding: 17px 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-panel summary::-webkit-details-marker {
    display: none;
}

.faq-panel summary::after {
    content: "+";
    float: right;
    color: #9ca3af;
    font-size: 17px;
    font-weight: 400;
}

.faq-panel[open] summary::after {
    content: "−";
}

.faq-panel ul {
    margin: 0;
    padding: 0 20px 18px 36px;
}

.faq-panel li {
    margin: 8px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- 前台并发 ---------- */

.public-runtime-panel {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
}

.public-runtime-layout {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px 16px;
}

.public-runtime-title {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.public-runtime-value {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.public-runtime-meta {
    color: #9ca3af;
    font-size: 11px;
}

.public-slot-grid {
    grid-column: 1 / -1;
}

/* ---------- subscription 页面 ---------- */

.subscription-page .site-hero {
    margin-bottom: 28px;
}

.compact-hero h1 {
    font-size: 34px;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.back-home-link:hover {
    color: #111827;
}

.back-home-link svg {
    width: 14px;
    height: 14px;
}

.subscription-card {
    max-width: 850px;
    margin: 0 auto;
}

.subscription-result {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef0f2;
}

.subscription-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.subscription-result-head h2 {
    margin: 0;
    font-size: 18px;
}

.query-result-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.query-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 12px;
}

.query-row:last-child {
    border-bottom: 0;
}

.query-row span {
    color: #6b7280;
}

.query-row strong {
    color: #111827;
    text-align: right;
}

.subscription-billing-actions {
    margin-top: 15px;
}

.action-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.guide-step {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f1f3;
}

.guide-step:last-child {
    border-bottom: 0;
}

.guide-step-num {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.guide-step h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.guide-step p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 680px);
        padding: 28px 0 45px;
    }

    .site-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .plan-showcase {
        grid-template-columns: 1fr;
    }

    .recharge-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .card-head {
        align-items: flex-start;
    }

    .step-label {
        display: none;
    }

    .step-line {
        margin: 0 10px;
    }

    .public-runtime-layout {
        grid-template-columns: auto auto;
    }

    .public-runtime-meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .feature-badges {
        gap: 6px;
    }

    .feature-badge {
        font-size: 11px;
    }

    .site-hero h1 {
        font-size: 29px;
    }

    .card-head h2 {
        font-size: 19px;
    }

    .flow-badge {
        font-size: 11px;
    }

    .notice-banner {
        padding: 11px;
    }
}


/* =========================================================
   FF01 风格新版前台 UI
   仅覆盖视觉样式，不修改业务逻辑
   ========================================================= */

:root {
    --primary: #111827;
    --primary-hover: #000000;
    --primary-soft: #f3f4f6;
    --primary-glow: rgba(17, 24, 39, .12);

    --bg-page: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --surface-hover: #f3f4f6;

    --glass-border: #e5e7eb;
    --border-strong: #d1d5db;
    --divider: #eef0f2;

    --text-main: #111827;
    --text-secondary: #374151;
    --text-dim: #6b7280;
    --text-muted: #9ca3af;

    --success: #16a34a;
    --success-soft: #f0fdf4;
    --error: #dc2626;
    --error-soft: #fef2f2;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --info: #2563eb;
    --info-soft: #eff6ff;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.03);
    --shadow: 0 4px 16px rgba(0,0,0,.05);
    --shadow-lg: 0 15px 45px rgba(0,0,0,.08);
    --shadow-focus: 0 0 0 4px rgba(17,24,39,.08);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

/* ---------- 页面 ---------- */

html,
body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        sans-serif !important;
}

body.recharge-page {
    min-height: 100vh;
    display: block;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255,255,255,.95),
            transparent 42%
        ),
        #f7f8fa;
    color: var(--text-main);
    overflow-x: hidden;
}

.page-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 70px;
}

/* ---------- 顶部 Hero ---------- */

.site-hero {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 850px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.site-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.045em;
    color: #111827;
}

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s ease;
}

.feature-badge svg {
    width: 14px;
    height: 14px;
}

.feature-badge:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
    transform: translateY(-1px);
}

.feature-link {
    color: #111827;
}

/* ---------- 套餐 ---------- */

.plan-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 10px;
}

.plan-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
    transition: .2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.plan-card.highlight {
    border-color: #111827;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.plan-card h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.plan-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.plan-card strong {
    color: #111827;
}

.plan-tag {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.plan-tag.pro {
    background: #111827;
    color: #fff;
}

.region-hint {
    margin: 10px 0 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* ---------- 主卡片 ---------- */

.recharge-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.card-head h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.card-head p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

/* ---------- 状态 ---------- */

.flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.flow-badge.success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.flow-badge.failed {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.flow-badge.running,
.flow-badge.cdk_ok {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.flow-badge.manual {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

/* ---------- 步骤条 ---------- */

.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.step-num {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.step-item.active {
    color: #111827;
}

.step-item.active .step-num {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.step-item.done {
    color: #111827;
}

.step-item.done .step-num {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.step-line {
    flex: 1;
    height: 1px;
    margin: 0 14px;
    background: #e5e7eb;
}

/* ---------- 提示 ---------- */

.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.notice-banner svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: #6b7280;
}

.notice-banner p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- Tabs ---------- */

.tab-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border-radius: 10px;
    background: #f3f4f6;
}

.tab-btn {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 9px 12px;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.tab-btn:hover {
    color: #111827;
}

.tab-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ---------- 表单 ---------- */

.field-label {
    display: block;
    margin-bottom: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
}

.input-group {
    gap: 12px;
}

input,
textarea,
select {
    border: 1px solid #d1d5db !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #111827 !important;
    transition: .2s ease;
}

input {
    min-height: 46px;
    padding: 12px 14px !important;
}

textarea {
    min-height: 120px;
    padding: 13px 14px !important;
    line-height: 1.65;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #9ca3af !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17,24,39,.08) !important;
}

/* ---------- 按钮 ---------- */

.btn-primary {
    min-height: 46px;
    border: 1px solid #111827 !important;
    border-radius: 11px !important;
    background: #111827 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #000 !important;
    border-color: #000 !important;
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-lg {
    min-height: 48px;
}

.btn-secondary {
    min-height: 42px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #4b5563 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* ---------- Session ---------- */

.textarea-wrapper {
    position: relative;
}

.get-token-btn-floating {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: rgba(255,255,255,.96);
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,.04);
}

.get-token-btn-floating:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #fff;
}

.field-hint {
    color: #9ca3af !important;
    font-size: 11px !important;
    line-height: 1.6;
}

/* ---------- CDK / 已确认 ---------- */

.cdk-confirmed,
.plan-confirmed {
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
}

/* ---------- 进度 ---------- */

.task-progress {
    margin-top: 24px;
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f9fafb;
}

.task-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #374151;
    font-size: 12px;
}

.task-progress-header b {
    color: #111827;
}

.task-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.task-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #111827;
    transition: width .3s ease;
}

.task-progress-text {
    margin: 9px 0 0;
    color: #6b7280;
    font-size: 11px;
}

/* ---------- 状态信息 ---------- */

.status-message {
    margin-top: 16px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.6;
}

.status-success {
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-error {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ---------- FAQ ---------- */

.faq-panel {
    margin-top: 14px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
}

.faq-panel summary {
    padding: 17px 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-panel summary::-webkit-details-marker {
    display: none;
}

.faq-panel summary::after {
    content: "+";
    float: right;
    color: #9ca3af;
    font-size: 17px;
    font-weight: 400;
}

.faq-panel[open] summary::after {
    content: "−";
}

.faq-panel ul {
    margin: 0;
    padding: 0 20px 18px 36px;
}

.faq-panel li {
    margin: 8px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- 前台并发 ---------- */

.public-runtime-panel {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
}

.public-runtime-layout {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px 16px;
}

.public-runtime-title {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.public-runtime-value {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.public-runtime-meta {
    color: #9ca3af;
    font-size: 11px;
}

.public-slot-grid {
    grid-column: 1 / -1;
}

/* ---------- subscription 页面 ---------- */

.subscription-page .site-hero {
    margin-bottom: 28px;
}

.compact-hero h1 {
    font-size: 34px;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
}

.back-home-link:hover {
    color: #111827;
}

.back-home-link svg {
    width: 14px;
    height: 14px;
}

.subscription-card {
    max-width: 850px;
    margin: 0 auto;
}

.subscription-result {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eef0f2;
}

.subscription-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.subscription-result-head h2 {
    margin: 0;
    font-size: 18px;
}

.query-result-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.query-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 12px;
}

.query-row:last-child {
    border-bottom: 0;
}

.query-row span {
    color: #6b7280;
}

.query-row strong {
    color: #111827;
    text-align: right;
}

.subscription-billing-actions {
    margin-top: 15px;
}

.action-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.guide-step {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f1f3;
}

.guide-step:last-child {
    border-bottom: 0;
}

.guide-step-num {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.guide-step h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.guide-step p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 680px);
        padding: 28px 0 45px;
    }

    .site-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .plan-showcase {
        grid-template-columns: 1fr;
    }

    .recharge-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .card-head {
        align-items: flex-start;
    }

    .step-label {
        display: none;
    }

    .step-line {
        margin: 0 10px;
    }

    .public-runtime-layout {
        grid-template-columns: auto auto;
    }

    .public-runtime-meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .feature-badges {
        gap: 6px;
    }

    .feature-badge {
        font-size: 11px;
    }

    .site-hero h1 {
        font-size: 29px;
    }

    .card-head h2 {
        font-size: 19px;
    }

    .flow-badge {
        font-size: 11px;
    }

    .notice-banner {
        padding: 11px;
    }
}


/* ===== FF01 FINAL DARK THEME ===== */

html, body {
    background: #06101f !important;
    color: #eef6ff !important;
}

body.recharge-page {
    display: block !important;
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 8% 5%, rgba(35,92,190,.38), transparent 35%),
        radial-gradient(circle at 92% 8%, rgba(24,181,181,.25), transparent 34%),
        linear-gradient(135deg,#071a34 0%,#050e1c 55%,#071c29 100%) !important;
}

.background-blobs {
    display: none !important;
}

.page-shell {
    width: min(1020px, calc(100% - 36px)) !important;
    margin: auto !important;
    padding: 45px 0 65px !important;
}

.site-hero {
    max-width: 1020px !important;
    margin: 0 auto 30px !important;
    text-align: left !important;
}

.hero-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #b8cce5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.hero-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3de0d2;
    box-shadow: 0 0 12px rgba(61,224,210,.8);
}

.site-hero h1 {
    margin: 0 0 8px !important;
    color: #f5f9ff !important;
    background: none !important;
    -webkit-text-fill-color: #f5f9ff !important;
    font-size: clamp(36px,5vw,50px) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
}

.hero-subtitle {
    margin: 0 !important;
    color: #91a9c6 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}

.feature-badges {
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 17px !important;
}

.feature-badge {
    min-height: 30px;
    padding: 6px 11px !important;
    border: 1px solid rgba(87,137,199,.30) !important;
    border-radius: 999px !important;
    background: rgba(13,34,59,.62) !important;
    color: #b9cce2 !important;
    font-size: 11px !important;
}

.feature-badge svg {
    width: 13px !important;
    height: 13px !important;
    color: #3de0d2 !important;
}

.plan-showcase {
    display: grid !important;
    grid-template-columns: repeat(3,1fr) !important;
    gap: 12px !important;
    margin-bottom: 7px !important;
}

.plan-card {
    min-height: 118px;
    padding: 17px !important;
    border: 1px solid rgba(85,133,190,.27) !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg,rgba(17,42,72,.96),rgba(8,26,48,.96)) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.20) !important;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(61,224,210,.40) !important;
}

.plan-card.highlight {
    border-color: rgba(61,224,210,.62) !important;
    background: linear-gradient(145deg,rgba(18,55,75,.98),rgba(8,30,50,.98)) !important;
}

.plan-card h3 {
    color: #f2f7ff !important;
    font-size: 14px !important;
}

.plan-card p {
    color: #91a9c4 !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
}

.plan-tag {
    background: rgba(70,96,128,.35) !important;
    color: #a9bed7 !important;
    border-color: rgba(100,140,180,.20) !important;
}

.plan-tag.pro {
    background: rgba(25,130,127,.22) !important;
    color: #62ddd4 !important;
    border-color: rgba(61,224,210,.20) !important;
}

.region-hint {
    margin: 8px 0 18px !important;
    color: #718aa7 !important;
    text-align: left !important;
    font-size: 10px !important;
}

.recharge-card {
    padding: 25px !important;
    border: 1px solid rgba(83,133,191,.29) !important;
    border-radius: 19px !important;
    background: linear-gradient(145deg,rgba(14,35,61,.97),rgba(7,23,42,.97)) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.32) !important;
}

.card-head h2 {
    color: #f3f8ff !important;
    font-size: 20px !important;
}

.card-head p {
    color: #7892b0 !important;
}

.flow-badge {
    border-color: rgba(95,139,190,.30) !important;
    background: rgba(42,69,101,.45) !important;
    color: #aec3dc !important;
}

.stepper {
    padding: 8px 11px !important;
    border: 1px solid rgba(82,126,178,.22) !important;
    border-radius: 12px !important;
    background: rgba(4,18,34,.48) !important;
}

.step-item {
    color: #66809f !important;
    font-size: 11px !important;
}

.step-item.active {
    color: #f1f7ff !important;
}

.step-num {
    width: 27px !important;
    height: 27px !important;
    border-color: rgba(84,126,179,.30) !important;
    background: rgba(44,70,104,.55) !important;
    color: #7894b5 !important;
}

.step-item.active .step-num {
    background: #5b87ff !important;
    border-color: #6a91ff !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(91,135,255,.12);
}

.step-line {
    background: rgba(86,125,169,.25) !important;
}

.notice-banner {
    padding: 11px 13px !important;
    border: 1px solid rgba(210,163,61,.38) !important;
    border-radius: 11px !important;
    background: rgba(115,88,38,.20) !important;
}

.notice-banner svg {
    color: #e7bd6c !important;
}

.notice-banner p {
    color: #d9bd83 !important;
    font-size: 10px !important;
}

.tab-nav {
    margin-bottom: 20px !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(84,127,176,.24) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.tab-btn {
    position: relative;
    padding: 10px 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7892b1 !important;
}

.tab-btn.active {
    color: #f2f7ff !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg,#3de0d2,#5f8fff);
}

.field-label {
    color: #c8d9eb !important;
    font-size: 11px !important;
}

input,
textarea,
select {
    border: 1px solid rgba(76,122,175,.38) !important;
    border-radius: 10px !important;
    background: rgba(4,18,34,.68) !important;
    color: #edf5ff !important;
    box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #638dff !important;
    box-shadow: 0 0 0 3px rgba(91,135,255,.12) !important;
}

input::placeholder,
textarea::placeholder {
    color: #536d8a !important;
}

.get-token-btn-floating {
    border-color: rgba(91,137,194,.30) !important;
    background: rgba(18,39,65,.95) !important;
    color: #a4c2e0 !important;
}

.btn-primary {
    min-height: 45px !important;
    border: 1px solid rgba(118,151,255,.70) !important;
    border-radius: 10px !important;
    background: linear-gradient(100deg,#638fff,#4e79eb,#456fe0) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(54,93,194,.25) !important;
    font-weight: 700 !important;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(100deg,#719aff,#5882f1,#4d77e8) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: rgba(80,121,171,.30) !important;
    background: rgba(14,34,58,.55) !important;
    color: #9db4ce !important;
}

.cdk-confirmed,
.plan-confirmed {
    border-color: rgba(61,224,210,.22) !important;
    background: rgba(27,91,91,.14) !important;
}

.task-progress {
    border-color: rgba(80,126,179,.25) !important;
    background: rgba(7,23,41,.62) !important;
}

.task-progress-track {
    background: rgba(74,104,137,.25) !important;
}

.task-progress-bar {
    background: linear-gradient(90deg,#3de0d2,#5b87ff) !important;
}

.status-success {
    border-color: rgba(57,197,145,.30) !important;
    background: rgba(24,103,76,.17) !important;
    color: #72ddb8 !important;
}

.status-error {
    border-color: rgba(238,87,99,.30) !important;
    background: rgba(125,37,48,.17) !important;
    color: #ff9ba3 !important;
}

.faq-panel,
.public-runtime-panel {
    border-color: rgba(80,126,179,.24) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg,rgba(13,32,56,.93),rgba(8,23,41,.91)) !important;
    box-shadow: 0 7px 25px rgba(0,0,0,.16) !important;
}

.faq-panel summary {
    color: #c5d6e9 !important;
}

.faq-panel li {
    color: #7891ae !important;
}

.public-runtime-title {
    color: #7f98b4 !important;
}

.public-runtime-value {
    color: #40ddd2 !important;
}

.public-runtime-meta {
    color: #7089a6 !important;
}

@media (max-width: 800px) {
    .page-shell {
        width: calc(100% - 24px) !important;
        padding: 30px 0 45px !important;
    }

    .site-hero {
        text-align: center !important;
    }

    .feature-badges {
        justify-content: center !important;
    }

    .plan-showcase {
        grid-template-columns: 1fr !important;
    }

    .region-hint {
        text-align: center !important;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: calc(100% - 16px) !important;
        padding-top: 22px !important;
    }

    .site-hero h1 {
        font-size: 30px !important;
    }

    .recharge-card {
        padding: 18px 14px !important;
    }

    .step-label {
        display: inline !important;
        font-size: 9px !important;
    }
}

/* ===== END FF01 FINAL DARK THEME ===== */


/* =========================================================
   AI.888SHOP.ONL EXACT LAYOUT
   ========================================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background: #06101f !important;
}

body.recharge-page {
    display: block !important;
    min-height: 100vh !important;

    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(40, 94, 190, .38),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 7%,
            rgba(24, 190, 190, .25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071b37 0%,
            #050e1d 52%,
            #071d29 100%
        ) !important;
}

.background-blobs {
    display: none !important;
}

.page-shell {
    width: min(1150px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding: 40px 0 55px !important;
}

/* HERO */

.site-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 460px !important;
    align-items: end !important;
    gap: 35px !important;

    margin-bottom: 30px !important;
    text-align: left !important;
}

.hero-main {
    min-width: 0;
}

.hero-eyebrow {
    display: flex !important;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px !important;

    color: #c2d5eb !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.hero-eyebrow::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #3de0d2;

    box-shadow:
        0 0 12px rgba(61,224,210,.8);
}

.site-hero h1 {
    margin: 0 0 8px !important;

    color: #f3f7ff !important;
    background: none !important;
    -webkit-text-fill-color: #f3f7ff !important;

    font-size: 50px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
}

.hero-subtitle {
    max-width: 680px !important;

    margin: 0 !important;

    color: #a1b7d1 !important;

    font-size: 13px !important;
    line-height: 1.7 !important;
}

.feature-badges {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;

    gap: 8px !important;
    margin-top: 17px !important;
}

.feature-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;

    padding: 6px 11px !important;

    border: 1px solid rgba(76,128,187,.34) !important;
    border-radius: 999px !important;

    background: rgba(8,29,52,.48) !important;

    color: #bad0e7 !important;

    font-size: 11px !important;
    text-decoration: none !important;
}

.feature-badge svg {
    width: 13px !important;
    height: 13px !important;

    color: #3de0d2 !important;
}

/* HERO STATUS */

.hero-status {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
}

.hero-buy-card,
.hero-online-card {
    min-height: 70px;

    padding: 13px 15px !important;

    border: 1px solid rgba(77,129,187,.32) !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            145deg,
            rgba(18,44,73,.88),
            rgba(10,29,51,.88)
        ) !important;

    box-sizing: border-box;
}

.hero-buy-card {
    border-color: rgba(61,224,210,.60) !important;
}

.hero-buy-card strong,
.hero-online-card strong {
    display: block;

    color: #f2f7ff !important;

    font-size: 16px !important;
    font-weight: 750 !important;
}

.hero-buy-card span,
.hero-online-card span {
    display: block;

    margin-top: 4px;

    color: #7f9bb9 !important;

    font-size: 10px !important;
}

.hero-online-card small {
    display: block;

    margin-bottom: 5px;

    color: #88a3c1 !important;

    font-size: 9px !important;
}

.hero-online-card strong {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-online-card strong i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #3de0d2;

    box-shadow: 0 0 10px rgba(61,224,210,.75);
}

/* MAIN */

.main-grid {
    display: grid !important;
    grid-template-columns: 310px minmax(0, 1fr) !important;
    gap: 18px !important;

    align-items: start !important;
}

/* LEFT PLANS */

.plan-showcase {
    display: block !important;

    margin: 0 !important;
    padding: 18px !important;

    border: 1px solid rgba(77,128,185,.30) !important;
    border-radius: 17px !important;

    background:
        linear-gradient(
            145deg,
            rgba(18,39,68,.94),
            rgba(9,27,49,.94)
        ) !important;

    box-sizing: border-box;
}

.plan-showcase-title h2 {
    margin: 0 0 6px !important;

    color: #e9f2fd !important;

    font-size: 14px !important;
    font-weight: 750 !important;
}

.plan-showcase-title p {
    margin: 0 0 14px !important;

    color: #7f98b5 !important;

    font-size: 10px !important;
    line-height: 1.7 !important;
}

.plan-card {
    min-height: auto !important;

    margin: 0 0 9px !important;
    padding: 14px !important;

    border: 1px solid rgba(74,119,174,.28) !important;
    border-radius: 13px !important;

    background:
        rgba(6,23,43,.65) !important;

    box-shadow: none !important;
}

.plan-card:hover {
    transform: none !important;

    border-color: rgba(88,139,198,.45) !important;
}

.plan-card.highlight {
    border-color: rgba(61,224,210,.45) !important;

    background:
        linear-gradient(
            145deg,
            rgba(14,52,72,.76),
            rgba(8,29,49,.72)
        ) !important;
}

.plan-card-head {
    margin-bottom: 8px !important;
}

.plan-card h3 {
    color: #eaf3ff !important;

    font-size: 14px !important;
}

.plan-card p {
    color: #92a9c3 !important;

    font-size: 10px !important;
    line-height: 1.7 !important;
}

.plan-tag {
    padding: 4px 7px !important;

    border-radius: 999px !important;

    background: rgba(65,87,116,.35) !important;
    color: #9db4cd !important;

    font-size: 9px !important;
}

.plan-tag.pro {
    background: rgba(29,126,126,.22) !important;
    color: #60ddd4 !important;
}

.region-hint {
    margin: 8px 0 0 !important;

    color: #7189a5 !important;

    font-size: 9px !important;
    text-align: left !important;
}

/* RIGHT CARD */

.recharge-card {
    margin: 0 !important;
    padding: 25px !important;

    border: 1px solid rgba(79,130,188,.32) !important;
    border-radius: 18px !important;

    background:
        linear-gradient(
            145deg,
            rgba(15,37,65,.96),
            rgba(8,24,44,.96)
        ) !important;

    box-shadow:
        0 18px 50px rgba(0,0,0,.28) !important;

    box-sizing: border-box;
}

.card-head {
    margin-bottom: 19px !important;
}

.card-head h2 {
    margin: 0 0 4px !important;

    color: #f3f8ff !important;

    font-size: 20px !important;
}

.card-head p {
    color: #84a0bd !important;

    font-size: 11px !important;
}

/* STEPPER */

.stepper {
    margin-bottom: 17px !important;
    padding: 8px 11px !important;

    border: 1px solid rgba(69,111,161,.28) !important;
    border-radius: 11px !important;

    background: rgba(4,18,34,.52) !important;
}

.step-item {
    color: #6e89a8 !important;

    font-size: 10px !important;
}

.step-item.active {
    color: #f0f6ff !important;
}

.step-num {
    width: 27px !important;
    height: 27px !important;

    background: rgba(40,69,104,.65) !important;

    border-color: rgba(80,123,177,.32) !important;
}

.step-item.active .step-num {
    background: #5b87ff !important;

    border-color: #6b95ff !important;

    box-shadow:
        0 0 0 4px rgba(91,135,255,.12);
}

/* NOTICE */

.notice-banner {
    margin-bottom: 18px !important;

    padding: 11px 13px !important;

    border: 1px solid rgba(208,159,53,.40) !important;
    border-radius: 11px !important;

    background: rgba(115,88,38,.19) !important;
}

.notice-banner p {
    color: #d4b875 !important;

    font-size: 9px !important;
    line-height: 1.6 !important;
}

/* TABS */

.tab-nav {
    margin-bottom: 20px !important;

    border-bottom: 1px solid rgba(76,119,171,.28) !important;

    background: transparent !important;
}

.tab-btn {
    padding: 9px 12px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #7690ad !important;

    font-size: 12px !important;
}

.tab-btn.active {
    color: #f3f8ff !important;

    background: transparent !important;

    box-shadow: none !important;
}

.tab-btn.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: #3de0d2;

    box-shadow: 0 0 8px rgba(61,224,210,.35);
}

/* INPUT */

.field-label {
    display: block;

    margin-bottom: 8px !important;

    color: #c8d9ec !important;

    font-size: 10px !important;
}

input,
textarea,
select {
    border: 1px solid rgba(72,119,174,.38) !important;
    border-radius: 9px !important;

    background: rgba(4,19,36,.68) !important;

    color: #edf5ff !important;
}

input {
    min-height: 45px !important;
}

input::placeholder,
textarea::placeholder {
    color: #526d8c !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #5c89f5 !important;

    box-shadow:
        0 0 0 3px rgba(91,135,255,.12) !important;
}

/* BUTTON */

.btn-primary {
    min-height: 45px !important;

    border: 1px solid rgba(117,151,255,.65) !important;
    border-radius: 9px !important;

    background:
        linear-gradient(
            100deg,
            #638fff,
            #4d78e8
        ) !important;

    color: #fff !important;

    box-shadow:
        0 7px 20px rgba(55,91,190,.24) !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px) !important;

    background:
        linear-gradient(
            100deg,
            #719aff,
            #5882f1
        ) !important;
}

/* FAQ */

.faq-panel {
    margin-top: 13px !important;

    border: 1px solid rgba(76,123,180,.28) !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            rgba(14,34,59,.92),
            rgba(8,24,43,.92)
        ) !important;
}

.faq-panel summary {
    color: #c7d9ed !important;
}

/* RUNTIME */

.public-runtime-panel {
    margin-top: 13px !important;

    border: 1px solid rgba(76,123,180,.28) !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            rgba(14,34,59,.92),
            rgba(8,24,43,.92)
        ) !important;
}

.public-runtime-value {
    color: #40ddd2 !important;
}

/* MOBILE */

@media (max-width: 900px) {

    .site-hero {
        grid-template-columns: 1fr !important;
    }

    .hero-status {
        max-width: 500px;
    }

    .main-grid {
        grid-template-columns: 1fr !important;
    }

    .plan-showcase {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 9px !important;
    }

    .plan-showcase-title {
        grid-column: 1 / -1;
    }

    .region-hint {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {

    .page-shell {
        width: calc(100% - 20px) !important;
        padding-top: 25px !important;
    }

    .site-hero h1 {
        font-size: 34px !important;
    }

    .hero-status {
        grid-template-columns: 1fr !important;
    }

    .plan-showcase {
        grid-template-columns: 1fr !important;
    }

    .plan-showcase-title,
    .region-hint {
        grid-column: auto;
    }

    .recharge-card {
        padding: 17px !important;
    }
}

