:root {
    --primary-color: #D5AB64;
    --primary-dark: #c49a53;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #171B24;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #171B24;
    --dark-bg-lighter: #222832;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
}

p, span, a, button, input, textarea, select, li {
    font-family: var(--font-family);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
}

.refresh-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.refresh-button:hover {
    background-color: var(--primary-dark);
}

.last-update {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.crypto-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crypto-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.crypto-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.crypto-symbol {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.price-info {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.predictions-list {
    display: grid;
    gap: 1rem;
}

.prediction-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: var(--background-color);
    border-radius: 0.5rem;
}

.prediction-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prediction-value {
    font-weight: 500;
}

.price-change {
    font-size: 0.875rem;
}

.price-up {
    color: var(--success-color);
}

.price-down {
    color: var(--danger-color);
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.sentiment-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sentiment {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.sentiment.bullish {
    background-color: rgba(213, 171, 100, 0.1);
    color: var(--primary-color);
}

.sentiment.bearish {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.predictions-placeholder {
    margin-top: 1rem;
}

.analyze-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.analyze-button:hover {
    background-color: var(--primary-dark);
}

.card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.loader-small {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: var(--danger-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.ai-badge {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.ai-badge span {
    background-color: rgba(213, 171, 100, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-lighter) 100%);
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-top: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    font-family: var(--font-family);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: var(--font-family);
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: #e2e8f0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-family);
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.footer-crypto-list {
    list-style: none;
    padding: 0;
}

.footer-crypto-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family);
}

.version-badge {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-right .user-info {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-img {
        max-height: 300px;
    }
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.prediction-explanation {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    background-color: rgba(226, 232, 240, 0.3);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* Authentication styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--dark-bg);
    padding: 2rem;
}

.auth-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-family);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-family);
}

#login-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.login-option {
    width: 100%;
}

.auth-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.auth-button:hover {
    background-color: var(--primary-dark);
}

.auth-button-secondary {
    background-color: var(--dark-bg-lighter);
    color: white;
}

.auth-button-secondary:hover {
    background-color: #2a3241;
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-separator span {
    padding: 0 1rem;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-family);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: var(--font-family);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.verification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
}

.auth-button-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    text-decoration: underline;
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-family);
}

.auth-button-link:hover {
    color: var(--primary-dark);
}

.status-message {
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.status-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Updated Hero Section for centered column layout */
.hero-section-full {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI2MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRjVGN0ZBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VCRUVGNCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTAgMGgxNDQwdjYwMEgweiIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    color: #333;
    line-height: 1.2;
    font-family: var(--font-family);
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family);
}

.hero-free {
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: var(--font-family);
}

.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(213, 171, 100, 0.2);
    font-family: var(--font-family);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(213, 171, 100, 0.3);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    min-width: 150px;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: var(--font-family);
}

.stat-label {
    font-size: 0.875rem;
    color: #777;
    font-family: var(--font-family);
}

.hero-phone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
}

.phone-logo {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.phone-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.token-details {
    width: 100%;
    max-width: 400px;
    text-align: left;
    padding: 1.5rem;
}

.token-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
    font-family: var(--font-family);
}

.token-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.token-name {
    font-weight: 500;
    color: #555;
    font-family: var(--font-family);
}

.token-change {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-family);
}

.token-change.positive {
    color: #10b981;
}

.token-change.negative {
    color: #ef4444;
}

.token-price {
    font-weight: 600;
    color: #333;
    font-family: var(--font-family);
}

.token-chart {
    grid-column: span 2;
    height: 20px;
}

/* Responsive adjustments for the hero section */
@media (max-width: 768px) {
    .hero-section-full {
        padding: 3rem 1.5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-description br,
    .hero-title br {
        display: none;
    }
    
    .hero-phone {
        margin: 1rem 0;
    }
    
    .phone-logo {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-card {
        width: 100%;
        min-width: 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .phone-logo {
        max-height: 250px;
    }
}

/* Updated Navbar styles */
.navbar {
    position: sticky;
    top: 1rem;
    z-index: 100;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    max-width: 1200px;
}

.navbar-container {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Update user info for light background */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#username-display {
    font-weight: 500;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.logout-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.logout-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Update version badge for light background */
.version-badge {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    display: inline-block;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Update mobile menu for light background */
.mobile-menu {
    display: none;
    padding: 1rem;
    background-color: white;
    border-radius: 0 0 1rem 1rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
    display: block;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

#mobile-username-display {
    font-weight: 500;
    color: var(--primary-color);
}

/* Responsive adjustments for navbar */
@media (max-width: 768px) {
    .navbar {
        top: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .navbar-container {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    /* Hide desktop navigation and user info on mobile */
    .navbar-right .nav-links,
    .navbar-right .user-info {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-button {
        display: block;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    /* Version badge adjustments */
    .version-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.5rem;
    }
    
    /* Mobile menu styling */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border-radius: 0 0 1rem 1rem;
        margin-top: 0.25rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
        border-top: none;
        z-index: 1000;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-nav-links {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav-link {
        display: block;
        padding: 0.75rem 0;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--primary-color);
    }
    
    .mobile-user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    #mobile-username-display {
        font-weight: 500;
        color: var(--primary-color);
        font-size: 0.9rem;
    }
    
    .mobile-user-info .logout-button {
        background: #D5AB64;
        color: #171B24;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-user-info .logout-button:hover {
        background: #c49952;
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .navbar-container {
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-logo img {
        width: 32px;
        height: 32px;
    }
    
    .version-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .mobile-menu-button {
        font-size: 1.25rem;
        padding: 0.25rem;
    }
    
    .mobile-nav-links {
        padding: 0.75rem;
    }
    
    .mobile-nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .mobile-user-info {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    #mobile-username-display {
        font-size: 0.85rem;
    }
    
    .mobile-user-info .logout-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        top: 0.125rem;
        padding: 0 0.125rem;
    }
    
    .navbar-container {
        padding: 0.4rem 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        gap: 0.5rem;
    }
    
    .navbar-logo img {
        width: 28px;
        height: 28px;
    }
    
    .version-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
        margin-right: 0.25rem;
    }
    
    .mobile-menu-button {
        font-size: 1.1rem;
        padding: 0.2rem;
    }
    
    .mobile-menu {
        margin-top: 0.125rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    
    .mobile-nav-links {
        padding: 0.5rem;
    }
    
    .mobile-nav-link {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .mobile-user-info {
        padding: 0.5rem;
    }
    
    #mobile-username-display {
        font-size: 0.8rem;
    }
    
    .mobile-user-info .logout-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Ensure navbar stays above other content */
.navbar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* Adjust page content to account for fixed navbar */
.fear-greed-container {
    margin-top: 6rem;
}

@media (max-width: 768px) {
    .fear-greed-container {
        margin-top: 5rem;
    }
}

@media (max-width: 480px) {
    .fear-greed-container {
        margin-top: 4.5rem;
    }
}

@media (max-width: 360px) {
    .fear-greed-container {
        margin-top: 4rem;
    }
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(213, 171, 100, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(213, 171, 100, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(213, 171, 100, 0.1);
}

/* Fear & Greed Index Page - Responsive Design */
.fear-greed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 6rem;
}

.fear-greed-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fear-greed-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fear-greed-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.fear-greed-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Fear & Greed Display */
.fear-greed-display {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.fear-greed-number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.fear-greed-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 6px solid rgba(255, 255, 255, 0.2);
    /* Default neutral color */
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* Color classes for different sentiment levels */
.fear-greed-circle.extreme-fear {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
}

.fear-greed-circle.fear {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.3);
}

.fear-greed-circle.neutral {
    background: linear-gradient(135deg, #eab308, #fbbf24);
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.3);
}

.fear-greed-circle.greed {
    background: linear-gradient(135deg, #65a30d, #84cc16);
    box-shadow: 0 12px 40px rgba(101, 163, 13, 0.3);
}

.fear-greed-circle.extreme-greed {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 40px rgba(22, 163, 74, 0.3);
}

/* Make sure the text stays white and visible */
.fear-greed-value {
    font-size: 4.5rem;
    font-weight: 900;
    color: white !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    z-index: 1;
}

/* Update the color scale backgrounds to match */
.extreme-fear-bg {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.fear-bg {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.neutral-bg {
    background: linear-gradient(135deg, #eab308, #fbbf24);
}

.greed-bg {
    background: linear-gradient(135deg, #65a30d, #84cc16);
}

.extreme-greed-bg {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.fear-greed-info {
    text-align: center;
    max-width: 500px;
}

.fear-greed-label {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.sentiment-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Color scale reference */
.color-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 700px;
}

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.scale-item:hover {
    transform: translateY(-2px);
}

.scale-range {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.scale-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Sentiment Info */
.sentiment-info {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sentiment-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sentiment-explanation {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Factor breakdown styling */
.factor-breakdown {
    background: var(--background-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.factor-breakdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.factor-breakdown h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.factor-breakdown h4::before {
    content: '📊';
    font-size: 1.5rem;
}

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

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.factor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.factor-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.factor-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: var(--background-color);
}

.factor-value {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    min-width: 4rem;
    text-align: center;
}

/* Color coding for different factor values */
.factor-value.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.factor-value.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.factor-value.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.factor-value.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.factor-value.medium {
    background: rgba(234, 179, 8, 0.1);
    color: #d97706;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.factor-value.low {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.factor-value.bullish {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.factor-value.bearish {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive design for sentiment section */
@media (max-width: 768px) {
    .sentiment-info {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .sentiment-info h3 {
        font-size: 1.25rem;
    }
    
    .sentiment-explanation {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .factor-breakdown {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    
    .factor-breakdown h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .factor-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .factor-item {
        padding: 0.875rem;
    }
    
    .factor-label {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .factor-icon {
        font-size: 1.125rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .factor-value {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
        min-width: 3.5rem;
    }
}

@media (max-width: 480px) {
    .sentiment-info {
        padding: 1rem;
    }
    
    .sentiment-info h3 {
        font-size: 1.125rem;
    }
    
    .sentiment-explanation {
        font-size: 0.9rem;
    }
    
    .factor-breakdown {
        padding: 1rem;
    }
    
    .factor-breakdown h4 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .factor-item {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .factor-label {
        justify-content: center;
    }
    
    .factor-value {
        width: 100%;
        max-width: 8rem;
    }
}

/* Market Indicators Section */
.market-indicators {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.market-indicators h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.indicator-card {
    /* background: var(--background-color); */
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator-card:hover::before {
    opacity: 1;
}

.indicator-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.indicator-card:hover .indicator-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.indicator-content {
    text-align: center;
}

.indicator-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.indicator-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Update Market Indicators with better icons - preserve original colors */
.indicator-card:nth-child(1) .indicator-icon {
    /* Volatility - Lightning bolt for dynamic movement */
    /* Remove gradient color fill to preserve original emoji colors */
}

.indicator-card:nth-child(2) .indicator-icon {
    /* Momentum - Cool face emoji */
    /* Remove gradient color fill to preserve original emoji colors */
}

.indicator-card:nth-child(3) .indicator-icon {
    /* Market Cap - Lightning bolt */
    /* Remove gradient color fill to preserve original emoji colors */
}

.indicator-card:nth-child(4) .indicator-icon {
    /* Volume - Chart emoji */
    /* Remove gradient color fill to preserve original emoji colors */
}

/* Loading state for indicators */
.indicator-value.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    color: transparent;
}

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

/* Status indicators for momentum and volatility */
.indicator-value.bullish {
    color: var(--success-color);
}

.indicator-value.bearish {
    color: var(--danger-color);
}

.indicator-value.neutral {
    color: var(--text-secondary);
}

.indicator-value.high {
    color: var(--danger-color);
}

.indicator-value.medium {
    color: var(--primary-color);
}

.indicator-value.low {
    color: var(--success-color);
}

/* Responsive design for indicators */
@media (max-width: 768px) {
    .market-indicators {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .market-indicators h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .indicator-card {
        padding: 1.25rem;
    }
    
    .indicator-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .indicator-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .market-indicators {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .market-indicators h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .indicator-card {
        padding: 1rem;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    
    .indicator-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .indicator-content {
        text-align: left;
        flex: 1;
    }
    
    .indicator-content h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .indicator-value {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
        justify-content: flex-start;
    }
    
    .indicator-description {
        font-size: 0.8rem;
        margin: 0;
    }
}

@media (max-width: 360px) {
    .indicator-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .indicator-icon {
        font-size: 1.5rem;
    }
    
    .indicator-content h4 {
        font-size: 0.9rem;
    }
    
    .indicator-value {
        font-size: 1rem;
    }
    
    .indicator-description {
        font-size: 0.75rem;
    }
}

/* Add missing responsive styles for Fear & Greed page */

/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
    .fear-greed-container {
        padding: 1.5rem;
        margin-top: 5rem;
    }

    .fear-greed-header {
        margin-bottom: 2rem;
    }

    .fear-greed-header h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .fear-greed-header p {
        font-size: 1rem;
    }

    .fear-greed-main {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .fear-greed-display {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .fear-greed-circle {
        width: 200px;
        height: 200px;
        border-width: 4px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .fear-greed-value {
        font-size: 3.5rem;
    }

    .fear-greed-label {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .sentiment-description {
        font-size: 1rem;
    }

    .color-scale {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .scale-item {
        padding: 0.75rem 0.5rem;
    }

    .scale-range {
        font-size: 0.875rem;
    }

    .scale-label {
        font-size: 0.75rem;
    }

    /* Update shadow colors for mobile - keep existing colors */
    .fear-greed-circle.extreme-fear {
        box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
    }
    
    .fear-greed-circle.fear {
        box-shadow: 0 8px 30px rgba(234, 88, 12, 0.25);
    }
    
    .fear-greed-circle.neutral {
        box-shadow: 0 8px 30px rgba(234, 179, 8, 0.25);
    }
    
    .fear-greed-circle.greed {
        box-shadow: 0 8px 30px rgba(101, 163, 13, 0.25);
    }
    
    .fear-greed-circle.extreme-greed {
        box-shadow: 0 8px 30px rgba(22, 163, 74, 0.25);
    }
}

/* Mobile Responsive (480px and below) */
@media (max-width: 480px) {
    .fear-greed-container {
        padding: 1rem;
        margin-top: 4rem;
    }

    .fear-greed-header {
        margin-bottom: 1.5rem;
    }

    .fear-greed-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .fear-greed-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .fear-greed-main {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .fear-greed-display {
        padding: 1rem;
        gap: 1rem;
    }

    .fear-greed-circle {
        width: 160px;
        height: 160px;
        border-width: 3px;
    }

    .fear-greed-value {
        font-size: 2.75rem;
    }

    .fear-greed-label {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .sentiment-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .color-scale {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 300px;
    }

    .scale-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .scale-range {
        font-size: 0.875rem;
        margin-bottom: 0;
    }

    .scale-label {
        font-size: 0.875rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .fear-greed-container {
        padding: 0.75rem;
    }

    .fear-greed-header h1 {
        font-size: 1.5rem;
    }

    .fear-greed-circle {
        width: 140px;
        height: 140px;
    }

    .fear-greed-value {
        font-size: 2.25rem;
    }

    .fear-greed-label {
        font-size: 1.125rem;
    }

    .sentiment-description {
        font-size: 0.85rem;
    }

    .scale-item {
        padding: 0.5rem 0.75rem;
    }

    .scale-range,
    .scale-label {
        font-size: 0.8rem;
    }
}

/* Loading overlay responsive */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 480px) {
    .loader {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-overlay p {
        font-size: 0.9rem;
        padding: 0 1rem;
        text-align: center;
    }
}

/* AI Trading Insights CTA Section */
.ai-insights-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.ai-insights-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.ai-insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.ai-insights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-insights-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ai-insights-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.insights-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* AI Insights Visual Card */
.ai-insights-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.insight-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 300px;
    width: 100%;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.insight-icon {
    font-size: 1.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.insight-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.insight-signal {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.insight-confidence {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.insight-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--background-color);
    color: var(--text-primary);
}

.metric-value.low {
    background: #dcfce7;
    color: #16a34a;
}

/* Enhanced responsive design for AI Trading Insights CTA Section */
@media (max-width: 768px) {
    .ai-insights-cta {
        padding: 3rem 0;
        margin: 3rem 0;
    }
    
    .ai-insights-container {
        padding: 0 1rem;
    }
    
    .ai-insights-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .ai-insights-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .ai-insights-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .insights-features {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
        padding: 0.4rem;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .insight-card {
        max-width: 280px;
        padding: 1.75rem;
    }
    
    .insight-header {
        margin-bottom: 1.25rem;
    }
    
    .insight-icon {
        font-size: 1.25rem;
        padding: 0.4rem;
    }
    
    .insight-header h4 {
        font-size: 1rem;
    }
    
    .insight-signal {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .ai-insights-cta {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .ai-insights-container {
        padding: 0 0.75rem;
    }
    
    .ai-insights-content {
        gap: 2rem;
    }
    
    .ai-insights-text h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .ai-insights-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .insights-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.5rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        font-size: 1.125rem;
        padding: 0.35rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .insight-card {
        padding: 1.5rem;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .insight-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .insight-icon {
        font-size: 1.125rem;
        padding: 0.35rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .insight-header h4 {
        font-size: 0.95rem;
    }
    
    .insight-signal {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .insight-confidence {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .insight-metrics {
        gap: 0.5rem;
    }
    
    .metric-label,
    .metric-value {
        font-size: 0.8rem;
    }
    
    .metric-value {
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 360px) {
    .ai-insights-cta {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }
    
    .ai-insights-container {
        padding: 0 0.5rem;
    }
    
    .ai-insights-content {
        gap: 1.5rem;
    }
    
    .ai-insights-text h2 {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    
    .ai-insights-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .insights-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        gap: 0.5rem;
        padding: 0.4rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        font-size: 1rem;
        padding: 0.3rem;
        min-width: 2.25rem;
        min-height: 2.25rem;
    }
    
    .cta-buttons {
        gap: 0.5rem;
    }
    
    .cta-primary,
    .cta-secondary {
        max-width: 240px;
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .insight-card {
        padding: 1.25rem;
        max-width: 240px;
    }
    
    .insight-header {
        gap: 0.4rem;
        margin-bottom: 0.875rem;
    }
    
    .insight-icon {
        font-size: 1rem;
        padding: 0.3rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    
    .insight-header h4 {
        font-size: 0.9rem;
    }
    
    .insight-signal {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }
    
    .insight-confidence {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .insight-metrics {
        gap: 0.4rem;
    }
    
    .metric-label,
    .metric-value {
        font-size: 0.75rem;
    }
    
    .metric-value {
        padding: 0.15rem 0.35rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .ai-insights-cta {
        padding: 2rem 0;
    }
    
    .ai-insights-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .ai-insights-text h2 {
        font-size: 1.75rem;
    }
    
    .insights-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .cta-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }
    
    .cta-primary,
    .cta-secondary {
        width: auto;
        max-width: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ai-insights-cta::before {
        background-size: 50px 50px;
    }
}

/* Ensure proper spacing on very wide screens */
@media (min-width: 1400px) {
    .ai-insights-container {
        max-width: 1400px;
    }
    
    .ai-insights-content {
        gap: 5rem;
    }
    
    .ai-insights-text h2 {
        font-size: 3rem;
    }
    
    .ai-insights-text p {
        font-size: 1.25rem;
    }
}

/* Trading Insights Page Styles */
.trading-insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 6rem;
}

.trading-insights-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trading-insights-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.trading-insights-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Market Overview Section */
.market-overview {
    margin-bottom: 3rem;
}

.market-overview h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.overview-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.overview-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Trading Signals Section */
.trading-signals {
    margin-bottom: 3rem;
}

.signals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.signals-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.signals-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.refresh-signals-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.refresh-signals-btn:hover {
    background: var(--primary-dark);
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.signal-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.signal-card.buy-signal::before {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

.signal-card.sell-signal::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.signal-crypto {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.crypto-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signal-type {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-type.buy {
    background: #dcfce7;
    color: #16a34a;
}

.signal-type.sell {
    background: #fee2e2;
    color: #dc2626;
}

.signal-type.hold {
    background: #fef3c7;
    color: #d97706;
}

.signal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.signal-detail {
    text-align: center;
}

.signal-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signal-confidence {
    background: var(--background-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}

.confidence-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.confidence-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* AI Analysis Section */
.ai-analysis {
    margin-bottom: 3rem;
}

.ai-analysis h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.analysis-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.analysis-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analysis-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.analysis-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sentiment-display {
    margin-bottom: 1.5rem;
}

.sentiment-gauge {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.gauge-container {
    position: relative;
    width: 150px;
    height: 75px;
    overflow: hidden;
}

.gauge-fill {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid #e5e7eb;
    border-top-color: var(--primary-color);
    transform: rotate(-90deg);
    transition: border-top-color 0.3s ease;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-text span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gauge-text span:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sentiment-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.analysis-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.key-factors,
.risk-assessment {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.key-factors h4,
.risk-assessment h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.factors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
}

.factor-icon {
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.factor-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.risk-display {
    text-align: center;
}

.risk-meter {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#16a34a 0deg 120deg, #f59e0b 120deg 240deg, #dc2626 240deg 360deg);
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-indicator {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
}

.risk-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Trading Recommendations Section */
.trading-recommendations h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.recommendation-crypto {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recommendation-action {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.recommendation-action.strong-buy {
    background: #dcfce7;
    color: #16a34a;
}

.recommendation-action.buy {
    background: #f0fdf4;
    color: #22c55e;
}

.recommendation-action.hold {
    background: #fef3c7;
    color: #d97706;
}

.recommendation-action.sell {
    background: #fee2e2;
    color: #dc2626;
}

.recommendation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recommendation-reasoning {
    background: var(--background-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.reasoning-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reasoning-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive Design for Trading Insights */
@media (max-width: 768px) {
    .trading-insights-container {
        padding: 1rem;
        margin-top: 5rem;
    }
    
    .trading-insights-header h1 {
        font-size: 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .signals-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .signals-controls {
        justify-content: space-between;
    }
    
    .signals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analysis-sidebar {
        order: -1;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .trading-insights-container {
        padding: 0.75rem;
        margin-top: 4.5rem;
    }
    
    .trading-insights-header h1 {
        font-size: 1.75rem;
    }
    
    .overview-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .overview-icon {
        min-width: 3rem;
        min-height: 3rem;
        font-size: 1.5rem;
    }
    
    .signal-card,
    .analysis-card,
    .recommendation-card {
        padding: 1rem;
    }
    
    .signal-details,
    .recommendation-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Error and No Data States */
.error-state,
.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--background-color);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.error-state {
    color: var(--danger-color);
}

.loader-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

.navbar-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.navbar-logo-link:hover {
    opacity: 0.8;
}

.navbar-logo-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Update existing navbar-logo to remove flex properties since they're now on the link */
.navbar-logo {
    /* Remove: display: flex; align-items: center; gap: 0.75rem; */
}

/* PWA Install Button */
.install-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.install-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.install-button svg {
    width: 16px;
    height: 16px;
}

/* Hide install button on mobile if already installed */
@media (max-width: 768px) {
    .install-button {
        display: none;
    }
}

/* PWA specific styles when running as standalone app */
@media (display-mode: standalone) {
    .install-button {
        display: none !important;
    }
    
    /* Add some padding to account for status bar */
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* iOS Safari specific styles */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        .navbar {
            padding-top: 44px; /* iOS status bar height */
        }
    }
}

.mobile-logout-button {
    background: #D5AB64;
    color: #171B24;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logout-button:hover {
    background: #c49952;
    transform: translateY(-1px);
}

/* Mobile Install Prompt Styles */
.mobile-install-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #171B24 0%, #2a2f3a 100%);
    border: 1px solid #D5AB64;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

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

.install-prompt-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.install-prompt-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D5AB64, #e6c078);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #171B24;
}

.install-prompt-text {
    flex: 1;
    min-width: 0;
}

.install-prompt-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.install-prompt-text p {
    margin: 0;
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.3;
}

.install-prompt-button {
    background: #D5AB64;
    color: #171B24;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.install-prompt-button:hover {
    background: #e6c078;
    transform: translateY(-1px);
}

.install-prompt-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-prompt-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Show only on mobile devices */
@media (max-width: 768px) {
    .mobile-install-prompt.show {
        display: block;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-install-prompt {
        display: none !important;
    }
}

/* Adjust for very small screens */
@media (max-width: 360px) {
    .mobile-install-prompt {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    
    .install-prompt-content {
        padding: 12px;
        gap: 8px;
    }
    
    .install-prompt-icon {
        width: 36px;
        height: 36px;
    }
    
    .install-prompt-text h4 {
        font-size: 15px;
    }
    
    .install-prompt-text p {
        font-size: 13px;
    }
    
    .install-prompt-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Rate Limit Error Modal */
.rate-limit-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rate-limit-error-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rate-limit-error-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rate-limit-error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.rate-limit-error-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin: 0;
}

.rate-limit-error-body {
    margin-bottom: 2rem;
}

.rate-limit-error-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rate-limit-error-tips {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
}

.rate-limit-error-tips p {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
    text-align: left;
}

.rate-limit-error-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rate-limit-error-tips li {
    color: #92400e;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.rate-limit-error-tips li::before {
    content: "•";
    color: #f59e0b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.rate-limit-error-footer {
    text-align: center;
}

.rate-limit-retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rate-limit-retry-btn:hover {
    background: #b91c1c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rate-limit-error-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .rate-limit-error-header h3 {
        font-size: 1.25rem;
    }
    
    .rate-limit-error-icon {
        font-size: 2.5rem;
    }
    
    .rate-limit-error-body p {
        font-size: 0.9rem;
    }
    
    .rate-limit-retry-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .rate-limit-error-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .rate-limit-error-header h3 {
        font-size: 1.125rem;
    }
    
    .rate-limit-error-icon {
        font-size: 2rem;
    }
    
    .rate-limit-error-tips {
        padding: 0.75rem;
    }
    
    .rate-limit-error-tips li {
        font-size: 0.875rem;
    }
}

/* ==================== IMAGE ANALYSIS STYLES ==================== */

.image-analysis-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.image-analysis-header {
    text-align: center;
    margin-bottom: 2rem;
}

.image-analysis-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #D5AB64, #e6c078);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-analysis-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Points Display */
.points-display {
    margin-bottom: 2rem;
}

.points-card {
    background: linear-gradient(135deg, #D5AB64, #e6c078);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(213, 171, 100, 0.3);
}

.points-icon {
    font-size: 2rem;
}

.points-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.points-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.points-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-area {
    border: 3px dashed #D5AB64;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fefefe;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #e6c078;
    background: #fefbf5;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Upload Preview */
.upload-preview {
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.preview-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.analyze-btn {
    background: linear-gradient(135deg, #D5AB64, #e6c078);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(213, 171, 100, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

.change-image-btn {
    background: #f8fafc;
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-image-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Analysis Results */
.analysis-results {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(213, 171, 100, 0.1);
    position: relative;
    overflow: hidden;
}

.analysis-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D5AB64, #e6c078, #D5AB64);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(213, 171, 100, 0.2);
    position: relative;
}

.results-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D5AB64, #e6c078);
    border-radius: 1px;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.confidence-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.confidence-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.confidence-label {
    opacity: 0.9;
}

.confidence-value {
    font-weight: 700;
}

/* Analysis Sections */
.analysis-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(213, 171, 100, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(213, 171, 100, 0.3);
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #D5AB64, #e6c078);
    border-radius: 2px 0 0 2px;
}

.analysis-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.analysis-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #D5AB64, #e6c078);
    border-radius: 1px;
}

.analysis-content {
    line-height: 1.6;
}

.chart-analysis-content {
    display: grid;
    gap: 1rem;
}

.chart-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(213, 171, 100, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(213, 171, 100, 0.2);
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.trend-bullish {
    color: #10b981;
}

.trend-bearish {
    color: #ef4444;
}

.trend-neutral {
    color: #6b7280;
}

.chart-description {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(213, 171, 100, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chart-description::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: rgba(213, 171, 100, 0.3);
    font-family: serif;
}

.chart-description p {
    margin: 0;
    line-height: 1.6;
}

/* Indicators and Patterns */
.indicators-grid,
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.indicator-item,
.pattern-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(213, 171, 100, 0.1);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator-item::before,
.pattern-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D5AB64, #e6c078);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.indicator-item:hover::before,
.pattern-item:hover::before {
    transform: scaleX(1);
}

.indicator-item:hover,
.pattern-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    grid-column: 1 / -1;
}

/* Support & Resistance */
.support-resistance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.resistance-levels,
.support-levels {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.resistance-levels h4,
.support-levels h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.resistance-levels h4 {
    color: #ef4444;
}

.support-levels h4 {
    color: #10b981;
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-item {
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.level-item.resistance {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.level-item.support {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Trading Signals */
.trading-signal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(213, 171, 100, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.trading-signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D5AB64, #e6c078, #D5AB64);
}

.signal-content {
    display: grid;
    gap: 1rem;
}

.signal-recommendation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.signal-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 2px 0 0 2px;
}

.signal-recommendation.buy {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.signal-recommendation.buy::before {
    background: linear-gradient(180deg, #16a34a, #22c55e);
}

.signal-recommendation.sell {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.signal-recommendation.sell::before {
    background: linear-gradient(180deg, #dc2626, #ef4444);
}

.signal-recommendation.hold {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #6b7280;
    border: 1px solid #e2e8f0;
}

.signal-recommendation.hold::before {
    background: linear-gradient(180deg, #6b7280, #9ca3af);
}

.signal-confidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.signal-reasoning {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #D5AB64;
}

.signal-reasoning p {
    margin: 0;
    line-height: 1.6;
}

/* Risk Assessment */
.risk-assessment-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.risk-content {
    display: grid;
    gap: 1rem;
}

.risk-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.risk-level.low {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.risk-level.medium {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.risk-level.high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.risk-description {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #D5AB64;
}

.risk-description p {
    margin: 0;
    line-height: 1.6;
}

/* Price Predictions */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.prediction-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(213, 171, 100, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prediction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D5AB64, #e6c078, #D5AB64);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.prediction-item:hover::before {
    transform: scaleX(1);
}

.prediction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prediction-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.prediction-direction {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prediction-direction.up {
    color: #10b981;
}

.prediction-direction.down {
    color: #ef4444;
}

.prediction-direction.sideways {
    color: #6b7280;
}

.prediction-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Overall Analysis */
.overall-analysis {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(213, 171, 100, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.overall-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D5AB64, #e6c078, #D5AB64);
}

.overall-content p {
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
}

/* Loading Animation Enhancement */
.loading-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.loader {
    border: 3px solid rgba(213, 171, 100, 0.2);
    border-top: 3px solid #D5AB64;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.analysis-results.success {
    animation: successPulse 0.6s ease-out;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    z-index: 10000;
    animation: slideInRight 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-icon {
    font-size: 1.2rem;
}

.error-message {
    font-weight: 500;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.error-close:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .image-analysis-container {
        padding: 1rem;
    }
    
    .image-analysis-header h1 {
        font-size: 2rem;
    }
    
    .image-analysis-header p {
        font-size: 1rem;
    }
    
    .upload-card {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .preview-controls {
        flex-direction: column;
    }
    
    .analyze-btn,
    .change-image-btn {
        width: 100%;
        justify-content: center;
    }
    
    .analysis-results {
        padding: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .chart-info {
        grid-template-columns: 1fr;
    }
    
    .support-resistance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .error-notification {
        left: 20px;
        right: 20px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .image-analysis-header h1 {
        font-size: 1.75rem;
    }
    
    .upload-card {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .analysis-section {
        padding: 1rem;
    }
    
    .analysis-section h3 {
        font-size: 1.1rem;
    }
    
    .points-card {
        padding: 1rem;
    }
    
    .points-icon {
        font-size: 1.5rem;
    }
    
    .points-value {
        font-size: 1.5rem;
    }
}
