:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d1117;
    --card-bg: #21262d;
    --text-light: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: #30363d;
}

body {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.candles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#candles {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    opacity: 0.9;
}

.candlestick {
    position: relative;
    margin: 0 8px;
    animation: float 3s ease-in-out infinite;
}

.candlestick.big {
    width: 12px;
    height: 60px;
}

.candlestick.small {
    width: 10px;
    height: 40px;
}

.candlestick.red {
    background: linear-gradient(180deg, #ff4444 0%, #cc2222 100%);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.candlestick.green {
    background: linear-gradient(180deg, #00ff88 0%, #00cc66 100%);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.candlestick::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: inherit;
}

.candlestick::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: inherit;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(10px);
    }
    75% {
        transform: translateY(-15px);
    }
}

.candlestick:nth-child(1) { animation-delay: 0s; }
.candlestick:nth-child(2) { animation-delay: 0.5s; }
.candlestick:nth-child(3) { animation-delay: 1s; }
.candlestick:nth-child(4) { animation-delay: 1.5s; }
.candlestick:nth-child(5) { animation-delay: 2s; }
.candlestick:nth-child(6) { animation-delay: 2.5s; }
.candlestick:nth-child(7) { animation-delay: 0.3s; }
.candlestick:nth-child(8) { animation-delay: 0.8s; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 68, 153, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.skills-section {
    margin: 3rem 0;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.start-trading-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.start-trading-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.6);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

.markets-section {
    min-height: 100vh;
    padding-top: 100px;
}

.market-category {
    margin-bottom: 4rem;
}

.category-title {
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.market-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.market-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.market-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.market-card h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.market-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
}

.change.positive {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.change.negative {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.trading-section {
    min-height: 100vh;
    padding-top: 100px;
}

.trading-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.trading-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-bottom: none;
}

.trading-card .card-body {
    padding: 3rem;
}

.market-info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

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

.info-item h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

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

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

.change-display.negative {
    color: var(--danger-color);
}

.volume-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.expiration-section h4 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.expiration-option {
    cursor: pointer;
    margin-bottom: 1rem;
}

.expiration-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.expiration-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

.expiration-option.selected .expiration-card {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.2);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.expiration-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expiration-card h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.expiration-card p {
    color: var(--text-muted);
    margin: 0;
}

.signal-result {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.signal-icon {
    font-size: 4rem;
}

.signal-icon.buy {
    color: var(--success-color);
}

.signal-icon.sell {
    color: var(--danger-color);
}

.signal-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.signal-text.buy {
    color: var(--success-color);
}

.signal-text.sell {
    color: var(--danger-color);
}

.signal-details {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.signal-info {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

#loadingSpinner {
    color: var(--text-muted);
}

.key-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

.key-input {
    border-radius: 8px;
    border: 2px solid #007bff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #222;
    color: #fff;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.key-input:focus {
    border-color: #0056b3;
    outline: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        height: auto;
        min-height: 100vh;
    }
    
    .skill-card, .feature-card {
        margin-bottom: 2rem;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .market-card {
        padding: 1rem;
    }
    
    .market-card h5 {
        font-size: 0.9rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .trading-card .card-body {
        padding: 2rem 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-title .badge {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
    
    .price-display {
        font-size: 1.5rem;
    }
    
    .signal-text {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .skills-section h3 {
        font-size: 1.5rem;
    }
    
    .skill-card h5 {
        font-size: 1rem;
    }
    
    .skill-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .start-trading-btn {
        width: 100%;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.75rem 2rem;
    }
    
    .btn-outline-light {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .expiration-card {
        padding: 1rem;
    }
    
    .expiration-card h5 {
        font-size: 0.9rem;
    }
    
    .expiration-card p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
    }
    
    .display-4 {
        font-size: 1.6rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .lead {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .markets-section .display-5 {
        font-size: 1.4rem;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.2;
    }
    
    .market-card h5 {
        font-size: 0.8rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .change {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .category-title i {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .trading-card .card-header {
        padding: 1.5rem 1rem;
    }
    
    .trading-card .card-header h3 {
        font-size: 1.2rem;
    }
    
    .info-item h5 {
        font-size: 0.8rem;
    }
    
    .price-display {
        font-size: 1.2rem;
    }
    
    .change-display {
        font-size: 1rem;
    }
    
    .volume-display {
        font-size: 1rem;
    }
}
