/* =================================================================================
   STYLE-COMPONENTS.CSS - PART 2
   Members, Directory, Invoices, Uploads, Subscriptions, Modals, and Notifications.
   UPDATED: Includes Professional Reference List & NEW Service Gallery (Portfolio)
================================================================================= */

.members-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.members-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
}
.members-card p {
    margin-bottom: 24px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}
.members-card .form-group {
    margin-bottom: 24px;
}

.member-filters {
    background: #f9fafb; 
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 24px; 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; 
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, border-width 0.1s ease-in-out;
    border-width: 0;
}
.member-filters.open {
    max-height: 500px; 
    padding: 20px; 
    border-width: 1px;
}
.member-filters .form-group {
    margin-bottom: 0;
}
#toggleMemberFiltersBtn.open svg {
    transform: rotate(180deg);
}

.member-item-speciality {
    font-size: 15px;
    color: #166534; 
    font-weight: 500;
    margin-top: 4px;
}

.member-item-experience {
    font-size: 13px; 
    color: #4b5563;  
    font-weight: 500;
    margin-top: 4px;
}

#membersListContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: 800px; 
    overflow-y: auto; 
    padding-right: 10px; 
}

.member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}
.member-item:hover {
    border-color: #d1d5db;
    background-color: #fff;
}

.member-item-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e5e7eb; 
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.member-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-item-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
    font-size: 24px;
}

.member-item-info {
    flex-grow: 1;
    min-width: 0; 
}
.member-item-info .author-link {
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0a; 
    text-decoration: none;
    display: inline-block; 
    vertical-align: middle; 
}
.member-item-info .author-link:hover {
    text-decoration: underline;
}

.member-item-type {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280; 
    margin-top: 2px;
    text-transform: capitalize;
}

/* --- UPDATED: STATUS BADGES (Replaces Online Dots) --- */

/* Safe fallback: hide old indicators if they appear */
.online-indicator, .offline-indicator {
    display: none !important;
}

/* New Status Badge Style */
.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #f3f4f6; /* Default Gray (Offline/Seen long ago) */
    color: #6b7280;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 8px; /* Spacing from the name */
}

/* Active Now (Green Tint) */
.status-badge.active-now {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}


.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: none !important; 
    padding-bottom: 0 !important;
    margin-bottom: 12px; 
}

.collapsible-header h3 {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.collapsible-header .chevron-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.collapsible-header.open .chevron-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.collapsible-content.open {
    max-height: 2000px; 
}

#messagesList.collapsible-content {
    max-height: 0;
    overflow: auto; 
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out, border-width 0.1s ease-in-out;
    border-width: 0; 
}
#messagesList.collapsible-content.open {
    max-height: 800px; 
    border-width: 1px; 
}

#blockedUsersList.collapsible-content {
    max-height: 0;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
    padding-top: 0;
    padding-bottom: 0;
}
#blockedUsersList.collapsible-content.open {
    max-height: 220px; 
    padding-top: 0; 
    padding-bottom: 0;
}

.invoice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.invoice-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0a0a0a;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.invoice-parties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.invoice-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-table th {
    background-color: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
}

.invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-table .item-desc {
    width: 100%;
}
.invoice-table .item-qty,
.invoice-table .item-price {
    width: 90%;
    min-width: 70px;
    text-align: right;
}

/* VAT Selector Styles */
.invoice-table .item-vat {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    text-align: right;
    cursor: pointer;
}

.vat-selector-wrapper {
    position: relative;
    width: 100%;
}

.invoice-table .item-vat-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    text-align: right;
    appearance: textfield;      
    -moz-appearance: textfield; 
}

.invoice-table .item-vat-input::-webkit-outer-spin-button,
.invoice-table .item-vat-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hidden {
    display: none !important;
}

/* Ensure mobile layout doesn't break with new column */
@media (max-width: 768px) {
    .invoice-table th, .invoice-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

.invoice-totals {
    max-width: 300px;
    margin-left: auto;
    margin-top: 24px;
    display: grid;
    gap: 10px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.total-row span:first-child {
    font-weight: 500;
    color: #374151;
}
.total-row span:last-child {
    font-weight: 600;
    color: #111827;
}
.total-row.total-grand {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #e5e7eb;
    padding-top: 10px;
    margin-top: 10px;
}

.invoice-uploads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

@media (max-width: 768px) {
    .invoice-card {
        padding: 20px;
    }
    .invoice-details-grid {
        grid-template-columns: 1fr;
    }
    .invoice-parties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .invoice-uploads-grid {
        grid-template-columns: 1fr;
    }
}

#sigPadWrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 434px;
    margin: 0 auto;
    height: 0;
    padding-bottom: 46.3%; 
    position: relative;
    background-color: #f9fafb;
}

#signature-pad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.photo-upload-slot {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.photo-upload-slot input[type="file"] {
    display: none;
}

.photo-upload-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background-color 0.2s ease;
    z-index: 1; 
}

.photo-upload-label:hover {
    background-color: #f3f4f6;
}

.photo-upload-label svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.photo-upload-label span {
    font-size: 13px;
    font-weight: 500;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    z-index: 2;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-clear-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .photo-upload-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@keyframes pulse-green-border {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
}

.view-photos-btn {
    display: inline-flex !important; 
    align-items: center;
    gap: 8px; 
    padding: 8px 14px; 
    background-color: #ffffff !important; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    color: #16a34a !important; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none !important; 
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    animation: pulse-green-border 2s infinite ease-out; 
}

.view-photos-btn:hover {
    background-color: #f0fdf4 !important; 
    border-color: #a7f3d0; 
    color: #147137 !important; 
    text-decoration: none !important; 
    transform: scale(1.02); 
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2); 
    animation: none; 
}

.view-photos-btn svg {
    width: 20px !important; 
    height: 20px !important;
    color: #16a34a !important; 
    flex-shrink: 0;
}

.view-photos-btn .photo-count {
    color: #6b7280; 
    font-size: 13px; 
    font-weight: 500;
}

.photo-slider-modal-content {
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    max-height: 800px;
    padding: 16px; 
    display: flex;
    flex-direction: column;
}

#photoSliderContainer {
    width: 100%;
    height: 100%; 
    flex-grow: 1;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

#photoSliderWrapper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#photoSliderWrapper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.photo-slider-modal-content .swiper-button-prev,
.photo-slider-modal-content .swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: background-color 0.2s ease;
}
.photo-slider-modal-content .swiper-button-prev::after,
.photo-slider-modal-content .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.photo-slider-modal-content .swiper-button-prev:hover,
.photo-slider-modal-content .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.photo-slider-modal-content .swiper-pagination {
    position: absolute; 
    bottom: 10px;
}
.photo-slider-modal-content .swiper-pagination-bullet {
    background: #aaa;
    opacity: 1;
}

.photo-slider-modal-content .swiper-pagination-bullet-active {
    background: #fff;
}

.photo-slider-modal-content .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20; 
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
}
.photo-slider-modal-content .close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .photo-slider-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        padding: 0;
        border-radius: 0;
    }
    
    .photo-slider-modal-content .close-btn {
        top: 15px;
        right: 15px;
    }
    
    .photo-slider-modal-content .swiper-button-prev,
    .photo-slider-modal-content .swiper-button-next {
        display: none;
    }
}

.setting-toggle.danger-zone span {
    font-weight: 500;
    color: #b91c1c; 
}

.doc-type-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f3f4f6; 
    border-radius: 8px;
    padding: 4px;
    width: fit-content; 
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e7eb;
}

.doc-type-toggle .btn.btn-sm {
    background-color: transparent; 
    color: #4b5563; 
    border: none;
    box-shadow: none;
    font-weight: 600;
    flex-grow: 1; 
    min-width: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.doc-type-toggle .btn.btn-sm:hover {
    background-color: #e5e7eb; 
    color: #111827;
}

.doc-type-toggle .btn.btn-sm.active {
    background-color: #0a0a0a !important; 
    color: #ffffff !important; 
    border-color: #0a0a0a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscriptions-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 24px;
}

.subscriptions-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
}

.pricing-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.plan-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.plan-card:hover {
    border-color: #d1d5db;
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.plan-card.recommended {
    border-color: #FF883E;
    background: #fff;
    border-width: 2px;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background-color: #FF883E;
    color: white;
    padding: 4px 30px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.plan-card.recommended .discount-badge {
    background-color: #16a34a; 
}

.plan-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    border: none;
    padding: 0;
}

.plan-header p {
    font-size: 14px;
    color: #6b7280;
}

.plan-price {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.plan-price .price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #0a0a0a;
}

.plan-price .price-per {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

.plan-features {
    margin-bottom: 24px;
    flex-grow: 1; 
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    color: #16a34a;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
}

.plan-button {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
}

@media (min-width: 769px) {
    .pricing-plan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-card.recommended {
        transform: scale(1.05);
    }
    .plan-card.recommended:hover {
         transform: scale(1.08) translateY(-4px);
    }
}

@media (max-width: 768px) {
    .subscriptions-card {
        padding: 20px;
    }
    .pricing-plan-grid {
        gap: 16px;
    }
    .plan-card {
        padding: 20px;
    }
}

body.modal-open {
    overflow: hidden; 
}

.modal-content {
    max-height: 90vh; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
  border-color: #dc2626 !important; 
}

.help-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #333333 100%);
    color: #fff;
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.help-hero h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.help-hero p {
    color: #d1d5db;
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.help-search-container input {
    width: 100%;
    padding: 14px 14px 14px 44px; 
    border-radius: 24px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.help-search-container input:focus {
    box-shadow: 0 0 0 4px rgba(255, 136, 62, 0.5); 
}

.help-search-container .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.help-search-container #clearHelpSearchBtn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.help-search-container #clearHelpSearchBtn:hover {
    color: #374151;
}

.help-card-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    min-height: 300px;
}

.help-section-title {
    font-size: 13px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.help-topic {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-topic:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.03);
}

.help-topic h4 {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.help-topic h4 i {
    margin-right: 12px;
    color: #FF883E; 
    width: 24px;
    text-align: center;
}

.help-topic p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
}

.help-topic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-topic li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.help-topic li::before {
    content: "•";
    color: #16a34a; 
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.help-topic strong {
    color: #111827;
}

@media (max-width: 768px) {
    .help-hero {
        padding: 30px 16px;
    }
    .help-hero h2 {
        font-size: 24px;
    }
    .help-card-container {
        padding: 16px;
    }
    .help-topic {
        padding: 16px;
    }
}

/* --- Notification Center Styles --- */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    pointer-events: none;
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: -10px;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.notif-header h4 { margin: 0; font-size: 14px; font-weight: 600; color: #111827; }

.btn-text {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}
.btn-text:hover { text-decoration: underline; }

.notif-list { overflow-y: auto; max-height: 350px; }

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.notif-item:hover { background-color: #f9fafb; }
.notif-item.unread { background-color: #eff6ff; }
.notif-item:last-child { border-bottom: none; }

.notif-icon { margin-top: 2px; flex-shrink: 0; }
.notif-content { flex-grow: 1; }

.notif-content h5 { margin: 0 0 4px 0; font-size: 14px; font-weight: 600; color: #111827; }
.notif-content p { margin: 0 0 4px 0; font-size: 13px; color: #4b5563; line-height: 1.4; }
.notif-time { font-size: 11px; color: #9ca3af; display: block; }

.empty-state-small { padding: 30px; text-align: center; color: #6b7280; font-size: 13px; }

@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }
}

/* =========================================
   PROFESSIONAL ABOUT SECTION STYLING (MARKDOWN SUPPORT)
   ========================================= */

#profileAboutText {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
}
#profileAboutText p {
    margin-bottom: 16px;
}
#profileAboutText strong, #profileAboutText b {
    color: #111827;
    font-weight: 700;
}
#profileAboutText ul, #profileAboutText ol {
    padding-left: 24px;
    margin-bottom: 16px;
    margin-top: 8px;
}
#profileAboutText ul {
    list-style-type: disc;
}
#profileAboutText ol {
    list-style-type: decimal;
}
#profileAboutText li {
    margin-bottom: 6px;
    padding-left: 4px;
}
#profileAboutText h1, 
#profileAboutText h2, 
#profileAboutText h3,
#profileAboutText h4 {
    font-weight: 700;
    color: #111827;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
}
#profileAboutText h1 { font-size: 20px; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; }
#profileAboutText h2 { font-size: 18px; }
#profileAboutText h3 { font-size: 16px; }
#profileAboutText a {
    color: #1e40af;
    text-decoration: underline;
    font-weight: 500;
}
#profileAboutText blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 16px;
    color: #4b5563;
    font-style: italic;
    margin: 16px 0;
}

/* =========================================
   NEW PROFESSIONAL HOLIDAY MODE CARD
   ========================================= */

.holiday-banner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
}

.holiday-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}

.holiday-icon {
    background: #fffbeb;
    color: #f59e0b;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.holiday-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.2;
}

.holiday-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.holiday-date-item {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.holiday-date-item strong {
    color: #374151;
    font-weight: 600;
}

.holiday-message {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #f3f4f6;
    margin-top: 0;
}

@media (max-width: 600px) {
    .holiday-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .holiday-icon {
        width: 40px;
        height: 40px;
    }
    .holiday-dates {
        gap: 8px;
    }
}

/* =========================================
   PENDING REFERENCES LIST (SCROLL FIX)
   ========================================= */
#pendingRefsList { 
    max-height: 400px; 
    overflow-y: auto; 
    padding-right: 10px;
}

/* Custom Scrollbar Styling */
#pendingRefsList::-webkit-scrollbar {
    width: 6px;
}
#pendingRefsList::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
#pendingRefsList::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
#pendingRefsList::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* =========================================
   PUBLIC REFERENCES LIST (Expandable Window)
   UPDATED: Matches new single-button logic
   ========================================= */

/* 1. The Container */
#publicRefsList {
    /* EXPANDED STATE (The "Bigger Window") */
    max-height: 600px;        /* Big enough to scroll comfortably */
    overflow-y: auto;         /* Scrollbar appears here */
    padding-right: 10px;
    transition: max-height 0.4s ease-in-out; /* Smooth animation */
    position: relative;
    /* Ensure it doesn't jump abruptly */
}

/* 2. The Collapsed State (The "Small Window") */
#publicRefsList.collapsed {
    max-height: 250px;        /* Only show top 2-3 references */
    overflow: hidden;         /* Hide the rest (no scrollbar yet) */
}

/* 3. The "View All" Toggle Button Styling */
#toggleRefsBtn {
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#toggleRefsBtn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Custom Scrollbar for the list */
#publicRefsList::-webkit-scrollbar { width: 6px; }
#publicRefsList::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
#publicRefsList::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
#publicRefsList::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }


/* =========================================
   NEW: SERVICE GALLERY (PORTFOLIO) STYLES
   ========================================= */

.service-gallery-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.gallery-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns on Desktop */
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Perfect Square */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos fill the square without stretching */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Professional Zoom Effect */
}

/* Delete Button */
.gallery-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-delete-btn {
    opacity: 1; /* Show on Hover */
}

.gallery-delete-btn:hover {
    background: #dc2626;
}

/* Upload Button Area */
.gallery-upload-wrapper {
    margin-top: 16px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-upload-photo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-photo:hover {
    background-color: #ffedd5;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Mobile */
    }
}

/* =========================================
   MODERN PROFILE REDESIGN (Instagram Style)
   UPDATED: Secure Circular Logo & Camera Logic
   ========================================= */

/* Hide the old grid container default spacing */
#profilePage .profile-grid-container {
    display: block !important;
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --- 1. Header Section --- */
.modern-profile-header {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
    border-top: none;
    position: relative;
}

/* --- 2. SECURE CIRCULAR LOGO --- */
.profile-avatar-large {
    width: 120px;            
    height: 120px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Circle Design */
    border-radius: 50% !important; 
    background: #fff; 
    border: 3px solid #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    
    position: relative;
    /* DEFAULT STATE: NOT CLICKABLE (Visitor View) */
    cursor: default; 
    pointer-events: none; 
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 50%;
}

/* CAMERA ICON (Hidden by default for visitors) */
.profile-avatar-large::after {
    display: none; 
}

/* --- OWNER STATE (Added via JS class 'editable') --- */
.profile-avatar-large.editable {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Only show camera if it is YOUR profile (.editable) */
.profile-avatar-large.editable::after {
    content: '📷'; 
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #f3f4f6;
    
    display: flex; /* Reveal it */
    align-items: center;
    justify-content: center;
    font-size: 18px;
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 5; 
    transition: transform 0.2s;
}
.profile-avatar-large.editable:hover::after {
    transform: scale(1.1);
}


/* Premium Ring */
.premium-ring {
    border: 3px solid #FF883E !important; 
}

/* Username & Layout */
.profile-username-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}
.profile-username-row h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.verified-badge {
    width: 18px;
    height: 18px;
    color: #3b82f6; 
}
.profile-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Stats Row */
.profile-stats-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: 16px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.stat-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Action Buttons */
.profile-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-modern {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-modern-primary {
    background-color: #0a0a0a;
    color: #fff;
}
.btn-modern-secondary {
    background-color: #f3f4f6;
    color: #111827;
}
.btn-modern:active { transform: scale(0.98); }

/* Tabs */
.profile-tabs-nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 12px 12px 0 0; 
    margin-top: 10px;
}
.tab-btn {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    cursor: pointer;
}
.tab-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}
.tab-btn.active {
    color: #0a0a0a;
    border-bottom-color: #0a0a0a;
}
.tab-btn.active svg { color: #0a0a0a; }

/* Content Area */
.profile-tab-content {
    background: #fff;
    min-height: 300px;
    padding: 16px;
}

/* Gallery Grid */
#serviceGalleryGrid {
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 2px !important;
}
#serviceGalleryGrid .gallery-item {
    border-radius: 0 !important; 
    border: none !important;
    aspect-ratio: 1 / 1;
}
#serviceGalleryGrid .gallery-item img {
    border-radius: 0 !important;
}

/* Tab Logic */
.tab-content-pane { display: none; }
.tab-content-pane.active { display: block; animation: fadeIn 0.3s ease; }

/* Misc */
.modern-list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.modern-label { color: #6b7280; font-weight: 500; }
.modern-value { color: #111827; font-weight: 600; text-align: right; }

#showLogoToggleSection { display: none !important; }

#logoUploadSection label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* =========================================
   REFERENCE CARDS ("Browser Container")
   Matches .post-item and .members-card style
========================================= */

/* The Container List */
#publicRefsList, #pendingRefsList {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between cards */
}

/* Individual Reference Card */
.reference-item, .pending-ref-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px; /* Rounded corners like posts */
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect */
.reference-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

/* Header (Name & Date) */
.ref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f3f4f6;
}

.ref-author {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

.ref-date {
    font-size: 12px;
    color: #9ca3af;
}

/* The Content Text */
.ref-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    font-style: italic;
    background-color: #f9fafb; /* Light grey box for quote */
    padding: 10px;
    border-radius: 8px;
}

/* Pending Status Badge */
.status-badge-pending {
    font-size: 11px;
    background: #fff7ed;
    color: #9a3412;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #ffedd5;
}

/* Read More Link */
.btn-text-link {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}
.btn-text-link:hover {
    text-decoration: underline;
}
/* =========================================================
   NOTIFICATION SCROLL FIX
   Makes the list contained and scrollable for a pro look
   ========================================================= */

#notificationList {
    max-height: 400px;       /* Limits the height to about 5-6 notifications */
    overflow-y: auto;        /* Enables vertical scrolling */
    overflow-x: hidden;      /* Prevents horizontal scrolling */
    overscroll-behavior: contain; /* Prevents scrolling the background page */
    
    /* Professional Thin Scrollbar (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* Professional Scrollbar (Chrome, Edge, Safari) */
#notificationList::-webkit-scrollbar {
    width: 6px; /* Skinny scrollbar */
}

#notificationList::-webkit-scrollbar-track {
    background: #f9fafb; 
    border-radius: 4px;
}

#notificationList::-webkit-scrollbar-thumb {
    background-color: #d1d5db; /* Grey handle */
    border-radius: 4px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af; /* Darker on hover */
}

/* =========================================
   MODERN SKILLS EDITOR STYLING
   Fixes the ugly input fields
========================================= */

/* The Container Box */
#profileExpertiseEdit {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
    max-width: 400px; /* Keep it compact */
}

/* The Dropdowns and Inputs */
#profileExpertiseEdit select, 
#profileExpertiseEdit input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 12px; /* Space between inputs */
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#profileExpertiseEdit select:focus, 
#profileExpertiseEdit input:focus {
    border-color: #0a0a0a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

/* The Buttons (Save / Cancel) */
#profileExpertiseEdit button {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#saveExpertiseBtn {
    background-color: #0a0a0a;
    color: white;
    border: 1px solid #0a0a0a;
    margin-right: 8px;
}
#saveExpertiseBtn:hover { background-color: #333; }

#cancelExpertiseBtn {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}
#cancelExpertiseBtn:hover { background-color: #f3f4f6; }
/* =================================================================================
   PREMIUM ACCOUNT BUTTON STYLING (UPDATED)
   Style: Clean Button Look (No Blue) - Matches Site Black/Gray Theme
================================================================================= */

/* 1. Base Button Look */
#myPremiumSection .collapsible-header {
    background-color: #fff;          /* White background */
    border: 1px solid #e5e7eb !important; /* Subtle gray border */
    border-radius: 8px;
    padding: 14px 16px !important;   /* Taller click area */
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Shadow for depth */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 2. Hover State */
#myPremiumSection .collapsible-header:hover {
    background-color: #f9fafb;       /* Very light gray on hover */
    border-color: #0a0a0a !important; /* Dark border on hover (Brand Black) */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 3. Active/Open State - FIXED: Removed Blue */
#myPremiumSection .collapsible-header.open {
    background-color: #f3f4f6;       /* Light gray background */
    border-color: #0a0a0a !important; /* Solid Brand Black border */
    box-shadow: none;                /* Flat when open */
}

/* 4. Text Styling */
#myPremiumSection .collapsible-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 15px;
    font-weight: 600;
    color: #374151;                  /* Default Dark Gray text */
    transition: color 0.2s;
}

/* 5. Text Styling when Open */
#myPremiumSection .collapsible-header.open h3 {
    color: #0a0a0a;                  /* Brand Black text when open */
}

/* 6. Icon Styling */
#myPremiumSection .collapsible-header .chevron-icon {
    color: #9ca3af;
    margin-left: auto;
    transition: transform 0.3s ease, color 0.2s;
}

#myPremiumSection .collapsible-header.open .chevron-icon {
    transform: rotate(180deg);
    color: #0a0a0a;                  /* Black icon when open */
}
