:root {
    --bg-color: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent-blue: #007aff;
    --accent-cyan: #00d4ff;
    --accent-lime: #a2ff00;
    --accent-magenta: #ff00c8;
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-lime);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-magenta);
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 100px) rotate(360deg); }
}

/* Container */
.dashboard-container {
    width: 100%;
    max-width: 1400px;
    z-index: 1;
}

/* Header */
.main-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.title-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.title-section .accent {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Nav Buttons */
.category-nav {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.nav-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.nav-btn.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.nav-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Section Cards (Categories) */
.category-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 8px;
}

.category-section:first-child {
    margin-top: 0;
}

/* Sub-category Cards */
.sub-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sub-card:hover {
    transform: translateY(-8px);
}

.sub-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-card h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 4px;
}

/* Company List */
.company-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.company-item {
    display: flex;
    flex-direction: column;
}

.company-ticker {
    font-weight: 800;
    font-size: 1rem;
}

.company-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .title-section h1 {
        font-size: 2.2rem;
    }
}
