/* =============================================
   Majdoor.com — Complete Mobile-First CSS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --navy:    #0b1f3a;
  --blue:    #1a4480;
  --accent:  #f59e0b;
  --accent-d:#d97706;
  --orange:  #f97316;
  --white:   #ffffff;
  --off:     #f8fafc;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --success: #10b981;
  --r:       14px;
  --sh:      0 4px 24px rgba(0,0,0,0.08);
  --sh-lg:   0 8px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 60px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: all .2s; font-family: inherit;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-d); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent-d); }
.btn-success { background: var(--success); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Form ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  color: var(--navy); background: var(--white); transition: border .2s; outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- Card ---- */
.card { background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--sh); }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-blue   { background: #dbeafe; color: #1e40af; }

/* ---- Alert ---- */
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---- Toast ---- */
#toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 99px;
  font-weight: 600; font-size: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9999; transition: transform .3s; pointer-events: none; white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ============================
   NAVBAR
   ============================ */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.navbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0;
  font-size: 20px; font-weight: 900; color: #fff; text-decoration: none;
}
.navbar-logo span { color: var(--accent); }
.navbar-logo-icon {
  width: 36px; height: 36px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
  margin-right: 8px; /* use margin instead of gap so whitespace in HTML doesn't matter */
}
/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-link { color: rgba(255,255,255,.7); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: all .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
/* Mobile nav buttons (always visible on mobile, hidden on desktop) */
.nav-mobile { display: none; align-items: center; gap: 8px; }

/* ============================
   HERO
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d5a 100%);
  padding: 64px 0 56px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--accent); padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px;
}
.hero-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.hero-title { font-size: 52px; color: #fff; margin-bottom: 16px; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 32px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: flex-end; }
.hero-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.3); width: 100%; max-width: 360px; position: relative; }
.hero-badge-float {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero-badge-float.top { top: -18px; right: -16px; }
.hero-badge-float.bot { bottom: -18px; left: -16px; }

/* ============================
   STATS
   ============================ */
.stats-bar { background: var(--navy); padding: 36px 16px; }
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center;
}
.stat-val { font-size: 32px; font-weight: 900; color: var(--accent); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* ============================
   HOW IT WORKS
   ============================ */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.how-col-label {
  display: inline-block; padding: 7px 20px; border-radius: 99px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 28px;
}
.how-col-label.co { background: var(--navy); color: var(--accent); }
.how-col-label.la { background: var(--accent); color: var(--navy); }
.how-step {
  display: flex; gap: 18px; align-items: flex-start; text-align: left;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.how-num {
  width: 44px; height: 44px; background: var(--accent); color: var(--navy);
  border-radius: 12px; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.how-step h3 { font-size: 16px; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--muted); }

/* ============================
   FEATURES
   ============================ */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.feat-card {
  padding: 24px; border-radius: 14px; border: 1.5px solid var(--border);
  transition: all .2s;
}
.feat-card:hover { border-color: var(--accent); box-shadow: var(--sh); transform: translateY(-2px); }
.feat-icon { font-size: 30px; margin-bottom: 14px; }
.feat-card h3 { font-size: 16px; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--muted); }

/* ============================
   CTA BANNER
   ============================ */
.cta-banner { background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%); padding: 56px 16px; text-align: center; }
.cta-banner h2 { font-size: 34px; color: var(--navy); margin-bottom: 12px; }
.cta-banner p { color: var(--navy); opacity: .75; max-width: 520px; margin: 0 auto 28px; font-size: 16px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================
   CONTACT
   ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { font-size: 22px; margin-top: 2px; }
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: 14px; color: var(--muted); }

/* ============================
   SECTION LABELS
   ============================ */
.section-label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.section-title { font-size: 34px; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 540px; margin: 0 auto; }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--navy); color: rgba(255,255,255,.55); padding: 40px 16px; text-align: center; font-size: 14px; }
.footer-logo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; letter-spacing: -0.3px; }
.footer-logo span { color: var(--accent); }
.footer a { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin: 12px 0; flex-wrap: wrap; }

/* ============================
   AUTH PAGES
   ============================ */
.auth-page {
  min-height: calc(100vh - 64px); display: flex; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d5a 100%); padding: 40px 16px;
}
.auth-box { background: #fff; border-radius: 20px; padding: 36px 32px; width: 100%; box-shadow: var(--sh-lg); }
.auth-logo { font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.auth-logo span { color: var(--accent); }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ============================
   SUCCESS SCREEN
   ============================ */
.success-icon { font-size: 60px; margin-bottom: 16px; }
.success-card { text-align: center; padding: 8px 0; }
.success-card h2 { font-size: 24px; margin-bottom: 10px; }

/* ============================
   ADMIN
   ============================ */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--navy),#0d2d5a); padding: 20px; }
.dash-header { background: var(--navy); padding: 32px 16px; }
.dash-header-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.dash-title { color: #fff; font-size: 24px; }
.dash-subtitle { color: rgba(255,255,255,.5); font-size: 14px; }
.dash-body { background: var(--off); min-height: calc(100vh - 200px); padding: 28px 16px; }
.dash-body-inner { max-width: 1160px; margin: 0 auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--sh); border-left: 4px solid var(--accent); }
.kpi-card .val { font-size: 32px; font-weight: 900; color: var(--navy); }
.kpi-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tab-bar { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 20px; gap: 4px; border: 1.5px solid var(--border); }
.tab-btn { flex: 1; padding: 10px; border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: 10px; cursor: pointer; transition: all .2s; }
.tab-btn.active { background: var(--navy); color: #fff; }
.panel { display: none; }
.panel.active { display: block; }
.table-wrap { background: #fff; border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.table-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.table-head h3 { font-size: 16px; }
.table-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.table-filters input, .table-filters select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13px; outline: none; }
.table-filters input:focus, .table-filters select:focus { border-color: var(--accent); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
th { background: var(--off); padding: 11px 14px; text-align: left; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off); }
.no-data { padding: 48px 20px; text-align: center; color: var(--muted); }
.no-data .icon { font-size: 40px; margin-bottom: 10px; }
.note-input { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px; width: 140px; outline: none; }
.note-input:focus { border-color: var(--accent); }
.export-btn { background: var(--success); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.status-new      { background:#fef3c7; color:#92400e; }
.status-contacted{ background:#dbeafe; color:#1e40af; }
.status-matched  { background:#d1fae5; color:#065f46; }
.status-closed   { background:#f1f5f9; color:#475569; }

/* ============================
   WHATSAPP FLOAT
   ============================ */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  background: #25D366; color: #fff; width: 54px; height: 54px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ============================
   MOBILE RESPONSIVE — phones
   ============================ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-desktop { display: none !important; }
  .nav-mobile  { display: flex !important; gap: 6px; flex-shrink: 0; }
  .navbar-inner { padding: 0 12px; }
  .navbar-logo { font-size: 16px; }
  .navbar-logo-icon { width: 28px; height: 28px; font-size: 13px; margin-right: 6px; }
  /* Small buttons in mobile nav so they don't crowd the logo */
  .nav-mobile .btn { padding: 6px 10px !important; font-size: 11px !important; border-radius: 7px !important; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-val { font-size: 26px; }

  /* How it works */
  .how-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Features */
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA */
  .cta-banner h2 { font-size: 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 300px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Section */
  .section { padding: 44px 0; }
  .section-title { font-size: 26px; }

  /* Admin */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-card { padding: 18px 14px; }
  .kpi-card .val { font-size: 24px; }
  .dash-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .auth-box { padding: 24px 18px; border-radius: 16px; }
  .auth-page { padding: 24px 14px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .navbar-logo { font-size: 17px; }
  .navbar-logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .btn-lg { font-size: 15px; padding: 14px 20px; }
  .card { padding: 20px 14px; }
}
