* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.loading {
    text-align: center;
    color: white;
    margin-top: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
}

.current-price h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.market-data {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 15px;
    padding: 15px 0;
}

.market-cap, .volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.market-data .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.market-data .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .market-data {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.performance-section {
    margin-bottom: 30px;
}

.performance-section h2,
.mayer-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.performance-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.performance-item .label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.performance-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
}

.historical-price {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
    margin-top: 5px;
}

.positive {
    color: #27ae60;
}

.negative {
    color: #e74c3c;
}

.mayer-section {
    margin-bottom: 30px;
}

.chart-section {
    margin-top: 30px;
}

.chart-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.chart-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #9b59b6;
    position: relative;
    min-height: 450px;
}

#mayerMultipleChart {
    max-width: 100%;
    height: 400px !important;
    margin: 0 auto;
}

.mayer-chart {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: block;
}

.chart-caption {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.mayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mayer-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #9b59b6;
}

.mayer-item .label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.mayer-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.signal-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    color: white;
}

.market-status {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-emoji {
    font-size: 2rem;
    margin-right: 10px;
}

.signal-strength {
    font-size: 1.2rem;
    opacity: 0.9;
}

.buying-opportunity-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e8, #f0f9ff);
    border-radius: 15px;
    border-left: 5px solid #27ae60;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.buying-opportunity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.opportunity-emoji {
    font-size: 1.8rem;
}

.opportunity-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

.opportunity-description {
    font-size: 1rem;
    color: #34495e;
    line-height: 1.5;
    font-style: italic;
}

.footer-section {
    text-align: center;
    border-top: 2px solid #ecf0f1;
    padding-top: 20px;
}

.last-updated {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.twitter-link {
    display: inline-block;
    background: #1da1f2;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.twitter-link:hover {
    background: #0d8bd9;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .performance-grid,
    .mayer-grid {
        grid-template-columns: 1fr;
    }
}