:root {
    --bg-body: #faf7f4;
    --bg-card: #ffffff;
    --bg-card-alt: #f5f0eb;
    --border-color: #e8e0d8;
    --text-primary: #2d2319;
    --text-secondary: #8a7e72;
    --text-muted: #b5a99d;
    --accent: #2563eb;
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    --success: #059669;
    --success-bg: rgba(5,150,105,.1);
    --danger: #dc2626;
    --danger-bg: rgba(220,38,38,.1);
    --warning: #d97706;
    --warning-bg: rgba(217,119,6,.1);
    --info: #0891b2;
    --info-bg: rgba(8,145,178,.1);
    --purple: #7c3aed;
    --pink: #db2777;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
    --shadow-glow: 0 0 20px rgba(37,99,235,.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link {
    color: var(--text-secondary) !important;
    padding: .45rem .85rem !important;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    transition: all .2s;
}
.nav-link:hover { background: rgba(37,99,235,.08); color: var(--text-primary) !important; }
.nav-link.text-warning:hover { background: rgba(217,119,6,.1); }

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250,247,244,.85) 0%, rgba(250,247,244,.5) 50%, rgba(250,247,244,.85) 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(255,255,255,.3);
    letter-spacing: -1px;
}
.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}
.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item p {
    color: var(--text-muted);
    font-size: .85rem;
    margin: .2rem 0 0;
}

/* Card Styles */
.card, .feature-card, .pricing-card, .step-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.card:hover, .feature-card:hover, .pricing-card:hover {
    border-color: rgba(37,99,235,.2);
    box-shadow: var(--shadow-glow);
}
.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37,99,235,.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.6rem;
    border-radius: 16px;
    margin: 0 auto 1rem;
    background: rgba(37,99,235,.08);
    color: var(--accent);
    transition: all .3s;
}
.feature-card:hover .feature-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

/* Step Box */
.step-box {
    padding: 1.8rem 1rem;
    text-align: center;
    height: 100%;
    position: relative;
}
.step-box::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.4rem;
}
.step-box:last-child::after { display: none; }
.step-num {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: .8rem;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* Pricing */
.pricing-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(37,99,235,.12);
}
.pricing-card.featured::before {
    content: '最受欢迎';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent);
    color: #fff;
    padding: .2rem 2.5rem;
    font-size: .75rem;
    font-weight: 600;
    transform: rotate(45deg);
}
.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
}
.pricing-card .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}
.pricing-card ul li {
    padding: .5rem 0;
    color: var(--text-secondary);
    font-size: .9rem;
}
.pricing-card ul li i { margin-right: .6rem; }

/* Trade Feed */
.trade-feed {
    max-height: 420px;
    overflow-y: auto;
}
.trade-feed::-webkit-scrollbar {
    width: 4px;
}
.trade-feed::-webkit-scrollbar-track {
    background: transparent;
}
.trade-feed::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.trade-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: .85rem;
    animation: tradeFlash .5s ease;
}
@keyframes tradeFlash {
    0% { background: rgba(37,99,235,.06); }
    100% { background: transparent; }
}
.trade-item .pair { font-weight: 600; color: var(--text-primary); }
.trade-item .side-buy { color: var(--success); }
.trade-item .side-sell { color: var(--danger); }
.trade-item .amount { color: var(--text-secondary); }
.trade-item .time { color: var(--text-muted); font-size: .78rem; }

/* Dashboard */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    transition: all .3s;
}
.stat-card:hover {
    border-color: rgba(37,99,235,.2);
    box-shadow: var(--shadow-glow);
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .3rem;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.stat-card .stat-change {
    font-size: .8rem;
    margin-top: .2rem;
}
.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* Bot Status */
.bot-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
}
.bot-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.bot-status.running { background: var(--success-bg); color: var(--success); }
.bot-status.running .dot { background: var(--success); }
.bot-status.stopped { background: var(--danger-bg); color: var(--danger); }
.bot-status.stopped .dot { background: var(--danger); animation: none; }
.bot-status.paused { background: var(--warning-bg); color: var(--warning); }
.bot-status.paused .dot { background: var(--warning); }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* Performance Chart Placeholder */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.chart-container canvas { width: 100% !important; }

/* Tables */
.table {
    margin: 0;
    font-size: .88rem;
}
.table thead th {
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding: .7rem .5rem;
}
.table td {
    border-bottom: 1px solid var(--border-color);
    padding: .65rem .5rem;
    vertical-align: middle;
}
.table tbody tr:hover {
    background: rgba(37,99,235,.04);
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: 6px;
    padding: .3em .7em;
}
.badge-profit { background: var(--success-bg); color: var(--success); }
.badge-loss { background: var(--danger-bg); color: var(--danger); }

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: .5rem 1.1rem;
    transition: all .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
    color: #fff;
}
.btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline-light:hover {
    background: rgba(45,35,25,.05);
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.btn-glow {
    box-shadow: 0 0 20px rgba(37,99,235,.25);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(37,99,235,.35);
}

/* FAQ */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    margin-bottom: .5rem;
    overflow: hidden;
}
.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: rgba(37,99,235,.05);
    color: var(--accent);
}
.accordion-button::after {
    filter: none;
}
.accordion-body {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}
.footer h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: .25rem 0;
    font-size: .88rem;
    transition: color .2s;
}
.footer a:hover { color: var(--accent); }
.footer .copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: .85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d0c8c0; }

/* Glassmorphism */
.glass {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,.06);
}

/* Section Backgrounds */
.bg-section-hero {
    background: linear-gradient(135deg, #fdfaf7 0%, #f5eee8 50%, #fdfaf7 100%);
}
.bg-section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250,247,244,.35) 0%, rgba(250,247,244,.1) 50%, rgba(250,247,244,.35) 100%);
    z-index: 0;
}
.bg-section-features {
    background: linear-gradient(135deg, #f8f4f0 0%, #f0eae4 100%);
}
.bg-section-pricing {
    background: linear-gradient(135deg, #fdfaf7 0%, #f5f0eb 100%);
}
.bg-section-faq {
    background: linear-gradient(135deg, #f8f4f0 0%, #f0eae4 100%);
}
.bg-card-overlay {
    background: var(--bg-card);
}
.bg-chart-overlay {
    background: var(--bg-card);
}

/* Membership Page */
.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    height: 100%;
}
.plan-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.plan-card.selected {
    border-color: var(--accent);
    background: rgba(37,99,235,.04);
    box-shadow: var(--shadow-glow);
}
.plan-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.plan-card .plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: .25rem;
}
.plan-card .plan-price small {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 400;
}
.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}
.plan-card .plan-features li {
    padding: .35rem 0;
    font-size: .88rem;
    color: var(--text-secondary);
}
.plan-card .plan-features li i { margin-right: .5rem; }
.plan-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .7rem;
    border-radius: 20px;
    margin-bottom: .8rem;
}

/* Payment Section */
.payment-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.usdt-address {
    background: var(--bg-card-alt);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    word-break: break-all;
    color: var(--text-primary);
    cursor: pointer;
    transition: all .2s;
    user-select: all;
}
.usdt-address:hover {
    border-color: var(--accent);
    background: rgba(37,99,235,.04);
}
.copy-btn {
    cursor: pointer;
    padding: .3rem .8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .82rem;
    transition: all .2s;
}
.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37,99,235,.05);
}
.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--border-color);
}
.instruction-step:last-child {
    border-bottom: none;
}
.instruction-step .step-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.instruction-step .step-text {
    font-size: .9rem;
    color: var(--text-secondary);
    padding-top: .3rem;
}
.instruction-step .step-text strong {
    color: var(--text-primary);
}

/* QR Code Container */
.qr-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: inline-block;
}
.qr-container img {
    display: block;
    width: 180px;
    height: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { min-height: 60vh; }
    .stats-bar { margin-top: -2rem; padding: 1rem; }
    .stat-item h3 { font-size: 1.3rem; }
    .step-box::after { display: none; }
    .pricing-card.featured::before { right: -35px; }
}
