/* ============================================
   PROFILE SECTION - PROFESSIONAL DESIGN
   ============================================ */

/* Light Theme (Default) */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #eef2ff;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #eff6ff;
}

/* Dark Theme */
body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-light: #475569;
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #312e81;
    --success-light: #064e3b;
    --warning-light: #451a03;
    --danger-light: #7f1d1d;
    --info-light: #1e3a8a;
}

/* Global Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* ============================================
   FORCE FULL WIDTH - OVERRIDE ANY PARENT MARGINS
   ============================================ */

/* Force the profile container to take full width */
.profile-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    margin: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force the layout to use full width */
.profile-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Force main content to take remaining space with no right margin */
.profile-main {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    margin-right: 0 !important;
    padding-right: 1.5rem !important;
}

/* Remove any possible right margin from body or parent */
body,
body > div,
body > .container,
body > .wrapper,
.profile-container .container {
    overflow-x: hidden !important;
}

/* Ensure sidebar stays fixed width */
.profile-sidebar {
    flex-shrink: 0 !important;
}

/* Force all cards and content to respect full width */
.profile-card,
.profile-stats-grid,
.chart-container,
.recent-activity-card,
.notifications-container,
.company-cards-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}
/* ============================================
   PROFILE CONTAINER
   ============================================ */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-body);
    min-height: 100vh;
}

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 2rem;
	padding: 0rem;
}

/* ============================================
   PROFILE SIDEBAR
   ============================================ */
.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
	padding: 0rem;
    height: fit-content;
}

.profile-avatar-wrapper {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 0rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-avatar-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    border: 3px solid var(--primary-light);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-edit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.profile-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   PROFILE COMPLETION WIDGET
   ============================================ */
.profile-completion {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    position: relative;
}

.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.completion-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-icon {
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.info-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.completion-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.completion-percent {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    display: block;
}

/* Missing Items List - Only shows when info icon clicked */
.missing-items-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid var(--border);
    max-width: 280px;
}

.missing-header {
    background: var(--warning-light);
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--warning);
    color: var(--warning);
    font-size: 12px;
    font-weight: 600;
}

.missing-header i {
    margin-right: 8px;
}

.missing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.missing-item:last-child {
    border-bottom: none;
}

.missing-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.missing-info i {
    color: var(--warning);
    font-size: 12px;
}

.missing-text {
    font-size: 12px;
    color: var(--text-primary);
    flex: 1;
}

.missing-points {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 10px;
}

.complete-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.complete-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.completion-success {
    padding: 12px;
    text-align: center;
    background: var(--success-light);
    border-radius: 12px;
    color: var(--success);
}

.completion-success i {
    font-size: 20px;
    margin-right: 8px;
}

/* ============================================
   PROFILE NAVIGATION
   ============================================ */
.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.profile-nav li {
    border-bottom: 1px solid var(--border);
}

.profile-nav li:last-child {
    border-bottom: none;
}

.profile-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.profile-nav li a span {
    flex: 1;
    margin-left: 0.75rem;
}

.profile-nav li a i:first-child {
    width: 20px;
    color: var(--text-muted);
}

.profile-nav li a i:last-child {
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}

.profile-nav li:hover a {
    background: var(--bg-secondary);
    color: var(--primary);
}

.profile-nav li:hover a i:first-child {
    color: var(--primary);
}

.profile-nav li.active a {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.profile-nav li.active a i:first-child {
    color: var(--primary);
}

.profile-nav li.active a i:last-child {
    opacity: 1;
    transform: translateX(4px);
}

.profile-nav .count-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: 8px;
}

.notification-badge-side {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: 8px;
}

/* ============================================
   PROFILE MAIN CONTENT
   ============================================ */
.profile-main {
    flex: 1;
}

.profile-header {
    margin-bottom: 1.5rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.profile-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.profile-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Stats Cards */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.profile-stat-icon.business { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.profile-stat-icon.listings { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.profile-stat-icon.views { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.profile-stat-icon.clicks { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }

.profile-stat-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.profile-stat-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-muted);
}

/* Profile Cards */
.profile-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.info-value.badge.admin {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.info-value.badge.business {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.info-value.badge.user {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.security-info i {
    font-size: 2rem;
    color: var(--primary);
}

.security-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.security-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bio-text {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert.error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* ============================================
   BUSINESS SECTION
   ============================================ */
.business-header {
    margin-bottom: 1.5rem;
}

.business-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.business-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
}

.business-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.business-stat-icon.total { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.business-stat-icon.verified { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.business-stat-icon.listings { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.business-stat-icon.engagement { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }

.business-stat-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.business-stat-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.business-stat-info small {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.business-loading, .business-empty {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* Company Cards */
.company-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.company-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.company-card-body {
    padding: 1.5rem;
}

.company-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo-area {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.company-logo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.company-info-block {
    flex: 1;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-tags span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.company-tags span i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.company-tags span a {
    color: inherit;
    text-decoration: none;
}

.company-action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.action-btn-edit, .action-btn-delete {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn-edit:hover {
    background: var(--primary);
    color: white;
}

.action-btn-delete {
    background: var(--danger-light);
    color: var(--danger);
}

.action-btn-delete:hover {
    background: var(--danger);
    color: white;
}

.company-status-bar {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.status-label {
    color: var(--text-muted);
}

.status-value.active {
    color: var(--success);
}

.status-value.pending {
    color: var(--warning);
}

.verification-badge {
    color: var(--success);
}

.verification-badge.pending {
    color: var(--warning);
}

.package-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.package-tag.basic { background: #64748b20; color: #64748b; }
.package-tag.premium { background: #6366f120; color: #6366f1; }
.package-tag.elite { background: #8b5cf620; color: #8b5cf6; }
.package-tag.featured { background: #f43f5e20; color: #f43f5e; }

.expiry-tag {
    color: var(--text-secondary);
}

.expiry-tag.lifetime {
    color: var(--success);
}

.company-description-block {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.company-description-block p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Expandable Panel */
.expandable-panel {
    margin-top: 1rem;
}

.panel-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

.panel-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
}

.panel-tab:hover {
    color: var(--primary);
}

.panel-tab.active {
    color: var(--primary);
}

.panel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.count-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

.panel-content {
    padding: 0.5rem 0;
}

/* Listings */
.listings-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.listings-header-bar h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.btn-add-mini {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 160px;
    background: var(--bg-tertiary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f43f5e, #ef4444);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-details {
    padding: 0.75rem;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-current {
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
}

.reaction-buttons {
    display: flex;
    gap: 0.5rem;
}

.reaction-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    transition: all 0.2s;
}

.reaction-btn.like:hover, .reaction-btn.like.active {
    background: var(--success-light);
    color: var(--success);
}

.reaction-btn.dislike:hover, .reaction-btn.dislike.active {
    background: var(--danger-light);
    color: var(--danger);
}

.reaction-count {
    font-size: 0.65rem;
}

.action-icons {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.icon-btn.edit:hover {
    color: var(--primary);
}

.icon-btn.delete:hover {
    color: var(--danger);
}

.empty-listings-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.5rem;
}

/* Analytics */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.analytics-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-card i {
    font-size: 1.2rem;
    color: var(--primary);
}

.analytics-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.analytics-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.period-stats-container {
    display: flex;
    gap: 1rem;
}

.period-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.period-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.period-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Documents */
.document-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.document-info-card i {
    font-size: 2rem;
    color: var(--primary);
}

.document-info {
    flex: 1;
}

.document-info strong {
    display: block;
    color: var(--text-primary);
}

.document-info small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.doc-action {
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    cursor: pointer;
    border: none;
}

.doc-action.view {
    background: var(--primary-light);
    color: var(--primary);
}

.doc-action.download {
    background: var(--success-light);
    color: var(--success);
}

.doc-action.upload {
    background: var(--warning-light);
    color: var(--warning);
}

/* Notifications */
.notifications-container {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.notifications-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.notifications-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.notification-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
}

.bulk-actions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.bulk-btn {
    padding: 0.3rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
}

.bulk-btn.mark-read:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bulk-btn.delete-all:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.notification-list {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon.lead { background: var(--success-light); color: var(--success); }
.notification-icon.verification { background: var(--warning-light); color: var(--warning); }
.notification-icon.payment { background: var(--info-light); color: var(--info); }
.notification-icon.system { background: var(--primary-light); color: var(--primary); }

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.notification-badge {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.delete-single {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s;
}

.notification-item:hover .delete-single {
    opacity: 1;
}

.delete-single:hover {
    color: var(--danger);
}

.notification-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Recent Activity */
.recent-activity-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.activity-timeline {
    padding: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon.business { background: var(--primary-light); color: var(--primary); }
.timeline-icon.listing { background: var(--success-light); color: var(--success); }
.timeline-icon.payment { background: var(--info-light); color: var(--info); }
.timeline-icon.verification { background: var(--warning-light); color: var(--warning); }

.timeline-content {
    flex: 1;
}

.timeline-content p {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.timeline-content small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Loading States */
.spinner, .spinner-sm {
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
}

.spinner-sm {
    width: 24px;
    height: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        position: static;
    }
    
    .profile-stats-grid,
    .business-stats-grid,
    .analytics-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }
    
    .company-card-header {
        flex-direction: column;
    }
    
    .company-action-buttons {
        justify-content: flex-end;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid,
    .business-stats-grid,
    .analytics-cards {
        grid-template-columns: 1fr;
    }
}
/* Profile Completion Widget - Compact */
.profile-completion {
    margin-top: 2px;
    padding: 2px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

/* Header Row - All on one line */
.completion-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.completion-label {
    font-size: 10px;
    font-weight: 300;
    color: var(--text-secondary);
}

.completion-label i {
    margin-right: 4px;
    font-size: 11px;
}

.completion-stats {
    display: flex;
    align-items: center;
    gap: 2px;
}

.completion-percent {
    font-size: 12px;
    font-weight: 300;
    color: var(--primary);
}

.info-icon {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.info-icon:hover {
    color: var(--primary);
}

/* Progress Bar */
.completion-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Missing Items List */
.missing-items-list {
    margin-top: 2px;
    border-top: 1px solid var(--border);
    padding-top: 2px;
}

.missing-header {
    font-size: 14px;
    font-weight: 300;
    color: var(--warning);
    margin-bottom: 2px;
}

.missing-header i {
    margin-right: 6px;
}

/* Each missing item on its own line */
.missing-item-row {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 2px 2px;
    margin-bottom: 2px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.missing-item-row:hover {
    border-color: var(--primary);
}

.missing-info {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.missing-info i {
    color: var(--warning);
    font-size: 10px;
}

.missing-text {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 200;
}

/* Complete Button - Full width below each item */
.complete-btn {
    width: 100%;
    background: var(--primary-light);
    border: none;
    padding: 2px 2px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 300;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.complete-btn:hover {
    background: var(--primary);
    color: white;
}

.complete-btn i {
    font-size: 10px;
}

/* Success Message */
.completion-success {
    margin-top: 2px;
    padding: 2px;
    background: var(--success-light);
    border-radius: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 200;
    color: var(--success);
}

.completion-success i {
    margin-right: 2px;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-completion {
        padding: 2px;
    }
    
    .missing-item-row {
        padding: 2px 2px;
    }
    
    .complete-btn {
        padding: 2px 2px;
        font-size: 10px;
    }
}/* Profile Completion Widget - Simple Working Version */
.profile-completion-simple {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Header */
.completion-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.completion-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
}

.completion-stats-simple {
    display: flex;
    align-items: center;
    gap: 8px;
}

.completion-percent-simple {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6366f1;
}

.completion-stats-simple i {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Progress Bar */
.progress-bar-simple {
    height: 4px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill-simple {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Dropdown Content */
.dropdown-content-simple {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success Message */
.success-message-simple {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Missing Items */
.missing-title-simple {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.missing-item-simple {
    background: rgba(245, 158, 11, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.missing-item-simple:last-child {
    margin-bottom: 0;
}

.item-message-simple {
    font-size: 0.7rem;
    color: #b45309;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-button-simple {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.item-button-simple:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

/* Dark Mode */
body.dark-mode .profile-completion-simple {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .progress-bar-simple {
    background: #334155;
}

body.dark-mode .dropdown-content-simple {
    border-top-color: #334155;
}

body.dark-mode .missing-item-simple {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .item-message-simple {
    color: #fbbf24;
}