:root {
    --black: #050403;
    --panel: rgba(18, 17, 15, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.035);
    --gold: #d6b85a;
    --gold-soft: rgba(214, 184, 90, 0.32);
    --text: #f5f1e8;
    --muted: rgba(245, 241, 232, 0.68);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(214, 184, 90, 0.12), transparent 34%),
        linear-gradient(180deg, #090806, #030302);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

.club-shell {
    min-height: 100vh;
    padding: 34px 42px 110px;
}

.club-hero {
    border: 1px solid var(--gold-soft);
    border-radius: 22px;
    padding: 34px 42px;
    margin-bottom: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 12px;
}

.club-hero h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.club-room {
    display: grid;
    grid-template-columns:
        minmax(520px, 1.25fr) minmax(360px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.tier-column,
.choice-column {
    min-height: calc(100vh - 290px);
    background: var(--panel);
    border: 1px solid var(--gold-soft);
    border-radius: 20px;
    padding: 20px;
}

.tier-column h2,
.choice-column h2 {
    margin: 0;
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.column-header p {
    color: var(--muted);
    margin: 10px 0 16px;
}

.tier-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.tier-card {
    border: 1px solid rgba(214, 184, 90, 0.24);
    background: var(--panel-soft);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: 160ms ease;
}

.tier-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 28px rgba(214, 184, 90, 0.16);
}

.tier-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.tier-card p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 13px;
}

.choice-scroll {
    height: calc(100vh - 390px);
    overflow: hidden;
    padding-right: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
}

.fixed-wine-banner,
.member-choice-selector {
    min-width: 0;
    border: 1px solid #c49a52;
    border-radius: 18px;
    background: #fffdf8;
}

.fixed-wine-banner { padding: 14px; }
.member-choice-selector {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px;
}

.wine-section-heading h3 { margin: 2px 0 5px; color: #39281a; }
.wine-section-heading p { margin: 0 0 10px; color: #66523e; }
.member-choice-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
}
.member-choice-count { color: #68430e; white-space: nowrap; }

.fixed-wine-grid,
.variable-wine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fixed-wine-grid .choice-card,
.variable-wine-grid .choice-card { margin: 0; }
.fixed-wine-grid .choice-card { min-height: 96px; }
.variable-wine-scroll {
    min-height: 0;
    overflow-y: auto;
    padding: 3px 8px 3px 3px;
    scrollbar-gutter: stable;
    scrollbar-color: #b8912f #eee2c9;
}

@media (max-width: 1180px) {
    .fixed-wine-grid,
    .variable-wine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .choice-scroll { height: auto; overflow: visible; }
    .member-choice-selector { max-height: 70vh; }
    .fixed-wine-grid,
    .variable-wine-grid { grid-template-columns: 1fr; }
    .member-choice-heading { align-items: flex-start; flex-direction: column; }
}

body:not(.member-details-open) .fixed-wine-grid::-webkit-scrollbar {
    height: 14px !important;
}

body:not(.member-details-open) .variable-wine-scroll::-webkit-scrollbar {
    width: 14px !important;
}

body:not(.member-details-open) .fixed-wine-grid::-webkit-scrollbar-track,
body:not(.member-details-open) .variable-wine-scroll::-webkit-scrollbar-track {
    border: 1px solid #d2b16f;
    border-radius: 999px;
    background: #eee2c9;
}

body:not(.member-details-open) .fixed-wine-grid::-webkit-scrollbar-thumb,
body:not(.member-details-open) .variable-wine-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #eee2c9;
    border-radius: 999px;
    background: #93631c;
}

.choice-card {
    border: 1px solid rgba(214, 184, 90, 0.22);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.choice-card.locked {
    border-color: rgba(214, 184, 90, 0.44);
}

.choice-card label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.choice-card input {
    margin-top: 4px;
    transform: scale(1.25);
}

.choice-card strong {
    display: block;
    font-size: 15px;
}

.choice-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.choice-pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.club-status-bar {
    position: fixed;
    left: 42px;
    right: 42px;
    bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    background: rgba(12, 11, 9, 0.96);
    border: 1px solid var(--gold-soft);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.club-status-bar span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.club-status-bar strong {
    font-size: 16px;
}

.club-status-bar button {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: linear-gradient(180deg, #f3d776, #b99533);
    color: #090806;
    font-weight: 900;
    cursor: pointer;
}

.club-status-bar button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}


.hidden {
    display: none !important;
}

.member-step {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 24px;
    min-height: calc(100vh - 280px);
}

.selection-review,
.member-form-panel {
    background: var(--panel);
    border: 1px solid var(--gold-soft);
    border-radius: 22px;
    padding: 28px;
}

.selection-review h2,
.member-form-panel h2 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.selection-summary {
    display: grid;
    gap: 18px;
}

.summary-block {
    border: 1px solid rgba(214, 184, 90, 0.22);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.summary-block h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.summary-block p,
.summary-block li {
    color: var(--muted);
    line-height: 1.6;
}

.summary-block ul {
    margin: 0;
    padding-left: 18px;
}

.member-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.member-form-grid input {
    width: 100%;
    border: 1px solid rgba(214, 184, 90, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
}

.member-form-grid input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 184, 90, 0.13);
}

.wide {
    grid-column: 1 / -1;
}

.member-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.5;
    border: 1px solid rgba(214, 184, 90, 0.16);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.member-check input {
    width: auto;
    margin-top: 3px;
    transform: scale(1.25);
}

.member-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 24px;
}

.primary-club-btn,
.secondary-club-btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    cursor: pointer;
}

.primary-club-btn {
    background: linear-gradient(180deg, #f3d776, #b99533);
    color: #090806;
}

.primary-club-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.secondary-club-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(214, 184, 90, 0.24);
}

.club-room {
    display: grid;
    grid-template-columns:
        minmax(520px, 1.25fr) minmax(360px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.choice-column {
    min-width: 0;
    overflow: hidden;
}

.choice-scroll {
    display: block;
    min-height: 360px;
    max-height: calc(100vh - 390px);
    overflow-y: auto;
    overflow-x: hidden;
}

.stripe-panel {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(214, 184, 90, .24);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
}

.stripe-panel-header {
    margin-bottom: 14px;
}

.stripe-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.stripe-card-shell {
    min-height: 72px;
    padding: 16px;
    border: 1px solid rgba(214, 184, 90, .32);
    border-radius: 14px;
    background: rgba(0, 0, 0, .22);
    display: flex;
    align-items: center;
}

#card-element {
    width: 100%;
    min-height: 44px;
}

#card-element iframe {
    min-height: 44px !important;
}

.stripe-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-status {
    color: var(--muted);
    font-weight: 700;
}

.stripe-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.payment-status {
    color: var(--muted);
    font-weight: 700;
}

/* ==========================================
   ORDER SUCCESS MODAL
========================================== */

.success-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.success-modal.hidden {
    display: none;
}

.success-card {
    width: 560px;
    max-width: 92vw;

    background:
        linear-gradient(145deg,
            #16110d,
            #261914);

    color: #f8efe3;

    border: 1px solid rgba(197, 143, 72, 0.75);
    border-radius: 20px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45);
}

.success-card h2 {
    margin-bottom: 12px;

    color: #d7a35d;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.success-message {
    margin-bottom: 12px;

    color: #f8efe3;

    font-size: 18px;
}

#successOrderNumber {
    color: #ffffff;

    font-size: 28px;
    font-weight: 700;

    margin-bottom: 24px;
}

#successCountdown {
    margin-top: 24px;

    color: #f3d7aa;

    font-size: 16px;
    font-weight: 600;
}

/* end modal css */

/* wine glass animation */
.wine-glass-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wine-svg {
    width: 220px;
    max-width: 45vw;
    height: auto;
    display: block;
}

.wine-fill-svg {
    transition: height 10s linear, y 10s linear;
}

/* ==========================================
   SOCIETY MEMBERSHIP GALLERY
========================================== */

.tier-list {
    grid-template-columns: 1fr;
    gap: 18px;
}

.society-tier-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-code {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* font size of the tier names start   */
.tier-rank {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
}

.tier-rank.bronze {
    color: #cd7f32;
}

.tier-rank.silver {
    color: #c0c0c0;
}

.tier-rank.gold {
    color: #ffd700;
}

.tier-rank.diamond {
    color: #7dd3fc;
}

/* for size of tier name end  */

.tier-price {
    color: var(--text);
    font-weight: 900;
}

.tier-benefits {
    display: grid;
    gap: 4px;
}

.tier-fomo {
    margin-top: 6px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;

    padding: 12px 14px;

    border: 1px dashed rgba(214, 184, 90, 0.28);
    border-radius: 14px;

    background: rgba(214, 184, 90, 0.045);
}

.tier-fomo-content {
    flex: 1;
}

.tier-fomo-content p {
    margin: 2px 0;
}

.tier-fomo-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(214, 184, 90, .45);
    background: rgba(214, 184, 90, .14);
    color: #d6b85a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tier-fomo-btn:hover {
    background: rgba(214, 184, 90, .24);
}

.tier-select-btn {
    margin-top: auto;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(214, 184, 90, 0.26);
    font-weight: 900;
    cursor: pointer;
}

.tier-column {
    padding: 24px;
}

.society-tier-card {
    gap: 14px;
}

.tier-card {
    padding: 22px;
}

.tier-card h3 {
    font-size: 20px;
}

.tier-benefits p,
.tier-fomo p {
    font-size: 14px;
}

.tier-card.active .tier-select-btn {
    background: linear-gradient(180deg, #f3d776, #b99533);
    color: #090806;
}


/* responsive css section  */

@media (max-width: 1200px) {
    .club-shell {
        padding: 24px 24px 130px;
    }

    .club-room {
        grid-template-columns: 1fr;
    }

    .tier-column,
    .choice-column {
        min-height: auto;
    }

    .tier-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-scroll {
        max-height: none;
        height: auto;
        min-height: 0;
    }

    .club-status-bar {
        left: 24px;
        right: 24px;
        grid-template-columns: 1fr 1fr;
    }

    .club-status-bar button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .club-shell {
        padding: 16px 14px 160px;
    }

    .club-hero {
        padding: 24px 20px;
    }

    .club-hero h1 {
        font-size: 28px;
        letter-spacing: 0.12em;
    }

    .eyebrow {
        letter-spacing: 0.22em;
    }

    .tier-list {
        grid-template-columns: 1fr;
    }

    .club-status-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .member-step {
        grid-template-columns: 1fr;
    }

    .member-form-grid {
        grid-template-columns: 1fr;
    }

    .member-actions,
    .stripe-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-club-btn,
    .secondary-club-btn,
    .club-status-bar button {
        width: 100%;
    }

    .selection-review,
    .member-form-panel {
        padding: 20px;
    }

    .selection-review h2,
    .member-form-panel h2 {
        font-size: 22px;
        letter-spacing: 0.06em;
    }

    .member-form-grid input {
        font-size: 16px;
        padding: 15px 14px;
    }

    .stripe-panel {
        padding: 18px;
    }

    .stripe-card-shell {
        padding: 14px;
    }

    #card-element {
        min-height: 48px;
    }
}

/* =========================================================
   RESPONSIVE CLUB ROOM — 2026-07-20
   Readable at native browser zoom across desktop and mobile.
   This block intentionally comes last to replace earlier
   fixed-viewport and compact-font overrides.
   ========================================================= */

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

body {
    font-size: clamp(16px, 0.32vw + 13px, 18px);
}

.club-shell {
    padding-inline: clamp(18px, 2.2vw, 42px);
}

.club-hero {
    padding: clamp(20px, 2vw, 34px) clamp(22px, 2.5vw, 42px);
}

.club-hero h1 {
    font-size: clamp(2rem, 2.25vw, 3rem);
    line-height: 1.08;
    letter-spacing: clamp(0.08em, 0.7vw, 0.18em);
}

.hero-copy {
    max-width: 980px;
    font-size: clamp(1rem, 0.3vw + 0.9rem, 1.2rem);
    line-height: 1.55;
}

.eyebrow {
    font-size: clamp(0.78rem, 0.18vw + 0.72rem, 0.92rem);
    letter-spacing: 0.24em;
}

.club-room {
    grid-template-columns: minmax(460px, 1.25fr) minmax(380px, 1fr);
    gap: clamp(16px, 1.25vw, 24px);
}

.tier-column,
.choice-column {
    padding: clamp(18px, 1.35vw, 26px);
}

.tier-column {
    position: relative;
}

.tier-column::after {
    content: "Scroll for more  ↓";
    position: absolute;
    top: 18px;
    right: 28px;
    z-index: 3;
    padding: 6px 10px;
    border: 1px solid rgba(214, 184, 90, 0.5);
    border-radius: 999px;
    background: rgba(5, 4, 3, 0.9);
    color: #f1d978;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.tier-column h2,
.choice-column h2 {
    font-size: clamp(1rem, 0.3vw + 0.9rem, 1.3rem);
    line-height: 1.25;
    letter-spacing: 0.16em;
}

.column-header p {
    font-size: clamp(0.95rem, 0.18vw + 0.9rem, 1.1rem);
    line-height: 1.45;
}

.tier-list,
.choice-scroll,
body.member-details-open .selection-review,
body.member-details-open .member-form-panel {
    scrollbar-width: auto;
    scrollbar-color: #d6b85a rgba(255, 255, 255, 0.08);
    scrollbar-gutter: stable;
}

.tier-list::-webkit-scrollbar,
.choice-scroll::-webkit-scrollbar,
body.member-details-open .selection-review::-webkit-scrollbar,
body.member-details-open .member-form-panel::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.tier-list::-webkit-scrollbar-track,
.choice-scroll::-webkit-scrollbar-track,
body.member-details-open .selection-review::-webkit-scrollbar-track,
body.member-details-open .member-form-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(214, 184, 90, 0.2);
    border-radius: 999px;
}

.tier-list::-webkit-scrollbar-thumb,
.choice-scroll::-webkit-scrollbar-thumb,
body.member-details-open .selection-review::-webkit-scrollbar-thumb,
body.member-details-open .member-form-panel::-webkit-scrollbar-thumb {
    min-height: 44px;
    background: linear-gradient(180deg, #f1d978, #b8912f);
    border: 2px solid #17140d;
    border-radius: 999px;
}

.tier-list::-webkit-scrollbar-thumb:hover,
.choice-scroll::-webkit-scrollbar-thumb:hover,
body.member-details-open .selection-review::-webkit-scrollbar-thumb:hover,
body.member-details-open .member-form-panel::-webkit-scrollbar-thumb:hover {
    background: #f6df7c;
}

.tier-column .tier-card {
    padding: clamp(16px, 1vw, 22px) !important;
}

.tier-column .tier-rank {
    font-size: clamp(1.08rem, 0.28vw + 1rem, 1.35rem) !important;
    line-height: 1.25 !important;
}

.tier-column .tier-code,
.tier-name,
.tier-column .tier-price,
.tier-column .tier-discount {
    font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.15rem) !important;
    line-height: 1.35 !important;
}

.tier-column .tier-experience-benefits h4 {
    font-size: clamp(0.95rem, 0.18vw + 0.9rem, 1.1rem) !important;
    line-height: 1.35;
}

.tier-column .tier-experience-benefits div,
.tier-column .tier-fomo p,
.tier-fomo-content p,
.tier-fomo-content span {
    font-size: clamp(0.88rem, 0.17vw + 0.84rem, 1.02rem) !important;
    line-height: 1.4 !important;
}

.tier-select-btn.compact,
.tier-fomo-btn,
.tier-select-btn {
    min-width: 128px !important;
    min-height: 46px !important;
    font-size: 0.95rem !important;
}

.choice-card {
    min-height: 74px;
    padding: clamp(16px, 1vw, 20px) !important;
}

.choice-card label {
    min-height: 44px;
    align-items: center;
}

.choice-card input {
    width: 20px;
    height: 20px;
    margin: 0;
    transform: none;
    accent-color: #d6b85a;
}

.choice-card strong {
    font-size: clamp(1rem, 0.2vw + 0.95rem, 1.18rem) !important;
    line-height: 1.35;
}

.choice-card small,
.choice-pill {
    font-size: clamp(0.82rem, 0.16vw + 0.78rem, 0.96rem) !important;
    line-height: 1.4;
}

.club-status-bar {
    min-height: 72px;
    padding: 12px clamp(16px, 1.25vw, 24px);
}

.club-status-bar span {
    font-size: 0.82rem;
}

.club-status-bar strong {
    font-size: 1.05rem;
}

.club-status-bar button {
    min-height: 48px;
    padding-inline: 24px;
    font-size: 0.95rem;
}

/* Laptop: tier choice gets the full row; wines and events share the next row. */
@media (min-width: 1100px) and (max-width: 1439px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .club-shell {
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .club-room {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible !important;
    }

    .tier-column {
        grid-column: 1 / -1;
        height: auto !important;
        min-height: 0 !important;
    }

    .tier-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-height: min(720px, 72dvh);
    }

    .choice-column {
        height: min(760px, 76dvh) !important;
        min-height: 620px !important;
    }

    .choice-scroll {
        height: auto !important;
    }

    .club-status-bar {
        position: sticky !important;
        left: auto;
        right: auto;
        bottom: 0;
        margin-top: 20px;
    }
}

/* Tablet and compact laptop: readable sequential panels, never a squeezed grid. */
@media (min-width: 769px) and (max-width: 1099px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .club-shell {
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .club-room {
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }

    .tier-column,
    .choice-column {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .tier-list,
    .choice-scroll {
        height: auto !important;
        max-height: min(680px, 68dvh);
        min-height: 340px;
    }

    .club-status-bar {
        position: sticky !important;
        left: auto;
        right: auto;
        bottom: 0;
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .tier-column::after {
        display: none;
    }

    .tier-column h2,
    .choice-column h2 {
        font-size: 1.08rem !important;
    }

    .choice-card strong {
        font-size: 1rem !important;
    }

    .choice-card small {
        font-size: 0.88rem !important;
    }
}

/* Larger membership-tier typography. The tier list scrolls, so clarity wins. */

.tier-column .tier-rank {
    font-size: clamp(1.45rem, 0.5vw + 1.25rem, 1.8rem) !important;
}

.tier-column .tier-code,
.tier-column .tier-name {
    font-size: clamp(1.2rem, 0.35vw + 1.08rem, 1.48rem) !important;
}

.tier-column .tier-price,
.tier-column .tier-discount {
    font-size: clamp(1.12rem, 0.3vw + 1rem, 1.35rem) !important;
}

.tier-column .tier-entitlements {
    margin-top: 18px;
    padding-block: 16px;
    border-bottom: 1px solid rgba(214, 184, 90, 0.22);
}

.tier-column .tier-entitlements h4,
.tier-column .tier-experience-benefits h4 {
    margin: 0 0 12px !important;
    font-size: clamp(1.22rem, 0.35vw + 1.1rem, 1.5rem) !important;
    line-height: 1.3 !important;
    letter-spacing: 0.05em;
}

.tier-column .tier-entitlements>div,
.tier-column .tier-experience-benefits>div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 7px !important;
    font-size: clamp(1.05rem, 0.28vw + 0.98rem, 1.28rem) !important;
    line-height: 1.42 !important;
}

.tier-column .tier-entitlements strong,
.tier-column .tier-experience-benefits strong,
.tier-column .tier-benefit-on,
.tier-column .tier-benefit-off {
    font-size: inherit !important;
}

.tier-column .tier-fomo-content>span {
    display: block;
    font-size: clamp(1.02rem, 0.24vw + 0.96rem, 1.2rem) !important;
    line-height: 1.35 !important;
}

.tier-column .tier-fomo-content p {
    font-size: clamp(1rem, 0.22vw + 0.94rem, 1.16rem) !important;
    line-height: 1.45 !important;
}

.tier-column .tier-select-btn.compact {
    min-width: 142px !important;
    min-height: 52px !important;
    font-size: 1.05rem !important;
}

@media (max-width: 768px) {
    .tier-column .tier-rank {
        font-size: 1.45rem !important;
    }

    .tier-column .tier-code,
    .tier-column .tier-name,
    .tier-column .tier-price,
    .tier-column .tier-discount {
        font-size: 1.08rem !important;
    }

    .tier-column .tier-entitlements h4,
    .tier-column .tier-experience-benefits h4 {
        font-size: 1.2rem !important;
    }

    .tier-column .tier-entitlements>div,
    .tier-column .tier-experience-benefits>div,
    .tier-column .tier-fomo-content p {
        font-size: 1rem !important;
    }
}

.tier-price-block {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.tier-price,
.tier-discount {
    color: var(--text);
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
}

/* to help iphone render  */

@media (max-width: 640px) {

    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .club-shell {
        min-height: auto;
        padding-bottom: 220px;
    }

    .club-room,
    .member-step {
        min-height: auto;
        overflow: visible;
    }

    .tier-column,
    .choice-column,
    .selection-review,
    .member-form-panel {
        min-height: auto;
        overflow: visible;
    }

    .choice-scroll {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .club-status-bar {
        position: sticky;
        margin-top: 24px;
    }
}

.tier-experience-benefits {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 241, 232, 0.18);
}

.tier-experience-benefits h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tier-experience-benefits div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tier-benefit-on {
    color: #22c55e;
    font-weight: 700;
    white-space: nowrap;
}

.tier-benefit-off {
    color: #ef4444;
    font-weight: 700;
    white-space: nowrap;
}


/* making the three columns independant andmiddle and RHS colum scrollable iof required  */


/* CUSTOMER CLUB ROOM 3-COLUMN FIXED VIEWPORT LAYOUT */

body {
    overflow: hidden;
}

.club-shell {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.club-hero {
    flex: 0 0 auto;
    padding-top: 14px;
    padding-bottom: 12px;
}

.club-room {
    flex: 1 1 auto;
    min-height: 0;

    display: grid;
    grid-template-columns: 43% 32% 25%;
    gap: 18px;

    overflow: hidden;
}

.tier-column,
.choice-column {
    min-height: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.tier-column h2,
.column-header {
    flex: 0 0 auto;
}

.tier-list {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
}

.choice-scroll {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
    padding-bottom: 24px;
}

.club-status-bar {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 50;
}

/* COMPACT TIER CARDS IN LEFT COLUMN */

.tier-column .tier-card {
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    min-height: auto !important;
}

.tier-column .tier-rank {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
}

.tier-column .tier-card-top {
    margin-bottom: 6px !important;
}

.tier-column .tier-card h3 {
    margin: 4px 0 10px !important;
    font-size: 1.05rem !important;
}

.tier-column .tier-experience-benefits {
    margin-top: 8px !important;
    padding-top: 8px !important;
}

.tier-column .tier-experience-benefits h4 {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
}

.tier-column .tier-experience-benefits div {
    margin-bottom: 3px !important;
    font-size: 0.78rem !important;
}

.tier-column .tier-fomo {
    margin-top: 8px !important;
    padding: 8px 10px !important;
}

.tier-column .tier-fomo span {
    font-size: 0.68rem !important;
}

.tier-column .tier-fomo p {
    margin: 3px 0 !important;
    font-size: 0.75rem !important;
}

.tier-column .tier-select-btn {
    margin-top: 8px !important;
    padding: 9px 10px !important;
    font-size: 0.78rem !important;
}

/* FINAL COMPACT TIER CARD STRUCTURE */

.tier-column .tier-card {
    padding: 12px 14px !important;
}

.tier-compact-header {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.tier-title-line,
.tier-price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.tier-title-line {
    margin-bottom: 5px;
}

.tier-column .tier-rank {
    display: inline !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.1 !important;
}

.tier-column .tier-code {
    color: #c9a84c !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
}

.tier-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
}

.tier-dot {
    color: #c9a84c;
    font-weight: 900;
}

.tier-column .tier-price {
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

.tier-column .tier-discount {
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    color: #52b788 !important;
}

.tier-column .tier-card-top,
.tier-column .tier-card>h3,
.tier-column .tier-card>.tier-select-btn {
    display: none !important;
}

.tier-fomo {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
}

.tier-fomo-content {
    flex: 1;
}

.tier-fomo-content span {
    margin-bottom: 5px !important;
}

.tier-fomo-content p {
    margin: 2px 0 !important;
    font-size: 0.74rem !important;
}

.tier-select-btn.compact {
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 0.72rem !important;
    border-radius: 10px !important;
}

/* =========================================================
   FINAL MOBILE OVERRIDE — CUSTOMER CLUB ROOM
   Must stay at very bottom because desktop fixed-viewport
   rules appear late in this file.
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        position: static !important;
    }

    .club-shell {
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
        padding: 14px 12px 28px !important;
    }

    .club-hero {
        padding: 22px 18px !important;
        margin-bottom: 16px !important;
        border-radius: 18px !important;
    }

    .club-hero h1 {
        font-size: 27px !important;
        line-height: 1.18 !important;
        letter-spacing: 0.08em !important;
    }

    .hero-copy {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .eyebrow {
        font-size: 11px !important;
        letter-spacing: 0.2em !important;
    }

    .club-room {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .tier-column,
    .choice-column {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .tier-list,
    .choice-scroll {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .tier-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .tier-card {
        padding: 18px !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
    }

    .tier-compact-header {
        margin-bottom: 10px !important;
    }

    .tier-title-line,
    .tier-price-line {
        gap: 8px !important;
    }

    .tier-column .tier-rank {
        font-size: 1.15rem !important;
    }

    .tier-name {
        font-size: 1rem !important;
    }

    .tier-column .tier-price,
    .tier-column .tier-discount {
        font-size: 0.95rem !important;
    }

    .tier-fomo {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .tier-select-btn.compact,
    .tier-fomo-btn,
    .tier-select-btn {
        width: 100% !important;
        flex: none !important;
        min-height: 50px !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
    }

    .choice-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .choice-card label {
        gap: 14px !important;
    }

    .choice-card input {
        transform: scale(1.35) !important;
    }

    .choice-card strong {
        font-size: 16px !important;
    }

    .member-step {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .selection-review,
    .member-form-panel {
        padding: 18px !important;
        border-radius: 18px !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .selection-review h2,
    .member-form-panel h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .member-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .member-form-grid input {
        min-height: 52px !important;
        font-size: 16px !important;
    }

    .stripe-panel {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .stripe-actions,
    .member-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .primary-club-btn,
    .secondary-club-btn {
        width: 100% !important;
        min-height: 52px !important;
        font-size: 16px !important;
    }

    .club-status-bar {
        position: sticky !important;
        left: auto !important;
        right: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        margin-top: 18px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .club-status-bar button {
        width: 100% !important;
        min-height: 52px !important;
        font-size: 16px !important;
    }
}

/* =========================================================
   FINAL MOBILE OVERRIDE — CUSTOMER CLUB ROOM
   Must stay at very bottom because desktop fixed-viewport
   rules appear late in this file. end
   ========================================================= */



/* Required action highlight start */
.needs-attention {
    border: 3px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
}

.input-needs-attention {
    border: 3px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
}

/* Required action highlight end */



.success-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.clock-face {
    font-size: 34px;
    animation: clockPulse 1s infinite ease-in-out;
}

.clock-number {
    font-size: 42px;
    font-weight: 800;
    color: #c9a84c;
}

@keyframes clockPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.65;
    }
}

.account-required-clock {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 14px;
    background: rgba(25, 28, 29, 0.72);
    text-align: center;
}

.account-required-title {
    font-weight: 700;
    color: #f5f1e8;
    margin-bottom: 8px;
}

.account-clock-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.account-clock-face {
    font-size: 28px;
    animation: clockPulse 1s infinite ease-in-out;
}

.account-clock-number {
    font-size: 34px;
    font-weight: 800;
    color: #c9a84c;
}

.account-required-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(245, 241, 232, 0.72);
}

/* formatting the wine profiles against each wine */

.wine-profile-chips {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.wine-profile-chip {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #111;
}

.profile-low {
    background: #4ade80;
}

.profile-medium {
    background: #bef264;
}

.profile-medium-plus {
    background: #facc15;
}

.profile-high {
    background: #f87171;
}

/* =========================================================
   CLUB CHECKOUT — SIMPLE / SPLIT SHIPMENT PLANNER
   ========================================================= */

.shipment-plan-block {
    display: grid;
    gap: 14px;
    border-color: rgba(214, 184, 90, 0.42);
    background:
        linear-gradient(180deg,
            rgba(214, 184, 90, 0.07),
            rgba(255, 255, 255, 0.025));
}

.shipment-plan-block>p {
    margin: 0;
}

.shipment-plan-block .member-check {
    width: 100%;
    align-items: center;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.shipment-plan-block .member-check:hover {
    border-color: rgba(214, 184, 90, 0.5);
    background: rgba(214, 184, 90, 0.06);
}

.shipment-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shipment-mode-tab {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(214, 184, 90, 0.25);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.shipment-mode-tab:has(input:checked) {
    border-color: var(--gold);
    background: rgba(214, 184, 90, 0.11);
    box-shadow: 0 0 0 2px rgba(214, 184, 90, 0.08);
}

.shipment-mode-tab span,
.shipment-mode-tab small {
    display: block;
}

.shipment-mode-tab span {
    color: var(--text);
    font-weight: 700;
}

.shipment-mode-tab small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 400;
}

.review-wine-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.delivery-plan-first { margin-bottom: 20px; }
.delivery-plan-first > h2,
.selection-review > h2 { color: #3d2d1c; }
.shipping-fields[hidden] { display: none !important; }

@media (max-width: 760px) {
    .review-wine-list { grid-template-columns: 1fr; }
}

.review-wine-list>li {
    display: grid;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(214, 184, 90, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.inline-shipment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.inline-shipment-tabs button {
    padding: 8px 9px;
    border: 1px solid rgba(214, 184, 90, 0.26);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
}

.inline-shipment-tabs button.active {
    border-color: var(--gold);
    background: linear-gradient(180deg, #f3d776, #b99533);
    color: #090806;
    font-weight: 800;
}

.shipment-confirmation-card {
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid rgba(214, 184, 90, 0.48);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(214, 184, 90, 0.12), rgba(255, 255, 255, 0.025));
}

.shipment-confirmation-card h3 {
    margin: 0;
    color: var(--text);
}

.shipment-confirmation-summary {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.shipment-confirmation-summary span,
.shipment-confirmation-summary small {
    color: var(--muted);
}

.shipment-confirm-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--text);
    line-height: 1.45;
}

.shipment-confirm-check input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.shipment-change-btn {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.shipment-plan-block .member-check:has(input:checked) {
    border-color: var(--gold);
    background: rgba(214, 184, 90, 0.1);
    box-shadow:
        0 0 0 2px rgba(214, 184, 90, 0.08);
}

.shipment-plan-block input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gold);
}

.shipment-delivery-gate {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(214, 184, 90, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.35;
}

.shipping-window-notice {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid rgba(197, 157, 55, .6);
    border-left: 4px solid #d0aa43;
    border-radius: 10px;
    background: rgba(201, 165, 74, .11);
    color: #f7efdf;
    line-height: 1.45;
}
.shipping-window-notice small { display:block; color:#d7cdbb; margin-top:4px; }

.shipment-delivery-gate input {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.shipment-delivery-gate:has(input:checked) {
    border-color: var(--gold);
    background: rgba(214, 184, 90, 0.1);
}

.shipment-plan-block.shipment-approved {
    border: 3px solid #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16) !important;
}

.shipment-plan-block.shipment-approved .shipment-delivery-gate {
    border-color: rgba(34, 197, 94, 0.62);
    background: rgba(34, 197, 94, 0.09);
}

.shipment-plan-block input:disabled,
.shipment-plan-block select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.split-shipment-wine-list {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.split-shipment-wine-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(150px, 190px);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(214, 184, 90, 0.2);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
}

.split-shipment-wine-row strong {
    display: block;
    color: var(--text);
    line-height: 1.35;
}

.split-shipment-wine-row small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.split-shipment-wine-row label {
    display: grid;
    gap: 7px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.split-shipment-wine-row select {
    width: 100%;
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    border: 1px solid rgba(214, 184, 90, 0.34);
    border-radius: 12px;
    background: #13110e;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.split-shipment-wine-row select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(214, 184, 90, 0.13);
}

#shipmentPlanStatus {
    min-height: 22px;
    margin-top: 2px;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    background: rgba(214, 184, 90, 0.06);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .shipment-mode-tabs {
        grid-template-columns: 1fr;
    }
    .split-shipment-wine-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .split-shipment-wine-row select {
        width: 100%;
    }

    .shipment-plan-block .member-check {
        padding: 12px;
    }
}

/* =========================================================
   MEMBERSHIP REVIEW — INDEPENDENT SCROLLING COLUMNS
   ========================================================= */

body.member-details-open {
    overflow: hidden;
}

body.member-details-open .club-shell {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

body.member-details-open .member-step {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
    align-items: stretch;
}

body.member-details-open .selection-review,
body.member-details-open .member-form-panel {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 48px;
    scrollbar-gutter: stable;
}

body.member-details-open .selection-review {
    overscroll-behavior: contain;
}

body.member-details-open .member-form-panel {
    overscroll-behavior: contain;
}

/* Visible scrollbar for the two review columns */

body.member-details-open .selection-review::-webkit-scrollbar,
body.member-details-open .member-form-panel::-webkit-scrollbar {
    width: 9px;
}

body.member-details-open .selection-review::-webkit-scrollbar-track,
body.member-details-open .member-form-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
    border-radius: 999px;
}

body.member-details-open .selection-review::-webkit-scrollbar-thumb,
body.member-details-open .member-form-panel::-webkit-scrollbar-thumb {
    background: rgba(214, 184, 90, 0.42);
    border-radius: 999px;
}

body.member-details-open .selection-review::-webkit-scrollbar-thumb:hover,
body.member-details-open .member-form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 184, 90, 0.65);
}

/* Mobile uses normal page scrolling */

@media (max-width: 640px) {
    body.member-details-open {
        overflow-y: auto;
    }

    body.member-details-open .club-shell {
        height: auto;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
    }

    body.member-details-open .member-step {
        height: auto;
        overflow: visible;
    }

    body.member-details-open .selection-review,
    body.member-details-open .member-form-panel {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================
   FINAL TIER TYPOGRAPHY OVERRIDE
   Keep last: older compact-card rules above intentionally use !important.
   ========================================================= */

.tier-column .tier-rank {
    font-size: clamp(1.45rem, 1.25vw, 1.8rem) !important;
    line-height: 1.16 !important;
}

.tier-column .tier-code,
.tier-column .tier-name {
    font-size: clamp(1.15rem, 1vw, 1.42rem) !important;
    line-height: 1.25 !important;
}

.tier-column .tier-price,
.tier-column .tier-discount {
    font-size: clamp(1.08rem, 0.95vw, 1.32rem) !important;
    line-height: 1.35 !important;
}

.tier-column .tier-entitlements h4,
.tier-column .tier-experience-benefits h4 {
    font-size: clamp(1.18rem, 1vw, 1.45rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.65rem !important;
}

.tier-column .tier-entitlements > div,
.tier-column .tier-experience-benefits > div {
    font-size: clamp(1.02rem, 0.88vw, 1.25rem) !important;
    line-height: 1.42 !important;
    margin-bottom: 0.28rem !important;
}

.tier-column .tier-fomo-content > span {
    font-size: clamp(0.96rem, 0.82vw, 1.16rem) !important;
    line-height: 1.3 !important;
}

.tier-column .tier-fomo-content p {
    font-size: clamp(0.98rem, 0.84vw, 1.18rem) !important;
    line-height: 1.38 !important;
    margin: 0.25rem 0 !important;
}

.tier-column .tier-select-btn.compact {
    flex-basis: 132px !important;
    width: 132px !important;
    min-height: 46px !important;
    font-size: 0.95rem !important;
}

@media (max-width: 768px) {
    .tier-column .tier-rank {
        font-size: 1.4rem !important;
    }

    .tier-column .tier-code,
    .tier-column .tier-name {
        font-size: 1.12rem !important;
    }

    .tier-column .tier-entitlements > div,
    .tier-column .tier-experience-benefits > div,
    .tier-column .tier-fomo-content p {
        font-size: 1rem !important;
    }

    .tier-column .tier-select-btn.compact {
        width: 100% !important;
        min-height: 50px !important;
    }
}

/* =========================================================
   FINAL DESKTOP COLUMN FIT
   Percentage tracks plus fixed gaps previously exceeded 100%,
   clipping the event panel at the right edge.
   ========================================================= */

@media (min-width: 1440px) {
    .club-room {
        grid-template-columns:
            minmax(0, 1.12fr)
            minmax(0, 1fr)
            minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
    }

    .tier-column,
    .choice-column {
        min-width: 0;
    }
}

/* Allocation language beneath the annual bottle total. */
.tier-column .allocation-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin: -0.05rem 0 0.55rem;
    padding: 0.5rem 0.65rem;
    border-left: 2px solid rgba(214, 184, 90, 0.58);
    background: rgba(214, 184, 90, 0.055);
    color: rgba(245, 241, 232, 0.82);
    font-family: Arial, sans-serif;
    font-size: clamp(0.86rem, 0.74vw, 1rem);
    line-height: 1.35;
}

.tier-column .allocation-breakdown span {
    white-space: nowrap;
}

.tier-column .allocation-breakdown strong {
    color: #f1d978;
    font-size: 1.05em !important;
}

@media (max-width: 640px) {
    .tier-column .allocation-breakdown {
        gap: 0.35rem 0.7rem;
        font-size: 0.86rem;
    }
}

/* Compact, delivery-first membership review. */
body.member-details-open .selection-summary {
    gap: 10px;
}

body.member-details-open .selection-review,
body.member-details-open .member-form-panel {
    padding: 22px;
}

body.member-details-open .selection-review h2,
body.member-details-open .member-form-panel h2 {
    margin-bottom: 14px;
}

.selection-portfolio .summary-tier-caption {
    margin: -0.15rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.selection-portfolio .review-wine-list {
    gap: 7px;
}

.selection-portfolio .review-wine-list > li {
    gap: 6px;
    padding: 8px 10px;
}

.review-wine-name {
    display: grid;
    gap: 2px;
    color: var(--text);
    line-height: 1.28;
}

.review-wine-name small {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.member-details-open .shipment-plan-block {
    gap: 9px;
    padding: 13px;
}

body.member-details-open .shipment-plan-block > p {
    font-size: 0.9rem;
    line-height: 1.35;
}

body.member-details-open .shipment-mode-tab {
    padding: 10px;
}

body.member-details-open #shipmentPlanStatus {
    padding: 8px 10px;
    font-size: 0.86rem;
}

.event-review-block ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin: 0;
    padding-left: 17px;
}

.event-review-block li {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.28;
}

.email-status.email-guidance {
    grid-column: 1 / -1;
    margin: -6px 0 0;
    color: #f1d978;
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .event-review-block ul {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MEMBER WORKFLOW READABILITY PASS — 2026-08-06
   Use the available panel space for legible tier, wine, and
   event choices while keeping every list independently scrollable.
   ========================================================= */

.tier-column,
.choice-column {
    position: relative;
    padding: clamp(18px, 1.4vw, 26px) !important;
}

.tier-column h2,
.choice-column h2 {
    margin: 0 0 0.65rem !important;
    font-size: clamp(1.25rem, 1.15vw, 1.55rem) !important;
    line-height: 1.2 !important;
}

.column-header {
    margin-bottom: 0.75rem !important;
}

.column-header p {
    margin: 0 !important;
    font-size: clamp(1.05rem, 0.9vw, 1.25rem) !important;
    line-height: 1.4 !important;
}

.tier-column .tier-card {
    padding: clamp(14px, 1.1vw, 20px) !important;
    margin-bottom: 14px !important;
}

.tier-column .tier-compact-header {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.tier-column .tier-entitlements {
    margin-top: 0.7rem !important;
    padding-block: 0.7rem !important;
}

.tier-column .tier-experience-benefits {
    margin-top: 0.7rem !important;
    padding-top: 0.7rem !important;
}

.tier-column .tier-entitlements h4,
.tier-column .tier-experience-benefits h4 {
    margin-bottom: 0.5rem !important;
}

.tier-column .tier-fomo {
    margin-top: 0.75rem !important;
    padding: 0.75rem 0.9rem !important;
}

/* Wine and event cards: approximately 50% larger than the old compact text. */
.choice-card {
    min-height: 88px !important;
    margin-bottom: 12px !important;
    padding: clamp(18px, 1.25vw, 24px) !important;
}

.choice-card label {
    min-height: 52px !important;
    gap: 16px !important;
}

.choice-card input {
    flex: 0 0 auto;
    width: 24px !important;
    height: 24px !important;
}

.choice-card strong {
    font-size: clamp(1.4rem, 1.25vw, 1.65rem) !important;
    line-height: 1.25 !important;
}

.choice-card small,
.choice-pill {
    font-size: clamp(1.05rem, 0.9vw, 1.25rem) !important;
    line-height: 1.35 !important;
}

.choice-scroll > p {
    margin: 0.5rem 0;
    font-size: clamp(1.15rem, 1vw, 1.35rem);
    line-height: 1.45;
}

/* Keep the scroll affordance visible instead of relying on thin OS scrollbars. */
.choice-column::after {
    content: "Scroll for more  ↓";
    position: absolute;
    right: 26px;
    top: 18px;
    z-index: 4;
    padding: 6px 10px;
    border: 1px solid rgba(214, 184, 90, 0.55);
    border-radius: 999px;
    background: rgba(5, 4, 3, 0.92);
    color: #f1d978;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.tier-list,
.choice-scroll {
    padding-right: 14px !important;
    overscroll-behavior: contain;
    scrollbar-width: auto !important;
    scrollbar-color: #f1d978 rgba(255, 255, 255, 0.12) !important;
}

.tier-list::-webkit-scrollbar,
.choice-scroll::-webkit-scrollbar {
    width: 14px !important;
}

@media (min-width: 769px) and (max-width: 1099px) {
    .tier-list,
    .choice-scroll {
        min-height: 360px !important;
        max-height: min(720px, 72dvh) !important;
        overflow-y: auto !important;
    }
}

/* Tier-description panel: 24% larger type on tablet and desktop. */
@media (min-width: 769px) {
    .tier-column .tier-rank {
        font-size: clamp(1.8rem, 1.55vw, 2.23rem) !important;
        line-height: 1.18 !important;
    }

    .tier-column .tier-code,
    .tier-column .tier-name {
        font-size: clamp(1.43rem, 1.24vw, 1.76rem) !important;
        line-height: 1.3 !important;
    }

    .tier-column .tier-price,
    .tier-column .tier-discount {
        font-size: clamp(1.34rem, 1.18vw, 1.64rem) !important;
    }

    .tier-column .tier-entitlements h4,
    .tier-column .tier-experience-benefits h4 {
        font-size: clamp(1.46rem, 1.24vw, 1.8rem) !important;
        margin-bottom: 0.7rem !important;
    }

    .tier-column .tier-entitlements > div,
    .tier-column .tier-experience-benefits > div {
        margin-bottom: 0.42rem !important;
        font-size: clamp(1.27rem, 1.09vw, 1.55rem) !important;
        line-height: 1.48 !important;
    }

    .tier-column .allocation-breakdown {
        gap: 0.65rem 1.25rem;
        padding: 0.7rem 0.8rem;
        font-size: clamp(1.07rem, 0.92vw, 1.24rem) !important;
        line-height: 1.45;
    }

    .tier-column .tier-fomo-content > span {
        font-size: clamp(1.19rem, 1.02vw, 1.44rem) !important;
    }

    .tier-column .tier-fomo-content p {
        margin: 0.35rem 0 !important;
        font-size: clamp(1.22rem, 1.04vw, 1.46rem) !important;
        line-height: 1.45 !important;
    }

    .tier-column .tier-select-btn.compact {
        flex-basis: 164px !important;
        width: 164px !important;
        min-height: 56px !important;
        font-size: 1.18rem !important;
    }
}

@media (max-width: 768px) {
    .choice-column::after {
        display: none;
    }

    .choice-card strong {
        font-size: 1.3rem !important;
    }

    .choice-card small,
    .choice-pill {
        font-size: 1rem !important;
    }
}

/* Keep the account-identity countdown beside the email field on desktop. */
.member-form-grid > .email-status {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    min-width: 0;
    align-items: stretch;
}

.member-form-grid > .email-status .account-required-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 10px 14px;
    text-align: left;
}

.member-form-grid > .email-status:has(.account-required-clock) {
    margin: 0;
}

.member-form-grid > .email-status .account-required-title,
.member-form-grid > .email-status .account-required-subtitle {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.25;
}

.member-form-grid > .email-status .account-clock-row {
    flex: 0 0 auto;
    gap: 5px;
}

.member-form-grid > .email-status .account-clock-face {
    font-size: 1.25rem;
}

.member-form-grid > .email-status .account-clock-number {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .member-form-grid > .email-status {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* More compact member details hierarchy and shipping-address grouping. */
body.member-details-open .member-form-panel > h2 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 1.8vw, 2.2rem);
    letter-spacing: 0.055em;
}

body.member-details-open .selection-review > h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 1.3vw, 1.75rem);
    letter-spacing: 0.055em;
}

body.member-details-open .selection-review > .eyebrow {
    margin-bottom: 6px;
    font-size: 0.72rem;
}

.shipping-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.member-form-grid .shipping-fields input {
    width: 100%;
    border: 1px solid rgba(214, 184, 90, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
}

.member-form-grid .shipping-fields input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 184, 90, 0.13);
}

.shipping-fields .shipping-address {
    grid-column: 1 / -1;
}

.shipping-fields #memberCity,
.shipping-fields #memberState,
.shipping-fields #memberPhone {
    grid-column: span 2;
}

.shipping-fields .shipping-zip,
.shipping-fields .shipping-birth-date {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .shipping-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shipping-fields #memberCity,
    .shipping-fields #memberState,
    .shipping-fields #memberPhone,
    .shipping-fields .shipping-zip,
    .shipping-fields .shipping-birth-date {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .shipping-fields {
        grid-template-columns: 1fr;
    }

    .shipping-fields #memberCity,
    .shipping-fields #memberState,
    .shipping-fields #memberPhone,
    .shipping-fields .shipping-zip,
    .shipping-fields .shipping-birth-date {
        grid-column: 1;
    }
}

/* Split-shipment choices stay beside each wine on desktop. */
.selection-portfolio .review-wine-list > li:has(.inline-shipment-tabs) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.selection-portfolio .inline-shipment-tabs {
    display: flex;
    gap: 5px;
    width: auto;
}

.selection-portfolio .inline-shipment-tabs button {
    min-width: 76px;
    padding: 6px 8px;
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .selection-portfolio .review-wine-list > li:has(.inline-shipment-tabs) {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .selection-portfolio .inline-shipment-tabs {
        width: 100%;
    }

    .selection-portfolio .inline-shipment-tabs button {
        flex: 1;
    }
}

/* =========================================================
   MEMBER DETAILS READABILITY PASS — 2026-08-06
   The review and form columns intentionally scroll instead of
   shrinking an entire membership checkout into one viewport.
   ========================================================= */

@media (min-width: 769px) {
    body.member-details-open .member-step {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: clamp(22px, 1.8vw, 34px);
    }

    body.member-details-open .selection-review,
    body.member-details-open .member-form-panel {
        position: relative;
        padding: clamp(28px, 2.2vw, 40px) !important;
        padding-right: clamp(34px, 2.6vw, 48px) !important;
        padding-bottom: 72px !important;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        scrollbar-width: auto !important;
        scrollbar-color: #f1d978 rgba(255, 255, 255, 0.12) !important;
    }

    body.member-details-open .selection-review::-webkit-scrollbar,
    body.member-details-open .member-form-panel::-webkit-scrollbar {
        width: 14px !important;
    }

    body.member-details-open .selection-review::-webkit-scrollbar-track,
    body.member-details-open .member-form-panel::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(214, 184, 90, 0.22);
    }

    body.member-details-open .selection-review::-webkit-scrollbar-thumb,
    body.member-details-open .member-form-panel::-webkit-scrollbar-thumb {
        min-height: 54px;
        background: linear-gradient(180deg, #f1d978, #b8912f) !important;
        border: 2px solid #17140d;
    }
}

body.member-details-open .selection-review > h2,
body.member-details-open .member-form-panel > h2 {
    margin-bottom: 1.25rem !important;
    font-size: clamp(2.15rem, 2.2vw, 2.85rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.055em !important;
}

body.member-details-open .selection-summary {
    gap: 1.35rem;
}

body.member-details-open .summary-block {
    padding: clamp(20px, 1.5vw, 28px);
}

body.member-details-open .summary-block h3 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.15rem, 1.05vw, 1.4rem) !important;
    line-height: 1.3;
}

body.member-details-open .summary-block p,
body.member-details-open .summary-block li,
.selection-portfolio .summary-tier-caption {
    font-size: clamp(1.25rem, 1.12vw, 1.5rem) !important;
    line-height: 1.5 !important;
}

.selection-portfolio .review-wine-list {
    gap: 0.8rem !important;
}

.selection-portfolio .review-wine-list > li {
    gap: 0.75rem !important;
    padding: clamp(14px, 1vw, 18px) !important;
}

.review-wine-name {
    gap: 0.3rem;
    font-size: clamp(1.25rem, 1.12vw, 1.5rem) !important;
    line-height: 1.4 !important;
}

.review-wine-name small {
    font-size: clamp(1rem, 0.88vw, 1.2rem) !important;
    line-height: 1.35;
}

.selection-portfolio .inline-shipment-tabs {
    gap: 0.6rem;
}

.selection-portfolio .inline-shipment-tabs button {
    min-width: 112px;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    font-size: clamp(1rem, 0.86vw, 1.15rem) !important;
}

body.member-details-open .shipment-plan-block {
    gap: 1rem;
    padding: clamp(20px, 1.5vw, 28px) !important;
}

body.member-details-open .shipment-plan-block > p,
body.member-details-open .shipping-window-notice,
body.member-details-open #shipmentPlanStatus,
body.member-details-open .shipment-delivery-gate {
    font-size: clamp(1.2rem, 1.08vw, 1.45rem) !important;
    line-height: 1.5 !important;
}

body.member-details-open .shipping-window-notice small {
    font-size: 0.9em;
}

body.member-details-open .shipment-mode-tabs {
    gap: 0.85rem;
}

body.member-details-open .shipment-mode-tab {
    gap: 0.8rem;
    padding: clamp(16px, 1.15vw, 22px) !important;
}

body.member-details-open .shipment-mode-tab span {
    font-size: clamp(1.25rem, 1.12vw, 1.5rem) !important;
    line-height: 1.35;
}

body.member-details-open .shipment-mode-tab small {
    font-size: clamp(1rem, 0.9vw, 1.2rem) !important;
    line-height: 1.4;
}

body.member-details-open .shipment-mode-tab input,
body.member-details-open .shipment-delivery-gate input,
body.member-details-open .member-check input {
    width: 24px !important;
    height: 24px !important;
    transform: none !important;
}

.event-review-block ul {
    gap: 0.75rem 1.25rem;
    padding-left: 1.5rem;
}

.event-review-block li {
    font-size: clamp(1.2rem, 1.08vw, 1.45rem) !important;
    line-height: 1.5 !important;
}

body.member-details-open .member-form-grid {
    gap: clamp(16px, 1.2vw, 22px);
}

body.member-details-open .member-form-grid input,
body.member-details-open .member-form-grid .shipping-fields input {
    min-height: 62px;
    padding: 1rem 1.15rem;
    font-size: clamp(1.25rem, 1.1vw, 1.5rem) !important;
}

body.member-details-open .member-check {
    gap: 1rem;
    padding: clamp(18px, 1.25vw, 24px);
    font-size: clamp(1.2rem, 1.08vw, 1.45rem) !important;
    line-height: 1.5;
}

body.member-details-open .shipment-confirmation-card {
    padding: clamp(22px, 1.6vw, 30px);
}

body.member-details-open .shipment-confirmation-card h3 {
    font-size: clamp(1.45rem, 1.3vw, 1.75rem);
}

body.member-details-open .shipment-confirmation-summary,
body.member-details-open .shipment-change-btn {
    font-size: clamp(1.15rem, 1.02vw, 1.35rem);
    line-height: 1.5;
}

body.member-details-open .stripe-panel {
    padding: clamp(22px, 1.6vw, 30px);
}

body.member-details-open .stripe-note,
body.member-details-open .payment-status {
    font-size: clamp(1.15rem, 1.02vw, 1.35rem) !important;
    line-height: 1.5;
}

body.member-details-open .primary-club-btn,
body.member-details-open .secondary-club-btn,
body.member-details-open .shipment-change-btn {
    min-height: 54px;
    padding: 0.9rem 1.4rem;
    font-size: clamp(1.1rem, 0.98vw, 1.3rem) !important;
}

@media (max-width: 768px) {
    body.member-details-open .selection-review > h2,
    body.member-details-open .member-form-panel > h2 {
        font-size: 1.8rem !important;
    }

    body.member-details-open .summary-block p,
    body.member-details-open .summary-block li,
    .selection-portfolio .summary-tier-caption,
    .review-wine-name,
    .event-review-block li,
    body.member-details-open .member-check {
        font-size: 1.1rem !important;
    }
}

/* High-visibility shipment assignment pills. */
.selection-portfolio .inline-shipment-tabs {
    gap: 0.8rem !important;
}

.selection-portfolio .inline-shipment-tabs button {
    min-width: 150px !important;
    min-height: 58px !important;
    padding: 0.85rem 1.15rem !important;
    border: 2px solid rgba(241, 217, 120, 0.78) !important;
    background: rgba(214, 184, 90, 0.1) !important;
    color: #f7e7a1 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 238, 169, 0.08);
    font-size: clamp(1.15rem, 1.02vw, 1.35rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 8px rgba(241, 217, 120, 0.24);
}

.selection-portfolio .inline-shipment-tabs button:hover {
    border-color: #ffe982 !important;
    background: rgba(241, 217, 120, 0.18) !important;
    color: #fff4bd !important;
}

.selection-portfolio .inline-shipment-tabs button.active {
    border-color: #ffe982 !important;
    background: linear-gradient(180deg, #ffe982 0%, #d6b23f 100%) !important;
    color: #090806 !important;
    box-shadow:
        0 0 0 2px rgba(255, 233, 130, 0.18),
        0 5px 18px rgba(214, 178, 63, 0.3) !important;
    text-shadow: none;
}

@media (max-width: 768px) {
    .selection-portfolio .inline-shipment-tabs button {
        min-width: 0 !important;
        min-height: 54px !important;
        font-size: 1.05rem !important;
    }
}

/* High-contrast member form: bright fields, gold actions, red urgent email state. */
body.member-details-open .member-form-grid input,
body.member-details-open .member-form-grid .shipping-fields input {
    border-color: rgba(241, 217, 120, 0.62) !important;
    background: rgba(255, 255, 255, 0.065) !important;
    color: #fffdf5 !important;
    caret-color: #ffe982;
}

body.member-details-open .member-form-grid input::placeholder,
body.member-details-open .member-form-grid .shipping-fields input::placeholder {
    color: rgba(255, 253, 245, 0.9) !important;
    font-weight: 700;
    opacity: 1;
}

body.member-details-open .member-form-grid input:hover,
body.member-details-open .member-form-grid .shipping-fields input:hover {
    border-color: #f1d978 !important;
    background: rgba(214, 184, 90, 0.09) !important;
}

body.member-details-open .member-form-grid input:focus,
body.member-details-open .member-form-grid .shipping-fields input:focus {
    border-color: #ffe982 !important;
    background: rgba(214, 184, 90, 0.12) !important;
    box-shadow: 0 0 0 4px rgba(241, 217, 120, 0.18) !important;
}

body.member-details-open #memberEmail.input-needs-attention {
    border-color: #ff4d55 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.22),
        0 0 22px rgba(239, 68, 68, 0.12) !important;
}

body.member-details-open #memberEmail.input-needs-attention::placeholder {
    color: #fffdf5 !important;
    font-weight: 900;
}

body.member-details-open .email-status.email-guidance {
    align-self: center;
    margin: 0 !important;
    padding: 0.7rem 0.9rem;
    color: #ffe36e !important;
    font-size: clamp(2.1rem, 2.25vw, 2.58rem) !important;
    font-weight: 900 !important;
    line-height: 1.22 !important;
    letter-spacing: 0.005em;
    text-shadow: 0 2px 16px rgba(255, 227, 110, 0.2);
}

body.member-details-open .member-check {
    border-color: rgba(241, 217, 120, 0.52);
    background: rgba(214, 184, 90, 0.055);
}

body.member-details-open .member-check span,
body.member-details-open .shipment-delivery-gate,
body.member-details-open .shipment-change-btn {
    color: #f7df7e !important;
    font-weight: 800;
}

body.member-details-open .shipment-confirmation-summary span,
body.member-details-open .shipment-confirmation-summary small,
body.member-details-open .stripe-note,
body.member-details-open .payment-status {
    color: rgba(255, 253, 245, 0.88) !important;
}

body.member-details-open .shipment-confirmation-card h3,
body.member-details-open .shipment-confirmation-summary strong,
body.member-details-open .stripe-panel-header .eyebrow {
    color: #fffdf5 !important;
}

body.member-details-open .onboarding-panel .shipment-confirmation-card h3 {
    color: #3d2d1c !important;
}

@media (max-width: 768px) {
    body.member-details-open .email-status.email-guidance {
        grid-column: 1 / -1;
        grid-row: auto;
        padding-inline: 0;
        font-size: 1.65rem !important;
    }
}

/* In-context Society account access. */
body.member-account-modal-open {
    overflow: hidden !important;
}

.member-account-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 48px);
}

.member-account-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.member-account-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(760px, 96vw);
    height: min(900px, 94dvh);
    overflow: hidden;
    border: 2px solid rgba(241, 217, 120, 0.72);
    border-radius: 24px;
    background: #100e0b;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.member-account-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(241, 217, 120, 0.28);
    background: linear-gradient(135deg, rgba(214, 184, 90, 0.12), transparent);
}

.member-account-modal__header .eyebrow {
    margin: 0 0 6px;
    color: #ffe36e;
}

.member-account-modal__header h2 {
    margin: 0;
    color: #fffdf5;
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
}

.member-account-modal__header p:last-child {
    margin: 8px 0 0;
    color: rgba(255, 253, 245, 0.82);
    font-size: 1rem;
    line-height: 1.4;
}

.member-account-modal__close {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(241, 217, 120, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffe36e;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.member-account-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3efe8;
}

@media (max-width: 640px) {
    .member-account-modal {
        padding: 0;
    }

    .member-account-modal__dialog {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .member-account-modal__header {
        padding: 16px 18px;
    }
}

/* =========================================================
   MEMBER ONBOARDING — FOUR GATED TABS
   ========================================================= */
body.member-details-open {
    overflow-y: auto !important;
    color: #3d2d1c;
    background: #f6f0e4;
}

body.member-details-open .club-shell {
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    padding: clamp(18px, 3vw, 42px);
    overflow: visible !important;
    background: radial-gradient(circle at 12% 0%, rgba(199, 154, 59, 0.18), transparent 32%), linear-gradient(180deg, #fbf7ee 0%, #eee3d1 100%);
}

body.member-details-open .club-hero { display: none; }

body.member-details-open .member-step {
    display: block !important;
    width: min(1240px, 100%);
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    overflow: visible !important;
}

.onboarding-header {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(141, 97, 28, 0.28);
    border-radius: 24px 24px 0 0;
    color: #3d2d1c;
    background: linear-gradient(125deg, #fffaf0 0%, #ead8b8 100%);
    box-shadow: 0 18px 48px rgba(74, 48, 17, 0.12);
}

.onboarding-header h2,
.onboarding-panel-heading h2,
.onboarding-dashboard-panel h2 {
    margin: 0;
    color: #3d2d1c;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
}

.onboarding-header h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }

.onboarding-header > p:last-child,
.onboarding-panel-heading > p:last-child,
.onboarding-dashboard-panel > p {
    max-width: 780px;
    margin: 14px 0 0;
    color: #695744;
    font: 500 clamp(1.08rem, 1.5vw, 1.25rem)/1.55 Arial, sans-serif;
}

.onboarding-tabs {
    position: sticky;
    top: 8px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(141, 97, 28, 0.28);
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 12px 30px rgba(74, 48, 17, 0.13);
    backdrop-filter: blur(14px);
}

.onboarding-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid rgba(141, 97, 28, 0.28);
    border-radius: 14px;
    color: #4b3927;
    text-align: left;
    background: #fffdf7;
    cursor: pointer;
}

.onboarding-tab > span {
    grid-row: 1 / 3;
    align-self: center;
    color: #9b6d20;
    font: 700 1.15rem/1 Georgia, serif;
}

.onboarding-tab strong { align-self: end; font: 800 clamp(1rem, 1.3vw, 1.22rem)/1.2 Arial, sans-serif; }
.onboarding-tab small { color: #786653; font: 500 0.86rem/1.35 Arial, sans-serif; }

.onboarding-tab.active {
    border-color: #8d611c;
    color: #2f2115;
    background: linear-gradient(135deg, #edcf84, #c99a3b);
    box-shadow: 0 8px 20px rgba(107, 68, 17, 0.18);
}

.onboarding-tab.complete::after {
    content: "✓";
    position: absolute;
    top: 7px;
    right: 9px;
    color: #315d3c;
    font: 900 1rem Arial, sans-serif;
}

.onboarding-tab:disabled { color: #8b8174; background: #eee8dd; cursor: not-allowed; opacity: 0.68; }

.onboarding-panel {
    min-height: 430px;
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid rgba(141, 97, 28, 0.28);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    color: #3d2d1c;
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 24px 60px rgba(74, 48, 17, 0.12);
}

.onboarding-panel[hidden] { display: none !important; }
.onboarding-panel-heading { max-width: 880px; margin-bottom: 26px; }
.onboarding-panel-heading h2, .onboarding-dashboard-panel h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }

body.member-details-open .onboarding-panel .selection-review,
body.member-details-open .onboarding-panel .member-form-panel {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: clamp(20px, 3vw, 34px) !important;
    overflow: visible !important;
    border: 1px solid rgba(141, 97, 28, 0.24) !important;
    border-radius: 18px;
    color: #3d2d1c !important;
    background: #f8f1e5 !important;
}

.onboarding-field-grid,
body.member-details-open .onboarding-panel .member-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.onboarding-field-grid .shipping-address, .onboarding-panel .wide { grid-column: 1 / -1; }

body.member-details-open .onboarding-panel input,
body.member-details-open .onboarding-field-grid input {
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid rgba(141, 97, 28, 0.42) !important;
    border-radius: 12px;
    color: #2f261d !important;
    background: #fffdf8 !important;
    font-size: 1.1rem !important;
}

body.member-details-open .onboarding-panel .summary-block,
body.member-details-open .onboarding-panel .shipment-confirmation-card,
body.member-details-open .onboarding-panel .stripe-panel,
body.member-details-open .onboarding-panel .member-check {
    border-color: rgba(141, 97, 28, 0.3) !important;
    color: #3d2d1c !important;
    background: #fffaf0 !important;
}

body.member-details-open .onboarding-panel .stripe-card-shell {
    min-height: 62px;
    border-color: rgba(141, 97, 28, 0.48) !important;
    background: #fffdf8 !important;
}

body.member-details-open .onboarding-panel .summary-block h3,
body.member-details-open .onboarding-panel .summary-block p,
body.member-details-open .onboarding-panel .summary-block li,
body.member-details-open .onboarding-panel .shipment-mode-tab span,
body.member-details-open .onboarding-panel .shipment-mode-tab small,
body.member-details-open .onboarding-panel .shipment-confirmation-summary,
body.member-details-open .onboarding-panel .stripe-note,
body.member-details-open .onboarding-panel .payment-status {
    color: #514332 !important;
    text-shadow: none !important;
}

.onboarding-panel-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 28px; }
.onboarding-panel-actions.split { justify-content: space-between; }

.onboarding-next-btn, .onboarding-back-btn, .onboarding-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font: 800 1rem/1 Arial, sans-serif;
    text-decoration: none;
}

.onboarding-next-btn, .onboarding-dashboard-link {
    border: 1px solid #805716;
    color: #2d2014;
    background: linear-gradient(180deg, #edcf7f, #c79635);
    box-shadow: 0 8px 18px rgba(105, 67, 16, 0.18);
}

.onboarding-next-btn:disabled { cursor: not-allowed; filter: grayscale(0.65); opacity: 0.55; }
.membership-retry-btn[hidden] { display: none !important; }
body.member-details-open .onboarding-panel #savePaymentMethodBtn {
    min-height: 62px;
    padding: 0 30px;
    border: 2px solid #5f3d0a;
    color: #21170b !important;
    background: linear-gradient(180deg, #f4d77f, #c58f29) !important;
    box-shadow: 0 10px 24px rgba(91, 55, 8, 0.28);
    font-weight: 900;
}
.payment-readiness {
    width: 100%;
    margin-bottom: 10px;
    color: #4b3a26;
    font-weight: 700;
    line-height: 1.45;
}
.stripe-card-shell { padding-block: 20px; }
body.member-details-open .onboarding-panel #savePaymentMethodBtn:disabled {
    border-color: #8d8579;
    color: #625b52 !important;
    background: #d8d3ca !important;
    box-shadow: none;
}
.onboarding-back-btn { border: 1px solid rgba(141, 97, 28, 0.36); color: #5d431f; background: #fffaf0; }

.payment-terms-check { display: flex; gap: 14px; margin: 0 0 20px; padding: 18px; font-size: 1.08rem; line-height: 1.5; }

.onboarding-dashboard-panel {
    display: grid;
    min-height: 500px;
    place-content: center;
    justify-items: start;
    background: radial-gradient(circle at 85% 10%, rgba(199, 154, 59, 0.22), transparent 34%), #fffaf0;
}

.onboarding-dashboard-link { margin-top: 28px; }
.onboarding-dashboard-countdown { display: flex; align-items: center; gap: 12px; }

@media (max-width: 820px) {
    .onboarding-tabs { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; }
    .onboarding-tab { min-height: 68px; }
    .onboarding-tab small { display: none; }
    .onboarding-field-grid, body.member-details-open .onboarding-panel .member-form-grid { grid-template-columns: 1fr; }
    .onboarding-field-grid .shipping-address, .onboarding-panel .wide { grid-column: auto; }
}

@media (max-width: 560px) {
    body.member-details-open .club-shell { padding: 10px 10px 36px; }
    .onboarding-header, .onboarding-panel { padding: 24px 18px; }
    .onboarding-panel-actions, .onboarding-panel-actions.split { flex-direction: column-reverse; }
    .onboarding-next-btn, .onboarding-back-btn, .onboarding-dashboard-link { width: 100%; }
}


/* =========================================================
   ONBOARDING SHIPPING — HIGH CONTRAST
   Keep this at the bottom of the stylesheet.
   ========================================================= */

body.member-details-open
.onboarding-panel
.selection-review {
    border: 2px solid #b9852f !important;
    background: #f1e4ce !important;
    box-shadow: 0 16px 36px rgba(76, 49, 20, 0.16);
}

body.member-details-open
.onboarding-panel
.summary-block {
    border: 2px solid #a87324 !important;
    background: #fffaf0 !important;
    box-shadow: 0 10px 24px rgba(76, 49, 20, 0.12);
}

/* Individual wine rows */
body.member-details-open
.onboarding-panel
.summary-block li {
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid #c89a4c !important;
    border-radius: 14px;
    color: #332417 !important;
    background: #fffdf8 !important;
    box-shadow: 0 4px 12px rgba(76, 49, 20, 0.08);
}

/* Wine names and allocation labels */
body.member-details-open
.onboarding-panel
.summary-block li strong,
body.member-details-open
.onboarding-panel
.summary-block li span,
body.member-details-open
.onboarding-panel
.summary-block li small {
    color: #3b2919 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Curated / Member's Choice badges */
body.member-details-open
.onboarding-panel
.summary-block .eyebrow,
body.member-details-open
.onboarding-panel
.summary-tier-caption {
    color: #815716 !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
}

/* Shipment pills */
body.member-details-open
.onboarding-panel
.inline-shipment-tabs button {
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid #9a681d !important;
    color: #5b3b12 !important;
    background: #f8e7ba !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    box-shadow: 0 3px 8px rgba(76, 49, 20, 0.12);
}

/* Selected shipment pill */
body.member-details-open
.onboarding-panel
.inline-shipment-tabs button.active {
    border-color: #5c3a0d !important;
    color: #fffdf7 !important;
    background: #8a5b16 !important;
    box-shadow:
        0 0 0 3px rgba(199, 154, 59, 0.24),
        0 6px 14px rgba(76, 49, 20, 0.22);
}

/* Keyboard and mouse feedback */
body.member-details-open
.onboarding-panel
.inline-shipment-tabs button:hover,
body.member-details-open
.onboarding-panel
.inline-shipment-tabs button:focus-visible {
    border-color: #5c3a0d !important;
    color: #2f1e0d !important;
    background: #edcd7e !important;
    outline: none;
}

/* Address fields */
body.member-details-open
.onboarding-field-grid input {
    border: 2px solid #9b7137 !important;
    color: #2e2116 !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(67, 43, 17, 0.08);
}

body.member-details-open
.onboarding-field-grid input::placeholder {
    color: #725c46 !important;
    opacity: 1;
}

body.member-details-open
.onboarding-field-grid input:focus {
    border-color: #7d5013 !important;
    outline: 3px solid rgba(199, 154, 59, 0.28);
}

/* =========================================================
   CLUB SELECTION VIEWPORT — UTOPIA GOLD & CREAM
   Keep this at the bottom of the stylesheet.
   ========================================================= */

body:not(.member-details-open) {
    color: #3d2d1c;
    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(199, 154, 59, 0.2),
            transparent 30%
        ),
        linear-gradient(180deg, #faf5ea, #eee2cf);
}

body:not(.member-details-open) .club-shell {
    min-height: 100vh;
    background: transparent;
}

/* Welcome header */
body:not(.member-details-open) .club-hero {
    border: 1px solid #c49a52;
    color: #3d2d1c;
    background: linear-gradient(120deg, #fffaf0, #ead6ae);
    box-shadow: 0 14px 36px rgba(75, 48, 17, 0.14);
}

body:not(.member-details-open) .club-hero h1 {
    color: #382719;
    text-shadow: none;
}

body:not(.member-details-open) .club-hero .eyebrow {
    color: #8a5b16;
    font-weight: 900;
}

body:not(.member-details-open) .hero-copy {
    color: #654f39;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}

/* Main two-column workspace */
body:not(.member-details-open) .club-room {
    gap: clamp(18px, 2vw, 30px);
    background: transparent;
}

body:not(.member-details-open) .tier-column,
body:not(.member-details-open) .choice-column {
    border: 2px solid #ad7a2a;
    border-radius: 22px;
    color: #39281a;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 16px 38px rgba(71, 45, 16, 0.14);
}

/* Remove the aggressive red warning frame */
body:not(.member-details-open)
.choice-column.needs-attention {
    border-color: #b77e28 !important;
    box-shadow:
        0 0 0 4px rgba(199, 154, 59, 0.18),
        0 16px 38px rgba(71, 45, 16, 0.16) !important;
}

/* Column headings */
body:not(.member-details-open) .tier-column > h2,
body:not(.member-details-open) .column-header h2 {
    color: #7d5214;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    font-weight: 900;
    text-shadow: none;
}

body:not(.member-details-open) .column-header p {
    color: #66523e;
    font-size: 1.08rem;
}

/* Tier cards */
body:not(.member-details-open) .tier-card {
    border: 1px solid #c49a52;
    border-radius: 18px;
    color: #39281a;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(72, 46, 17, 0.1);
}

body:not(.member-details-open) .tier-card:hover,
body:not(.member-details-open) .tier-card.active {
    border-color: #805413;
    background: linear-gradient(135deg, #fff9e9, #f0d793);
    box-shadow:
        0 0 0 4px rgba(199, 154, 59, 0.2),
        0 12px 28px rgba(72, 46, 17, 0.18);
}

body:not(.member-details-open) .tier-card h3,
body:not(.member-details-open) .tier-card strong,
body:not(.member-details-open) .tier-card span {
    color: #382719;
    text-shadow: none;
}

/* Wine cards */
body:not(.member-details-open) .choice-card {
    border: 1px solid #c49a52;
    border-radius: 18px;
    color: #39281a;
    background: #fffdf8;
    box-shadow: 0 6px 16px rgba(72, 46, 17, 0.09);
}

body:not(.member-details-open) .choice-card:hover {
    border-color: #93631c;
    background: #fff6dc;
    transform: translateY(-2px);
}

body:not(.member-details-open) .choice-card strong {
    color: #342417;
    font-size: clamp(1.12rem, 1.35vw, 1.35rem);
    text-shadow: none;
}

body:not(.member-details-open) .choice-card small {
    color: #6b5741;
    font-size: 1rem;
}

/* Wine classification pills */
body:not(.member-details-open) .choice-card .wine-badge,
body:not(.member-details-open) .choice-card .eyebrow {
    border: 1px solid #a87526;
    color: #6e4810;
    background: #f4dfaa;
    font-weight: 900;
}

/* Selected wine */
body:not(.member-details-open)
.choice-card:has(input:checked) {
    border: 2px solid #754a0f;
    background: linear-gradient(135deg, #f8e8b9, #e0ba60);
    box-shadow:
        0 0 0 4px rgba(199, 154, 59, 0.22),
        0 10px 24px rgba(72, 46, 17, 0.18);
}

/* Scroll indicators */
body:not(.member-details-open) .scroll-indicator {
    border: 1px solid #92621c;
    color: #67430f;
    background: #f5dfa5;
}

/* Bottom status bar */
body:not(.member-details-open) .club-status-bar {
    border: 1px solid #a87526;
    color: #3a291b;
    background: rgba(255, 250, 240, 0.97);
    box-shadow: 0 -8px 28px rgba(70, 44, 15, 0.12);
}

body:not(.member-details-open)
#submitClubSelectionBtn {
    min-height: 56px;
    border: 1px solid #754a0f;
    color: #2f200f;
    background: linear-gradient(180deg, #e8c76f, #bf8b2e);
    font-size: 1rem;
    font-weight: 900;
}

body:not(.member-details-open)
#submitClubSelectionBtn:disabled {
    color: #716653;
    background: #d8cdbb;
    opacity: 0.8;
}

/* Wine selection workspace: fixed allocation stays visible; only Member's Choice scrolls. */
@media (min-width: 1100px) {
    body:not(.member-details-open) .club-room {
        grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.55fr);
    }
}

body:not(.member-details-open) .choice-scroll {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    height: calc(100vh - 390px);
    min-height: 520px;
    max-height: none;
    overflow: hidden;
    padding: 0 !important;
}

body:not(.member-details-open) .fixed-wine-banner,
body:not(.member-details-open) .member-choice-selector {
    min-width: 0;
    border: 1px solid #c49a52;
    border-radius: 18px;
    background: #fffdf8;
}

body:not(.member-details-open) .fixed-wine-banner { padding: 14px; }
body:not(.member-details-open) .member-choice-selector {
    display: grid;
    min-height: 280px;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px;
}

body:not(.member-details-open) .fixed-wine-grid,
body:not(.member-details-open) .variable-wine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body:not(.member-details-open) .fixed-wine-grid .choice-card,
body:not(.member-details-open) .variable-wine-grid .choice-card { margin: 0; }
body:not(.member-details-open) .fixed-wine-grid .choice-card { min-height: 96px; }
body:not(.member-details-open) .variable-wine-scroll {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 3px 8px 3px 3px;
    scrollbar-gutter: stable;
    scrollbar-color: #b8912f #eee2c9;
}

@media (max-width: 1300px) {
    body:not(.member-details-open) .fixed-wine-grid,
    body:not(.member-details-open) .variable-wine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body:not(.member-details-open) .choice-scroll {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    body:not(.member-details-open) .member-choice-selector { max-height: 70vh; }
    body:not(.member-details-open) .fixed-wine-grid,
    body:not(.member-details-open) .variable-wine-grid { grid-template-columns: 1fr; }
    body:not(.member-details-open) .member-choice-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Authoritative desktop geometry; keep this final to win over legacy layout rules. */
@media (min-width: 1100px) {
    body:not(.member-details-open) .club-room {
        grid-template-columns: minmax(300px, 0.48fr) minmax(0, 2fr) !important;
        height: calc(100vh - 245px);
        min-height: 650px;
        overflow: hidden !important;
    }
    body:not(.member-details-open) .tier-column,
    body:not(.member-details-open) .choice-column {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    body:not(.member-details-open) .tier-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: calc(100% - 52px);
        min-height: 0;
        max-height: none !important;
        overflow-y: scroll !important;
    }
    body:not(.member-details-open) .choice-scroll {
        height: calc(100% - 72px) !important;
        min-height: 0 !important;
        max-height: none !important;
        grid-template-rows: minmax(150px, auto) minmax(320px, 1fr);
    }
    body:not(.member-details-open) .fixed-wine-banner {
        display: grid;
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        max-height: 190px;
        overflow: hidden;
    }
    body:not(.member-details-open) .fixed-wine-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(225px, 1fr);
        grid-template-columns: none;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 3px 3px 12px;
        scrollbar-gutter: stable;
    }
    body:not(.member-details-open) .fixed-wine-grid .choice-card { min-height: 112px; }
    body:not(.member-details-open) .variable-wine-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    body:not(.member-details-open) .variable-wine-scroll {
        min-height: 320px;
        overflow-y: scroll;
        border-top: 1px solid rgba(164, 111, 30, 0.24);
        padding-top: 12px;
    }
}

@media (min-width: 1100px) and (max-width: 1550px) {
    body:not(.member-details-open) .variable-wine-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.frictionless-club-shell{max-width:1180px;margin:0 auto;padding-bottom:70px}.frictionless-enrollment{display:grid;gap:18px;margin:24px}.enrollment-step{display:grid;grid-template-columns:48px 1fr;gap:18px;padding:24px;border:1px solid #d9c9a6;border-radius:18px;background:#fffdf8;box-shadow:0 10px 28px rgba(48,35,15,.08)}.enrollment-step>span{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#b58a36;color:#fff;font-weight:900}.enrollment-step h2,.enrollment-step p{margin-top:0}.enrollment-email-row{display:grid;grid-template-columns:1fr auto;gap:10px;max-width:650px}.enrollment-email-row input{min-height:48px;padding:0 14px;border:1px solid #bda66f;border-radius:11px;font:inherit}.enrollment-email-row button,#payMembership{min-height:48px;padding:0 22px;border:0;border-radius:999px;background:#ad7d25;color:#fff;font-weight:900;cursor:pointer}.frictionless-tier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.frictionless-tier-card{padding:20px;border:2px solid #ded3be;border-radius:15px;background:#fff;color:#29241e;text-align:left;cursor:pointer}.frictionless-tier-card.is-selected{border-color:#b18128;background:#fff8e8;box-shadow:0 8px 20px rgba(128,89,25,.18)}.frictionless-tier-card>span{color:#8c681e;font-size:12px;font-weight:900}.frictionless-tier-card h3{margin:7px 0}.frictionless-tier-card>strong{display:block;font-size:20px}.frictionless-tier-card ul{min-height:105px;padding-left:18px;line-height:1.6}.frictionless-tier-card small{color:#686159}.selected-tier-contract{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0 18px}.selected-tier-contract>div{padding:13px;border-radius:10px;background:#f5efe3}.selected-tier-contract span,.selected-tier-contract strong{display:block}.selected-tier-contract span{font-size:11px;text-transform:uppercase;color:#746b61}.selected-tier-contract strong{margin-top:5px}.frictionless-enrollment .member-check{display:flex;gap:10px;margin:13px 0}.frictionless-enrollment .stripe-panel{max-width:650px;margin-top:18px}.frictionless-enrollment .stripe-card-shell{padding:15px;border:1px solid #cdbb91;border-radius:10px;background:#fff}.frictionless-enrollment #payMembership{width:100%;margin-top:12px}.enrollment-complete{padding:36px;border:1px solid #91b59b;border-radius:18px;background:#f1f8f2;text-align:center}.enrollment-complete a{display:inline-block;margin-top:12px;padding:14px 24px;border-radius:999px;background:#245d3b;color:#fff;text-decoration:none;font-weight:900}@media(max-width:700px){.enrollment-step{grid-template-columns:1fr}.enrollment-email-row,.selected-tier-contract{grid-template-columns:1fr}.frictionless-enrollment{margin:12px}}

/* The enrollment flow is a full document, not the legacy fixed club-room workspace. */
body.frictionless-enrollment-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body.frictionless-enrollment-page .frictionless-club-shell {
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow: visible;
}

.frictionless-enrollment .member-check {
    align-items: center;
    border-color: #c8b37e;
    background: #fff8e8;
    color: #2f281f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.frictionless-enrollment .member-check input {
    flex: 0 0 auto;
    accent-color: #9a6d1c;
}
