/* ============================================================
   Dashboard Premium Profile – index.css
   Full-width LinkedIn-style profiles
   ============================================================ */

:root {
    --investefy-teal: #2a6f7a;
    --investefy-light-teal: #84c0ca;
    --investefy-green: #9eb86e;
    --premium-shadow: 0 10px 30px rgba(42, 111, 122, 0.08);
    --border-color: #eef2f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.profile-dashboard-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Profile Completion Progress */
.completion-progress-wrapper {
    width: 120px;
    height: 8px;
    background: #eef1f4;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.completion-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.completion-pct {
    font-size: 13px;
    font-weight: 800;
    color: var(--investefy-teal);
    min-width: 40px;
}

/* ---------- Premium Profile Card ---------- */
.profile-section-card, .premium-profile-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 25px 8px;
    margin-bottom: 8px;
}

.premium-profile-card {
    padding: 0; /* Cover photo card doesn't need internal padding */
}

/* ---------- Header Section ---------- */
.profile-header-container {
    position: relative;
    background: #fff;
}

.cover-photo-wrapper {
    height: 240px; /* Taller for full-width */
    background-color: #2a6f7a;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(164deg, #4dbdda, #b6e166);
    transition: all 0.3s ease;
}

.cover-photo-wrapper[data-has-image="true"] .cover-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.cover-edit-btn {
    position: relative;
    margin: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    font-size: 16px;
}

.cover-edit-btn:hover {
    background: #fff;
    color: #4dbdda;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.profile-id-badge {
    display: none !important;
}

.profile-info-bar {
    margin-top: -80px; 
    padding: 0 60px 15px;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    position: relative;
    z-index: 5;
}

.profile-photo-wrapper {
    position: relative;
}

.profile-main-photo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 3px solid #fff;
    object-fit: cover;
    background: #fff;
    z-index: 10;
}

.photo-edit-btn {
    position: relative;
    margin: 0;
    width: 38px;
    height: 38px;
    background: var(--investefy-teal);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    transition: all 0.3s;
}

.photo-edit-btn:hover {
    transform: scale(1.1);
    background: var(--investefy-light-teal);
}

.profile-meta-main {
    flex-grow: 1;
    margin-bottom: 10px;
    position: relative;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-display-name {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.verified-icon {
    color: var(--investefy-light-teal);
    font-size: 20px;
}

/* Online Indicator */
.online-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.online-status-dot.online {
    background-color: #28c76f;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(40, 199, 111, 0.6);
}

.profile-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 4px 0 10px;
    font-weight: 500;
}

.role-badge-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.role-pill {
    background: #f0f7f8;
    color: var(--investefy-teal);
    padding: 5px 16px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(132, 192, 202, 0.3);
}

.status-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.status-pill.approved { background: #dcfce7; color: #166534; }
.status-pill.pending { background: #fef9c3; color: #854d0e; }

.profile-actions-main {
    padding-bottom: 32px;
}

/* ---------- Contact Bar ---------- */
.contact-details-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 12px 40px;
    background: #fcfdfe;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-item i {
    color: var(--investefy-teal);
    font-size: 16px;
}

.visibility-toggle {
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    transition: all 0.3s;
    opacity: 0.6;
}

.visibility-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.visibility-toggle.hidden {
    color: #ef4444;
}

.visibility-toggle.visible {
    color: #22c55e;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

.profile-completion-mini {
    margin-left: auto;
    width: 300px;
}

.completion-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.completion-info strong { color: var(--investefy-teal); }

.completion-track {
    height: 8px;
    background: #eef2f6;
    border-radius: 10px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--investefy-teal), #3d8a96);
    border-radius: 10px;
    transition: width 1s ease;
}

/* ---------- Content Body ---------- */
.profile-content-body {
    padding: 30px 40px;
    background: #f8fafc; /* Subtle light background for the body */
}

.profile-section-card:hover {
    box-shadow: 0 8px 30px rgba(42, 111, 122, 0.08);
}

.profile-section-card .section-header {
  background: #f9f9f9;
  padding: 3px 25px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-section-card .section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333334;
  display: flex;
  align-items: center;
}

.header-accent {
    width: 8px;
    height: 22px;
    background: linear-gradient(180deg, var(--investefy-teal) 0%, #3d8a96 100%);
    border-radius: 3px;
    display: inline-block;
    margin-right: 14px;
    vertical-align: middle;
}

.section-edit-link {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--investefy-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.section-edit-link:hover {
    background: var(--investefy-teal);
    color: #fff;
    border-color: var(--investefy-teal);
    transform: translateY(-2px);
}

.section-body {
    background: transparent;
}

/* Detail Items Horizontal Grid */
.detail-h-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.detail-h-item:hover {
    border-color: var(--investefy-light-teal);
    box-shadow: 0 4px 15px rgba(42, 111, 122, 0.05);
    background: #fcfdfe;
}

.detail-icon-bx {
    width: 40px;
    height: 40px;
    background: #f0f7f8;
    color: var(--investefy-teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fin-detail-icon {
    background: #fff7f7;
    color: #e11d48;
}

.detail-info-bx {
    flex: 1;
    min-width: 0;
}

/* Contact detail row with per-field toggle */
.contact-detail-item {
    align-items: center;
}

.visibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.visibility-toggle.visible {
    color: var(--investefy-teal);
    background: rgba(42, 111, 122, 0.08);
    border-color: rgba(42, 111, 122, 0.2);
}

.visibility-toggle.visible:hover {
    background: rgba(42, 111, 122, 0.18);
}

.visibility-toggle.hidden {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.visibility-toggle.hidden:hover {
    color: var(--investefy-teal);
    background: rgba(42, 111, 122, 0.08);
}

.detail-info-bx .detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.detail-info-bx .detail-value {
    display: block;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    word-break: break-word;
}

.detail-info-bx .fin-value {
    color: var(--investefy-teal);
    font-weight: 800;
}

/* Strategic Section Boxes */
.strategic-inner-box {
    border: 1.5px solid #f1f5f9;
    border-radius: 6px;
    padding: 12px;
    background: #fafbfc;
    height: 100%;
}

.strategic-inner-box h6 {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.strategic-inner-box h6 i {
    margin-right: 10px;
    opacity: 0.6;
}

/* Tabs */
.profile-switcher-tabs {
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
}

.role-tab {
    padding: 10px 24px;
    background: #fff;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.role-tab.active {
    background: #fff;
    color: var(--investefy-teal);
    border-color: var(--investefy-teal);
    box-shadow: 0 8px 20px rgba(42, 111, 122, 0.12);
    transform: translateY(-2px);
}

.role-tab:hover:not(.active) {
    background: #f8fafc;
    border-color: var(--investefy-light-teal);
    color: var(--investefy-teal);
}


/* Sidebar Listing Cards */
.opportunity-sidebar-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 12px;
}

.opportunity-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border-color: var(--investefy-light-teal);
}

.sidebar-type-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.sidebar-card-label {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.sidebar-card-manage {
    font-size: 11px;
    color: var(--investefy-teal);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 2px;
}

.sidebar-card-manage:hover {
    color: var(--investefy-light-teal);
    text-decoration: underline;
}

/* Website View Specific Sidebar Cards */
.website-listing-card {
    border-color: #f1f5f9;
    background: linear-gradient(to bottom right, #ffffff, #fcfdfe);
    padding: 18px;
    border-radius: 14px;
    border-left: 4px solid var(--investefy-teal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.website-listing-card:hover {
    border-left-width: 6px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(42, 111, 122, 0.08);
}

.website-listing-card .sidebar-type-icon {
    width: 44px;
    height: 44px;
    background: var(--investefy-teal);
    color: #fff;
    border: none;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(42, 111, 122, 0.2);
}

.website-listing-card .sidebar-card-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--investefy-teal);
}

.website-listing-card .stat-group-row {
    background: rgba(132, 192, 202, 0.05);
    border-radius: 8px;
    padding: 10px;
    border-top: none;
}

.website-listing-card .stat-box {
    border: none !important;
}

.website-listing-card .stat-num.active {
    color: var(--investefy-green);
    font-size: 20px;
}

.website-listing-card .stat-tag {
    color: var(--investefy-teal);
    font-size: 10px;
    font-weight: 800;
}

.stat-group-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.stat-box {
    text-align: center;
    flex: 1;
}

.stat-box.border-sides {
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.stat-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 3px;
}

/* Help Card - Forced Specificity */
.profile-section-card.help-premium-card {
    background: linear-gradient(135deg, #2a6f7a 0%, #3d8a96 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 30px 25px !important;
    text-align: center !important;
}

.help-icon-circle {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 22px;
    color: #fff !important;
}

.btn-help-support {
    background: #ffffff !important;
    color: #2a6f7a !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    border: none !important;
    display: inline-block !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    text-align: center !important;
}

.help-text {
    color: rgba(255,255,255,0.9) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* Sidebar Specifics - Forced Layout */
.premium-sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 100;
}
.opportunity-sidebar-card .stat-group-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 0 !important;
}

.opportunity-sidebar-card .stat-box {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-help-support {
    background: #ffffff !important;
    color: #2a6f7a !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    text-align: center !important;
}

/* Empty State */
.empty-state-card {
    padding: 100px 40px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.btn-start-journey {
    border-radius: 14px;
    padding: 14px 28px;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    background: var(--investefy-teal);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}

.btn-start-journey:hover {
    background: var(--investefy-light-teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 111, 122, 0.2);
}

.recent-listing-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #fcfdfe;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.recent-listing-item:hover {
    border-color: var(--investefy-light-teal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    background: #fff;
}

/* About Text */
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.detail-item {
    background: #fcfdfe;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

/* Financial Cards */
.financial-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.financial-item-card {
    background: #f0fafa;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #d1eaea;
}

.fin-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--investefy-teal);
    margin-bottom: 8px;
}

.fin-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--investefy-teal);
}

/* Tags & Cloud */
.tags-group {
    margin-bottom: 35px;
}

.tags-group h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.premium-tag:hover {
    background: var(--investefy-teal);
    color: #fff;
    border-color: var(--investefy-teal);
}

.location-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.location-tag i {
    margin-right: 5px;
    color: var(--investefy-light-teal);
}

.hashtag {
    color: var(--investefy-teal);
    font-weight: 700;
    font-size: 14px;
}

.empty-tag {
    color: #cbd5e1;
    font-style: italic;
    font-size: 13px;
}

/* ---------- Empty State ---------- */
.empty-dashboard-state {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--premium-shadow);
}

.empty-icon {
    font-size: 80px;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.create-profile-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-create-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    padding: 30px;
    border-radius: 20px;
    min-width: 160px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
}

.btn-create-profile:hover {
    border-color: var(--investefy-light-teal);
    background: #f0f9fa;
    transform: translateY(-5px);
    color: var(--investefy-teal);
}

.btn-create-profile i {
    font-size: 28px;
    color: #cbd5e1;
}

.btn-create-profile:hover i {
    color: var(--investefy-light-teal);
}

/* ---------- Listings Section ---------- */
.listings-section-wrapper {
    margin-top: 50px;
}

.section-title-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title-premium h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    position: relative;
}

.section-title-premium h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--investefy-teal);
    border-radius: 2px;
}

.btn-add-mini {
    background: #f0f9fa;
    color: var(--investefy-teal);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(42, 111, 122, 0.1);
    transition: all 0.2s;
}

.btn-add-mini:hover {
    background: var(--investefy-teal);
    color: #fff;
}

.listing-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.listing-stat-card-premium {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    display: flex;
    align-items: stretch;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.listing-stat-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--premium-shadow);
    border-color: var(--investefy-light-teal);
}

.stat-main-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.stat-main-link:hover {
    color: inherit;
}

.stat-add-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    background: #f8fafb;
    border-left: 1px solid var(--border-color);
    color: var(--investefy-teal);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.stat-add-action:hover {
    background: var(--investefy-teal);
    color: #fff;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.listing-stat-card-premium.business .stat-icon { background: #fdf4ff; color: #d946ef; }
.listing-stat-card-premium.franchise .stat-icon { background: #fff7ed; color: #f97316; }
.listing-stat-card-premium.funding-&-partnership .stat-icon { background: #eff6ff; color: #3b82f6; }
.listing-stat-card-premium.assets .stat-icon { background: #f0fdf4; color: #22c55e; }
.listing-stat-card-premium.properties .stat-icon { background: #fef2f2; color: #ef4444; }

.stat-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.listing-stat-card.business .stat-icon { background: #fdf4ff; color: #d946ef; }
/* ---------- Integrated Listing Items ---------- */
.opportunities-list-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.opportunity-item-compact {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #fdfdfd;
    border: 1px solid #f0f2f5;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.opportunity-item-compact:hover {
    background: #fff;
    border-color: var(--investefy-light-teal);
    box-shadow: 0 4px 15px rgba(42, 111, 122, 0.05);
    color: inherit;
}

.opp-type-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.opp-type-icon.business { background: #fdf4ff; color: #d946ef; }
.opp-type-icon.franchise { background: #fff7ed; color: #f97316; }
.opp-type-icon.funding-&-partnership { background: #eff6ff; color: #3b82f6; }
.opp-type-icon.assets { background: #f0fdf4; color: #22c55e; }
.opp-type-icon.properties { background: #fef2f2; color: #ef4444; }

.opp-main-info {
    flex: 1;
    min-width: 0;
}

.opp-main-info h5 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opp-meta-inline {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.opp-meta-inline i {
    margin-right: 4px;
    opacity: 0.7;
}

.opp-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 15px;
}

.opp-status-badge.active, .opp-status-badge.approved { background: #ecfdf5; color: #10b981; }
.opp-status-badge.pending { background: #fffbeb; color: #f59e0b; }
.opp-status-badge.inactive { background: #fef2f2; color: #ef4444; }

.opp-price-meta {
    margin-left: 20px;
    text-align: right;
    min-width: 100px;
}

.opp-price-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--investefy-teal);
}

.opp-price-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Semantic Stat Colors */
.stat-num.active { color: #10b981; }
.stat-num.pending { color: #f59e0b; }
.stat-num.closed, .stat-num.inactive { color: #ef4444; }

/* Listing Type Colors */
.sidebar-type-icon.business { color: #2a6f7a; }
.sidebar-type-icon.franchise { color: #9eb86e; }
.sidebar-type-icon.funding-&-partnership { color: #3b82f6; }
.sidebar-type-icon.assets { color: #f59e0b; }
.sidebar-type-icon.properties { color: #8b5cf6; }

.mini-add-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 10px;
    transition: all 0.2s;
}

.mini-add-btn:hover {
    background: var(--investefy-teal);
    color: #fff;
    border-color: var(--investefy-teal);
}

.recent-listing-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}

.help-text {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-bottom: 20px;
}

.empty-subtitle {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}
.details-summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (max-width: 767px) {
    .details-summary-row {
        grid-template-columns: 1fr;
    }
    .opportunity-item-compact {
        flex-wrap: wrap;
    }
    .opp-price-meta {
        margin-left: 53px;
        margin-top: 10px;
        text-align: left;
        width: 100%;
    }
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-meta strong {
    color: var(--text-main);
}

.stat-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--investefy-teal);
    opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .profile-info-bar {
        padding: 0 30px 20px;
        margin-top: -60px;
    }
    .profile-photo-wrapper {
        width: 120px;
        height: 120px;
    }
    .profile-content-body {
        padding: 30px;
    }
    .profile-main-photo{
        width: 130px;
        height: 120px;
    }
    .is-website-view .profile-info-bar{
        margin-top: -70px !important;
    }
}

@media (max-width: 767px) {
    .profile-info-bar {
        flex-direction: column;
        align-items: center;
        
        margin-top: -65px;
    }
    .ms-auto{
        margin: 0px !important;
    }
    
  
    .contact-details-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .profile-completion-mini {
        width: 100%;
        margin-left: 0;
    }
    }


/* Profile Strength & Completion Bar */
.profile-completion-mini {
    text-align: right;
    min-width: 220px; /* Wider for full width layout */
}

.completion-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.completion-info span {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.completion-info strong {
    color: var(--investefy-teal);
    font-size: 15px;
    font-weight: 900;
}

.completion-track {
    height: 8px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(to right, var(--investefy-teal), var(--investefy-green));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional Summary Labels & Text */
.summary-item-label {
    font-weight: 800;
    color: var(--investefy-teal);
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.summary-item-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
    letter-spacing: 0.1px;
}

.summary-item-text:last-child {
    margin-bottom: 0;
}

/* Global Section Accent Bar - More Robust */
.profile-section-card .section-header .header-accent {
    width: 5px !important;
    height: 20px !important;
    background: #2a6f7a !important; 
    margin-right: 15px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}



.profile-section-card .section-header .header-accent {
    width: 5px !important;
    height: 18px !important;
    background: #2a6f7a !important; /* solid hex for dark teal */
    margin-right: 12px !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

.profile-section-card .section-header .section-edit-link {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.profile-section-card .section-header .section-edit-link:hover {
    background: var(--investefy-teal);
    color: #fff;
    border-color: var(--investefy-teal);
    transform: scale(1.05);
}

/* ---------- Sidebar Sticky Optimization ---------- */
.sticky-top {
    position: sticky !important;
    top: 90px !important; /* Proper spacing from main header */
    z-index: 100 !important;
    transition: all 0.3s ease;
}

/* Professional handling: Sidebar scrolls within itself ONLY if it exceeds viewport height */
@media (min-width: 992px) {
    .sticky-top {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding-bottom: 20px;
        
        /* Premium look: subtle scrollbar or hidden */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }
    
    .sticky-top::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }
    
    /* Ensure the sidebar doesn't jump */
    .col-xl-3.col-lg-4 {
        height: auto;
    }
}

/* Prevent layout breaking for small content */
.candidate-info.company-info {
    height: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
}





/* New Profile Completion Alert Styles */
.alert-premium-warning {
    display: none !important;
}

.alert-premium-warning::before {
    display: none !important;
}

.btn-premium-complete {
 background: #ff9f43 !important;
 color: #fff !important;
 border: none !important;
 border-radius: 10px !important;
 font-weight: 700 !important;
 padding: 10px 20px !important;
 box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
 transition: all 0.3s ease !important;
 white-space: nowrap;
}

.btn-premium-complete:hover {
 background: #e68a35 !important;
 transform: translateY(-2px);
 box-shadow: 0 6px 15px rgba(255, 159, 67, 0.4);
}

.btn-premium-edit {
 display: inline-flex;
 align-items: center;
 padding: 10px 15px;
 width: auto !important;
 height: auto !important;
 background: linear-gradient(154deg, #24b3d8, #a9ff09);;
 color: #fff;
 border-radius: 6px;
 font-size: 14px;
 font-weight: 700;
 text-decoration: none;
 transition: all 0.3s;
}

.btn-premium-edit i {
 font-size: 14px;
}

.btn-premium-edit span {
 margin-left: 8px;
}

/* ---------- Document Chips ---------- */
.document-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 5px;
    gap: 10px;
}
.document-chip:hover {
    background: #fff;
    border-color: #2a6f7a;
    box-shadow: 0 4px 12px rgba(42, 111, 122, 0.1);
    transform: translateY(-2px);
}
.doc-chip-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

