/* pg24.css - Signalator Gold EA Landing Page */

/* ===== Hero Section ===== */
.gold-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0f1a2d 0%, #1a3a5f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.gold-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 162, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.gold-hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gold-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gold-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
    background: linear-gradient(135deg, #ffd700 0%, #e6a23c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.gold-hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem auto 3rem;
    max-width: 900px;
}

.gold-feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition);
}

.gold-feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.gold-feature-icon {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.gold-feature-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.gold-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ===== Clarity Section ===== */
.gold-clarity-section {
    padding: 80px 0;
    background: white;
}

.gold-clarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.gold-clarity-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.gold-clarity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gold-clarity-card.what-is {
    border-top: 4px solid #82D32B;
}

.gold-clarity-card.what-not {
    border-top: 4px solid #ff4d4f;
}

.gold-clarity-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.gold-clarity-card.what-is h3 i {
    color: #82D32B;
}

.gold-clarity-card.what-not h3 i {
    color: #ff4d4f;
}

.gold-clarity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gold-clarity-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gold-clarity-list li:last-child {
    border-bottom: none;
}

.gold-clarity-list.what-is li i {
    color: #82D32B;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.gold-clarity-list.what-not li i {
    color: #ff4d4f;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== How It Works ===== */
.gold-how-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.gold-how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    counter-reset: step-counter;
}

.gold-how-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.gold-how-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gold-how-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(230, 162, 60, 0.3);
}

.gold-step-icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.gold-step-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.gold-proprietary-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #e6a23c;
    text-align: center;
}

.gold-proprietary-notice p {
    margin: 0;
    color: #854d0e;
    font-weight: 500;
    display: flex;
    align-items: center;
   /* justify-content: center;*/
    gap: 10px;
}

.gold-proprietary-notice i {
    color: #e6a23c;
}

/* ===== Performance Section ===== */
.gold-performance-section {
    padding: 80px 0;
    background: white;
}

.gold-performance-warning {
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    margin-bottom: 3rem;
    text-align: center;
}

.gold-performance-warning p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gold-performance-warning i {
    color: #f59e0b;
}

/* ===== Risk Model Section ===== */
.gold-risk-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.gold-risk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gold-risk-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.gold-risk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gold-risk-card.standard {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.risk-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-badge.standard-badge {
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
}

.gold-risk-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.risk-equity-range {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    margin: 1.5rem 0;
}

.risk-equity-range .currency {
    font-size: 1.2rem;
    color: var(--gray);
}

.risk-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.risk-key-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.risk-key-point i {
    color: #82D32B;
}

.gold-risk-note {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.gold-risk-note p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ===== Calculators ===== */
.gold-calculators-section {
    padding: 80px 0;
    background: white;
}

.gold-calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.gold-calculator {
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.gold-calculator h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.gold-calculator h3 i {
    color: #ffd700;
}

.calculator-form {
    margin-bottom: 2rem;
}

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

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

.form-select,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: white;
    transition: var(--transition);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}

.calculator-results {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    margin-top: 2rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.result-value .highlight {
    color: #ffd700;
}

.result-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-visual {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    background: linear-gradient(90deg, #82D32B, #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.result-description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Live Demo ===== */
.gold-demo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1a2d 0%, #1a3a5f 100%);
    color: white;
}

.gold-demo-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.gold-demo-content h2 {
    color: white;
}

.gold-demo-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.gold-demo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.gold-demo-telegram {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.gold-demo-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
    color: white;
}

.gold-demo-telegram i {
    font-size: 1.3rem;
}

.gold-demo-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Access Section ===== */
.gold-access-section {
    padding: 80px 0;
    background: white;
}

.gold-access-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gold-access-point {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gold-access-point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #ffd700;
}

.gold-access-icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.gold-access-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.gold-access-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(230, 162, 60, 0.05));
    border-radius: 12px;
    border: 2px dashed #e6a23c;
}

.gold-access-cta p {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.gold-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== FAQ ===== */
.gold-faq-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.gold-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.gold-faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gold-faq-item:hover {
    border-color: #ffd700;
}

.gold-faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.gold-faq-question:hover {
    background: #fff8e1;
}

.gold-faq-question i {
    color: #ffd700;
    transition: transform 0.3s ease;
}

.gold-faq-item.active .gold-faq-question i {
    transform: rotate(180deg);
}

.gold-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #475569;
    line-height: 1.6;
}

.gold-faq-item.active .gold-faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* ===== Footer CTA ===== */
.gold-footer-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1a2d 0%, #1a3a5f 100%);
    color: white;
    text-align: center;
}

.gold-footer-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.gold-footer-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .gold-hero h1 {
        font-size: 2.8rem;
    }
    
    .gold-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .gold-risk-card.standard {
        transform: none;
    }
    
    .gold-calculators-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gold-hero {
        padding: 80px 0 60px;
    }
    
    .gold-hero h1 {
        font-size: 2.4rem;
    }
    
    .gold-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .gold-hero-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .gold-clarity-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gold-how-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gold-risk-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gold-access-points {
        grid-template-columns: 1fr;
    }
    
    .gold-hero-buttons,
    .gold-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gold-demo-telegram {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .gold-hero h1 {
        font-size: 2rem;
    }
    
    .gold-hero-subtitle {
        font-size: 1rem;
    }
    
    .gold-clarity-card {
        padding: 1.5rem;
    }
    
    .gold-how-step {
        padding: 1.5rem;
    }
    
    .gold-calculator {
        padding: 1.5rem;
    }
    
    .gold-faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .gold-faq-answer {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .gold-faq-item.active .gold-faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* Animation for calculator results */
@keyframes fillWidth {
    from { width: 0; }
    to { width: var(--target-width); }
}

.result-fill {
    animation: fillWidth 1s ease-out forwards;
}

/* Gold-themed button overrides */
.primary-btn.gold-btn {
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    border: none;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.primary-btn.gold-btn:hover {
    background: linear-gradient(135deg, #ffdf40, #f0b842);
    color: var(--primary-color) !important;
}

.secondary-btn.gold-outline {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700 !important;
}

.secondary-btn.gold-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

.update-info-box {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 3px solid #94a3b8;
}

.update-info-box i {
    color: #475569;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content p {
    margin: 0 0 6px 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-content .note {
    margin-bottom: 0;
    font-style: italic;
    color: #64748b;
    font-size: 0.85rem;
}

/* ===== Enhanced Performance Section Styles ===== */
.performance-configurator {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.config-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(230, 162, 60, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.config-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.config-header h3 i {
    color: #ffd700;
}

.config-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border-color);
}

.config-option {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.config-option:hover {
    background: #fff8e1;
}

.config-option.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(230, 162, 60, 0.1));
    border-left: 3px solid #ffd700;
}

.config-option.active .config-badge {
    display: block;
}

.config-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.2rem;
}

.config-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.config-info p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.config-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #82D32B;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
}

/* Performance Summary Grid */
.performance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.summary-card.primary::before { background: #3b82f6; }
.summary-card.success::before { background: #82D32B; }
.summary-card.warning::before { background: #f59e0b; }
.summary-card.info::before { background: #8b5cf6; }
.summary-card.secondary::before { background: #64748b; }
.summary-card.dark::before { background: #1e293b; }

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.primary .summary-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.success .summary-icon { background: rgba(130, 211, 43, 0.1); color: #82D32B; }
.warning .summary-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.info .summary-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.secondary .summary-icon { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.dark .summary-icon { background: rgba(30, 41, 59, 0.1); color: #1e293b; }

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-note {
    font-size: 0.85rem;
    color: var(--gray);
}

.summary-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.summary-trend.positive {
    background: rgba(130, 211, 43, 0.1);
    color: #82D32B;
}

.summary-trend.neutral {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.summary-trend.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== Charts Container ===== */
.charts-container {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 2rem;
    margin: 2.5rem 0;
}

.chart-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* First chart (Equity Curve) */
.chart-wrapper:first-child {
    min-height: 450px; /* Slightly taller */
}

/* Second chart (Monthly Performance) */
.chart-wrapper:last-child {
    min-height: 400px;
}

.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 992px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.chart-header h3 i {
    color: #ffd700;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action-btn {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.chart-action-btn:hover {
    background: #f1f5f9;
}

.chart-action-btn.active {
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    color: white;
    border-color: #e6a23c;
}

.chart-period-selector select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.chart-body {
    padding: 1.5rem;
    min-height: 300px;
}

.chart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.chart-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-value.positive {
    color: #82D32B;
}

.stat-value.negative {
    color: #ef4444;
}

.chart-update {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.chart-summary {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.item-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.item-value.positive {
    color: #82D32B;
}

.item-value.negative {
    color: #ef4444;
}

/* Detailed Statistics Table */
.detailed-stats {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2.5rem 0;
    overflow: hidden;
}

.stats-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.stats-header h3 i {
    color: #ffd700;
}

.export-btn {
    padding: 0.5rem 1.5rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.export-btn:hover {
    background: #f1f5f9;
}

.stats-table-container {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    background: #f8fafc;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.stats-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.stats-table tbody tr:hover {
    background: #f8fafc;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Additional Metrics */
.additional-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(230, 162, 60, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.5rem;
}

.metric-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.metric-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #82D32B, #ffd700);
    border-radius: 4px;
}

.metric-progress {
    margin-bottom: 1rem;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#82D32B 0% 75%, #e2e8f0 75% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.metric-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.comparison-item span:first-child {
    color: var(--gray);
}

.comparison-item .positive {
    color: #82D32B;
    font-weight: 600;
}

.metric-card p {
    margin: 0;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Performance Attribution */
.performance-attribution {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2.5rem 0;
    overflow: hidden;
}

.attribution-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.attribution-header h3 {
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.attribution-header h3 i {
    color: #ffd700;
}

.attribution-header p {
    margin: 0;
    color: var(--gray);
}

.attribution-grid {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.attribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.attribution-label span:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

.attribution-percent {
    font-weight: 600;
    color: var(--primary-color);
}

.attribution-bar {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.attribution-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.trend-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.reversion-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.breakout-fill { background: linear-gradient(90deg, #82D32B, #a3e635); }
.risk-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Performance Disclaimer */
.performance-disclaimer {
    background: linear-gradient(135deg, rgba(255, 243, 199, 0.3), rgba(254, 226, 226, 0.3));
    border-radius: 12px;
    border: 1px solid #fde68a;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.disclaimer-icon {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.disclaimer-content h4 {
    margin: 0 0 1rem 0;
    color: #92400e;
}

.disclaimer-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.disclaimer-content li {
    padding: 0.5rem 0;
    color: #854d0e;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.disclaimer-content li::before {
    content: '•';
    color: #f59e0b;
    font-weight: bold;
    margin-top: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .performance-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .chart-header,
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-actions,
    .chart-period-selector {
        width: 100%;
    }
    
    .chart-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .chart-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .detailed-stats,
    .performance-attribution {
        margin: 1.5rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .performance-disclaimer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .config-options {
        grid-template-columns: 1fr;
    }
    
    .performance-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-metrics {
        grid-template-columns: 1fr;
    }
    
    .summary-card,
    .metric-card {
        padding: 1.25rem;
    }
}

.monthly-win-rate-card .summary-value {
    color: #10b981 !important;
}

/* Add to gold-ea.css */
.chart-action-btn {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
}

.chart-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.chart-action-btn.active {
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    border-color: #e6a23c;
    color: white;
    font-weight: 600;
}

.chart-action-btn.active i {
    color: white;
}

#eaEquityChart {
    width: 100%;
    height: 400px;
    min-height: 400px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Fix for Google Charts tooltip */
.google-visualization-tooltip {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: white !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}


/* gold-ea.css - EA Page Styles */

/* Detailed Statistics Table - Minimal Design */
.detailed-stats {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e7edf7;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2fb;
}

.stats-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1f2a44;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}



.stats-header h3 i {
     color: #e6a23c;
    font-size: 1.3rem;
}

.export-btn {
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-btn:hover {
    background: #f9fafb;
    border-color: #667085;
}

.stats-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e7edf7;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 800px;
}

.stats-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e7edf7;
}

.stats-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #667085;
    font-size: 0.875rem;
    white-space: nowrap;
    border-right: 1px solid #eef2fb;
}

.stats-table th:last-child {
    border-right: none;
}

.stats-table th i {
    margin-right: 6px;
    font-size: 0.75rem;
}

.stats-table tbody tr {
    border-bottom: 1px solid #f2f4f9;
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background-color: #fbfcff;
}

.stats-table td {
    padding: 14px 16px;
    color: #1f2a44;
    border-right: 1px solid #f2f4f9;
}

.stats-table td:last-child {
    border-right: none;
}

/* Clean Month Cell */
.month-cell {
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.875rem;
}

/* Clean Return Cell */
.return-cell {
    font-weight: 600;
    font-size: 0.875rem;
}

.return-positive {
    color: #039855;
}

.return-negative {
    color: #d92d20;
}

/* Clean Equity Cell */
.equity-cell {
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.875rem;
}

/* DD Cell - Simple Design */
.dd-cell {
    color: #667085;
    font-weight: 500;
}

.dd-value {
    font-weight: 600;
}

.dd-value.negative {
    color: #667085; /* Grey for negative DD */
}

.dd-value.positive {
    color: #039855; /* Green for positive (if applicable) */
}

/* Clean Status Badges */
.performance-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.badge-excellent {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.badge-good {
    background: #f0f9ff;
    color: #026aa2;
    border: 1px solid #b9e6fe;
}

.badge-poor {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* Loading State */
.loading-row {
    text-align: center;
    padding: 40px !important;
    color: #667085 !important;
}

.loading-row i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .detailed-stats {
        padding: 16px;
        margin: 20px 0;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .export-btn {
        align-self: flex-start;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 12px;
        font-size: 0.8125rem;
    }
    
    .performance-badge {
        min-width: 70px;
        font-size: 0.7rem;
    }
}

/* For Firefox */
.stats-table-container {
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

/* Chrome scrollbar */
.stats-table-container::-webkit-scrollbar {
    height: 6px;
}

.stats-table-container::-webkit-scrollbar-track {
    background: #f2f4f9;
    border-radius: 3px;
}

.stats-table-container::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 3px;
}

.stats-table-container::-webkit-scrollbar-thumb:hover {
    background: #98a2b3;
}

/* Alternating row colors */
.stats-table tbody tr:nth-child(even) {
    background-color: #fafcff;
}

/* Error state */
.error-row {
    text-align: center;
    padding: 40px !important;
    color: #d92d20 !important;
}

.error-row i {
    margin-right: 8px;
}

/* ===== TABLE STYLES FOR VERTICAL SCROLL ===== */

/* Table Container with Vertical Scroll */
.stats-table-container {
    width: 100%;
    overflow-y: auto;  /* Enables vertical scrolling */
    max-height: 600px; /* Adjust this value as needed */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: white;
    margin: 20px 0;
}

/* Scrollbar Styling */
.stats-table-container::-webkit-scrollbar {
    width: 8px;
}

.stats-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.stats-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.stats-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Performance Table Styling */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensures horizontal scrolling when needed */
}

.stats-table th {
    background: #1a3a5f;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

/* Color Classes for Returns and Drawdowns */
.stats-table .positive {
    color: #82D32B;
    font-weight: 700;
}

.stats-table .negative {
    color: #ef4444;
    font-weight: 700;
}

/* Hover Effect for Rows */
.stats-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-table-container {
        max-height: 500px;
    }
    
    .stats-table {
        min-width: 600px;
    }
}

/* Add these if you don't have them already */
.badge-average {
    background: rgba(255, 193, 7, 0.1);
    color: #d39e00;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Row highlighting classes */
.positive-month {
    background-color: rgba(40, 167, 69, 0.05) !important;
}

.negative-month {
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.positive-month:hover {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.negative-month:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ===================================================================
   GOLD-EA TABLE STYLES (aligned with gold.css “enhanced table” look)
   Keep ONLY one copy of these rules in gold-ea.css
=================================================================== */

/* Table wrapper card */
.detailed-stats {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 20px;
  margin: 40px 0;
}

/* Scroll container (horizontal always; vertical optional) */
.stats-table-container {
  width: 100%;
  overflow: auto;          /* x + y scroll if needed */
  max-height: 600px;       /* keep if you want vertical scroll; remove if not */
  border-radius: 12px;
}

/* Core table */
.stats-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

/* Header */
.stats-table thead th {
  background: #1a3a5f;      /* matches your dark header theme */
  color: #ffffff;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.18);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.stats-table thead th:first-child {
  text-align: left;
}

/* Body cells */
.stats-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  color: #111827;
}

.stats-table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* Hover + alternating like gold.css */
.stats-table tbody tr:hover {
  background-color: #f8f9fa;
}

.stats-table tbody tr:nth-child(even) {
  background-color: rgba(248, 249, 250, 0.55);
}

/* Row highlighting (same idea as gold.css fixes) */
.stats-table tbody tr.positive-month {
  background-color: rgba(40, 167, 69, 0.05) !important;
}
.stats-table tbody tr.negative-month {
  background-color: rgba(220, 53, 69, 0.05) !important;
}
.stats-table tbody tr.positive-month:hover {
  background-color: rgba(40, 167, 69, 0.10) !important;
}
.stats-table tbody tr.negative-month:hover {
  background-color: rgba(220, 53, 69, 0.10) !important;
}

/* Month cell with icon (your JS outputs .month-cell with an icon block) */
.month-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #111827;
}

.month-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 95, 0.10);
  color: #1a3a5f;
}

.month-icon.positive {
  background: rgba(40, 167, 69, 0.12);
  color: #28a745;
}
.month-icon.negative {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}
.month-icon.neutral {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
}

/* Return cell (green/red like gold.css) */
.return-cell {
  font-weight: 600;
}

.return-positive {
  color: #28a745 !important;
}

.return-negative {
  color: #dc3545 !important;
}

/* Equity + “change %” */
.equity-cell {
  font-weight: 600;
}

.equity-change {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* DD column – force “simple dark grey” like your gold.css fixes */
.dd-indicator,
.dd-trend,
.dd-trend i {
  display: none !important;
}

.dd-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #334155 !important;
  font-weight: 600;
}

.dd-value,
.dd-value.negative,
.dd-value.positive {
  color: #334155 !important;
  font-weight: 700;
}

/* Status badge styles (copied from gold.css badge look) */
.performance-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  min-width: 86px;
  text-align: center;
}

.badge-excellent {
  background: rgba(40, 167, 69, 0.10);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.20);
}

.badge-good {
  background: rgba(13, 110, 253, 0.10);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.20);
}

.badge-okay,
.badge-average {
  background: rgba(255, 193, 7, 0.10);
  color: #d39e00;
  border: 1px solid rgba(255, 193, 7, 0.20);
}

.badge-poor {
  background: rgba(220, 53, 69, 0.10);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.20);
}

/* Loading / error rows (keep consistent spacing) */
.loading-row,
.error-row {
  text-align: center;
  padding: 40px !important;
  color: #64748b !important;
}

.error-row {
  color: #dc3545 !important;
}

/* Scrollbar (optional, clean) */
.stats-table-container {
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.stats-table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.stats-table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.stats-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.stats-table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .detailed-stats {
    padding: 16px;
    margin: 20px 0;
  }

  .stats-table th,
  .stats-table td {
    padding: 12px;
    font-size: 0.875rem;
  }

  .performance-badge {
    min-width: 76px;
    font-size: 0.70rem;
  }
}
.dd-percent {
  font-weight: 700;
}

.dd-absolute {
  font-size: 0.9em;
  color: #64748b;
  margin-top: 4px;
}

/* ===== Single Calculator Layout ===== */
.gold-calculators-section.single-calculator {
    padding: 80px 0;
    background: white;
}

.gold-calculator-full {
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-header {
    padding: 2.5rem 3rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(230, 162, 60, 0.05));
}

.calculator-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.calculator-header h3 i {
    color: #ffd700;
}

.calculator-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Body - Two Column Layout */
.calculator-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 500px;
}

@media (max-width: 992px) {
    .calculator-body {
        grid-template-columns: 1fr;
    }
}

/* Inputs Panel (Left) */
.calculator-inputs {
    padding: 2.5rem;
    border-right: 1px solid var(--border-color);
    background: white;
}

@media (max-width: 992px) {
    .calculator-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-hint {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.form-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    margin: 1.5rem 0 1rem;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.5rem;
}

.range-labels span:nth-child(2) {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Results Panel (Right) */
.calculator-results {
    padding: 2.5rem;
    background: white;
    display: flex;
    flex-direction: column;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.results-header h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-header h4 i {
    color: #ffd700;
}

.results-main {
    flex: 1;
}

.result-value-large {
    text-align: center;
    margin-bottom: 2.5rem;
}

.result-value-large span {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.result-value-large .result-label {
    font-size: 1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.result-visual-container {
    margin: 2rem 0 3rem;
}

.result-visual {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.result-fill {
    height: 100%;
    background: linear-gradient(90deg, #82D32B, #ffd700, #ef4444);
    border-radius: 8px;
    transition: width 1s ease;
}

.visual-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.visual-labels span:nth-child(2) {
    color: var(--primary-color);
    font-weight: 700;
}

.result-details {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: #ffd700;
    margin-top: 3px;
    font-size: 1.1rem;
}

.detail-item span {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.results-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

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

.risk-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.risk-low {
    background: #82D32B;
}

.risk-moderate {
    background: #f59e0b;
}

.risk-high {
    background: #ef4444;
}

#resetCalculator {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Calculator Note */
.calculator-note {
    padding: 1.5rem 3rem;
    background: #fff8e1;
    border-top: 1px solid #fde68a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.calculator-note i {
    color: #e6a23c;
    font-size: 1.2rem;
    margin-top: 3px;
}

.calculator-note p {
    margin: 0;
    color: #854d0e;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-header,
    .calculator-inputs,
    .calculator-results {
        padding: 2rem;
    }
    
    .calculator-note {
        padding: 1.5rem 2rem;
    }
    
    .result-value-large span {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .calculator-header,
    .calculator-inputs,
    .calculator-results {
        padding: 1.5rem;
    }
    
    .calculator-header h3 {
        font-size: 1.5rem;
    }
    
    .result-value-large span {
        font-size: 2.2rem;
    }
}

/* Risk Level Colors for the new calculator */
.risk-dot.risk-low { background: #82D32B; }
.risk-dot.risk-moderate { background: #f59e0b; }
.risk-dot.risk-high { background: #ef4444; }

/* Ensure risk indicator text is visible */
#riskLevel {
    font-weight: 600;
    font-size: 1rem;
}

.risk-low #riskLevel { color: #82D32B; }
.risk-moderate #riskLevel { color: #f59e0b; }
.risk-high #riskLevel { color: #ef4444; }

/* Add this to your gold-ea.css file */
.gold-calculators-section.single-calculator .result-value-large span {
    font-size: 2.0rem !important; /* Reduced from 3.5rem */
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Make it even smaller on mobile */
@media (max-width: 768px) {
    .gold-calculators-section.single-calculator .result-value-large span {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 576px) {
    .gold-calculators-section.single-calculator .result-value-large span {
        font-size: 1.8rem !important;
    }
}

/* Also adjust the visual container spacing */
.gold-calculators-section.single-calculator .result-visual-container {
    margin: 1.5rem 0 2rem !important; /* Reduced from 2rem 0 3rem */
}

/* Adjust the main results area */
.gold-calculators-section.single-calculator .results-main {
    padding-top: 0.5rem;
}

/* If the result still feels too big, you can also adjust the container */
.gold-calculators-section.single-calculator .result-value-large {
    text-align: center;
    margin-bottom: 1.5rem !important; /* Reduced from 2.5rem */
}

/* Add to gold-ea.css */
.gold-pricing-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.gold-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gold-price-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gold-price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #ffd700;
}

.gold-price-card.featured {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(230, 162, 60, 0.05));
    transform: scale(1.05);
    z-index: 1;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    color: var(--primary-color);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #82D32B;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
}

.discount-badge.yearly {
    background: linear-gradient(135deg, #82D32B, #4CAF50);
    font-size: 0.9rem;
    padding: 6px 14px;
}

.gold-price-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.price-container {
    margin: 1.5rem 0;
    position: relative;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price .monthly-equivalent {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.original-price {
    display: block;
    font-size: 1.2rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.term {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.gold-price-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.gold-price-card li {
    padding: 0.75rem 0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.gold-price-card li:last-child {
    border-bottom: none;
}

.gold-price-card li i {
    color: #82D32B;
    margin-top: 3px;
    flex-shrink: 0;
}

.price-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.price-cta:hover {
    background: #2d4a7a;
    color: white;
    transform: translateY(-2px);
}

.price-cta.primary {
    background: linear-gradient(135deg, #ffd700, #e6a23c);
    color: var(--primary-color);
}

.price-cta.primary:hover {
    background: linear-gradient(135deg, #ffdf40, #f0b842);
    color: var(--primary-color);
}

.gold-pricing-note {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.95rem;
    border-left: 4px solid #ffd700;
}

.savings-highlight {
    display: inline-block;
    background: rgba(130, 211, 43, 0.1);
    color: #82D32B;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gold-price-card.featured {
        transform: none;
    }
    
    .gold-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .gold-pricing-section {
        padding: 60px 0;
    }
    
    .price {
        font-size: 2.8rem;
    }
    
    .gold-price-card {
        padding: 2rem 1.5rem;
    }
}

/* Fix for the pricing section within access section */
.gold-access-section .gold-pricing-section {
    margin-top: 4rem;
    padding: 3rem 0 0;
    border-top: 1px solid #e2e8f0;
}

/* Ensure the section title within access section has proper spacing */
.gold-access-section .gold-pricing-section .section-title {
    margin-bottom: 2rem;
}

/* Remove duplicate container styles */
.gold-access-section .gold-pricing-section .container {
    padding: 0;
    max-width: 100%;
}

/* Fix the grid if it's breaking */
.gold-access-section .gold-pricing-grid {
    margin-top: 2rem;
}

/* Fix the note positioning */
.gold-access-section .gold-pricing-note {
    margin-top: 2rem;
}

/* Fix quarterly price - make it $267 for 25% off $119/month */
.gold-price-card.featured .price {
    color: #ffd700;
}

/* Fix yearly calculation note */
.gold-price-card .price .monthly-equivalent {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}