/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
    --mp-bg:          #0f0f14;
    --mp-surface:     #17171f;
    --mp-surface-2:   #1e1e28;
    --mp-border:      rgba(255,255,255,0.09);
    --mp-border-soft: rgba(255,255,255,0.05);
    --mp-text:        #eeeef4;
    --mp-text-muted:  #8888a0;
    --mp-text-dim:    #55556a;
    --mp-yes:         #4ade80;
    --mp-yes-dim:     rgba(74,222,128,0.14);
    --mp-no:          #f87171;
    --mp-no-dim:      rgba(248,113,113,0.14);
    --mp-gold:        #f5c518;
    --mp-accent:      #F2A618;
    --mp-accent-dim:  rgba(242,166,24,0.14);
    --mp-radius:      0.625rem;
    --mp-max-w:       1440px;
}

/* ── Base ──────────────────────────────────────────────────────────── */
body { background: var(--mp-bg); color: var(--mp-text); min-height: 100vh; }

/* ── Header ─────────────────────────────────────────────────────────── */
#app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(15,15,20,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--mp-max-w);
    padding: 0 2rem;
}
#logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--mp-text);
}
.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--mp-accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 28px -6px var(--mp-accent);
    color: #0f0f14;
}
.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.08em;
    line-height: 1;
}
.logo-text .logo-accent { color: var(--mp-accent); }
.hdr-btn {
    background: none;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--mp-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    font-size: 1rem;
}
.hdr-btn:hover { background: var(--mp-surface-2); color: var(--mp-text); }
.hdr-btn.icon-only { border: none; padding: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */
#app-footer {
    border-top: 1px solid var(--mp-border-soft);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--mp-text-dim);
}
#app-footer a { color: var(--mp-text-muted); text-decoration: none; }
#app-footer a:hover { color: var(--mp-text); }

/* ── Settings offcanvas ──────────────────────────────────────────────── */
.offcanvas         { background: var(--mp-surface) !important; border-left: 1px solid var(--mp-border) !important; }
.offcanvas-label   { font-size: 0.72rem; color: var(--mp-text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.form-select, .form-check-input { background-color: var(--mp-surface-2) !important; border-color: var(--mp-border) !important; color: var(--mp-text) !important; }
.form-check-input:checked { background-color: var(--mp-accent) !important; border-color: var(--mp-accent) !important; }
