/* ============================================
   RunDais Clubhouse Dashboard
   ============================================ */

/* ── Login Page ── */
.clubhouse-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 24px;
}
.clubhouse-login-container {
    width: 100%;
    max-width: 440px;
}
.clubhouse-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.04);
}
.clubhouse-login-header {
    text-align: center;
    margin-bottom: 32px;
}
.clubhouse-login-title {
    font-family: "roc-grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 8px;
    letter-spacing: normal;
    line-height: 1.25;
    word-spacing: normal;
    white-space: normal;
    overflow-wrap: anywhere;
}
.clubhouse-login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.clubhouse-login-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.clubhouse-login-field {
    margin-bottom: 20px;
}
.clubhouse-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.clubhouse-login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #04132D;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.clubhouse-login-field input:focus {
    outline: none;
    border-color: #04132D;
    box-shadow: 0 0 0 3px rgba(4,19,45,0.06);
}
.clubhouse-password-wrap {
    position: relative;
}
.clubhouse-password-wrap input {
    padding-right: 44px;
}
.clubhouse-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}
.clubhouse-login-btn {
    width: 100%;
    padding: 14px;
    background: #04132D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.clubhouse-login-btn:hover {
    background: #0a2040;
}
.clubhouse-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.clubhouse-login-footer {
    text-align: center;
    margin-top: 20px;
}
.clubhouse-login-footer a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.clubhouse-login-footer a:hover {
    color: #04132D;
}

/* ── Dashboard Layout ── */
/* Theme uses body.content { padding-top: 100px } for the fixed header; clubhouse + event-portal + brand-portal app pages */
body.is-clubhouse-page,
body.is-event-portal-page,
body.is-brands-page {
    padding-top: 100px;
}
@media (max-width: 767.98px) {
    body.is-clubhouse-page,
    body.is-event-portal-page,
    body.is-brands-page {
        padding-top: 92px;
    }
}
body.is-clubhouse-page .clubhouse-login-page,
body.is-event-portal-page .clubhouse-login-page,
body.is-brands-page .clubhouse-login-page {
    min-height: calc(100vh - 100px);
}
@media (max-width: 767.98px) {
    body.is-clubhouse-page .clubhouse-login-page,
    body.is-event-portal-page .clubhouse-login-page,
    body.is-brands-page .clubhouse-login-page {
        min-height: calc(100vh - 92px);
    }
}

/* Kill the footer ::before bleed on login pages — it extends 100px above the footer */
body.is-clubhouse-page footer::before,
body.is-event-portal-page footer::before,
body.is-brands-page footer::before {
    height: 100%;
}

.clubhouse-dashboard-page {
    background: #f8f9fa;
    min-height: calc(100vh - 100px);
}

/* Global theme headings use negative letter-spacing + condensed roc-grotesk; reset inside Clubhouse */
.clubhouse-dashboard-page h1,
.clubhouse-dashboard-page h2,
.clubhouse-dashboard-page h3,
.clubhouse-dashboard-page h4 {
    letter-spacing: normal !important;
    font-stretch: normal !important;
    font-style: normal !important;
}
.clubhouse-dashboard-page .clubhouse-page-title {
    text-transform: none !important;
    line-height: 1.25 !important;
}
.clubhouse-dashboard-page .listing-section h3,
.clubhouse-dashboard-page .details-section h3,
.clubhouse-dashboard-page .details-section h4 {
    line-height: 1.35 !important;
    text-transform: none !important;
}
.clubhouse-dashboard-page .listing-field label {
    letter-spacing: normal !important;
    font-stretch: normal !important;
}
.clubhouse-dashboard-page .health-bar-text strong {
    letter-spacing: normal !important;
    font-stretch: normal !important;
}

.clubhouse-layout {
    display: flex;
    min-height: calc(100vh - 100px);
}
.clubhouse-main {
    flex: 1;
    padding: 24px 32px;
    max-width: 1000px;
    margin: 0;
    width: 100%;
}
.clubhouse-page-title {
    font-family: "roc-grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 24px;
    letter-spacing: normal;
}
.clubhouse-panel-subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
    color: #4b5563;
    margin: -8px auto 28px;
    max-width: 720px;
    letter-spacing: normal;
}

/* ── Sidebar ── */
.clubhouse-sidebar {
    width: 260px;
    min-width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 100;
}
.clubhouse-sidebar .sidebar-header {
    padding: 0 16px 12px;
    display: flex;
    justify-content: flex-end;
}
.clubhouse-sidebar .sidebar-expand {
    display: none;
}
.clubhouse-sidebar .sidebar-close {
    display: none;
}
.clubhouse-sidebar .sidebar-nav {
    flex: 1;
    padding: 0 8px;
}
.clubhouse-sidebar .nav-group {
    margin-bottom: 8px;
}
.clubhouse-sidebar .nav-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.clubhouse-sidebar .nav-heading svg {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
}
.clubhouse-sidebar .nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.clubhouse-sidebar .nav-items li {
    margin: 0;
}
.clubhouse-nav-item,
.clubhouse-sidebar .sidebar-browse-link {
    display: block;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.12s;
}
.clubhouse-nav-item:hover,
.clubhouse-sidebar .sidebar-browse-link:hover {
    background: #f3f4f6;
    color: #04132D;
}
.clubhouse-nav-item.active {
    background: #04132D;
    color: #fff;
    font-weight: 600;
}
.clubhouse-sidebar .sidebar-browse-link {
    color: #6b7280;
    font-size: 13px;
}
.clubhouse-sidebar .sidebar-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    margin-top: auto;
}
.clubhouse-sidebar .sidebar-bottom-links {
    margin-bottom: 12px;
}
.clubhouse-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.clubhouse-sidebar .sidebar-link svg {
    width: 16px;
    height: 16px;
}
.clubhouse-sidebar .sidebar-link:hover {
    color: #04132D;
}
.clubhouse-sidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.clubhouse-sidebar .sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.clubhouse-sidebar .sidebar-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}
.clubhouse-sidebar .sidebar-user-info {
    display: flex;
    flex-direction: column;
}
.clubhouse-sidebar .sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #04132D;
}
.clubhouse-sidebar .sidebar-user-club {
    font-size: 11px;
    color: #9ca3af;
}
.clubhouse-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

/* ── Health Bar ── */
.clubhouse-health-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.health-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.health-bar-circle {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.health-bar-circle svg {
    display: block;
}
.health-bar-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.health-bar-text {
    flex: 1;
    min-width: 0;
}
.health-bar-text strong {
    display: block;
    font-size: 14px;
    color: #04132D;
    margin-bottom: 2px;
}
.health-bar-text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.health-bar-cta {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #04132D;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.health-bar-cta:hover {
    background: #0a2040;
    color: #fff;
}

/* ── Common Form Styles ── */
.clubhouse-notice {
    background: #f3f4f6;
    padding: 16px 20px;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}
.listing-section,
.details-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.listing-section h3,
.details-section h3 {
    font-family: "roc-grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 16px;
}
.details-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #04132D;
    margin: 20px 0 12px;
}
.clubhouse-know-heading {
    font-family: "roc-grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #04132d;
    margin: 28px 0 20px;
    letter-spacing: normal;
}
.listing-field {
    margin-bottom: 16px;
}
.listing-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.listing-field input[type="text"],
.listing-field input[type="email"],
.listing-field input[type="url"],
.listing-field input[type="tel"],
.listing-field input[type="number"],
.listing-field input[type="time"],
.listing-field input[type="password"],
.listing-field textarea,
.listing-field select,
.clubhouse-multi-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #04132D;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.listing-field input:focus,
.listing-field textarea:focus,
.listing-field select:focus,
.clubhouse-multi-select:focus {
    outline: none;
    border-color: #04132D;
    box-shadow: 0 0 0 3px rgba(4,19,45,0.06);
}
.clubhouse-multi-select {
    min-height: 100px;
}
.listing-help {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 12px;
    line-height: 1.4;
}
.listing-help-inline {
    font-weight: 400;
    color: #9ca3af;
}
.listing-char-note {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}
.listing-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.listing-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ── Toggle Switch ── */
.listing-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.listing-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.listing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.listing-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s;
}
.listing-toggle-slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.listing-toggle input:checked + .listing-toggle-slider {
    background: #04132D;
}
.listing-toggle input:checked + .listing-toggle-slider::before {
    transform: translateX(20px);
}
.listing-toggle-label {
    font-size: 13px;
    color: #6b7280;
}

/* ── Checkbox Chips ── */
.listing-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.listing-chip {
    cursor: pointer;
}
.listing-chip input {
    position: absolute;
    opacity: 0;
}
.listing-chip span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    transition: all 0.15s;
}
.listing-chip input:checked + span {
    background: #04132D;
    color: #fff;
    border-color: #04132D;
}

/* ── Image Upload ── */
.listing-image-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}
.listing-image-preview {
    width: 240px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
/* Cover preview: same 1.75∶1 ratio as public run club hero */
.listing-image-preview#cover-photo-preview {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1.75 / 1;
    min-height: 84px;
}
.listing-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-logo-preview {
    width: 100px;
    height: 100px;
}
.listing-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
}
.listing-upload-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}
.listing-upload-btn:hover {
    background: #e5e7eb;
}

/* ── Calendar Entries ── */
.calendar-entry {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.calendar-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.calendar-entry-title {
    font-size: 14px;
    font-weight: 600;
    color: #04132D;
}
.calendar-entry-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.calendar-entry-remove:hover {
    color: #dc2626;
}
.calendar-entry-fields {
    padding: 16px;
}
.listing-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}
.listing-add-btn:hover {
    border-color: #04132D;
    color: #04132D;
}

/* ── Share Bar ── */
.listing-share-bar,
.reviews-share-bar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.listing-share-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #04132D;
    margin-bottom: 8px;
    display: block;
}
.listing-share-row {
    display: flex;
    gap: 8px;
}
.listing-share-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    box-sizing: border-box;
}
.listing-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #04132D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.listing-copy-btn:hover {
    background: #0a2040;
}
.reviews-share-text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ── Save Actions ── */
.listing-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.listing-save-btn {
    padding: 12px 28px;
    background: #96ff94;
    color: #04132D;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.listing-save-btn:hover {
    background: #c2ff42;
}
.listing-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.listing-save-message {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
}
.listing-save-message.success {
    background: #f0fdf4;
    color: #065f46;
}
.listing-save-message.error {
    background: #fef2f2;
    color: #991b1b;
}

/* Google Places suggestions above dashboard chrome */
.pac-container {
    z-index: 10050 !important;
}

/* Hint + sticky save (details + listing) */
.clubhouse-form-save-hint {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}
.listing-actions--sticky {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-top: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

/* Event checkbox pickers (replaces unusable native multi-select) */
.clubhouse-event-picker {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}
.clubhouse-event-picker .clubhouse-event-search {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #04132D;
    background: #fff;
    box-sizing: border-box;
}
.clubhouse-event-picker .clubhouse-event-search:focus {
    outline: none;
    border-color: #04132D;
    box-shadow: 0 0 0 3px rgba(4, 19, 45, 0.06);
}
.clubhouse-event-options {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Row labels inside .listing-field must override .listing-field label { display: block } */
.listing-field label.clubhouse-event-option {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
}
.clubhouse-event-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: #04132d;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin: 0;
    font-weight: 500;
}
.clubhouse-event-option:hover {
    border-color: #9ca3af;
}
/* Native checkbox — override global theme input resets that hide or break checkboxes */
.clubhouse-dashboard-page .clubhouse-event-option input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: auto !important;
    display: inline-block !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem !important;
    min-height: 1.125rem !important;
    max-width: none !important;
    margin: 0 0.65rem 0 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    accent-color: #04132d;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
}
.clubhouse-event-option-text {
    flex: 1;
    user-select: none;
}

/* ── Offers Grid (reuse passport-offers styles) ── */
.clubhouse-offers-wrapper .offers-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.clubhouse-offers-wrapper .offers-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 220px;
}
.clubhouse-offers-wrapper .offers-search input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    background: transparent;
}
.clubhouse-offers-wrapper .offers-search svg {
    color: #9ca3af;
    flex-shrink: 0;
}
.offers-category-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.category-pill {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}
.category-pill.active,
.category-pill:hover {
    background: #04132D;
    color: #fff;
    border-color: #04132D;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.no-offers-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

/* ── Offer Card ── */
.offer-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.offer-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.offer-card-inner {
    padding: 20px;
}
.offer-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.offer-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}
.offer-brand-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #04132D;
}
.offer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #04132D;
    margin: 0;
}
.offer-brand-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 2px 0 0;
}
.offer-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.offer-category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}
.offer-carousel-wrapper {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}
.offer-carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.offer-brand-description-wrapper {
    position: relative;
    margin-bottom: 12px;
}
.offer-brand-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.offer-brand-description-wrapper.expanded .offer-brand-description {
    max-height: 1200px;
}
.offer-brand-description p {
    margin: 0 0 8px;
}
.offer-brand-description p:last-child {
    margin-bottom: 0;
}
.offer-brand-description a {
    color: #2563eb;
    text-decoration: underline;
}
.offer-desc-fade {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.2s;
}
.offer-brand-description-wrapper.expanded .offer-desc-fade {
    opacity: 0;
}
.offer-desc-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 4px 0 0;
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #04132d;
    cursor: pointer;
    transition: color 0.15s;
}
.offer-desc-toggle:hover,
.offer-desc-toggle:focus-visible {
    color: #1e3a5f;
    text-decoration: underline;
    outline: none;
}
.offer-user-gets {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.offer-user-gets p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}
.offer-reveal-area {
    margin-top: 12px;
}
.offer-reveal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Full-width outlined CTA — same look before and after code reveal */
.offer-visit-btn--outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: #04132d;
    background: #fff;
    border: 2px solid #04132d;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.offer-visit-btn--outline:hover {
    background: #f3f4f6;
    text-decoration: none;
}
.clubhouse-offer-reveal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #04132D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.clubhouse-offer-reveal-btn:hover {
    background: #0a2040;
}
.offer-code-revealed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
}
.offer-code-revealed .offer-code-box {
    align-self: center;
}
.offer-code-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: 8px;
    padding: 10px 20px;
}
.offer-code-text {
    font-size: 18px;
    font-weight: 700;
    color: #04132D;
    letter-spacing: 1px;
}
.offer-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}
.offer-copy-btn:hover {
    color: #04132D;
}
.offer-visit-btn:not(.offer-visit-btn--outline) {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #04132d;
    text-decoration: none;
    font-weight: 600;
}
.offer-visit-btn:not(.offer-visit-btn--outline):hover {
    text-decoration: underline;
}
.offer-terms-wrapper {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}
.offer-terms-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 0;
}
.offer-terms-content {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    padding-top: 8px;
}

/* ── Reviews ── */
.reviews-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}
.review-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.review-author {
    font-size: 15px;
    color: #04132D;
}
.review-date {
    font-size: 13px;
    color: #9ca3af;
}
.review-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.review-status-badge.status-pending { background: #fef3c7; color: #92400e; }
.review-status-badge.status-verified { background: #d1fae5; color: #065f46; }
.review-status-badge.status-archived { background: #e5e7eb; color: #6b7280; }
.review-rating .star {
    color: #d1d5db;
    font-size: 18px;
}
.review-rating .star.filled {
    color: #f59e0b;
}
.review-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}
.review-days {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}
.review-reply {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
    border-left: 3px solid #04132D;
}
.review-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}
.review-reply-header strong {
    color: #04132D;
}
.review-reply p {
    font-size: 14px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}
.review-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin-top: 12px;
}
.review-reply-toggle:hover {
    border-color: #04132D;
}
.review-reply-editor {
    margin-top: 12px;
}
.review-reply-editor textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.review-reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.reply-cancel-btn {
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}
.reply-submit-btn {
    padding: 8px 14px;
    background: #04132D;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Media ── */
.media-help {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}
.media-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.15s;
    margin-bottom: 24px;
}
.media-upload-zone.dragover {
    border-color: #04132D;
    background: #f0fdf4;
}
.media-upload-content svg {
    color: #9ca3af;
    margin-bottom: 8px;
}
.media-upload-content p {
    font-size: 14px;
    color: #374151;
    margin: 0 0 4px;
}
.media-browse-btn {
    background: none;
    border: none;
    color: #04132D;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}
.media-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}
.media-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.media-progress-fill {
    height: 100%;
    background: #04132D;
    border-radius: 4px;
    width: 0%;
    transition: width 0.2s;
}
.media-progress-text {
    font-size: 13px;
    color: #6b7280;
}
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #9ca3af;
}
.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 4/3;
}
.media-item-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.media-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.media-item:hover .media-delete-btn {
    opacity: 1;
}

/* ── Analytics ── */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.analytics-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.analytics-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.analytics-card-icon svg {
    color: #04132D;
}
.analytics-card-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #04132D;
    font-family: "roc-grotesk", sans-serif;
}
.analytics-card-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}
.analytics-link {
    font-size: 12px;
    color: #04132D;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.analytics-section {
    margin-bottom: 32px;
}
.analytics-section h3 {
    font-family: "roc-grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 8px;
    letter-spacing: normal !important;
    font-stretch: normal !important;
    line-height: 1.35 !important;
}
.analytics-help {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 16px;
    text-align: center;
}
.leaderboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.leaderboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.leaderboard-rank {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #04132D;
    font-family: "roc-grotesk", sans-serif;
}
.leaderboard-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}
.leaderboard-total {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Welcome Popup ── */
.clubhouse-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    display: none;
}
.clubhouse-welcome-overlay[style*="display: block"],
.clubhouse-welcome-overlay.visible {
    display: flex !important;
}
.clubhouse-welcome-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
}
.clubhouse-welcome-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}
.clubhouse-welcome-icon {
    margin-bottom: 16px;
}
.clubhouse-welcome-modal h2 {
    font-family: "roc-grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 12px;
    letter-spacing: normal !important;
    font-stretch: normal !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}
.clubhouse-welcome-modal p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 16px;
}
.clubhouse-welcome-modal ul {
    text-align: left;
    margin: 0 0 24px;
    padding: 0 0 0 20px;
}
.clubhouse-welcome-modal ul li {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 4px;
}
.clubhouse-welcome-btn {
    padding: 14px 32px;
    background: #96ff94;
    color: #04132D;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.clubhouse-welcome-btn:hover {
    background: #c2ff42;
}

/* ── Mobile Responsive ── */
@media (max-width: 991.98px) {
    .clubhouse-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        transition: left 0.25s ease;
        z-index: 200;
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }
    .clubhouse-sidebar.open {
        left: 0;
    }
    .clubhouse-sidebar .sidebar-expand {
        display: block;
        position: fixed;
        top: 90px;
        left: 12px;
        z-index: 101;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .clubhouse-sidebar .sidebar-close {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        color: #6b7280;
    }
    .clubhouse-sidebar-overlay.active {
        display: block;
    }
    .clubhouse-main {
        padding: 16px;
    }
    .clubhouse-page-title {
        font-size: 22px;
        margin-left: 48px;
    }
}

@media (max-width: 767.98px) {
    .listing-row-2col,
    .listing-row-3col {
        grid-template-columns: 1fr;
    }
    .leaderboard-cards {
        grid-template-columns: 1fr;
    }
    .analytics-cards {
        grid-template-columns: 1fr;
    }
    .offers-grid {
        grid-template-columns: 1fr;
    }
    .health-bar-inner {
        flex-wrap: wrap;
    }
    .health-bar-cta {
        width: 100%;
        text-align: center;
    }
    .listing-share-row {
        flex-direction: column;
    }
    .listing-image-upload {
        flex-direction: column;
    }
    .clubhouse-login-card {
        padding: 28px 20px;
    }
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .clubhouse-welcome-modal {
        padding: 28px 20px;
    }
}
