/*
=================================================
 BRIXIFLOW PUBLIC FLUX THEME
 Modern. High Contrast. Fluid.
=================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Scoped Variables */
.bf-form-wrapper {
    --bf-primary: #4f46e5;
    /* Indigo-600 */
    --bf-primary-hover: #4338ca;
    /* Indigo-700 */
    --bf-bg-surface: #ffffff;
    /* White */
    --bf-bg-subtle: #f4f4f5;
    /* Zinc-100 */
    --bf-border: #e4e4e7;
    /* Zinc-200 */
    --bf-text-main: #18181b;
    /* Zinc-900 */
    --bf-text-muted: #71717a;
    /* Zinc-500 */
    --bf-danger: #ef4444;
    /* Red-500 */
    --bf-success: #16a34a;
    /* Green-600 */
    --bf-radius: 6px;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--bf-text-main);
    /* Remove container styling to allow cards to float */
    background-color: transparent;
    border: none;
    padding: 0 1rem;
    max-width: 900px;
    margin: 2rem auto;
}

/* New: Standalone Card Class (if not using dashboard-card) */
.bf-card {
    background-color: var(--bf-bg-surface);
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bf-form-wrapper * {
    box-sizing: border-box;
}

/* Typography */
.bf-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bf-text-main);
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bf-border);
    padding-bottom: 1rem;
}

.bf-form-wrapper h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bf-text-main);
    margin: 1.5rem 0 1rem;
}

/* Forms & Inputs */
.bf-form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .bf-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-form-grid .col-span-2 {
        grid-column: span 2;
    }
}

.bf-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bf-text-main);
    margin-bottom: 0.5rem;
}

.bf-input,
.bf-select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--bf-text-main);
    background-color: #fff;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bf-input:focus,
.bf-select:focus {
    outline: none;
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px var(--bf-primary-shadow, rgba(79, 70, 229, 0.15));
}

/* Buttons */
.bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--bf-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.25;
    border: 1px solid transparent;
}

.bf-btn-primary {
    background-color: var(--bf-primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bf-btn-primary:hover {
    background-color: var(--bf-primary-hover);
    color: white;
}

.bf-btn-secondary {
    background-color: white;
    color: var(--bf-text-main);
    border: 1px solid var(--bf-border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bf-btn-secondary:hover {
    background-color: var(--bf-bg-subtle);
    color: var(--bf-text-main);
}

.bf-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Alerts */
.bf-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--bf-radius);
    font-size: 0.875rem;
    display: flex;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.bf-alert-success {
    background-color: #f0fdf4;
    border-color: #dcfce7;
    color: #166534;
}

.bf-alert-error {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

/* Dashboard Cards */
.bf-dashboard-card {
    background: var(--bf-bg-surface);
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    /* Slightly larger radius */
    padding: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.bf-dashboard-card h3 {
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bf-text-muted);
    border-bottom: 1px solid var(--bf-border);
    background: var(--bf-bg-subtle);
}

.bf-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .bf-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bf-dashboard-item {
    display: flex;
    flex-direction: column;
}

.bf-dashboard-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--bf-text-muted);
    margin-bottom: 0.25rem;
}

.bf-dashboard-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bf-text-main);
}

/* Status Badges */
.bf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.bf-badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.bf-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.bf-badge-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

.bf-badge-cancelled {
    background-color: #f4f4f5;
    color: #52525b;
}

/* Tables */
.bf-payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.bf-payment-table th {
    background: var(--bf-bg-surface);
    color: var(--bf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--bf-border);
    text-align: left;
}

.bf-payment-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bf-border);
    color: var(--bf-text-main);
    font-size: 0.875rem;
    vertical-align: middle;
}

.bf-payment-table tr:last-child td {
    border-bottom: none;
}

/* =================================================
   PLAN SELECTOR (PRICING TIERS)
   ================================================= */

.bf-plan-selector-wrapper {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bf-plan-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.bf-plan-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1rem 0 0.5rem;
    letter-spacing: -0.03em;
}

.bf-plan-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.bf-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.bf-plan-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--bf-radius, 14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px var(--bf-primary-shadow, rgba(79, 70, 229, 0.2)), 0 8px 10px -6px var(--bf-primary-shadow, rgba(79, 70, 229, 0.1));
    border-color: var(--bf-primary, #4f46e5);
}

/* Brand Accent Stripe */
.bf-plan-card-accent {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--bf-primary, #4f46e5) 0%, var(--bf-primary-hover, #4338ca) 100%);
}

.bf-plan-card-body {
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Duration / Interval Badge in Brand Tint */
.bf-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bf-primary-light, #eef2ff);
    color: var(--bf-primary, #4f46e5);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    align-self: center;
    margin-bottom: 1.25rem;
}

.bf-plan-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.bf-plan-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

/* Price in Brand Color */
.bf-plan-price-wrap {
    margin: 0.75rem 0 1.25rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}

.bf-plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bf-primary, #4f46e5);
    line-height: 1;
    letter-spacing: -0.04em;
}

.bf-plan-cycle {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.bf-plan-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
}

.bf-plan-description p {
    margin: 0 0 0.5rem;
}

.bf-plan-description p:last-child {
    margin-bottom: 0;
}

/* Primary CTA Button in Brand Color */
.bf-plan-cta {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--bf-primary, #4f46e5);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border-radius: var(--bf-radius, 8px);
    box-shadow: 0 4px 14px var(--bf-primary-shadow, rgba(79, 70, 229, 0.25));
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.bf-plan-cta:hover {
    background: var(--bf-primary-hover, #4338ca);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--bf-primary-shadow, rgba(79, 70, 229, 0.35));
}

/* =================================================
   MEMBERS DIRECTORY
   ================================================= */

.bf-directory-wrapper {
    --bf-primary: #4f46e5;
    --bf-primary-light: #eef2ff;
    --bf-text: #111827;
    --bf-text-muted: #6b7280;
    --bf-border: #e5e7eb;
    --bf-surface: #ffffff;
    --bf-radius: 12px;
    font-family: 'Inter', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.bf-directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}
.bf-directory-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bf-text);
    margin: 0 0 0.25rem;
}
.bf-directory-subtitle {
    font-size: 0.9rem;
    color: var(--bf-text-muted);
    margin: 0;
}

/* Search & Filter Bar */
.bf-directory-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.bf-directory-search-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.bf-directory-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bf-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.bf-directory-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bf-surface);
}
.bf-directory-search-input:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px var(--bf-primary-shadow, rgba(79,70,229,0.1));
}
.bf-directory-plan-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius, 8px);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: var(--bf-surface);
    cursor: pointer;
    outline: none;
}
.bf-directory-plan-select:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px var(--bf-primary-shadow, rgba(79,70,229,0.1));
}
.bf-directory-search-btn {
    white-space: nowrap;
}

/* Members Grid */
.bf-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Member Card */
.bf-directory-card {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.bf-directory-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--bf-primary);
}
.bf-directory-card-avatar {
    margin-bottom: 0.5rem;
}
.bf-directory-card-avatar img.bf-directory-avatar,
.bf-directory-card-avatar .bf-directory-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bf-primary-light);
}
.bf-directory-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}
.bf-directory-member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bf-text);
    margin: 0;
    line-height: 1.3;
}
.bf-directory-plan-badge {
    display: inline-block;
    background: var(--bf-primary-light);
    color: var(--bf-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bf-directory-member-since {
    font-size: 0.78rem;
    color: var(--bf-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

/* Empty State */
.bf-directory-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--bf-text-muted);
    text-align: center;
}

/* Login Gate */
.bf-directory-gate {
    padding: 3rem;
    text-align: center;
    background: #f9fafb;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    color: var(--bf-text-muted);
}
.bf-directory-gate a {
    color: var(--bf-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Pagination */
.bf-directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.bf-directory-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bf-text);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.bf-directory-page-btn:hover {
    border-color: var(--bf-primary);
    background: var(--bf-primary-light);
    color: var(--bf-primary);
}
.bf-directory-page-info {
    font-size: 0.875rem;
    color: var(--bf-text-muted);
}

@media (max-width: 640px) {
    .bf-directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .bf-directory-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .bf-directory-search-group {
        min-width: unset;
    }
}

/* Directory Member Career & Bio */
.bf-directory-member-career {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--bf-primary);
    margin: 0;
    line-height: 1.3;
}
.bf-directory-member-bio {
    font-size: 0.8rem;
    color: var(--bf-text-muted);
    line-height: 1.4;
    margin: 0.25rem 0 0;
}

/* Alerts */
.bf-alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--bf-radius, 8px);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}
.bf-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.bf-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.bf-alert-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Badges */
.bf-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}
.bf-badge-active {
    background: #dcfce7;
    color: #166534;
}
.bf-badge-pending {
    background: #fef3c7;
    color: #92400e;
}
.bf-badge-expired {
    background: #fee2e2;
    color: #991b1b;
}
.bf-badge-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

/* Dashboard Profile Hero */
.bf-profile-hero {
    position: relative;
    border-radius: var(--bf-radius, 12px);
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, var(--bf-primary-hover, #4338ca) 60%, var(--bf-primary, #4f46e5) 100%);
    color: #ffffff;
    padding: 2.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
}
.bf-profile-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.bf-profile-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    z-index: 1;
}
.bf-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.bf-profile-hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: block;
    background: var(--bf-primary-hover, #312e81);
}
.bf-profile-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.bf-profile-hero-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.2;
}
.bf-profile-hero-career {
    font-size: 0.95rem;
    color: #c7d2fe;
    margin: 0;
    font-weight: 500;
}
.bf-profile-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.bf-profile-hero-plan {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
}
.bf-profile-hero-since {
    font-size: 0.8rem;
    color: #a5b4fc;
}

/* Stats Row */
.bf-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.bf-stat-card {
    background: var(--bf-bg-surface, #ffffff);
    border: 1px solid var(--bf-border, #e4e4e7);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.bf-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bf-text-muted, #71717a);
    font-weight: 600;
}
.bf-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bf-text-main, #18181b);
}

/* Dashboard Cards */
.bf-dashboard-card {
    background: var(--bf-bg-surface, #ffffff);
    border: 1px solid var(--bf-border, #e4e4e7);
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bf-dashboard-card-header {
    border-bottom: 1px solid var(--bf-border, #e4e4e7);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.bf-dashboard-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--bf-text-main, #18181b);
}

/* Avatar Upload Section */
.bf-avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bf-bg-subtle, #f4f4f5);
    border-radius: 8px;
    border: 1px dashed var(--bf-border, #e4e4e7);
    flex-wrap: wrap;
}
.bf-avatar-preview-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.bf-avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bf-avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    gap: 2px;
}
.bf-avatar-preview-wrap:hover .bf-avatar-upload-overlay {
    opacity: 1;
}
.bf-avatar-upload-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bf-avatar-upload-hint {
    font-size: 0.8rem;
    color: var(--bf-text-muted, #71717a);
    margin: 0;
}
.bf-avatar-file-input {
    font-size: 0.85rem;
    color: var(--bf-text-muted, #71717a);
}
.bf-avatar-remove-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #dc2626;
    cursor: pointer;
    margin-top: 0.25rem;
}
.bf-avatar-remove-label input[type="checkbox"] {
    accent-color: #dc2626;
}

/* Profile Form Footer */
.bf-profile-form-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* Payment Table */
.bf-payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}
.bf-payment-table th {
    background: var(--bf-bg-subtle, #f4f4f5);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--bf-text-muted, #71717a);
    border-bottom: 1px solid var(--bf-border, #e4e4e7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bf-payment-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bf-border, #e4e4e7);
    color: var(--bf-text-main, #18181b);
}
.bf-payment-table tr:last-child td {
    border-bottom: none;
}
.bf-payment-table tr:hover td {
    background: #fafafa;
}

/* Dashboard Footer */
.bf-dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}
.bf-logout-link {
    color: var(--bf-text-muted, #71717a);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.bf-logout-link:hover {
    color: #ef4444;
}

@media (max-width: 640px) {
    .bf-profile-hero {
        padding: 1.5rem;
    }
    .bf-profile-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .bf-profile-hero-meta {
        justify-content: center;
    }
    .bf-avatar-upload-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Site Logo & Brand Identity Styling
   ========================================================================== */

.bf-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bf-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.bf-logo-link:hover {
    opacity: 0.9;
}

.bf-site-logo {
    max-height: 52px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Fallback Text Monogram Logo */
.bf-text-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.bf-text-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bf-primary, #4f46e5);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: var(--bf-radius, 8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bf-text-logo-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bf-text-main, #0f172a);
    letter-spacing: -0.02em;
}

/* Top Nav on Member Dashboard */
.bf-dashboard-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bf-border, #e2e8f0);
}

.bf-dashboard-logo img {
    max-height: 42px;
    width: auto;
    display: block;
}