/* =============================================
   InvestPlatform - Main Stylesheet
   Modern dark-theme investment platform design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #f0b90b;
    --primary-dark: #c69300;
    --secondary: #d49b0f;
    --accent: #ffd166;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
    --dark-900: #050505;
    --dark-800: #0b0b0b;
    --dark-700: #111111;
    --dark-600: #171717;
    --dark-500: #202020;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #8a8a8a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #f4c542;
    --border: rgba(255,217,102,0.12);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable both-edges; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--dark-900); color: var(--text-primary); line-height: 1.6; font-size: 15px; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
ul { list-style: none; }

/* Scrollbar Design */
* { scrollbar-width: thin; scrollbar-color: rgba(240,185,11,0.6) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(240,185,11,0.85), rgba(201,148,0,0.85)); border-radius: 999px; border: 2px solid rgba(5,5,5,0.9); }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(255,214,102,0.95), rgba(201,148,0,0.95)); }
*::-webkit-scrollbar-corner { background: transparent; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; line-height: 1; }
.btn-primary { background: var(--gradient); color: #111; box-shadow: 0 4px 15px rgba(240,185,11,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,185,11,0.4); color: #111; }
.btn-secondary { background: var(--dark-600); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--dark-500); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #111; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.card:hover { border-color: rgba(240,185,11,0.2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 1.1rem; }
.card-glass { background: rgba(9,9,9,0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 12px 16px; background: var(--dark-700); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 14px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,185,11,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a8a8a'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(244,197,66,0.15); color: var(--info); }
.badge-primary { background: rgba(240,185,11,0.15); color: var(--primary); }
.badge-secondary { background: rgba(100,116,139,0.15); color: var(--text-muted); }

/* Tables */
.table-responsive { overflow-x: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; }
table { width: 100%; border-collapse: collapse; }
table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
table tr:hover td { background: rgba(240,185,11,0.03); }
table tr:last-child td { border-bottom: none; }

/* Alerts */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--success); }
.alert-error, .alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: var(--warning); }
.alert-info { background: rgba(244,197,66,0.1); border: 1px solid rgba(244,197,66,0.2); color: var(--info); }

/* Stat Cards */
.stat-card { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-icon.blue { background: rgba(240,185,11,0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon.red { background: rgba(239,68,68,0.15); color: var(--danger); }
.stat-icon.yellow { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-icon.purple { background: rgba(201,148,0,0.15); color: var(--secondary); }
.stat-info h4 { font-size: 1.6rem; margin: 0; }
.stat-info p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* Navigation - Public */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(5,5,5,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); }
.navbar-brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); padding: 3px; }
.navbar-brand-text { font-size: 1.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-nav { display: flex; align-items: center; gap: 32px; }
.navbar-nav a { color: var(--text-secondary); font-weight: 500; font-size: 14px; }
.navbar-nav a:hover, .navbar-nav a.active { color: #fff; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-actions .btn { white-space: nowrap; }
.mobile-toggle { display: none; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: #fff; font-size: 20px; cursor: pointer; border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 100px; padding-bottom: 56px; }
.hero::before { content: ''; position: absolute; top: -50%; right: -30%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(240,185,11,0.15), transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -40%; left: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,148,0,0.1), transparent 70%); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 24px; line-height: 1.1; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; margin: 0 auto 36px; max-width: 680px; }
.hero-mid-image { margin: 0 auto 32px; width: min(780px, 100%); text-align: center; }
.hero-mid-image img { width: 100%; height: auto; border-radius: 16px; border: none; box-shadow: none; background: transparent; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }

/* Trading Hero Background */
.hero-trading-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.trade-grid {
    position: absolute;
    inset: -10% -10%;
    background-image:
        linear-gradient(rgba(240,185,11,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240,185,11,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridDrift 14s linear infinite;
}
.trade-wave {
    position: absolute;
    left: -15%;
    width: 130%;
    height: 220px;
    border-top: 2px solid rgba(240,185,11,0.22);
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(240,185,11,0.18));
    animation: chartFloat 9s ease-in-out infinite;
}
.trade-wave.wave-1 { top: 26%; transform: rotate(-6deg); }
.trade-wave.wave-2 { top: 40%; border-top-color: rgba(16,185,129,0.22); animation-delay: -2s; }
.trade-wave.wave-3 { top: 54%; border-top-color: rgba(245,158,11,0.2); transform: rotate(4deg); animation-delay: -4s; }
.trade-chart-line {
    position: absolute;
    width: 240px;
    height: 90px;
    opacity: 0.62;
    background: linear-gradient(90deg, rgba(240,185,11,0.05), rgba(240,185,11,0.55), rgba(16,185,129,0.45));
    clip-path: polygon(0 78%, 12% 66%, 24% 72%, 35% 50%, 48% 58%, 62% 34%, 78% 45%, 100% 18%, 100% 28%, 78% 55%, 62% 44%, 48% 68%, 35% 60%, 24% 82%, 12% 76%, 0 88%);
    filter: drop-shadow(0 0 8px rgba(240,185,11,0.24));
    animation: linePulse 5.2s ease-in-out infinite;
}
.trade-chart-line.line-1 { top: 17%; left: 7%; animation-delay: -0.8s; }
.trade-chart-line.line-2 { top: 24%; right: 10%; animation-delay: -2.1s; }
.trade-chart-line.line-3 { bottom: 21%; left: 42%; animation-delay: -3.2s; }
.trade-candle {
    position: absolute;
    bottom: 10%;
    width: 10px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(16,185,129,0.65), rgba(16,185,129,0.2));
    box-shadow: 0 0 12px rgba(16,185,129,0.25);
    animation: candlePulse 3.2s ease-in-out infinite;
}
.trade-candle::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    width: 2px;
    height: calc(100% + 28px);
    transform: translateX(-50%);
    background: rgba(255,255,255,0.22);
}
.trade-candle.candle-1 { left: 12%; height: 80px; animation-delay: -0.6s; }
.trade-candle.candle-2 { left: 24%; height: 120px; }
.trade-candle.candle-3 { left: 38%; height: 72px; animation-delay: -1.8s; }
.trade-candle.candle-4 { left: 52%; height: 138px; animation-delay: -0.9s; }
.trade-candle.candle-5 { left: 68%; height: 92px; animation-delay: -2.4s; }
.trade-candle.candle-6 { left: 82%; height: 126px; animation-delay: -1.2s; }
.trade-signal {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(5,5,5,0.68);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: badgeFloat 4.8s ease-in-out infinite;
}
.trade-signal i { font-size: 11px; }
.trade-signal.sig-buy { top: 14%; right: 12%; color: rgba(16,185,129,0.95); border-color: rgba(16,185,129,0.35); animation-delay: -0.7s; }
.trade-signal.sig-sell { top: 30%; left: 9%; color: rgba(239,68,68,0.92); border-color: rgba(239,68,68,0.28); animation-delay: -2s; }
.trade-signal.sig-stake { bottom: 20%; right: 22%; color: rgba(245,158,11,0.95); border-color: rgba(245,158,11,0.3); animation-delay: -1.3s; }
.trade-signal.sig-bot { bottom: 26%; left: 16%; color: rgba(240,185,11,0.96); border-color: rgba(240,185,11,0.32); animation-delay: -2.8s; }
.stake-orbit {
    position: absolute;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    border: 1px dashed rgba(16,185,129,0.34);
    animation: orbitSpin 15s linear infinite;
}
.stake-orbit.orbit-1 { right: 6%; bottom: 14%; }
.stake-orbit.orbit-2 {
    left: 5%;
    top: 16%;
    width: 112px;
    height: 112px;
    border-color: rgba(240,185,11,0.34);
    animation-duration: 12s;
    animation-direction: reverse;
}
.stake-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(16,185,129,0.9);
    box-shadow: 0 0 12px rgba(16,185,129,0.38);
}
.stake-orbit.orbit-2 .stake-node {
    background: rgba(240,185,11,0.95);
    box-shadow: 0 0 12px rgba(240,185,11,0.38);
}
.stake-node:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.stake-node:nth-child(2) { left: -4px; top: 50%; transform: translateY(-50%); }
.stake-node:nth-child(3) { right: -4px; top: 50%; transform: translateY(-50%); }

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; }
.section-header h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* Plan Cards */
.plan-card { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); position: relative; overflow: hidden; }
.plan-card:hover { transform: translateY(-8px); border-color: rgba(240,185,11,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.plan-card .badge-featured { position: absolute; top: 16px; right: 16px; }
.plan-card-media { margin-bottom: 14px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--dark-700); }
.plan-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.plan-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.plan-card .plan-rate { font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 16px 0; }
.plan-card .plan-details { margin: 20px 0; }
.plan-card .plan-details li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-card .plan-details li span:last-child { color: var(--text-primary); font-weight: 500; }

/* Feature Cards */
.feature-card { text-align: center; padding: 40px 24px; }
.feature-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: var(--radius); background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* Stats Section */
.stats-section { background: var(--dark-800); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 12px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stats-row .stat h3 { font-size: 2.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Footer */
.footer { background: var(--dark-800); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.partners-section { margin: 0 0 34px; text-align: center; }
.partners-section h3 { margin-bottom: 14px; font-size: 1.25rem; }
.partners-marquee {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    border: none;
    border-radius: 14px;
    background: transparent;
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.partners-marquee::-webkit-scrollbar { display: none; }
.partners-marquee.is-user-scrolling {
    mask-image: none;
    -webkit-mask-image: none;
}
.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    padding: 12px 10px;
    will-change: auto;
}
.partners-segment {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    flex: 0 0 auto;
}
.partner-item {
    flex: 0 0 220px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: transparent;
    padding: 0;
    overflow: hidden;
}
.partner-item img {
    max-width: 200px;
    max-height: 74px;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none;
    opacity: .7;
    border-radius: 16px;
    transition: transform .2s ease, opacity .2s ease;
}
.partner-item:hover img { transform: scale(1.03); opacity: 1; }
.footer-brand-row { margin-bottom: 24px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text-primary); }
.footer-brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); padding: 4px; }
.footer-brand-name { font-size: 1.25rem; font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 24px; margin-bottom: 34px; }
.footer h4 { margin-bottom: 20px; font-size: 1rem; }
.footer-links a { display: block; color: var(--text-muted); padding: 6px 0; font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 13px; }
.social-links { display: flex; gap: 16px; }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--dark-600); border-radius: 50%; color: var(--text-secondary); transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: #111; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 32px 0; }
.page-link { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--dark-700); color: var(--text-secondary); font-size: 14px; border: 1px solid var(--border); }
.page-link.active, .page-link:hover { background: var(--primary); color: #111; border-color: var(--primary); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--dark-800); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: 20px; }

/* Animations */
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}
@keyframes chartFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(18px) translateY(-10px); }
}
@keyframes candlePulse {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(1.08) translateY(-2px); }
}
@keyframes linePulse {
    0%, 100% { opacity: 0.45; transform: translateY(0); }
    50% { opacity: 0.85; transform: translateY(-4px); }
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Loading Spinner */
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 24px; }
    .hero-mid-image { width: min(640px, 100%); }
    .hero-actions { margin-bottom: 26px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .trade-candle { width: 8px; }
    .trade-chart-line.line-2 { right: 6%; }
    .trade-signal {
        display: inline-flex;
        gap: 5px;
        padding: 6px 9px;
        font-size: 10px;
        letter-spacing: 0.3px;
        animation-duration: 3.8s;
    }
    .trade-signal i { font-size: 10px; }
    .trade-signal.sig-buy { top: 12%; right: 6%; }
    .trade-signal.sig-sell { top: 24%; left: 6%; }
    .trade-signal.sig-stake { bottom: 18%; right: 12%; }
    .trade-signal.sig-bot { bottom: 22%; left: 10%; }
    .stake-orbit.orbit-2 { display: none; }
    .navbar { padding: 10px 0; }
    .navbar .container { position: relative; gap: 8px; flex-wrap: wrap; }
    .navbar-brand { min-width: 0; max-width: calc(100% - 50px); }
    .navbar-brand-text { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .navbar-brand { order: 1; }
    .navbar-actions {
        order: 2;
        display: flex;
        width: auto;
        margin-left: auto;
        margin-top: 0;
        gap: 8px;
    }
    .navbar-actions .nav-register-btn { display: none; }
    .navbar-actions .nav-login-btn {
        min-width: 84px;
        padding: 9px 14px;
        font-size: 13px;
    }
    .mobile-toggle { order: 3; display: inline-flex; margin-left: 0; }
    .navbar-nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-top: 8px;
        padding: 12px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        background: rgba(9,9,9,0.96);
        backdrop-filter: blur(14px);
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav.open a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255,255,255,0.03);
        border: 1px solid transparent;
    }
    .navbar-nav.open a:hover,
    .navbar-nav.open a.active {
        background: rgba(240,185,11,0.14);
        border-color: rgba(240,185,11,0.32);
    }
    .partners-marquee { mask-image: none; -webkit-mask-image: none; }
    .partners-track { padding: 10px 6px; }
    .partner-item { flex-basis: 170px; min-height: 72px; }
    .partner-item img { max-height: 58px; max-width: 150px; }
    .partners-segment { gap: 16px; padding-right: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .navbar-brand-logo { width: 30px; height: 30px; }
    .navbar-brand-text { font-size: 0.96rem; }
    .navbar-actions { width: auto; }
    .navbar-actions .nav-login-btn {
        min-width: 74px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .hero h1 { font-size: 2rem; }
    .hero { padding-top: 88px; }
    .hero-mid-image { width: 100%; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    .trade-wave { height: 170px; }
    .trade-candle { display: none; }
    .trade-chart-line, .stake-orbit { display: none; }
    .trade-signal {
        display: inline-flex;
        gap: 4px;
        padding: 5px 8px;
        font-size: 9px;
        letter-spacing: 0.25px;
        animation-duration: 3.4s;
    }
    .trade-signal i { font-size: 9px; }
    .trade-signal.sig-buy { top: 14%; right: 4%; }
    .trade-signal.sig-sell { top: 25%; left: 4%; }
    .trade-signal.sig-stake { bottom: 16%; right: 8%; }
    .trade-signal.sig-bot { bottom: 20%; left: 7%; }
    .partners-section h3 { font-size: 1.1rem; }
    .partners-marquee {
        mask-image: none;
        -webkit-mask-image: none;
        touch-action: pan-x;
        -ms-overflow-style: none;
    }
    .partners-segment { gap: 12px; padding-right: 12px; }
    .partner-item { flex-basis: 136px; min-height: 64px; }
    .partner-item img { max-height: 46px; max-width: 122px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
    .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .trade-grid,
    .trade-wave,
    .trade-chart-line,
    .trade-candle,
    .trade-signal,
    .stake-orbit,
    .partners-track,
    .reveal-on-scroll {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
