/* Partner Theme - Gold/Amber */

:root {
    --partner-primary: #fbbf24;
    --partner-primary-rgb: 251, 191, 36;
    --partner-dark: #92400e;
    --partner-light: rgba(251, 191, 36, 0.15);
}

/* Profile Header */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.15), transparent 60%);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #92400e, #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    border: 3px solid rgba(251, 191, 36, 0.5);
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid var(--color-bg-main);
}

/* Tier Badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tier-badge.verified {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.tier-badge.preferred {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tier-badge.elite {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-badge {
    padding: 0.3rem 0.6rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--partner-primary);
}

.profile-badge.green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Section Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
    overflow-x: auto;
}

.profile-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-tab:hover {
    color: var(--color-text-main);
}

.profile-tab.active {
    color: var(--partner-primary);
    border-bottom-color: var(--partner-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Styling */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--partner-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: rgba(15, 22, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tag:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.category-tag.selected {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--partner-primary);
    color: var(--partner-primary);
}

/* Compensation Types */
.compensation-card {
    padding: 1.25rem;
    background: rgba(15, 22, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.compensation-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.compensation-card.selected {
    border-color: var(--partner-primary);
    background: rgba(251, 191, 36, 0.08);
}

.compensation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.compensation-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Tier Progress */
.tier-progress {
    background: rgba(15, 22, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tier-levels {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 1.5rem;
}

.tier-levels::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.tier-level {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tier-level-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.25rem;
    border: 3px solid;
}

.tier-level.completed .tier-level-icon {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.tier-level.current .tier-level-icon {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.tier-level.locked .tier-level-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
}

.tier-level-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-level-req {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Credentials */
.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 22, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.credential-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* CRITICAL: Constrain main content to viewport */
    .partner-layout .main-wide {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 1.5rem 4vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Profile header mobile layout */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .profile-avatar-large {
        margin: 0 auto;
    }

    /* Profile tabs scroll on mobile */
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Form sections mobile spacing */
    .form-section {
        margin-bottom: 1.5rem;
    }

    /* Cards mobile padding */
    .card {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }

    /* Compensation cards mobile */
    .compensation-card {
        padding: 1rem;
    }

    /* Tier progress mobile */
    .tier-progress {
        padding: 1rem;
    }

    .tier-levels {
        flex-direction: column;
        gap: 1rem;
    }

    .tier-levels::before {
        display: none;
    }

    .tier-level {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .tier-level-icon {
        margin: 0;
    }

    /* Credential items mobile */
    .credential-item {
        padding: 0.75rem;
    }

    /* Category tags mobile */
    .category-tags {
        gap: 0.35rem;
    }

    .category-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Profile badges mobile */
    .profile-badges {
        justify-content: center;
    }
}

/* Card with Blue Gradient (matching HTML) */
.card {
    background: radial-gradient(circle at top, rgba(59,97,177,0.25), transparent 55%),
                var(--color-bg-panel);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.75rem;
}

/* Role Switcher */
.role-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 22, 51, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
}

.role-switcher:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.1);
}

.role-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.role-badge-icon.partner { background: rgba(251, 191, 36, 0.3); }
.role-badge-icon.investor { background: rgba(59, 130, 246, 0.3); }
.role-badge-icon.entrepreneur { background: rgba(34, 197, 94, 0.3); }
.role-badge-icon.originator { background: rgba(168, 85, 247, 0.3); }

.role-badge-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--partner-primary);
}

.role-badge-arrow {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.role-switcher.active .role-badge-arrow {
    transform: rotate(180deg);
}

.role-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--color-bg-panel);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    min-width: 240px;
}

.role-switcher.active .role-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.role-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.role-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--color-text-main);
}

.role-dropdown-item:hover {
    background: rgba(251, 191, 36, 0.1);
}

.role-dropdown-item.active {
    background: rgba(251, 191, 36, 0.15);
    border-left: 3px solid var(--partner-primary);
}

.role-dropdown-item .role-badge-icon {
    width: 32px;
    height: 32px;
}

.role-dropdown-item-info h4 {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.role-dropdown-item-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--color-text-muted);
}

.role-dropdown-item .checkmark {
    color: var(--color-success);
    margin-left: auto;
}

.role-dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.role-dropdown-footer a {
    font-size: 0.75rem;
    color: var(--partner-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Hide role switcher on mobile */
@media (max-width: 768px) {
    .role-switcher {
        display: none !important;
    }
}
/* ===== Page-level blue glow wash (matches approved HTML look) ===== */
/* ===== Fix canvas glow for Profile page (force repaint) ===== */
.partner-profile-page .page-container {
    background-color: transparent !important;
    background-image: radial-gradient(circle at 50% 35%, rgba(59, 97, 177, 0.35), rgba(0, 0, 0, 0) 62%), radial-gradient(circle at 20% 80%, rgba(59, 97, 177, 0.18), rgba(0, 0, 0, 0) 55%) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}


/* Button Sizing Fix - Ensure consistent button sizes */
/* Apply to all buttons in partner profile */
.partner-profile-page .btn,
.partner-profile-page button.btn {
    min-width: 160px !important;
    width: 160px !important;
    padding: 0.75rem 1.5rem !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Ensure primary and secondary buttons are same size */
.partner-profile-page .btn-primary,
.partner-profile-page .btn-secondary,
.partner-profile-page button.btn-primary,
.partner-profile-page button.btn-secondary {
    min-width: 160px !important;
    width: 160px !important;
    padding: 0.75rem 1.5rem !important;
}


/* ===== MOBILE: Convert Tabs to Accordion Layout ===== */
@media (max-width: 768px) {
    /* Hide horizontal tabs on mobile */
    .partner-profile-page .profile-tabs {
        display: none !important;
    }
    
    /* Show all tab content sections as accordion */
    .partner-profile-page .tab-content {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Add accordion-style header to each section */
    .partner-profile-page .tab-content .card {
        margin-bottom: 0 !important;
    }
    
    /* Add section title before each card */
    .partner-profile-page .tab-content:nth-of-type(1) .card::before {
        content: "Services & Expertise";
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--partner-primary);
    }
    
    .partner-profile-page .tab-content:nth-of-type(2) .card::before {
        content: "Compensation";
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--partner-primary);
    }
    
    .partner-profile-page .tab-content:nth-of-type(3) .card::before {
        content: "Credentials";
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--partner-primary);
    }
    
    .partner-profile-page .tab-content:nth-of-type(4) .card::before {
        content: "Conflicts of Interest";
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--partner-primary);
    }
    
    .partner-profile-page .tab-content:nth-of-type(5) .card::before {
        content: "Visibility Settings";
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--partner-primary);
    }
}
