:root {
    --color-primary: #FF8C00;
    --color-secondary: #708090;
    --color-background: #FFFFFF;
    --color-text: #333333;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--color-primary) 85%, black);
    border-color: color-mix(in srgb, var(--color-primary) 85%, black);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--color-primary) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--color-secondary);
}

/* Signal Cards */
.signal-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.signal-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.signal-pair {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.signal-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-type.buy {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.signal-type.sell {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
}

.confidence-badge {
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, white));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, white));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* Authentication Forms */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Performance Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

/* Responsive Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: var(--color-text);
    padding: 1rem;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.status-expired {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
}

.status-trial {
    background: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--color-info);
}

/* Footer Newsletter */
.newsletter-form .input-group {
    margin-top: 1rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    color: white;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .feature-card,
    .pricing-card,
    .signal-card,
    .dashboard-card,
    .auth-card {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }
    
    .table th {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .form-control {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        background: #333;
        border-color: var(--color-primary);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .theme-switcher {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .feature-card,
    .pricing-card,
    .signal-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
