/* =================================================================
   style.css — Core design system for SnapShare
   ─────────────────────────────────────────────────────────────────
   Loaded by every page. Provides:
     • CSS design tokens (light/dark themes)
     • Navbar + mobile hamburger menu
     • Responsive photo grid with hover overlays
     • Auth-guard modal (guest intercept)
     • Lightbox modal
     • Toast notifications
     • Loading spinner + skeleton shimmer
     • Notification dropdown
     • Button system with micro-animations
     • Utility classes
   ================================================================= */

/* ── Google Fonts ───────────────────────────────────────────────── */
/* @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap'); */

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
    /* Brand palette — "Golden Hour" */
    --accent-1: #ff6b5e;
    --accent-2: #ffb347;
    --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    --accent-glow: 0 0 24px rgba(255, 107, 94, 0.35);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.28);

    /* Transitions */
    --transition: 180ms ease;
    --transition-md: 280ms cubic-bezier(.4, 0, .2, 1);

    /* Light theme (default) */
    --bg: #faf8f5;
    --surface: #ffffff;
    --surface-alt: #f1eee8;
    --surface-2: #e8e3dc;
    --text: #1b1a18;
    --text-muted: #6f6a63;
    --border: #e7e2d9;
    --navbar-bg: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] {
    --bg: #0d0f13;
    --surface: #141720;
    --surface-alt: #1c202b;
    --surface-2: #242836;
    --text: #f0eeeb;
    --text-muted: #8b90a0;
    --border: #262b38;
    --navbar-bg: rgba(20, 23, 32, 0.92);
    --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.60);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-muted {
    color: var(--text-muted);
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background var(--transition);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    font-size: 21px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: .8;
}

.logo .aperture {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: var(--accent-glow);
}

/* Search bar */
.nav-search {
    flex: 1;
    max-width: 380px;
}

.nav-search input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.15);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    position: relative;
    padding: 7px;
    border-radius: 50%;
    transition: background var(--transition), transform 120ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-icon-btn:hover {
    background: var(--surface-alt);
}

.nav-icon-btn:active {
    transform: scale(.9);
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--border);
    transition: border-color var(--transition);
}

.nav-avatar:hover {
    border-color: var(--accent-1);
}

/* Notification badge dot */
.badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    border: 2px solid var(--surface);
    display: none;
}

.badge-dot.show {
    display: block;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition-md), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a,
.mobile-nav button {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    text-align: left;
    transition: background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav button:hover {
    background: var(--surface-alt);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-search {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .theme-toggle {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn:active {
    transform: scale(.97);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.btn-muted {
    background: var(--surface-alt);
    color: var(--text);
}

.btn-muted:hover {
    background: var(--surface-2);
}

.btn-danger {
    background: #e53935;
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.35);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* ── Photo grid ─────────────────────────────────────────────────── */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 28px 0 70px;
}

@media (max-width: 1100px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 440px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo card */
.photo-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--transition-md), box-shadow var(--transition-md);
    animation: fadeUp .4s ease both;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.photo-card:hover .card-overlay {
    opacity: 1;
}

/* Card image */
.photo-card>img,
.photo-card .card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--surface-alt);
    display: block;
    transition: transform var(--transition-md);
}

.photo-card:hover>img,
.photo-card:hover .card-img {
    transform: scale(1.04);
}

/* Hover overlay with action buttons */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .18) 55%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    pointer-events: none;
}

.photo-card:hover .card-overlay {
    pointer-events: all;
}

.card-overlay-actions {
    display: flex;
    gap: 8px;
}

.card-overlay-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: background var(--transition);
}

.card-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Card meta row */
.photo-card .meta {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    gap: 6px;
}

.photo-card .uploader {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    min-width: 0;
}

.photo-card .uploader img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.photo-card .uploader span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-card .stats {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 12px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 60px;
}

/* ── Auth Guard Modal (guest intercept) ─────────────────────────── */
.auth-guard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 20px;
    animation: fadeIn .2s ease;
}

.auth-guard-overlay.open {
    display: flex;
}

.auth-guard-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-modal);
    text-align: center;
    position: relative;
    animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1);
    border: 1px solid var(--border);
}

.auth-guard-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: var(--accent-glow);
}

.auth-guard-box h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.auth-guard-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-guard-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-guard-buttons .btn {
    flex: 1;
    min-width: 110px;
}

.auth-guard-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background var(--transition);
    line-height: 1;
}

.auth-guard-close:hover {
    background: var(--surface-alt);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.88) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Lightbox Modal ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 800;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 980px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    animation: popIn .22s cubic-bezier(.34, 1.2, .64, 1);
}

@media (max-width: 760px) {
    .modal-box {
        flex-direction: column;
        max-height: 96vh;
        overflow-y: auto;
    }
}

.modal-image {
    flex: 1.4;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
}

.modal-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 360px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.modal-header strong {
    font-size: 14px;
}

.modal-header a {
    color: inherit;
}

.modal-header a:hover {
    text-decoration: underline;
}

.modal-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: background var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.modal-comments {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.comment-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.comment-row .text {
    background: var(--surface-alt);
    padding: 8px 12px;
    border-radius: 12px;
    border-top-left-radius: 4px;
    line-height: 1.4;
}

.comment-row .delete-link {
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    transition: color var(--transition);
}

.comment-row .delete-link:hover {
    color: #e53935;
}

.modal-actions {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.like-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: transform .15s cubic-bezier(.34, 1.56, .64, 1);
    color: var(--text);
    line-height: 1;
    padding: 4px;
}

.like-btn.liked {
    color: var(--accent-1);
}

.like-btn:active {
    transform: scale(1.4);
}

.like-btn:hover {
    transform: scale(1.15);
}

.save-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease;
    color: var(--text-muted);
    line-height: 1;
    padding: 4px;
}

.save-btn.saved {
    color: var(--accent-2);
}

.save-btn:hover {
    transform: scale(1.15);
    color: var(--accent-2);
}

.modal-comment-form {
    display: flex;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    gap: 8px;
    align-items: center;
}

.modal-comment-form input {
    flex: 1;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.modal-comment-form input:focus {
    outline: none;
    border-color: var(--accent-1);
}

/* ── Toast Notifications ────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    color: var(--text);
    border-left: 4px solid var(--accent-1);
    padding: 13px 18px 13px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    font-size: 14px;
    font-weight: 500;
    min-width: 240px;
    max-width: 340px;
    animation: slideIn .25s ease both;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-left-color: #22c55e;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Spinner + Skeleton ─────────────────────────────────────────── */
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--surface-alt) 25%,
            var(--border) 50%,
            var(--surface-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* ── Notification Dropdown ──────────────────────────────────────── */
.notif-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    width: 330px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 300;
}

.notif-dropdown.open {
    display: block;
}

.notif-dropdown-header {
    padding: 12px 16px 10px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 11px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    align-items: flex-start;
    transition: background var(--transition);
}

.notif-item:hover {
    background: var(--surface-alt);
}

.notif-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-item.unread {
    background: var(--surface-alt);
}

.notif-item.unread::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Empty / utility states ─────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .6;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Form helpers ───────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(255, 107, 94, .14);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    border: 1px solid rgba(239, 68, 68, .2);
}

.form-error.show {
    display: block;
}

/* ── Divider ────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* ── Site footer ────────────────────────────────────────────────── */
footer.site-footer {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

footer.site-footer a {
    color: var(--text-muted);
    transition: color var(--transition);
}

footer.site-footer a:hover {
    color: var(--accent-1);
}

/* ── Responsive utilities ───────────────────────────────────────── */
@media (max-width: 480px) {
    .btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .auth-guard-box {
        padding: 28px 20px 24px;
    }

    .modal-side {
        min-width: unset;
        max-width: 100%;
    }

    .toast-container {
        right: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: unset;
        max-width: calc(100vw - 24px);
    }
}