/* =====================================================================
   Premium dashboard redesign — splash, hero, onboarding, opportunities,
   two-column layout, skeletons + educational empty states.
   Loaded after dashboard.css; uses the same design tokens.
   ===================================================================== */

/* ---- Welcome splash ---- */
.dz-splash { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
    background: radial-gradient(1200px 600px at 50% 30%, var(--accent-soft) 0%, var(--bg) 60%);
    transition: opacity .55s ease, visibility .55s ease; }
.dz-splash.done { opacity: 0; visibility: hidden; }
.dz-splash-inner { text-align: center; animation: dzRise .6s cubic-bezier(.18,.89,.32,1.28) both; }
.dz-splash-logo { width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 20px;
    background: var(--accent-soft); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--accent-ring), 0 18px 50px rgba(16,185,129,.35);
    animation: dzPulse 1.4s ease-in-out infinite; }
.dz-splash-logo img { width: 46px; height: 46px; }
.dz-splash-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.dz-splash-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.dz-splash-bar { width: 180px; height: 4px; border-radius: 99px; background: var(--bg-elev-2); margin: 1.2rem auto 0; overflow: hidden; }
.dz-splash-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--accent); animation: dzLoad 1.3s ease-in-out infinite; }
@keyframes dzRise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dzPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes dzLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@media (prefers-reduced-motion: reduce) { .dz-splash-logo, .dz-splash-bar span { animation: none; } }

/* ---- Hero (clean two-column: greeting left, health ring pinned top-right) ---- */
.dz-hero { position: relative; overflow: hidden; display: flex; align-items: flex-start;
    justify-content: space-between; gap: var(--s-6);
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--s-6); margin-bottom: var(--s-4); box-shadow: var(--shadow-sm); }
.dz-hero-glow { position: absolute; top: -90px; right: -70px; width: 260px; height: 260px;
    border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    pointer-events: none; display: block; }
.dz-hero-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.dz-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.dz-hero-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: var(--s-3) 0 var(--s-1); }
.dz-hero-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 var(--s-4); max-width: 540px; }
.dz-hero-stats { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.dz-hstat { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-3) var(--s-4); min-width: 146px; }
.dz-hstat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.dz-hstat-value { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; color: var(--text); }
.dz-hstat-value small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dz-hstat-note { font-size: 11px; color: var(--text-muted); }
.dz-hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.dz-cta { display: inline-flex; align-items: center; gap: 6px; }
.dz-cta span { font-size: 15px; }
/* Health ring pinned to the top-right of the hero. */
.dz-hero-ring { position: relative; z-index: 1; flex-shrink: 0; text-align: center; }
.ring-lg svg { width: 116px; height: 116px; }
.dz-ring-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 760px) {
    .dz-hero { flex-direction: column; align-items: stretch; }
    .dz-hero-ring { align-self: flex-start; }
}

/* ---- Progress bars ---- */
.dz-progress { height: 7px; border-radius: 99px; background: var(--bg-elev-2); overflow: hidden; }
.dz-progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #34d399); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.dz-progress-lg { height: 10px; margin: var(--s-3) 0 var(--s-4); }

/* ---- Getting started ---- */
.dz-getstarted { margin-bottom: var(--s-4); }
.dz-gs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.dz-gs-head h2 { font-size: 16px; margin: 0 0 2px; }
.dz-gs-prog { text-align: right; flex-shrink: 0; }
.dz-gs-pct { display: block; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1; }
.dz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-2); }
.dz-step { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev-2); }
.dz-step.is-done { background: var(--accent-soft); border-color: var(--accent-ring); }
.dz-step-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: #fff; }
.dz-step.is-done .dz-step-check { background: var(--accent); border-color: var(--accent); }
.dz-step-label { flex: 1; font-size: 13px; font-weight: 600; }
.dz-step.is-done .dz-step-label { color: var(--text-muted); }
.dz-step-cta { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.dz-step-tag { font-size: 11px; font-weight: 700; color: var(--accent); }

/* ---- Opportunity cards ---- */
.dz-opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.dz-opp { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: var(--s-4);
    border-radius: var(--radius-lg); border: 1px solid var(--border); color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.dz-opp:hover { transform: translateY(-3px); box-shadow: var(--shadow-elev); }
.dz-opp-emoji { font-size: 24px; }
.dz-opp strong { font-size: 14px; font-weight: 800; }
.dz-opp > span:not(.dz-opp-emoji):not(.dz-opp-go) { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.dz-opp-go { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 6px; }
.opp-fire   { background: linear-gradient(150deg, rgba(240,97,109,.16), rgba(224,163,10,.08)); }
.opp-money  { background: linear-gradient(150deg, rgba(16,185,129,.18), rgba(16,185,129,.04)); }
.opp-growth { background: linear-gradient(150deg, rgba(91,157,255,.18), rgba(91,157,255,.04)); }
.opp-win    { background: linear-gradient(150deg, rgba(224,163,10,.18), rgba(240,97,109,.06)); }
.opp-zap    { background: linear-gradient(150deg, rgba(167,139,250,.18), rgba(91,157,255,.06)); }

/* ---- Two-column layout (content + right sidebar) ---- */
.dz-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: var(--s-4); align-items: start; }
.dz-col-main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.dz-col-side { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: calc(var(--tb-h) + var(--s-4)); }
@media (max-width: 1040px) { .dz-layout { grid-template-columns: 1fr; } .dz-col-side { position: static; } }

/* ---- Skeletons + educational empty states ---- */
.dz-skel-spark { height: 34px; border-radius: var(--radius-sm); margin-top: var(--s-2); background: var(--skeleton); background-size: 400% 100%; animation: dzShimmer 1.4s ease infinite; }
@keyframes dzShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.kpi-num-empty { color: var(--text-faint); }
.dz-chart-preview { display: flex; gap: var(--s-6); align-items: center; padding: var(--s-2) 0; flex-wrap: wrap; }
.dz-skel-chart { flex: 1; min-width: 240px; height: 170px; border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-elev-2), transparent); display: grid; place-items: end stretch; padding: var(--s-3); }
.dz-skel-line { width: 100%; height: 100%; opacity: .8; }
.dz-preview-caption { flex: 1; min-width: 220px; }
.dz-preview-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--info); background: var(--info-soft); padding: 2px 8px; border-radius: 99px; margin-bottom: 8px; }
.dz-preview-caption strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dz-preview-caption p { font-size: 12.5px; line-height: 1.5; margin: 0 0 var(--s-3); }
.dz-edu { text-align: center; padding: var(--s-6) var(--s-4); }
.dz-edu-ic { font-size: 30px; display: block; margin-bottom: var(--s-2); }
.dz-edu strong { display: block; font-size: 14px; margin-bottom: 4px; }
.dz-edu p { font-size: 12.5px; line-height: 1.5; margin: 0 auto var(--s-2); max-width: 260px; }
.dz-edu-sm { padding: var(--s-3) 0; text-align: left; }

/* ---- Right sidebar widgets ---- */
.dz-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-side-list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--radius-sm); }
.dz-side-list a:hover { background: var(--bg-hover); }
.dz-sl-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.dz-side-list b { font-size: 12.5px; display: block; }
.dz-side-list em { font-size: 11px; font-style: normal; }
.dz-niches { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.dz-niches li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.dz-niches li:last-child { border-bottom: none; }
.dz-niches b { font-size: 11px; font-weight: 700; }
.dz-tip-text { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.dz-tip-text b { color: var(--text); }
.dz-tip { background: linear-gradient(150deg, rgba(224,163,10,.10), transparent); }
.dz-health-badge { font-size: 11px; font-weight: 800; }
.dz-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.dz-activity li { display: flex; align-items: center; gap: var(--s-2); font-size: 12.5px; }
.dz-act-ic { flex-shrink: 0; }
.dz-act-text { flex: 1; min-width: 0; }
.dz-act-when { flex-shrink: 0; font-size: 11px; }
.health-items li.todo { color: var(--text-faint); }
