
/* TamaleStrategy™ Dashboard - Modern CSS */

:root {
    /* Light Theme (Default) */
    --brand-accent: #E10600; /* Logo red */
    /* Filter that tints monochrome icons to brand red */
    --icon-filter-red: invert(16%) sepia(94%) saturate(7487%) hue-rotate(2deg) brightness(95%) contrast(109%);
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9F9F9;
    --bg-card: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #EAEAEA;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --accent-primary: var(--brand-accent);
    --accent-secondary: #ff4d3d; /* lighter red for subtle gradients */
    --progress-bg: #EAEAEA;
    --progress-fill: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    --body-bg-overlay: rgba(255, 255, 255, 0.3);
    --image-overlay-opacity: 0.4;
}

.dark-theme {
    /* Dark Theme Colors */
    --bg-primary: rgba(0, 0, 0, 0.9); /* Much darker */
    --bg-secondary: rgba(10, 10, 10, 0.9);
    --bg-card: rgba(15, 15, 15, 0.8); /* Darker but still with glass effect */
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --border-color: rgba(120, 120, 120, 0.5); /* More visible border for glass effect */
    --shadow-color: rgba(0, 0, 0, 0.5);
    --body-bg-overlay: rgba(0, 0, 0, 0.65); /* Darker overlay */
    --image-overlay-opacity: 0.4; /* Still visible but darker */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/tamales.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: var(--image-overlay-opacity);
    z-index: -3; /* Moved further back to accommodate tamales */
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-bg-overlay);
    z-index: -2; /* Moved back one layer to accommodate tamales */
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Tamale Emojis Background */
/* This section is being replaced by a corrected version below */

.tamale-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.dark-theme .tamale {
    opacity: 0.9; /* Even more visible in dark mode */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7); /* Stronger glow for dark mode */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

@keyframes randomFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(15px, -10px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(5px, 15px) rotate(-3deg) scale(0.95);
    }
    75% {
        transform: translate(-10px, 5px) rotate(8deg) scale(1.02);
    }
}

/* Styling all tamales with absolute positioning to ensure they extend beyond viewport */
.tamale {
    position: absolute; /* THIS WAS THE MISSING PIECE */
    font-size: 40px; /* Base size - this is now the smallest */
    opacity: 0.9;
    z-index: -1;
    animation: randomFloat 35s infinite ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 1px 1px 1px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

/* Individual tamale positions - way more tamales with better overflow */
/* These are no longer needed as the script generates them */

/* Header - must align with internal cards */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0; /* Vertical padding only */
    width: 100%;
    max-width: 1600px; /* Wider than before */
    margin: 0 auto; /* Center the header */
    padding-left: 30px;
    padding-right: 30px;
}

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

.logo-image {
    height: 40px;
    width: auto;
}

.logo-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: var(--accent-primary) !important;
}

.social-link:hover .social-icon {
    filter: var(--icon-filter-red);
}

.social-icon {
    width: 16px;
    height: 16px;
    filter: invert(0.5);
}

.dark-theme .social-icon {
    filter: invert(0.8);
}

/* Elegant Theme Toggle */
.theme-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.theme-icon {
    font-size: 20px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sun { transform: scale(1); opacity: 1; }
.moon { transform: scale(0); opacity: 0; }

.dark-theme .sun { transform: scale(0); opacity: 0; }
.dark-theme .moon { transform: scale(1); opacity: 1; }


/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0 40px; /* Vertical padding */
    width: 100%;
}

/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Spacing between cards */
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.card-value {
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Rewards Content */
.rewards-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.reward-label {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.reward-amount {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-info {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
}

.current-reward {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--progress-bg);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right; /* Align with reward */
}

.progress-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 80%; /* Don't let it span the whole width */
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.painting-action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 150px;
    padding: 8px 12px;
    font-size: 13px;
}

.painting-action-btn:hover {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.15) !important;
}

.dark-theme .painting-action-btn:hover {
    transform: none !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15), 0 5px 10px rgba(255, 255, 255, 0.1) !important;
}

/* Status Section */
.status-section {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b6b; /* Red for error/offline */
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #50e3c2; /* Green for connected */
}

.status-dot.loading {
    background: #f8e71c; /* Yellow for loading */
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.status-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.chart-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notifications are removed via JS, but hide just in case */
.notification {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 5px 5px; /* Minimal padding for almost full width logo */
        flex-direction: column;
        gap: 10px;
    }
    .logo {
        width: 100%; /* Logo almost full width */
        justify-content: center;
    }
    .header-right {
        width: 100%; /* Full width for socials */
        justify-content: center;
        flex-direction: row; /* Single row */
    }
    .social-links {
        flex-direction: row; /* Single row */
        gap: 20px;
        justify-content: center;
    }
    .social-link {
        font-size: 0; /* Hide text */
        padding: 10px; /* Ensure clickable area */
    }
    .buy-button {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        z-index: 1000;
        margin: 0;
    }
    .main-content {
        padding: 120px 20px 120px; /* Adjust for fixed header and button, add bottom for whitepaper */
        display: flex;
        flex-direction: column;
    }
    .whitepaper-link {
        margin-top: auto; /* Push to bottom of scrollable area */
        align-self: flex-start;
    }
    .card-value {
        font-size: 4rem;
    }
    .trading-fees-value {
        font-size: 5rem;
    }
}


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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fafafa;
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.dark-theme {
    background: #000000; /* True black background for dark mode */
}

.dark-theme .dashboard-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #999999; /* Dark grey outline for consistency */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Pronounced tight drop shadow for dark mode */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.dark-theme .chart-container {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #999999; /* Dark grey outline for consistency */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Pronounced tight drop shadow for dark mode */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(120, 120, 120, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(120, 120, 120, 0.15) 1px, transparent 1px),
        url('assets/img/tamales.jpg');
    background-size: 40px 40px, 40px 40px, cover;
    background-position: 0 0, 20px 20px, center;
    background-repeat: repeat, repeat, no-repeat;
    background-attachment: fixed;
    opacity: 0.5; /* Slightly higher opacity */
    z-index: -3;
    pointer-events: none;
    filter: blur(1px); /* Slight blur on background image */
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* More transparent for stronger contrast with glass elements */
    z-index: -2;
    pointer-events: none;
}

/* Dark theme background */
.dark-theme::before {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(200, 200, 200, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(200, 200, 200, 0.1) 1px, transparent 1px),
        url('assets/img/tamales.jpg');
    opacity: 0.4; /* Still visible but not overwhelming */
    filter: blur(1px) brightness(0.7) contrast(1.2); /* Darker but with more contrast */
}

.dark-theme::after {
    background: rgba(0, 0, 0, 0.65); /* Much darker overlay for dark mode */
}


.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 200px; /* Match the main content padding */
    background: transparent;
    z-index: 1000;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

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

.logo-image {
    height: 48px;
    width: auto;
}

.logo-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .logo-title {
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.buy-button {
    background-color: #000000; /* Solid black background in light mode */
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35), 0 8px 15px rgba(0, 0, 0, 0.25);
}

.wallet-icon {
    width: 20px;
    height: 20px;
}

.dark-theme .buy-button {
    background-color: #FFFFFF; /* Solid white background in dark mode */
    color: #000000;
    border: 2px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15), 0 5px 10px rgba(255, 255, 255, 0.1);
}

.dark-theme .buy-button:hover {
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25), 0 8px 15px rgba(255, 255, 255, 0.15);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease; /* sync with icon transitions */
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark-theme .social-link {
    color: #ffffff;
}

.social-link:hover {
    color: var(--accent-primary) !important;
}

.social-link:hover .social-icon {
    filter: invert(15%) sepia(100%) saturate(7000%) hue-rotate(1deg) brightness(97%) contrast(110%);
}

.social-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0);
    transition: filter 0.2s ease; /* sync with link color */
}

.dark-theme .social-icon {
    filter: brightness(0) invert(1);
}

.social-link:hover .social-icon {
    filter: invert(15%) sepia(100%) saturate(7000%) hue-rotate(1deg) brightness(97%) contrast(110%);
}

/* DexScreener icon specific styling */
.dex-icon {
    filter: none; /* Show the actual image in light mode */
    transition: filter 0.2s ease; /* sync timing with text */
}

.dark-theme .dex-icon {
    filter: invert(1); /* Invert colors for dark mode */
}

.social-link:hover .dex-icon {
    /* Match text hover with same red tint */
    filter: var(--icon-filter-red);
}

.dark-theme .social-link:hover .dex-icon {
    filter: var(--icon-filter-red);
}



/* Complex slider styles removed - using simple emoji toggle */


/* Main Content */
.main-content {
    flex: 1;
    padding: 120px 200px 40px; /* Much more pronounced left and right padding */
    max-width: 1600px; /* Match the header width */
    margin: 0 auto;
    width: 100%;
}


/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.3); /* More transparent for stronger glass effect */
    border: 1px solid #999999; /* Dark grey outline */
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Pronounced tight drop shadow */
    transition: all 0.3s ease;
    backdrop-filter: blur(25px); /* Increased blur for stronger glass effect */
    -webkit-backdrop-filter: blur(25px);
}

.dashboard-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Matching shadow on hover */
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .card-title {
    color: #ffffff;
}

.card-value {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, #ffb3aa 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: rollingGradient 4s ease-in-out infinite;
}

.card-value.unavailable {
    font-size: 2rem;
    background: #888888;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
}

/* Trading Fees Specific Styling */
.trading-fees-value {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, 
        #A0A0A0 0%, 
        #C0C0C0 20%, 
        #E8E8E8 40%, 
        #FFFFFF 50%, 
        #E8E8E8 60%, 
        #C0C0C0 80%, 
        #A0A0A0 100%);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chromeSweep 8s linear infinite;
    position: relative;
    display: inline-block;
}

@keyframes chromeSweep {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rollingGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Painting Card Styling */
.painting-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.painting-image-container {
    background: #F0F0F0;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 170px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark-theme .painting-image-container {
    background: #2A2A2A;
    border: 2px solid #404040;
}

.painting-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #D0D0D0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.dark-theme .painting-image {
    border: 2px solid #505050;
}

.painting-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.painting-artist {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .painting-artist {
    color: #ffffff;
}

.painting-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .painting-title {
    color: #ffffff;
}

.painting-medium {
    font-size: 1rem;
    color: #555555;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .painting-medium {
    color: #CCCCCC;
}

.painting-dimensions {
    font-size: 1rem;
    color: #555555;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .painting-dimensions {
    color: #CCCCCC;
}

.painting-year {
    font-size: 1rem;
    color: #555555;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .painting-year {
    color: #CCCCCC;
}

/* Responsive design for painting card */
@media (max-width: 768px) {
    .painting-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .painting-image-container {
        min-width: auto;
    }
}

/* Footer */
.footer {
    padding: 30px 200px;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.footer-text {
    font-style: italic;
    font-size: 14px;
    color: #000000;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .footer-text {
    color: #FFFFFF;
}

/* Rewards Content */
.rewards-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.reward-label {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark-theme .reward-label {
    color: #ffffff;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), #ffb3aa, var(--accent-primary));
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: rollingGradient 3s ease-in-out infinite;
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-reward {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: center;
}

.progress-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--button-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

/* Status Section */
.status-section {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Chart Container */
.chart-container {
    width: 100%;
    max-width: 1600px;
    margin: 30px auto 0;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Pronounced tight drop shadow */
    border: 1px solid #999999; /* Dark grey outline */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.3);
}

.chart-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--accent-primary);
}

.status-dot.loading {
    background: #ffd43b;
}

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

.status-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.notification.success {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.notification.error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 10vh; /* Top 10% of page */
        background: rgba(255, 255, 255, 0.3); /* Glassy/semi opaque */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: none;
        border-radius: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        z-index: 1000;
        flex-direction: row; /* Bar layout */
    }
    .dark-theme .header {
        background: rgba(0, 0, 0, 0.3); /* Dark glassy */
    }
    .logo-title {
        display: none; /* Kill the text */
    }
    .header-right {
        justify-self: flex-end; /* Socials right */
        flex-direction: row;
        gap: 20px;
    }
    .social-links {
        flex-direction: row;
        gap: 20px;
    }
    .social-link {
        font-size: 0; /* Hide text */
        padding: 10px;
    }
    .buy-button {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 200px !important;
        border-radius: 16px !important;
        z-index: 1000 !important;
        margin: 0 !important;
    }
    .main-content {
        padding: 10vh 20px 120px; /* Adjust for fixed header height */
    }
    .card-value {
        font-size: 4rem;
    }
    .trading-fees-value {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-title {
        font-size: 14px;
    }

    .creator-input {
        min-width: 200px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .card-value {
        font-size: 2rem;
    }
}

/* Loading states */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Whitepaper Styles */
.whitepaper-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 10px;
}

.whitepaper-link:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.whitepaper-content {
    max-width: 800px;
    margin: 60px auto 40px auto;
    padding: 40px 20px;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}

.whitepaper-content h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.whitepaper-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
}

.whitepaper-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.whitepaper-content p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.whitepaper-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.whitepaper-content li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}the bu