/* ==========================================================================
   AI LingoPlay dashboard — Travel Roleplay Companion theme.
   The user's home base: language, scene and character selection, passport
   journal and settings. Shares the palette with home.css / chat-theme.css.
   ========================================================================== */

:root {
    --cream: #FAF3E7;
    --cream-deep: #F1E5CF;
    --paper: #FFFDF8;
    --sand: #F0E4CE;
    --ink: #22335C;
    --ink-soft: #5A6689;
    --navy: #1C2B4A;
    --coral: #E8604C;
    --coral-dark: #D14E3A;
    --coral-soft: #FBDACF;
    --teal: #2A9D8F;
    --teal-deep: #1F7A70;
    --teal-soft: #D9EFEB;
    --amber: #E9B44C;
    --card-border: 1px solid rgba(34, 51, 92, 0.08);
    --card-shadow: 0 6px 22px rgba(34, 51, 92, 0.10);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

button { font-family: inherit; }

.hidden { display: none !important; }

/* ============ Buttons (match home page .jbtn) ============ */
.jbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.jbtn-coral {
    background: var(--coral);
    color: var(--paper);
    box-shadow: 0 6px 18px rgba(232, 96, 76, 0.35);
}
.jbtn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); }
.jbtn-coral:disabled { opacity: 0.6; cursor: wait; transform: none; }
.jbtn-lg { padding: 14px 34px; font-size: 17px; }

/* ============ Header ============ */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    position: sticky;
    top: 0;
    background: rgba(250, 243, 231, 0.92);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-bottom: 1px solid rgba(34, 51, 92, 0.07);
}
.jwordmark { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.jwordmark-icon { width: 28px; height: 28px; flex-shrink: 0; }
.jwordmark-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.jwordmark-text em { font-style: normal; color: var(--coral); }

.dash-header-right { display: flex; align-items: center; gap: 12px; }

.dash-streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--coral-soft);
    color: var(--coral-dark);
    font-weight: 700;
    font-size: 15px;
}
.dash-streak-chip svg { width: 15px; height: 15px; }

.dash-account { position: relative; }
.dash-account-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(34, 51, 92, 0.2);
    background: var(--paper);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dash-account-btn svg { width: 18px; height: 18px; }
.dash-account-btn:hover { color: var(--coral); border-color: var(--coral); }
.dash-account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 46px;
    min-width: 230px;
    background: var(--paper);
    border: var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 8px;
    z-index: 60;
}
.dash-account-menu.open { display: block; }
.dash-account-info { padding: 10px 12px; border-bottom: 1px solid rgba(34, 51, 92, 0.08); margin-bottom: 6px; }
.dash-account-name { font-weight: 600; }
.dash-account-email { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.dash-account-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
}
.dash-account-menu a:hover { background: var(--cream); color: var(--coral); }

/* ============ Layout ============ */
.dash {
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px 22px 70px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* ============ Page entrance (staggered fade-in) ============ */
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dash > section {
    animation: dashFadeIn 0.55s ease both;
}
.dash > section:nth-child(1) { animation-delay: 0.05s; }
.dash > section:nth-child(2) { animation-delay: 0.14s; }
.dash > section:nth-child(3) { animation-delay: 0.23s; }
.dash > section:nth-child(4) { animation-delay: 0.32s; }
.dash > section:nth-child(5) { animation-delay: 0.41s; }
@media (prefers-reduced-motion: reduce) {
    .dash > section { animation: none; }
}

.dash-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.dash-section-head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 2px;
}
.dash-section-head p { margin: 0; color: var(--ink-soft); }

.dash-step {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}
.dash-step-icon { background: var(--teal); }
.dash-step-icon svg { width: 18px; height: 18px; }

/* ============ Hero / continue card ============ */
.dash-hero {
    background: var(--paper);
    border: var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 26px 28px;
}
.dash-hero-new h1, .dash-continue h1 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 6px;
}
.dash-hero-new p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

.dash-continue {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.dash-continue-art {
    width: 110px;
    flex-shrink: 0;
    background: var(--cream);
    border-radius: 16px;
    padding: 8px;
}
.dash-continue-art svg { width: 100%; height: auto; display: block; }
.dash-continue-body { flex: 1; min-width: 220px; }
.dash-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal-deep);
}
.dash-continue h1 { font-size: 26px; }
.dash-continue .dash-sub { color: var(--coral); }
.dash-continue-body p { margin: 2px 0 0; color: var(--ink-soft); }

/* ============ Language pills ============ */
.dash-lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dash-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(34, 51, 92, 0.18);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.dash-lang-pill img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(34,51,92,0.15); }
.dash-lang-pill:hover { border-color: var(--coral); transform: translateY(-1px); }
.dash-lang-pill.selected {
    border-color: var(--coral);
    background: var(--coral-soft);
    color: var(--coral-dark);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(232, 96, 76, 0.22);
}

.dash-level-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}
.dash-level-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    white-space: nowrap;
}
.dash-level-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    max-width: 380px;
}
.dash-level-row .dash-segmented {
    background: var(--paper);
}
.dash-level-framework {
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
}

/* ============ Scene grid ============ */
.dash-scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.dash-scene-card {
    position: relative;
    text-align: left;
    background: var(--paper);
    border: 1.5px solid rgba(34, 51, 92, 0.10);
    border-radius: 18px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.dash-scene-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: rgba(34, 51, 92, 0.25);
}
.dash-scene-card.selected {
    border-color: var(--coral);
    box-shadow: 0 8px 24px rgba(232, 96, 76, 0.22);
}
.dash-scene-card.selected::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 14px;
    border: 1.5px dashed rgba(232, 96, 76, 0.45);
    pointer-events: none;
}
.dash-scene-art {
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 10px;
}
.dash-scene-art svg { width: 100%; height: auto; display: block; }
.dash-scene-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--ink);
}
.dash-scene-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.dash-scene-stamp {
    display: none;
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    color: var(--teal);
    transform: rotate(12deg);
    z-index: 2;
}
.dash-scene-stamp svg { width: 100%; height: 100%; }
.dash-scene-card.stamped .dash-scene-stamp { display: block; }

/* ============ Setup panel ============ */
.dash-setup {
    background: var(--paper);
    border: var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 24px 26px;
}
.dash-setup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.dash-setup-col h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.dash-sub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-sub-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(34, 51, 92, 0.18);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.dash-sub-chip:hover { border-color: var(--teal); }
.dash-sub-chip.selected {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal-deep);
    font-weight: 600;
}

.dash-character-row { display: flex; gap: 14px; }
.dash-character-card {
    flex: 1;
    max-width: 220px;
    text-align: center;
    background: var(--paper);
    border: 1.5px solid rgba(34, 51, 92, 0.14);
    border-radius: 16px;
    padding: 14px 12px 12px;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.dash-character-card:hover { transform: translateY(-2px); border-color: rgba(34, 51, 92, 0.3); }
.dash-character-card.selected {
    border-color: var(--coral);
    box-shadow: 0 8px 22px rgba(232, 96, 76, 0.2);
    background: #FFF9F2;
}
.dash-character-card img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cream-deep);
    margin-bottom: 8px;
}
.dash-character-name { font-weight: 700; font-size: 17px; font-family: var(--font-display); }
.dash-character-meta { font-size: 13px; color: var(--ink-soft); margin: 1px 0 6px; }
.dash-character-bio {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-setup-actions { margin-top: 22px; text-align: center; }

/* ============ Passport ============ */
.dash-passport {
    background: var(--navy);
    border-radius: 20px;
    padding: 24px 26px;
    color: var(--cream);
    box-shadow: var(--card-shadow);
    background-image: radial-gradient(rgba(255, 253, 248, 0.05) 1px, transparent 1.5px);
    background-size: 18px 18px;
}
.dash-passport-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(250, 243, 231, 0.25);
}
.dash-stat { display: flex; flex-direction: column; }
.dash-stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--amber);
    line-height: 1.1;
}
.dash-stat-label { font-size: 13px; color: rgba(250, 243, 231, 0.75); }

.dash-stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.dash-stamp {
    position: relative;
    border: 1.5px dashed rgba(250, 243, 231, 0.3);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    opacity: 0.45;
}
.dash-stamp > span { font-size: 12px; display: block; margin-top: 2px; color: var(--cream); }
.dash-stamp-art { border-radius: 8px; background: rgba(250, 243, 231, 0.08); }
.dash-stamp-art svg { width: 100%; height: auto; display: block; }
.dash-stamp.stamped {
    opacity: 1;
    border-style: solid;
    border-color: var(--amber);
    background: rgba(233, 180, 76, 0.12);
    transform: rotate(-1.5deg);
}
.dash-stamp.stamped:nth-child(even) { transform: rotate(1.5deg); }
.dash-stamp.complete {
    border-color: var(--teal);
    background: rgba(42, 157, 143, 0.16);
}

/* Scene-complete rosette, top right of the stamp.
   NB: outranks the `.dash-stamp > span` title rule, which also matches. */
.dash-stamp > .dash-stamp-complete {
    display: none;
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    margin: 0;
    color: var(--teal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.dash-stamp-complete svg { width: 100%; height: 100%; display: block; }
.dash-stamp.complete > .dash-stamp-complete { display: block; }

/* Five situation check circles under the scene title */
.dash-stamp-checks {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}
.dash-stamp-checks i {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(250, 243, 231, 0.35);
    flex-shrink: 0;
}
.dash-stamp-checks i.done {
    border: none;
    background: none;
}
.dash-stamp-checks i.done svg { width: 13px; height: 13px; display: block; color: var(--amber); }
.dash-stamp.complete .dash-stamp-checks i.done svg { color: var(--teal); }

/* ============ 7-day streak strip ============ */
.dash-streak-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(250, 243, 231, 0.25);
}
.dash-streak-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 8px;
}
.dash-streak-flames { display: flex; gap: 10px; }
.dash-streak-flames i {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px dashed rgba(250, 243, 231, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-streak-flames i.lit {
    border-style: solid;
    border-color: var(--coral);
    background: rgba(232, 96, 76, 0.18);
}
.dash-streak-flames i svg { width: 16px; height: 16px; color: var(--coral); display: none; }
.dash-streak-flames i.lit svg { display: block; }
.dash-streak-hint {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: rgba(250, 243, 231, 0.65);
}
.dash-level-badge {
    position: relative;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #2A3C63, var(--navy) 70%);
    border: 3px solid var(--amber);
    box-shadow: 0 0 0 5px rgba(233, 180, 76, 0.22), 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.dash-level-flame {
    position: absolute;
    top: -13px;
    width: 22px; height: 22px;
    color: var(--coral);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.dash-level-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 34px;
    line-height: 1;
    color: var(--amber);
    margin-top: 6px;
}
/* Scoped to the navy streak badge: an unscoped .dash-level-label here
   would override the study-level row's label and render it cream-on-cream */
.dash-level-badge .dash-level-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250, 243, 231, 0.75);
}

/* ============ Settings ============ */
/* The settings themselves moved into the shared overlay panel
   (settings-overlay.css); only the segmented control remains in use
   here, for the study-level selector. */

.dash-segmented {
    display: flex;
    border: 1.5px solid rgba(34, 51, 92, 0.18);
    border-radius: 999px;
    overflow: hidden;
}
.dash-segmented button {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    font-size: 13.5px;
    color: var(--ink-soft);
    cursor: pointer;
}
.dash-segmented button.selected {
    background: var(--navy);
    color: var(--paper);
    font-weight: 600;
}

/* ============ Footer ============ */
.dash-footer {
    text-align: center;
    padding: 24px 16px 34px;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.dash-footer a { color: var(--ink-soft); text-decoration: none; }
.dash-footer a:hover { color: var(--coral); }
.dash-footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.dash-footer-social a {
    display: inline-flex;
    align-items: center;
}
.dash-footer-social svg {
    width: 18px;
    height: 18px;
}

/* ============ Responsive ============ */
@media (max-width: 760px) {
    .dash { padding: 18px 14px 50px; gap: 26px; }
    .dash-section-head h2 { font-size: 22px; }
    .dash-hero-new h1, .dash-continue h1 { font-size: 23px; }
    .dash-scene-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dash-scene-card { padding: 12px 12px 11px; }
    .dash-scene-card h3 { font-size: 16.5px; }
    .dash-scene-card p { font-size: 12.5px; }
    .dash-setup-body { grid-template-columns: 1fr; gap: 20px; }
    .dash-setup { padding: 18px 16px; }
    .dash-character-row { justify-content: center; }
    .dash-lang-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .dash-level-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .dash-level-control { max-width: none; }
    .dash-lang-pill { flex-shrink: 0; }
    .dash-passport { padding: 18px 16px; }
    .dash-stamp-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-streak-strip { justify-content: center; }
    .dash-streak-flames { gap: 7px; }
    .dash-streak-flames i { width: 26px; height: 26px; }
    .dash-continue-actions { width: 100%; }
    .dash-continue-actions .jbtn { width: 100%; }
}

/* ============ Reset stamps confirmation ============ */
.dash-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(28, 43, 74, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dash-modal-card {
    background: var(--paper);
    border-radius: 20px;
    padding: 26px 28px;
    max-width: 420px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}
.dash-modal-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 8px;
}
.dash-modal-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.dash-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dash-modal-cancel {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(34, 51, 92, 0.2);
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.dash-modal-cancel:hover { background: var(--cream-deep); }

/* ============ Celebration overlay ============ */
.dash-celebrate {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(28, 43, 74, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.45s ease;
}
.dash-celebrate.fading { opacity: 0; pointer-events: none; }
.dash-confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.dash-celebrate-cards {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.dash-celebrate-card {
    background: var(--paper);
    border-radius: 22px;
    padding: 26px 30px 24px;
    width: 270px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: dash-celebrate-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
    transition: transform 0.35s cubic-bezier(0.6, -0.3, 0.7, 1), opacity 0.35s ease;
}
.dash-celebrate-card:nth-child(2) { animation-delay: 0.12s; }
.dash-celebrate-card.popped {
    /* Cancel the entrance animation: its 'both' fill otherwise keeps the
       final keyframe applied, which outranks these declarations */
    animation: none;
    transform: scale(1.5);
    opacity: 0;
    pointer-events: none;
}
@keyframes dash-celebrate-in {
    from { transform: translateY(40px) scale(0.7); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.dash-celebrate-art {
    width: 110px;
    margin: 0 auto 10px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--cream-deep);
}
.dash-celebrate-art svg { width: 100%; height: auto; display: block; }
.dash-celebrate-flame {
    width: 74px; height: 74px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--coral-soft);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dash-flame-pulse 1.4s ease-in-out infinite;
}
.dash-celebrate-flame svg { width: 36px; height: 36px; }
@keyframes dash-flame-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.dash-celebrate-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 4px;
}
.dash-celebrate-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 2px;
}
.dash-celebrate-card p { margin: 0 0 6px; color: var(--ink-soft); font-size: 14px; }
.dash-celebrate-extra { color: var(--teal-deep) !important; font-weight: 600; }
.dash-celebrate-ok { margin-top: 12px; padding: 9px 30px; }

/* ============ Level-up banner ============ */
.dash-levelup {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 320;
    transform: translate(-50%, -130%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    background: var(--navy);
    color: var(--cream);
    font-size: 17px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--amber);
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.2, 1.2, 0.4, 1);
    max-width: min(92vw, 560px);
}
.dash-levelup svg { width: 26px; height: 26px; color: var(--coral); flex-shrink: 0; }
.dash-levelup strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--amber);
}
.dash-levelup.shown { transform: translate(-50%, 14px); }
.dash-levelup.dismissed-down {
    transform: translate(-50%, calc(100vh + 40px));
    transition: transform 0.6s cubic-bezier(0.6, -0.2, 0.8, 0.8);
}
.dash-levelup.dismissed-up {
    transform: translate(-50%, -120%);
    transition: transform 0.45s ease-in;
}

/* Unverified-email nudge. Deliberately advisory, not blocking: a typo'd
   address still gets full access, it just cannot be recovered later. */
.dash-verify-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #FDF4E1;
    border: 1px solid var(--amber);
    border-left: 4px solid var(--amber);
    border-radius: 12px;
    color: var(--ink);
}
.dash-verify-icon { font-size: 20px; line-height: 1.3; color: var(--amber); flex-shrink: 0; }
.dash-verify-body { flex: 1; min-width: 0; }
.dash-verify-body strong { display: block; margin-bottom: 3px; font-size: 15px; }
.dash-verify-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.dash-verify-email { font-weight: 600; color: var(--ink); word-break: break-all; }
.dash-verify-dismiss {
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    color: var(--ink-soft);
    flex-shrink: 0;
}
.dash-verify-dismiss:hover { color: var(--ink); }
.dash-verify-banner[hidden] { display: none; }
