/* ============== GLOBAL STYLES ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #c5a028;
    --silver: #c0c0c0;
    --gray: #808080;
    --gray-light: #a0a0a0;
    --gray-dark: #404040;
    --white: #f5f5f5;
    --green: #10b981;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #8b5cf6;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f0f 50%, var(--bg-medium) 100%);
    color: var(--white);
    padding: 15px;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* ============== HEADER ============== */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--gray-light);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* ============== CONTROLS ============== */
.controls-panel {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
}

.controls-main {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

label {
    font-size: 0.85em;
    color: var(--gray-light);
    font-weight: 600;
    letter-spacing: 0.3px;
}

select {
    padding: 10px 14px;
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: var(--gold);
    background: rgba(42, 42, 42, 1);
}

select:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(42, 42, 42, 0.9);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(42, 42, 42, 1);
    border-color: var(--gold);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============== INDICATORS MENU ============== */
.indicators-menu {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-header h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.indicator-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.indicator-checkbox:hover {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

.indicator-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* ============== STATS ============== */
.stats-container {
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.prediction-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.7) 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.stat-label {
    font-size: 0.7em;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.stat-card-special {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(26, 26, 26, 0.9) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ============== CHARTS ============== */
.chart-section {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* ============== DETAILS SECTION ============== */
.details-section {
    margin-top: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}

.detail-panel {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.panel-title {
    color: var(--gold);
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(42, 42, 42, 0.8);
}

.detail-label {
    color: var(--gray-light);
    font-size: 0.9em;
}

.detail-value {
    color: var(--white);
    font-weight: 600;
}

/* ============== SPECIAL ELEMENTS ============== */
.signal-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.signal-buy {
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.signal-sell {
    background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.signal-hold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.fear-greed-meter {
    margin: 15px 0;
}

.meter-bar {
    width: 100%;
    height: 25px;
    background: linear-gradient(90deg, 
        var(--red) 0%, 
        #f59e0b 25%, 
        var(--gold) 50%, 
        #84cc16 75%, 
        var(--green) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.meter-indicator {
    position: absolute;
    width: 3px;
    height: 35px;
    background: var(--white);
    top: -5px;
    transition: left 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.meter-value {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin: 15px 0 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meter-label {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}

.prob-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.prob-item:hover {
    transform: translateX(5px);
}

.prob-up {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--green);
}

.prob-down {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--red);
}

.prob-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.prob-label {
    font-weight: 600;
    font-size: 0.95em;
}

.prob-value {
    font-size: 1.3em;
    font-weight: 700;
}

.prob-price {
    font-size: 0.85em;
    color: var(--gray-light);
}

/* ============== LOADING ============== */
.loading {
    text-align: center;
    padding: 50px;
    display: none;
}

.loading-spinner {
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--gold);
    font-size: 1.1em;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2em;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .controls-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
    }
    
    button {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .stat-value {
        font-size: 1.3em;
    }
}