/* ══════════════════════════════════════════════════════════════
   BASE — shared across all pages
   ══════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none
}

html, body {
    height: 100%;
    overflow: hidden
}

body {
    background: #0a0a0a;
    color: #999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif
}

img, svg {
    -webkit-user-drag: none;
    user-drag: none
}

canvas#fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999
}

/* ── Header bar ─────────────────────────────────────────────── */

.tb {
    width: 100%;
    flex-shrink: 0;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10
}

.tb-left {
    display: flex;
    align-items: center;
    gap: .75rem
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.logo svg {
    width: 22px;
    height: 22px;
    opacity: .45;
    transition: opacity .2s
}

.logo:hover svg {
    opacity: .75
}

.bk {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: .25rem;
    transition: color .2s;
    text-decoration: none
}

.bk:hover {
    color: #ccc
}

.bk svg {
    width: 14px;
    height: 14px
}

/* ── Auth area ──────────────────────────────────────────────── */

.auth-area {
    display: flex;
    align-items: center;
    gap: .75rem
}

.auth-link {
    font-size: .78rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
    cursor: pointer
}

.auth-link:hover {
    color: #ccc
}

.auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s
}

.auth-icon:hover {
    color: #ccc;
    background: rgba(255,255,255,.06)
}

.auth-icon svg {
    width: 16px;
    height: 16px;
    pointer-events: none
}

.user-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: #777
}

.user-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    pointer-events: none
}

/* ── Toast ──────────────────────────────────────────────────── */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    color: #ccc;
    font-size: .78rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    z-index: 9998;
    transition: all .3s;
    opacity: 0;
    pointer-events: none
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1
}

/* ── Footer ─────────────────────────────────────────────────── */

.ft {
    flex-shrink: 0;
    padding: 1rem 2rem;
    text-align: right;
    font-size: .7rem;
    color: #282828
}

/* ── Scrollbar theming ──────────────────────────────────────── */

::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.08);
    border-radius: 3px
}

/* ── Responsive ─────────────────────────────────────────────── */

@media(max-width:520px) {
    .tb { padding: 1rem 1.25rem }
    .user-pill span { display: none }
}
