
:root{
  --bg:#0a0d12;
  --bg-soft:#0e131c;
  --panel:#111722;
  --panel2:#151d2b;
  --panel3:#1a2333;
  --text:#f5f7fb;
  --muted:#9aa7b8;
  --line:#243044;
  --line-soft:rgba(255,255,255,.06);
  --accent:#55e08a;
  --accent-deep:#1f8b4d;
  --shadow:0 20px 60px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(85,224,138,.07), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(85,224,138,.10), transparent 26%),
    linear-gradient(180deg, #090d12 0%, #0b1017 60%, #0a0d12 100%);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
.shell{width:min(1180px, 100% - 48px);margin:0 auto}
.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(10,13,18,.82);
  backdrop-filter:blur(14px);
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 6%;border-bottom:1px solid var(--line-soft)
}
.brand{font-size:24px;font-weight:800;letter-spacing:.2px}
nav{display:flex;gap:18px;align-items:center}
nav a{color:var(--muted);font-size:14px;transition:.25s ease}
nav a:hover{color:var(--text)}
.admin-link{border:1px solid var(--line);padding:10px 14px;border-radius:999px}

.hero{padding:84px 0 40px}
.hero-home{min-height:calc(100vh - 78px);display:flex;align-items:center}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}
.hero-copy{max-width:720px}
.badge,.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;letter-spacing:1.7px;color:var(--accent);font-weight:800;
  text-transform:uppercase
}
h1{font-size:clamp(46px,7vw,78px);line-height:.98;margin:18px 0 16px;letter-spacing:-.03em}
.page-title{font-size:clamp(36px,5vw,54px);line-height:1.04;margin:12px 0 14px}
h2{font-size:36px;line-height:1.08;margin:10px 0 12px;letter-spacing:-.02em}
h3{font-size:24px;line-height:1.15;margin:0 0 10px}
p{color:var(--muted);line-height:1.72;margin:0}
.hero-actions{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.btn{
  display:inline-flex;justify-content:center;align-items:center;
  border:none;border-radius:14px;padding:14px 20px;font-weight:800;cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease
}
.btn:hover{transform:translateY(-2px)}
.primary{background:var(--accent);color:#07110b;box-shadow:0 12px 28px rgba(85,224,138,.18)}
.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}

.metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:34px}
.metric-card,.feature-card,.step-card,.content-panel,.small-panel,.mini-stat,.visual-main,.floating-card,.cta-panel,.info-panel,.form-shell,.card,.stat,.tab,.table-wrap{
  background:linear-gradient(180deg, rgba(17,23,34,.96), rgba(15,21,31,.96));
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
}
.metric-card{
  border-radius:18px;padding:18px;min-height:126px;
  transition:transform .25s ease,border-color .25s ease, box-shadow .25s ease
}
.metric-card:hover,.feature-card:hover,.step-card:hover,.content-panel:hover,.portal-hover:hover,.small-panel:hover{
  transform:translateY(-4px);
  border-color:rgba(85,224,138,.24);
  box-shadow:0 24px 64px rgba(0,0,0,.34);
}
.metric-card strong{display:block;font-size:28px;margin-bottom:8px}
.metric-card span{display:block;color:var(--muted);font-size:14px;line-height:1.6}

.hero-visual{position:relative;min-height:560px}
.glass{backdrop-filter:blur(16px)}
.visual-main{position:absolute;inset:42px 24px 62px 44px;border-radius:30px;padding:28px 26px;overflow:hidden}
.visual-main::after{
  content:'';position:absolute;inset:auto -50px -50px auto;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle, rgba(85,224,138,.14) 0%, rgba(85,224,138,0) 68%);
}
.visual-main h3{font-size:30px;max-width:320px;margin-top:14px;margin-bottom:22px}
.flow-list{display:grid;gap:14px;position:relative;z-index:1}
.flow-item{display:grid;grid-template-columns:50px 1fr;gap:14px;align-items:start;padding:16px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05)}
.flow-item span{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:14px;background:rgba(85,224,138,.12);color:var(--accent);font-weight:800}
.flow-item p{font-size:14px;color:#d5deeb}
.floating-card{position:absolute;display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:20px;max-width:230px;animation:float 6s ease-in-out infinite}
.floating-card small{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px}
.floating-card strong{font-size:22px}
.floating-card span{font-size:13px;color:var(--muted);line-height:1.5}
.floating-one{right:0;top:18px}
.floating-two{left:0;bottom:6px;animation-delay:1.5s}

.section{padding:84px 0}
.section.alt{background:linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.01))}
.section-head{max-width:760px;margin-bottom:30px}
.section-head.center{text-align:center;margin-left:auto;margin-right:auto}
.section-head.tight{margin-bottom:24px}
.feature-grid,.steps-grid,.dual-grid{display:grid;gap:18px}
.feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.steps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.dual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.feature-card,.step-card,.content-panel{border-radius:24px;padding:24px;transition:all .25s ease}
.feature-icon{
  width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.12);color:var(--accent);font-size:24px;font-weight:800;margin-bottom:18px
}
.step-number{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:12px;background:rgba(85,224,138,.12);color:var(--accent);font-weight:800;margin-bottom:18px}
.check-list{list-style:none;padding:0;margin:20px 0 26px;display:grid;gap:12px}
.check-list li{position:relative;padding-left:28px;color:#dbe3ee;line-height:1.55}
.check-list li::before{content:'✓';position:absolute;left:0;top:0;color:var(--accent);font-weight:800}
.check-list.compact{gap:10px;margin:16px 0 0}
.cta-panel{
  border-radius:30px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:
    radial-gradient(circle at top right, rgba(85,224,138,.12), transparent 28%),
    linear-gradient(180deg, rgba(17,23,34,.98), rgba(15,21,31,.96));
}

.backline{margin-bottom:22px}
.backline a{color:var(--muted);transition:.2s ease}
.backline a:hover{color:var(--text)}
.form-page-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:24px;align-items:start}
.info-panel,.form-shell{border-radius:30px;padding:28px}
.mini-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.mini-stat{border-radius:22px;padding:18px}
.mini-stat strong{display:block;font-size:22px;margin-bottom:6px}
.mini-stat span{color:var(--muted);font-size:14px;line-height:1.55}
.stack-cards{display:grid;gap:14px}
.small-panel{border-radius:22px;padding:18px}
.accent-panel{
  background:linear-gradient(180deg, rgba(85,224,138,.10), rgba(17,23,34,.98));
  border-color:rgba(85,224,138,.18)
}
.accent-panel small{display:block;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:1px}
.accent-panel strong{display:block;font-size:18px;margin-bottom:6px}
.accent-panel span{display:block;color:var(--muted);font-size:14px;line-height:1.6}
.card{border-radius:26px;padding:24px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
label{display:flex;flex-direction:column;gap:8px;color:#dce4ef;font-size:13px;font-weight:700}
input,select,textarea{
  width:100%;background:#0b1018;color:var(--text);border:1px solid var(--line);
  border-radius:14px;padding:13px 14px;outline:none;transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease
}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(85,224,138,.08)}
textarea{min-height:105px;resize:vertical}
.full{grid-column:1/-1}
.form-msg{grid-column:1/-1;margin-top:6px;line-height:1.7;font-size:13px}
.form-msg strong{color:var(--text)}
.form-msg a{color:var(--accent);text-decoration:none}
.form-msg a:hover{text-decoration:underline}
.hidden{display:none!important}
.login-card{max-width:520px;margin:50px auto;border-radius:24px}
.login-form{display:grid;gap:16px}
.dashboard-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.stat{border-radius:18px;padding:18px}
.stat span{display:block;color:var(--muted);font-size:12px}
.stat strong{font-size:30px;margin-top:5px;display:block}
.tabs{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.tab{color:var(--muted);border:1px solid var(--line);padding:11px 14px;border-radius:12px;cursor:pointer}
.tab.active{color:#07110b;background:var(--accent);border-color:var(--accent)}
.tab-content{display:none}
.tab-content.active{display:block}
.toolbar{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.toolbar input{max-width:330px}
.table-wrap{overflow-x:auto;border-radius:18px}
table{width:100%;border-collapse:collapse;min-width:900px}
th,td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);font-size:13px}
th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.7px;background:#0c1118}
.status-select{padding:7px 8px;min-width:120px}
footer{text-align:center;padding:30px;color:var(--muted);border-top:1px solid var(--line-soft)}

.success-box{
  display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;margin-top:8px;
  border:1px solid rgba(85,224,138,.28);background:rgba(85,224,138,.07);border-radius:14px;
  animation:successSlideIn .28s ease-out both
}
.success-icon{
  width:46px;height:46px;min-width:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.12);border:1px solid rgba(85,224,138,.55);color:var(--accent);
  font-size:26px;font-weight:800;line-height:1;animation:successPop .42s cubic-bezier(.2,.9,.3,1.35) both
}
.success-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.success-copy strong{color:var(--text);font-size:15px}.success-copy span{color:var(--muted);font-size:13px;line-height:1.45}
.success-copy a{color:var(--accent);text-decoration:none}.success-copy a:hover{text-decoration:underline}

.fade-up{opacity:0;transform:translateY(24px);animation:fadeUp .8s cubic-bezier(.2,.75,.2,1) forwards}
.delay-1{animation-delay:.12s}
.delay-2{animation-delay:.24s}
.delay-3{animation-delay:.36s}

@keyframes fadeUp{to{opacity:1;transform:translateY(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes successSlideIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes successPop{0%{opacity:0;transform:scale(.55)}70%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}

@media(max-width:1100px){
  .hero-grid,.form-page-layout,.dual-grid{grid-template-columns:1fr}
  .hero-visual{min-height:420px}
  .visual-main{position:relative;inset:auto}
  .floating-one{right:18px;top:8px}
  .floating-two{left:18px;bottom:-8px}
}
@media(max-width:860px){
  .feature-grid,.steps-grid,.metric-strip,.mini-stats,.stats,.form-grid{grid-template-columns:1fr}
  .cta-panel{flex-direction:column;align-items:flex-start}
  nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}
  .topbar{padding:16px 20px}
  .shell{width:min(1180px, 100% - 28px)}
  h1{font-size:44px}
  h2{font-size:30px}
}
@media(max-width:600px){
  .hero{padding-top:64px}
  .success-box{align-items:flex-start;padding:14px}
  .success-icon{width:42px;height:42px;min-width:42px;font-size:24px}
  .info-panel,.form-shell,.card,.feature-card,.step-card,.content-panel,.cta-panel{padding:20px}
}



/* ===== LaneBridge Admin CRM ===== */
.admin-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 4%,rgba(85,224,138,.07),transparent 28%),
    linear-gradient(180deg,#090d12 0%,#0a0f16 100%);
}
.admin-pill{
  padding:8px 12px;
  border:1px solid rgba(85,224,138,.22);
  background:rgba(85,224,138,.07);
  color:var(--accent);
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.6px;
}
.admin-shell{
  width:min(1440px,100% - 42px);
  margin:0 auto;
  padding:46px 0 80px;
}
.admin-login{
  min-height:72vh;
  display:grid;
  grid-template-columns:1.05fr .75fr;
  gap:34px;
  align-items:center;
  max-width:1120px;
  margin:0 auto;
}
.login-brand-panel{
  padding:34px 8px;
}
.login-brand-panel p{max-width:600px;font-size:17px}
.login-feature-list{
  display:grid;
  gap:12px;
  margin-top:30px;
  max-width:620px;
}
.login-feature-list div{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
  border-radius:16px;
}
.login-feature-list span{
  width:42px;height:42px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.1);color:var(--accent);font-weight:800;
}
.login-feature-list p{font-size:14px;color:#dbe3ee}
.crm-login-card{max-width:none;margin:0;border-radius:28px;padding:28px}
.crm-login-card h2{font-size:32px}

.crm-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:24px;
}
.crm-title{
  font-size:clamp(38px,5vw,58px);
  margin:8px 0 8px;
}
.crm-header-actions{display:flex;gap:10px;flex-wrap:wrap}

.crm-stats{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:22px;
}
.crm-stat{
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(17,23,34,.98),rgba(14,20,29,.98));
  border-radius:20px;
  padding:18px;
  box-shadow:0 18px 44px rgba(0,0,0,.22);
  transition:transform .2s ease,border-color .2s ease;
}
.crm-stat:hover{transform:translateY(-3px);border-color:rgba(85,224,138,.2)}
.crm-stat strong{display:block;font-size:32px;margin:14px 0 4px}
.crm-stat small{color:var(--muted);font-size:12px;line-height:1.45}
.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;font-weight:700}
.stat-icon{
  width:26px;height:26px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);background:rgba(85,224,138,.08)
}
.stat-dot{
  width:8px;height:8px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 16px rgba(85,224,138,.7)
}

.crm-layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.crm-sidebar{
  position:sticky;
  top:96px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(17,23,34,.96),rgba(13,18,27,.98));
  border-radius:24px;
  padding:14px;
  box-shadow:var(--shadow);
}
.sidebar-label{
  color:#667386;
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-size:10px;
  font-weight:800;
  padding:8px 10px;
}
.crm-sidebar .tab{
  width:100%;
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  text-align:left;
  align-items:center;
  background:transparent;
  border:1px solid transparent;
  padding:11px 10px;
  margin:3px 0;
}
.crm-sidebar .tab:hover{background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.04)}
.crm-sidebar .tab.active{
  background:rgba(85,224,138,.10);
  border-color:rgba(85,224,138,.22);
  color:var(--text);
}
.crm-sidebar .tab span:last-child{display:flex;flex-direction:column;gap:2px}
.crm-sidebar .tab strong{font-size:13px}
.crm-sidebar .tab small{font-size:11px;color:var(--muted);font-weight:500}
.tab-symbol{
  width:36px;height:36px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.04);color:var(--muted);font-weight:800;
}
.crm-sidebar .tab.active .tab-symbol{background:rgba(85,224,138,.12);color:var(--accent)}
.sidebar-separator{height:1px;background:rgba(255,255,255,.06);margin:14px 4px}
.source-summary{display:grid;gap:8px;padding:4px}
.source-summary div{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px;border-radius:12px;background:rgba(255,255,255,.025);
  color:var(--muted);font-size:12px
}
.source-summary strong{color:var(--text);font-size:14px}

.crm-main{
  min-width:0;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(14,20,29,.94),rgba(11,16,24,.97));
  border-radius:26px;
  padding:22px;
  box-shadow:var(--shadow);
}
.crm-panel-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
  margin-bottom:18px;
}
.crm-panel-head h2{margin:7px 0 6px}
.crm-panel-head p{font-size:14px}

.pipeline-strip{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:10px;
  margin-bottom:8px;
}
.pipeline-chip{
  white-space:nowrap;
  border:1px solid var(--line);
  background:#0b1018;
  color:var(--muted);
  border-radius:999px;
  padding:9px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.pipeline-chip:hover{border-color:rgba(85,224,138,.35);color:var(--text)}
.pipeline-chip.active{
  background:rgba(85,224,138,.12);
  border-color:rgba(85,224,138,.38);
  color:var(--accent);
}
.pipeline-chip span{
  display:inline-flex;
  min-width:22px;height:22px;
  align-items:center;justify-content:center;
  margin-left:6px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:inherit;
}

.crm-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:12px 0 16px;
}
.search-wrap{
  position:relative;
  flex:1;
  max-width:520px;
}
.search-wrap span{
  position:absolute;
  left:14px;top:50%;
  transform:translateY(-50%);
  color:#718096;
  pointer-events:none;
}
.search-wrap input{max-width:none!important;padding-left:38px}
.crm-toolbar select{width:auto;min-width:170px}

.crm-table-wrap{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:none;
  background:#0b1018;
}
.crm-table{min-width:1050px}
.crm-table th{
  padding:13px 16px;
  background:#0d131c;
  color:#758398;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.crm-table td{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.045);
  vertical-align:middle;
}
.crm-table tbody tr{transition:background .18s ease}
.crm-table tbody tr:hover{background:rgba(255,255,255,.018)}
.person-cell{display:flex;align-items:center;gap:11px;min-width:210px}
.person-cell > span:last-child{display:flex;flex-direction:column;gap:3px}
.person-cell strong{color:var(--text);font-size:13px}
.person-cell small,.table-sub{color:var(--muted);font-size:11px;line-height:1.4}
.avatar{
  width:38px;height:38px;min-width:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.11);
  border:1px solid rgba(85,224,138,.16);
  color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.4px;
}
.company-avatar{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.07);color:#dce5f2}
.data-chip,.source-chip,.fee-chip{
  display:inline-flex;align-items:center;
  border-radius:999px;padding:6px 9px;
  font-size:11px;font-weight:700;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:#cbd5e1;
}
.source-chip{color:var(--accent);background:rgba(85,224,138,.07);border-color:rgba(85,224,138,.12)}
.fee-chip{color:#e7edf7}
.table-strong{display:block;font-size:13px;margin-bottom:3px}
.status-select{
  border-radius:999px;
  min-width:116px;
  font-size:11px;
  font-weight:800;
  padding:7px 30px 7px 10px;
}
.status-new{color:#dce5f2}
.status-contacted{color:#8dc5ff}
.status-qualified{color:#55e08a}
.status-submitted{color:#d0a8ff}
.status-hired{color:#55e08a;border-color:rgba(85,224,138,.28)}
.status-rejected,.status-closed{color:#ff9d9d}
.status-active{color:#55e08a}
.status-paused{color:#ffd78d}
.empty-state{padding:34px;text-align:center;color:var(--muted)}
.crm-form{box-shadow:none;border-color:rgba(255,255,255,.055)}
.inline-success{color:var(--accent);font-weight:700}

@media(max-width:1250px){
  .crm-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .admin-login{grid-template-columns:1fr}
  .crm-layout{grid-template-columns:1fr}
  .crm-sidebar{position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .sidebar-label,.sidebar-separator,.source-summary{display:none}
  .crm-sidebar .tab{margin:0}
}
@media(max-width:720px){
  .admin-shell{width:min(100% - 24px,1440px);padding-top:28px}
  .crm-header{align-items:flex-start;flex-direction:column}
  .crm-header-actions{width:100%}
  .crm-header-actions .btn{flex:1}
  .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-sidebar{grid-template-columns:1fr}
  .crm-toolbar{align-items:stretch;flex-direction:column}
  .search-wrap{max-width:none}
  .crm-toolbar select{width:100%}
  .crm-main{padding:16px}
}



/* ===== CRM detail drawer ===== */
.person-button{
  appearance:none;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
  border-radius:12px;
}
.person-button:hover strong{color:var(--accent)}
.person-button:focus-visible{
  outline:2px solid rgba(85,224,138,.45);
  outline-offset:4px;
}
.drawer-open{overflow:hidden}
.crm-overlay{
  position:fixed;
  inset:0;
  z-index:79;
  background:rgba(0,0,0,.56);
  backdrop-filter:blur(3px);
  animation:overlayIn .2s ease both;
}
.crm-drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:80;
  width:min(520px,100%);
  height:100dvh;
  overflow-y:auto;
  padding:24px;
  background:
    radial-gradient(circle at 90% 2%,rgba(85,224,138,.09),transparent 22%),
    linear-gradient(180deg,#101722,#0b1018);
  border-left:1px solid rgba(255,255,255,.08);
  box-shadow:-28px 0 80px rgba(0,0,0,.38);
  transform:translateX(105%);
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
}
.crm-drawer.open{transform:translateX(0)}
.drawer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.drawer-top h2{font-size:30px;margin:7px 0 0}
.drawer-close{
  width:42px;height:42px;min-width:42px;
  display:flex;align-items:center;justify-content:center;
  border-radius:13px;
  border:1px solid var(--line);
  background:#0b1018;
  color:var(--muted);
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:.2s ease;
}
.drawer-close:hover{color:var(--text);border-color:rgba(85,224,138,.3);transform:rotate(4deg)}
.drawer-hero{
  display:flex;
  gap:14px;
  align-items:center;
  margin:20px 0;
  padding:18px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
  border-radius:20px;
}
.drawer-avatar{
  width:58px;height:58px;min-width:58px;
  border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.12);
  border:1px solid rgba(85,224,138,.2);
  color:var(--accent);
  font-size:15px;font-weight:900;
}
.drawer-avatar.company{
  color:#dfe8f4;
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.08);
}
.drawer-hero > div:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.drawer-hero strong{font-size:17px}
.drawer-hero span{color:#d6deea;font-size:13px}
.drawer-hero small{color:var(--muted);font-size:11px}
.drawer-section{
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.055);
}
.drawer-section-title{
  color:#738197;
  font-size:10px;
  font-weight:900;
  letter-spacing:1.3px;
  text-transform:uppercase;
  margin-bottom:12px;
}
.drawer-contact{display:grid;gap:9px}
.contact-action{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:11px;
  align-items:center;
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.055);
  transition:.2s ease;
}
.contact-action:hover{
  border-color:rgba(85,224,138,.25);
  background:rgba(85,224,138,.045);
  transform:translateY(-1px);
}
.contact-action > span:first-child{
  width:38px;height:38px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.08);
  color:var(--accent);
}
.contact-action > span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-action small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.contact-action strong{font-size:13px;overflow-wrap:anywhere}
.detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.detail-item{
  min-height:72px;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.05);
}
.detail-item small{
  color:#748196;
  font-size:9px;
  letter-spacing:.8px;
  text-transform:uppercase;
  font-weight:800;
}
.detail-item strong{
  color:#e7edf7;
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.drawer-notes{
  padding:14px;
  border-radius:15px;
  min-height:70px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.05);
  color:#c9d3e1;
  font-size:13px;
  line-height:1.65;
  white-space:pre-wrap;
}
.drawer-status{
  width:100%;
  border-radius:14px;
  font-weight:800;
  padding:12px 14px;
}
.drawer-empty{color:var(--muted);font-size:13px;padding:10px 0}

@keyframes overlayIn{from{opacity:0}to{opacity:1}}

@media(max-width:580px){
  .crm-drawer{padding:18px}
  .detail-grid{grid-template-columns:1fr}
}



/* ===== CDL photo upload ===== */
.file-field{
  padding:16px;
  border:1px dashed rgba(85,224,138,.24);
  border-radius:18px;
  background:rgba(85,224,138,.025);
}
.field-hint{
  color:var(--muted);
  font-size:11px;
  font-weight:500;
  line-height:1.5;
  margin-top:-2px;
}
.file-field input[type="file"]{
  padding:12px;
  cursor:pointer;
}
.file-field input[type="file"]::file-selector-button{
  margin-right:12px;
  border:0;
  border-radius:10px;
  padding:9px 12px;
  background:rgba(85,224,138,.12);
  color:var(--accent);
  font-weight:800;
  cursor:pointer;
}
.upload-preview{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.05);
}
.upload-preview img{
  width:74px;
  height:52px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
}
.upload-preview span{
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}
button:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none!important;
}

.drawer-cdl-photo a{
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.06);
  transition:.2s ease;
}
.drawer-cdl-photo a:hover{
  transform:translateY(-2px);
  border-color:rgba(85,224,138,.24);
}
.drawer-cdl-photo img{
  display:block;
  width:100%;
  max-height:300px;
  object-fit:contain;
  background:#070a0f;
}
.drawer-cdl-photo span{
  display:block;
  padding:11px 13px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}



/* ===== Driver ↔ Carrier matching ===== */
.match-list{
  display:grid;
  gap:10px;
}
.match-card{
  width:100%;
  appearance:none;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.022);
  color:inherit;
  text-align:left;
  padding:13px;
  border-radius:16px;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.match-card:hover{
  transform:translateY(-2px);
  border-color:rgba(85,224,138,.23);
  background:rgba(85,224,138,.035);
}
.match-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.match-card-top > div{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.match-card-top strong{
  font-size:13px;
  color:var(--text);
}
.match-card-top span:not(.match-score){
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.match-score{
  min-width:52px;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.08);
}
.match-high{
  color:var(--accent);
  background:rgba(85,224,138,.10);
  border-color:rgba(85,224,138,.22);
}
.match-medium{
  color:#ffd78d;
  background:rgba(255,215,141,.08);
  border-color:rgba(255,215,141,.16);
}
.match-low{
  color:#9eb0c7;
  background:rgba(158,176,199,.07);
}
.match-meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}
.match-meta span{
  padding:5px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#aeb9c9;
  font-size:10px;
}
.match-reasons{
  display:grid;
  gap:4px;
  margin-top:9px;
}
.match-reasons span{
  color:#9daabd;
  font-size:10px;
  line-height:1.45;
}



/* ===== Recruiting submissions / placement tracking ===== */
.crm-stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.submission-create{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px auto;
  gap:8px;
  margin-bottom:12px;
}
.submission-create select,
.submission-create input{
  min-width:0;
}
.submission-create .btn{
  padding:11px 14px;
}
.submission-list{
  display:grid;
  gap:9px;
}
.submission-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.022);
}
.submission-card-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.submission-card-main strong{
  color:var(--text);
  font-size:13px;
}
.submission-card-main span{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.submission-card-controls{
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.fee-input{
  width:94px;
  padding:8px 9px;
  border-radius:10px;
  font-size:11px;
}
.submission-stage,
.submission-stage-view{
  border-radius:999px;
  font-size:10px;
  font-weight:900;
}
.submission-stage{
  width:auto;
  min-width:104px;
  padding:8px 28px 8px 10px;
}
.submission-stage-view{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.07);
}
.submission-submitted{
  color:#d0a8ff;
  background:rgba(208,168,255,.07);
  border-color:rgba(208,168,255,.16);
}
.submission-interview{
  color:#8dc5ff;
  background:rgba(141,197,255,.07);
  border-color:rgba(141,197,255,.16);
}
.submission-hired{
  color:var(--accent);
  background:rgba(85,224,138,.08);
  border-color:rgba(85,224,138,.2);
}
.submission-paid{
  color:var(--accent);
  background:rgba(85,224,138,.13);
  border-color:rgba(85,224,138,.3);
}
.submission-rejected{
  color:#ff9d9d;
  background:rgba(255,157,157,.06);
  border-color:rgba(255,157,157,.14);
}
.submission-card-click{
  appearance:none;
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
  transition:.18s ease;
}
.submission-card-click:hover{
  transform:translateY(-2px);
  border-color:rgba(85,224,138,.22);
  background:rgba(85,224,138,.035);
}
.submission-right{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.fee-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#e8edf5;
  font-size:10px;
  font-weight:900;
}
@media(max-width:1250px){
  .crm-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:720px){
  .crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .submission-create{grid-template-columns:1fr}
  .submission-card{align-items:flex-start;flex-direction:column}
  .submission-card-controls,.submission-right{width:100%;justify-content:flex-start}
}



/* ===== Assigned recruiter + contact history ===== */
.recruiter-box{
  display:grid;
  gap:14px;
}
.assignment-row{
  padding:13px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:16px;
  background:rgba(255,255,255,.022);
}
.assignment-row label{
  gap:9px;
}
.assignment-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.mini-btn{
  border:1px solid rgba(85,224,138,.22);
  background:rgba(85,224,138,.10);
  color:var(--accent);
  padding:0 13px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.mini-btn:hover{
  background:rgba(85,224,138,.15);
  transform:translateY(-1px);
}
.activity-composer{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:8px;
}
.activity-composer textarea{
  grid-column:1/-1;
  min-height:84px;
}
.activity-composer .btn{
  grid-column:1/-1;
  padding:11px 14px;
}
.activity-timeline{
  display:grid;
  gap:9px;
}
.activity-item{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  align-items:start;
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.05);
}
.activity-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(85,224,138,.08);
  color:var(--accent);
  font-size:15px;
  font-weight:900;
}
.activity-content{
  min-width:0;
}
.activity-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:5px;
}
.activity-head strong{
  font-size:12px;
  color:#e6edf6;
}
.activity-head span{
  color:#6f7c90;
  font-size:9px;
  white-space:nowrap;
}
.activity-content p{
  color:#aeb9c8;
  font-size:12px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

@media(max-width:580px){
  .assignment-control,
  .activity-composer{
    grid-template-columns:1fr;
  }
  .activity-head{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
}



/* ===== Archive / CSV / duplicate detection ===== */
.panel-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.compact-btn{
  padding:10px 13px;
  font-size:12px;
}
.archived-inline{
  display:inline-flex;
  margin-left:5px;
  padding:3px 6px;
  border-radius:999px;
  background:rgba(255,215,141,.08);
  border:1px solid rgba(255,215,141,.14);
  color:#ffd78d;
  font-style:normal;
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.6px;
  vertical-align:middle;
}
.drawer-record-actions{
  margin-top:9px;
}
.record-action{
  width:100%;
  border-radius:13px;
  padding:11px 13px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.archive-action{
  border:1px solid rgba(255,215,141,.16);
  background:rgba(255,215,141,.06);
  color:#ffd78d;
}
.restore-action{
  border:1px solid rgba(85,224,138,.2);
  background:rgba(85,224,138,.08);
  color:var(--accent);
}
.record-action:hover{transform:translateY(-1px)}
.duplicate-warning{
  padding:13px;
  border-radius:16px;
  background:rgba(255,157,157,.05);
  border:1px solid rgba(255,157,157,.14);
}
.duplicate-warning-title{
  color:#ffb0b0;
  font-size:13px;
  font-weight:900;
  margin-bottom:4px;
}
.duplicate-warning p{
  color:#b6c0ce;
  font-size:11px;
  line-height:1.5;
  margin-bottom:10px;
}
.duplicate-list{
  display:grid;
  gap:7px;
}
.duplicate-list button{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:left;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.025);
  color:inherit;
  cursor:pointer;
}
.duplicate-list button:hover{
  border-color:rgba(255,157,157,.2);
}
.duplicate-list strong{font-size:12px}
.duplicate-list span{color:var(--muted);font-size:10px}

@media(max-width:720px){
  .crm-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .panel-actions{width:100%}
  .panel-actions .btn{flex:1}
}



/* ===== CRM Overview / Command Center ===== */
.overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.overview-card{
  min-width:0;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.02);
}
.attention-card{
  background:
    radial-gradient(circle at top right,rgba(255,215,141,.06),transparent 34%),
    rgba(255,255,255,.02);
  border-color:rgba(255,215,141,.09);
}
.overview-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:13px;
}
.overview-card-head h3{
  font-size:18px;
  margin:4px 0 0;
}
.overview-kicker{
  color:#6f7d91;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.2px;
}
.overview-count{
  min-width:32px;
  height:32px;
  padding:0 9px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,215,141,.07);
  border:1px solid rgba(255,215,141,.12);
  color:#ffd78d;
  font-size:11px;
  font-weight:900;
}
.overview-list{
  display:grid;
  gap:7px;
}
.overview-item{
  appearance:none;
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  padding:10px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.045);
  background:rgba(255,255,255,.018);
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
  transition:.18s ease;
}
.overview-item:hover{
  transform:translateY(-1px);
  border-color:rgba(85,224,138,.16);
  background:rgba(85,224,138,.025);
}
.overview-item-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.overview-item-main strong{
  color:#e7edf6;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.overview-item-main small{
  color:#7f8da1;
  font-size:10px;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.overview-badge{
  flex:0 0 auto;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.055);
  color:#a9b5c5;
  font-size:9px;
  font-weight:900;
}
.badge-paid{
  color:var(--accent);
  background:rgba(85,224,138,.08);
  border-color:rgba(85,224,138,.15);
}
.badge-unpaid{
  color:#ffd78d;
  background:rgba(255,215,141,.06);
  border-color:rgba(255,215,141,.12);
}
.overview-activity-icon{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(85,224,138,.07);
  color:var(--accent);
  font-size:11px;
}
.fee-overview{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.fee-overview > div{
  padding:13px;
  border-radius:14px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.045);
}
.fee-overview span{
  display:block;
  color:#758397;
  font-size:10px;
  margin-bottom:5px;
}
.fee-overview strong{
  font-size:22px;
}
.overview-empty{
  padding:18px 10px;
  color:#6f7d91;
  font-size:11px;
  text-align:center;
  border:1px dashed rgba(255,255,255,.05);
  border-radius:13px;
}
.compact-list .overview-item{padding:9px}

@media(max-width:960px){
  .overview-grid{grid-template-columns:1fr}
}



/* ===== Privacy & CDL policy ===== */
.consent-box{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:11px;
  align-items:start;
  padding:15px 16px;
  border-radius:16px;
  background:rgba(85,224,138,.035);
  border:1px solid rgba(85,224,138,.14);
  font-weight:500;
}
.consent-box input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:2px 0 0;
  accent-color:var(--accent);
}
.consent-box span{
  color:#aeb9c8;
  font-size:12px;
  line-height:1.6;
}
.consent-box a{
  color:var(--accent);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}
.policy-page{
  max-width:900px;
  margin:0 auto;
}
.policy-hero{
  margin-bottom:26px;
}
.policy-hero p{
  font-size:13px;
}
.policy-notice{
  padding:20px;
  margin-bottom:18px;
  border-radius:20px;
  background:rgba(85,224,138,.06);
  border:1px solid rgba(85,224,138,.18);
}
.policy-notice strong{
  display:block;
  color:var(--accent);
  margin-bottom:6px;
}
.policy-section{
  margin:14px 0;
  padding:22px;
  border-radius:20px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.055);
}
.policy-section h2{
  font-size:21px;
  margin:0 0 10px;
}
.policy-section p{
  font-size:14px;
}
.policy-email{
  color:var(--accent);
  font-weight:800;
}
.policy-footer-note{
  margin-top:20px;
  padding:14px 0;
  color:var(--muted);
  font-size:12px;
}
footer a{
  color:var(--accent);
}



/* ===== Final public anti-spam controls ===== */
.spam-trap{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.human-check{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.018);
  border:1px solid rgba(255,255,255,.055);
}
.human-check > div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.human-check strong{font-size:13px;color:#e7edf6}
.human-check > div span{font-size:11px;color:var(--muted)}
.human-check label{
  display:grid;
  grid-template-columns:auto 76px;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-size:15px;
  font-weight:900;
}
.human-check input{
  text-align:center;
  padding:9px 10px;
}

/* ===== Permanent deletion ===== */
.drawer-record-actions{
  display:grid;
  gap:8px;
}
.delete-action{
  border:1px solid rgba(255,105,105,.18);
  background:rgba(255,105,105,.055);
  color:#ff9d9d;
}
.delete-action:hover{
  border-color:rgba(255,105,105,.32);
  background:rgba(255,105,105,.08);
}

/* ===== Reports ===== */
.report-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.report-kpi{
  padding:16px;
  border-radius:17px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.05);
}
.report-kpi span{
  display:block;
  color:#758398;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.report-kpi strong{
  display:block;
  margin:9px 0 4px;
  font-size:28px;
}
.report-kpi small{
  color:var(--muted);
  font-size:10px;
}
.report-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.report-card{
  padding:17px;
  border-radius:19px;
  background:rgba(255,255,255,.018);
  border:1px solid rgba(255,255,255,.05);
}
.report-head{
  margin-bottom:15px;
}
.report-head span{
  color:#6f7d91;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.1px;
}
.report-head h3{
  font-size:17px;
  margin:5px 0 0;
}
.bar-list{
  display:grid;
  gap:12px;
}
.bar-row{
  display:grid;
  gap:6px;
}
.bar-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#aeb9c8;
  font-size:11px;
}
.bar-label strong{color:#e7edf6}
.bar-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.04);
}
.bar-track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(85,224,138,.55),var(--accent));
  animation:barGrow .55s ease both;
}
@keyframes barGrow{
  from{transform:scaleX(0);transform-origin:left}
  to{transform:scaleX(1);transform-origin:left}
}

@media(max-width:900px){
  .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .human-check{align-items:flex-start;flex-direction:column}
  .report-kpis{grid-template-columns:1fr}
}



/* ==========================================================
   LaneBridge Mobile / Tablet Responsive Layer
   Desktop styles remain unchanged above this block.
   ========================================================== */

html{
  -webkit-text-size-adjust:100%;
}
body{
  overflow-x:hidden;
}
button,a,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}
input,select,textarea{
  font-size:16px; /* prevents automatic iOS zoom */
}
.btn,
button,
a.admin-link{
  touch-action:manipulation;
}

/* Tablet */
@media(max-width:900px){
  .topbar{
    padding:15px 18px;
  }
  .brand{
    font-size:21px;
  }
  .topbar nav{
    gap:8px;
  }
  .topbar nav a{
    padding:8px 9px;
    border-radius:10px;
    font-size:12px;
  }

  .hero-home{
    min-height:auto;
    padding:64px 0 34px;
  }
  .hero-grid{
    gap:28px;
  }
  .hero-copy{
    max-width:none;
  }
  .hero-copy > p{
    font-size:16px;
  }
  .metric-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hero-visual{
    min-height:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .visual-main{
    grid-column:1/-1;
    position:relative;
    inset:auto;
  }
  .floating-card{
    position:static;
    max-width:none;
    animation:none;
  }

  .section{
    padding:62px 0;
  }

  .form-page-layout{
    gap:18px;
  }
  .form-shell{
    order:1;
  }
  .info-panel{
    order:2;
  }

  .crm-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .crm-sidebar{
    position:sticky!important;
    top:68px;
    z-index:18;
    display:flex!important;
    grid-template-columns:none!important;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:9px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .crm-sidebar::-webkit-scrollbar{
    display:none;
  }
  .crm-sidebar .tab{
    flex:0 0 auto;
    width:auto;
    min-width:150px;
    margin:0!important;
  }
  .sidebar-label,
  .sidebar-separator,
  .source-summary{
    display:none!important;
  }
  .crm-layout{
    grid-template-columns:1fr!important;
  }
  .admin-shell{
    width:min(100% - 22px,1440px);
    padding-top:26px;
  }
  .crm-main{
    padding:16px;
  }
}

/* Phones */
@media(max-width:640px){
  :root{
    --shadow:0 14px 38px rgba(0,0,0,.24);
  }

  .shell{
    width:calc(100% - 24px);
  }

  .topbar{
    min-height:60px;
    padding:11px 12px;
    gap:10px;
  }
  .brand{
    font-size:20px;
    white-space:nowrap;
  }
  .topbar nav{
    margin-left:auto;
    gap:3px;
    flex-wrap:nowrap;
  }
  .topbar nav a{
    padding:8px 7px;
    font-size:11px;
    white-space:nowrap;
  }
  .admin-pill{
    display:none;
  }

  .hero,
  .hero-home{
    padding-top:46px;
  }
  .hero-home{
    padding-bottom:20px;
  }
  h1,
  .page-title{
    font-size:clamp(34px,11vw,44px);
    line-height:1.02;
    letter-spacing:-.035em;
  }
  h2{
    font-size:28px;
  }
  h3{
    font-size:20px;
  }
  .badge,
  .eyebrow{
    font-size:10px;
    letter-spacing:1.25px;
  }
  .hero-copy > p,
  .info-panel > p{
    font-size:14px;
    line-height:1.65;
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:22px;
  }
  .hero-actions .btn{
    width:100%;
    min-height:50px;
  }

  .metric-strip{
    grid-template-columns:1fr;
    gap:9px;
    margin-top:22px;
  }
  .metric-card{
    min-height:auto;
    padding:15px;
  }
  .metric-card strong{
    font-size:24px;
  }

  .hero-visual{
    grid-template-columns:1fr;
    gap:9px;
    margin-top:4px;
  }
  .visual-main,
  .floating-card{
    grid-column:auto;
    border-radius:20px;
  }
  .visual-main{
    padding:20px 16px;
  }
  .visual-main h3{
    font-size:24px;
  }
  .flow-item{
    grid-template-columns:42px 1fr;
    gap:10px;
    padding:12px;
  }
  .flow-item span{
    width:42px;
    height:42px;
    border-radius:12px;
  }
  .floating-card{
    padding:14px 15px;
  }

  .section{
    padding:48px 0;
  }
  .section-head{
    margin-bottom:22px;
  }
  .section-head.center{
    text-align:left;
  }
  .feature-grid,
  .steps-grid,
  .dual-grid{
    gap:10px;
  }
  .feature-card,
  .step-card,
  .content-panel,
  .cta-panel,
  .info-panel,
  .form-shell{
    border-radius:20px;
  }
  .cta-panel{
    padding:20px;
  }
  .cta-panel .hero-actions{
    width:100%;
  }

  /* Public forms */
  .backline{
    margin-bottom:14px;
  }
  .form-page-layout{
    gap:12px;
  }
  .form-shell,
  .info-panel{
    padding:17px;
  }
  .form-grid{
    grid-template-columns:1fr!important;
    gap:13px;
  }
  .full{
    grid-column:1!important;
  }
  .card{
    padding:16px;
    border-radius:19px;
  }
  label{
    font-size:12px;
  }
  input,
  select,
  textarea{
    min-height:48px;
    border-radius:12px;
    padding:12px;
  }
  textarea{
    min-height:100px;
  }
  .form-grid > .btn{
    min-height:52px;
  }
  .mini-stats{
    grid-template-columns:1fr!important;
    gap:8px;
    margin:18px 0;
  }
  .mini-stat,
  .small-panel{
    border-radius:16px;
    padding:14px;
  }
  .file-field{
    padding:13px;
  }
  .file-field input[type="file"]{
    min-height:auto;
    padding:9px;
  }
  .file-field input[type="file"]::file-selector-button{
    display:block;
    width:100%;
    margin:0 0 9px;
    min-height:42px;
  }
  .upload-preview{
    align-items:flex-start;
    flex-direction:column;
  }
  .upload-preview img{
    width:100%;
    height:auto;
    max-height:180px;
    object-fit:contain;
  }
  .consent-box{
    grid-template-columns:24px 1fr;
    padding:13px;
  }
  .human-check{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:10px;
  }
  .human-check label{
    grid-template-columns:1fr 90px;
  }

  /* Privacy page */
  .policy-section{
    padding:16px;
    margin:10px 0;
    border-radius:16px;
  }
  .policy-section h2{
    font-size:19px;
  }
  .policy-notice{
    padding:16px;
    border-radius:16px;
  }

  /* Success */
  .success-box{
    padding:13px;
    gap:10px;
    border-radius:14px;
  }
  .success-icon{
    width:38px;
    height:38px;
    min-width:38px;
    font-size:21px;
  }

  /* Admin header/login */
  .admin-shell{
    width:calc(100% - 18px);
    padding-top:18px;
    padding-bottom:50px;
  }
  .admin-login{
    min-height:auto;
    gap:12px;
  }
  .login-brand-panel{
    padding:12px 3px;
  }
  .login-feature-list{
    margin-top:18px;
  }
  .login-feature-list div{
    grid-template-columns:38px 1fr;
    padding:11px;
  }
  .login-feature-list span{
    width:36px;
    height:36px;
  }
  .crm-login-card{
    padding:18px;
    border-radius:20px;
  }

  .crm-header{
    gap:14px;
    margin-bottom:16px;
  }
  .crm-title{
    font-size:36px;
  }
  .crm-header-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .crm-header-actions .btn{
    min-height:46px;
    padding:10px 12px;
  }
  .crm-stats{
    gap:8px;
    margin-bottom:12px;
  }
  .crm-stat{
    padding:13px;
    border-radius:16px;
  }
  .crm-stat strong{
    font-size:25px;
    margin-top:9px;
  }
  .crm-stat small{
    font-size:10px;
  }

  .crm-sidebar{
    top:59px;
    margin:0 -1px;
    border-radius:16px;
  }
  .crm-sidebar .tab{
    min-width:138px;
    grid-template-columns:32px 1fr;
    padding:9px;
  }
  .tab-symbol{
    width:30px;
    height:30px;
  }
  .crm-sidebar .tab strong{
    font-size:12px;
  }
  .crm-sidebar .tab small{
    font-size:9px;
  }

  .crm-main{
    padding:12px;
    border-radius:18px;
  }
  .crm-panel-head{
    gap:10px;
    margin-bottom:12px;
  }
  .crm-panel-head h2{
    font-size:25px;
  }
  .panel-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .panel-actions .btn{
    min-height:44px;
    padding:9px 8px;
  }

  .pipeline-strip{
    margin-left:-2px;
    margin-right:-2px;
    padding-bottom:7px;
  }
  .pipeline-chip{
    min-height:40px;
  }
  .crm-toolbar{
    gap:7px;
    margin:9px 0 11px;
  }
  .search-wrap input,
  .crm-toolbar select{
    min-height:46px;
  }

  /* Mobile CRM: turn tables into readable cards */
  .crm-table-wrap{
    overflow:visible;
    background:transparent;
    border:0;
  }
  .crm-table{
    min-width:0!important;
    width:100%;
    display:block;
  }
  .crm-table thead{
    display:none;
  }
  .crm-table tbody{
    display:grid;
    gap:10px;
  }
  .crm-table tbody tr{
    display:block;
    width:100%;
    padding:13px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.06);
    background:#0b1018;
  }
  .crm-table tbody td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-height:36px;
    padding:7px 0;
    border:0;
    text-align:right;
    font-size:12px;
  }
  .crm-table tbody td::before{
    content:attr(data-label);
    flex:0 0 40%;
    color:#748196;
    font-size:9px;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
    text-align:left;
  }
  .crm-table tbody td:first-child{
    display:block;
    padding:0 0 11px;
    margin-bottom:4px;
    border-bottom:1px solid rgba(255,255,255,.055);
    text-align:left;
  }
  .crm-table tbody td:first-child::before{
    display:none;
  }
  .person-cell{
    min-width:0;
    width:100%;
  }
  .person-cell small{
    overflow-wrap:anywhere;
  }
  .crm-table .status-select{
    width:auto;
    min-width:122px;
    min-height:38px;
    font-size:11px;
  }
  .crm-table .empty-state{
    padding:20px 8px;
  }

  /* Overview & reports */
  .overview-card,
  .report-card{
    padding:14px;
    border-radius:16px;
  }
  .overview-item{
    padding:10px 9px;
  }
  .overview-item-main small{
    white-space:normal;
  }
  .fee-overview{
    grid-template-columns:1fr 1fr;
  }
  .report-kpis{
    grid-template-columns:1fr 1fr!important;
    gap:8px;
  }
  .report-kpi{
    padding:13px;
  }
  .report-kpi strong{
    font-size:23px;
  }
  .report-grid{
    grid-template-columns:1fr!important;
  }

  /* Full-screen CRM drawer on mobile */
  .crm-drawer{
    width:100%;
    max-width:none;
    padding:16px 14px 32px;
    border-left:0;
  }
  .drawer-top{
    position:sticky;
    top:-16px;
    z-index:3;
    margin:-16px -14px 0;
    padding:16px 14px 14px;
    background:rgba(16,23,34,.96);
    backdrop-filter:blur(14px);
  }
  .drawer-top h2{
    font-size:24px;
  }
  .drawer-close{
    width:44px;
    height:44px;
    min-width:44px;
  }
  .drawer-hero{
    margin:15px 0;
    padding:13px;
    border-radius:16px;
  }
  .drawer-avatar{
    width:48px;
    height:48px;
    min-width:48px;
    border-radius:14px;
  }
  .drawer-section{
    padding:14px 0;
  }
  .detail-grid{
    grid-template-columns:1fr!important;
    gap:7px;
  }
  .detail-item{
    min-height:auto;
    padding:11px;
  }
  .contact-action{
    min-height:58px;
  }
  .drawer-cdl-photo img{
    max-height:240px;
  }

  .submission-create{
    grid-template-columns:1fr!important;
  }
  .submission-create .btn{
    min-height:46px;
  }
  .submission-card{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .submission-card-controls,
  .submission-right{
    width:100%;
    justify-content:flex-start!important;
  }
  .fee-input,
  .submission-stage{
    min-height:42px;
  }
  .activity-composer,
  .assignment-control{
    grid-template-columns:1fr!important;
  }
  .activity-composer textarea{
    min-height:88px;
  }
  .match-card{
    padding:11px;
  }

  footer{
    padding:24px 14px;
    font-size:12px;
    line-height:1.6;
  }
}

/* Extra-small phones */
@media(max-width:390px){
  .topbar{
    padding-left:10px;
    padding-right:10px;
  }
  .brand{
    font-size:18px;
  }
  .topbar nav a{
    font-size:10px;
    padding:7px 5px;
  }
  h1,
  .page-title{
    font-size:34px;
  }
  .crm-stats{
    grid-template-columns:1fr 1fr!important;
  }
  .crm-stat{
    padding:11px;
  }
  .crm-stat strong{
    font-size:22px;
  }
  .report-kpis{
    grid-template-columns:1fr!important;
  }
  .fee-overview{
    grid-template-columns:1fr;
  }
  .crm-header-actions{
    grid-template-columns:1fr;
  }
}

/* Respect reduced-motion accessibility preference */
@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}



/* ===== Operations Complete ===== */
.optional-docs-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.optional-file{
  min-width:0;
}
.optional-tag{
  display:inline-flex;
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.06);
  color:#93a0b3;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}
.selected-file-name{
  color:var(--accent);
  font-size:11px;
  overflow-wrap:anywhere;
}
.advanced-filters{
  align-items:stretch;
  justify-content:flex-start;
}
.advanced-filters .search-wrap{
  min-width:280px;
}
.advanced-filters select,
.advanced-filters .filter-number,
.advanced-filters > input{
  width:auto;
  min-width:138px;
}
.document-list{
  display:grid;
  gap:8px;
}
.document-item{
  display:grid;
  grid-template-columns:40px 1fr 24px;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.055);
  transition:.18s ease;
}
.document-item:hover{
  transform:translateY(-1px);
  border-color:rgba(85,224,138,.22);
  background:rgba(85,224,138,.035);
}
.document-icon{
  width:40px;height:40px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(85,224,138,.08);
  color:var(--accent);
}
.document-item > span:nth-child(2){
  display:flex;flex-direction:column;gap:3px;
}
.document-item strong{font-size:12px}
.document-item small{font-size:10px;color:var(--muted)}
.document-arrow{color:var(--accent)}
.follow-up-row{
  border-color:rgba(141,197,255,.10);
}
.report-card-wide{
  grid-column:1/-1;
}
.recruiter-performance{
  overflow-x:auto;
}
.performance-head,
.performance-row{
  display:grid;
  grid-template-columns:minmax(130px,1.5fr) repeat(5,minmax(70px,1fr));
  gap:8px;
  align-items:center;
  min-width:670px;
}
.performance-head{
  padding:0 10px 8px;
  color:#718095;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.performance-row{
  padding:11px 10px;
  border-radius:12px;
  border-top:1px solid rgba(255,255,255,.045);
  color:#aeb9c8;
  font-size:11px;
}
.performance-row strong{color:#e8eef7}
.carrier-portal-box{
  display:grid;
  gap:10px;
}
.carrier-portal-box p{
  font-size:12px;
}
.portal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.portal-open-btn{
  text-decoration:none;
}
.danger-mini{
  color:#ff9d9d!important;
  border-color:rgba(255,105,105,.18)!important;
  background:rgba(255,105,105,.05)!important;
}

/* carrier client portal */
.client-portal-body{
  min-height:100vh;
}
.client-badge{
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  border:1px solid rgba(85,224,138,.16);
  border-radius:999px;
  padding:8px 10px;
}
.client-portal-main{
  max-width:1180px;
}
.client-status-card{
  max-width:720px;
  margin:40px auto;
  padding:28px;
  border-radius:24px;
  background:var(--panel);
  border:1px solid var(--line-soft);
  text-align:center;
}
.client-status-card .btn{
  margin-top:18px;
}
.client-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}
.client-company-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.client-company-meta span,
.client-stage,
.client-cdl{
  padding:6px 9px;
  border-radius:999px;
  background:rgba(85,224,138,.07);
  border:1px solid rgba(85,224,138,.13);
  color:var(--accent);
  font-size:10px;
  font-weight:800;
}
.client-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.client-summary > div{
  padding:18px;
  border-radius:18px;
  background:var(--panel);
  border:1px solid var(--line-soft);
}
.client-summary span{
  display:block;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  margin-bottom:7px;
}
.client-summary strong{
  font-size:20px;
  overflow-wrap:anywhere;
}
.client-driver-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.client-driver-card{
  padding:20px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(17,23,34,.98),rgba(13,19,28,.98));
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
}
.client-driver-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.client-driver-head h3{
  margin:9px 0 4px;
}
.client-driver-head p{
  font-size:12px;
}
.client-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:16px;
}
.client-detail-grid > div,
.client-mvr > div{
  padding:11px;
  border-radius:13px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.045);
}
.client-detail-grid span,
.client-mvr span{
  display:block;
  color:#748196;
  font-size:9px;
  text-transform:uppercase;
  margin-bottom:5px;
}
.client-detail-grid strong,
.client-mvr strong{
  font-size:12px;
}
.client-mvr{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.client-contact-actions{
  display:flex;
  gap:8px;
  margin-top:14px;
}
.client-contact-actions .btn{
  flex:1;
}

@media(max-width:760px){
  .optional-docs-grid{grid-template-columns:1fr}
  .advanced-filters .search-wrap,
  .advanced-filters select,
  .advanced-filters .filter-number,
  .advanced-filters > input{
    width:100%;
    min-width:0;
  }
  .client-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .client-company-meta{justify-content:flex-start}
  .client-summary,
  .client-driver-grid{
    grid-template-columns:1fr;
  }
  .client-detail-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:430px){
  .client-detail-grid,
  .client-mvr{
    grid-template-columns:1fr;
  }
  .client-contact-actions{
    flex-direction:column;
  }
}


/* ===== LaneBridge Brand Logo ===== */
.brand-image-link{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}
.brand-logo{
  display:block;
  width:178px;
  height:auto;
  max-height:38px;
  object-fit:contain;
  object-position:left center;
}
@media(max-width:640px){
  .brand-logo{
    width:146px;
    max-height:32px;
  }
}
@media(max-width:390px){
  .brand-logo{
    width:132px;
    max-height:30px;
  }
}

/* Carrier portal recruiter-only contact */
.client-recruiter-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(85,224,138,.045);
  border:1px solid rgba(85,224,138,.09);
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
  text-align:center;
}
.client-recruiter-note strong{color:var(--accent)}
.client-summary a{color:var(--accent)}
