:root {
    --bg-dark: #0a0a0f;
    --card-bg: rgba(20, 20, 25, 0.7);
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #ff007a;
    --text-main: #f0f0f5;
    --text-muted: #9aa0a6;
    --success: #00e676;
    --danger: #ff1744;
    --warning: #ffb300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

/* Ambient Background Glow */
.glow-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.glow-circle.top { top: -200px; left: -100px; background: linear-gradient(to right, var(--primary), var(--secondary)); }
.glow-circle.bottom { bottom: -200px; right: -100px; background: linear-gradient(to right, #8e2de2, var(--accent)); }

.container {
    width: 95%;
    max-width: 900px;
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    z-index: 10;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

header { margin-bottom: 2.5rem; }
h1 { font-size: 3rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #8e2de2, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }
.subtitle { color: var(--text-muted); text-align: center; font-size: 1.1rem; }

/* Forms */
.search-section { display: flex; gap: 12px; margin-bottom: 20px; }
input, .timeframe-dropdown {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    padding: 1.1rem;
    font-size: 1rem;
    outline: none;
    width: 100%;
    transition: 0.3s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); background: rgba(0, 0, 0, 0.7); }

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    padding: 0 2.5rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4); }
.btn-glow:disabled { opacity: 0.7; transform: none; cursor: wait; }

/* Autocomplete */
.input-wrapper { position: relative; width: 100%; }
.autocomplete-items {
    position: absolute;
    border-radius: 14px;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    list-style: none;
    padding: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}
.autocomplete-items li {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.autocomplete-items li:hover { background: rgba(255, 255, 255, 0.05); color: var(--primary); }
.ac-symbol { font-weight: 700; color: #fff; }
.ac-name { font-size: 0.85rem; color: var(--text-muted); text-align: right; }

/* Main Card */
.result-card { background: rgba(0, 0, 0, 0.4); padding: 2.5rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); }
.result-card h2 { margin-bottom: 1.5rem; font-weight: 700; }
.highlight { color: var(--primary); }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.value { font-size: 1.5rem; font-weight: 800; color: #fdfdfd; }
.badge { padding: 5px 15px; border-radius: 30px; }

/* Loader */
.loader { text-align: center; margin: 3rem 0; }
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Graphics */
.chart-container { background: rgba(255, 255, 255, 0.02); border-radius: 15px; padding: 15px; border: 1px solid rgba(255,255,255,0.03); }

/* Generic actions */
.action-buy { color: var(--success); }
.action-sell { color: var(--danger); }
.action-hold { color: var(--warning); }

.disclaimer { margin-top: 3rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.hidden { display: none; }

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 1.5rem 1rem; }
    .search-section { flex-direction: column; }
    .btn-glow { padding: 1.1rem; }
}
