/* Dashboard UX Upgrade (v1) */
body.modern-v2 #dashboard-screen {
    align-items: stretch;
    overflow-y: auto;
}

body.modern-v2 .dashboard-card {
    border-left-width: 5px !important;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

body.modern-v2 .dashboard-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35) !important;
}

body.modern-v2 .dashboard-level-card {
    border-left-color: #43d2ff !important;
}

body.modern-v2 .dashboard-insight-card {
    border-left-color: #ffbe66 !important;
}

body.modern-v2 .dashboard-history-card {
    border-left-color: #ff8898 !important;
}

body.modern-v2 .dashboard-categories-card {
    border-left-color: #4af0bf !important;
}

body.modern-v2 .dashboard-section-title {
    color: #d7e8ff !important;
    font-family: "Rajdhani", "Space Grotesk", sans-serif;
    letter-spacing: 0.7px;
}

body.modern-v2 .daily-goal-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: var(--mx-radius-lg);
    border: 1px solid rgba(129, 184, 242, 0.3);
    background: linear-gradient(150deg, rgba(20, 33, 53, 0.9), rgba(13, 24, 39, 0.92));
}

body.modern-v2 .goal-ring-container {
    width: 112px !important;
    height: 112px !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.modern-v2 .goal-ring {
    width: 100%;
    height: 100%;
    display: block;
}

body.modern-v2 .goal-ring .ring-bg {
    stroke: rgba(129, 184, 242, 0.28);
}

body.modern-v2 .goal-ring .ring-fill {
    stroke: #4ad5ff;
}

body.modern-v2 .goal-stats span {
    color: #e8f5ff !important;
    font-weight: 900;
    font-size: 1.7rem !important;
    line-height: 1;
}

body.modern-v2 .goal-stats small {
    font-size: 0.72rem !important;
    letter-spacing: 0.09em;
}

body.modern-v2 .goal-info h3 {
    color: #ffffff !important;
    font-size: 1.12rem;
}

body.modern-v2 .goal-info p {
    color: var(--mx-text-soft) !important;
    font-size: 0.84rem;
}

body.modern-v2 .goal-extra-metrics {
    margin-top: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.modern-v2 .goal-extra-chip {
    border-radius: 11px;
    border: 1px solid rgba(129, 184, 242, 0.32);
    background: linear-gradient(145deg, rgba(13, 30, 49, 0.88), rgba(10, 24, 40, 0.9));
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

body.modern-v2 .goal-extra-chip span {
    color: #b8d8f4 !important;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.modern-v2 .goal-extra-chip strong {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
}

body.modern-v2 #mission-goal-20,
body.modern-v2 #mission-combo-5,
body.modern-v2 #mission-voice-3 {
    min-height: 48px;
    padding: 10px 12px !important;
}

body.modern-v2 #mission-goal-20 span,
body.modern-v2 #mission-combo-5 span,
body.modern-v2 #mission-voice-3 span {
    font-size: 0.84rem !important;
}

body.modern-v2 #mission-goal-20 strong,
body.modern-v2 #mission-combo-5 strong,
body.modern-v2 #mission-voice-3 strong {
    font-size: 0.95rem !important;
}

body.modern-v2 .dropdown-menu {
    border: 1px solid rgba(148, 195, 247, 0.42) !important;
    background: linear-gradient(170deg, rgba(18, 30, 49, 0.97), rgba(11, 20, 33, 0.98)) !important;
    border-radius: 14px;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.42);
}

body.modern-v2 .dropdown-item {
    color: var(--mx-text) !important;
}

body.modern-v2 .dropdown-item:hover {
    background: rgba(70, 212, 255, 0.2) !important;
}

body.modern-v2 #mistakes-screen {
    padding-bottom: 84px;
}

body.modern-v2 #mistakes-screen .glass-panel {
    background: linear-gradient(170deg, rgba(17, 28, 44, 0.95), rgba(11, 20, 33, 0.95)) !important;
}

body.modern-v2 #mistakes-screen #firebase-mistakes-list .mistake-card,
body.modern-v2 #mistakes-screen #learned-words-list .mistake-card {
    background: linear-gradient(145deg, #1f2f45, #162438) !important;
    color: #f7fbff !important;
    border: 1px solid rgba(150, 193, 241, 0.3) !important;
    border-left-width: 4px !important;
}

body.modern-v2 #mistakes-screen #firebase-mistakes-list .mistake-card {
    border-left-color: var(--mx-danger) !important;
}

body.modern-v2 #mistakes-screen #learned-words-list .mistake-card {
    border-left-color: var(--mx-success) !important;
}

body.modern-v2 #tab-mistakes,
body.modern-v2 #tab-learned {
    border-radius: 10px !important;
}

body.modern-v2 #tab-mistakes.active,
body.modern-v2 #tab-learned.active {
    background: linear-gradient(145deg, #2a86ff, #2ecfff) !important;
    color: #03172a !important;
}

body.modern-v2 #settings-screen .modern-card-panel,
body.modern-v2 #insights-screen .modern-card-panel {
    border-left-width: 5px !important;
}
