/* ============================================================
   HOUSE OF NOVA — Global Stylesheet v2
   Full black background, white text, editorial fashion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,800;0,900;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --black:   #000000;
    --white:   #ffffff;
    --grey:    #888888;
    --lightgrey: #333333;
    --border:  #2a2a2a;
    --mid:     #aaaaaa;
    --surface: #111111;
    --display: 'Playfair Display', Georgia, serif;
    --body:    'Poppins', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; }

p { line-height: 1.7; color: var(--mid); }
a { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--black);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

.nav__links { display: flex; gap: 2.5rem; align-items: center; }

.nav__link {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color 0.2s;
}

.nav__link:hover, .nav__link.active { color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--white);
    transition: all 0.2s ease;
    text-align: center;
    background: transparent;
    color: var(--white);
}

.btn--black { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--black:hover { background: transparent; color: var(--white); }

.btn--white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--black); }

.btn--full { width: 100%; display: block; }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.65rem; }
.btn--danger { border-color: #c00; color: #c00; background: transparent; }
.btn--danger:hover { background: #c00; color: var(--white); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }

label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

input:focus, select:focus, textarea:focus { border-color: var(--white); }
input::placeholder, textarea::placeholder { color: #555; }

select option { background: var(--surface); color: var(--white); }

textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-hint { font-size: 0.75rem; color: var(--grey); margin-top: 0.4rem; }

input[type="file"] {
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--grey);
    padding: 1rem;
    cursor: pointer;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--white);
    background: var(--surface);
    color: var(--white);
}

.alert--error { border-left-color: #c00; background: #1a0000; color: #ff6666; }
.alert--success { border-left-color: #0f0; background: #001a00; color: #66ff66; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border);
    background: var(--surface);
}

.card__img {
    width: 100%; aspect-ratio: 3/4;
    object-fit: cover; display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
}
.card:hover .card__img { filter: grayscale(0%); }

.card__body { padding: 1.5rem; }

.card__label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    display: block;
    margin-bottom: 0.4rem;
}

.card__name {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--white);
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
    padding: 9rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.page-header__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1rem;
    display: block;
}

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--grey { background: var(--surface); }

.section__header { margin-bottom: 3rem; }
.section__label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--grey);
    display: block;
    margin-bottom: 0.75rem;
}

/* ── Grid ────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.grid-3 > * { background: var(--surface); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.grid-4 > * { background: var(--surface); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.badge--available { color: #0f0; }
.badge--booked    { color: var(--grey); }
.badge--pending   { color: #ffaa00; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 6rem;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.7rem; color: var(--grey); letter-spacing: 0.1em; }

/* ── Dashboard layout ────────────────────────────────────── */
.dashboard { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
    background: #0a0a0a;
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.sidebar__logo {
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    color: var(--white);
}

.sidebar__role {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #555;
    margin-top: 0.3rem;
    font-family: var(--body);
}

.sidebar__nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    font-family: var(--body);
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
    color: var(--white);
    border-left-color: var(--white);
    background: rgba(255,255,255,0.04);
}

.main-content {
    padding: 3rem;
    background: #0d0d0d;
    overflow-y: auto;
}

.main-content__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-content__title {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
}

.main-content__subtitle { font-size: 0.8rem; color: var(--grey); margin-top: 0.25rem; }

/* ── Stats cards ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    margin-bottom: 2.5rem;
}

.stat-card { background: var(--surface); padding: 2rem; }

.stat-card__value {
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-card__label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
    border-bottom: 1px solid var(--border);
    background: #0a0a0a;
    font-family: var(--body);
}

tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--white);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ── Shoot Timer ─────────────────────────────────────────── */
.timer-display {
    font-family: var(--display);
    font-size: clamp(2.2rem, 12vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-align: center;
    padding: clamp(1rem, 4vw, 3rem);
    border: 1px solid var(--border);
    background: var(--surface);
    margin: 2rem 0;
    color: var(--white);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.timer-extra {
    text-align: center;
    font-size: 0.85rem;
    color: #f44;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Checkbox group ──────────────────────────────────────── */
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--surface);
}

.checkbox-item:hover { border-color: var(--white); }
.checkbox-item input[type="checkbox"] { width: auto; accent-color: var(--white); }
.checkbox-item span { font-size: 0.8rem; font-weight: 400; color: var(--white); }

/* ── Radio group ─────────────────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--surface);
}

.radio-item:hover { border-color: var(--white); }
.radio-item input[type="radio"] { width: auto; accent-color: var(--white); }
.radio-item span { font-size: 0.8rem; color: var(--white); }

/* Radio grid */
.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

/* ── Selected state: mobile only ─────────────────────────── */
/* On mobile the native input dot is tiny and hard to see.    */
/* Highlight the whole label when its input is checked.       */
@media (max-width: 768px) {
    .radio-item:has(input[type="radio"]:checked) {
        background: #fff;
        border-color: #fff;
    }
    .radio-item:has(input[type="radio"]:checked) span {
        color: #000;
        font-weight: 600;
    }
    .radio-item:has(input[type="radio"]:checked) input[type="radio"] {
        accent-color: #000;
    }

    .checkbox-item:has(input[type="checkbox"]:checked) {
        background: #fff;
        border-color: #fff;
    }
    .checkbox-item:has(input[type="checkbox"]:checked) span {
        color: #000;
        font-weight: 600;
    }
    .checkbox-item:has(input[type="checkbox"]:checked) input[type="checkbox"] {
        accent-color: #000;
    }
}

/* ── Portfolio grid ──────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.portfolio-item { position: relative; aspect-ratio: 1; overflow: hidden; }
.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-item__delete {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.85);
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    text-decoration: none;
    font-family: var(--body);
}
.portfolio-item:hover .portfolio-item__delete { opacity: 1; }

/* ── Inactive model ──────────────────────────────────────── */
.model-card--inactive { opacity: 0.3; pointer-events: none; }
.model-card--inactive .card__img { filter: grayscale(100%); }

/* ── Availability calendar ───────────────────────────────── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.cal-day {
    background: var(--surface);
    padding: 0.75rem 0.5rem;
    min-height: 60px;
    cursor: pointer;
    user-select: none;
    position: relative;
    text-align: center;
    font-size: 0.85rem;
    color: var(--white);
    transition: background 0.15s;
}

.cal-day:hover:not(.cal-day--past):not(.cal-day--booked) { background: var(--lightgrey); }
.cal-day--header {
    background: var(--black);
    color: var(--grey);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: auto;
    cursor: default;
    padding: 0.75rem 0.5rem;
}
.cal-day--past { color: #333; cursor: not-allowed; }
.cal-day--available { background: #001a00 !important; color: #0f0 !important; font-weight: 500; }
.cal-day--available::after {
    content: '';
    width: 6px; height: 6px;
    background: #0f0;
    border-radius: 50%;
    position: absolute;
    bottom: 6px; left: 50%; transform: translateX(-50%);
}
.cal-day--booked { background: #0a0a0a !important; color: #333 !important; cursor: not-allowed; }
.cal-day--booked::after {
    content: 'Booked';
    font-size: 0.5rem;
    color: #444;
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    text-align: center;
}
.cal-day--empty { cursor: default; }

/* ── Location tag on model cards ─────────────────────────── */
.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--grey);
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}

.location-tag::before {
    content: '◎';
    font-size: 0.7rem;
}

/* ── Model booking tables: stack as cards on mobile ──────── */
@media (max-width: 768px) {
    .model-table-wrap {
        overflow: hidden;
    }

    .model-table-wrap table,
    .model-table-wrap thead,
    .model-table-wrap tbody,
    .model-table-wrap th,
    .model-table-wrap td,
    .model-table-wrap tr { display: block; width: 100%; box-sizing: border-box; }

    .model-table-wrap thead { display: none; }

    .model-table-wrap tbody tr {
        border: 1px solid var(--border);
        margin-bottom: 0.75rem;
        background: #0d0d0d;
        padding: 0.25rem 0;
        width: 100%;
    }

    .model-table-wrap tbody tr:last-child { margin-bottom: 0; }

    .model-table-wrap tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.55rem 1rem;
        border-bottom: 1px solid #1a1a1a;
        font-size: 0.82rem;
        text-align: right;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .model-table-wrap tbody td:last-child { border-bottom: none; }

    .model-table-wrap tbody td[data-label=""] { justify-content: flex-end; }

    .model-table-wrap tbody td::before {
        content: attr(data-label);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--grey);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
        white-space: nowrap;
    }

    .model-table-wrap tbody td[data-label=""]::before { display: none; }

    /* Clamp cell text so it never bleeds out */
    .model-table-wrap tbody td > span,
    .model-table-wrap tbody td > a,
    .model-table-wrap tbody td > strong {
        max-width: 60%;
        word-break: break-word;
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { height: auto; position: static; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .radio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav__links { gap: 1rem; }
    .main-content { padding: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    /* Stack the dashboard quick-link cards (Portfolio / Availability) */
    .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL SWEEP — Uniform colors, mobile polish
   ============================================================ */

/* ── Uniform admin badge/status colors — only white & dark ── */
.badge--available { color: #fff !important; border-color: #fff !important; }
.badge--booked    { color: #555 !important; border-color: #555 !important; }
.badge--pending   { color: #fff !important; border-color: #fff !important; background: #333 !important; }

/* Admin stat cards — no random colors */
.stat-card__value { color: #fff !important; }

/* Admin table — uniform link/button colors */
.table-wrap .btn--black { background: #fff; color: #000; border-color: #fff; }
.table-wrap .btn--white { background: transparent; color: #fff; border-color: #fff; }

/* ── Portfolio — file input never overflows ──────────────── */
input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block;
    background: #111;
    color: #888;
    border: 1px dashed #444;
    padding: 0.85rem 0.75rem;
    font-family: var(--body);
    font-size: 0.82rem;
}
@media (max-width: 768px) {
    input[type="file"] { font-size: 0.75rem; padding: 0.7rem; }
    /* Upload area in portfolio */
    #uploadForm { overflow: hidden; }
    #previewGrid { grid-template-columns: repeat(2,1fr) !important; gap: 0.5rem !important; }
}

/* ── Admin dashboard — uniform icon/color scheme ─────────── */
/* Remove any inline colored icons — make all sidebar icons white */
.sidebar__nav a { color: #666 !important; }
.sidebar__nav a:hover,
.sidebar__nav a.active { color: #fff !important; border-left-color: #fff !important; background: rgba(255,255,255,0.04) !important; }
/* Logout stays red */
.sidebar__nav a[href*="logout"] { color: #c00 !important; }
.sidebar__nav a[href*="logout"]:hover { color: #f44 !important; background: rgba(200,0,0,0.08) !important; border-left-color: #c00 !important; }

/* ── Alert colours — uniform ─────────────────────────────── */
.alert--success { background: #001500 !important; color: #8f8 !important; border-left-color: #0f0 !important; }
.alert--error   { background: #1a0000 !important; color: #f88 !important; border-left-color: #f44 !important; }

/* ── Mobile: profile accordion ───────────────────────────── */
.profile-section__body.open { display: block; }
@media (min-width: 769px) {
    /* On desktop: show all sections open, no accordion */
    .profile-section__header { cursor: default; }
    .profile-section__body   { display: block !important; }
    .profile-section__icon   { display: none; }
    .profile-section { border: none; background: transparent; margin-bottom: 0; }
    .profile-section__header { border-bottom: 1px solid var(--border); cursor: default; padding: 0.75rem 0; background: transparent; }
    .profile-section__body { padding: 1.25rem 0; }
    .save-bar { position: static !important; background: transparent !important; border: none !important; padding: 0 !important; margin-top: 1.5rem; }
}

/* ── Booking page — availability hint colors ─────────────── */
.avail-hint { border-left: 3px solid #555; padding: 0.75rem 1rem; font-size: 0.8rem; margin-bottom: 1.25rem; }
.avail-hint.none { background: #0d0d0d; color: #666; border-left-color: #333; }
.avail-hint.good { background: #001200; color: #8f8; border-left-color: #0f0; }
.avail-hint.warn { background: #0d0a00; color: #ffaa00; border-left-color: #ffaa00; }

/* ── model card unavailable state ────────────────────────── */
.model-card.unavailable .status-tag.unavail-tag { display: block !important; }
.model-card.booked .status-tag.booked-tag { display: block !important; }

/* ── Nav logo image — never too big on mobile ────────────── */
/* ── Sidebar logo image ───────────────────────────────────── */
.sidebar__logo-img { height: 36px; width: auto; display: block; margin-bottom: 0.6rem; }

/* ── Mobile bottom padding for all model pages ───────────── */
@media (max-width: 768px) {
    .main-content { padding-bottom: 80px !important; }
}

/* ── Admin filter tabs — uniform white/black only ─────────── */
.filter-tab { background: #111; color: #666; }
.filter-tab.active { background: #fff; color: #000; }
.filter-tab:not(.active):hover { background: #1a1a1a; color: #fff; }

/* ── Admin modal — dark themed ───────────────────────────── */
.price-modal { background: #111 !important; color: #fff !important; border: 1px solid #333; }
.price-modal h2, .price-modal p { color: #fff !important; }
.price-modal label { color: #888 !important; }
.price-modal input { background: #0d0d0d !important; color: #fff !important; border-color: #333 !important; }

/* ============================================================
   TARGETED FIXES
   ============================================================ */

/* ── Logo: transparent PNG, no blend hacks needed ────────── */
.nav__logo-img {
    height: 46px !important;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: transparent !important;
}

@media (max-width: 768px) {
    .nav__logo-img { height: 26px !important; }
}

/* ── Footer — proper depth and structure ─────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 0;
    margin-top: 6rem;
    background: #080808;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
    align-items: start;
}

.footer__brand {}

.footer__brand-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

.footer__brand-name {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    font-size: 0.72rem;
    color: #555;
    line-height: 1.7;
}

.footer__section-title {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__link {
    font-size: 0.78rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.05em;
}

.footer__link:hover { color: var(--white); }

.footer__social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #666;
    text-decoration: none;
    border: 1px solid #222;
    padding: 0.4rem 0.85rem;
    transition: all 0.2s;
    letter-spacing: 0.06em;
}

.footer__social-link:hover {
    color: var(--white);
    border-color: var(--white);
}

.footer__bottom {
    border-top: 1px solid #111;
    padding: 1.25rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__copy {
    font-size: 0.65rem;
    color: #444;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0 2rem;
    }
    .footer { margin-top: 4rem; }
}

/* ── Register header — logo + one back link ─────────────────── */
.reg-header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Profile — change password visible on mobile ──────────── */
@media (max-width: 768px) {
    /* Make sure change password section is accessible */
    .profile-section { display: block !important; }
    .profile-section__body { /* starts hidden, toggled by JS */ }
}

/* ── Mobile hamburger + slide-in nav menu ─────────────────── */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 210;
}
.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(78vw, 300px);
        height: 100vh;
        margin: 0;
        background: var(--black);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1.75rem;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 200;
    }
    .nav__links.open { right: 0; }
}

/* ── Mobile bottom tab bar (model dashboard pages) ────────── */
.mobile-tabs { display: none; }

@media (max-width: 768px) {
    .mobile-tabs {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        height: 64px;
        background: #0a0a0a;
        border-top: 1px solid var(--border);
        z-index: 150;
    }
    .mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        flex: 1;
        height: 100%;
        color: #666;
        font-size: 0.55rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-family: var(--body);
    }
    .mobile-tab svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .mobile-tab.active { color: var(--white); }
    /* On pages that have the bottom tab bar, hide the sidebar to avoid duplicate nav */
    body:has(.mobile-tabs) .sidebar { display: none; }
}

/* ── Dashboard mobile — logout button ────────────────────── */
.dash-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #c00;
    color: #c00;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--body);
    transition: all 0.2s;
}
.dash-logout-btn:hover { background: #c00; color: #fff; }

/* ============================================================
   ADMIN MOBILE NAV + TABLE CARDS
   ============================================================ */

/* Global overflow guard — nothing escapes the viewport */
body { overflow-x: hidden; }
.main-content { overflow-x: hidden; min-width: 0; }

/* ── admin-top-nav: hidden on desktop (sidebar handles nav) ── */
.admin-top-nav { display: none; }

@media (max-width: 900px) {
    /* Show the top nav as a horizontal scroll strip on mobile */
    .admin-top-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        background: #0a0a0a;
        border-bottom: 1px solid var(--border);
        padding: 0;
        scrollbar-width: none;
        flex-shrink: 0;
        margin-bottom: 1.5rem;
    }
    .admin-top-nav::-webkit-scrollbar { display: none; }
    .admin-top-nav a {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: #666;
        border-bottom: 2px solid transparent;
        text-decoration: none;
        flex-shrink: 0;
        font-family: var(--body);
        transition: color 0.15s, border-color 0.15s;
    }
    .admin-top-nav a:hover,
    .admin-top-nav a.active {
        color: var(--white);
        border-bottom-color: var(--white);
    }
    .admin-top-nav a[href*="logout"] { color: #c00; }

    /* Hide the sidebar entirely on mobile — top nav replaces it */
    .admin-dashboard .sidebar { display: none; }
}

/* ── Admin tables: card stack on mobile (all .table-wrap tables) ── */
@media (max-width: 768px) {
    /* Prevent the wrapper itself from being wider than the screen */
    .table-wrap {
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Only apply card stacking to admin tables (NOT model ones — those use .model-table-wrap) */
    .admin-dashboard .table-wrap table,
    .admin-table-wrap table,
    .admin-table-wrap thead,
    .admin-table-wrap tbody,
    .admin-table-wrap th,
    .admin-table-wrap td,
    .admin-table-wrap tr { display: block; width: 100%; box-sizing: border-box; }

    .admin-table-wrap thead { display: none; }

    .admin-table-wrap tbody tr {
        border: 1px solid var(--border);
        margin-bottom: 0.75rem;
        background: #0d0d0d;
        padding: 0.25rem 0;
        width: 100%;
    }
    .admin-table-wrap tbody tr:last-child { margin-bottom: 0; }

    .admin-table-wrap tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.55rem 1rem;
        border-bottom: 1px solid #1a1a1a;
        font-size: 0.82rem;
        text-align: right;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    .admin-table-wrap tbody td:last-child { border-bottom: none; }
    .admin-table-wrap tbody td[data-label=""] { justify-content: flex-end; }

    .admin-table-wrap tbody td::before {
        content: attr(data-label);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--grey);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
        white-space: nowrap;
    }
    .admin-table-wrap tbody td[data-label=""]::before { display: none; }

    .admin-table-wrap tbody td > span,
    .admin-table-wrap tbody td > a,
    .admin-table-wrap tbody td > strong {
        max-width: 60%;
        word-break: break-word;
    }

    /* Past sessions table on shoot-timer page */
    .timer-table-wrap table,
    .timer-table-wrap thead,
    .timer-table-wrap tbody,
    .timer-table-wrap th,
    .timer-table-wrap td,
    .timer-table-wrap tr { display: block; width: 100%; box-sizing: border-box; }

    .timer-table-wrap thead { display: none; }

    .timer-table-wrap tbody tr {
        border: 1px solid var(--border);
        margin-bottom: 0.75rem;
        background: #0d0d0d;
        padding: 0.25rem 0;
        width: 100%;
    }
    .timer-table-wrap tbody tr:last-child { margin-bottom: 0; }

    .timer-table-wrap tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.55rem 1rem;
        border-bottom: 1px solid #1a1a1a;
        font-size: 0.82rem;
        text-align: right;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    .timer-table-wrap tbody td:last-child { border-bottom: none; }

    .timer-table-wrap tbody td::before {
        content: attr(data-label);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--grey);
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
        white-space: nowrap;
    }

    /* Live sessions admin block wraps cleanly */
    .live-session-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    /* Prevent any inline-flex or flex rows from overflowing */
    .main-content__header { flex-wrap: wrap; gap: 0.75rem; }
}
