/* ================================================================
   SOL PLATFORM — MAIN STYLESHEET
   Black & White Editorial Design
   Font: Bebas Neue (display) + DM Sans (body)
================================================================ */

:root {
  --black:   #000000;
  --white:   #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f5f5f5;
  --gray-200:#e8e8e8;
  --gray-300:#d4d4d4;
  --gray-400:#a0a0a0;
  --gray-500:#737373;
  --gray-600:#525252;
  --gray-700:#404040;
  --gray-800:#262626;
  --gray-900:#171717;
  --accent:  #000000;
  --danger:  #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --info:    #2563eb;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --sidebar-w: 260px;
  --topbar-h:  64px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --transition:.2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
.display-font { font-family: var(--font-display); letter-spacing: .02em; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); display: block; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-family: var(--font-display); line-height: 1.1; }
.brand-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .08em; color: var(--white) !important; }
.brand-logo-lg { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: .1em; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar { background: var(--gray-900); color: var(--white); text-align: center; padding: .5rem 1rem; font-size: .85rem; position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; }
.announcement-icon { color: #fbbf24; }
.announcement-close { position: absolute; right: 1rem; background: none; border: none; color: var(--white); font-size: 1.1rem; cursor: pointer; opacity: .7; }
.announcement-close:hover { opacity: 1; }

/* ── NAVBAR ── */
.navbar { border-bottom: 1px solid var(--gray-800); padding: .75rem 0; }
.navbar-nav .nav-link { font-size: .9rem; font-weight: 500; padding: .4rem .85rem; border-radius: 4px; transition: var(--transition); color: var(--gray-300) !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--white) !important; background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--black); border: 1px solid var(--white); font-size: .85rem; font-weight: 600; }
.btn-white:hover { background: var(--gray-100); color: var(--black); }

/* ── HERO SLIDER ── */
.hero-section { background: var(--black); color: var(--white); min-height: 90vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero-slider { flex: 1; position: relative; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s ease; pointer-events: none; padding: 4rem 0; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.slide-content { position: relative; z-index: 1; }
.slide-label { display: inline-block; background: var(--white); color: var(--black); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: .3rem .8rem; margin-bottom: 1.5rem; }
.slide-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); line-height: .95; margin-bottom: 1.5rem; }
.slide-title em { font-style: normal; -webkit-text-stroke: 1px var(--white); color: transparent; }
.slide-text { font-size: 1.1rem; color: var(--gray-300); max-width: 480px; margin-bottom: 2rem; }
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.slider-controls { display: flex; align-items: center; gap: 1rem; padding: 2rem 0 3rem; }
.slider-dots { display: flex; gap: .5rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-600); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.slider-dot.active { background: var(--white); width: 24px; border-radius: 4px; }
.slider-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-700); background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: .9rem; }
.slider-nav:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.slide-image { display: flex; align-items: center; justify-content: center; }
.slide-visual { width: min(420px, 100%); aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-800); background: var(--gray-900); display: flex; align-items: center; justify-content: center; }
.slide-visual i { font-size: 8rem; color: var(--gray-700); }

/* ── STATS BAR ── */
.stats-bar { background: var(--gray-900); padding: 1.5rem 0; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--black); color: var(--white); }
.section-header { margin-bottom: 3rem; }

/* ── CATEGORY CARDS ── */
.category-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: all var(--transition); display: block; color: inherit; }
.category-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; opacity: 1; }
.category-icon { width: 64px; height: 64px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; transition: var(--transition); }
.category-card:hover .category-icon { background: var(--black); color: var(--white); }
.category-name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.category-count { font-size: .8rem; color: var(--gray-500); }

/* ── WORKER CARDS ── */
.worker-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.worker-card:hover { border-color: var(--black); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.worker-card-header { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.worker-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-200); flex-shrink: 0; }
.worker-info { flex: 1; min-width: 0; }
.worker-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worker-role { font-size: .8rem; color: var(--gray-500); }
.worker-verified { font-size: .7rem; color: var(--success); display: flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.worker-card-body { padding: 0 1.5rem 1.5rem; }
.worker-rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; margin-bottom: .75rem; }
.worker-stars { color: #f59e0b; }
.worker-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.worker-tag { font-size: .72rem; background: var(--gray-100); border-radius: 4px; padding: .2rem .6rem; font-weight: 500; }
.worker-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.worker-rate { font-weight: 700; font-size: 1.1rem; }
.worker-rate small { font-size: .75rem; font-weight: 400; color: var(--gray-500); }

/* ── JOB CARDS ── */
.job-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; transition: all var(--transition); }
.job-card:hover { border-color: var(--black); box-shadow: var(--shadow); }
.job-title { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--gray-500); margin-bottom: .75rem; }
.job-meta i { color: var(--gray-400); }
.job-budget { font-weight: 700; color: var(--success); font-size: 1.05rem; }
.job-type-badge { font-size: .72rem; font-weight: 600; padding: .2rem .7rem; border-radius: 20px; }
.badge-open { background: #dcfce7; color: #16a34a; }
.badge-closed { background: #fee2e2; color: #dc2626; }
.badge-inprogress { background: #fef9c3; color: #854d0e; }

/* ── HOW IT WORKS ── */
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number { font-family: var(--font-display); font-size: 4rem; color: var(--gray-200); line-height: 1; margin-bottom: 1rem; }
.step-icon { width: 56px; height: 56px; background: var(--black); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; }
.step-title { font-weight: 700; margin-bottom: .5rem; }

/* ── ADS / BANNERS ── */
.ad-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-placeholder { background: var(--gray-100); padding: 2rem; text-align: center; color: var(--gray-500); font-size: .85rem; }

/* ── BUTTONS ── */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: var(--radius); transition: all var(--transition); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-sol { background: var(--black); color: var(--white); border: 2px solid var(--black); padding: .65rem 1.75rem; font-size: .9rem; border-radius: var(--radius); }
.btn-sol:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-800); }
.btn-sol-outline { background: transparent; color: var(--black); border: 2px solid var(--black); padding: .65rem 1.75rem; font-size: .9rem; border-radius: var(--radius); }
.btn-sol-outline:hover { background: var(--black); color: var(--white); }
.btn-sol-white { background: var(--white); color: var(--black); border: 2px solid var(--white); padding: .65rem 1.75rem; font-size: .9rem; }
.btn-sol-white:hover { background: var(--gray-100); color: var(--black); border-color: var(--gray-100); }

/* ── FORMS ── */
.form-control, .form-select { border-radius: var(--radius); border: 1.5px solid var(--gray-200); font-size: .9rem; padding: .65rem 1rem; font-family: var(--font-body); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }
.form-label { font-weight: 600; font-size: .85rem; color: var(--gray-700); margin-bottom: .4rem; }
.input-group-text { background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius) 0 0 var(--radius); }
.form-check-input:checked { background-color: var(--black); border-color: var(--black); }
.form-text { font-size: .78rem; color: var(--gray-500); }
.invalid-feedback { font-size: .78rem; }
.form-required::after { content: ' *'; color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── AUTH PAGES ── */
.auth-wrapper { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: var(--black); display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem; color: var(--white); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--white); overflow-y: auto; }
.auth-form-container { width: 100%; max-width: 420px; }
.auth-form-title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: .25rem; }
.auth-form-sub { color: var(--gray-500); font-size: .9rem; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-left-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; margin-bottom: 1.5rem; }
.auth-left-sub { color: var(--gray-400); font-size: 1rem; max-width: 360px; }
.auth-feature { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { color: var(--white); background: var(--gray-800); border-radius: 50%; padding: .4rem; font-size: .85rem; flex-shrink: 0; margin-top: .1rem; }
.auth-feature-text { font-size: .9rem; color: var(--gray-300); }
.otp-inputs { display: flex; gap: .75rem; justify-content: center; margin: 1.5rem 0; }
.otp-input { width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 700; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--black); }
.otp-input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); outline: none; }
@media (max-width: 768px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 2rem 1.5rem; }
}

/* ── DASHBOARD LAYOUT ── */
.dash-body { background: var(--gray-50); }
.dashboard-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--black); color: var(--white); z-index: 1000; display: flex; flex-direction: column; overflow-y: auto; transition: transform var(--transition); }
.sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-800); display: flex; align-items: center; justify-content: space-between; }
.sidebar-brand { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .06em; color: var(--white) !important; }
.sidebar-close { background: none; border: none; color: var(--gray-400); font-size: 1rem; cursor: pointer; }
.sidebar-user { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-800); display: flex; align-items: center; gap: .75rem; }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-700); flex-shrink: 0; }
.sidebar-user-name { font-size: .85rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--gray-800); color: var(--gray-300); padding: .15rem .5rem; border-radius: 3px; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; font-size: .875rem; color: var(--gray-400); transition: all var(--transition); position: relative; cursor: pointer; text-decoration: none; -webkit-user-select: none; user-select: none; }
.sidebar-link:hover { color: var(--white); background: rgba(255,255,255,.06); opacity: 1; }
.sidebar-link.active { color: var(--white); background: rgba(255,255,255,.1); border-right: 3px solid var(--white); }
.sidebar-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-badge { position: absolute; right: 1rem; background: var(--danger); color: var(--white); font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 10px; min-width: 18px; text-align: center; }
.sidebar-footer { border-top: 1px solid var(--gray-800); padding: .75rem 0; }
.dashboard-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.dash-topbar { height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem; position: sticky; top: 0; z-index: 100; }
.topbar-toggle { background: none; border: none; color: var(--gray-600); font-size: 1.3rem; cursor: pointer; padding: .25rem; display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.topbar-title { font-weight: 700; font-size: 1rem; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.topbar-btn { color: var(--gray-600); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); position: relative; transition: var(--transition); }
.topbar-btn:hover { color: var(--black); background: var(--gray-200); opacity: 1; }
.notif-dot { position: absolute; top: -2px; right: -2px; background: var(--danger); color: var(--white); font-size: .6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-user { display: flex; align-items: center; gap: .5rem; background: var(--gray-100); border: none; border-radius: var(--radius); padding: .35rem .75rem .35rem .35rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.topbar-user:hover { background: var(--gray-200); }
.topbar-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dash-content { flex: 1; padding: 2rem; max-width: 1400px; width: 100%; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; pointer-events: none; }
.sidebar-overlay.active { pointer-events: auto; }

/* ── STAT CARDS (dashboard) ── */
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-value { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; margin-bottom: .25rem; }
.stat-card-label { font-size: .82rem; color: var(--gray-500); font-weight: 500; }
.stat-card-icon { position: absolute; right: 1.5rem; top: 1.5rem; font-size: 2.5rem; opacity: .1; }
.stat-card-trend { font-size: .78rem; margin-top: .5rem; display: flex; align-items: center; gap: .25rem; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.stat-card.primary { border-color: var(--black); }
.stat-card.primary .stat-card-value { color: var(--black); }
.stat-card.success .stat-card-icon { color: var(--success); opacity: .15; }
.stat-card.warning .stat-card-icon { color: var(--warning); opacity: .15; }
.stat-card.danger .stat-card-icon { color: var(--danger); opacity: .15; }

/* ── TABLE ── */
.sol-table { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; }
.sol-table .table { margin-bottom: 0; font-size: .875rem; }
.sol-table .table thead th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--gray-200); white-space: nowrap; padding: .85rem 1rem; }
.sol-table .table tbody td { padding: .9rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--gray-100); }
.sol-table .table tbody tr:last-child td { border-bottom: none; }
.sol-table .table tbody tr:hover td { background: var(--gray-50); }
.sol-table-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); gap: 1rem; flex-wrap: wrap; }
.sol-table-title { font-weight: 700; font-size: 1rem; }
.sol-table-actions { display: flex; align-items: center; gap: .5rem; }

/* ── STATUS BADGES ── */
.badge-status { font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 20px; white-space: nowrap; }
.s-active    { background: #dcfce7; color: #16a34a; }
.s-inactive  { background: #f4f4f5; color: #71717a; }
.s-pending   { background: #fef9c3; color: #854d0e; }
.s-suspended { background: #fee2e2; color: #dc2626; }
.s-verified  { background: #dbeafe; color: #1d4ed8; }
.s-rejected  { background: #fee2e2; color: #dc2626; }
.s-completed { background: #dcfce7; color: #16a34a; }
.s-cancelled { background: #f4f4f5; color: #71717a; }
.s-open      { background: #dbeafe; color: #1d4ed8; }

/* ── CARD ── */
.sol-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.sol-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.sol-card-title { font-weight: 700; font-size: .95rem; }
.sol-card-body { padding: 1.5rem; }

/* ── MODALS ── */
.modal-header { background: var(--black); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header .btn-close { filter: invert(1); }
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }

/* ── ALERTS ── */
.alert { border-radius: var(--radius); border: none; font-size: .875rem; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger  { background: #fee2e2; color: #b91c1c; }
.alert-warning { background: #fef9c3; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ── MESSAGES / CHAT ── */
.chat-container { height: 500px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.chat-bubble { max-width: 70%; word-wrap: break-word; word-break: break-word; }
.chat-bubble.sent { align-self: flex-end; }
.chat-bubble.received { align-self: flex-start; }
.bubble-content { padding: .65rem 1rem; border-radius: 18px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.sent .bubble-content { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.received .bubble-content { background: var(--gray-100); color: var(--gray-900); border-bottom-left-radius: 4px; }
.bubble-time { font-size: .7rem; color: var(--gray-400); margin-top: .25rem; padding: 0 .5rem; }
.sent .bubble-time { text-align: right; }
.chat-input-area { padding: 1rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; align-items: flex-end; }

/* ── PROFILE / ID UPLOAD ── */
.id-upload-box { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 2rem; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--gray-50); }
.id-upload-box:hover { border-color: var(--black); background: var(--white); }
.id-upload-icon { font-size: 2.5rem; color: var(--gray-400); margin-bottom: .75rem; }
.id-upload-text { font-size: .875rem; color: var(--gray-500); }
.id-preview { max-width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--gray-200); margin-top: .75rem; }

/* ── RATING STARS ── */
.star-rating { display: flex; gap: .25rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.5rem; color: var(--gray-300); cursor: pointer; transition: color var(--transition); }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* ── SEARCH BAR ── */
.search-hero { background: var(--white); border-radius: var(--radius-lg); padding: .5rem; display: flex; box-shadow: var(--shadow-lg); max-width: 600px; border: 2px solid var(--gray-200); }
.search-hero input { border: none; flex: 1; padding: .6rem 1rem; font-size: .95rem; background: transparent; }
.search-hero input:focus { outline: none; }
.search-hero select { border: none; border-left: 1px solid var(--gray-200); padding: .6rem 1rem; font-size: .875rem; background: transparent; color: var(--gray-600); cursor: pointer; min-width: 140px; }
.search-hero select:focus { outline: none; }
.search-hero button { background: var(--black); color: var(--white); border: none; border-radius: var(--radius); padding: .6rem 1.25rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.search-hero button:hover { background: var(--gray-800); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--gray-800); }
.footer-heading { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-300); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--gray-500); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); opacity: 1; }
.social-link { width: 36px; height: 36px; background: var(--gray-800); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 1rem; transition: all var(--transition); }
.social-link:hover { background: var(--gray-700); color: var(--white); opacity: 1; }

/* ── RESPONSIVE ── */

/* Mobile (320px - 576px) */
@media (max-width: 576px) {
    :root {
        --topbar-h: 56px;
        --sidebar-w: 100%;
    }
    
    /* Typography */
    body { font-size: 14px; line-height: 1.6; }
    h1, h2, h3 { font-size: clamp(1rem, 5vw, 1.8rem); }
    .section-title { font-size: clamp(1.2rem, 4vw, 2rem); }
    .display-font { letter-spacing: .01em; }
    
    /* Search */
    .search-hero { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
    .search-hero input { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
    .search-hero select { border-left: none; padding: 0.5rem 0.75rem; font-size: 0.8rem; min-width: auto; width: 100%; }
    .search-hero button { width: 100%; padding: 0.5rem 1rem; font-size: 0.85rem; }
    
    /* Dashboard */
    .dashboard-main { margin-left: 0 !important; }
    .dash-content { padding: 0.75rem !important; max-width: 100% !important; }
    
    /* Messages/Chat */
    .chat-bubble { max-width: 88%; }
    .bubble-content { padding: 0.5rem 0.75rem; font-size: 0.9rem; line-height: 1.4; }
    .chat-messages { padding: 0.5rem; gap: 0.4rem; }
    .chat-input-area { padding: 0.75rem; gap: 0.5rem; flex-wrap: nowrap; align-items: stretch; }
    .chat-input-area textarea { font-size: 0.95rem; padding: 0.5rem !important; line-height: 1.5; max-height: 80px; min-height: 40px; }
    .chat-input-area .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    
    /* Forms & Inputs */
    input, textarea, select { font-size: 16px !important; padding: 0.75rem !important; }
    .form-control, .form-select { font-size: 0.95rem; }
    .btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
    
    /* Sections */
    .section { padding: 1.5rem 0; }
    .section-header { margin-bottom: 1.5rem; }
    .container { padding: 0 0.75rem; }
    
    /* Cards */
    .sol-card { border-radius: 8px; margin-bottom: 1rem; }
    .sol-card-body { padding: 1rem; }
    .sol-card-header { padding: 1rem; }
    
    /* Tables */
    .table { font-size: 0.85rem; }
    .table td, .table th { padding: 0.5rem; }
    
    /* Text */
    .text-truncate, .text-truncate-2 { word-break: break-word; }
    small, .small { font-size: 0.8rem; }
    
    /* Buttons */
    .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
    .btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
    
    /* Payment widget */
    [style*="border-top:1px solid"] { padding: 0.75rem !important; }
    
    /* Wallet */
    .wallet-balance { font-size: 2rem; }
    .wallet-card { padding: 1.5rem; }
    
    /* No data state */
    .no-data { padding: 1.5rem 0.5rem; font-size: 0.9rem; }
    .no-data i { font-size: 2rem; }
}

/* Tablet (577px - 991px) */
@media (max-width: 991px) {
    /* Dashboard Layout */
    .dashboard-sidebar { transform: translateX(-100%); }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; }
    .sidebar-overlay.active { display: block; }
    .dash-content { padding: 1.25rem; }
    .topbar-toggle { display: flex; }
    
    /* Messages/Chat */
    .chat-bubble { max-width: 80%; }
    
    /* Responsive containers */
    .container { max-width: 100%; }
}

/* Large screens (992px and up) */
@media (min-width: 992px) {
    .chat-bubble { max-width: 70%; }
    .dash-content { padding: 2rem; }
}

/* ── UTILITIES ── */
.hover-lift:hover { transform: translateY(-4px); transition: transform var(--transition); }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider-label { text-align: center; position: relative; margin: 1.5rem 0; }
.divider-label::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.divider-label span { position: relative; background: var(--white); padding: 0 1rem; font-size: .8rem; color: var(--gray-500); }
.no-data { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.no-data i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.password-toggle { cursor: pointer; }
.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── WALLET / PAYMENTS ── */
.wallet-card { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden; }
.wallet-card::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.05); top: -80px; right: -40px; }
.wallet-card::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); bottom: -50px; left: -30px; }
.wallet-balance { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; margin-bottom: .25rem; }
.wallet-label { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.transaction-item { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--gray-100); }
.transaction-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.ti-credit { background: #dcfce7; color: #16a34a; }
.ti-debit  { background: #fee2e2; color: #dc2626; }
.transaction-detail { flex: 1; min-width: 0; }
.transaction-title { font-weight: 600; font-size: .875rem; }
.transaction-date { font-size: .78rem; color: var(--gray-500); }
.transaction-amount { font-weight: 700; font-size: .95rem; }

/* ── REVIEW ── */
.review-card { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 1.25rem; }
.review-stars { color: #f59e0b; font-size: .9rem; }

/* ── SETTINGS TABS ── */
.settings-nav .nav-link { color: var(--gray-600); font-weight: 500; border-radius: var(--radius); }
.settings-nav .nav-link.active { color: var(--black); background: var(--gray-100); font-weight: 700; }
.settings-section-title { font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); }

/* ── ANNOUNCEMENT BADGE COLORS ── */
.announcement-info    { border-left: 4px solid var(--info); }
.announcement-warning { border-left: 4px solid var(--warning); }
.announcement-danger  { border-left: 4px solid var(--danger); }

/* ── RESPONSIVE BUTTON STYLES ── */
.w-sm-auto {
    width: auto;
}

@media (max-width: 640px) {
    .w-sm-auto {
        width: 100%;
    }
    
    /* Stack form fields full-width on small screens */
    .col-12 { width: 100%; }
    .col-sm-6 { width: 100%; }
    
    /* Ensure buttons are full-width for better mobile UX */
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    
    /* Improve spacing on mobile */
    .row.g-3 { --bs-gutter-x: 0.75rem; }
    
    /* Profile page improvements */
    .sol-card-body .row { gap: 1rem; }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablet optimizations */
    .col-sm-6 { flex: 0 0 50%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-3 { flex: 0 0 50%; }
}

/* ── PRINT ── */
@media print {
    .dashboard-sidebar, .dash-topbar, .navbar, .site-footer { display: none; }
    .dashboard-main { margin-left: 0; }
}
