/* ===== STRANDSKOVEN DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Nature palette */
    --color-forest: #1a3a2a;
    --color-forest-light: #2d5016;
    --color-moss: #3d6b35;
    --color-sage: #6b8f5e;
    --color-leaf: #8ab563;
    --color-earth: #5c4a32;
    --color-bark: #3e2f1c;
    --color-sand: #d4c5a9;
    --color-cream: #f5f0e8;
    --color-white: #fefdfb;

    /* UI Colors */
    --color-bg: #f8f6f1;
    --color-surface: #ffffff;
    --color-surface-alt: #f0ece4;
    --color-border: #e0ddd5;
    --color-border-light: #ece9e1;
    --color-text: #2c3e2d;
    --color-text-muted: #5a6b5c;
    --color-text-dim: #8a9a8c;
    --color-accent: #2d5016;
    --color-accent-hover: #3d6b35;
    --color-accent-light: rgba(45, 80, 22, 0.08);
    --color-danger: #c0392b;
    --color-danger-light: rgba(192, 57, 43, 0.08);
    --color-warning: #d4a017;
    --color-success: #27ae60;

    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--color-forest); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

h1:focus { outline: none; }

/* ===== NAVIGATION ===== */
.nav-bar {
    background: var(--color-forest);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--color-leaf);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover { color: var(--color-leaf); }

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.12);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-logout {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-logout:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

/* Admin dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    background: rgba(255,255,255,0.18);
    color: white;
}

.nav-caret {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 200;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Camera icon button — visible only on mobile next to burger */
.nav-camera-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-camera-btn:hover {
    background: rgba(255,255,255,0.18);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-camera-btn { display: flex; }

    .nav-inner {
        justify-content: space-between;
    }

    .nav-link-camera { display: none !important; }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-forest);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.5rem 0;
        z-index: 99;
        overflow-y: auto;
    }

    .nav-menu.open { display: flex; }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        width: 100%;
        display: block;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 2px solid rgba(255,255,255,0.12);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .nav-dropdown { width: 100%; }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 0.9rem 1.5rem;
        border-radius: 0;
        background: rgba(255,255,255,0.05);
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1rem;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        background: rgba(0,0,0,0.15);
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: 0;
        padding: 0;
    }

    .nav-dropdown-menu.open { display: block; }

    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.8);
        padding: 0.8rem 1.5rem 0.8rem 2.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.08);
        color: white;
    }

    .nav-logout {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-backdrop { display: none; }
}

/* ===== LAYOUT ===== */
.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--color-accent-light);
    border-radius: var(--radius-sm);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-moss) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(45,80,22,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-forest-light) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(45,80,22,0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover { background: var(--color-border-light); }

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover { background: #a93226; }

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.btn-block { width: 100%; }

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-top: 0.3rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: 0.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-light);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--color-accent-light); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-green { background: rgba(39,174,96,0.12); color: #1e8449; }
.badge-yellow { background: rgba(212,160,23,0.12); color: #9a7d0a; }
.badge-red { background: rgba(192,57,43,0.12); color: #922b21; }
.badge-blue { background: rgba(41,128,185,0.12); color: #1a5276; }
.badge-gray { background: rgba(127,140,141,0.12); color: #616a6b; }

/* ===== AVATAR ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-cream);
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.7rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.4rem; }
.avatar-2xl { width: 110px; height: 110px; font-size: 1.8rem; }

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success { background: rgba(39,174,96,0.1); color: #1e8449; border: 1px solid rgba(39,174,96,0.2); }
.alert-error { background: rgba(192,57,43,0.1); color: #922b21; border: 1px solid rgba(192,57,43,0.2); }
.alert-warning { background: rgba(212,160,23,0.1); color: #9a7d0a; border: 1px solid rgba(212,160,23,0.2); }
.alert-info { background: rgba(41,128,185,0.1); color: #1a5276; border: 1px solid rgba(41,128,185,0.2); }

/* ===== MODAL / DIALOG ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { margin: 0; }

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover { color: var(--color-text); }

/* ===== IMAGE UPLOAD ===== */
.upload-zone {
    display: block;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-surface-alt);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.upload-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-zone-text { color: var(--color-text-muted); font-size: 0.9rem; }

/* Compact upload button (profile images etc.) */
.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    color: var(--color-text);
}

.upload-btn-icon { font-size: 1.1rem; }

/* Clickable avatar overlay */
.avatar-upload {
    position: relative;
    cursor: pointer;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.3rem;
    color: #fff;
}

.avatar-upload:hover .avatar-upload-overlay {
    opacity: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.delete-btn {
    position: absolute;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    background: rgba(200,0,0,0.8);
}

.image-grid-item .delete-btn {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    opacity: 0;
}

.image-grid-item:hover .delete-btn { opacity: 1; }

/* ===== BOOKING GRID ===== */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.spot-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
}

.spot-card.available { border-color: var(--color-border); }
.spot-card.available:hover { border-color: var(--color-accent); box-shadow: var(--shadow); }
.spot-card.booked { border-color: var(--color-border-light); opacity: 0.7; cursor: default; }
.spot-card.my-booking { border-color: var(--color-accent); background: var(--color-accent-light); }

.spot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.spot-card-name { font-weight: 700; font-size: 1.05rem; }
.spot-card-status { font-size: 0.8rem; }

/* ===== DATE ROWS (booking spot dialog) ===== */
.date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.date-row:last-child { margin-bottom: 0; }

.date-row.date-available { border-left: 4px solid var(--color-accent); }
.date-row.date-mine { border-left: 4px solid var(--color-accent); background: var(--color-accent-light); }
.date-row.date-booked { border-left: 4px solid #ef4444; background: #fef2f2; }

.date-row-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 120px;
}

.date-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== BOOKING MAP ===== */
#booking-map { border: 1px solid var(--color-border); }

/* Leaflet z-index fix — keep below navbar/modals */
.leaflet-pane { z-index: 0 !important; }
.leaflet-top, .leaflet-bottom { z-index: 1 !important; }

/* Area polygon labels */
.area-label span {
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1b4332;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== EVENT CARDS ===== */
.event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.event-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--color-surface-alt);
    transition: transform 0.3s;
}

.event-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.event-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-text-dim);
}

.event-card:hover .event-card-image {
    transform: scale(1.03);
}

.event-card-body { padding: 1.25rem; overflow: hidden; }

.event-card-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.event-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 0.35rem;
}

.event-card-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== FOOD DECLINE ===== */
.food-section {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.food-section-active {
    background: rgba(39,174,96,0.1);
    border: 1px solid rgba(39,174,96,0.25);
    color: #1e8449;
}

.food-section-declined {
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.25);
    color: #922b21;
}

.food-status {
    pointer-events: none;
}

.food-decline-btn {
    background: transparent;
    color: #922b21;
    border: 1px solid rgba(192,57,43,0.25);
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.food-decline-btn:hover {
    background: rgba(192,57,43,0.12);
    border-color: rgba(192,57,43,0.4);
}

.food-undo {
    background: transparent;
    color: #922b21;
    border: none;
    padding: 0.1rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.food-undo:hover {
    opacity: 1;
}

.food-decline-row {
    display: inline-flex;
    align-items: center;
    margin: 0.4rem auto 0;
}

.food-decline-list {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* ===== EVENT DETAIL PAGE ===== */
.event-detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.event-detail-hero {
    position: relative;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
}

.event-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.event-detail-hero:hover img {
    transform: scale(1.02);
}

.event-detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.15));
    pointer-events: none;
}

.event-detail-body {
    padding: 1.75rem;
}

.event-detail-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-accent-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.event-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-forest);
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.event-detail-meta-icon {
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.event-detail-description {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--color-text);
}

.event-detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-forest);
}

/* Game bag compact grid */
.game-bag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.game-bag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

.game-bag-icon { font-size: 1.3rem; }
.game-bag-count { font-size: 1.2rem; font-weight: 800; color: var(--color-forest); }
.game-bag-name { font-size: 0.85rem; color: var(--color-text-muted); }

@media (max-width: 640px) {
    .event-detail-title { font-size: 1.4rem; }
    .event-detail-body { padding: 1.25rem; }
    .event-detail-hero { max-height: 220px; }
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-forest) 0%, #0f2a1a 100%);
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    flex-shrink: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.code-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 700;
    font-family: var(--font);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #1a3a2a 0%, #0f2a1a 40%, #0d1f14 100%);
    color: white;
    padding: 3rem 1.5rem 3.5rem;
    margin: -2rem -1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
}

.hero.hero-compact {
    padding: 2rem 1.5rem 2.25rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at 20% 80%, rgba(61,107,53,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 500px 250px at 80% 20%, rgba(138,181,99,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* hero bottom shape handled by border-radius */

.hero h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    position: relative;
    animation: heroFadeUp 0.6s ease-out;
}

.hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    animation: heroFadeUp 0.6s ease-out 0.15s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    position: relative;
    animation: heroFadeUp 0.6s ease-out 0.25s both;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-hero:hover {
    background: rgba(255,255,255,0.22);
    color: white;
    transform: translateY(-1px);
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 1.25rem;
    position: relative;
    animation: heroFadeUp 0.6s ease-out 0.3s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .hero { padding: 1.5rem 1.25rem 1.75rem; }
    .hero.hero-compact { padding: 1.25rem 1rem 1.5rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }
    .btn-hero { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
}

/* ===== UTILITIES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.85rem; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== SECTION DIVIDER ===== */
.section { margin-bottom: 2.5rem; }
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.4em;
    background: linear-gradient(180deg, var(--color-leaf), var(--color-moss));
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.7; }

/* ===== LOADING ===== */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BLAZOR DEFAULTS ===== */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--color-success); }
.invalid { outline: 1px solid var(--color-danger); }
.validation-message { color: var(--color-danger); font-size: 0.8rem; }

.blazor-error-boundary {
    background: var(--color-danger);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius-sm);
}

.blazor-error-boundary::after { content: "Der opstod en fejl."; }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.darker-border-checkbox.form-check-input { border-color: #929292; }

/* ===== RECONNECT MODAL ===== */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 25, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal.show {
    display: flex;
    animation: reconnectFadeIn 0.3s ease-out;
}

.reconnect-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 340px;
    width: 90%;
    animation: reconnectSlideUp 0.35s ease-out;
}

.reconnect-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-moss);
    border-radius: 50%;
    animation: reconnectSpin 0.8s linear infinite;
}

.reconnect-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 0.4rem;
}

.reconnect-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.reconnect-retry {
    display: none;
}

.reconnect-reload-text {
    display: none;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

#components-reconnect-modal.rejected .reconnect-reload-text,
#components-reconnect-modal.failed .reconnect-reload-text {
    display: block;
}

#components-reconnect-modal.rejected .reconnect-retry,
#components-reconnect-modal.failed .reconnect-retry {
    display: inline-flex;
}

#components-reconnect-modal.rejected .reconnect-spinner,
#components-reconnect-modal.failed .reconnect-spinner {
    border-top-color: var(--color-danger);
    animation-play-state: paused;
    opacity: 0.4;
}

#components-reconnect-modal.rejected .reconnect-title,
#components-reconnect-modal.failed .reconnect-title {
    color: var(--color-danger);
}

@keyframes reconnectSpin {
    to { transform: rotate(360deg); }
}

@keyframes reconnectFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reconnectSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CAMERA STATUS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-forest);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.camera-card {
    border-left: 4px solid var(--color-leaf);
}

.camera-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.camera-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.camera-meta-icon {
    font-size: 1rem;
}

.camera-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Day list */
.camera-day-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.camera-day-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.camera-day-btn:hover {
    background: var(--color-border-light);
    border-color: var(--color-leaf);
    transform: translateX(2px);
}

.camera-day-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.camera-day-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.camera-day-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.camera-day-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Fullscreen day modal */
.camera-fullmodal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 25, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: reconnectFadeIn 0.2s ease-out;
}

.camera-fullmodal {
    background: var(--color-surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 1400px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    animation: reconnectSlideUp 0.25s ease-out;
}

.camera-fullmodal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.camera-fullmodal-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.camera-fullmodal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.camera-fullmodal-close:hover {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.camera-fullmodal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* Video grid inside modal */
.camera-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.camera-video-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.camera-video-card:hover {
    border-color: var(--color-leaf);
    box-shadow: var(--shadow);
}

.camera-video-card.playing {
    border-color: var(--color-moss);
    box-shadow: 0 0 0 2px rgba(61,107,53,0.2);
}

.camera-video-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
}

.camera-video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.camera-video-card:hover .camera-video-play {
    opacity: 1;
}

.camera-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
}

.camera-video-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.text-danger { color: var(--color-danger); }

/* Admin visibility toggle */
.btn-visibility {
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.btn-visibility-hide {
    background: transparent;
    opacity: 0.4;
}

.btn-visibility-hide:hover {
    background: var(--color-danger-light);
    opacity: 1;
}

.btn-visibility-show {
    background: var(--color-accent-light);
}

.btn-visibility-show:hover {
    background: rgba(45,80,22,0.15);
}

.hidden-event {
    opacity: 0.5;
}

.hidden-event:hover {
    opacity: 0.8;
}

.camera-hidden-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(192,57,43,0.85);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ===== PUBLIC CAMERA FEED ===== */

/* Week selector */
.week-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.week-selector-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.week-selector-arrow:hover:not(:disabled) {
    background: var(--color-accent-light);
    border-color: var(--color-leaf);
    color: var(--color-accent);
}

.week-selector-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.week-selector-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 180px;
    text-align: center;
}

.week-selector-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.week-selector-week {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-forest);
    line-height: 1.2;
}

.week-selector-range {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .week-selector {
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    .week-selector-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .week-selector-label {
        min-width: 140px;
    }

    .week-selector-week {
        font-size: 1.1rem;
    }
}

.cam-feed-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.cam-device-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cam-device-header .section-title {
    margin-bottom: 0;
}

.cam-device-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.cam-device-stat strong {
    color: var(--color-forest);
    font-weight: 700;
}

.cam-device-stat-sep {
    opacity: 0.4;
}

.cam-feed-day {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.cam-feed-day:hover {
    transform: translateY(-3px);
}

.cam-feed-day-preview {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface-alt);
    border: 2px solid var(--color-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cam-feed-day:hover .cam-feed-day-preview {
    border-color: var(--color-leaf);
    box-shadow: var(--shadow);
}

.cam-feed-day-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cam-feed-day-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: var(--color-text-dim);
}

.cam-feed-day-count {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.cam-feed-day-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
}

.cam-feed-day-weekday {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.cam-feed-day-empty {
    cursor: default;
    opacity: 0.55;
}

.cam-feed-day-empty:hover {
    transform: none;
}

.cam-feed-day-empty .cam-feed-day-preview {
    background: repeating-linear-gradient(
        45deg,
        var(--color-surface-alt),
        var(--color-surface-alt) 10px,
        var(--color-border-light) 10px,
        var(--color-border-light) 20px
    );
}

.cam-feed-day-empty .cam-feed-day-placeholder {
    font-size: 1.5rem;
    color: var(--color-text-dim);
    opacity: 0.6;
}

.cam-feed-day-empty .cam-feed-day-weekday {
    color: var(--color-text-dim);
}

.cam-feed-day-preview.today {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-light);
}

@media (max-width: 768px) {
    .cam-feed-days {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }

    .cam-feed-day-empty {
        display: none;
    }

    .cam-feed-day-label {
        font-size: 0.75rem;
    }

    .cam-feed-day-weekday {
        font-size: 0.65rem;
    }

    .camera-fullmodal {
        height: 100vh;
        border-radius: 0;
    }

    .camera-fullmodal-backdrop {
        padding: 0;
    }

    .camera-video-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .camera-fullmodal-header {
        padding: 1rem;
    }

    .camera-fullmodal-header h2 {
        font-size: 1rem;
    }

    .camera-fullmodal-body {
        padding: 0.75rem;
    }
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--color-forest);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.8rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-leaf), var(--color-moss), var(--color-leaf));
}

.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-leaf);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.25rem;
}

/* ===== MEMBER CARDS ===== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.member-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.member-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.member-card-map {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: var(--color-surface-alt);
}

.member-card-tiles {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 256px);
}

.member-card-tiles img {
    width: 256px;
    height: 256px;
    display: block;
    opacity: 0.85;
    filter: saturate(0.8);
}

.member-card-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-moss) 100%);
    font-size: 2rem;
    opacity: 0.6;
}

.member-card-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
    pointer-events: none;
    z-index: 1;
}

.member-card-body {
    padding: 1.25rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.member-card-avatar {
    margin-top: -70px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.member-card-avatar .avatar {
    border: 4px solid var(--color-surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.member-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.member-card-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.member-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.4;
}

a.member-card-detail:hover {
    color: var(--color-accent);
}

.member-card-detail span:first-child {
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
}

@media (max-width: 640px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Statistics ── */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stats-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stats-card-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}