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

:root {
    /* ===== 主色调系 - 科技感蓝紫渐变 ===== */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: rgba(99, 102, 241, 0.08);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --primary-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --primary-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);
    
    /* ===== 功能色 ===== */
    --success: #10b981;
    --success-light: #34d399;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-glow: 0 0 16px rgba(16, 185, 129, 0.3);
    
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-glow: 0 0 16px rgba(245, 158, 11, 0.3);
    
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-glow: 0 0 16px rgba(239, 68, 68, 0.3);
    
    --info: #06b6d4;
    --info-light: #22d3ee;
    --info-bg: rgba(6, 182, 212, 0.1);
    
    /* ===== 中性色 ===== */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;
    
    /* ===== 背景色 ===== */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #253349;
    --bg-sidebar: #0f172a;
    --bg-input: #1e293b;
    
    /* ===== 文字色 ===== */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* ===== 圆角 ===== */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    
    /* ===== 阴影 ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* ===== 边框 ===== */
    --border: 1px solid rgba(148, 163, 184, 0.15);
    --border-light: 1px solid rgba(148, 163, 184, 0.1);
    --border-focus: 1px solid var(--primary);
    
    /* ===== 字体 ===== */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", Consolas, monospace;
    
    /* ===== 动画 ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== 侧边栏 ===== */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Icons ===== */
i.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 1.5;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow), var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: var(--shadow-md), var(--primary-glow-lg);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--primary-bg);
    box-shadow: var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: var(--shadow), var(--success-glow);
}

.btn-success:hover {
    background: var(--success-light);
    box-shadow: var(--shadow-md), var(--success-glow);
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: var(--shadow), var(--danger-glow);
}

.btn-danger:hover {
    background: var(--danger-light);
    box-shadow: var(--shadow-md), var(--danger-glow);
    color: #fff;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning);
    color: #0f172a;
    box-shadow: var(--shadow), var(--warning-glow);
}

.btn-warning:hover {
    background: var(--warning-light);
    box-shadow: var(--shadow-md), var(--warning-glow);
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-xs {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 4px;
}

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

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.btn-gradient {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--primary-glow);
}

.btn-gradient:hover {
    background: var(--primary-gradient-hover);
    box-shadow: var(--primary-glow-lg);
    color: #fff;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
}

.btn-icon i {
    width: 18px;
    height: 18px;
}

/* ===== Header / Nav ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border);
    z-index: 100;
    height: 64px;
}

.header .container {
    height: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--primary-glow);
}

.logo i {
    width: 20px;
    height: 20px;
}

.logo span {
    color: var(--primary-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav>a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav>a:hover {
    color: var(--primary-light);
    background: var(--primary-bg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, var(--bg-primary) 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--primary-bg);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-badge i {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    position: relative;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat strong {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stats .stat span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ===== Section Common ===== */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.7;
}

.section-bg {
    background: var(--bg-secondary);
}

.section-bg-alt {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: var(--border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: var(--primary-bg);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-icon i {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: var(--border);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.recommend {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--primary-glow);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-card.recommend:hover {
    box-shadow: 0 0 0 1px var(--primary), var(--primary-glow-lg);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--primary-gradient);
    color: #fff;
}

.pricing-header {
    padding: 32px 28px 0;
    text-align: center;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.pricing-body {
    padding: 24px 28px;
    flex: 1;
}

.pricing-amount {
    text-align: center;
    padding: 16px 0 20px;
    border-bottom: var(--border);
    margin-bottom: 20px;
}

.pricing-amount .currency {
    font-size: 16px;
    font-weight: 700;
    vertical-align: top;
    margin-right: 2px;
    color: var(--text-primary);
}

.pricing-amount .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.pricing-amount .period {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-amount .original {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 4px;
}

.pricing-amount .free {
    font-size: 36px;
    font-weight: 800;
    color: var(--success);
}

.tier-price-line {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.tier-price-line strong {
    font-size: 20px;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-list li i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list li .check {
    color: var(--success);
}

.feature-list li .cross {
    color: var(--text-muted);
    opacity: 0.5;
}

.feature-list li.muted {
    color: var(--text-muted);
}

/* ===== Tier Selector ===== */
.tier-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
}

.tier-option {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.tier-option input { position: absolute; opacity: 0; }
.tier-option .tier-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.tier-option .tier-price {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}
.tier-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.tier-option.active .tier-label { color: var(--primary-light); }
.tier-option.active .tier-price { color: var(--primary-light); }
.tier-option:hover { border-color: var(--primary); }

.quantity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.quantity-row .qty-input {
    width: 80px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}
.quantity-row .qty-unit {
    font-size: 13px;
    color: var(--text-muted);
}
.order-total {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-light);
    padding-bottom: 16px;
    border-bottom: var(--border);
    margin-bottom: 20px;
}

.pricing-footer {
    padding: 0 28px 28px;
}

/* ===== Comparison Table ===== */
.comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
    border: var(--border);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: var(--border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
}

.comparison-table .cross {
    color: var(--text-muted);
    opacity: 0.4;
}

.comparison-table i {
    width: 16px;
    height: 16px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-xl);
    border: var(--border);
}

.testimonial-card .stars {
    color: var(--warning);
    font-size: 16px;
    margin-bottom: 12px;
}

.testimonial-card .stars i {
    width: 16px;
    height: 16px;
}

.testimonial-card blockquote {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-card .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.testimonial-card .role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(148, 163, 184, 0.3);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    user-select: none;
}

.faq-question i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
    color: var(--primary-light);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

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

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

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: var(--border);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

.modal-close i {
    width: 18px;
    height: 18px;
}

.modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

/* ===== Forms ===== */
.form-group {
    margin-bottom: 18px;
}

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

.form-group .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: var(--border);
    margin-top: 8px;
}

.order-summary .label {
    font-size: 15px;
    color: var(--text-secondary);
}

.order-summary .total {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
}

.order-summary .total small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 48px 0 32px;
    border-top: var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.footer h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li+li {
    margin-top: 10px;
}

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

.footer ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ========================================
   ADMIN STYLES - 科技感后台
   ======================================== */

.admin-body {
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Admin Login */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: var(--border);
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 8px;
}

.login-box h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.error-msg {
    color: var(--danger);
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    background: var(--danger-bg);
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-msg i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    transition: width var(--transition-normal);
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
}

.admin-sidebar .sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: var(--border);
}

.admin-sidebar .sidebar-header .logo {
    color: var(--text-primary);
    font-size: 16px;
}

.admin-sidebar .sidebar-nav {
    padding: 12px 12px;
    flex: 1;
}

.admin-sidebar .nav-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-group-title i {
    width: 14px;
    height: 14px;
}

.admin-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    position: relative;
}

.admin-sidebar .sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.admin-sidebar .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.admin-sidebar .sidebar-nav a:hover::before {
    height: 60%;
}

.admin-sidebar .sidebar-nav a.active {
    background: var(--primary-bg);
    color: var(--primary-light);
}

.admin-sidebar .sidebar-nav a.active::before {
    height: 70%;
}

.admin-sidebar .sidebar-nav a i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-footer {
    padding: 12px;
    border-top: var(--border);
}

.admin-sidebar .sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.admin-sidebar .sidebar-footer a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar .sidebar-footer a i {
    width: 16px;
    height: 16px;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-topbar h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar h2 i {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
}

.admin-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-topbar .user-info .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--primary-glow);
}

.admin-topbar .user-info .avatar i {
    width: 18px;
    height: 18px;
}

.admin-content {
    padding: 24px 32px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: var(--border);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card .stat-label i {
    width: 14px;
    height: 14px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card .stat-value.small {
    font-size: 22px;
}

.stat-card .stat-value.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border);
    margin-bottom: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: var(--border);
}

.table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.table th i {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

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

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table .actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.table .actions i {
    width: 14px;
    height: 14px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge i {
    width: 12px;
    height: 12px;
}

.badge-pending {
    background: var(--warning-bg);
    color: var(--warning-light);
}

.badge-paid {
    background: var(--success-bg);
    color: var(--success-light);
}

.badge-cancelled {
    background: var(--danger-bg);
    color: var(--danger-light);
}

.badge-expired {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

.badge-active {
    background: var(--success-bg);
    color: var(--success-light);
}

.badge-inactive {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 160px;
}

.filter-bar input[type="text"].form-control {
    flex: 1;
    min-width: 200px;
}

.filter-bar .btn {
    flex-shrink: 0;
}

/* Section title in admin */
.admin-content .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-content .section-title i {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border);
    padding: 28px;
    margin-bottom: 24px;
}

.form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Changelog Timeline */
.changelog-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.changelog-tab {
    padding: 6px 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.changelog-tab:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.changelog-tab.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--primary-glow);
}

.changelog-wrap {
    max-width: 680px;
    margin: 0 auto;
    max-height: 600px;
    overflow-y: auto;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: var(--border);
    box-shadow: var(--shadow-sm);
}

.changelog-wrap::-webkit-scrollbar {
    width: 6px;
}

.changelog-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.changelog-wrap::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.changelog-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.changelog-timeline {
    position: relative;
    padding-left: 28px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
    opacity: 0.4;
}

.changelog-entry {
    position: relative;
    margin-bottom: 32px;
}

.changelog-entry:last-child {
    margin-bottom: 0;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 0 3px var(--bg-card), var(--primary-glow);
}

.changelog-version {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.changelog-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.changelog-channel {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 6px;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
    vertical-align: middle;
}

.changelog-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.changelog-content ul {
    margin: 0;
    padding-left: 18px;
}

.changelog-content li {
    margin-bottom: 3px;
}

/* Copy Input */
.copy-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.copy-input input {
    flex: 1;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.copy-input button {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.copy-input button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.copy-input button i {
    width: 14px;
    height: 14px;
}

/* Progress Bar */
.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width var(--transition-slow);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: var(--border);
    overflow-x: auto;
}

.tab-nav::-webkit-scrollbar {
    height: 0;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary-bg);
    color: var(--primary-light);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

/* Code Block */
.code-block {
    background: var(--bg-primary);
    border: var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    overflow-x: auto;
    position: relative;
}

.code-block pre {
    margin: 0;
    line-height: 1.6;
}

/* Tag */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: var(--border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag i {
    width: 12px;
    height: 12px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.recommend {
        transform: none;
    }
    .pricing-card.recommend:hover {
        transform: translateY(-4px);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-sidebar {
        width: var(--sidebar-collapsed-width);
    }
    .admin-sidebar .sidebar-header .logo span,
    .admin-sidebar .sidebar-nav a span,
    .admin-sidebar .sidebar-footer a span,
    .admin-sidebar .nav-group-title {
        display: none;
    }
    .admin-sidebar .sidebar-nav a {
        justify-content: center;
        padding: 12px;
    }
    .admin-sidebar .sidebar-nav a i {
        margin: 0;
    }
    .admin-sidebar .sidebar-footer a {
        justify-content: center;
        padding: 12px;
    }
    .admin-sidebar .sidebar-footer a i {
        margin: 0;
    }
    .admin-main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: var(--border);
        padding: 12px;
        box-shadow: var(--shadow-lg);
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        padding: 100px 0 50px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .hero-stats .stat strong {
        font-size: 24px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .admin-sidebar {
        width: 52px;
    }
    .admin-main {
        margin-left: 52px;
    }
    .admin-topbar {
        padding: 12px 16px;
    }
    .admin-content {
        padding: 16px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar .form-control,
    .filter-bar input[type="text"].form-control {
        width: 100%;
        min-width: unset;
    }
    .form-card .form-row {
        grid-template-columns: 1fr;
    }
    .cl-entry {
        padding-left: 52px;
        margin-bottom: 28px;
    }
    .changelog-wrap {
        padding: 16px 16px;
    }
    .changelog-tabs {
        gap: 6px;
    }
    .changelog-tab {
        padding: 5px 14px;
        font-size: 13px;
    }
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* ========================================
   TOGGLE SWITCHES - Feature 2 & 7
   ======================================== */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-secondary);
}
.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-slider {
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--primary);
}
.toggle-switch:hover .toggle-slider {
    background: rgba(148, 163, 184, 0.5);
}
.toggle-switch input:checked ~ .toggle-slider,
.toggle-switch input:checked + .toggle-slider:hover {
    background: var(--primary);
}
.toggle-switch .toggle-label {
    font-size: 13px;
    pointer-events: none;
}

/* ========================================
   LIGHT THEME - Feature 3
   ======================================== */
:root[data-theme="light"],
html.light-theme,
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-input: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: 1px solid rgba(148, 163, 184, 0.2);
    --border-light: 1px solid rgba(148, 163, 184, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .admin-topbar,
body.light-theme .admin-topbar {
    background: rgba(255, 255, 255, 0.8);
}
:root[data-theme="light"] .header,
body.light-theme .header {
    background: rgba(255, 255, 255, 0.85);
}
:root[data-theme="light"] .admin-sidebar,
body.light-theme .admin-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}
:root[data-theme="light"] .modal,
body.light-theme .modal {
    background: var(--bg-card);
}
:root[data-theme="light"] .admin-sidebar .sidebar-nav a:hover,
body.light-theme .admin-sidebar .sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.08);
}
:root[data-theme="light"] .btn-ghost:hover,
body.light-theme .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .table tr:hover td,
body.light-theme .table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}
:root[data-theme="light"] .comparison-table tr:hover td,
body.light-theme .comparison-table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}
:root[data-theme="light"] .comparison-table th,
body.light-theme .comparison-table th {
    background: rgba(0, 0, 0, 0.02);
}
:root[data-theme="light"] .admin-sidebar .sidebar-nav a.active,
body.light-theme .admin-sidebar .sidebar-nav a.active {
    background: var(--primary-bg);
}

/* ========================================
   CARD STYLE - Feature 5
   ======================================== */
/* Default card style (rounded, gradient) - already defined by default */
/* Square card style (sharp corners, flat) */
.card-style-square .pricing-card {
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}
.card-style-square .pricing-card:hover {
    transform: none;
    box-shadow: 0 0 0 2px var(--primary);
}
.card-style-square .pricing-card.recommend {
    transform: none;
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: none;
}
.card-style-square .pricing-card.recommend:hover {
    box-shadow: none;
}
.card-style-square .feature-card {
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.card-style-square .feature-card:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--primary);
}
.card-style-square .testimonial-card {
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--bg-card);
}
.card-style-square .stat-card {
    border-radius: 4px;
}
.card-style-square .form-card {
    border-radius: 8px;
}
.card-style-square .login-box {
    border-radius: 8px;
}
.card-style-square .modal {
    border-radius: 8px;
}
.card-style-square .table-wrap {
    border-radius: 8px;
}

/* ========================================
   UPDATE PROGRESS MODAL - Feature 4
   ======================================== */
.update-progress-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.update-progress-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: var(--border);
}
.update-progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.update-progress-header .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.update-progress-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.update-progress-bar-container {
    margin-bottom: 16px;
}
.update-progress-bar {
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
}
.update-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0;
}
.update-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.update-file-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 13px;
}
.update-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.update-file-item:last-child {
    border-bottom: none;
}
.update-file-item .file-status {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.update-file-item .file-status.pending {
    color: var(--text-muted);
}
.update-file-item .file-status.done {
    color: var(--success);
}
.update-file-item .file-status.error {
    color: var(--danger);
}
.update-progress-complete {
    text-align: center;
    padding: 16px;
    color: var(--success);
    font-size: 16px;
    font-weight: 700;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: var(--border);
}
.theme-option {
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.theme-option:hover {
    color: var(--text-secondary);
}
.theme-option.active {
    background: var(--primary-bg);
    color: var(--primary-light);
}
.theme-option i {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .update-progress-content {
        padding: 20px;
        max-height: 90vh;
    }
    .update-file-list {
        max-height: 200px;
    }
}
