:root {
    --bg-deep: #0e0a0c;
    --bg-mid: #161114;
    --surface: #1d1518;
    --surface-raised: #251c20;
    --surface-soft: #140f11;

    --door-locked-top: #1c1518;
    --door-locked-bot: #140f12;
    --door-ready-top: #4b1f28;
    --door-ready-bot: #2b1117;
    --door-open-top: #1c2e24;
    --door-open-bot: #14211a;

    --gold: #d6a95d;
    --gold-light: #efd39e;
    --gold-dim: rgba(214, 169, 93, 0.3);
    --gold-faint: rgba(214, 169, 93, 0.12);

    --cream: #faf4e9;
    --text-secondary: #cfc3b1;
    --text-muted: #988b7b;

    --line: rgba(250, 244, 233, 0.09);
    --line-strong: rgba(250, 244, 233, 0.15);
    --crimson: #94272f;
    --pine: #244633;

    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --shadow-card: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.38);
}

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

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 981px) {
    html {
        font-size: clamp(13.5px, min(0.8333vw, 1.62vh), 36px);
    }
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--cream);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 75% 50% at 50% 0%, rgba(92, 34, 45, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 15% 25%, rgba(214, 169, 93, 0.06) 0%, transparent 65%),
        linear-gradient(180deg, #140f11 0%, #0e0a0c 100%);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.shell {
    width: min(86rem, calc(100% - 3rem));
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(17, 12, 14, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.65rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cream);
    text-decoration: none;
}

.brand-emblem {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    background: radial-gradient(circle, rgba(214, 169, 93, 0.16) 0%, rgba(214, 169, 93, 0.03) 100%);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-emblem svg {
    width: 1.15rem;
    height: 1.15rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.brand-title {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    color: var(--gold-light);
    line-height: 1.15;
}

.brand-year {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.brand-partner {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.club-logo {
    height: 2.85rem;
    width: auto;
    display: block;
}

/* ==========================================================================
   Main Content & Alerts
   ========================================================================== */

.main-content {
    flex: 1;
    padding-block: 1.15rem 1.4rem;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.flash-wrap {
    padding-top: 0.85rem;
    position: relative;
    z-index: 5;
}

.alert {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--line-strong);
}

.alert-success { background: rgba(28, 58, 39, 0.9);  border-color: rgba(74, 163, 102, 0.45); color: #e6f6ec; }
.alert-danger  { background: rgba(74, 24, 28, 0.92); border-color: rgba(216, 78, 86, 0.5);  color: #fde8e9; }
.alert-warning { background: rgba(68, 46, 18, 0.92); border-color: var(--gold-dim);         color: #fbf0d9; }
.alert-info    { background: rgba(27, 40, 62, 0.92); border-color: rgba(96, 148, 234, 0.45); color: #e8f0fe; }

/* ==========================================================================
   Home Hero Section
   ========================================================================== */

.club-hero {
    text-align: center;
    max-width: 48rem;
    margin: 0.15rem auto 1.25rem;
}

.club-hero-title {
    font-family: "Cinzel", Georgia, serif;
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    line-height: 1.16;
    margin-block: 0.25rem 0.5rem;
}

.club-hero-lead {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 0.85rem;
    line-height: 1.56;
}

.club-hero-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.status-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    background: rgba(35, 67, 49, 0.48);
    border: 1px solid rgba(116, 180, 140, 0.34);
    color: #e4f3e8;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-dot {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0.45rem rgba(214, 169, 93, 0.75);
    flex-shrink: 0;
}

.progress-ribbon {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line-strong);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.progress-ribbon strong {
    color: var(--gold-light);
    font-weight: 700;
}

.open-error {
    color: #fecaca;
    background: rgba(92, 24, 30, 0.78);
    border: 1px solid rgba(220, 82, 90, 0.45);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.open-error:empty {
    display: none;
}

/* ==========================================================================
   Calendar Grid & Doors
   ========================================================================== */

.door-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
}

.public-door-grid {
    margin-block: auto;
}

.door {
    position: relative;
    min-height: 8.85rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.45rem;
    border-radius: 0.7rem 0.7rem 0.35rem 0.35rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--door-locked-top) 0%, var(--door-locked-bot) 100%);
    color: inherit;
    text-align: left;
    font: inherit;
    width: 100%;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button.door {
    cursor: pointer;
}

.door-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
}

.door-num {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.22rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.door-num small {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-left: 0.12rem;
}

.special {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f9dfe1;
    background: rgba(148, 39, 47, 0.85);
    border: 1px solid rgba(235, 130, 138, 0.34);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    line-height: 1.2;
    white-space: nowrap;
}

.special-inline {
    font-size: 0.66rem;
}

/* Door States */
.door.is-locked {
    background: linear-gradient(180deg, rgba(28, 21, 24, 0.92) 0%, rgba(19, 14, 17, 0.96) 100%);
    border-color: rgba(250, 244, 233, 0.075);
}

.door.is-ready {
    background: linear-gradient(180deg, var(--door-ready-top) 0%, var(--door-ready-bot) 100%);
    border-color: rgba(214, 169, 93, 0.44);
    box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.36);
    cursor: pointer;
}

.door.is-ready:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.48), 0 0 1.2rem rgba(214, 169, 93, 0.12);
}

.door.is-open {
    background: linear-gradient(180deg, var(--door-open-top) 0%, var(--door-open-bot) 100%);
    border-color: rgba(214, 169, 93, 0.34);
    box-shadow: 0 0.3rem 0.95rem rgba(0, 0, 0, 0.3);
}

.door.is-open:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.door.is-open.is-active,
.door.is-selected {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 1px var(--gold), 0 0.45rem 1.25rem rgba(0, 0, 0, 0.45);
}

.door.is-frozen {
    background: rgba(19, 15, 17, 0.78);
    border-color: rgba(250, 244, 233, 0.06);
}

/* Door Faces */
.face {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
}

.door.is-locked .face-ready,
.door.is-locked .face-frozen,
.door.is-ready .face-locked,
.door.is-ready .face-frozen,
.door.is-frozen .face-locked,
.door.is-frozen .face-ready {
    display: none;
}

.face-ready {
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.45rem;
}

.lock-icon {
    width: 1.3rem;
    height: 1.3rem;
    stroke: rgba(214, 169, 93, 0.52);
    fill: none;
    stroke-width: 1.6;
}

.lock-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.seal-mark {
    align-self: center;
    color: var(--gold-light);
    margin-block: auto 0.05rem;
}

.seal-mark svg {
    width: 1.8rem;
    height: 1.8rem;
}

/* Opened Door Interior */
.thumb-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.3rem;
    overflow: hidden;
    background: #0e0a0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.32;
    color: var(--cream);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiet {
    color: var(--text-muted);
    font-weight: 500;
}

.door-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    padding: 0.12rem 0.42rem;
    background: rgba(36, 70, 51, 0.85);
    border: 1px solid rgba(132, 198, 155, 0.28);
    color: #dff3e5;
}

.badge-coupon {
    background: rgba(214, 169, 93, 0.18);
    border-color: rgba(214, 169, 93, 0.42);
    color: var(--gold-light);
}

.badge-subtle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.door-arrow {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-light);
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.door.is-open:hover .door-arrow {
    opacity: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.open-btn,
.btn-ghost,
.btn-accent,
.text-btn {
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    line-height: 1.2;
}

.open-btn {
    background: linear-gradient(180deg, #e0b76d 0%, #c89748 100%);
    color: #151012;
    border: 1px solid #dfb66c;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
}

.open-btn:hover {
    background: linear-gradient(180deg, #efd093 0%, #d5a659 100%);
}

.open-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-accent {
    background: var(--gold-faint);
    color: var(--gold-light);
    border: 1px solid var(--gold-dim);
    padding: 0.5rem 0.9rem;
}

.btn-accent:hover {
    background: rgba(214, 169, 93, 0.22);
    border-color: var(--gold);
}

.btn-ghost,
.text-btn {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    border: 1px solid var(--line-strong);
    padding: 0.46rem 0.85rem;
}

.btn-ghost:hover,
.text-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream);
    border-color: var(--gold-dim);
}

/* ==========================================================================
   Door Reveal Modal
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(9, 7, 8, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-dialog {
    position: relative;
    width: min(36rem, 100%);
    max-height: 88vh;
    max-height: 88dvh;
    background: linear-gradient(180deg, #22191d 0%, #171114 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
}

.modal-content {
    padding: 1.35rem 1.5rem 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.modal-actions {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(16, 12, 14, 0.9);
    display: flex;
    justify-content: flex-end;
}

.detail-head-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 2.2rem;
}

.modal-day-pill {
    display: inline-block;
    background: var(--gold-faint);
    border: 1px solid var(--gold-dim);
    color: var(--gold-light);
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
}

.detail-company,
.editor-day-heading,
.gate h1 {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.22;
}

.detail-company {
    font-size: 1.45rem;
}

.detail-intro {
    font-size: 0.94rem;
    line-height: 1.64;
    color: var(--cream);
    white-space: pre-wrap;
}

.detail-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.detail-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d0a0b;
    border: 1px solid var(--line-strong);
}

.detail-media a {
    display: block;
}

.detail-media img {
    width: 100%;
    max-height: 19rem;
    object-fit: contain;
    display: block;
    margin-inline: auto;
    cursor: zoom-in;
}

.offer-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.offer-card.is-coupon {
    background: linear-gradient(180deg, rgba(214, 169, 93, 0.11) 0%, rgba(214, 169, 93, 0.04) 100%);
    border: 1px dashed rgba(214, 169, 93, 0.5);
}

.offer-card.is-message {
    background: rgba(36, 70, 51, 0.24);
    border: 1px solid rgba(116, 180, 140, 0.28);
}

.offer-tag {
    align-self: flex-start;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(214, 169, 93, 0.2);
    color: var(--gold-light);
}

.offer-card.is-message .offer-tag {
    background: rgba(36, 70, 51, 0.7);
    color: #dcf2e3;
}

.offer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.35;
}

.offer-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.expires {
    font-size: 0.8rem;
    color: var(--gold-light);
    padding-top: 0.2rem;
}

.contact-card {
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-link {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--cream);
    white-space: pre-wrap;
}

/* ==========================================================================
   Preview Mode Control Bar
   ========================================================================== */

.preview-bar {
    margin-bottom: 0.85rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, rgba(42, 29, 20, 0.78) 0%, rgba(27, 20, 18, 0.88) 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.preview-bar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.preview-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.preview-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: var(--gold);
    color: #161012;
}

.preview-slider-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
    min-width: 16rem;
}

.slider-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.preview-slider-form input[type="range"] {
    width: min(22rem, 100%);
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--gold);
    cursor: pointer;
}

.preview-date-chip {
    min-width: 8.8rem;
    text-align: center;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(13, 10, 11, 0.65);
    border: 1px solid var(--gold-dim);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.preview-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Admin Workspace & Login Gate
   ========================================================================== */

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 23.5rem;
    gap: 1.15rem;
    align-items: start;
}

.detail {
    position: sticky;
    top: 4.75rem;
    background: linear-gradient(180deg, #20181c 0%, #171214 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
}

.admin-page-title {
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.35rem;
    color: var(--cream);
    margin-top: 0.1rem;
}

.admin-summary {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.admin-summary strong {
    color: var(--gold-light);
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.logout-form {
    margin: 0;
}

.editor-door {
    min-height: 8.4rem;
}

.editor-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.mini-tag {
    font-size: 0.63rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 0.22rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold-light);
}

.count {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: auto;
    font-variant-numeric: tabular-nums;
}

.editor-panel-head {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.editor-day-heading {
    font-size: 1.3rem;
    margin-top: 0.15rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.field-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.field-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea {
    width: 100%;
    font: inherit;
    font-size: 0.875rem;
    color: var(--cream);
    background: var(--surface-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.52rem 0.7rem;
    transition: border-color 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
}

textarea {
    resize: vertical;
}

.file-control {
    font-size: 0.8rem;
    padding: 0.42rem 0.55rem;
}

.offer-type-set {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.65rem 0.65rem;
}

.offer-type-set legend {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-inline: 0.3rem;
}

.segmented-radios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.seg-option {
    cursor: pointer;
}

.seg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg-option span {
    display: block;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.4rem 0.35rem;
    border-radius: 0.28rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.seg-option input:checked + span {
    background: var(--gold-faint);
    border-color: var(--gold);
    color: var(--gold-light);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 0.25rem;
}

.current-photo {
    width: 100%;
    max-height: 9.5rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    margin-top: 0.35rem;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding-top: 0.35rem;
}

.form-row .open-btn {
    flex: 1;
}

.password-change {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.password-change-head h2 {
    font-family: "Cinzel", Georgia, serif;
    font-size: 1rem;
    color: var(--gold-light);
}

.password-change-head p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.inline-form {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.inline-form input {
    width: auto;
    flex: 1 1 9.5rem;
    max-width: 13rem;
}

/* Gate */
.gate-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 1.5rem;
}

.gate {
    width: min(26rem, 100%);
    background: linear-gradient(180deg, #20181c 0%, #171214 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate h1 {
    font-size: 1.45rem;
}

.gate p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.stack-form .open-btn {
    padding-block: 0.6rem;
    margin-top: 0.25rem;
}

.gate-foot {
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.gate-foot a {
    color: var(--text-muted);
    text-decoration: none;
}

.gate-foot a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
    border-top: 1px solid var(--line);
    background: rgba(14, 10, 12, 0.85);
    position: relative;
    z-index: 3;
}

.foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-block: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.snow-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    font-family: inherit;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.snow-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) and (min-width: 981px) {
    .admin-stage .door-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .shell {
        width: calc(100% - 1.75rem);
    }

    .club-logo {
        height: 2.4rem;
    }

    .stage {
        grid-template-columns: 1fr;
    }

    .door-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .field-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .club-hero-title {
        font-size: 1.75rem;
    }

    .door-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .door {
        min-height: 8.3rem;
    }

    .preview-slider-form {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .inline-form {
        justify-content: stretch;
    }

    .inline-form input {
        max-width: none;
    }

    .foot-inner {
        justify-content: center;
        text-align: center;
    }
}
