:root {
    /* Silver color palette */
    --silver-primary: #8B9BB3;
    --silver-light: #B8C5D6;
    --silver-medium: #A5B4C9;
    --silver-dark: #6B7A8F;
    --silver-darker: #4A5568;

    /* Background colors - Light theme */
    --bg-primary: #F7F9FC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #EDF1F7;
    --bg-card: #FFFFFF;
    --bg-hover: #E8EDF5;

    /* Text colors - Light theme */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-dim: #A0AEC0;

    /* Accent colors */
    --accent-positive: #10B981;
    --accent-negative: #EF4444;
    --accent-warning: #F59E0B;
    --accent-silver: #8B9BB3;

    /* Borders */
    --border-default: rgba(139, 155, 179, 0.15);
    --border-hover: rgba(139, 155, 179, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-silver: 0 4px 20px rgba(139, 155, 179, 0.2);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--silver-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--silver-dark);
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-default);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text-container {
    flex: 1;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-default);
}

.sidebar-links {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--silver-light);
}

.sidebar-link-img img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.wallet-connect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
}

.wallet-connect svg {
    width: 20px;
    height: 20px;
}

.wallet-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.wallet-status {
    font-size: 10px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Top Stats Bar */
.top-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: 50;
}

.stat-group {
    display: flex;
    gap: 32px;
}

.stat-small {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label-sm {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value-sm.positive {
    color: var(--accent-positive);
}

.stat-value-sm.gold {
    color: var(--accent-gold);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-positive);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Section */
.section {
    padding: 32px;
    max-width: 1400px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(192, 192, 192, 0.1);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--silver-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--silver-primary);
}

.main-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.main-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 32px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.metric-icon {
    color: var(--text-muted);
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-value-large.silver {
    color: var(--silver-primary);
}

.metric-sublabel {
    font-size: 13px;
    color: var(--text-secondary);
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--silver-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-link:hover {
    color: var(--silver-light);
}

/* How It Works */
.how-it-works {
    margin-bottom: 40px;
}

.subsection-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.step-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.step-icon.silver {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.3));
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-tabs {
    display: flex;
    gap: 8px;
}

.chart-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chart-tab.active {
    background: var(--silver-primary);
    border-color: var(--silver-primary);
    color: var(--bg-primary);
}

.chart-container {
    margin-bottom: 20px;
}

.chart-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
}

.chart-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.6) 100%);
}

.chart-info {
    text-align: center;
}

.chart-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.premium-badge {
    display: inline-flex;
    flex-direction: column;
    padding: 16px 24px;
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.premium-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-positive);
    line-height: 1;
    margin-bottom: 4px;
}

.premium-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.chart-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.chart-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.chart-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.bullish-signal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(192, 192, 192, 0.05);
    border-left: 3px solid var(--silver-primary);
    border-radius: 8px;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--silver-primary);
    flex-shrink: 0;
    margin-top: 6px;
}

.bullish-signal strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bullish-signal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Birdeye Chart */
.birdeye-chart {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

/* Treasury Section Styles */
.treasury-info {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--silver-light);
    margin-bottom: 12px;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-bottom: 12px;
}

.info-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.trading-info {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.trading-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trading-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trading-info strong {
    color: var(--silver-light);
}

.nav-definition {
    margin-top: 40px;
}

.formula-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

.formula {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--silver-primary);
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--silver-primary);
}

.formula-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.reserve-mechanism {
    margin-top: 40px;
    background: rgba(192, 192, 192, 0.05);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 24px;
}

.reserve-mechanism h3 {
    margin-bottom: 16px;
}

.reserve-mechanism p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Visibility */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .metrics-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .birdeye-chart {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-stats {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .stat-group {
        flex-wrap: wrap;
        gap: 16px;
    }

    .section {
        padding: 20px 16px;
    }

    .main-title {
        font-size: 28px;
    }

    .chart-placeholder {
        height: 300px;
    }

    .chart-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease;
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid var(--silver-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
