/* =============================================================
   READING CINEMAS PORTAL — SITE STYLES (REFINED)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');

/* =============================================================
   1. ROOT VARIABLES & BASE
   ============================================================= */
:root {
    --gold: #c9a84c;
    --gold-bright: #e8c870;
    --gold-deep: #8a7434;
    --rc-white: #f0ede8;
    --rc-dim: rgba(240, 237, 232, 0.6);
    --rc-bg: #05050a;
    --rc-panel: rgba(15, 13, 20, 0.72);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    background: var(--rc-bg);
    color: var(--rc-white);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
}

body {
    margin-bottom: 0;
}

.portal-wrap *,
.portal-wrap *::before,
.portal-wrap *::after,
.manage-wrap *,
.visitors-wrap *,
.form-wrap * {
    box-sizing: border-box;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--rc-white);
}

/* =============================================================
   2. BOOTSTRAP OVERRIDES
   ============================================================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.05), 0 0 0 0.2rem rgba(201, 168, 76, 0.4);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =============================================================
   3. BACKGROUND — with vignette and film grain
   ============================================================= */
.cinema-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/lib/Photos/ReadingMain.jpg') center center / cover no-repeat;
    filter: brightness(0.35) saturate(0.55);
    transform: scale(1.04);
    animation: bgDrift 22s ease-in-out infinite alternate;
}

    .cinema-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 5, 10, 0.6) 100%), linear-gradient(to bottom, rgba(5,5,10,0.55) 0%, rgba(5,5,10,0.1) 40%, rgba(5,5,10,0.1) 60%, rgba(5,5,10,0.85) 100%);
        animation: vignettePulse 8s ease-in-out infinite alternate;
    }

    .cinema-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.04;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        z-index: 1;
    }

@keyframes bgDrift {
    from {
        transform: scale(1.04) translateX(0);
    }

    to {
        transform: scale(1.08) translateX(-1%);
    }
}

@keyframes vignettePulse {
    from {
        opacity: 0.92;
    }

    to {
        opacity: 1;
    }
}

/* =============================================================
   4. ANIMATIONS
   ============================================================= */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes goldRule {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 0.8;
    }
}

/* =============================================================
   5. PAGE LAYOUTS / WRAPPERS
   ============================================================= */
.portal-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7rem 1.25rem 4rem;
}

.manage-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 7rem 1.25rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.visitors-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 7rem 1.25rem 4rem;
    max-width: 860px;
    margin: 0 auto;
}

.form-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 7rem 1.25rem 4rem;
    max-width: 580px;
    margin: 0 auto;
}

.portal-content {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* =============================================================
   6. NAVBAR — with underline grow
   ============================================================= */
.rc-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 10, 0.55) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
    padding: 0.35rem 0;
    transition: background 0.4s var(--ease-smooth);
}

.rc-navbar-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    line-height: 1;
}

.rc-brand-reading {
    color: var(--rc-white);
}

.rc-brand-cinemas {
    color: var(--gold);
    margin-left: 0.3rem;
    transition: color 0.3s var(--ease-smooth);
}

.rc-navbar-brand:hover .rc-brand-cinemas {
    color: var(--gold-bright);
}

.rc-nav-link {
    color: var(--rc-dim) !important;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    padding: 0.4rem 0.75rem !important;
    transition: color 0.3s var(--ease-smooth) !important;
    position: relative;
}

    .rc-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0.15rem;
        left: 0.75rem;
        right: 0.75rem;
        height: 1px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.35s var(--ease-out);
    }

    .rc-nav-link:hover {
        color: var(--gold) !important;
    }

        .rc-nav-link:hover::after {
            transform: scaleX(1);
        }

.rc-toggler {
    border-color: rgba(201, 168, 76, 0.4) !important;
    filter: invert(1);
}

/* =============================================================
   7. FOOTER
   ============================================================= */
.rc-footer {
    position: relative;
    z-index: 100;
    background: rgba(5, 5, 10, 0.85);
    border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
    padding: 1rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--rc-dim);
}

    .rc-footer a {
        color: var(--gold);
        text-decoration: none;
        transition: color 0.3s var(--ease-smooth);
    }

        .rc-footer a:hover {
            color: var(--gold-bright);
        }

/* =============================================================
   8. HEADER (HOME PAGE)
   ============================================================= */
.portal-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeDown 1s var(--ease-out) 0.15s forwards;
}

.eyebrow {
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    text-shadow: 0 1px 12px rgba(201, 168, 76, 0.3);
}

.portal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
    text-shadow: 0 2px 50px rgba(0,0,0,0.7), 0 0 80px rgba(201, 168, 76, 0.08);
}

    .portal-title span {
        background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: var(--gold); /* fallback */
    }

.portal-location {
    font-weight: 300;
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rc-dim);
    margin-top: 0.6rem;
}

.gold-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.4rem auto 0;
    opacity: 0;
    animation: goldRule 0.8s var(--ease-out) 1s forwards, shimmer 4s ease-in-out 1.8s infinite;
}

/* Section label with flanking rules */
.section-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--rc-white);
}

    .section-label::before,
    .section-label::after {
        content: '';
        flex: 0 0 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5));
    }

    .section-label::after {
        background: linear-gradient(90deg, rgba(201, 168, 76, 0.5), transparent);
    }

/* =============================================================
   9. ROSTER CARD — with corner brackets and accent bar
   ============================================================= */
.roster-card {
    width: 100%;
    margin: 0 0 2.5rem 0;
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 4px;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    padding: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    position: relative;
}

    .roster-card::before,
    .roster-card::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: var(--gold);
        opacity: 0.5;
        transition: opacity 0.4s var(--ease-smooth);
    }

    .roster-card::before {
        top: -1px;
        left: -1px;
        border-top: 1px solid;
        border-left: 1px solid;
    }

    .roster-card::after {
        bottom: -1px;
        right: -1px;
        border-bottom: 1px solid;
        border-right: 1px solid;
    }

    .roster-card:hover::before,
    .roster-card:hover::after {
        opacity: 1;
    }

    .roster-card p {
        text-align: center;
        color: var(--rc-dim);
        font-size: 0.9rem;
        font-weight: 300;
        font-style: italic;
        margin: 0;
    }

.roster-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.roster-item {
    position: relative;
    border-radius: 3px;
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.12);
    transition: background 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-out);
    overflow: hidden;
}

    .roster-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 3px;
        background: var(--gold);
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.4s var(--ease-out);
    }

    .roster-item:hover {
        background: rgba(201, 168, 76, 0.13);
        border-color: rgba(201, 168, 76, 0.45);
        transform: translateX(2px);
    }

        .roster-item:hover::before {
            transform: scaleY(1);
        }

.roster-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    transition: color 0.3s var(--ease-smooth);
    padding: 0.7rem 1rem;
    width: 100%;
}

/* Truncate long filenames in roster items */
.roster-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Make the item itself prevent overflow */
.roster-item {
    min-width: 0;
}

    .roster-link::after {
        content: '→';
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-out);
        color: var(--gold-bright);
        margin-left: 0.5rem;
    }

.roster-item:hover .roster-link {
    color: var(--gold-bright);
}

    .roster-item:hover .roster-link::after {
        opacity: 1;
        transform: translateX(0);
    }

/* =============================================================
   10. ACTION CARDS — staggered, with sheen and top accent
   ============================================================= */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    width: 100%;
}

    /* 4-card variant for when SwapForm is included */
    .actions-grid.actions-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-grid .action-card:nth-child(1) {
        animation-delay: 0.85s;
    }

    .actions-grid .action-card:nth-child(2) {
        animation-delay: 0.95s;
    }

    .actions-grid .action-card:nth-child(3) {
        animation-delay: 1.05s;
    }

    .actions-grid .action-card:nth-child(4) {
        animation-delay: 1.15s;
    }

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 0.75rem;
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    text-decoration: none;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-smooth);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) forwards;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.actions-grid .action-card:nth-child(1) {
    animation-delay: 0.85s;
}

.actions-grid .action-card:nth-child(2) {
    animation-delay: 0.95s;
}

.actions-grid .action-card:nth-child(3) {
    animation-delay: 1.05s;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s var(--ease-out);
}

.action-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 115deg, transparent 40%, rgba(201, 168, 76, 0.08) 50%, transparent 60% );
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease-out);
    pointer-events: none;
}

.action-card:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.6);
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px -8px rgba(201, 168, 76, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .action-card:hover::before {
        transform: scaleX(1);
    }

    .action-card:hover::after {
        transform: translateX(50%);
    }

.action-card:active {
    transform: translateY(-1px);
    transition-duration: 0.15s;
}

.action-icon {
    font-size: 1.7rem;
    line-height: 1;
    transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-smooth);
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0));
}

.action-card:hover .action-icon {
    transform: scale(1.08) translateY(-1px);
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
}

.action-label {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rc-dim);
    text-align: center;
    line-height: 1.4;
    transition: color 0.35s var(--ease-smooth);
}

.action-card:hover .action-label {
    color: var(--rc-white);
}

/* =============================================================
   11. MANAGE PAGE
   ============================================================= */
.manage-section {
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 4px;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    padding: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) forwards;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

    .manage-section:nth-child(1) {
        animation-delay: 0.2s;
    }

    .manage-section:nth-child(2) {
        animation-delay: 0.35s;
    }

    .manage-section:nth-child(3) {
        animation-delay: 0.5s;
    }

    .manage-section:nth-child(4) {
        animation-delay: 0.65s;
    }

.manage-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    letter-spacing: 0.12em;
    color: var(--rc-white);
    margin-bottom: 0.25rem;
}

.manage-subheading {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.manage-divider {
    border: none;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    margin: 1.75rem 0;
}

/* =============================================================
   12. UPLOAD FORM
   ============================================================= */
.rc-file-input {
    background: rgba(5, 5, 10, 0.6) !important;
    border: 1px solid rgba(201, 168, 76, 0.25) !important;
    border-radius: 3px !important;
    color: var(--rc-dim) !important;
    font-size: 0.85rem !important;
    overflow: hidden !important; /* ← add this line */
    transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth) !important;
}

    .rc-file-input:focus {
        border-color: rgba(201, 168, 76, 0.6) !important;
        box-shadow: none !important;
        background: rgba(5, 5, 10, 0.8) !important;
    }

    .rc-file-input::file-selector-button {
        background: rgba(201, 168, 76, 0.12);
        border: none;
        border-right: 1px solid rgba(201, 168, 76, 0.25);
        color: var(--gold);
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 0.6rem 1rem; /* match input's vertical padding */
        margin: -0.6rem 1rem -0.6rem -0.9rem;
        cursor: pointer;
        transition: background 0.3s var(--ease-smooth);
    }

        .rc-file-input::file-selector-button:hover {
            background: rgba(201, 168, 76, 0.22);
        }

.rc-btn-upload {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.55rem 1.6rem;
    border-radius: 3px;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.2s var(--ease-out);
    cursor: pointer;
}

    .rc-btn-upload:hover {
        background: rgba(201, 168, 76, 0.12);
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-1px);
    }

    .rc-btn-upload:active {
        transform: translateY(0);
    }

/* =============================================================
   13. TABLE
   ============================================================= */
.rc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .rc-table thead tr {
        border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    }

    .rc-table th {
        font-size: 0.65rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--gold);
        font-weight: 400;
        padding: 0.7rem 0.75rem;
        text-align: left;
    }

    .rc-table td {
        padding: 0.85rem 0.75rem;
        color: var(--rc-dim);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        vertical-align: middle;
        transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth);
    }

    .rc-table tbody tr:hover td {
        background: rgba(201, 168, 76, 0.04);
        color: var(--rc-white);
    }

    .rc-table .filename {
        color: var(--rc-white);
        font-weight: 400;
    }

.rc-btn-view,
.rc-btn-delete {
    background: transparent;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
    display: inline-block;
    cursor: pointer;
}

.rc-btn-view {
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--gold);
}

    .rc-btn-view:hover {
        background: rgba(201, 168, 76, 0.12);
        border-color: var(--gold);
        color: var(--gold-bright);
    }

.rc-btn-delete {
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: rgba(220, 53, 69, 0.8);
}

    .rc-btn-delete:hover {
        background: rgba(220, 53, 69, 0.12);
        border-color: rgba(220, 53, 69, 0.7);
        color: #dc3545;
    }

.empty-state {
    color: var(--rc-dim);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    font-style: italic;
}

/* =============================================================
   14. VISITORS PAGE / ACCORDION
   ============================================================= */
.visitors-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeDown 1s var(--ease-out) 0.15s forwards;
}

.rc-visitor-log-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.9rem;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 3px;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.2s var(--ease-out);
}

    .rc-visitor-log-btn:hover {
        background: rgba(201, 168, 76, 0.12);
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-1px);
    }

.rc-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.rc-accordion-item {
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-smooth);
}

    .rc-accordion-item:hover {
        border-color: rgba(201, 168, 76, 0.35);
    }

.rc-accordion-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--rc-white);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-align: left;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

    .rc-accordion-btn:hover {
        color: var(--gold);
        background: rgba(201, 168, 76, 0.05);
    }

    .rc-accordion-btn.open {
        color: var(--gold);
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

.rc-accordion-chevron {
    font-style: normal;
    font-size: 0.75rem;
    transition: transform 0.4s var(--ease-out);
    color: var(--gold);
    opacity: 0.7;
}

.rc-accordion-btn.open .rc-accordion-chevron {
    transform: rotate(180deg);
}

.rc-accordion-body {
    display: none;
    padding: 1.5rem 1.4rem;
}

    .rc-accordion-body.open {
        display: block;
    }

.rc-sub-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rc-sub-item {
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 3px;
    overflow: hidden;
    background: rgba(5, 5, 10, 0.35);
    transition: border-color 0.3s var(--ease-smooth);
}

.rc-sub-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--rc-dim);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

    .rc-sub-btn:hover {
        color: var(--gold);
        background: rgba(201, 168, 76, 0.05);
    }

    .rc-sub-btn.open {
        color: var(--gold);
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    }

.rc-sub-body {
    display: none;
    padding: 1.25rem 1.1rem;
    color: var(--rc-dim);
    font-size: 0.88rem;
    line-height: 1.8;
    font-weight: 300;
}

    .rc-sub-body.open {
        display: block;
    }

    .rc-sub-body p {
        margin-bottom: 0.9rem;
    }

    .rc-sub-body img {
        max-width: 100%;
        border-radius: 3px;
        border: 1px solid rgba(201, 168, 76, 0.15);
        margin-top: 0.5rem;
    }

    .rc-sub-body iframe {
        border-radius: 3px;
        border: 1px solid rgba(201, 168, 76, 0.15) !important;
        margin-top: 0.5rem;
    }

/* =============================================================
   15. FORMS — refined inputs and a polished submit button
   ============================================================= */
.form-card {
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 4px;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    padding: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.rc-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 0.45rem;
}

.rc-input {
    width: 100%;
    background: rgba(5, 5, 10, 0.6) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-radius: 3px !important;
    color: var(--rc-white) !important;
    font-size: 0.88rem !important;
    padding: 0.6rem 0.9rem !important;
    transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth) !important;
}

    .rc-input:focus {
        border-color: rgba(201, 168, 76, 0.6) !important;
        box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08) !important;
        background: rgba(5, 5, 10, 0.85) !important;
        outline: none;
    }

    .rc-input::placeholder {
        color: rgba(240, 237, 232, 0.25) !important;
    }

textarea.rc-input {
    resize: vertical;
    min-height: 90px;
}

.rc-field {
    margin-bottom: 1.25rem;
}

.rc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.rc-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.05rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--rc-dim);
    transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
    user-select: none;
}

    .rc-radio-label:hover {
        border-color: rgba(201, 168, 76, 0.45);
        color: var(--rc-white);
    }

    .rc-radio-label input[type="radio"] {
        accent-color: var(--gold);
    }

    .rc-radio-label:has(input:checked) {
        border-color: var(--gold);
        color: var(--gold);
        background: rgba(201, 168, 76, 0.08);
    }

.rc-divider {
    border: none;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    margin: 1.5rem 0;
}

.rc-btn-submit {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 0.85rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.2s var(--ease-out);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .rc-btn-submit::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 115deg, transparent 30%, rgba(201, 168, 76, 0.15) 50%, transparent 70% );
        transform: translateX(-100%);
        transition: transform 0.7s var(--ease-out);
    }

    .rc-btn-submit:hover {
        background: rgba(201, 168, 76, 0.12);
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-1px);
    }

        .rc-btn-submit:hover::before {
            transform: translateX(100%);
        }

    .rc-btn-submit:active {
        transform: translateY(0);
    }

/* =============================================================
   16. ACCOUNT SETTINGS
   ============================================================= */
.manage-account-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    width: 100%;
    align-items: start;
}

.manage-account-nav {
    padding: 1rem;
}

.manage-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.95rem;
    border-radius: 3px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rc-dim);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

    .manage-nav-link:hover {
        color: var(--rc-white);
        background: rgba(201, 168, 76, 0.06);
    }

    .manage-nav-link.active {
        color: var(--gold);
        border-color: rgba(201, 168, 76, 0.3);
        background: rgba(201, 168, 76, 0.08);
    }

.manage-nav-icon {
    font-size: 0.9rem;
}

/* =============================================================
   17. VALIDATION & INFO MESSAGES
   ============================================================= */
.rc-validation-error {
    color: #e05c5c;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 3px;
    background: rgba(220, 53, 69, 0.08);
}

    .rc-validation-error ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .rc-validation-error li {
        padding: 0;
        margin: 0;
    }

        .rc-validation-error li::before {
            content: '⚠';
            margin-right: 0.5rem;
            color: rgba(220, 53, 69, 0.8);
        }

.rc-field-error {
    display: block;
    color: #e05c5c;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    letter-spacing: 0.03em;
}

.rc-info-text {
    color: var(--rc-dim);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid rgba(201, 168, 76, 0.4);
}

    .rc-info-text.small {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.6);
    }

.rc-anchor {
    color: var(--rc-dim);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

    .rc-anchor:hover {
        color: var(--gold);
    }

.text-danger {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #d64545;
}

.success-msg {
    background: #1a1a2e;
    color: var(--gold);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid var(--gold);
}

.success-box {
    background: rgba(20, 60, 40, 0.4);
    border: 1px solid rgba(76, 175, 120, 0.45);
    padding: 1rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 0 30px -10px rgba(76, 175, 120, 0.3);
    animation: fadeUp 0.6s var(--ease-out);
    position: relative;
    overflow: hidden;
}

    .success-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 3px;
        background: #4caf78;
        box-shadow: 0 0 12px rgba(76, 175, 120, 0.6);
    }

.success-title {
    color: #7dd3a0;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .success-title::before {
        content: '✓';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(76, 175, 120, 0.2);
        border: 1px solid rgba(76, 175, 120, 0.5);
        color: #7dd3a0;
        font-size: 0.7rem;
        font-weight: 700;
        flex-shrink: 0;
    }

.success-box .rc-info-text {
    color: rgba(255, 255, 255, 0.78);
    border-left-color: rgba(76, 175, 120, 0.4);
}

/* =============================================================
   18. CODE REVEAL WIDGET
   ============================================================= */
.code-reveal {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(5, 5, 10, 0.6);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 3px;
    min-width: 220px;
    cursor: pointer;
    transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), transform 0.2s var(--ease-out);
    user-select: none;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}

    .code-reveal:hover {
        border-color: rgba(201, 168, 76, 0.55);
        background: rgba(201, 168, 76, 0.08);
        transform: translateY(-2px);
    }

    .code-reveal:active {
        transform: translateY(0);
    }

    .code-reveal.revealed {
        border-color: rgba(201, 168, 76, 0.5);
        background: rgba(201, 168, 76, 0.1);
    }

.code-eye {
    font-size: 0.9rem;
    transition: transform 0.4s var(--ease-out);
}

.code-reveal.revealed .code-eye {
    transform: rotate(15deg);
}

.code-hidden {
    color: var(--rc-dim);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

.code-value {
    display: none;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    font-family: monospace;
    font-weight: 600;
    user-select: text;
}

.code-reveal.revealed .code-hidden {
    display: none;
}

.code-reveal.revealed .code-value {
    display: inline;
}

.selectable {
    user-select: text;
    cursor: text;
}

/* =============================================================
   19. AVAILABILITY CARDS
   ============================================================= */
.avail-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.avail-card {
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 3px;
    overflow: hidden;
    background: rgba(5, 5, 10, 0.35);
    transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.avail-card-active {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.04);
}

.avail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.avail-card-day {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--rc-white);
    font-weight: 400;
}

.avail-card-active .avail-card-day {
    color: var(--gold);
}

.avail-card-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.avail-time-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.rc-time {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.82rem !important;
}

/* =============================================================
   20. TOGGLE SWITCH
   ============================================================= */
.rc-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

    .rc-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.rc-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 20px;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

    .rc-toggle-track::after {
        content: '';
        position: absolute;
        left: 3px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: left 0.3s var(--ease-out), background 0.3s var(--ease-smooth);
    }

.rc-toggle input:checked + .rc-toggle-track {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}

    .rc-toggle input:checked + .rc-toggle-track::after {
        left: 19px;
        background: var(--gold);
    }

/* =============================================================
   21. DATE WRAPPER
   ============================================================= */
.rc-date-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

    .rc-date-wrapper input {
        width: 100%;
        cursor: pointer;
    }


/* =============================================================
   24. CONTACT PAGE
   ============================================================= */
.contact-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--rc-panel);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 4px;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    padding: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    position: relative;
}

    .contact-card::before,
    .contact-card::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: var(--gold);
        opacity: 0.5;
        transition: opacity 0.4s var(--ease-smooth);
    }

    .contact-card::before {
        top: -1px;
        left: -1px;
        border-top: 1px solid;
        border-left: 1px solid;
    }

    .contact-card::after {
        bottom: -1px;
        right: -1px;
        border-bottom: 1px solid;
        border-right: 1px solid;
    }

    .contact-card:hover::before,
    .contact-card:hover::after {
        opacity: 1;
    }

.contact-subheading {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin: 0 0 1.75rem 0;
    font-weight: 300;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    position: relative;
    padding: 1rem 1.1rem;
    border-radius: 3px;
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.12);
    transition: background 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-out);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .contact-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 3px;
        background: var(--gold);
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.4s var(--ease-out);
    }

    .contact-item:hover {
        background: rgba(201, 168, 76, 0.1);
        border-color: rgba(201, 168, 76, 0.4);
        transform: translateX(2px);
    }

        .contact-item:hover::before {
            transform: scaleY(1);
        }

.contact-name {
    color: var(--rc-white);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: color 0.3s var(--ease-smooth);
    word-break: break-all;
}

    .contact-email::before {
        content: '✉';
        margin-right: 0.5rem;
        opacity: 0.6;
        font-size: 0.85rem;
        transition: opacity 0.3s var(--ease-smooth);
    }

.contact-item:hover .contact-email {
    color: var(--gold-bright);
}

    .contact-item:hover .contact-email::before {
        opacity: 1;
    }

/* =============================================================
   22. RESPONSIVE — VIEWPORT HEIGHT
   ============================================================= */
@media (max-height: 800px) {
    .portal-wrap {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .portal-header {
        margin-bottom: 1rem;
    }

        .portal-header img {
            height: 60px;
        }

    .portal-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .section-label {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .roster-card {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .action-card {
        padding: 1rem 0.75rem;
    }
}

@media (max-height: 650px) {
    .portal-wrap {
        padding-top: 3.5rem;
    }

    .portal-header img {
        height: 45px;
    }

    .portal-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .eyebrow,
    .portal-location {
        display: none;
    }
}

/* =============================================================
   23. RESPONSIVE — VIEWPORT WIDTH
   ============================================================= */
@media (max-width: 600px) {
    .manage-wrap {
        padding: 5rem 1rem 3rem;
    }

    .manage-section {
        padding: 1.25rem 1rem;
    }

    .rc-table th:nth-child(2),
    .rc-table td:nth-child(2),
    .rc-table th:nth-child(3),
    .rc-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 580px) {
    .manage-account-grid {
        grid-template-columns: 1fr;
    }

    .manage-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .manage-nav-link {
        flex: 1;
        justify-content: center;
        font-size: 0.68rem;
        padding: 0.55rem 0.5rem;
    }
}

.rc-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

@media (max-width: 575.98px) {
    .rc-navbar-brand img {
        height: 50px !important;
    }

    .navbar-collapse {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }

    .navbar-nav .nav-link.rc-nav-link {
        padding: 0.6rem 0.5rem !important;
    }

    .rc-nav-link::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .portal-wrap,
    .visitors-wrap,
    .form-wrap {
        padding: 6.5rem 1rem 3rem;
    }

    .manage-wrap {
        padding: 6.5rem 1rem 3rem;
    }

    .portal-header {
        margin-bottom: 2rem;
    }

    .form-card {
        padding: 1.25rem 1rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.2rem;
        gap: 1rem;
    }

    .action-label {
        font-size: 0.75rem;
        text-align: left;
    }

    .action-icon {
        font-size: 1.4rem;
    }

    .roster-card {
        padding: 1.2rem 1rem;
    }

    .rc-accordion-btn {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .rc-sub-btn {
        font-size: 0.68rem;
    }

    .section-label::before,
    .section-label::after {
        flex-basis: 20px;
    }
}

/* Make date/time inputs feel clickable everywhere */
.rc-input[type="date"],
.rc-input[type="time"] {
    cursor: pointer;
    padding-right: 2.5rem !important;
    position: relative;
    /* iOS Safari overflow fix */
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
}

    /* Force the inner date/time text to not push the input wider on iOS */
    .rc-input[type="date"]::-webkit-date-and-time-value,
    .rc-input[type="time"]::-webkit-date-and-time-value {
        text-align: left;
        min-width: 0;
    }

/* Same fix for the smaller availability time inputs */
.rc-time {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Style the native picker icon to match the gold theme */
.rc-input[type="date"]::-webkit-calendar-picker-indicator,
.rc-input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(78%) sepia(34%) saturate(553%) hue-rotate(7deg) brightness(92%) contrast(87%);
    opacity: 0.6;
    transition: opacity 0.3s var(--ease-smooth);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.rc-input[type="date"]:hover::-webkit-calendar-picker-indicator,
.rc-input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Firefox doesn't support ::-webkit-calendar-picker-indicator,
   but it lets you click the whole field already */
@-moz-document url-prefix() {
    .rc-input[type="date"],
    .rc-input[type="time"] {
        padding-right: 0.9rem !important;
    }
}


/* Constrain table layout so columns don't stretch infinitely */
/* Constrain table layout so columns don't stretch infinitely */
.rc-table {
    table-layout: fixed;
}

    /* Filename column inside tables only — truncate with ellipsis */
    .rc-table td.filename,
    .rc-table th.filename {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: help;
    }

/* =============================================================
   25. CONFIRMATION MODAL
   ============================================================= */
.rc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeUp 0.3s var(--ease-out);
}

.rc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rc-modal-card {
    position: relative;
    background: var(--rc-panel);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 4px;
    padding: 1.75rem 2rem;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(220, 53, 69, 0.3);
}

    .rc-modal-card::before,
    .rc-modal-card::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: rgba(220, 53, 69, 0.6);
    }

    .rc-modal-card::before {
        top: -1px;
        left: -1px;
        border-top: 1px solid;
        border-left: 1px solid;
    }

    .rc-modal-card::after {
        bottom: -1px;
        right: -1px;
        border-bottom: 1px solid;
        border-right: 1px solid;
    }

.rc-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: var(--rc-white);
    margin: 0 0 0.75rem 0;
}

.rc-modal-message {
    color: var(--rc-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    word-break: break-all;
}

.rc-modal-warning {
    color: rgba(220, 53, 69, 0.8);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.rc-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.rc-btn-modal-cancel,
.rc-btn-modal-confirm {
    background: transparent;
    border-radius: 3px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.2s var(--ease-out);
}

.rc-btn-modal-cancel {
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold);
}

    .rc-btn-modal-cancel:hover {
        background: rgba(201, 168, 76, 0.1);
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-1px);
    }

.rc-btn-modal-confirm {
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: rgba(220, 53, 69, 0.9);
}

    .rc-btn-modal-confirm:hover {
        background: rgba(220, 53, 69, 0.15);
        border-color: rgba(220, 53, 69, 0.8);
        color: #ff4757;
        transform: translateY(-1px);
    }

/* Force a minimum height on empty date/time inputs (iOS fix) */
.rc-input[type="date"],
.rc-input[type="time"] {
    min-height: 2.4rem;
    line-height: 1.4;
}

/* Smaller availability time inputs need their own minimum */
.rc-time {
    min-height: 2rem !important;
    line-height: 1.4 !important;
}

.portal-wrap > .success-box:first-child {
    margin-top: 1rem;
}

/* On desktop with shorter viewports (laptops), the navbar is taller and wrap padding is reduced */
@media (min-width: 768px) and (max-height: 800px) {
    .portal-wrap > .success-box:first-child {
        margin-top: 4rem;
    }
}

.contact-section + .contact-divider {
    border: none;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    margin: 1.75rem 0;
}

.contact-section .contact-subheading {
    margin-bottom: 1rem;
}


/* =============================================================
   26. LOADING OVERLAY
   ============================================================= */
.rc-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s var(--ease-smooth);
}

    .rc-loader.active {
        display: flex;
        opacity: 1;
    }

.rc-loader-content {
    text-align: center;
}

.rc-loader-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(201, 168, 76, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: rcSpin 0.9s linear infinite;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.rc-loader-text {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
    animation: rcPulse 1.6s ease-in-out infinite;
}

@keyframes rcSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rcPulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    width: 100%;
}

    /* 4-card variant */
    .actions-grid.actions-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 5-card variant — 3 on top row, 2 on bottom */
    .actions-grid.actions-grid-5 {
        grid-template-columns: repeat(6, 1fr);
    }

        .actions-grid.actions-grid-5 .action-card {
            grid-column: span 2;
        }

            /* Last 2 cards span 3 columns each (centered bottom row) */
            .actions-grid.actions-grid-5 .action-card:nth-child(4) {
                grid-column: 2 / span 2;
            }

            .actions-grid.actions-grid-5 .action-card:nth-child(5) {
                grid-column: 4 / span 2;
            }

    .actions-grid .action-card:nth-child(1) {
        animation-delay: 0.85s;
    }

    .actions-grid .action-card:nth-child(2) {
        animation-delay: 0.95s;
    }

    .actions-grid .action-card:nth-child(3) {
        animation-delay: 1.05s;
    }

    .actions-grid .action-card:nth-child(4) {
        animation-delay: 1.15s;
    }

    .actions-grid .action-card:nth-child(5) {
        animation-delay: 1.25s;
    }

@media (max-width: 480px) {
    /* Override the earlier mobile rule for 5-card variant */
    .actions-grid.actions-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }

        .actions-grid.actions-grid-5 .action-card {
            grid-column: auto !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            padding: 1.1rem 0.75rem !important;
            gap: 0.5rem !important;
            text-align: center !important;
        }

            /* 5th card centered on its own row */
            .actions-grid.actions-grid-5 .action-card:nth-child(5) {
                grid-column: 1 / -1 !important;
                width: 70%;
                justify-self: center;
            }

        .actions-grid.actions-grid-5 .action-icon {
            font-size: 1.5rem;
        }

        .actions-grid.actions-grid-5 .action-label {
            font-size: 0.62rem;
            letter-spacing: 0.12em;
            text-align: center !important;
        }
}