* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    color: white;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    flex-grow: 1;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.twitter-link {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitter-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calculator-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
}

.calculate-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.results-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.result-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.result-item p {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.chart-section {
    margin-top: 30px;
}

.chart-section h3 {
    margin-bottom: 20px;
    color: #333;
}

#priceChart {
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.bonus-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bonus-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.comparison-section {
    margin-bottom: 30px;
}

.comparison-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.comparison-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #28a745;
}

.comparison-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.comparison-item p {
    color: #28a745;
    font-weight: bold;
}

.what-if-section {
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.what-if-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.what-if-section p {
    margin-bottom: 15px;
    color: #666;
}

.what-if-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.what-if-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#what-if-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.profit {
    color: #28a745 !important;
}

.loss {
    color: #dc3545 !important;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-section {
        flex-direction: column;
        gap: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .calculator-section, .results-section, .bonus-section {
        padding: 20px;
    }
    
    .results-grid, .comparison-grid {
        grid-template-columns: 1fr;
    }
}
