/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10b981;
    --secondary-color: #f59e0b;
    --accent-color: #1e40af;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

[data-theme="dark"] {
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading States */
.loading {
    color: var(--text-secondary) !important;
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

/* Real-time Data Indicator */
.real-time-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
}

.real-time-dot {
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2);
    }
}

/* Logo Image */
.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 1001;
}

.nav-logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

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

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--surface-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: var(--surface-color);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 8px;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.large {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
}

.full-width {
    width: 100%;
}

.small {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%239C92AC" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    space-y: 32px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text, .text-primary {
    background: linear-gradient(135deg, #10b981, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

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

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Chart Component */
.hero-chart {
    display: flex;
    justify-content: center;
}

.chart-container {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
}

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

.chart-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.chart-info p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.chart-price {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.change {
    font-size: 0.875rem;
    font-weight: 600;
}

.change.positive {
    color: #10b981;
}

.change.negative {
    color: #ef4444;
}

.chart-canvas {
    height: 200px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

#stockChart {
    width: 100%;
    height: 100%;
}

.chart-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.real-time {
    color: #94a3b8;
}

/* Sections */
.features, .testimonials, .mission, .technology, .team, .achievements, .resources-content, .dashboard-content {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Dashboard Styles */
.dashboard-header {
    padding: 100px 0 40px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-title p {
    color: var(--text-secondary);
}

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

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-stats {
    padding: 40px 0;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

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

.stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--error-color);
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--error-color);
}

/* Enhanced Trading Dashboard */
.trading-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.crypto-grid, .forex-grid, .commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.crypto-card, .forex-card, .commodity-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.crypto-card:hover, .forex-card:hover, .commodity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.crypto-card::after, .forex-card::after, .commodity-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.crypto-header, .forex-header, .commodity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.crypto-icon, .forex-icon, .commodity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.btc { background: #f7931a; }
.eth { background: #627eea; }
.doge { background: #c2a633; }
.ltc { background: #bfbbbb; }
.ada { background: #0033ad; }

.eur { background: #003399; }
.gbp { background: #012169; }
.jpy { background: #bc002d; }
.aud { background: #00008b; }
.cad { background: #ff0000; }

.gold { background: #ffd700; }
.silver { background: #c0c0c0; }
.oil { background: #000000; }
.gas { background: #4169e1; }
.copper { background: #b87333; }

.crypto-name, .forex-name, .commodity-name {
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-symbol, .forex-symbol, .commodity-symbol {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.crypto-price, .forex-price, .commodity-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.crypto-change, .forex-change, .commodity-change {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Market Heat Map */
.heatmap-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.heatmap-item {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.heatmap-item:hover {
    transform: scale(1.05);
}

.heatmap-item.positive {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.heatmap-item.negative {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.heatmap-symbol {
    font-weight: 700;
    margin-bottom: 8px;
}

.heatmap-change {
    font-weight: 600;
}

/* Economic Calendar */
.calendar-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-event {
    display: grid;
    grid-template-columns: 80px 40px 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
}

.event-time {
    font-weight: 600;
    color: var(--primary-color);
}

.event-flag {
    font-size: 1.5rem;
}

.event-details h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.event-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.event-impact {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-impact.high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.event-impact.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.event-impact.low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Options Flow */
.options-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.options-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-trade {
    display: grid;
    grid-template-columns: 80px 60px 120px 100px 100px auto;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    font-size: 0.875rem;
}

.option-symbol {
    font-weight: 700;
}

.option-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.option-type.call {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.option-type.put {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Tabs */
.dashboard-tabs, .resources-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 8px 8px 0 0;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.tab-content, .resource-tab-content {
    display: none;
}

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

/* Card Tabs */
.card-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.card-tab-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 36px;
}

.card-tab-btn.active,
.card-tab-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.card-tab-content {
    display: none;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: var(--surface-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stars {
    color: #f59e0b;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.profit-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Page Hero */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
    color: white;
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.page-hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Newsletter Signup */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    min-height: 44px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Resources Page Specific Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.course-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.course-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}

.course-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.course-instructor {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.course-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.course-features {
    margin-bottom: 20px;
}

.course-features p {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.course-features ul {
    list-style: none;
    padding: 0;
}

.course-features li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.course-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ebook-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.ebook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ebook-cover {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.ebook-info {
    flex: 1;
}

.ebook-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ebook-badge.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

.ebook-badge.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ebook-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
    float: right;
    margin-top: -24px;
}

.ebook-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ebook-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ebook-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ebook-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.webinars-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.webinar-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
    transition: all 0.3s ease;
}

.webinar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.webinar-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.webinar-badge.upcoming {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

.webinar-badge.recorded {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.webinar-attendees {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    float: right;
    margin-top: -24px;
}

.webinar-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.webinar-description {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.webinar-instructor {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.webinar-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.webinar-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.webinar-detail i {
    color: var(--primary-color);
    width: 16px;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.tutorial-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tutorial-thumbnail {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-icon {
    font-size: 3rem;
}

.tutorial-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tutorial-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-play:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.tutorial-info {
    padding: 20px;
}

.tutorial-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tutorial-category {
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tutorial-level {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tutorial-level.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

.tutorial-level.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tutorial-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tutorial-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.coming-soon {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.coming-soon i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.coming-soon h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.coming-soon p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-section h3 {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background-color);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        text-align: center;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .nav-buttons .btn-primary {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trading-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .crypto-grid, .forex-grid, .commodities-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .ebooks-grid {
        grid-template-columns: 1fr;
    }

    .webinar-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tutorials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .dashboard-tabs,
    .resources-tabs {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .dashboard-header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .crypto-grid, .forex-grid, .commodities-grid {
        grid-template-columns: 1fr;
    }

    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-event {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .option-trade {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .chart-container {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .ebook-card {
        flex-direction: column;
        text-align: center;
    }

    .ebook-cover {
        width: 100px;
        height: 120px;
        margin: 0 auto 16px;
    }

    .webinar-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .webinar-details {
        align-items: center;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons .btn-secondary,
    .cta-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 20px;
    }

    .course-stats {
        flex-direction: column;
        gap: 8px;
    }

    .course-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Utility Classes */
.positive {
    color: var(--success-color) !important;
}

.negative {
    color: var(--error-color) !important;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    cursor: pointer;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch targets for mobile */
@media (max-width: 768px) {
    button,
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        min-width: 44px;
    }
}