/* ========== CSS Variables ========== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);

    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
    --accent-gradient-h: linear-gradient(135deg, #00e5ff, #8b5cf6);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-placeholder: #475569;

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(0, 212, 255, 0.5);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== Particle Canvas ========== */
#particleBg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.1); }

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========== Buttons ========== */
.btn-ghost {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-primary-sm {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-sm:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.btn-outline-sm {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline-sm:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    text-align: center;
    padding: 140px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    top: -100px; left: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
    bottom: -50px; right: -80px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f1f5f9 30%, #00d4ff 70%, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== Page System ========== */
.page { display: none; position: relative; z-index: 1; }
.page.active { display: block; }

.page-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ========== Check Form ========== */
.check-form {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

.step-card {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-top: 2px;
}

.step-content { flex: 1; }

.step-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ========== Inputs ========== */
.input-field,
.textarea-wrap textarea,
.select-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition);
}

.input-field::placeholder,
.textarea-wrap textarea::placeholder {
    color: var(--text-placeholder);
}

.input-field:focus,
.textarea-wrap textarea:focus,
.select-field:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.textarea-wrap {
    position: relative;
}

.textarea-wrap textarea {
    resize: none;
    line-height: 1.5;
    padding-right: 50px;
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.select-wrap {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-field {
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
}

.select-field option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========== Platform Grid ========== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.platform-item input { display: none; }

.platform-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
}

.platform-item.checked {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.platform-icon { font-size: 20px; }

.platform-item span {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.platform-item.checked span { color: var(--text-primary); }

.check-mark {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px; height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.platform-item.checked .check-mark {
    opacity: 1;
    transform: scale(1);
}

.select-all-btn {
    background: none;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 4px;
}

.select-all-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.select-all-btn.all-selected {
    border-style: solid;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

/* ========== Check Button ========== */
.btn-check {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-check:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.btn-check:active { transform: translateY(0); }

.btn-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translate(-50%, -50%);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.3); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1.5); }
}

/* ========== Result Section ========== */
.result-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
}

.result-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Stat Cards ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.stat-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.stat-info { display: flex; flex-direction: column; }

.stat-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== Filter Bar ========== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active { background: rgba(0, 212, 255, 0.12); color: var(--accent-cyan); }

.filter-platforms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-plat-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.filter-plat-btn:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.filter-plat-btn.active { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ========== Result Table ========== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.result-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.result-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.result-table tr:last-child td { border-bottom: none; }

.result-table tbody tr {
    transition: var(--transition);
}

.result-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.status-tag.fail {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.status-tag.error {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

/* ========== Service Page ========== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.service-card.featured {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: var(--shadow-glow);
}

.service-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-badge.hot {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.service-price {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-price span {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.service-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.service-features li:last-child { border-bottom: none; }

/* ========== Whitepaper Page ========== */
.whitepaper-content { display: flex; flex-direction: column; gap: 16px; }

.wp-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.wp-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    background: var(--bg-card-hover);
}

.wp-icon { font-size: 36px; }
.wp-info { flex: 1; }
.wp-info h3 { font-size: 16px; margin-bottom: 6px; }
.wp-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.wp-date { font-size: 12px; color: var(--text-muted); }

/* ========== History Page ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
}

.history-item:hover {
    border-color: rgba(0, 212, 255, 0.15);
}

.history-info h4 { font-size: 15px; margin-bottom: 4px; }
.history-info p { font-size: 13px; color: var(--text-muted); }
.history-meta { text-align: right; }
.history-meta .date { font-size: 13px; color: var(--text-muted); display: block; }

/* ========== Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
    position: relative;
    width: 400px;
    max-width: 90vw;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    font-family: var(--font-family);
}

.modal-tab:hover { color: var(--text-secondary); }

.modal-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.code-wrap {
    display: flex;
    gap: 8px;
}

.code-wrap .input-field { flex: 1; }

.btn-code {
    white-space: nowrap;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-code:hover { background: rgba(0, 212, 255, 0.2); }
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    font-family: var(--font-family);
}

.btn-login:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span { padding: 0 12px; }

.btn-wechat {
    width: 100%;
    padding: 12px;
    background: rgba(7, 193, 96, 0.1);
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: var(--radius-sm);
    color: #07c160;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-wechat:hover { background: rgba(7, 193, 96, 0.2); }

/* ========== User Avatar & Menu ========== */
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
    position: relative;
}

.user-avatar:hover { box-shadow: var(--shadow-glow); transform: scale(1.05); }

.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 110;
}

.user-menu.show { display: block; animation: toastIn 0.2s ease; }

.user-menu-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.user-menu-phone { font-size: 12px; color: var(--text-muted); }
.user-menu-divider { height: 1px; background: var(--border); margin: 12px 0; }

.user-menu-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 4px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.user-menu-item:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ========== Toast ========== */
.toast-msg {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    pointer-events: none;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== Loading Animation ========== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.show { display: flex; }

.loading-spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-platforms {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.loading-plat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.loading-plat-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.loading-plat.done .loading-plat-icon {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.loading-plat.fail .loading-plat-icon {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.loading-plat.done .plat-status { color: var(--success); }
.loading-plat.fail .plat-status { color: var(--danger); }

.plat-status { font-size: 11px; }

/* ========== User Center ========== */
.user-center-wrap {
    display: flex;
    gap: 24px;
    min-height: 500px;
}

.user-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.user-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.user-avatar-lg {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
}

.user-phone {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.user-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--warning);
    font-weight: 500;
}

.user-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    text-align: left;
}

.user-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }

.user-nav-item.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.user-main {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}

.user-tab-content { display: none; }
.user-tab-content.active { display: block; }

.user-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.user-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.user-section-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.sub-info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.sub-count span { color: var(--accent-cyan); font-weight: 600; }
.sub-limit { color: var(--text-muted); }

.sub-list { min-height: 200px; }

/* VIP Lock Overlay */
.vip-lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    z-index: 5;
    text-align: center;
    padding: 40px;
}

.vip-lock-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.vip-lock h3 {
    font-size: 18px;
    font-weight: 600;
}

.vip-lock p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
}

/* VIP Modal */
.vip-modal { width: 520px; max-width: 92vw; }

.vip-header {
    text-align: center;
    margin-bottom: 28px;
}

.vip-crown {
    font-size: 40px;
    margin-bottom: 12px;
}

.vip-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.vip-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.vip-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.vip-plan {
    padding: 24px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.vip-plan:hover { border-color: rgba(245, 158, 11, 0.3); }

.vip-plan.selected {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.vip-badge {
    position: absolute;
    top: -1px; right: -1px;
    padding: 4px 12px;
    background: var(--warning);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 var(--radius-md) 0 var(--radius-md);
}

.vip-plan-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vip-plan-price {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.vip-plan-price span {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.vip-plan-save {
    font-size: 12px;
    color: var(--warning);
    font-weight: 500;
    margin-bottom: 16px;
}

.vip-plan-features {
    list-style: none;
    text-align: left;
}

.vip-plan-features li {
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-vip-pay {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-vip-pay:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.vip-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Sub Modal */
.sub-modal { width: 480px; max-width: 92vw; }

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Subscription Item */
.sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
}

.sub-item:hover { border-color: rgba(0, 212, 255, 0.15); }

.sub-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sub-item-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.sub-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-item-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.sub-item-status.paused {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.sub-item-actions {
    display: flex;
    gap: 6px;
}

.sub-btn {
    padding: 5px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.sub-btn:hover { border-color: var(--danger); color: var(--danger); }

/* Platform grid mini */
.platform-grid.mini {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.platform-grid.mini .platform-item {
    padding: 8px 10px;
    gap: 6px;
}

.platform-grid.mini .platform-icon { font-size: 16px; }
.platform-grid.mini .platform-item span { font-size: 12px; }

/* ========== History Card List (User Center) ========== */
.history-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.history-search:focus-within { border-color: var(--accent-cyan); }

.history-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-family);
    outline: none;
}

.history-search input::placeholder { color: var(--text-muted); }

.history-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-select {
    padding: 8px 28px 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.history-select:focus { border-color: var(--accent-cyan); outline: none; }

.history-refresh {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.history-refresh:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* History Card */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.history-card:hover { border-color: rgba(0, 212, 255, 0.15); }

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.history-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.history-card-title .ai-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-weight: 400;
}

.history-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-card-actions .btn-result {
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 6px;
    color: var(--success);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.history-card-actions .btn-result:hover {
    background: rgba(16, 185, 129, 0.18);
}

.history-card-actions .btn-del {
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.history-card-actions .btn-del:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* History Card Table */
.history-card-body {
    padding: 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.history-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.history-table tr:last-child td { border-bottom: none; }

.history-table .col-rate {
    color: var(--success);
    font-weight: 600;
}

.history-table .col-time { color: var(--text-muted); font-size: 12px; }

/* Pagination */
.history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.pagination-info span { color: var(--text-primary); }

.pagination-size {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-size select {
    padding: 4px 22px 4px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-family);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    cursor: pointer;
}

.pagination-btns {
    display: flex;
    gap: 6px;
}

.pagination-btns button {
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.pagination-btns button:hover:not(:disabled) { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.pagination-btns button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero-title { font-size: 26px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .step-card { flex-direction: column; gap: 12px; }
    .step-num { width: 28px; height: 28px; min-width: 28px; font-size: 13px; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn-ghost { display: none; }
    .wp-card { flex-direction: column; align-items: flex-start; }
    .user-center-wrap { flex-direction: column; }
    .user-sidebar { width: 100%; position: static; }
    .user-section-header { flex-direction: column; align-items: flex-start; }
    .vip-plans { grid-template-columns: 1fr; }
    .sub-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sub-item-meta { width: 100%; justify-content: space-between; }
}
