/**
 * NEXUS TRADE AI - Main Stylesheet
 * Dark Theme with Cyan/Green Accents
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #111111;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --cyan: #00f5ff;
    --green: #00ff88;
    --gold: #ffd700;
    --red: #ff4757;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-glow-cyan: 0 0 20px rgba(0, 245, 255, 0.3);
    --shadow-glow-green: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==================== GLASS MORPHISM ==================== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #000;
    border: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--cyan);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.btn-outline:hover {
    background: var(--cyan);
    color: #000;
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
}

.form-input {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-input::placeholder {
    color: var(--gray-500);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

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

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

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Balance Cards */
.balance-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-4px);
}

.balance-card .label {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.balance-card .amount {
    font-size: 2rem;
    font-weight: 700;
}

.balance-card.total {
    border-top: 3px solid var(--cyan);
}

.balance-card.total .amount {
    color: var(--cyan);
}

.balance-card.available {
    border-top: 3px solid var(--green);
}

.balance-card.available .amount {
    color: var(--green);
}

.balance-card.invested {
    border-top: 3px solid var(--gold);
}

.balance-card.invested .amount {
    color: var(--gold);
}

/* Plan Cards */
.plan-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.1);
}

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

.plan-card .plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-card .plan-duration {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.plan-card .plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0;
}

.plan-card .plan-features {
    list-style: none;
    margin: 24px 0;
}

.plan-card .plan-features li {
    padding: 8px 0;
    color: var(--gray-300);
    font-size: 14px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand .logo-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.navbar-brand span {
    color: var(--cyan);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-nav a {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--white);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 900;
    transition: transform 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 16px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-menu a:hover {
    background: var(--bg-glass);
    color: var(--white);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(0, 255, 136, 0.1));
    color: var(--cyan);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 16px;
}

.sidebar-section-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 260px;
    padding: 90px 30px 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-400);
    font-size: 14px;
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--gray-400);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: var(--bg-glass);
}

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

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.1);
    color: var(--red);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge-info {
    background: rgba(0, 245, 255, 0.1);
    color: var(--cyan);
}

.badge-secondary {
    background: var(--bg-glass);
    color: var(--gray-400);
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.bg-green-500 {
    background: linear-gradient(135deg, var(--green), #00c853);
}

.notification.bg-red-500 {
    background: linear-gradient(135deg, var(--red), #d32f2f);
}

.notification.bg-yellow-500 {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: 
        radial-gradient(ellipse at top, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

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

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 16px;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-400);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--gray-400);
    font-size: 14px;
}

.auth-footer a {
    color: var(--cyan);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 255, 136, 0.15) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.hero-stat .value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-stat .label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== PRICE TICKER ==================== */
.price-ticker {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow: hidden;
    z-index: 800;
}

.ticker-wrap {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.ticker-item .symbol {
    color: var(--gray-400);
}

.ticker-item .price {
    color: var(--white);
    font-weight: 600;
}

.ticker-item .change-up {
    color: var(--green);
}

.ticker-item .change-down {
    color: var(--red);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 100px 24px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== CALCULATOR SECTION ==================== */
.calculator {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.calculator-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.range-group label {
    font-size: 14px;
    color: var(--gray-400);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--gray-700);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow-cyan);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-500);
}

.range-current {
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.125rem;
}

.calculator-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.calculator-result .label {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.calculator-result .total {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.calculator-result .return {
    color: var(--green);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.result-row .label {
    color: var(--gray-500);
}

.result-row .value {
    color: var(--white);
    font-weight: 600;
}

/* ==================== PLANS SECTION ==================== */
.plans-section {
    padding: 100px 24px;
}

.plans-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.plan-tab {
    padding: 12px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-tab:hover {
    border-color: var(--cyan);
    color: var(--white);
}

.plan-tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-color: transparent;
    color: #000;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--cyan);
}

/* ==================== DASHBOARD ==================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-section {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-section h3 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-section h3 a {
    font-size: 13px;
    color: var(--cyan);
    font-weight: 500;
}

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* ==================== INVESTMENTS ==================== */
.investment-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

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

.investment-header h4 {
    font-size: 1.125rem;
}

.investment-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: var(--gray-700);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.investment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.investment-stat {
    text-align: center;
}

.investment-stat .label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.investment-stat .value {
    font-size: 1.125rem;
    font-weight: 600;
}

.investment-stat .value.profit {
    color: var(--green);
}

.investment-stat .value.loss {
    color: var(--red);
}

/* ==================== REFERRALS ==================== */
.referral-box {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.referral-link {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.referral-link input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 14px;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.referral-stat {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.referral-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.referral-stat .label {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== ADMIN PANEL ==================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.admin-stat .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.admin-stat .icon svg {
    width: 24px;
    height: 24px;
    color: var(--cyan);
}

.admin-stat .value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-stat .label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 12px 20px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--white);
}

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

.tab-content {
    display: none;
}

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

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-glass);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--gray-500);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats,
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .features-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .dashboard-stats,
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.5); }
}

.glow-cyan {
    animation: glow 2s ease-in-out infinite;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

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

/* ==================== LOADING ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-700);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== PRINT ==================== */
@media print {
    .navbar, .sidebar, .btn, .quick-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
}
