
/* =============================================================
   PRIMARY COLOR UTILITIES
   (used by auth forms, buttons, focus rings)
   ============================================================= */

:root {
    --color-primary: #2563eb;
}

.bg-primary {
    background-color: #2563eb;
}
.hover\:bg-primary:hover,
.bg-primary:hover {
    background-color: #1d4ed8;
}
.text-primary {
    color: #2563eb;
}
.border-primary {
    border-color: #2563eb;
}
.focus\:ring-primary:focus {
    --tw-ring-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.focus\:border-transparent:focus {
    border-color: transparent;
}

/* =============================================================
   EXTRACTED FROM INLINE STYLES
   ============================================================= */

/* Compose form — job textarea */
.compose-job-textarea {
    min-height: 90px;
}

/* Compose form — submit buttons */
.compose-submit-btn-job {
    background: #2563eb;
    color: #fff;
}
.compose-submit-btn-marketplace {
    background: #16a34a;
    color: #fff;
}

/* Marketplace search form */
.mkt-search-form {
    min-width: 160px;
    max-width: 340px;
}
.mkt-search-icon {
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Marketplace list-item button */
.btn-mkt-green {
    background: #374151;
    color: #fff;
    cursor: pointer;
}

/* Infinite scroll sentinel */
.scroll-sentinel {
    height: 1px;
    margin-top: 20px;
}

/* User-menu dropdown position */
.social-user-dropdown {
    top: 100%;
}

/* Auth modal card shadow */
.social-auth-card {
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}
/* ═══════════════════════════════════════════════════════════════
   SOCIAL MEDIA — socialmedia.css
   Full stylesheet for /social layout, feed, modals, sidebar
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables (WeShare-style) ── */
:root {
    --social-primary:        #1877f2;
    --social-primary-hover:  #166fe5;
    --social-bg:             #f0f2f5;
    --social-card-bg:        #ffffff;
    --social-border:         #e4e6eb;
    --social-text:           #050505;
    --social-text-secondary: #65676b;
    --social-header-h:       56px;
    --social-sidebar-w:      300px;
    --social-right-w:        280px;
    --social-radius:         8px;
    --social-radius-lg:      16px;
    --social-radius-xl:      20px;
    --social-shadow:         0 1px 2px rgba(0,0,0,.1);
    --social-shadow-md:      0 2px 12px rgba(0,0,0,.15);
    --social-shadow-lg:      0 4px 20px rgba(0,0,0,.12);
}

/* ── Base ── */
.social-body {
    background: var(--social-bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--social-text);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.social-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--social-card-bg);
    box-shadow: 0 1px 0 var(--social-border);
    height: var(--social-header-h);
}
.social-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
.social-header-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.social-header-logo img { height: 40px; width: auto; }
.social-header-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--social-primary);
    letter-spacing: -0.5px;
}

.social-header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}
.social-header-search form {
    position: relative;
    display: flex;
    align-items: center;
}
.social-header-search-icon {
    position: absolute;
    left: 14px;
    color: var(--social-text-secondary);
    font-size: 0.9rem;
}
.social-header-search-input {
    width: 100%;
    border: none;
    background: var(--social-bg);
    border-radius: 50px;
    padding: 10px 18px 10px 40px;
    font-size: 0.95rem;
    outline: none;
    color: var(--social-text);
    transition: background 0.2s;
}
.social-header-search-input::placeholder { color: var(--social-text-secondary); }
.social-header-search-input:focus { background: #e4e6eb; }

.social-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.social-header-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--social-text-secondary);
    text-decoration: none;
    font-size: 1.15rem;
    transition: background 0.2s, color 0.2s;
}
.social-header-icon-btn:hover { background: #e4e6eb; color: var(--social-text); }
.social-header-icon-btn.active {
    background: var(--social-primary);
    color: #fff;
}

.social-header-avatar-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; padding: 6px 10px 6px 6px;
    border-radius: 50px; cursor: pointer;
    transition: background 0.2s;
}
.social-header-avatar-btn:hover { background: var(--social-bg); }
.social-header-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.social-header-avatar-initial {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--social-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.social-header-user-name { font-size: 0.95rem; font-weight: 600; color: var(--social-text); }

.social-header-btn-login,
.social-header-btn-join {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
}
.social-header-btn-login { color: var(--social-primary); }
.social-header-btn-login:hover { background: #e7f0fd; }
.social-header-btn-join { background: var(--social-primary); color: #fff; }
.social-header-btn-join:hover { opacity: 0.92; background: var(--social-primary-hover); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.social-layout-wrap {
    display: flex;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
    align-items: flex-start;
}

.social-main {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR (LEFT)
   ═══════════════════════════════════════════════════════════════ */
.social-sidebar {
    width: var(--social-sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--social-header-h) + 16px);
    max-height: calc(100vh - var(--social-header-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.social-sidebar::-webkit-scrollbar { width: 4px; }
.social-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.social-sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-sidebar-main--hidden { display: none !important; }

/* Sub-panels hidden by default */
.social-sidebar-subpanel { display: none; }

/* Sidebar card */
.social-sidebar-card {
    background: var(--social-card-bg);
    border-radius: var(--social-radius-lg);
    box-shadow: var(--social-shadow);
    padding: 14px;
}
.social-sidebar-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--social-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Profile block */
.social-sidebar-profile-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 20px 14px;
}
.social-sidebar-profile-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.social-sidebar-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-sidebar-profile-initial {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--social-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem;
}
.social-sidebar-profile-name { font-weight: 700; font-size: 1rem; text-align: center; color: var(--social-text); }
.social-sidebar-profile-btn {
    font-size: 0.875rem; color: var(--social-primary);
    border: 1px solid var(--social-primary);
    padding: 6px 18px; border-radius: 8px;
    text-decoration: none; font-weight: 600; transition: all 0.2s;
}
.social-sidebar-profile-btn:hover { background: var(--social-primary); color: #fff; }

/* Nav items */
.social-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.social-sidebar-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 0.95rem; font-weight: 500; color: var(--social-text);
    text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.social-sidebar-nav-item:hover { background: var(--social-bg); }
.social-sidebar-nav-item.active {
    background: var(--social-primary);
    color: #fff;
    font-weight: 600;
}
.social-sidebar-nav-item.active .social-sidebar-nav-icon,
.social-sidebar-nav-item.active .social-sidebar-nav-arrow { color: rgba(255,255,255,0.95); }
.social-sidebar-nav-icon { width: 22px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.social-sidebar-nav-arrow { font-size: 0.75rem; color: var(--social-text-secondary); margin-left: auto; }

/* Create items */
.social-sidebar-create-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 6px; font-size: 0.9rem; font-weight: 500;
    color: var(--social-text); text-decoration: none;
    border-radius: 10px; transition: background 0.2s;
}
.social-sidebar-create-item:hover { background: var(--social-bg); }
.social-sidebar-create-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.social-sidebar-create-icon.job-icon  { background: #dbeafe; color: var(--social-primary); }
.social-sidebar-create-icon.mkt-icon  { background: #dcfce7; color: #16a34a; }

/* ── Sidebar sub-panels ── */
.social-sidebar-subpanel-card {
    background: var(--social-card-bg);
    border-radius: var(--social-radius-lg);
    box-shadow: var(--social-shadow);
    overflow: hidden;
}
.social-sidebar-subpanel-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--social-border);
}
.social-sidebar-back-btn {
    background: var(--social-bg); border: none; border-radius: 50%;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--social-text); font-size: 0.85rem;
    transition: background 0.15s; flex-shrink: 0;
}
.social-sidebar-back-btn:hover { background: #dddfe2; }
.social-sidebar-subpanel-title { font-weight: 700; font-size: 0.95rem; flex: 1; }
.social-sidebar-subpanel-all { font-size: 0.82rem; color: var(--social-primary); text-decoration: none; font-weight: 600; }
.social-sidebar-subpanel-all:hover { text-decoration: underline; }

.social-sidebar-subpanel-body {
    padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
}
.social-sidebar-cat-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 6px; border-radius: 8px;
    font-size: 0.88rem; color: var(--social-text); text-decoration: none;
    transition: background 0.15s;
}
.social-sidebar-cat-link:hover { background: var(--social-bg); }
.social-sidebar-cat-icon {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}
.job-cat-icon  { background: #dbeafe; color: var(--social-primary); }
.mkt-cat-icon  { background: #dcfce7; color: #16a34a; }
.post-icon     { background: #f3e8ff; color: #7c3aed; }
.social-sidebar-cat-post { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   RIGHT SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.social-right-sidebar {
    width: var(--social-right-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--social-header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-right-quick-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none; margin-bottom: 8px;
    transition: opacity 0.2s, transform 0.15s;
}
.social-right-quick-btn:last-of-type { margin-bottom: 0; }
.social-right-quick-btn.job-btn { background: var(--social-primary); color: #fff; }
.social-right-quick-btn.mkt-btn { background: #16a34a; color: #fff; }
.social-right-quick-btn:hover { opacity: 0.92; }
.social-right-browse-link {
    display: flex; align-items: center;
    padding: 10px 8px; font-size: 0.9rem; color: var(--social-text);
    text-decoration: none; border-radius: 10px; transition: background 0.2s;
}
.social-right-browse-link:hover { background: var(--social-bg); }
.social-right-browse-link i { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════
   COMPOSER
   ═══════════════════════════════════════════════════════════════ */
.social-create-post {
    background: var(--social-card-bg);
    border-radius: var(--social-radius-lg);
    box-shadow: var(--social-shadow);
    padding: 16px;
    margin-bottom: 16px;
}
.social-composer-row { display: flex; align-items: center; gap: 12px; }
.social-composer-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.social-composer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-composer-initial {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--social-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.social-composer-input {
    flex: 1; background: var(--social-bg); border-radius: 50px;
    padding: 12px 20px; font-size: 0.95rem; color: var(--social-text-secondary);
    cursor: pointer; transition: background 0.2s; user-select: none;
}
.social-composer-input:hover { background: #e4e6eb; }
.social-composer-hr { margin: 12px 0; border: none; border-top: 1px solid var(--social-border); }
.social-composer-actions { display: flex; gap: 6px; align-items: center; }
.social-composer-action {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; color: var(--social-text-secondary);
    text-decoration: none; transition: background 0.2s, color 0.2s; flex: 1; justify-content: center;
}
.social-composer-action:hover { background: var(--social-bg); }
.social-composer-action.job-action:hover { color: var(--social-primary); }
.social-composer-action.mkt-action:hover { color: #16a34a; }

/* ═══════════════════════════════════════════════════════════════
   FEED
   ═══════════════════════════════════════════════════════════════ */
.social-feed-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding: 0 6px;
}
.social-feed-title { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--social-text); }
.social-feed-count { font-size: 0.85rem; color: var(--social-text-secondary); }

/* ── Feed card ── */
.social-feed-card {
    background: var(--social-card-bg);
    border-radius: var(--social-radius-lg);
    box-shadow: var(--social-shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.social-feed-card:hover { box-shadow: var(--social-shadow-md); }

.social-card-header {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px 10px;
}
.social-card-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem; color: #fff; flex-shrink: 0;
}
.social-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.job-avatar  { background: var(--social-primary); }
.mkt-avatar  { background: #16a34a; }

.social-card-meta { flex: 1; min-width: 0; }
.social-card-author { font-weight: 600; font-size: 0.95rem; line-height: 1.35; color: var(--social-text); }
.social-card-time-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.social-card-cat-badge {
    font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.social-card-type-job { background: #dbeafe; color: var(--social-primary); }
.social-card-type-mkt { background: #dcfce7; color: #16a34a; }
.social-card-time { font-size: 0.8rem; color: var(--social-text-secondary); }

/* Three-dot menu */
.social-card-menu .social-card-menu-btn {
    background: none; border: none; color: var(--social-text-secondary);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.social-card-menu .social-card-menu-btn:hover { background: var(--social-bg); }
.social-card-dropdown { font-size: 0.88rem; }

/* Card image */
.social-card-image-wrap { overflow: hidden; max-height: 400px; }
.social-card-image { width: 100%; height: auto; display: block; object-fit: cover; }
.social-card-gallery {
    display: grid;
    gap: 2px;
    background: #fff;
    overflow: hidden;
}
.social-card-gallery-1 { grid-template-columns: 1fr; }
.social-card-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.social-card-gallery-3 {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(2, minmax(150px, 1fr));
}
.social-card-gallery-3 .social-card-gallery-item:first-child {
    grid-row: 1 / span 2;
}
.social-card-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(150px, 1fr));
}
.social-card-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 180px;
    background: #eef2f7;
}
.social-card-gallery-1 .social-card-gallery-item { min-height: 320px; }
.social-card-gallery-item .social-card-image {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.social-card-gallery-item:hover .social-card-image { transform: scale(1.02); }
.social-card-gallery-item.has-overflow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.38);
}
.social-card-gallery-more {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Card body */
.social-card-body { padding: 12px 16px; }
.social-card-title {
    display: block; font-size: 1rem; font-weight: 600;
    color: var(--social-text); text-decoration: none;
    margin-bottom: 6px; line-height: 1.4;
}
.social-card-title:hover { color: var(--social-primary); }
.social-card-text { font-size: 0.9rem; color: var(--social-text-secondary); margin: 0; line-height: 1.5; }
.social-card-price { font-size: 1.05rem; font-weight: 700; color: #16a34a; margin-top: 6px; }

/* Card actions */
.social-card-actions {
    display: flex; align-items: center; gap: 2px;
    padding: 8px 12px;
    border-top: 1px solid var(--social-border);
}
.social-card-action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px; border: none; background: none;
    font-size: 0.9rem; font-weight: 600; color: var(--social-text-secondary);
    text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
    flex: 1; justify-content: center;
}
.social-card-action-btn:hover { background: var(--social-bg); color: var(--social-text); }
.social-card-action-btn.social-like-btn.liked { color: #e0245e; }
.social-card-action-btn.social-like-btn.liked i { color: #e0245e; }
.social-card-action-cta { color: var(--social-primary); }
.social-card-action-cta:hover { background: #e7f0fd; color: var(--social-primary); }

/* ── Filter tabs ── */
.social-filter-tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--social-border); margin-bottom: 16px;
    background: var(--social-card-bg); border-radius: var(--social-radius-lg) var(--social-radius-lg) 0 0;
    overflow: hidden;
}
.social-filter-tab {
    flex: 1; padding: 14px; text-align: center;
    font-size: 0.95rem; font-weight: 600; color: var(--social-text-secondary);
    text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.2s;
}
.social-filter-tab:hover { background: var(--social-bg); }
.social-filter-tab.active { color: var(--social-primary); border-bottom-color: var(--social-primary); }

/* ── Empty state ── */
.social-empty-state { text-align: center; padding: 56px 28px; }
.social-empty-icon { font-size: 3.5rem; color: var(--social-text-secondary); opacity: 0.45; }
.social-empty-text { color: var(--social-text-secondary); margin-top: 14px; font-size: 1.05rem; }
.social-empty-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.social-empty-btn {
    padding: 10px 20px; border-radius: 10px; border: none;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.social-empty-btn.job-btn { background: var(--social-primary); color: #fff; }
.social-empty-btn.mkt-btn { background: #16a34a; color: #fff; }
.social-empty-btn:hover { opacity: 0.92; }

/* ── Load more ── */
.social-load-more-wrap { text-align: center; padding: 20px; }
.social-load-more-btn {
    padding: 12px 32px; border-radius: 10px; border: 1px solid var(--social-border);
    background: var(--social-card-bg); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s; color: var(--social-text);
}
.social-load-more-btn:hover { background: var(--social-bg); }
.social-load-more-btn:disabled { opacity: 0.6; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   CREATE POST MODAL — Facebook-style
   ═══════════════════════════════════════════════════════════════ */
.social-create-post-modal-dialog {
    max-width: min(560px, calc(100vw - 32px));
}
.social-create-post-modal-content {
    border-radius: var(--social-radius-xl);
    border: none;
    box-shadow: var(--social-shadow-lg);
    overflow: hidden;
}

/* Modal header */
.social-cpm-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
}
.social-cpm-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    flex: 1;
    color: var(--social-text);
}
.social-cpm-back,
.social-cpm-close {
    position: absolute;
    width: 38px; height: 38px;
    border-radius: 50%; border: none;
    background: var(--social-bg);
    color: var(--social-text); font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s;
}
.social-cpm-back  { left: 14px; }
.social-cpm-close { right: 14px; }
.social-cpm-back:hover,
.social-cpm-close:hover { background: #dddfe2; }

.social-cpm-divider { height: 1px; background: var(--social-border); }

/* User row */
.social-cpm-user-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
}
.social-cpm-user-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.social-cpm-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-cpm-user-initial {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--social-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.social-cpm-user-info { display: flex; flex-direction: column; }
.social-cpm-user-name { font-weight: 600; font-size: 0.95rem; color: var(--social-text); }
.social-cpm-audience {
    font-size: 0.8rem; color: var(--social-text-secondary);
    background: var(--social-bg); padding: 3px 10px; border-radius: 6px;
    display: inline-block; margin-top: 4px;
}

/* Chooser */
.social-cpm-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}
.social-cpm-chooser-btn {
    display: flex; flex-direction: row; align-items: center; gap: 14px;
    justify-content: flex-start;
    padding: 20px 18px; border-radius: var(--social-radius-lg);
    border: 1px solid var(--social-border); background: var(--social-card-bg);
    cursor: pointer; transition: all 0.2s; text-align: left;
}
.social-cpm-chooser-btn:hover { background: var(--social-bg); border-color: var(--social-primary); }
.social-cpm-chooser-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.social-cpm-chooser-icon.job-icon { background: #dbeafe; color: var(--social-primary); }
.social-cpm-chooser-icon.mkt-icon { background: #dcfce7; color: #16a34a; }
.social-cpm-chooser-label { font-size: 0.9rem; font-weight: 600; color: var(--social-text); }

/* Form wrap */
.social-cpm-form-wrap { padding: 18px; }
.social-cpm-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 32px; color: var(--social-text-secondary); font-size: 0.9rem;
}

/* Compose form inputs */
.social-compose-field { margin-bottom: 10px; }
.social-compose-row { display: flex; gap: 10px; }
.social-compose-row .social-compose-field { flex: 1; }
.social-compose-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px dashed #bcd2ff;
    color: var(--social-text);
    cursor: pointer;
}
.social-compose-upload-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: var(--social-primary);
    flex-shrink: 0;
}
.social-compose-upload-hint {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--social-text-secondary);
}
.social-compose-file-input { display: none; }
.social-compose-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.social-compose-preview-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #e5e7eb;
}
.social-compose-preview-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.social-compose-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.social-compose-fb-input,
.social-compose-fb-select,
.social-compose-fb-textarea {
    width: 100%;
    border: none;
    background: var(--social-bg);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: var(--social-text);
    outline: none;
    transition: background 0.15s;
    font-family: inherit;
}
.social-compose-fb-input:focus,
.social-compose-fb-select:focus,
.social-compose-fb-textarea:focus { background: #e4e6eb; }
.social-compose-fb-textarea { resize: vertical; min-height: 90px; }
.social-compose-fb-select { appearance: none; cursor: pointer; }

.social-compose-share-btn {
    width: 100%;
    padding: 10px;
    background: var(--social-primary);
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: opacity 0.15s; margin-top: 6px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.social-compose-share-btn:hover { opacity: 0.9; }
.social-compose-share-btn:disabled { opacity: 0.6; cursor: default; }

.social-create-post-form-inner { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */
.social-detail-page { padding: 0; }
.social-detail-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 600; color: var(--social-text-secondary);
    text-decoration: none; padding: 8px 4px; margin-bottom: 10px;
    transition: color 0.15s;
}
.social-detail-back:hover { color: var(--social-primary); }
.social-detail-card { margin-bottom: 0; }
.social-detail-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.social-detail-body { font-size: 0.9rem; line-height: 1.6; color: var(--social-text); white-space: pre-line; }
.social-detail-price { font-size: 1.3rem; margin-bottom: 8px; }
.social-detail-contact {
    margin-top: 10px; padding: 8px 12px;
    background: var(--social-bg); border-radius: 8px;
    font-size: 0.88rem; color: var(--social-text);
}

/* Comments section */
.social-comments-section {
    padding: 10px 14px;
    border-top: 1px solid var(--social-border);
    display: flex; flex-direction: column; gap: 8px;
}
.social-comment {
    display: flex; flex-wrap: wrap; gap: 6px;
    background: var(--social-bg); border-radius: 12px;
    padding: 8px 12px;
}
.social-comment-author { font-weight: 600; font-size: 0.85rem; }
.social-comment-body { font-size: 0.85rem; color: var(--social-text); }
.social-comment-form {
    display: flex; gap: 8px; padding: 10px 14px;
    border-top: 1px solid var(--social-border);
}
.social-comment-input {
    flex: 1; background: var(--social-bg); border: none; border-radius: 50px;
    padding: 8px 16px; font-size: 0.88rem; outline: none;
}
.social-comment-input:focus { background: #e4e6eb; }
.social-comment-submit {
    background: var(--social-primary); color: #fff; border: none;
    border-radius: 50px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: opacity 0.15s;
}
.social-comment-submit:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.social-auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - var(--social-header-h) - 60px);
    padding: 24px 16px;
}
.social-auth-card {
    background: var(--social-card-bg);
    border-radius: var(--social-radius-lg);
    box-shadow: var(--social-shadow-md);
    padding: 32px 28px;
    width: 100%; max-width: 420px;
}
.social-auth-logo {
    text-align: center; margin-bottom: 16px;
    font-size: 2.5rem; color: var(--social-primary);
}
.social-auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.social-auth-subtitle { font-size: 0.9rem; color: var(--social-text-secondary); text-align: center; margin-bottom: 20px; }
.social-auth-form { display: flex; flex-direction: column; gap: 12px; }
.social-auth-row { display: flex; gap: 10px; }
.social-auth-row .social-auth-field { flex: 1; }
.social-auth-field { display: flex; flex-direction: column; }
.social-auth-input {
    border: 1px solid var(--social-border); border-radius: 8px;
    padding: 10px 14px; font-size: 0.9rem; outline: none;
    transition: border-color 0.15s;
}
.social-auth-input:focus { border-color: var(--social-primary); }
.social-auth-btn {
    background: var(--social-primary); color: #fff; border: none;
    border-radius: 8px; padding: 11px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s; margin-top: 4px;
}
.social-auth-btn:hover { opacity: 0.9; }
.social-auth-alt { text-align: center; font-size: 0.85rem; color: var(--social-text-secondary); margin-top: 14px; }
.social-auth-alt a { color: var(--social-primary); text-decoration: none; font-weight: 600; }
.social-auth-alt a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */
.social-profile-page { padding: 24px; text-align: center; }
.social-profile-header { margin-bottom: 20px; }
.social-profile-avatar-lg {
    width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 12px;
    background: var(--social-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 2rem;
}
.social-profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.social-profile-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.social-profile-email { color: var(--social-text-secondary); font-size: 0.88rem; }
.social-profile-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.social-profile-action-btn {
    padding: 9px 18px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; text-decoration: none;
    background: var(--social-primary); color: #fff;
    transition: opacity 0.15s;
}
.social-profile-action-btn.mkt { background: #16a34a; }
.social-profile-action-btn:hover { opacity: 0.9; }
.social-profile-back { margin-top: 12px; }
.social-profile-back a { color: var(--social-text-secondary); font-size: 0.88rem; text-decoration: none; }
.social-profile-back a:hover { color: var(--social-primary); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.social-footer {
    background: var(--social-card-bg);
    border-top: 1px solid var(--social-border);
    margin-top: 24px;
    padding: 16px;
}
.social-footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.social-footer-copy { font-size: 0.85rem; color: var(--social-text-secondary); }
.social-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-footer-links a {
    font-size: 0.85rem; color: var(--social-text-secondary);
    text-decoration: none; transition: color 0.2s;
}
.social-footer-links a:hover { color: var(--social-primary); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .social-right-sidebar { display: none; }
    .social-main { max-width: 100%; }
}
@media (max-width: 768px) {
    .social-layout-wrap { padding: 10px 8px; flex-direction: column; }
    .social-sidebar { width: 100%; position: static; max-height: none; overflow: visible; }
    .social-sidebar-main { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .social-sidebar-card { flex: 1; min-width: 140px; }
    .social-sidebar-profile-card { display: none; }
    .social-main { max-width: 100%; }
    .social-header-search { display: none; }
    .social-cpm-chooser { grid-template-columns: 1fr; }
    .social-compose-row { flex-direction: column; }
    .social-card-gallery-1 .social-card-gallery-item { min-height: 240px; }
}
@media (max-width: 480px) {
    .social-sidebar-main { display: none; }
    .social-layout-wrap { padding: 8px; }
    .social-auth-row { flex-direction: column; }
    .social-create-post-modal-dialog {
        max-width: calc(100vw - 12px);
        margin: 0.5rem auto;
    }
    .social-cpm-form-wrap,
    .social-cpm-chooser {
        padding: 14px;
    }
    .social-card-gallery-item { min-height: 120px; }
}

/* =============================================================
   BUSINESS REGISTER — search, dropdown, claim card
   ============================================================= */

/* Wider card on business register */
.biz-reg-card { max-width: 560px; width: 100%; }

/* Search wrapper */
.biz-search-wrap { position: relative; }

/* Spinner inside the search input */
.biz-search-spinner {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
@keyframes biz-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
.biz-search-spinner svg { animation: biz-spin .8s linear infinite; }

/* Dropdown */
.biz-dropdown {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
}
.biz-dropdown.open { display: block; }

/* Dropdown row */
.biz-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.biz-dd-item:last-child { border-bottom: none; }
.biz-dd-item:hover { background: #f8fafc; }
.biz-dd-item--new { border-top: 1px solid #e5e7eb; }

/* Avatar circle/square in dropdown */
.biz-dd-avatar {
    width: 38px; height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.biz-dd-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Info block inside dropdown row */
.biz-dd-info { flex: 1; min-width: 0; }
.biz-dd-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.biz-dd-loc {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.biz-dd-new-label {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
}

/* No results row */
.biz-dd-no-results {
    padding: 16px 14px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* Claim card */
.biz-claim-card {
    display: none;
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 20px;
    background: #eff6ff;
    margin-top: 12px;
}
.biz-claim-card.open { display: block; }
.biz-claim-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.biz-claim-logo {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.biz-claim-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-claim-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 2px;
}
.biz-claim-loc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.biz-claim-msg {
    font-size: 13px;
    color: #1e40af;
    margin: 0 0 14px;
}
.biz-claim-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.biz-claim-btn {
    background: #2563eb;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity .15s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.biz-claim-btn:hover { opacity: .88; }
.biz-claim-btn--dismiss {
    background: #e2e8f0;
    color: #475569;
}
.biz-claim-btn--dismiss:hover { background: #cbd5e1; opacity: 1; }

/* Two-column form grid used in register */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* =============================================================
   AUTH LAYOUT — two-column (slider left, form right)
   social-auth.php
   ============================================================= */

.auth-page {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Left slider panel ── */
.auth-slider-panel {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
    background: #1e2d6d;
}
.auth-slider-panel .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    background-size: cover;
    background-position: center;
}
.auth-slider-panel .slide.active { opacity: 1; }
.auth-slider-panel .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 40%, transparent 100%);
    pointer-events: none;
}
.auth-slider-panel .slide-content {
    position: absolute;
    bottom: 60px;
    left: 0; right: 0;
    padding: 0 48px;
    color: #fff;
    z-index: 2;
}
.auth-slider-panel .slide-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}
.auth-slider-panel .slide-content p {
    font-size: .95rem;
    opacity: .85;
    margin: 0;
    max-width: 380px;
}
.auth-slider-panel .slide-dots {
    position: absolute;
    bottom: 28px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.auth-slider-panel .slide-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.auth-slider-panel .slide-dots span.active {
    background: #fff;
    transform: scale(1.25);
}

/* Fallback gradient when no images uploaded */
.auth-slider-panel.no-images {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e1b4b 100%);
}
.auth-slider-panel.no-images .slide-overlay { display: none; }

/* Default decorative icon shown inside the fallback slide */
.auth-slider-default-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-slider-default-inner {
    text-align: center;
    color: #fff;
    opacity: .15;
}

/* ── Right form panel ── */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height: 100%;
    background: #f3f4f6;
}
.auth-form-inner {
    width: 100%;
    max-width: 580px;
    margin: auto;
    padding: 40px 24px;
}
.auth-form-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.auth-logo-img   { height: 40px; width: auto; }
.auth-logo-text  { color: #2563eb; font-size: 1.5rem; font-weight: 700; }

/* ── Responsive: hide slider on small screens ── */
@media (max-width: 768px) {
    .auth-slider-panel  { display: none; }
    .auth-form-panel    { background: #f3f4f6; }
}
.slide--no-bg { background: none !important; }

/* =============================================================
   BUSINESS REGISTER — duplicate verify card
   ============================================================= */

.biz-verify-card {
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fffbeb;
    margin-top: 12px;
    margin-bottom: 4px;
}
.biz-verify-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    margin-bottom: 6px;
}
.biz-verify-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
    color: #92400e;
}
.biz-verify-msg {
    font-size: 13px;
    color: #78350f;
    margin: 0 0 12px;
}
.biz-verify-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.biz-verify-match-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 12px;
}
.biz-verify-match-row .biz-dd-info { flex: 1; }
.biz-verify-actions {
    display: flex;
    justify-content: flex-end;
}

/* =============================================================
   ACCOUNT PAGES — shared form + card styles
   ============================================================= */

/* Standard input used across account forms */
.acc-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.acc-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.acc-input:disabled, .acc-input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: default;
}
textarea.acc-input { resize: vertical; min-height: 90px; }

.acc-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}
.acc-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Card section */
.acc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.acc-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.acc-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.acc-card-body { padding: 1.25rem; }

/* Two-col grid for form fields */
.acc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) {
    .acc-grid-2 { grid-template-columns: 1fr; }
}

/* Primary button */
.acc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.375rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.acc-btn-primary:hover { background: #1d4ed8; }
.acc-btn-primary:disabled { opacity: .6; cursor: default; }

/* Danger button */
.acc-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.375rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background .15s;
}
.acc-btn-danger:hover { background: #b91c1c; }

/* Avatar upload circle */
.acc-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}
.acc-avatar-circle {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.acc-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acc-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .18s;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
}
.acc-avatar-circle:hover .acc-avatar-overlay { opacity: 1; }
.acc-avatar-overlay i { font-size: 1.25rem; }

/* Flash alerts */
.acc-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.acc-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.acc-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Danger zone card */
.acc-card-danger { border-color: #fca5a5; }
.acc-card-danger .acc-card-header { border-bottom-color: #fee2e2; background: #fef2f2; }
.acc-card-danger .acc-card-title { color: #dc2626; }

/* Section divider */
.acc-divider { height: 1px; background: #f3f4f6; margin: 1.25rem 0; }

/* Profile page two-column grid */
.acc-grid-profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .acc-grid-profile { grid-template-columns: 1fr; }
}

/* =============================================================
   SOCIAL-ACCOUNT LAYOUT — content area + legacy Bootstrap cards
   ============================================================= */

.sacc-content-area { min-width: 0; }

/* Legacy Bootstrap-style account cards */
.sacc-content-area .account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / .08);
}
.sacc-content-area .account-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Bootstrap alert compatibility */
.sacc-content-area .alert { border-radius: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .875rem; }
.sacc-content-area .alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sacc-content-area .alert-danger  { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Empty state */
.sacc-content-area .account-empty-state        { text-align: center; padding: 3rem 1rem; }
.sacc-content-area .account-empty-state__icon  { font-size: 3rem; color: #9ca3af; margin-bottom: 1rem; }
.sacc-content-area .account-empty-state__title { font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: .5rem; }
.sacc-content-area .account-empty-state__desc  { color: #6b7280; font-size: .875rem; }

/* Sidebar divider */
.sacc-sidebar-divider { height: 1px; background: #e5e7eb; margin: .75rem 0; }

/* =============================================================
   SAVED / FAVORITES PAGE
   ============================================================= */

/* Page header */
.sf-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.sf-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}
.sf-page-sub {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    max-width: 480px;
}

/* Tab switcher */
.sf-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 0;
}
.sf-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sf-tab:hover { background: #e5e7eb; color: #374151; }
.sf-tab--active { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 700; }

/* Empty state card */
.sf-empty-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.sf-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.sf-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}
.sf-empty-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 auto 1.5rem;
    max-width: 360px;
    line-height: 1.55;
}
.sf-empty-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.sf-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.sf-empty-btn:hover { opacity: .85; }
.sf-empty-btn--primary { background: #111827; color: #fff; }
.sf-empty-btn--outline { background: #fff; color: #374151; border: 1.5px solid #d1d5db; }
.sf-empty-btn--outline:hover { background: #f9fafb; opacity: 1; }

/* Count row */
.sf-count-row { padding: 0 2px; }
.sf-count { font-size: 0.8125rem; color: #9ca3af; font-weight: 500; }

/* Item list */
.sf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.sf-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: box-shadow .18s;
}
.sf-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); }

.sf-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: inherit;
}

.sf-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0.625rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.sf-item-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 0.625rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-item-placeholder--job,
.sf-item-placeholder--mkt { background: #f3f4f6; color: #9ca3af; }

.sf-item-body { flex: 1; min-width: 0; }
.sf-item-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.sf-item-badge--job,
.sf-item-badge--mkt { background: #f3f4f6; color: #6b7280; }

.sf-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-item-source {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-item-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}
.sf-item:hover .sf-item-arrow { color: #2563eb; transform: translateX(2px); }

/* =============================================================
   GLOBAL FORM FIELD & BUTTON RADIUS OVERRIDE  (social layouts)
   ============================================================= */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="color"],
input[type="file"],
textarea,
select,
.form-control,
.field-input,
.acc-input,
.tf-select,
.nice-select {
    border-radius: 0.5rem !important;
}

button,
[type="button"],
[type="submit"],
[type="reset"],
.tf-btn,
.btn,
.btn-line,
.btn-login,
.btn-signup,
.acc-btn-primary,
.acc-btn-danger,
.sf-empty-btn,
.biz-verify-btn,
.auth-btn-primary {
    border-radius: 0.5rem !important;
}

/* =============================================================
   SIDEBAR AVATAR UPLOAD WIDGET
   ============================================================= */
.sacc-avatar-upload-label {
    position: relative;
    display: inline-flex;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
}
.sacc-avatar-upload-label:hover .sacc-avatar-overlay { opacity: 1; }

.sacc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.sacc-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    /* background is set via inline style from DB avatar_color */
    background: linear-gradient(135deg, #6366f1, #38bdf8);
}
.sacc-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
}

/* =============================================================
   NO-IMAGE PLACEHOLDER  (feed + marketplace)
   ============================================================= */
.feed-no-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-decoration: none;
}
.feed-no-img-initial {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    line-height: 1;
    user-select: none;
    letter-spacing: -2px;
}

/* Marketplace card: no-image placeholder */
.mkt-card-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Feed card author avatar */
.feed-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* =============================================================
   JOIN — account type selection (/join)
   ============================================================= */

.join-page {
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 40px 24px;
}
.join-header {
    text-align: center;
    margin-bottom: 32px;
}
.join-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.join-sub {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}
.join-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.join-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}
.join-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.join-card--business:hover { border-color: #3b82f6; }
.join-card--visitor:hover  { border-color: #8b5cf6; }
.join-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.join-card--business .join-card__icon {
    background: #eff6ff;
    color: #2563eb;
}
.join-card--visitor .join-card__icon {
    background: #f5f3ff;
    color: #7c3aed;
}
.join-card__body {
    flex: 1;
    min-width: 0;
}
.join-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.join-card__desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}
.join-card__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.join-card--business .join-card__cta {
    background: #2563eb;
    color: #fff;
}
.join-card--visitor .join-card__cta {
    background: #7c3aed;
    color: #fff;
}
.join-card:hover .join-card__cta { opacity: 0.9; }
.join-signin {
    text-align: center;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 24px;
}
.join-signin a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}
.join-signin a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .join-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .join-card__cta { width: 100%; justify-content: center; }
}

/* =============================================================
   UNIFIED ACCOUNT DESIGN SYSTEM
   Normalises /account/* (customer) and /my-account/* (WU)
   ============================================================= */

/* ---- 1. Consistent card chrome ---- */
.account-card,
.acc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* account-card keeps flat padding — add divider under title */
.account-card {
    padding: 1.5rem;
}

/* acc-card uses header/body split — sync the padding */
.acc-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    gap: 0.625rem;
}
.acc-card-body {
    padding: 1.5rem;
}

/* ---- 2. Unified card title ---- */
.account-card .account-card__title,
.account-card .title,
.acc-card-title,
.account-form-section h2 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

/* Give account-card title a hairline separator (mirrors acc-card-header) */
.account-card .account-card__title,
.account-card .title {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.25rem !important;
    display: block;
}

/* account-form-section title underline already has padding via h2 */
.account-form-section h2 {
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 1.25rem !important;
}

/* ---- 3. Page header (back-arrow + title row) — works without .account-form-wrap ---- */
.account-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.account-page-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.account-page-header a:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.account-page-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3;
}
.account-page-sub {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin: 0.2rem 0 0 0 !important;
}

/* ---- 4. account-form-section (edit.php) — sync with account-card ---- */
.account-form-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ---- 5. Input normalization ---- */
.account-input,
.account-select,
.account-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.account-input:focus,
.account-select:focus,
.account-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.account-label,
.account-form-section .account-label {
    display: block;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.3rem !important;
}

/* ---- 6. Unified flash alerts ---- */
.alert-wd.success,
.acc-alert-success {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-wd.error,
.acc-alert-error {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ---- 7. dashboard-content inside social-account — remove double container ---- */
.social-account-body .dashboard-content,
.dashboard-content.account-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ---- 8. Account page max-width normalisation ---- */
.account-page {
    max-width: 860px;
    margin: 0 auto;
}

/* ---- 9. Consistent button style for primary actions ---- */
.acc-btn-primary,
.account-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.375rem;
    background: #2563eb;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.acc-btn-primary:hover,
.account-btn-primary:hover {
    background: #1d4ed8;
    color: #fff !important;
}

/* ---- 10. Mobile responsive ---- */
@media (max-width: 640px) {
    .account-card,
    .acc-card-body,
    .account-form-section {
        padding: 1rem;
    }
    .acc-card-header {
        padding: 0.875rem 1rem;
    }
    .account-page-title {
        font-size: 1rem !important;
    }
}

/* ---- 11. account-form-section inner field spacing ---- */
.account-form-section > * + * {
    margin-top: 1.25rem;
}
.account-form-section h2 + * {
    margin-top: 0;
}
/* business hours time inputs */
.account-form-section input[type="time"] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
}
.account-form-section input[type="time"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ---- textarea and select using account-input class ---- */
textarea.account-input { min-height: 90px; resize: vertical; }
select.account-input { cursor: pointer; }

/* =========================================================
   BUSINESS HOURS EDITOR  (create.php + edit.php)
   ========================================================= */

/* Row container */
.bh-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.bh-row:last-child { border-bottom: none; }

/* Day label + checkbox cell */
.bh-day-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 8rem;
    flex-shrink: 0;
}
.bh-day-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}
.bh-day-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    user-select: none;
    cursor: pointer;
}

/* Time inputs wrapper — flex-1 to fill available space */
.bh-times {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
    transition: opacity .15s;
}
.bh-times.is-closed {
    opacity: 0.3;
    pointer-events: none;
}

/* Individual time input */
.bh-time-input {
    flex: 1 !important;
    min-width: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #111827 !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
    box-sizing: border-box !important;
}
.bh-time-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
}

.bh-sep {
    font-size: 0.8125rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Closed badge */
.bh-closed-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ef4444;
    flex-shrink: 0;
    width: 3.5rem;
    text-align: right;
}

/* Section heading override for business hours */
.bh-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    padding-bottom: 0.875rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 0 !important;
}
.bh-section-title i {
    font-size: 0.9375rem;
    color: #6b7280;
}

/* Alpine x-cloak */
[x-cloak] { display: none !important; }

/* =============================================================
   ACCOUNT PAGES — GLOBAL CONSISTENCY LAYER
   ============================================================= */

/* 1. Content area max-width — constrains ALL account pages equally */
.sacc-content-area {
    max-width: 900px;
}

/* 2. acc-card-header subtitle (used in Leads) */
.acc-card-header .acc-card-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-left: auto;
    font-weight: 400;
}

/* 3. Inner section label (Subscription: Plan) */
.acc-section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin: 0 0 1rem 0;
}

/* 4. ACC TABS (replace Bootstrap btn tabs in Leads) */
.acc-tabs {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.acc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}
.acc-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}
.acc-tab--active {
    background: #2563eb;
    color: #fff !important;
    border-color: #2563eb;
}
.acc-tab-count {
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 0 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}
.acc-tab:not(.acc-tab--active) .acc-tab-count {
    background: #e2e8f0;
    color: #475569;
}

/* 5. ACC EMPTY STATE (consistent across Reviews, Leads, etc.) */
.acc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
}
.acc-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}
.acc-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}
.acc-empty-desc {
    font-size: 0.875rem;
    color: #64748b;
    max-width: 320px;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

/* 6. REVIEW LIST */
.acc-review-list { }
.acc-review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.acc-review-item:last-child { border-bottom: none; }
.acc-review-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}
.acc-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.acc-review-name { font-size: 0.875rem; font-weight: 600; color: #111827; }
.acc-review-sub { font-size: 0.75rem; color: #94a3b8; margin-top: 1px; }
.acc-review-listing-link { color: #2563eb; text-decoration: none; }
.acc-review-listing-link:hover { text-decoration: underline; }
.acc-review-stars { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.acc-review-title { font-size: 0.875rem; font-weight: 600; color: #111827; margin-bottom: 0.25rem; }
.acc-review-body { font-size: 0.875rem; color: #475569; margin: 0; line-height: 1.6; }

/* 7. LEADS LIST */
.acc-leads-list { }
.acc-lead-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.acc-lead-item:last-child { border-bottom: none; }
.acc-lead-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.acc-lead-body { flex: 1; min-width: 0; }
.acc-lead-name { font-size: 0.875rem; font-weight: 600; color: #111827; margin-bottom: 2px; }
.acc-lead-contact { font-size: 0.75rem; color: #64748b; margin-bottom: 3px; }
.acc-lead-listing a { font-size: 0.75rem; color: #2563eb; text-decoration: none; }
.acc-lead-listing a:hover { text-decoration: underline; }
.acc-lead-message { font-size: 0.8125rem; color: #64748b; margin: 0.375rem 0 0 0; line-height: 1.5; }
.acc-lead-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.acc-lead-date { font-size: 0.75rem; color: #94a3b8; }
.acc-lead-actions { display: flex; gap: 0.375rem; flex-wrap: wrap; justify-content: flex-end; }
.acc-lead-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.acc-lead-btn:hover { background: #f8fafc; color: #0f172a; text-decoration: none; }
.acc-lead-btn--primary { background: #2563eb; color: #fff !important; border-color: #2563eb; }
.acc-lead-btn--primary:hover { background: #1d4ed8; }
.acc-lead-btn--danger { color: #b91c1c; border-color: #fca5a5; }
.acc-lead-btn--danger:hover { background: #fef2f2; }

/* 8. Subscription section — plan cards already have styles, just ensure body padding */
.acc-card-body .account-subscription-plans-row { margin-top: 0.5rem; }
.acc-card-body .account-subscription-auto-desc { font-size: 0.875rem; color: #64748b; margin: 0.25rem 0 1rem 0; }
.acc-card-body .account-subscription-billing-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.acc-card-body .account-subscription-billing-table th { font-size: 0.75rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.acc-card-body .account-subscription-billing-table td { padding: 0.75rem 0; border-bottom: 1px solid #f8fafc; color: #374151; }

/* 9. Mobile */
@media (max-width: 640px) {
    .acc-lead-item { flex-wrap: wrap; }
    .acc-lead-right { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; }
    .acc-tabs { gap: 0.25rem; }
    .acc-tab { padding: 0.3rem 0.625rem; font-size: 0.75rem; }
}
