/* Dashboard Specific Styles - Forex Premium Theme */

.nav-link-dash {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link-dash:hover {
    color: var(--accent, #0ea5e9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* ═══════════════ FOREX CANVAS BACKGROUND ═══════════════ */
#forex-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #020617 0%, #0a0f1e 100%);
}

/* ═══════════════ FOREX COLOR VARIABLES ═══════════════ */
:root {
    --forex-green: #00ff88;
    --forex-red: #ff3366;
    --forex-gold: #ffd700;
    --forex-silver: #c0c0c0;
    --chart-line: rgba(14, 165, 233, 0.8);
    --glow-green: rgba(0, 255, 136, 0.3);
    --glow-red: rgba(255, 51, 102, 0.3);
}

.dashboard-container {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

.dashboard-welcome {
    margin-bottom: 2.5rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.welcome-card,
.welcome-side {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-card::before,
.welcome-side::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05), transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: drift 20s infinite linear;
}

.welcome-card::after,
.welcome-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    animation: pulseGlow 8s infinite alternate;
}

.welcome-card > *,
.welcome-side > * {
    position: relative;
    z-index: 1;
}

@keyframes drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; transform: scale(1.02); }
}

.dashboard-welcome h1 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin-bottom: 0.15rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0 0.6rem;
}

.welcome-side h3 {
    margin-bottom: 0.3rem;
}

.welcome-side p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.focus-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.focus-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.dashboard-welcome h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.phase-progress-card,
.activity-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.phase-progress-card::after,
.activity-card::after {
    content: '';
    position: absolute;
    inset: -50%;
    pointer-events: none;
    z-index: 0;
}

.phase-progress-card::after {
    background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.25), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.3), transparent 60%);
    animation: drift 15s infinite linear reverse;
}

.activity-card::after {
    background: radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.25), transparent 60%),
                radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.2), transparent 60%);
    animation: drift 12s infinite linear;
}

.phase-progress-card > *,
.activity-card > * {
    position: relative;
    z-index: 1;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-tag {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.phase-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-step {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.progress-step:last-child {
    border-bottom: none;
}

.step-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.step-meta {
    text-align: right;
}

.step-count {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.step-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: inline-block;
    margin-top: 0.35rem;
}

.step-status.is-pending {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
}

.step-status.is-active {
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.5);
}

.step-status.is-complete {
    color: var(--forex-green);
    border-color: rgba(16, 185, 129, 0.5);
}

.activity-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.activity-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.user-name-display {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 1rem;
}

/* Credentials Status Card */
.credentials-status-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease;
}

.credentials-status-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.credentials-status-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.status-complete {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

.status-partial {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.05);
}

.status-empty {
    border-color: var(--border-subtle);
}

/* Credentials Form Card */
.credentials-form-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.credentials-form-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .credentials-form-card {
        padding: 2rem;
    }
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.privacy-notice svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.privacy-notice p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Danger Zone */
.danger-zone {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.05);
}

.danger-zone h4 {
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.danger-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.w-full {
    width: 100%;
}

/* ═══════════════ TICKER SCROLLING ═══════════════ */
.ticker-scroll {
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
    overflow: hidden;
    max-width: 600px;
    animation: tickerFadeIn 1s ease;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item.positive {
    color: var(--forex-green);
    border-color: var(--glow-green);
}

.ticker-item.negative {
    color: var(--forex-red);
    border-color: var(--glow-red);
}

.ticker-item .price {
    font-weight: 700;
    color: var(--text-primary);
}

.ticker-item .change {
    font-size: 0.7rem;
}

/* ═══════════════ TRADING STATS WIDGET ═══════════════ */
.trading-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 1.5rem 0 0;
    animation: slideUpFade 0.8s ease;
}

.trading-stats-grid.trading-stats-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

#stat-referente {
    font-size: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.4rem 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2), 0 0 40px rgba(14, 165, 233, 0.1);
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px currentColor);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .ticker-scroll {
        display: none;
    }

    .welcome-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .welcome-side,
    .phase-progress-card,
    .activity-card {
        padding: 1.25rem;
    }

    .dashboard-welcome h1 {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        word-break: break-word;
    }

    .dashboard-welcome h1 span {
        display: inline;
    }

    .welcome-actions {
        gap: 0.5rem;
        margin: 0.75rem 0 0.5rem;
    }

    .welcome-actions .btn {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    .trading-stats-grid {
        grid-template-columns: 1fr 1fr;
        margin: 0.75rem 0;
        gap: 0.5rem;
    }

    .trading-stats-grid.trading-stats-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .trading-stats-grid.trading-stats-3 .stat-icon {
        font-size: 1rem;
    }

    .trading-stats-grid.trading-stats-3 .stat-value {
        font-size: 0.7rem;
    }

    .trading-stats-grid.trading-stats-3 .stat-label {
        font-size: 0.5rem;
    }

    .trading-stats-grid.trading-stats-3 .stat-card {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    .stat-card {
        flex-direction: row;
        padding: 0.6rem 0.75rem;
        gap: 0.4rem;
        text-align: left;
        align-items: center;
    }

    .stat-icon {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.6rem;
        margin-bottom: 0;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }

    .phase-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .phase-header .btn {
        align-self: flex-start;
    }
}

/* ═══════════════ ENHANCED GLASSMORPHISM ═══════════════ */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(14, 165, 233, 0.05);
}

.glass-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(14, 165, 233, 0.15);
}

/* ═══════════════ 3D CARD HOVER EFFECTS ═══════════════ */
.credentials-form-card {
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.form-section:hover::before {
    opacity: 1;
}

.form-section:hover {
    transform: translateZ(10px) scale(1.01);
    border-color: rgba(14, 165, 233, 0.3);
}

/* ═══════════════ FORM INPUT ENHANCEMENTS ═══════════════ */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-control:focus {
    transform: scale(1.02);
    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.2),
        0 8px 20px rgba(14, 165, 233, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control:hover:not(:focus) {
    border-color: rgba(14, 165, 233, 0.3);
}

/* ═══════════════ BUTTON RIPPLE EFFECT ═══════════════ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes tickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.status-icon {
    animation: float 3s ease-in-out infinite;
}

/* ═══════════════ RESPONSIVE ENHANCEMENTS ═══════════════ */
@media (max-width: 768px) {
    .trading-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .form-section:hover {
        transform: none;
    }
}

.status-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.status-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* ═══════════════ PHASE CARDS STYLING ═══════════════ */
.phase-card {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.phase-card > * {
    position: relative;
    z-index: 1;
}

#phase2-card::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(251, 146, 60, 0.15), transparent 30%),
                radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.1), transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: phaseRotate 15s infinite linear;
}

#phase3-card::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.15), transparent 30%),
                radial-gradient(circle at 30% 70%, rgba(147, 51, 234, 0.1), transparent 30%);
    pointer-events: none;
    z-index: 0;
    animation: phaseRotateReverse 15s infinite linear;
}

@keyframes phaseRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes phaseRotateReverse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(1.1); }
    100% { transform: rotate(-360deg) scale(1); }
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 100%);
    opacity: 0.6;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.phase-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    animation: glowPulse 2s infinite;
}

.phase-badge.phase-2 {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border: 1px solid rgba(251, 146, 60, 0.5);
    color: #fb923c;
}

.phase-badge.phase-3 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #a855f7;
}

.phase-card.phase-2::before {
    background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}

.phase-card.phase-3::before {
    background: linear-gradient(90deg, #a855f7 0%, #9333ea 100%);
}

/* Mini Status Card for Phases */
.mini-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.mini-status-card .status-icon {
    font-size: 2.5rem;
    margin: 0;
    animation: none;
}

.mini-status-card h4 {
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
    color: var(--text-primary);
}

.mini-status-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

.mini-status-card.status-complete {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.mini-status-card.status-partial {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
}

.mini-status-card.status-empty {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

/* Phase progression indicator */
@keyframes phaseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6), 0 0 60px rgba(14, 165, 233, 0.4);
    }
}

.phase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 80px rgba(14, 165, 233, 0.15);
}

.phase-card .danger-zone {
    margin-top: 2rem;
}

/* Phase 2 accent color overrides */
.phase-card.phase-2 .form-section-title {
    color: #fb923c;
}

.phase-card.phase-2 .privacy-notice {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.2);
}

.phase-card.phase-2 .privacy-notice svg,
.phase-card.phase-2 .privacy-notice strong {
    color: #fb923c;
}

/* Phase 3 accent color overrides */
.phase-card.phase-3 .form-section-title {
    color: #a855f7;
}

.phase-card.phase-3 .privacy-notice {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
}

.phase-card.phase-3 .privacy-notice svg,
.phase-card.phase-3 .privacy-notice strong {
    color: #a855f7;
}

/* Responsive adjustments for phases */
@media (max-width: 768px) {
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .phase-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    .phase-card {
        padding: 2rem 1.5rem;
    }
}

/* ═══════════════ MULTI ACCOUNT STYLES ═══════════════ */

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.account-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.account-card-header {
    padding: 1.5rem;
    background: rgba(14, 165, 233, 0.05);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.account-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.account-badge.complete {
    background: rgba(0, 255, 136, 0.15);
    color: var(--forex-green);
}

.account-badge.incomplete {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--accent);
}

.btn-icon.btn-danger:hover {
    background: rgba(255, 51, 102, 0.1);
    color: var(--forex-red);
}

.account-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-info-section {
    background: rgba(30, 41, 59, 0.4);
    padding: 1rem;
    border-radius: 8px;
}

.account-info-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-section p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.account-info-section strong {
    color: #94a3b8;
    display: inline-block;
    min-width: 100px;
}

.account-card-footer {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #94a3b8;
    font-size: 1rem;
    grid-column: 1 / -1;
}

.error-state {
    color: var(--forex-red);
}

/* ═══════════════ MODAL STYLES ═══════════════ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(255, 51, 102, 0.1);
    color: var(--forex-red);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.phase-fields {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .accounts-list {
        grid-template-columns: 1fr;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }
}