/* ============================================================
   Zentrales Dashboard ("Überblick")
   ============================================================ */

#centralDashboard { display: block; }

.cd-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}
.cd-loading i { margin-right: 8px; color: #6366f1; }

/* Hero */
.cd-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(99, 102, 241, .25);
}
.cd-hero h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: #fff; }
.cd-hero p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 60ch; }

/* ---------------- Daily Brain ---------------- */
.cd-daily {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
    position: relative;
    overflow: hidden;
}
.cd-daily::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #818cf8, #e0b04a, #ec4899);
}
.cd-daily.complete { box-shadow: 0 10px 30px rgba(52, 211, 153, .18); border-color: #bbf7d0; }
.cd-daily-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cd-daily-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b5cf6; }
.cd-daily-kicker i { margin-right: 5px; }
.cd-daily-title { margin: 6px 0 0; font-size: 20px; font-weight: 800; color: #111827; }
.cd-daily-streak { text-align: center; background: #f5f3ff; border-radius: 14px; padding: 8px 16px; flex-shrink: 0; }
.cd-daily-streak .n { display: block; font-size: 24px; font-weight: 800; color: #7c3aed; line-height: 1; }
.cd-daily-streak .l { font-size: 11px; color: #6b7280; }
.cd-daily-progress { height: 6px; background: #f1f5f9; border-radius: 999px; margin: 16px 0 18px; overflow: hidden; }
.cd-daily-progress-fill { height: 100%; background: linear-gradient(90deg, #818cf8, #34d399); border-radius: 999px; transition: width .4s ease; }
.cd-missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cd-mission {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    background: #fafbff; border: 1px solid #eef0f5; border-radius: 14px; padding: 14px 16px;
    transition: transform .14s, border-color .14s, box-shadow .14s; color: #111827;
}
.cd-mission:hover { transform: translateY(-2px); border-color: var(--m); box-shadow: 0 8px 18px rgba(17,24,39,.08); }
.cd-mission.done { background: #f0fdf4; border-color: #bbf7d0; }
.cd-mission-check { color: #cbd5e1; font-size: 20px; flex-shrink: 0; }
.cd-mission.done .cd-mission-check { color: #34d399; }
.cd-mission-icon { font-size: 24px; flex-shrink: 0; }
.cd-mission-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cd-mission-title { font-weight: 700; font-size: 14px; color: #111827; }
.cd-mission-task { font-size: 12.5px; color: #6b7280; line-height: 1.4; }
.cd-mission-go { color: var(--m); font-size: 13px; opacity: 0; transition: opacity .14s; flex-shrink: 0; }
.cd-mission:hover .cd-mission-go { opacity: 1; }

/* Grid of area cards */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.cd-card {
    background: #fff;
    border: 1px solid #eceef3;
    border-top: 4px solid var(--cd-accent, #6366f1);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
    transition: transform .2s, box-shadow .2s;
}
.cd-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 24, 39, .1); }
.cd-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cd-card-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    background: var(--cd-accent, #6366f1);
}
.cd-card-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }
.cd-card-sub { margin: 0 0 18px; color: #6b7280; font-size: 14px; }

.cd-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; flex: 1; align-content: flex-start; }
.cd-stat { display: flex; flex-direction: column; gap: 2px; }
.cd-stat-num { font-size: 24px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.cd-stat-lbl { font-size: 12px; color: #9ca3af; text-transform: uppercase; letter-spacing: .03em; }

.cd-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer;
    color: var(--cd-accent, #6366f1);
    font-weight: 600; font-size: 15px; font-family: inherit;
    text-decoration: none; padding: 0;
    transition: gap .2s;
}
.cd-card-link:hover { gap: 12px; }

/* More areas (chips → existing tabs) */
.cd-more { margin-bottom: 28px; }
.cd-more-label { display: block; font-size: 13px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    color: #374151; border-radius: 999px; padding: 10px 18px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
    transition: all .2s;
}
.cd-chip i { color: #6366f1; }
.cd-chip:hover { background: #eef2ff; border-color: #6366f1; color: #4f46e5; }

/* Recent activity */
.cd-activity {
    background: #fff; border: 1px solid #eceef3; border-radius: 18px; padding: 24px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}
.cd-activity h3 { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; }
.cd-activity h3 i { color: #6366f1; }
.cd-activity-list { display: flex; flex-direction: column; gap: 4px; }
.cd-activity-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
}
.cd-activity-item:hover { background: #f9fafb; }
.cd-activity-item > i { color: #10b981; font-size: 16px; }
.cd-activity-item > i.fa-circle-play { color: #6366f1; }
.cd-activity-name { font-weight: 600; color: #1f2937; flex: 1; }
.cd-activity-meta { font-size: 13px; color: #9ca3af; }

/* Buttons */
.cd-btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: none; border-radius: 12px; padding: 14px 26px;
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: transform .15s, box-shadow .2s;
}
.cd-btn-primary { background: #fff; color: #4f46e5; margin-top: 20px; }
.cd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }

@media (max-width: 640px) {
    .cd-hero { padding: 24px; }
    .cd-hero h2 { font-size: 22px; }
    .cd-grid { grid-template-columns: 1fr; }
}
