@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #FF007F;
    /* Neon Pink */
    --accent: #39FF14;
    /* Radioactive Green */
    --bg-dark: #050508;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 0, 127, 0.2);
    --text-main: #ffffff;
    --text-muted: #9494b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    padding-top: 60px;
    /* Aligned with fixed nav bar height */
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050508 100%);
    z-index: -2;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation - Auth Bar */
.auth-bar,
.user-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.input-group {
    flex: 1;
    position: relative;
}

input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #D400FF);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

/* Results Grid */
#results-section,
#tracker-section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.price-tag {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.advisor-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.advisor-buy {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.advisor-wait {
    background: rgba(255, 0, 127, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Timeline Forecast */
.forecast-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-container {
    height: 40px;
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-bar {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.milestone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.milestone-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}

.milestone-price {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
}

.track-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.track-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out backwards;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 3rem;
    text-align: center;
}