/* ============================================================
   Dalaal.in — Light Theme Stylesheet
   Font: Sora (headings) + DM Sans (body)
   Theme: Crisp White + Vibrant Multi-color Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  /* ── Backgrounds ── */
  --bg:          #f7f8fc;
  --bg2:         #ffffff;
  --bg3:         #eef0f8;
  --border:      rgba(0,0,0,0.08);
  --border-md:   rgba(0,0,0,0.13);

  /* ── Text ── */
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;

  /* ── Accent palette ── */
  --indigo:      #5b5ef4;
  --indigo-lt:   #7c7ff7;
  --indigo-bg:   rgba(91,94,244,0.08);
  --accent:      #f59e0b;
  --accent-dk:   #d97706;
  --accent-bg:   rgba(245,158,11,0.1);
  --coral:       #f43f5e;
  --coral-bg:    rgba(244,63,94,0.08);
  --teal:        #0ea5e9;
  --teal-bg:     rgba(14,165,233,0.08);
  --green:       #10b981;
  --green-bg:    rgba(16,185,129,0.1);
  --purple:      #8b5cf6;
  --purple-bg:   rgba(139,92,246,0.08);
  --red:         #ef4444;
  --red-bg:      rgba(239,68,68,0.08);
  --yellow:      #f59e0b;

  /* ── UI ── */
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --transition:  all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1,h2,h3,h4,h5 { font-family: 'Sora', sans-serif; line-height: 1.2; color: var(--text); }

a { color: var(--indigo); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--indigo-lt); }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* ── Navbar ── */
.navbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.04);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo {
  font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo span { -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--indigo-bg); color: var(--indigo);
}
.nav-links .btn-nav {
  background: var(--indigo); color: #fff !important;
  padding: 8px 18px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(91,94,244,0.3);
}
.nav-links .btn-nav:hover {
  background: var(--indigo-lt); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91,94,244,0.4);
  -webkit-text-fill-color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 2px 8px rgba(91,94,244,0.3); }
.btn-primary:hover { background: var(--indigo-lt); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,94,244,0.4); }
.btn-accent  { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.btn-accent:hover  { background: var(--accent-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,0.4); }
.btn-outline { background: #fff; border: 1.5px solid var(--border-md); color: var(--text); }
.btn-outline:hover  { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-bg); }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover  { opacity: .88; transform: translateY(-1px); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover  { opacity: .88; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card:hover { border-color: rgba(91,94,244,0.2); box-shadow: var(--shadow-lg); transition: var(--transition); }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .83rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--bg); border: 1.5px solid var(--border-md);
  border-radius: var(--radius); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,94,244,0.12); background: #fff; }
.form-control::placeholder { color: var(--text-light); }
select.form-control option { background: #fff; color: var(--text); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; border-left: 4px solid; }
.alert-success { background: var(--green-bg);  border-color: var(--green);  color: #065f46; }
.alert-error   { background: var(--red-bg);    border-color: var(--red);    color: #991b1b; }
.alert-info    { background: var(--indigo-bg); border-color: var(--indigo); color: #3730a3; }
.alert-warning { background: var(--accent-bg); border-color: var(--accent); color: #92400e; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg3); padding: 13px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text); }
tr:hover td { background: var(--indigo-bg); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 700; }
.badge-verified  { background: var(--green-bg);  color: #065f46; }
.badge-pending   { background: var(--accent-bg); color: #92400e; }
.badge-active    { background: var(--green-bg);  color: #065f46; }
.badge-suspended { background: var(--red-bg);    color: #991b1b; }
.badge-featured  { background: var(--purple-bg); color: #5b21b6; }
.badge-open        { background: var(--teal-bg);   color: #0369a1; }
.badge-in_progress { background: var(--indigo-bg); color: #3730a3; }
.badge-completed   { background: var(--green-bg);  color: #065f46; }
.badge-cancelled   { background: var(--red-bg);    color: #991b1b; }
.badge-accepted    { background: var(--green-bg);  color: #065f46; }
.badge-rejected    { background: var(--red-bg);    color: #991b1b; }

/* ── Stars ── */
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.star-rating { display: flex; gap: 6px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; cursor: pointer; color: #d1d5db; transition: var(--transition); }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--accent); }

/* ── Broker Card ── */
.broker-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.broker-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--teal), var(--coral));
  opacity: 0; transition: var(--transition);
}
.broker-card:hover { border-color: rgba(91,94,244,0.25); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.broker-card:hover::before { opacity: 1; }
.broker-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; font-family: 'Sora', sans-serif;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91,94,244,0.3);
}
.broker-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; font-size: .83rem; color: var(--text-muted); }
.broker-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Chat ── */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 400px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.chat-bubble { max-width: 70%; padding: 12px 16px; border-radius: 16px; font-size: .9rem; line-height: 1.5; position: relative; }
.chat-bubble.me { background: var(--indigo); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(91,94,244,0.3); }
.chat-bubble.them { background: #fff; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.chat-bubble .time { font-size: .7rem; opacity: .6; margin-top: 4px; }
.chat-input-bar { display: flex; gap: 12px; padding: 16px; border-top: 1px solid var(--border); background: #fff; }
.chat-input-bar input { flex: 1; }
.chat-sender-name { font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.pagination a { background: #fff; border: 1.5px solid var(--border-md); color: var(--text); box-shadow: var(--shadow-sm); }
.pagination a:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-bg); }
.pagination .current { background: var(--indigo); color: #fff; border-color: var(--indigo); box-shadow: 0 2px 8px rgba(91,94,244,0.3); }

/* ── Dashboard Sidebar ── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.sidebar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px; box-shadow: var(--shadow-sm);
}
.sidebar-title { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-light); margin-bottom: 10px; padding: 0 8px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: .9rem; transition: var(--transition); }
.sidebar a:hover { background: var(--indigo-bg); color: var(--indigo); }
.sidebar a.active { background: var(--indigo-bg); color: var(--indigo); font-weight: 600; border-left: 3px solid var(--indigo); }
.sidebar-icon { font-size: 1.1rem; width: 20px; text-align: center; }

/* ── Stat Cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card:nth-child(1) { border-top: 3px solid var(--indigo); }
.stat-card:nth-child(2) { border-top: 3px solid var(--coral); }
.stat-card:nth-child(3) { border-top: 3px solid var(--teal); }
.stat-card:nth-child(4) { border-top: 3px solid var(--accent); }
.stat-card .stat-num { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--indigo); line-height: 1; }
.stat-card:nth-child(2) .stat-num { color: var(--coral); }
.stat-card:nth-child(3) .stat-num { color: var(--teal); }
.stat-card:nth-child(4) .stat-num { color: var(--accent-dk); }
.stat-card .stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ── Hero ── */
.hero {
  padding: 90px 0 80px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #eef0fd 60%, #fdf4ff 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(91,94,244,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(244,63,94,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Search Bar ── */
.search-bar {
  background: #fff; border: 1.5px solid var(--border-md);
  border-radius: 50px; padding: 6px 8px 6px 22px;
  display: flex; align-items: center; gap: 10px;
  max-width: 600px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.search-bar input { flex: 1; background: none; border: none; color: var(--text); font-size: 1rem; font-family: 'DM Sans', sans-serif; }
.search-bar input:focus { outline: none; }

/* ── Category Grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 16px;
  text-align: center; cursor: pointer;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:nth-child(6n+1):hover { border-color: var(--indigo); background: var(--indigo-bg); }
.cat-card:nth-child(6n+2):hover { border-color: var(--coral);  background: var(--coral-bg); }
.cat-card:nth-child(6n+3):hover { border-color: var(--teal);   background: var(--teal-bg); }
.cat-card:nth-child(6n+4):hover { border-color: var(--accent); background: var(--accent-bg); }
.cat-card:nth-child(6n+5):hover { border-color: var(--purple); background: var(--purple-bg); }
.cat-card:nth-child(6n+6):hover { border-color: var(--green);  background: var(--green-bg); }
.cat-card .cat-icon { font-size: 2.2rem; margin-bottom: 10px; }
.cat-card .cat-name { font-weight: 600; font-size: .9rem; color: var(--text); }

/* ── Filters ── */
.filter-bar {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { margin-bottom: 0; min-width: 180px; flex: 1; }

/* ── Requirement Card ── */
.req-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.req-card:hover { border-color: rgba(91,94,244,0.25); box-shadow: var(--shadow); transform: translateY(-2px); }
.req-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.req-card .req-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 14px; }

/* ── Page Header ── */
.page-header { padding: 36px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { color: var(--text-muted); margin-top: 8px; }

/* ── Footer ── */
footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 80px;
}
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
footer h4 { font-family: 'Sora', sans-serif; font-weight: 700; margin-bottom: 16px; color: var(--text); font-size: 1rem; }
footer a { color: var(--text-muted); font-size: .9rem; display: block; margin-bottom: 8px; transition: var(--transition); }
footer a:hover { color: var(--indigo); padding-left: 4px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: .82rem; color: var(--text-light); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--border); margin-bottom: 28px; }
.tab { padding: 10px 20px; font-weight: 600; font-size: .9rem; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: var(--transition); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--indigo); border-color: var(--indigo); }

/* ── Wallet ── */
.wallet-balance {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center; margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(91,94,244,0.3);
}
.wallet-balance .amount { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; color: #fff; }
.wallet-balance .label { color: rgba(255,255,255,0.75); font-weight: 600; }

/* ── Admin ── */
.admin-header {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  border-bottom: none; padding: 10px 0;
  box-shadow: 0 2px 12px rgba(91,94,244,0.25);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo-lt); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent-dk); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-indigo { color: var(--indigo); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.flex-center  { display: flex; align-items: center; gap: 12px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links .nav-link-text { display: none; }
  footer .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-group { min-width: 100%; }
}
