/* ── Brand ─────────────────────────────────────────────────── */
a.brand {
    text-decoration: none;
    color: inherit;
}

/* ── Nav helpers ───────────────────────────────────────────── */
.nav-form {
    margin: 0;
    display: inline;
}

.nav-form button {
    margin: 0;
    padding: 0.3rem 0.8rem;
}

.nav-user {
    font-weight: 600;
}

/* ── Centered card layout (login / register / setup) ───────── */
.centered-card {
    max-width: 460px;
    margin: 3rem auto;
}

/* ── Coffee action buttons ─────────────────────────────────── */
.coffee-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.coffee-btn {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    min-width: 200px;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coffee-btn:active {
    transform: scale(0.97);
}

/* ── Messages ──────────────────────────────────────────────── */
.msg {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    border-left: 4px solid currentColor;
}

.msg.error {
    color: #c0392b;
    background: #fdecea;
}

.msg.success {
    color: #1a7a3e;
    background: #e8f5e9;
}

.muted {
    color: var(--pico-muted-color, #6c757d);
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.approved {
    background: #d4edda;
    color: #155724;
}

.badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* ── Admin table actions ───────────────────────────────────── */
.action-cell {
    white-space: nowrap;
}

.small-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    margin: 0 0.2rem;
}

/* ── Leaderboard highlight ─────────────────────────────────── */
tr.current-user td {
    font-weight: 600;
    background: rgba(var(--pico-primary-background, 0, 94, 184), 0.05);
}

/* ── HTMX loading indicator ────────────────────────────────── */
.htmx-indicator {
    opacity: 0;
    transition: opacity 0.2s;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}
