/* ── theopensourcing – Global Styles ────────────────────────────────────── */

:root {
    --primary:   #0d6efd;
    --secondary: #6c757d;
    --accent:    #f59e0b;
    --dark:      #0f172a;
    --light-bg:  #f8fafc;
}

/* ── Base ── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: #1e293b;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar brand / logo ── */
.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--primary) !important;
    gap: 0.55rem;
}
.navbar-brand .brand-word {
    color: #1e293b;
    font-weight: 700;
}
.navbar-brand .brand-word strong {
    color: var(--primary);
}
.navbar-brand .brand-suffix {
    color: var(--secondary);
    font-weight: 500;
}
.navbar-brand span { color: var(--accent); }

/* ── Hero ── */
.hero {
    background: linear-gradient(-45deg, #0d6efd, #4f46e5, #0ea5e9, #1d4ed8, #7c3aed, #0369a1);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Ambient glow orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: heroOrbFloat 7s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: rgba(99,102,241,0.4);
    top: -250px; left: -200px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 460px; height: 460px;
    background: rgba(14,165,233,0.4);
    bottom: -180px; right: -150px;
    animation-delay: -3.5s;
}
.hero-orb-3 {
    width: 280px; height: 280px;
    background: rgba(251,191,36,0.22);
    top: 30%; left: 55%;
    animation-delay: -6s;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translateY(0)     scale(1);    opacity: 0.85; }
    50%       { transform: translateY(-28px) scale(1.07); opacity: 1; }
}

/* Currency strip in hero */
.hero-currency-strip {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-cur-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hero-cur-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.hero-cur-btn.cur-active {
    background: rgba(251,191,36,0.3);
    border-color: #fbbf24;
    color: #fef08a;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════
   Landing Page v2 — full redesign
════════════════════════════════════════════════════════ */

/* ── Shared section scaffolding ── */
.lp-section       { padding: 80px 0; }
.lp-section-light { background: #f8fafc; }
.lp-section-white { background: #fff; }

.lp-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.lp-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    margin: 0 0 2rem;
    max-width: 100%;
}
.lp-section-h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0.35rem 0 0.5rem;
    line-height: 1.2;
}
.lp-section-sub {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}
.lp-eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(13,110,253,0.08);
    border: 1px solid rgba(13,110,253,0.15);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 0.6rem;
}

/* ── Gradient text ── */
.lp-grad-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════ HERO ═══════════════════════ */
.lp-hero {
    background: linear-gradient(-45deg, #0d1f4e, #1e3a8a, #0f172a, #1d4ed8, #0c1445, #312e81);
    background-size: 400% 400%;
    animation: heroGradient 14s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
}
.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 991px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-hero-visual { display: none; }
}

/* Copy side */
.lp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253,230,138,0.9);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 1.2rem;
}
.lp-eyebrow-dot {
    width: 6px; height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(251,191,36,0); }
}
.lp-hero-h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 1.1rem;
}
.lp-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* Search bar */
.lp-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    padding: 5px 5px 5px 16px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    margin-bottom: 0.9rem;
}
.lp-search-icon  { color: #94a3b8; font-size: 1rem; flex-shrink: 0; }
.lp-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    min-width: 0;
}
.lp-search-input::placeholder { color: #94a3b8; }
.lp-search-btn {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}
.lp-search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
    transform: translateY(-1px);
}

/* Quick links */
.lp-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.lp-ql-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.lp-ql-tag {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 3px 12px;
    text-decoration: none;
    transition: all 0.15s;
}
.lp-ql-tag:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    text-decoration: none;
}

/* CTA buttons */
.lp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 11px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(245,158,11,0.45);
    transition: all 0.18s;
    text-decoration: none !important;
}
.lp-btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245,158,11,0.55);
    color: #fff !important;
}
.lp-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85) !important;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.18s;
    text-decoration: none !important;
}
.lp-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
    text-decoration: none !important;
}

/* Visual / right side */
.lp-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}
.lp-hero-globe {
    opacity: 0.75;
    animation: heroOrbFloat 8s ease-in-out infinite;
}
.lp-stat-float {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 16px;
    text-align: center;
    min-width: 80px;
    animation: heroOrbFloat 6s ease-in-out infinite;
}
.lp-stat-float:nth-child(2) { animation-delay: -1.5s; }
.lp-stat-float:nth-child(3) { animation-delay: -3s; }
.lp-stat-float:nth-child(4) { animation-delay: -4.5s; }

.lp-stat-tl { top: 20px;  left: 0; }
.lp-stat-tr { top: 20px;  right: 0; }
.lp-stat-bl { bottom: 20px; left: 0; }
.lp-stat-br { bottom: 20px; right: 0; }

.lp-stat-num { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.lp-stat-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

.lp-cur-strip {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* ═══════════════════════ TRUST BAR ═══════════════════════ */
.lp-trust-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.lp-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}
.lp-trust-item i { font-size: 1rem; }
.lp-trust-sep {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}
@media (max-width: 768px) {
    .lp-trust-item:nth-child(n+6) { display: none; }
    .lp-trust-sep:nth-child(n+5) { display: none; }
}

/* ═══════════════════════ CATEGORY TILES ═══════════════════════ */
.lp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 991px) { .lp-cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .lp-cat-grid { grid-template-columns: 1fr; } }

.lp-cat-tile {
    position: relative;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.22s, box-shadow 0.22s;
    min-height: 180px;
}
.lp-cat-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.14);
    text-decoration: none !important;
}
.lp-cat-blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.lp-cat-green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.lp-cat-amber  { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.lp-cat-violet { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.lp-cat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.lp-cat-blue   .lp-cat-icon { background: #dbeafe; color: #2563eb; }
.lp-cat-green  .lp-cat-icon { background: #dcfce7; color: #16a34a; }
.lp-cat-amber  .lp-cat-icon { background: #fef3c7; color: #d97706; }
.lp-cat-violet .lp-cat-icon { background: #ede9fe; color: #7c3aed; }

.lp-cat-title { font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.lp-cat-desc  { font-size: 0.82rem; color: #475569; line-height: 1.45; }
.lp-cat-cta   {
    font-size: 0.8rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: auto;
}
.lp-cat-blue   .lp-cat-cta { color: #2563eb; }
.lp-cat-green  .lp-cat-cta { color: #16a34a; }
.lp-cat-amber  .lp-cat-cta { color: #d97706; }
.lp-cat-violet .lp-cat-cta { color: #7c3aed; }

.lp-cat-bg-icon {
    position: absolute;
    right: -12px; bottom: -12px;
    font-size: 6rem;
    opacity: 0.07;
    pointer-events: none;
    line-height: 1;
}

/* ═══════════════════════ HOW IT WORKS ═══════════════════════ */
.lp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}
.lp-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 0 12px;
}
.lp-step-connector {
    flex: 0 0 60px;
    padding-top: 36px;
    opacity: 0.5;
}
.lp-step-connector svg { width: 100%; height: auto; }

.lp-step-num {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--s-color, #3b82f6);
    margin-bottom: 8px;
    opacity: 0.7;
}
.lp-step-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--s-color, #3b82f6) 12%, transparent);
    color: var(--s-color, #3b82f6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lp-step:hover .lp-step-icon-wrap {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--s-color, #3b82f6) 30%, transparent);
}
.lp-step-title { font-weight: 700; font-size: 0.95rem; color: #0f172a; margin-bottom: 0.4rem; }
.lp-step-desc  { font-size: 0.8rem; color: #64748b; line-height: 1.55; }

@media (max-width: 767px) {
    .lp-steps { flex-direction: column; align-items: center; }
    .lp-step  { max-width: 100%; }
    .lp-step-connector { display: none; }
}

/* ═══════════════════════ JOB CARDS ═══════════════════════ */
.lp-job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-job-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 28px rgba(59,130,246,0.1);
    transform: translateY(-3px);
}
.lp-job-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.lp-job-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem;
    flex-shrink: 0;
}
.lp-job-meta { flex: 1; min-width: 0; }
.lp-job-employer {
    font-weight: 600; font-size: 0.85rem; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-job-location {
    font-size: 0.75rem; color: #94a3b8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-job-budget {
    font-weight: 800; font-size: 0.9rem;
    white-space: nowrap; flex-shrink: 0;
}
.lp-job-title {
    font-weight: 700; font-size: 0.95rem;
    margin: 0;
    line-height: 1.35;
}
.lp-job-title a { color: #0f172a; text-decoration: none; }
.lp-job-title a:hover { color: var(--primary); }

.lp-job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-tag {
    font-size: 0.72rem; font-weight: 600;
    border-radius: 20px; padding: 2px 10px;
    white-space: nowrap;
}
.lp-tag-open {
    background: rgba(16,185,129,0.1);
    color: #059669;
}
.lp-job-apply-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    transition: gap 0.15s;
    gap: 4px;
}
.lp-job-apply-btn:hover { gap: 8px; color: #2563eb; text-decoration: none; }

/* ═══════════════════════ SERVICE CARDS ═══════════════════════ */
.lp-svc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-svc-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 28px rgba(59,130,246,0.1);
    transform: translateY(-3px);
}
.lp-svc-img-wrap {
    position: relative;
    display: block;
    text-decoration: none;
}
.lp-svc-img-wrap img {
    width: 100%; height: 170px;
    object-fit: cover;
    display: block;
}
.lp-svc-placeholder {
    width: 100%; height: 170px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #94a3b8;
}
.lp-svc-cat-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(15,23,42,0.65);
    color: #fff;
    font-size: 0.68rem; font-weight: 600;
    border-radius: 6px;
    padding: 3px 8px;
    backdrop-filter: blur(6px);
}
.lp-svc-body     { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.lp-svc-provider { font-size: 0.75rem; color: #94a3b8; margin-bottom: 4px; }
.lp-svc-title    { font-weight: 700; font-size: 0.9rem; margin-bottom: auto; line-height: 1.35; }
.lp-svc-title a  { color: #0f172a; text-decoration: none; }
.lp-svc-title a:hover { color: var(--primary); }
.lp-svc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.lp-svc-price {
    font-size: 1.05rem; font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-svc-book-btn {
    font-size: 0.78rem; font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    text-decoration: none !important;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.lp-svc-book-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    box-shadow: 0 4px 14px rgba(59,130,246,0.45);
    transform: translateY(-1px);
}

/* ═══════════════════════ ROLE CARDS ═══════════════════════ */
.lp-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 991px) { .lp-roles-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px)  { .lp-roles-grid { grid-template-columns: 1fr; } }

.lp-role-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-role-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}
.lp-role-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.lp-role-title { font-weight: 800; font-size: 1rem; color: #0f172a; margin-bottom: 6px; }
.lp-role-desc  { font-size: 0.82rem; color: #64748b; line-height: 1.55; margin-bottom: 14px; }
.lp-role-link  {
    font-size: 0.82rem; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
    transition: gap 0.15s;
}
.lp-role-link:hover { gap: 8px; text-decoration: none; }

/* ═══════════════════════ CTA SECTION ═══════════════════════ */
.lp-cta-section {
    background: linear-gradient(-45deg, #0d1f4e, #1e3a8a, #0f172a, #312e81);
    background-size: 300% 300%;
    animation: heroGradient 16s ease infinite;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.lp-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 767px) {
    .lp-cta-inner { grid-template-columns: 1fr; }
    .lp-cta-stats { display: none; }
}
.lp-cta-eyebrow {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 1rem;
}
.lp-cta-h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.lp-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 2rem;
}
.lp-cta-btns   { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-btn-cta-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(245,158,11,0.45);
    transition: all 0.18s;
    text-decoration: none !important;
}
.lp-btn-cta-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.55);
    color: #fff !important;
}
.lp-btn-cta-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85) !important;
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    padding: 11px 22px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.18s;
    text-decoration: none !important;
}
.lp-btn-cta-ghost:hover {
    background: rgba(255,255,255,0.14);
    color: #fff !important;
    border-color: rgba(255,255,255,0.45);
    text-decoration: none !important;
}
.lp-cta-stats  { display: flex; flex-direction: column; gap: 12px; }
.lp-cta-stat   {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 28px;
    text-align: center;
    min-width: 110px;
}
.lp-cta-stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.lp-cta-stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* Shared outline sm button */
.lp-btn-outline-sm {
    font-size: 0.82rem; font-weight: 600;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 6px 16px;
    background: none;
    white-space: nowrap;
    transition: all 0.15s;
    text-decoration: none !important;
}
.lp-btn-outline-sm:hover {
    background: rgba(13,110,253,0.06);
    color: #2563eb !important;
    text-decoration: none !important;
}

/* ── Feature Cards ── */
.feature-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — shared across all role dashboards
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.dash-page {
    background: #f1f5f9;
    min-height: calc(100vh - 56px);
    padding: 2rem 0 3.5rem;
}

/* ── Top banner ──────────────────────────────────────────────────────────── */
.dash-banner {
    border-radius: 20px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dash-banner::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    top: -100px; right: -80px;
    pointer-events: none;
}

.dash-banner-left { flex: 1; }

.dash-banner-greeting {
    font-size: .83rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .3rem;
}

.dash-banner-name {
    font-size: 1.65rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .3rem;
    line-height: 1.2;
}

.dash-banner-sub {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

.dash-banner-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.25);
    flex-shrink: 0;
}

.dash-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 9px 18px;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}

.dash-banner-cta:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* ── KPI stat cards ──────────────────────────────────────────────────────── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-stat {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    transition: box-shadow .2s, transform .2s;
}

.dash-stat:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); transform: translateY(-2px); }

.dash-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dash-stat-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.dash-stat-label {
    font-size: .73rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* ── Quick actions bar ───────────────────────────────────────────────────── */
.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 2rem;
}

.dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 11px;
    padding: 8px 18px;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .12s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.dash-action-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.dash-action-btn.primary { color: #fff; }
.dash-action-btn.outline { background: #fff; border: 1.5px solid #e2e8f0; color: #475569; }
.dash-action-btn.outline:hover { border-color: #94a3b8; color: #0f172a; }

/* ── Two-column body layout ──────────────────────────────────────────────── */
.dash-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .dash-body { grid-template-columns: 1fr; }
}

/* ── Section card ────────────────────────────────────────────────────────── */
.dash-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.dash-card-title {
    font-size: .9rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.dash-card-title i { font-size: 1rem; }

.dash-card-link {
    font-size: .75rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
}
.dash-card-link:hover { text-decoration: underline; }

/* ── Data table inside dash-card ─────────────────────────────────────────── */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.dash-table th {
    text-transform: uppercase;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #94a3b8;
    padding: .65rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.dash-table td {
    padding: .75rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    color: #1e293b;
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: #f8fafc; }

/* ── Activity feed (right sidebar) ──────────────────────────────────────── */
.dash-feed { padding: .25rem 0; }

.dash-feed-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    position: relative;
}

.dash-feed-item:last-child { border-bottom: none; }

.dash-feed-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.dash-feed-body { flex: 1; min-width: 0; }

.dash-feed-title {
    font-size: .82rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-feed-meta {
    font-size: .72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-feed-amount {
    font-size: .85rem;
    font-weight: 800;
    color: #059669;
    flex-shrink: 0;
}

/* ── Profile sidebar card ───────────────────────────────────────────────── */
.dash-profile-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.dash-profile-av {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    margin-bottom: .75rem;
}

.dash-profile-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.dash-profile-location {
    font-size: .77rem;
    color: #94a3b8;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.dash-profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: .75rem;
}

.dash-profile-stars { color: #f59e0b; font-size: .85rem; }
.dash-profile-rating-val { font-size: .78rem; color: #64748b; }

.dash-profile-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1rem;
}

.dash-skill-chip {
    font-size: .68rem;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 9px;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.ds-badge {
    display: inline-flex;
    align-items: center;
    font-size: .69rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}

.ds-badge-success  { background: #d1fae5; color: #065f46; }
.ds-badge-warning  { background: #fef3c7; color: #92400e; }
.ds-badge-danger   { background: #fee2e2; color: #991b1b; }
.ds-badge-info     { background: #dbeafe; color: #1e40af; }
.ds-badge-secondary{ background: #f1f5f9; color: #475569; }
.ds-badge-primary  { background: #eff6ff; color: #1d4ed8; }

/* ── Empty states ────────────────────────────────────────────────────────── */
.dash-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #94a3b8;
}
.dash-empty i { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.dash-empty strong { display: block; color: #475569; font-size: .9rem; margin-bottom: .4rem; }
.dash-empty a { color: #3b82f6; font-size: .83rem; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.dash-progress-wrap { margin-top: .35rem; }
.dash-progress-bar {
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}
.dash-progress-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .dash-banner { padding: 1.25rem 1.25rem; }
    .dash-banner-name { font-size: 1.35rem; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-body  { grid-template-columns: 1fr; }
}

/* ── Stat-card (legacy — keep for any un-migrated pages) ── */
.stat-card {
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ── Listings ── */
.listing-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.listing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(13,110,253,0.1);
}

.listing-card img {
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* ── Badges ── */
.badge-role {
    border-radius: 20px;
    font-size: 0.75rem;
    padding: 4px 10px;
    text-transform: capitalize;
}

/* ── Rating Stars ── */
.stars { color: var(--accent); }

/* ── Filter Sidebar ── */
.filter-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

/* ── Chat / Messages ── */
.conversation-list .convo-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.conversation-list .convo-item:hover,
.conversation-list .convo-item.active {
    background: #eff6ff;
}

.chat-bubble {
    max-width: 68%;
    border-radius: 18px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.chat-bubble.sent {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-bubble.received {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

/* ── Alerts / Flash ── */
.flash-container {
    position: fixed;
    top: 72px;
    right: 1.5rem;
    z-index: 1055;
    min-width: 280px;
}

/* ── Avatar ── */
.avatar-sm {
    width:  36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width:  72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width:  120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Pagination ── */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
}

/* ── Admin sidebar ── */
:root {
    --sidebar-w: 220px;
    --sidebar-bg: #0f172a;
    --sidebar-border: rgba(255,255,255,0.06);
    --sidebar-text: #94a3b8;
    --sidebar-hover-bg: rgba(255,255,255,0.06);
    --sidebar-active-bg: rgba(59,130,246,0.18);
    --sidebar-active-text: #93c5fd;
    --sidebar-label: #475569;
}

.admin-sidebar {
    width: var(--sidebar-w);
    min-height: calc(100vh - 56px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

/* Brand strip */
.admin-sidebar-brand {
    padding: 1.1rem 1rem 0.9rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}
.admin-brand-text {
    font-size: 0.9rem;
    color: #e2e8f0;
    letter-spacing: -0.3px;
}
.admin-brand-text strong { color: #fff; }
.admin-panel-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(59,130,246,0.25);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.35);
    border-radius: 4px;
    padding: 2px 6px;
    flex-shrink: 0;
}

/* Nav body */
.admin-nav-body {
    flex: 1;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}
.admin-nav-group {
    margin-bottom: 0.25rem;
}
.admin-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sidebar-label);
    padding: 0.6rem 0.6rem 0.25rem;
    user-select: none;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.75rem;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.admin-nav-link i {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.8;
    width: 18px;
    text-align: center;
}
.admin-nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: #e2e8f0;
    text-decoration: none;
}
.admin-nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}
.admin-nav-link.active i { opacity: 1; }
.admin-nav-link.text-danger-soft { color: #f87171; }
.admin-nav-link.text-danger-soft:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

/* Report badge pill inside nav link */
.admin-badge-pill {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* Footer user strip */
.admin-sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.admin-footer-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-footer-role {
    font-size: 0.68rem;
    color: var(--sidebar-label);
}
.avatar-xs {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.15);
}

/* Admin layout wrapper */
.admin-layout {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 56px);
}
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 2rem 2rem 3rem;
}
@media (max-width: 767px) {
    .admin-main { padding: 1.25rem 1rem; }
}

/* ── Misc ── */
.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.rounded-pill-sm {
    border-radius: 20px;
    font-size: 0.78rem;
    padding: 3px 10px;
}

/* ════════════════════════════════════════════
   Navbar v2 — Glass, scroll-aware, animated
   ════════════════════════════════════════════ */

/* ── Base glass navbar ── */
.navbar-glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.7);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar-glass.navbar--scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 28px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

/* ── Nav pill links ── */
.nav-pill-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569 !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none !important;
}
.nav-pill-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #4f46e5);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.22s ease;
}
.nav-pill-link:hover {
    color: #0f172a !important;
    background: rgba(241,245,249,0.9);
    text-decoration: none !important;
}
.nav-pill-link:hover::after      { width: calc(100% - 1.8rem); }
.nav-pill-link.nav-active        { color: var(--primary) !important; font-weight: 600; }
.nav-pill-link.nav-active::after { width: calc(100% - 1.8rem); }
/* Suppress Bootstrap's default caret; use explicit <i> icon instead */
.nav-pill-link.dropdown-toggle::after { content: none; }

/* ── Browse mega-dropdown ── */
.nav-browse-menu {
    min-width: 400px;
    border: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
    border-radius: 16px;
    border-top: 3px solid #3b82f6;
    animation: dropFadeIn 0.18s ease;
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-browse-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 8px 4px;
}
.nav-browse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.browse-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: background 0.15s, transform 0.15s;
}
.browse-card:hover {
    background: #f8fafc;
    transform: translateX(2px);
    text-decoration: none !important;
}
.browse-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.browse-title { font-weight: 600; font-size: 0.875rem; line-height: 1.2; }
.browse-sub   { font-size: 0.73rem; color: #94a3b8; margin-top: 2px; }

/* ── Currency pill ── */
.nav-currency-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569 !important;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.nav-currency-pill:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    border-color: #94a3b8;
    box-shadow: none;
}
.nav-currency-pill.dropdown-toggle::after { display: none; }
.nav-cur-symbol { font-size: 0.9rem; }

/* ── Messages icon button ── */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #475569;
    font-size: 1.1rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
    flex-shrink: 0;
}
.nav-icon-btn:hover,
.nav-icon-btn.active {
    background: #eff6ff;
    color: var(--primary);
}

/* ── CTA gradient buttons ── */
.nav-cta-btn {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    box-shadow: 0 2px 10px rgba(59,130,246,0.35);
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.5;
}
.nav-cta-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    box-shadow: 0 4px 18px rgba(59,130,246,0.5);
    transform: translateY(-1px);
    color: #fff !important;
}
.nav-admin-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    box-shadow: 0 2px 10px rgba(239,68,68,0.3);
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.5;
}
.nav-admin-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 16px rgba(239,68,68,0.42);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Avatar dropdown trigger ── */
.nav-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 3px 6px 3px 2px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.nav-avatar-btn:hover  { background: #f1f5f9; }
.nav-avatar-btn::after { display: none; }
.nav-avatar-img {
    border: 2px solid #e2e8f0;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.nav-avatar-btn:hover .nav-avatar-img {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.nav-username {
    font-size: 0.855rem;
    font-weight: 600;
    color: #1e293b;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Avatar dropdown menu ── */
.nav-dropdown-menu {
    min-width: 230px;
    border: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    animation: dropFadeIn 0.18s ease;
}
.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}
.nav-dd-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-dd-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.nav-dd-role {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border-radius: 4px;
    padding: 1px 7px;
    text-transform: capitalize;
    letter-spacing: 0.03em;
}
.nav-dropdown-menu .dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    transition: background 0.12s;
}
.nav-dropdown-menu .dropdown-item i { width: 16px; text-align: center; }
.nav-dropdown-menu .dropdown-divider { margin: 4px 0; }

/* ── Guest buttons ── */
.nav-login-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 16px;
    background: none;
    transition: all 0.15s;
    text-decoration: none !important;
    line-height: 1.5;
}
.nav-login-btn:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: rgba(59,130,246,0.04);
}
.nav-register-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border: none;
    border-radius: 8px;
    padding: 5px 16px;
    box-shadow: 0 2px 10px rgba(59,130,246,0.3);
    transition: all 0.18s;
    text-decoration: none !important;
    line-height: 1.5;
}
.nav-register-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.45);
}

/* ── Dropdown chevron animation ── */
.nav-chevron {
    font-size: 0.65rem;
    transition: transform 0.22s ease;
    opacity: 0.55;
}
.dropdown.show > .nav-pill-link .nav-chevron,
.dropdown.show > .nav-avatar-btn .nav-chevron { transform: rotate(180deg); }

/* ── Animated hamburger ── */
.navbar-toggler-custom {
    border: none;
    background: none;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}
.navbar-toggler-custom:hover { background: #f1f5f9; }
.navbar-toggler-custom:focus { outline: none; box-shadow: none; }
.toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}
.navbar-toggler-custom[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler-custom[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler-custom[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ── */
@media (max-width: 991.98px) {
    .nav-browse-menu {
        min-width: auto;
        border-top: none;
        box-shadow: none;
        border-radius: 8px;
        animation: none;
        padding: 0.25rem 0 !important;
    }
    .nav-browse-grid  { grid-template-columns: 1fr; gap: 2px; }
    .nav-browse-label { display: none; }
    #mainNav .d-flex  {
        flex-direction: column;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100%;
        padding: 0.5rem 0 0.75rem;
    }
    .nav-currency-pill { border-radius: 8px; width: 100%; justify-content: center; }
    .nav-icon-btn {
        width: auto;
        height: auto;
        border-radius: 8px;
        padding: 0.45rem 0.75rem;
        justify-content: flex-start;
        gap: 8px;
    }
    .nav-icon-btn::before { content: 'Messages'; font-size: 0.875rem; font-weight: 500; }
    .nav-cta-btn, .nav-admin-btn, .nav-login-btn, .nav-register-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
    .nav-avatar-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        padding: 0.45rem 0.75rem;
    }
    .nav-avatar-btn .nav-username { display: inline !important; }
    .nav-avatar-btn .nav-chevron  { display: inline !important; margin-left: auto; }
    .nav-dropdown-menu {
        position: static !important;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        margin-top: 4px !important;
        animation: none;
    }
    .nav-pill-link { border-radius: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT APPLICATION
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Full-page wrapper ────────────────────────────────────────────────────── */
.chat-app-wrapper {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
    background: #f8fafc;
}

/* Override Bootstrap py-4 on <main> when chat page is active */
body:has(.chat-app-wrapper) main {
    padding: 0 !important;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.chat-sidebar {
    width: 320px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.chat-sidebar-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

.chat-badge-total {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.chat-new-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    font-size: .9rem;
}

.chat-new-btn:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.chat-search-wrap {
    position: relative;
    padding: .6rem .75rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.chat-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

.chat-search-inp {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 10px 7px 30px;
    font-size: .8rem;
    background: #f8fafc;
    outline: none;
    transition: border-color .15s;
}

.chat-search-inp:focus {
    border-color: #3b82f6;
    background: #fff;
}

.chat-conv-list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background .12s;
    cursor: pointer;
}

.conv-item:hover,
.conv-item-active {
    background: #eff6ff;
    text-decoration: none;
}

.conv-av-wrap {
    position: relative;
    flex-shrink: 0;
}

.conv-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.conv-presence {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #d1d5db;
}

.conv-presence.online { background: #22c55e; }

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-name {
    font-weight: 500;
    font-size: .875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-name.unread {
    font-weight: 700;
    color: #0f172a;
}

.conv-time {
    font-size: .68rem;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 4px;
}

.conv-preview {
    font-size: .78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.conv-preview.unread {
    color: #475569;
    font-weight: 600;
}

.conv-unread-dot {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #3b82f6;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    margin-left: 4px;
}

/* ── Main panel ───────────────────────────────────────────────────────────── */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

.chat-main-empty {
    align-items: center;
    justify-content: center;
}

.chat-welcome {
    text-align: center;
    color: #94a3b8;
}

.chat-welcome-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

/* ── Chat header ─────────────────────────────────────────────────────────── */
.chat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    min-height: 60px;
}

.chat-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #475569;
    text-decoration: none;
    transition: background .15s;
    flex-shrink: 0;
}

.chat-back-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.chat-header-av-wrap {
    position: relative;
    flex-shrink: 0;
}

.chat-header-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-presence {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #d1d5db;
}

.chat-header-presence.online { background: #22c55e; }

.chat-header-info {
    min-width: 0;
}

.chat-header-name {
    font-weight: 700;
    font-size: .9rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-sub {
    font-size: .73rem;
    color: #94a3b8;
}

.chat-header-sub.typing-pulse {
    color: #3b82f6;
    animation: typePulse 1s infinite;
}

@keyframes typePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.chat-hdr-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    text-decoration: none;
}

.chat-hdr-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ── Message area ─────────────────────────────────────────────────────────── */
.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    scroll-behavior: smooth;
    position: relative;
    overscroll-behavior: contain;
}

.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-msg-row.mine {
    flex-direction: row-reverse;
}

.chat-msg-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 18px;
}

.chat-msg-wrap {
    max-width: 68%;
    display: flex;
    flex-direction: column;
}

.chat-msg-row.mine .chat-msg-wrap {
    align-items: flex-end;
}

.chat-bubble-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-msg-row.mine .chat-bubble-wrap {
    flex-direction: row-reverse;
}

.chat-bubble {
    padding: .6rem .875rem;
    border-radius: 18px;
    position: relative;
    word-break: break-word;
}

.chat-msg-row.theirs .chat-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    color: #1e293b;
}

.chat-msg-row.mine .chat-bubble {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-text {
    font-size: .875rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.chat-msg-time {
    font-size: .65rem;
    color: #94a3b8;
}

.chat-tick {
    font-size: .8rem;
    color: #94a3b8;
    line-height: 1;
}

.chat-tick.read { color: #3b82f6; }

.chat-msg-row.sending { opacity: .6; }

.chat-msg-row.send-error .chat-bubble {
    border: 1px solid #ef4444;
}

/* ── Reactions ────────────────────────────────────────────────────────────── */
.chat-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.chat-react-chip {
    font-size: .78rem;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    padding: 2px 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: background .12s;
}

.chat-react-chip:hover { background: rgba(0,0,0,.1); }

.chat-react-chip span {
    font-size: .7rem;
    color: #475569;
}

.chat-react-trigger {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #94a3b8;
    opacity: 0;
    cursor: pointer;
    font-size: .85rem;
    transition: opacity .15s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-bubble-wrap:hover .chat-react-trigger { opacity: 1; }

.chat-emoji-picker {
    position: absolute;
    z-index: 200;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 220px;
}

.emoji-btn {
    border: none;
    background: none;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 3px 5px;
    transition: background .12s;
}

.emoji-btn:hover { background: #f1f5f9; }

/* ── Typing bubble ───────────────────────────────────────────────────────── */
.chat-typing-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-typing-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.chat-typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typingDot 1.2s infinite;
    display: inline-block;
}

.chat-typing-bubble span:nth-child(2) { animation-delay: .2s; }
.chat-typing-bubble span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-5px); }
}

/* ── Thread empty state ──────────────────────────────────────────────────── */
.chat-thread-empty {
    text-align: center;
    margin: auto;
    color: #94a3b8;
    padding: 2rem 1rem;
}

.chat-thread-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .75rem;
}

/* ── Compose bar ─────────────────────────────────────────────────────────── */
.chat-compose {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: .75rem 1rem;
    flex-shrink: 0;
}

.chat-compose-inner {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-compose-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.chat-compose-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 14px;
    font-size: .875rem;
    resize: none;
    min-height: 38px;
    max-height: 140px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #f8fafc;
    font-family: inherit;
    line-height: 1.5;
}

.chat-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff;
    border-radius: 50%;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59,130,246,.3);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(59,130,246,.45);
}

.chat-send-btn:disabled {
    opacity: .5;
    transform: none;
    cursor: not-allowed;
}

.chat-input-hint {
    font-size: .7rem;
    color: #94a3b8;
    text-align: right;
    min-height: 16px;
    margin-top: 4px;
}

/* ── Empty / welcome state ───────────────────────────────────────────────── */
.chat-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.chat-empty-state i {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block;
}

/* ── Scrollbar styling (webkit) ──────────────────────────────────────────── */
.chat-conv-list::-webkit-scrollbar,
.chat-messages-area::-webkit-scrollbar {
    width: 4px;
}

.chat-conv-list::-webkit-scrollbar-track,
.chat-messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-conv-list::-webkit-scrollbar-thumb,
.chat-messages-area::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .chat-sidebar {
        width: 100%;
        position: absolute;
        inset: 0;
        z-index: 10;
    }

    .chat-app-wrapper.in-conversation .chat-sidebar {
        display: none;
    }

    .chat-app-wrapper.in-conversation .chat-main {
        display: flex;
        width: 100%;
    }

    .chat-main {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROWSE PAGES — Jobs / Goods / Services / Talent
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero banner ─────────────────────────────────────────────────────────── */
.browse-hero {
    padding: 3.5rem 0 2.8rem;
    position: relative;
    overflow: hidden;
}

.browse-hero-inner {
    position: relative;
    z-index: 1;
}

.browse-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}

.browse-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .85rem;
    letter-spacing: -.5px;
}

.browse-hero-sub {
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Hero inline search ───────────────────────────────────────────────────  */
.browse-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    max-width: 600px;
}

.browse-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 14px;
    font-size: .95rem;
    background: transparent;
}

.browse-search-bar button {
    flex-shrink: 0;
    border: none;
    padding: 13px 22px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    color: #fff;
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
}

.browse-search-bar button:hover { opacity: .9; }

/* ── Hero stats strip ────────────────────────────────────────────────────── */
.browse-stats {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.browse-stat-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.82);
    font-size: .83rem;
}

.browse-stat-item i    { font-size: .9rem; }
.browse-stat-item strong { color: #fff; font-weight: 800; }

/* ── Page body ───────────────────────────────────────────────────────────── */
.browse-page-body {
    padding: 2rem 0 3.5rem;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.browse-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.browse-sidebar {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
}

.browse-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.browse-sidebar-head {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browse-sidebar-head-title {
    font-weight: 700;
    font-size: .85rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.browse-clear-link {
    font-size: .75rem;
    color: #3b82f6;
    text-decoration: none;
}

.browse-clear-link:hover { text-decoration: underline; }

.browse-filter-section {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid #f8fafc;
}

.browse-filter-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: .5rem;
}

.browse-filter-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 11px 7px 30px;
    font-size: .83rem;
    background: #f8fafc;
    outline: none;
    transition: border-color .15s, background .15s;
}

.browse-filter-input:focus { border-color: #3b82f6; background: #fff; }

.browse-filter-input-plain {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: .83rem;
    background: #f8fafc;
    outline: none;
    transition: border-color .15s, background .15s;
}

.browse-filter-input-plain:focus { border-color: #3b82f6; background: #fff; }

.browse-filter-select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: .83rem;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.browse-filter-select:focus { border-color: #3b82f6; background: #fff; }

.browse-filter-row { display: flex; gap: 6px; }

.browse-apply-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: opacity .15s, transform .12s;
    text-align: center;
    letter-spacing: .01em;
}

.browse-apply-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Results area ────────────────────────────────────────────────────────── */
.browse-results {
    flex: 1;
    min-width: 0;
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: .75rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: .875rem;
    color: #475569;
}

.results-count strong { color: #0f172a; font-weight: 800; }

.results-bar-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.browse-sort-select {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 5px 10px;
    font-size: .8rem;
    background: #fff;
    color: #475569;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}

.browse-sort-select:focus { border-color: #3b82f6; }

/* ── Active filter pills ─────────────────────────────────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .9rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    text-decoration: none;
    transition: background .12s;
}

.filter-pill:hover { background: #dbeafe; text-decoration: none; }

.pill-remove {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(29,78,216,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    margin-left: 2px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   JOB CARDS
   ═══════════════════════════════════════════════════════ */
.job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.2rem 1.35rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #4f46e5);
    opacity: 0;
    transition: opacity .2s;
    border-radius: 4px 0 0 4px;
}

.job-card:hover {
    box-shadow: 0 8px 28px rgba(59,130,246,.1);
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.job-card:hover::before { opacity: 1; }

.job-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.5px;
}

.job-card-body { flex: 1; min-width: 0; }

.job-card-title {
    font-size: .96rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-card-employer {
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .55rem;
}

.job-card-excerpt {
    font-size: .81rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.job-tag {
    font-size: .7rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 9px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.job-tag-cat { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.job-tag-loc { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.job-card-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
    min-width: 100px;
}

.job-budget {
    font-size: 1.08rem;
    font-weight: 900;
    color: #059669;
    white-space: nowrap;
}

.job-budget-label { font-size: .65rem; color: #94a3b8; }

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    border-radius: 9px;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .12s;
    white-space: nowrap;
    color: #fff;
}

.job-apply-btn:hover { opacity: .9; transform: scale(1.03); color: #fff; text-decoration: none; }

.job-date { font-size: .65rem; color: #94a3b8; }

/* ═══════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════ */
.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 28px rgba(16,185,129,.12);
    transform: translateY(-3px);
}

.product-card-img {
    height: 188px;
    object-fit: cover;
    width: 100%;
}

.product-card-img-placeholder {
    height: 188px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 2.5rem;
}

.product-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-seller {
    font-size: .73rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
}

.product-title {
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: #059669; }

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: .55rem;
}

.product-stars { color: #f59e0b; font-size: .78rem; }
.product-rating-val { font-size: .73rem; color: #64748b; }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid #f1f5f9;
}

.product-price { font-size: 1.05rem; font-weight: 900; color: #059669; }

.product-view-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
    display: inline-block;
}

.product-view-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

.product-stock-badge {
    font-size: .64rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.product-stock-ok  { background: #d1fae5; color: #065f46; }
.product-stock-low { background: #fef3c7; color: #92400e; }
.product-stock-out { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════════════ */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 8px 28px rgba(245,158,11,.14);
    transform: translateY(-3px);
}

.service-card-img-wrap {
    position: relative;
    height: 176px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   Auth Pages — Login / Register (split-panel layout)
══════════════════════════════════════════════════════ */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 62px);
}
@media (max-width: 991px) {
    .auth-wrap { grid-template-columns: 1fr; }
}

/* ── Left decorative panel ── */
.auth-panel-left {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 45%, #4338ca 100%);
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-panel-left::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(99,102,241,0.45) 0%, transparent 70%);
    top: -180px; right: -160px;
    pointer-events: none;
}
.auth-panel-left::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(14,165,233,0.3) 0%, transparent 70%);
    bottom: -120px; left: -100px;
    pointer-events: none;
}
.auth-panel-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}
.auth-brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.auth-brand-text strong { color: #fde68a; }
.auth-brand-text .brand-suffix-auth { color: rgba(255,255,255,0.45); font-weight: 400; font-size: 1.1rem; }

.auth-panel-h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
}
.auth-panel-sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 360px;
}
.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
}
.auth-benefits li i {
    color: #86efac;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.auth-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 18px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    text-align: center;
    flex: 1;
    min-width: 72px;
    transition: background 0.2s;
}
.auth-stat:hover { background: rgba(255,255,255,0.12); }
.auth-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fde68a;
    line-height: 1;
}
.auth-stat-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ── Right form panel ── */
.auth-panel-right {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
    overflow-y: auto;
}
.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}
.auth-form-wrap .auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
    letter-spacing: -0.4px;
}
.auth-form-wrap .auth-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
/* Inputs */
.auth-form-wrap .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.auth-input-group {
    position: relative;
}
.auth-input-group .form-control {
    padding-left: 42px;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 5;
}
.auth-form-wrap .form-control,
.auth-form-wrap .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.92rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.auth-form-wrap .form-control:focus,
.auth-form-wrap .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    background: #fff;
    outline: none;
}
.auth-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    z-index: 5;
    line-height: 1;
    transition: color 0.15s;
}
.auth-pass-toggle:hover { color: #3b82f6; }

.btn-auth-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(59,130,246,0.32);
    width: 100%;
}
.btn-auth-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 6px 22px rgba(59,130,246,0.48);
    transform: translateY(-1px);
    color: #fff;
}
.btn-auth-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }

.auth-alt-link {
    text-align: center;
    margin-top: 1.1rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #64748b;
}
.auth-alt-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}
.auth-alt-link a:hover { text-decoration: underline; }

/* Mobile logo for auth */
.auth-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.auth-mobile-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}
.auth-mobile-logo-text strong { color: #3b82f6; }

/* ── Role selector cards ── */
.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
    .role-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
.role-card-input { display: none; }
.role-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    gap: 6px;
    height: 100%;
}
.role-card-label:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
    transform: translateY(-1px);
}
.role-card-input:checked + .role-card-label {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14), 0 2px 12px rgba(59,130,246,0.15);
}
.role-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s;
}
.role-card-input:checked + .role-card-label .role-card-icon { transform: scale(1.1); }
.role-card-title {
    font-weight: 700;
    font-size: 0.78rem;
    color: #1e293b;
    line-height: 1.2;
}
.role-card-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Password strength meter */
.pw-strength-track {
    display: flex;
    gap: 3px;
    margin-top: 7px;
}
.pw-strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    transition: background 0.3s;
}
.pw-strength-text {
    font-size: 0.74rem;
    margin-top: 5px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   Profile Edit Page
══════════════════════════════════════════════════════ */
.profile-edit-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Banner */
.profile-edit-banner {
    height: 160px;
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 50%, #7c3aed 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.profile-edit-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 25% 60%, rgba(99,102,241,0.55) 0%, transparent 65%),
                radial-gradient(ellipse at 80% 25%, rgba(14,165,233,0.4) 0%, transparent 55%);
}
.profile-edit-banner-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Avatar card (above fold) */
.profile-identity-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8edf2;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
@media (max-width: 575px) {
    .profile-identity-card { flex-direction: column; text-align: center; margin-top: -40px; }
}

.profile-av-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.profile-av-wrap img {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    object-fit: cover;
    display: block;
}
.profile-av-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15,23,42,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
}
.profile-av-wrap:hover .profile-av-overlay { opacity: 1; }

.profile-identity-info { flex: 1; min-width: 0; }
.profile-identity-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.profile-identity-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}
.profile-identity-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.profile-identity-meta span { display: flex; align-items: center; gap: 4px; }

/* Section cards */
.profile-section-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.profile-section-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfd;
}
.profile-section-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.profile-section-hd-text { flex: 1; }
.profile-section-hd-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.profile-section-hd-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}
.profile-section-body { padding: 22px 24px; }

/* Profile form controls */
.profile-form-control {
    display: block;
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    font-family: inherit;
    line-height: 1.5;
}
.profile-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    background: #fff;
    outline: none;
}
.profile-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.01em;
}
.profile-label .opt-tag {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Skill badge pills */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-badge-check { display: none; }
.skill-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    background: #f8fafc;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.4;
}
.skill-badge-label:hover {
    border-color: #93c5fd;
    color: #3b82f6;
    background: #eff6ff;
}
.skill-badge-check:checked + .skill-badge-label {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.28);
}

/* Save button */
.btn-profile-save {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 28px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    box-shadow: 0 3px 14px rgba(59,130,246,0.3);
}
.btn-profile-save:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 5px 20px rgba(59,130,246,0.42);
    transform: translateY(-1px);
    color: #fff;
}
.btn-profile-save:active { transform: none; }

/* Input with prefix icon */
.profile-input-wrap { position: relative; }
.profile-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}
.profile-input-wrap .profile-form-control { padding-left: 36px; }

/* ══════════════════════════════════════════════════════
   Search Page
══════════════════════════════════════════════════════ */

/* ── Hero bar ── */
.srch-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
    padding: 52px 0 0;
    position: relative;
    overflow: hidden;
}
.srch-hero::before {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 65%);
    top: -220px; right: -160px;
    pointer-events: none;
}
.srch-hero::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(14,165,233,0.28) 0%, transparent 60%);
    bottom: 0; left: -80px;
    pointer-events: none;
}
.srch-hero-inner { position: relative; z-index: 2; }

.srch-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253,230,138,0.9);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 1rem;
}
.srch-hero-h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.srch-hero-h1 span {
    background: linear-gradient(90deg, #93c5fd, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.srch-hero-sub {
    color: rgba(255,255,255,0.58);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Big search bar */
.srch-bar-wrap {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    max-width: 680px;
}
.srch-bar-icon { color: #94a3b8; font-size: 1.1rem; flex-shrink: 0; }
.srch-bar-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    min-width: 0;
    line-height: 1;
    padding: 6px 0;
}
.srch-bar-input::placeholder { color: #94a3b8; }
.srch-bar-btn {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 24px;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.srch-bar-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    box-shadow: 0 4px 16px rgba(59,130,246,0.45);
}

/* Suggestion chips */
.srch-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.9rem;
    padding-bottom: 1.4rem;
}
.srch-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.78);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
}
.srch-chip:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}

/* Filter tabs bar */
.srch-tabs-bar {
    background: #fff;
    border-bottom: 1px solid #e8edf4;
    position: sticky;
    top: 62px;
    z-index: 50;
}
.srch-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.srch-tabs::-webkit-scrollbar { display: none; }
.srch-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
}
.srch-tab-link:hover { color: #3b82f6; text-decoration: none; }
.srch-tab-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}
.srch-tab-count {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.7;
    transition: all 0.18s;
}
.srch-tab-link.active .srch-tab-count,
.srch-tab-link:hover .srch-tab-count {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

/* Results area */
.srch-results-wrap { padding: 2rem 0 3rem; }

.srch-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.srch-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.srch-section-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}
.srch-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.srch-view-all:hover { text-decoration: underline; color: #2563eb; }

/* Job result card */
.srch-job-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.srch-job-card:hover {
    box-shadow: 0 6px 24px rgba(59,130,246,0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    border-color: #bfdbfe;
}
.srch-job-logo {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3b82f6;
    flex-shrink: 0;
}
.srch-job-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
}
.srch-job-by {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}
.srch-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.srch-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.8;
}
.srch-pill-blue  { background: rgba(59,130,246,0.1);  color: #2563eb; }
.srch-pill-green { background: rgba(16,185,129,0.1);  color: #059669; }
.srch-pill-gray  { background: #f1f5f9; color: #64748b; }
.srch-job-budget {
    margin-left: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product / Service card */
.srch-product-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.srch-product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #bfdbfe;
}
.srch-product-img {
    height: 150px;
    object-fit: cover;
    width: 100%;
    display: block;
}
.srch-product-ph {
    height: 150px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #cbd5e1;
}
.srch-product-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.srch-product-seller { font-size: 0.72rem; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.srch-product-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    flex: 1;
}
.srch-product-title a { color: inherit; text-decoration: none; }
.srch-product-title a:hover { color: #3b82f6; }
.srch-product-price { font-size: 0.9rem; font-weight: 800; color: #3b82f6; }
.srch-product-from { font-size: 0.72rem; color: #94a3b8; font-weight: 500; margin-right: 2px; }

/* Talent card */
.srch-talent-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.srch-talent-card:hover {
    box-shadow: 0 6px 24px rgba(139,92,246,0.12);
    transform: translateY(-2px);
    border-color: #ddd6fe;
}
.srch-talent-av {
    width: 68px; height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    margin-bottom: 10px;
    display: block;
}
.srch-talent-name { font-size: 0.9rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.srch-talent-loc  { font-size: 0.75rem; color: #94a3b8; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.srch-talent-stars { display: flex; align-items: center; justify-content: center; gap: 2px; color: #f59e0b; font-size: 0.75rem; margin-bottom: 6px; }
.srch-talent-skills { font-size: 0.72rem; color: #64748b; line-height: 1.5; flex: 1; margin-bottom: 10px; }
.srch-talent-msg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    color: #3b82f6;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s;
}
.srch-talent-msg:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    text-decoration: none;
}

/* Result meta banner */
.srch-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 10px 0 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.srch-meta-text { font-size: 0.875rem; color: #64748b; }
.srch-meta-text strong { color: #0f172a; }

/* Empty / no-query states */
.srch-empty {
    text-align: center;
    padding: 60px 20px;
}
.srch-empty-icon {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    margin: 0 auto 1.25rem;
}
.srch-empty h4 { font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; font-size: 1.1rem; }
.srch-empty p  { color: #64748b; font-size: 0.88rem; max-width: 340px; margin: 0 auto 1.25rem; }

/* Landing (no query) feature tiles */
.srch-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 768px) { .srch-feature-grid { grid-template-columns: repeat(4,1fr); } }
.srch-feature-tile {
    padding: 22px 16px;
    border-radius: 16px;
    border: 1px solid #e8edf4;
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.srch-feature-tile:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    text-decoration: none;
    border-color: #bfdbfe;
}
.srch-feature-tile-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.srch-feature-tile-title { font-weight: 700; font-size: 0.9rem; color: #0f172a; }
.srch-feature-tile-sub   { font-size: 0.75rem; color: #94a3b8; }

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 2.5rem;
}

.service-card-overlay {
    position: absolute;
    top: .65rem;
    left: .65rem;
    right: .65rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-cat-badge {
    font-size: .68rem;
    font-weight: 700;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: 20px;
    padding: 3px 9px;
}

.service-price-badge {
    font-size: .78rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    box-shadow: 0 2px 8px rgba(217,119,6,.35);
}

.service-provider-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.service-provider-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.7);
    background: #e2e8f0;
    flex-shrink: 0;
}

.service-provider-strip-name {
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-body {
    padding: .85rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-title {
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.service-title a { color: inherit; text-decoration: none; }
.service-title a:hover { color: #d97706; }

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .55rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.service-stars { color: #f59e0b; font-size: .8rem; }
.service-rating-val { font-size: .73rem; color: #64748b; }

.service-book-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
    display: inline-block;
}

.service-book-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   TALENT CARDS
   ═══════════════════════════════════════════════════════ */
.talent-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.3rem 1.2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.talent-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    opacity: 0;
    transition: opacity .2s;
}

.talent-card:hover {
    box-shadow: 0 8px 28px rgba(139,92,246,.12);
    transform: translateY(-2px);
}

.talent-card:hover::after { opacity: 1; }

.talent-card-top {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .75rem;
}

.talent-avatar-wrap { position: relative; flex-shrink: 0; }

.talent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.talent-name {
    font-size: .96rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
    line-height: 1.2;
}

.talent-location {
    font-size: .76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: .3rem;
}

.talent-rating-row { display: flex; align-items: center; gap: 4px; }
.talent-stars { color: #f59e0b; font-size: .8rem; }
.talent-rating-val { font-size: .76rem; color: #64748b; }

.talent-bio {
    font-size: .81rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.talent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: .85rem;
}

.talent-skill-chip {
    font-size: .7rem;
    font-weight: 600;
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    padding: 2px 9px;
}

.talent-footer {
    display: flex;
    gap: .5rem;
    margin-top: auto;
}

.talent-msg-btn {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: opacity .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.talent-msg-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

.talent-profile-btn {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background .15s;
    white-space: nowrap;
}

.talent-profile-btn:hover { background: #ede9fe; color: #7c3aed; text-decoration: none; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.browse-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.browse-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.browse-empty h5 { color: #475569; font-weight: 700; margin-bottom: .5rem; }
.browse-empty p { font-size: .9rem; margin: 0; }
.browse-empty a { color: #3b82f6; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.browse-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.browse-page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: .83rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .15s;
    padding: 0 10px;
    cursor: pointer;
}

.browse-page-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
}

.browse-page-btn.active {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border-color: transparent;
    color: #fff;
}

.browse-page-btn.disabled {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}

/* ── Browse page responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .browse-hero-title { font-size: 2rem; }
    .browse-layout { flex-direction: column; }
    .browse-sidebar { width: 100%; position: static; }
}

@media (max-width: 575.98px) {
    .browse-hero { padding: 2.2rem 0 1.8rem; }
    .browse-hero-title { font-size: 1.7rem; }
    .browse-stats { gap: 1rem; }
    .job-card { flex-direction: column; gap: .75rem; }
    .job-card-right { text-align: left; align-items: flex-start; min-width: unset; }
}
