/* Dashboard Layout */
.dashboard-container {
    display: none;
    /* Shown after upload */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-section {
    padding: 20px 20px 80px;
}

/* AI Coach Modes Switcher */
.coaching-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--bg-black);
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* Visibility Control */
.coaching-mode-content {
    display: none;
    animation: fadeInMode 0.5s ease;
}

.coaching-mode-content.active {
    display: block;
}

@keyframes fadeInMode {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chart-upload-zone {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.02);
    transition: all 0.3s ease;
}

.chart-upload-zone:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.scanning-laser {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    box-shadow: 0 0 15px var(--gold-glow);
    z-index: 10;
    display: none;
}

@keyframes scanLaser {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

.spinner-gold {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.analysis-tag {
    animation: slideInRight 0.5s ease backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.privacy-consent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.privacy-consent:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.privacy-consent input[type="checkbox"] {
    accent-color: var(--gold-primary);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-gold.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

.btn-gold.active-pulse {
    animation: goldPulse 2s infinite;
    box-shadow: 0 4px 25px var(--gold-glow);
}

@keyframes goldPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px var(--gold-glow);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 35px var(--gold-glow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px var(--gold-glow);
    }
}

.upload-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--glass-border);
    padding: 5rem 2rem;
    border-radius: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.upload-card.drag-over {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.upload-icon {
    font-size: 5rem;
    color: var(--gold-primary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--gold-glow));
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
}

.step-num {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.process-step i {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.process-step h4 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.main-wrapper {
    min-height: 80vh;
}

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

.stat-card-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

.stat-card-mini .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 0.5rem 0;
}

/* Scanning Animation */
.scanning-state {
    display: none;
    text-align: center;
    padding: 100px 20px;
}

.scanner-line {
    width: 300px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.scanner-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 0 15px var(--gold-primary);
    animation: scan 1.5s infinite;
}

@keyframes scan {
    100% {
        left: 100%;
    }
}

/* Charts Mockup */
.chart-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
}

.bar-chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: var(--gold-gradient);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar.red {
    background: linear-gradient(to top, #ff4757, #ff6b81);
}

/* Advanced Dashboard Elements */
.insight-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.data-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
}

.archetype-badge {
    background: var(--gold-gradient);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.strategy-table th,
.strategy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.strategy-table th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Equity Curve SVG Path animate */
.equity-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s forwards ease-out;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.action-plan {
    list-style: none;
    margin-top: 1.5rem;
}

.action-plan li {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid var(--gold-primary);
}

.action-plan i {
    color: var(--gold-primary);
}

@media (max-width: 1024px) {
    .insight-section {
        grid-template-columns: 1fr;
    }

    .process-steps {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        margin-top: 60px;
        /* Match standard navbar height */
        padding: 1rem;
    }

    .upload-card {
        padding: 3rem 1.5rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
    }

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

    .process-steps {
        grid-template-columns: 1fr;
        margin-top: 3rem;
        gap: 2rem;
    }

    .process-step {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card-mini {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .stat-card-mini .value {
        font-size: 1.5rem;
    }

    .chart-container {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 16px;
    }

    .strategy-table th,
    .strategy-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem !important;
        /* Match index.html hero size */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .upload-section {
        padding: 0 0 40px;
    }

    .upload-card {
        padding: 2.5rem 1rem;
    }

    .btn-gold {
        padding: 1rem 2rem !important;
        width: 100%;
        text-align: center;
        display: block;
    }

    .privacy-consent {
        font-size: 0.85rem;
        text-align: left;
    }

    .data-card {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .action-plan li {
        padding: 0.8rem;
        gap: 0.8rem;
    }
}