/* ==========================================================================
   Hero Health B2B Partner Portal Stylesheet
   Path: heroworld.live/partner
   ========================================================================== */

:root {
    --partner-bg: #090d16;
    --partner-surface: #111827;
    --partner-surface-card: rgba(17, 24, 39, 0.75);
    --partner-surface-hover: rgba(31, 41, 55, 0.85);
    --partner-border: rgba(255, 255, 255, 0.08);
    --partner-border-glow: rgba(99, 102, 241, 0.25);
    
    --partner-primary: #6366f1;
    --partner-primary-hover: #4f46e5;
    --partner-primary-light: #818cf8;
    
    --partner-gold: #f59e0b;
    --partner-gold-glow: rgba(245, 158, 11, 0.2);
    
    --partner-emerald: #10b981;
    --partner-emerald-glow: rgba(16, 185, 129, 0.2);
    
    --partner-coral: #ec4899;
    --partner-amber: #f59e0b;
    --partner-rose: #f43f5e;
    
    --partner-text-white: #ffffff;
    --partner-text-muted: #cbd5e1;
    --partner-text-dim: #94a3b8;
    
    --partner-radius-sm: 8px;
    --partner-radius-md: 14px;
    --partner-radius-lg: 20px;
    --partner-radius-xl: 28px;
    
    --partner-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --partner-shadow-glow: 0 0 35px rgba(99, 102, 241, 0.2);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.partner-body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--partner-bg);
    color: var(--partner-text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Top Navigation Bar */
.partner-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.partner-nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 0;
    min-width: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--partner-text-white);
    flex-shrink: 0;
    height: 38px;
}

.brand-link img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.brand-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 6px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--partner-gold), #f97316);
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.nav-divider {
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* Partner Brand Identity Chip in Navbar */
.partner-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0 10px 0 5px;
    border-radius: 10px;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    max-width: 270px;
    min-width: 0;
    flex-shrink: 1;
}

.partner-brand-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.partner-brand-chip .org-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--partner-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.partner-brand-chip .org-info {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.partner-brand-chip .org-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    line-height: 1;
}

.partner-brand-chip .org-code-pill {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1;
}

.partner-brand-chip .live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    flex-shrink: 0;
}

/* Nav Tabs - Mathematically Centered */
.partner-nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--partner-border);
    height: 38px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: var(--partner-text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    height: 32px;
    padding: 0 13px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.nav-tab-btn:hover {
    color: var(--partner-text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    background: var(--partner-primary);
    color: var(--partner-text-white);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.partner-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

/* ── Interactive Test / Live Environment Swipe Toggle ── */
.env-swipe-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    height: 38px;
    padding: 3px;
    cursor: pointer;
    user-select: none;
    touch-action: pan-y;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.env-swipe-toggle:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.env-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
}

.env-swipe-toggle.test-active .env-toggle-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.env-toggle-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0 11px;
    height: 32px;
    border-radius: 7px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--partner-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}

.env-toggle-btn.active {
    color: #ffffff;
}

.env-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.env-status-dot.live {
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.env-status-dot.test {
    background: #F59E0B;
    box-shadow: 0 0 6px #F59E0B;
}

/* ── Verified Partner Facility Chip in Account Strip ── */
.account-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.22));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}

.account-verified-chip .verified-shield {
    font-size: 0.95rem;
}

/* ── At-Risk Banner All-Clear State (Calm & Professional) ── */
.at-risk-banner.all-clear {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(15, 23, 42, 0.6));
    border-color: rgba(16, 185, 129, 0.25);
}

.at-risk-banner.all-clear .at-risk-icon {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.at-risk-banner.all-clear .at-risk-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Search input wrapper clear button */
.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--partner-text-dim);
    cursor: pointer;
    padding: 4px;
    display: none;
    border-radius: 50%;
}

.search-clear-btn:hover {
    color: #ffffff;
}

.search-match-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--partner-primary);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 10px;
    display: none;
}


.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--partner-border);
    color: var(--partner-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn-icon:hover {
    color: var(--partner-text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--partner-gold);
    box-shadow: 0 0 8px var(--partner-gold);
}

.manager-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 4px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--partner-border);
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.manager-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.manager-avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.manager-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Main Container */
.partner-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ==========================================================================
   Gym Owner & Facility Profile Component
   ========================================================================== */
.owner-facility-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.owner-facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B 0%, #10B981 50%, #6366F1 100%);
}

.owner-facility-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}

/* Column 1: Facility Identity & Physical Street Address */
.facility-identity-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.facility-brand-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.facility-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.facility-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.facility-name-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.facility-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.badge-verified-facility {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.badge-org-category {
    font-size: 0.68rem;
    font-weight: 700;
    color: #818CF8;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    padding: 2px 7px;
}

.badge-payout-split {
    font-size: 0.68rem;
    font-weight: 700;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 2px 7px;
}

.facility-address-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-text-display {
    font-size: 0.85rem;
    color: #E2E8F0;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.address-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.coords-pill {
    font-size: 0.7rem;
    color: #10B981;
    font-family: 'JetBrains Mono', monospace, Consolas, monospace;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 6px;
    border-radius: 5px;
}

.btn-open-maps {
    font-size: 0.74rem;
    color: #818CF8;
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-open-maps:hover {
    color: #A5B4FC;
}

.btn-touch-map {
    font-size: 0.72rem;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-touch-map:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: #F59E0B;
}

/* Column 2: Owner & Reception Management */
.facility-owner-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    gap: 12px;
}

.owner-col-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.owner-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.owner-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-meta-lbl {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 500;
}

.owner-meta-val {
    font-size: 0.88rem;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

a.owner-meta-val:hover {
    color: #F59E0B;
}

.partner-id-badge {
    font-family: 'JetBrains Mono', monospace, Consolas, monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

/* Column 3: Member Squad Invite Code Box & Fast Actions */
.facility-squad-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    gap: 14px;
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.04);
}

.squad-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.squad-col-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #F59E0B;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.squad-code-pill-lg {
    font-family: 'JetBrains Mono', monospace, Consolas, monospace;
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.15);
}

.squad-desc-text {
    font-size: 0.75rem;
    color: #CBD5E1;
    line-height: 1.35;
    margin-top: -4px;
}

.squad-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-squad-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-squad-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-squad-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.btn-squad-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-squad-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.toast-copy-notification {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: #000;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.toast-copy-notification.show {
    opacity: 1;
    bottom: 8px;
}

/* Page Header & Welcome Banner */
.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-title-block h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.portal-title-block p {
    color: var(--partner-text-muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--partner-primary), var(--partner-primary-hover));
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--partner-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--partner-text-white);
    border: 1px solid var(--partner-border);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--partner-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Section 1: Pulse Metrics (Above-the-Fold KPI Cards)
   ========================================================================== */
.pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pulse-card {
    background: var(--partner-surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--partner-shadow-card);
}

.pulse-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.pulse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--card-accent, var(--partner-primary)), transparent);
}

.pulse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pulse-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--partner-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--card-accent, var(--partner-primary));
}

.pulse-val {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pulse-val-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--partner-text-dim);
}

.pulse-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--partner-text-muted);
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.76rem;
}

.trend-up {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.trend-neutral {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--card-accent, var(--partner-primary)), #818cf8);
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* ==========================================================================
   Section 2: Table-Based Client Progress Tracking (RULE STRICT: NO NUDGES)
   ========================================================================== */
.table-card {
    background: var(--partner-surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--partner-shadow-card);
}

.table-toolbar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--partner-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.table-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-filter-pills {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--partner-border);
}

.filter-pill {
    background: transparent;
    border: 1px solid transparent;
    color: var(--partner-text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
    color: var(--partner-text-white);
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.22));
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--partner-text-muted);
    pointer-events: none;
    z-index: 2;
}

.table-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--partner-radius-md);
    padding: 9px 36px 9px 38px;
    color: var(--partner-text-white);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    outline: none;
    width: 250px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-search-input::placeholder {
    color: #94A3B8;
}

.table-search-input:focus {
    border-color: #F59E0B;
    width: 310px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 0 20px rgba(245, 158, 11, 0.15);
}

/* Table Layout */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.progress-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.progress-table th {
    background: rgba(17, 24, 39, 0.95);
    padding: 14px 20px;
    color: var(--partner-text-dim);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--partner-border);
    white-space: nowrap;
}

.progress-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.progress-table tr:hover td {
    background: var(--partner-surface-hover);
}

/* Table Cells */
.member-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.member-name {
    font-weight: 600;
    color: var(--partner-text-white);
    line-height: 1.2;
}

.member-sub {
    font-size: 0.76rem;
    color: var(--partner-text-dim);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-consistent {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-ontrack {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-focus {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.metric-bar-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}

.metric-bar-val {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.goal-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--partner-text-dim);
    font-size: 0.84rem;
    border-top: 1px solid var(--partner-border);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-page {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    color: var(--partner-text-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-page:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Section 3: Squad Leaderboard & Podium
   ========================================================================== */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

@media (max-width: 960px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
}

.podium-card {
    background: var(--partner-surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    padding: 24px;
    box-shadow: var(--partner-shadow-card);
}

.podium-header {
    margin-bottom: 24px;
}

.podium-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.podium-header p {
    color: var(--partner-text-muted);
    font-size: 0.88rem;
}

.podium-stages {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding: 30px 10px 10px;
}

.podium-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-avatar-wrap {
    position: relative;
    margin-bottom: 12px;
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.podium-rank-badge {
    position: absolute;
    bottom: -6px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
}

.step-gold .podium-avatar {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #d97706, #fbbf24);
    width: 72px;
    height: 72px;
}

.step-gold .podium-rank-badge {
    background: #fbbf24;
}

.step-silver .podium-avatar {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #64748b, #cbd5e1);
}

.step-silver .podium-rank-badge {
    background: #cbd5e1;
}

.step-bronze .podium-avatar {
    border-color: #f97316;
    background: linear-gradient(135deg, #c2410c, #f97316);
}

.step-bronze .podium-rank-badge {
    background: #f97316;
}

.podium-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.podium-xp {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--partner-gold);
}

.podium-pillar {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    border-radius: 12px 12px 0 0;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--partner-text-dim);
}

.step-gold .podium-pillar {
    height: 110px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(255, 255, 255, 0.02));
    border-color: rgba(245, 158, 11, 0.3);
}

.step-silver .podium-pillar {
    height: 80px;
}

.step-bronze .podium-pillar {
    height: 60px;
}

/* Hero of Month Spotlight */
.hero-month-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--partner-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--partner-gold);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.spotlight-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.spotlight-avatar {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.spotlight-info h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.spotlight-streak {
    color: var(--partner-gold);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spotlight-perk-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--partner-radius-md);
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--partner-text-muted);
}

.spotlight-perk-box strong {
    color: var(--partner-text-white);
}

/* ==========================================================================
   Section 4: 1-Click Co-Branded Marketing Standee & Poster Generator
   ========================================================================== */
.marketing-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .marketing-grid {
        grid-template-columns: 1fr;
    }
}

/* Acrylic Standee Live Realistic Preview (5" x 7" Ratio) */
.standee-frame-outer {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.standee-acrylic-card {
    width: 320px;
    height: 448px; /* 5:7 aspect ratio */
    background: linear-gradient(145deg, #182234, #0b1120);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
}

/* Acrylic Glass Shine Effect */
.standee-acrylic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.16) 50%,
        transparent 55%
    );
    pointer-events: none;
}

.standee-base-stand {
    width: 240px;
    height: 14px;
    background: linear-gradient(180deg, #374151, #1f2937);
    border-radius: 4px;
    margin-top: -6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.standee-partner-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--partner-gold);
}

.standee-headline {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 8px 0;
    color: #fff;
}

.standee-subheadline {
    font-size: 0.76rem;
    color: var(--partner-text-muted);
    line-height: 1.35;
    margin-bottom: 12px;
}

/* QR Code Container on Standee */
.standee-qr-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.standee-qr-box canvas {
    display: block;
    width: 150px !important;
    height: 150px !important;
}

.standee-code-pill {
    background: #000000;
    color: #fbbf24;
    font-family: monospace;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 6px;
    letter-spacing: 1px;
}

.standee-perk-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.standee-footer-powered {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--partner-text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Standee Configuration Panel */
.marketing-controls-card {
    background: var(--partner-surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    padding: 28px;
    box-shadow: var(--partner-shadow-card);
}

.marketing-controls-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.marketing-controls-card p {
    color: var(--partner-text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--partner-text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-md);
    padding: 10px 14px;
    color: var(--partner-text-white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--partner-primary);
}

.action-buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open,
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #111827;
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-xl);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-box,
.modal-backdrop.active .modal-box {
    transform: translateY(0);
}

/* ==========================================================================
   Live Production Auth Gate Banner & Super Admin Access
   ========================================================================== */
.live-auth-gate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(17, 24, 39, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.live-auth-gate-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-auth-gate-icon {
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.live-auth-gate-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Super Admin Instant Auth Card in Modal */
.admin-instant-auth-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.08));
    border: 1.5px solid rgba(99, 102, 241, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-instant-auth-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.18));
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.admin-instant-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.admin-instant-body {
    flex: 1;
    min-width: 0;
}

.admin-instant-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.admin-instant-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #fff;
}

.admin-instant-badge {
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.admin-instant-email {
    font-size: 0.85rem;
    font-weight: 700;
    color: #818cf8;
    font-family: monospace;
}

.admin-instant-desc {
    font-size: 0.72rem;
    color: var(--partner-text-muted);
    margin-top: 2px;
}

.admin-instant-arrow {
    font-size: 1.2rem;
    color: #818cf8;
    font-weight: 800;
    padding-left: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--partner-text-dim);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .live-auth-gate-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .live-auth-gate-actions {
        width: 100%;
        flex-direction: column;
    }
    .live-auth-gate-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Slide-Over Athlete Progress Dossier Drawer */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.slide-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: #0d121f;
    border-left: 1px solid var(--partner-border);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-backdrop.open .slide-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--partner-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.6);
}

.drawer-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.drawer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.drawer-sub {
    font-size: 0.8rem;
    color: var(--partner-text-muted);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--partner-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Dossier Cards inside Drawer */
.dossier-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-md);
    padding: 18px 20px;
}

.dossier-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--partner-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 30-Day Attendance Heatmap Grid */
.heatmap-week-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.heatmap-week-label {
    font-size: 0.75rem;
    color: var(--partner-text-dim);
    width: 55px;
    font-weight: 600;
}

.heatmap-days-wrap {
    display: flex;
    gap: 6px;
    flex: 1;
}

.heatmap-day {
    flex: 1;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
}

.heatmap-day.active {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.heatmap-day.missed {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
}

.heatmap-day.rest {
    background: rgba(255, 255, 255, 0.03);
}

.heatmap-day:hover {
    transform: scale(1.15);
    z-index: 2;
}

/* Trajectory Stat Box */
.trajectory-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.trajectory-big-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.trajectory-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.trajectory-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.trajectory-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Organizations Directory Modal */
.modal-box-large {
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
}

.org-type-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.org-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    color: var(--partner-text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.org-tab-btn.active,
.org-tab-btn:hover {
    background: var(--partner-primary);
    border-color: var(--partner-primary);
    color: #fff;
}

.org-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 55vh;
}

.org-item-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.org-item-card:hover {
    border-color: var(--partner-primary);
    background: rgba(31, 41, 55, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.org-item-card.selected {
    border-color: var(--partner-primary);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.org-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.org-item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.2rem;
}

.org-item-info {
    flex: 1;
}

.org-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.org-item-sub {
    font-size: 0.78rem;
    color: var(--partner-text-muted);
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.org-badge-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.org-item-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.org-stat-box {
    display: flex;
    flex-direction: column;
}

.org-stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.org-stat-lbl {
    font-size: 0.7rem;
    color: var(--partner-text-dim);
    text-transform: uppercase;
}

/* Clickable table row styling */
.progress-table tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.progress-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Organization pill inside table */
.org-table-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--partner-text-muted);
}

/* At-Risk Attendance Predictor Banner */
.at-risk-banner {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: var(--partner-radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.at-risk-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.at-risk-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.at-risk-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.at-risk-text p {
    font-size: 0.8rem;
    color: var(--partner-text-muted);
}

.at-risk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   Partner Account Status Strip & 50/50 Dual Approval Card
   ========================================================================== */
.partner-account-strip {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.account-strip-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-pill-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill-lg.unpaid {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-pill-lg .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.account-strip-info {
    font-size: 0.82rem;
    color: var(--partner-text-muted);
}

.btn-toggle-pay {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--partner-border);
    color: var(--partner-text-white);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-pay:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--partner-primary);
}

/* 50/50 Revenue Split & Dual Payout Card */
.payout-summary-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--partner-border);
    border-radius: var(--partner-radius-lg);
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: var(--partner-shadow-card);
}

.payout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.payout-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.payout-status-badge.paid {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.payout-status-badge.partial {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.payout-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.payout-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--partner-radius-sm);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
}

.payout-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--partner-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.payout-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.payout-sub {
    font-size: 0.74rem;
    color: var(--partner-text-muted);
    margin-top: 2px;
}

.payout-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
    flex-wrap: wrap;
}

.dual-steps-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--partner-text-muted);
    flex-wrap: wrap;
}

.dual-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dual-step.accepted {
    color: #34d399;
}

.dual-step.accepted .step-check {
    color: #34d399;
}

.dual-step-arrow {
    color: var(--partner-text-dim);
}

.step-check {
    font-weight: 800;
    font-size: 1rem;
}

.payout-btns-wrap {
    display: flex;
    gap: 10px;
}

/* Standee Unpaid Lock Overlay */
.standee-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 10;
    border-radius: var(--partner-radius-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.standee-lock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.standee-lock-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   PWA Installation, Mobile Web App Controls & Responsive Stylesheet
   ========================================================================== */

/* PWA Install / Bookmark Button in Navbar */
.btn-install-pwa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    padding: 0 12px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
}

.btn-install-pwa:hover {
    background: rgba(99, 102, 241, 0.24);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.btn-install-pwa .pwa-icon {
    font-size: 0.9rem;
}

/* Mobile Bottom Navigation Bar (iOS / Android Native App Experience) */
.partner-bottom-nav {
    display: none;
}

/* PWA Install / Bookmark Modal */
.pwa-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    max-width: 440px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1002;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-header {
    margin-bottom: 16px;
}

.pwa-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.pwa-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.pwa-modal-desc {
    font-size: 0.84rem;
    color: var(--partner-text-muted);
    line-height: 1.5;
}

.pwa-steps-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--partner-border);
    border-radius: 12px;
    padding: 14px;
    margin: 18px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.pwa-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--partner-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pwa-modal-actions {
    display: flex;
    gap: 10px;
}

.pwa-modal-actions button {
    flex: 1;
}

/* ==========================================================================
   Mobile Responsive Overrides (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Safe Area Inset Support for iPhone home indicator */
    body.partner-body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    .partner-nav {
        height: 60px;
        padding: 0 14px;
    }

    .brand-link img {
        height: 30px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-badge {
        display: none;
    }

    /* Move navigation tabs to bottom on mobile */
    .partner-nav-tabs {
        display: none;
    }

    .partner-brand-chip {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--partner-border);
        max-width: 140px;
    }

    .partner-brand-chip .org-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .partner-brand-chip .org-info {
        max-width: 95px;
    }

    .partner-brand-chip .org-name {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
    }

    .partner-brand-chip .org-code,
    .partner-brand-chip #liveSyncBeacon {
        display: none !important;
    }

    /* Owner Facility Card Responsive */
    .owner-facility-card {
        padding: 18px 16px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .owner-facility-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .facility-avatar-lg {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .facility-name-title {
        font-size: 1.18rem;
    }

    .squad-code-pill-lg {
        font-size: 1.25rem;
        padding: 8px 12px;
    }

    .squad-actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .btn-squad-action {
        padding: 8px 6px;
        font-size: 0.72rem;
    }

    .btn-install-pwa .pwa-text {
        display: none;
    }

    .btn-install-pwa {
        padding: 6px 10px;
    }

    .partner-container {
        padding: 16px 12px;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .portal-title-block h1 {
        font-size: 1.35rem;
    }

    .portal-title-block p {
        font-size: 0.82rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .header-actions button {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .partner-env-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }

    .env-banner-right {
        align-self: flex-end;
    }

    /* Payout Card Responsive */
    .payout-metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payout-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payout-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Pulse Metrics Responsive */
    .pulse-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pulse-card {
        padding: 16px;
    }

    /* Table Toolbar Responsive */
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
    }

    .toolbar-left {
        width: 100%;
    }

    .toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-input-wrap {
        width: 100%;
    }

    .table-search-input {
        width: 100%;
    }

    .table-filter-pills {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-pill {
        flex-shrink: 0;
        font-size: 0.76rem;
        padding: 5px 12px;
    }

    /* Table Horizontal Touch Scrolling */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 12px 12px;
    }

    .progress-table th,
    .progress-table td {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    /* Slide-Over Athlete Dossier Drawer -> Native Bottom Sheet on Mobile */
    .athlete-drawer {
        width: 100%;
        max-width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-top: 1px solid var(--partner-border-glow);
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    }

    .athlete-drawer.active {
        transform: translateY(0);
    }

    .drawer-mobile-handle {
        display: block;
        width: 44px;
        height: 5px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 9999px;
        margin: 10px auto 4px;
    }

    /* Mobile Bottom Navigation Bar */
    .partner-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99;
        background: rgba(9, 13, 22, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--partner-border);
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    }

    .bottom-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        background: transparent;
        border: none;
        color: var(--partner-text-muted);
        font-size: 0.68rem;
        font-weight: 600;
        cursor: pointer;
        padding: 4px 10px;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .bottom-nav-btn.active {
        color: var(--partner-primary);
    }

    .bottom-nav-btn.active .bottom-nav-icon {
        transform: scale(1.15);
    }

    .bottom-nav-icon {
        font-size: 1.15rem;
        transition: transform 0.2s ease;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1120px) {
    .owner-facility-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    .facility-squad-col {
        grid-column: 1 / -1;
    }
    .pulse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Bottom Nav Hidden */
/* ==========================================================================
   Production Partner Gatekeeper / Access Screen Styles
   ========================================================================== */
.partner-gatekeeper-view {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
    box-sizing: border-box;
    overflow: hidden;
}

.gatekeeper-glow-top {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.gatekeeper-glow-bottom {
    position: absolute;
    bottom: -150px;
    right: 10%;
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.gatekeeper-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 38px 34px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: gatekeeperCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gatekeeperCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gatekeeper-header {
    text-align: center;
    margin-bottom: 24px;
}

.gatekeeper-shield-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.gatekeeper-shield-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    animation: pulseRing 2.4s infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 0.2; }
    100% { transform: scale(0.96); opacity: 0.8; }
}

.gatekeeper-shield-icon {
    font-size: 2rem;
    line-height: 1;
}

.gatekeeper-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.badge-dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.gatekeeper-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gatekeeper-subtitle {
    font-size: 0.86rem;
    color: var(--partner-text-muted);
    line-height: 1.5;
    margin: 0;
}

.gatekeeper-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.gatekeeper-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--partner-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gatekeeper-tab-btn.active {
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gatekeeper-form-group {
    margin-bottom: 18px;
}

.gatekeeper-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gatekeeper-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 14px;
    font-size: 1.15rem;
    color: var(--partner-text-dim);
    pointer-events: none;
}

.gatekeeper-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 14px 13px 44px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gatekeeper-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.2);
}

.gatekeeper-input-hint {
    font-size: 0.74rem;
    color: var(--partner-text-dim);
    margin-top: 6px;
}

.gatekeeper-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    line-height: 1.4;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.gatekeeper-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
    transition: all 0.2s ease;
}

.gatekeeper-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.gatekeeper-btn-submit:active {
    transform: translateY(0);
}

.gatekeeper-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gatekeeper-admin-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gatekeeper-or-divider {
    text-align: center;
    margin-bottom: 12px;
}

.gatekeeper-or-divider span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--partner-text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gatekeeper-admin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(30, 27, 75, 0.45);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gatekeeper-admin-btn:hover {
    background: rgba(30, 27, 75, 0.8);
    border-color: #6366f1;
    transform: translateY(-1px);
}

.admin-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
}

.admin-text {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
}

.admin-email {
    font-size: 0.72rem;
    color: var(--partner-text-muted);
}

.admin-btn-action {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a5b4fc;
}

.gatekeeper-card-footer {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gatekeeper-trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--partner-text-dim);
}

.gatekeeper-demo-btn {
    background: none;
    border: none;
    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.gatekeeper-demo-btn:hover {
    color: #a5b4fc;
}

.btn-lock-desk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lock-desk:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   Print Stylesheet: Print Clean 5" x 7" Standee directly from browser
   ========================================================================== */
@media print {
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .partner-nav,
    .portal-header,
    .partner-account-strip,
    .pulse-grid,
    .at-risk-banner,
    .table-card,
    .payout-summary-card,
    .leaderboard-grid,
    .marketing-controls-card,
    .standee-base-stand,
    .header-actions,
    .modal-backdrop,
    .drawer-backdrop,
    .partner-gatekeeper-view,
    .live-auth-gate-banner,
    .partner-bottom-nav,
    #realtimeToast {
        display: none !important;
        visibility: hidden !important;
    }
    
    .marketing-grid {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .standee-frame-outer {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-shadow: none !important;
    }
    
    .standee-acrylic-card {
        width: 5in !important;
        height: 7in !important;
        box-shadow: none !important;
        border: 2px solid #000 !important;
        background: #ffffff !important;
        color: #000000 !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        margin: 0 auto !important;
    }
    
    .standee-headline {
        color: #000000 !important;
    }
    
    .standee-subheadline {
        color: #4b5563 !important;
    }
    
    .standee-code-pill {
        background: #000000 !important;
        color: #ffffff !important;
    }
}

