/* ============================================================
   Masterprüfung — Academic Theme
   Palette: warm cream · forest green · espresso · amber gold
   ============================================================ */

/* ── Reset & custom properties ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Backgrounds */
    --bg:           #f5f0e6;
    --bg-card:      #fefcf7;
    --bg-input:     #ffffff;
    --bg-subtle:    #ede8dc;
    --bg-green-tint: rgba(45, 90, 39, .05);

    /* Forest green scale */
    --green-deep:   #1a3d16;
    --green:        #2d5a27;
    --green-mid:    #3c6e35;
    --green-muted:  #6b9963;
    --green-pale:   #c6dbbf;
    --green-tint:   #edf4eb;

    /* Text */
    --espresso:     #1a0e05;
    --charcoal:     #2b1f12;
    --brown:        #5a4535;
    --brown-light:  #8c7560;
    --placeholder:  #b0a090;

    /* Borders */
    --border:       rgba(45, 90, 39, .22);
    --border-mid:   rgba(45, 90, 39, .38);
    --border-strong: rgba(45, 90, 39, .6);

    /* Gold accent (for highlights, achievement states) */
    --gold:         #b87d14;
    --gold-mid:     #c98d20;
    --gold-tint:    #fdf3dc;
    --gold-border:  rgba(184, 125, 20, .32);

    /* Semantic */
    --red:          #8b2020;
    --red-bg:       #fdf3f3;
    --red-border:   rgba(139, 32, 32, .28);
    --amber:        #8b6020;
    --amber-bg:     #fdf8ef;
    --amber-border: rgba(139, 96, 32, .28);

    /* Shadows */
    --shadow-sm:    0 1px 4px rgba(26, 14, 5, .08);
    --shadow-card:  0 4px 18px rgba(26, 14, 5, .1), 0 1px 4px rgba(26, 14, 5, .06);
    --shadow-raise: 0 8px 28px rgba(26, 14, 5, .14), 0 2px 6px rgba(26, 14, 5, .08);

    /* Typography */
    --ff-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --ff-sans:  'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-mono:  'Courier New', Courier, monospace;
}

/* ── Base ───────────────────────────────────────────────────── */
html { height: 100%; }

body {
    font-family: var(--ff-sans);
    color: var(--charcoal);
    min-height: 100vh;
    /* Warm cream with graph-paper grid + subtle fibre dots */
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, rgba(45,90,39,.045) 1px, transparent 1px),
        linear-gradient(rgba(45, 90, 39, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 90, 39, .07) 1px, transparent 1px);
    background-size: 7px 7px, 28px 28px, 28px 28px;
    -webkit-font-smoothing: antialiased;
}

/* ── Page wrappers ──────────────────────────────────────────── */
.login-page,
.onboarding-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

/* ── Auth card ──────────────────────────────────────────────── */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 6px;
    padding: 48px 44px 40px;
    box-shadow: var(--shadow-card),
                inset 0 0 0 1px rgba(255,255,255,.7);
    animation: cardIn .4s ease both;
}

/* Certification seal — peeks out of the top-right corner */
.success-seal {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f0eade 100%);
    border: 2px solid var(--green);
    box-shadow: 0 5px 16px rgba(26,14,5,.2),
                inset 0 0 0 3px rgba(45,90,39,.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(9deg);
    z-index: 5;
    font-family: var(--ff-sans);
    /* Pop in on load, then keep gently breathing (grow/shrink). */
    animation: seal-pop .5s cubic-bezier(.34,1.56,.64,1) .35s both,
               seal-breathe 2.6s ease-in-out 1s infinite;
}
@keyframes seal-pop {
    from { opacity: 0; transform: rotate(9deg) scale(.4); }
    to   { opacity: 1; transform: rotate(9deg) scale(1); }
}
@keyframes seal-breathe {
    0%, 100% { transform: rotate(9deg) scale(1);    }
    50%      { transform: rotate(9deg) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .success-seal { animation: seal-pop .5s ease .35s both; }
}
.seal-pct {
    font-family: var(--ff-serif);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: var(--green);
}
.seal-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--espresso);
    margin-top: 3px;
}
.seal-sub {
    font-size: 9px;
    letter-spacing: .5px;
    color: var(--brown-light);
    margin-top: 3px;
}

.onboarding-card {
    max-width: 520px;
    padding: 44px 48px 40px;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo block ─────────────────────────────────────────────── */
.logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-ring {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid var(--green);
    background: var(--green-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring svg {
    width: 36px;
    height: 36px;
    fill: var(--green);
}

.logo-title {
    font-family: var(--ff-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--espresso);
}

.logo-title span { color: var(--green); }

.logo-sub {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brown-light);
    font-family: var(--ff-sans);
}

/* ── Auth badge (replaces terminal-badge) ───────────────────── */
.auth-badge {
    display: block;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-muted);
    margin-bottom: 28px;
    font-family: var(--ff-mono);
}

/* ── Divider rule ───────────────────────────────────────────── */
.rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ── Form elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 6px;
    font-family: var(--ff-sans);
}

.input-wrap { position: relative; }

.form-input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: 4px;
    color: var(--charcoal);
    font-family: var(--ff-sans);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.form-input::placeholder { color: var(--placeholder); }

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, .12);
}

.form-input.error-field {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(139, 32, 32, .1);
}

/* Icon inside input */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-muted);
    pointer-events: none;
    display: flex;
}
.input-icon svg { width: 17px; height: 17px; fill: currentColor; }

/* Password reveal button */
.btn-eye {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    color: var(--brown-light);
    padding: 4px;
    display: flex;
    transition: color .15s;
}
.btn-eye:hover { color: var(--green); }
.btn-eye svg { width: 17px; height: 17px; fill: currentColor; }

/* ── Password strength ──────────────────────────────────────── */
.strength-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}
.strength-bar {
    flex: 1;
    height: 3px;
    background: rgba(0,0,0,.08);
    border-radius: 3px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width .3s ease, background .3s ease;
}
.strength-fill[data-level="1"] { width: 25%; background: #c0392b; }
.strength-fill[data-level="2"] { width: 50%; background: #d4813a; }
.strength-fill[data-level="3"] { width: 75%; background: #c4a435; }
.strength-fill[data-level="4"] { width: 100%; background: var(--green); }

.strength-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brown-light);
    min-width: 52px;
    text-align: right;
    font-weight: 600;
    transition: color .2s;
}

/* ── Primary button ─────────────────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 13px 20px;
    margin-top: 8px;
    background: var(--green);
    border: 1px solid var(--green-deep);
    border-radius: 4px;
    color: #fff;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .1s;
}
.btn-primary:hover {
    background: var(--green-mid);
    box-shadow: 0 4px 14px rgba(45, 90, 39, .3);
    transform: translateY(-1px);
}
.btn-primary:active  { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    animation: alertIn .25s ease;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
.alert svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; margin-top: 2px; }

.alert-error {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red);
    animation: alertIn .25s ease, shake .4s ease;
}
.alert-success {
    background: var(--green-tint);
    border: 1px solid var(--border);
    color: var(--green-deep);
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-6px); }
    75%     { transform: translateX(6px); }
}

/* ── Status bar (bottom of auth card) ──────────────────────── */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    letter-spacing: .5px;
    color: var(--brown-light);
}
.status-bar strong { color: var(--green); }

/* Live indicator — calm, not blinking */
.live-dot {
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-dot::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ── Progress steps (onboarding) ────────────────────────────── */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}
.step { display: flex; align-items: center; gap: 8px; }

.step-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--brown-light);
    background: var(--bg-card);
    transition: all .25s;
}
.step.active .step-circle {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-tint);
}
.step.done .step-circle {
    background: var(--green);
    border-color: var(--green-deep);
    color: #fff;
}

.step-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brown-light);
}
.step.active .step-text { color: var(--green); }
.step.done  .step-text  { color: var(--green-mid); }

.step-line {
    width: 32px; height: 1px;
    background: var(--border);
    margin: 0 6px;
}

/* ── Section headings (inside form) ────────────────────────── */
.section-head {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-head svg { width: 13px; height: 13px; fill: currentColor; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── Study-days preset buttons ──────────────────────────────── */
.days-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.day-btn {
    padding: 10px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 4px;
    color: var(--brown);
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    line-height: 1.1;
}
.day-btn small {
    display: block;
    font-size: 8px;
    letter-spacing: .5px;
    margin-top: 3px;
    font-weight: 400;
    color: var(--brown-light);
}
.day-btn:hover {
    border-color: var(--green);
    color: var(--green-deep);
    background: var(--green-tint);
}
.day-btn.active {
    border-color: var(--green);
    background: var(--green-tint);
    color: var(--green-deep);
    box-shadow: inset 0 0 0 1px var(--green);
    font-weight: 700;
}

.days-custom-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 6px;
}

/* Timeline info strip */
.timeline-info {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    background: var(--green-tint);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--brown);
    min-height: 38px;
    transition: all .2s;
}
.timeline-info svg { width: 14px; height: 14px; fill: var(--green-muted); flex-shrink: 0; }
.timeline-info span { color: var(--green-deep); font-weight: 600; }

/* ── Dashboard ──────────────────────────────────────────────── */
.dash-wrap {
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(45,90,39,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,90,39,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    display: flex;
    flex-direction: column;
}

/* ── App navbar (modern, light) ──────────────────────────────── */
.app-nav {
    background: #fdfaf2;
    border-bottom: 1px solid #e6dcc4;
    height: 64px;
    padding: 0 28px;
    /* 3-column grid: brand | exam centerpiece | actions.
       Outer columns share remaining space equally so the centerpiece
       stays geometrically centered regardless of brand or actions width. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(26,14,5,.04);
}
.nav-brand   { justify-self: start; }
.nav-actions { justify-self: end; }

.nav-brand {
    font-family: var(--ff-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--espresso);
    text-decoration: none;
    letter-spacing: .3px;
    transition: opacity .15s;
}
.nav-brand:hover { opacity: .75; }
.nav-brand span { color: var(--green); }

/* Center column: exam pill + coffee button, sit side by side, centered */
.nav-center {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: center;
}

/* Buy-me-a-coffee */
.nav-coffee {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: #f5efe1;             /* warm crème, matches exam pill */
    color: var(--espresso);
    border-radius: 7px;
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid #e6dcc4;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nav-coffee:hover {
    background: #fdfaf2;
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(184,125,20,.18);
}
.nav-coffee:active { transform: translateY(0); }
.nav-coffee-icon {
    width: 17px;
    height: 17px;
    fill: var(--gold);
    flex-shrink: 0;
}

/* ── Mark (bookmark) toggle button — shared study + dashboard ── */
.mark-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--brown-light);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
}
.mark-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.mark-btn:hover { background: #fbeaea; color: #c62828; border-color: #e3b6b6; }
.mark-btn.marked { background: #c62828; color: #fff; border-color: #c62828; }
.mark-btn.marked:hover { background: #a81f1f; border-color: #a81f1f; }
.mark-btn:disabled { opacity: .5; cursor: wait; }

/* Exam centerpiece */
.nav-exam {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 6px 12px;
    background: #f5efe1;
    border: 1px solid #e6dcc4;
    border-radius: 9px;
    /* No auto margin needed — grid centers this cell. */
}
.nav-exam-icon {
    width: 22px;
    height: 22px;
    fill: var(--green);
    flex-shrink: 0;
}
.nav-exam-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-exam-label {
    font-family: var(--ff-sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--brown-light);
}
.nav-exam-date {
    font-family: var(--ff-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--espresso);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.nav-days {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 6px 10px;
    background: var(--green);
    color: #fff;
    border-radius: 6px;
    font-family: var(--ff-sans);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.nav-days strong {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}
.nav-days small {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .85;
    margin-top: 3px;
}
.nav-days.warning { background: #b8841a; }
.nav-days.urgent { background: #c94428; position: relative; }
/* Pulse ring drawn on a pseudo-element. The box-shadow is STATIC; only
   transform + opacity animate, so it runs on the GPU compositor instead
   of forcing a CPU repaint every frame. */
.nav-days.urgent::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 3px rgba(201,68,40,.45);
    animation: pulse-urgent 1.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse-urgent {
    0%, 100% { opacity: 0; transform: scale(1);    }
    50%      { opacity: 1; transform: scale(1.18); }
}

/* Right-side actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-user-name {
    font-family: var(--ff-sans);
    font-size: 12.5px;
    color: var(--brown-light);
    font-weight: 500;
    padding-right: 4px;
}
.nav-user-name strong { color: var(--espresso); font-weight: 700; }

/* All nav links: ONE uniform style. No filled-vs-transparent
   contrast between buttons. The active page gets a subtle bottom
   underline so visual weight stays constant across pages. */
.nav-link {
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--espresso);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    /* Reserve the border-bottom indicator's space on every link so
       the active state doesn't shift adjacent links vertically. */
    box-shadow: inset 0 -2px 0 transparent;
    transition: background .14s, color .14s, box-shadow .14s;
}
.nav-link:hover {
    background: #f0eade;
}
.nav-link.active {
    box-shadow: inset 0 -2px 0 var(--green);
    color: var(--espresso);
}

/* Admin link — same shape, only a darker theme to indicate it leads
   to a privileged section. Active marker uses gold for contrast. */
.nav-link.nav-link-admin {
    background: #1a0e05;
    color: #f0eade;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 11.5px;
    font-weight: 800;
}
.nav-link.nav-link-admin:hover {
    background: #2c1d10;
    color: #fff;
}
.nav-link.nav-link-admin.active {
    box-shadow: inset 0 -2px 0 var(--gold);
}

/* Backward-compat for any straggler using .primary */
.nav-link.primary {
    box-shadow: inset 0 -2px 0 var(--green);
}

.dash-body {
    flex: 1;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    padding: 44px 24px;
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--green);
    border-radius: 5px;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-card); }

.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 8px;
}
.stat-value {
    font-family: var(--ff-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1;
}
.stat-unit {
    font-size: 11px;
    color: var(--brown-light);
    margin-top: 4px;
    letter-spacing: .5px;
}

/* ── Welcome banner ─────────────────────────────────────────── */
.welcome-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: 5px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.welcome-banner h1 {
    font-family: var(--ff-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--espresso);
    margin-bottom: 6px;
    letter-spacing: .5px;
}
.welcome-banner h1 span { color: var(--green-deep); }
.welcome-banner p {
    color: var(--brown);
    font-size: 13px;
    line-height: 1.7;
}

/* ── Coming-soon placeholder ────────────────────────────────── */
.construct-notice {
    text-align: center;
    padding: 64px 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.construct-notice h2 {
    font-family: var(--ff-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--green-deep);
    margin-bottom: 12px;
}
.construct-notice p {
    color: var(--brown);
    font-size: 13px;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
}
.construct-notice .module-id {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--brown-light);
    margin-top: 28px;
    text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
    .auth-card,
    .onboarding-card { padding: 32px 22px 28px; }
    /* Keep the seal on-screen on narrow viewports */
    .success-seal {
        width: 78px;
        height: 78px;
        top: -16px;
        right: -8px;
    }
    .seal-pct { font-size: 21px; }
    .days-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-title { font-size: 18px; }
    .app-nav {
        padding: 10px 14px;
        height: auto;
        /* Stack: brand row → centerpiece (exam + coffee) → actions row */
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand  actions"
            "center center";
        row-gap: 10px;
        column-gap: 10px;
    }
    .nav-brand   { grid-area: brand;   justify-self: start; }
    .nav-actions { grid-area: actions; justify-self: end; }
    .nav-center  { grid-area: center;  justify-self: center; flex-wrap: wrap; justify-content: center; }
    .nav-user-name { display: none; }
    .nav-link { padding: 7px 12px; font-size: 12.5px; }
}
