@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --navy:#0b2947;
  --navy-2:#123a60;
  --blue:#a2daff;
  --blue-2:#dff3ff;
  --ink:#10263b;
  --muted:#657587;
  --muted-2:#8a98a7;
  --bg:#f6f9fc;
  --surface:#ffffff;
  --surface-2:#f8fbfe;
  --line:#dfe8f0;
  --line-strong:#cbd9e5;
  --success:#176b4d;
  --danger:#a53a43;
  --shadow:0 18px 55px rgba(11,41,71,.08);
  --shadow-soft:0 8px 28px rgba(11,41,71,.06);
  --radius:20px;
  font-family:Manrope,Inter,Segoe UI,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(162,218,255,.34), transparent 32%),
    linear-gradient(180deg,#fff 0,#f8fbfe 34%,var(--bg) 100%);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

a{color:var(--navy);text-decoration:none}
a:hover{color:#24577e}

nav{
  height:76px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 32px;
  background:rgba(11,41,71,.97);
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 8px 30px rgba(11,41,71,.14);
  backdrop-filter:blur(14px);
}
nav img{
  width:142px;
  height:auto;
  max-height:48px;
  object-fit:contain;
  margin-right:22px;
}
nav a{
  color:rgba(255,255,255,.76);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  padding:10px 13px;
  border-radius:999px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.10);
  transform:translateY(-1px);
}
.brand{font-weight:800;margin-right:auto;letter-spacing:-.2px;color:#fff;font-size:15px}
.user{
  font-size:12px;
  color:rgba(255,255,255,.62);
  padding:0 8px;
  white-space:nowrap;
}

.center{display:grid;place-items:center;min-height:100vh;padding:30px}
.login{
  width:min(470px,100%);
  text-align:center;
  background:rgba(255,255,255,.96)!important;
  border:1px solid var(--line)!important;
  box-shadow:var(--shadow)!important;
}
.logo{width:155px;max-height:82px;object-fit:contain;margin-bottom:18px;filter:drop-shadow(0 5px 14px rgba(11,41,71,.08))}

main{width:min(1320px,calc(100% - 48px));margin:0 auto;padding:34px 0 80px}
.hero{padding:30px 0 28px;max-width:1020px}
.hero h1{
  font-size:clamp(34px,5vw,62px);
  line-height:1.02;
  letter-spacing:-2.2px;
  max-width:920px;
  margin:12px 0 14px;
  color:var(--navy);
}
.hero p{font-size:16px;line-height:1.7;max-width:760px}
.eyebrow{
  font-size:11px;
  letter-spacing:2.2px;
  color:#55738e;
  font-weight:800;
  text-transform:uppercase;
}

.card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:25px;
  box-shadow:var(--shadow-soft);
  margin-bottom:18px;
}
.card h2,.card h3{color:var(--navy);letter-spacing:-.4px}
.card h2{font-size:21px;margin:0 0 16px}
.card h3{font-size:15px;margin:0 0 14px}
.inner{
  background:var(--surface-2);
  box-shadow:none;
  border-color:#e6eef5;
  padding:20px;
}

.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:1050px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.grid{grid-template-columns:1fr}}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:850px){.two{grid-template-columns:1fr}}

label{display:block;color:#344e66;font-size:12px;font-weight:800;letter-spacing:.1px}
input,select,textarea{
  display:block;
  width:100%;
  margin-top:8px;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line-strong);
  border-radius:12px;
  padding:12px 13px;
  font:inherit;
  font-size:13px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
input:hover,select:hover,textarea:hover{border-color:#b6c8d8}
input:focus,select:focus,textarea:focus{
  border-color:#78bce7;
  box-shadow:0 0 0 4px rgba(162,218,255,.30);
}
textarea{min-height:90px;resize:vertical}

button,.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--navy);
  border-radius:999px;
  padding:12px 18px;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  font-size:12px;
  letter-spacing:.1px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
button:hover,.button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(11,41,71,.16);
}
button.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:var(--navy)}
button.primary:hover,.button.primary:hover{background:#8fd0fa;border-color:#8fd0fa}
.button.secondary,button.secondary{background:#fff;color:var(--navy);border-color:var(--line-strong)}
.button.secondary:hover,button.secondary:hover{background:var(--surface-2);border-color:#aec2d2}

.check{display:inline-flex;align-items:center;gap:8px;margin:12px 22px 0 0;font-weight:700;color:#52697d}
.check input{width:auto;margin:0;accent-color:var(--navy)}

.muted{color:var(--muted)}
.small{font-size:11px;color:var(--muted-2)}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 20px}
.stats.mini{grid-template-columns:repeat(5,1fr)}
@media(max-width:950px){.stats.mini{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.stats,.stats.mini{grid-template-columns:1fr 1fr}}
.stat{
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  border-radius:17px;
  padding:18px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  box-shadow:var(--shadow-soft);
}
.stat b{display:block;color:var(--navy);font-size:28px;line-height:1.1;margin-top:7px;letter-spacing:-1px}

.api-box,.costbox{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 18px;
  border:1px solid #dceaf4;
  border-radius:15px;
  background:linear-gradient(135deg,#f8fcff,#eef8ff);
  margin-bottom:16px;
}
.api-box b,.costbox b{color:var(--navy)}
.costbox strong{font-size:25px;color:var(--navy);white-space:nowrap;letter-spacing:-.7px}
.costbox .small{display:block;margin-top:5px}

.msg{
  padding:13px 15px;
  border-radius:12px;
  margin:10px 0;
  background:#f4f8fb;
  border:1px solid var(--line);
  color:#42596e;
  font-size:13px;
}
.msg.error,.status-error{border-color:#efc8cd!important;background:#fff5f6;color:var(--danger)!important}
.msg.success{border-color:#c7e6d8;background:#f2fbf6;color:var(--success)}

.file{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:14px 2px;
  border-bottom:1px solid #e9eff4;
  transition:padding .18s ease,background .18s ease;
}
.file:hover{padding-left:7px;padding-right:7px;background:#fbfdff}
.file:last-child{border-bottom:0}
.pill{
  border:1px solid #c9d9e6;
  background:#f4f9fd;
  border-radius:999px;
  padding:6px 10px;
  font-size:10px;
  font-weight:800;
  color:#557087;
  white-space:nowrap;
}

.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}
.table{width:100%;border-collapse:separate;border-spacing:0;min-width:1050px}
.table th,.table td{padding:13px 14px;border-bottom:1px solid #e9eff4;text-align:left;vertical-align:top}
.table th{
  color:#61778b;
  background:#f7fafc;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.8px;
  font-weight:800;
  position:sticky;
  top:0;
  z-index:1;
}
.table tbody tr:hover td{background:#fbfdff}
.table tbody tr:last-child td{border-bottom:0}
.lead-name{font-weight:800;color:var(--navy)}
.rating{font-weight:800;color:var(--navy)}

.progress{
  height:12px;
  background:#e9f0f5;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #d8e4ed;
  margin:25px 0 10px;
}
.progress>div{
  height:100%;
  background:linear-gradient(90deg,var(--blue),#75c6f5);
  transition:width .5s;
  border-radius:999px;
}
.progressmeta{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px}
.scroll{max-height:480px;overflow:auto}

.linkrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:800px){.grid3{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.grid3{grid-template-columns:1fr}}
.kpi{background:#f7fbfe;border:1px solid #e2edf5;border-radius:15px;padding:15px}

hr{border:0;border-top:1px solid var(--line);margin:22px 0}
::selection{background:var(--blue);color:var(--navy)}

@media(max-width:900px){
  nav{padding:0 18px;overflow-x:auto;gap:2px}
  nav img{width:120px;margin-right:8px}
  nav a{padding:9px 10px;font-size:12px}
  .brand{display:none}
  .user{display:none}
}
@media(max-width:600px){
  main{width:min(100% - 24px,1320px);padding-top:22px}
  nav{height:68px}
  nav img{width:105px}
  nav a{font-size:11px;padding:8px 9px}
  .hero{padding:18px 0 20px}
  .hero h1{font-size:38px;letter-spacing:-1.5px}
  .card{padding:19px;border-radius:17px}
  .api-box,.costbox{align-items:flex-start;flex-direction:column}
  .costbox strong{font-size:23px}
}

/* ================================================================
   B3 SERVICES — PREMIUM PRODUCT UI OVERRIDES
   Visual-only layer. No application logic or routes are changed.
   ================================================================ */
:root{
  --b3-navy:#0b2947;
  --b3-navy-deep:#071d32;
  --b3-blue:#a2daff;
  --b3-blue-soft:#eaf7ff;
  --b3-ink:#102b43;
  --b3-muted:#718398;
  --b3-border:#e5edf4;
  --b3-shadow:0 22px 65px rgba(11,41,71,.075);
}

body{
  background:
    radial-gradient(900px 420px at 84% -8%,rgba(162,218,255,.30),transparent 66%),
    radial-gradient(700px 360px at 8% 0%,rgba(232,246,255,.72),transparent 64%),
    linear-gradient(180deg,#fff 0%,#fbfdff 42%,#f5f8fb 100%);
}

/* ---------- Premium floating B3 header ---------- */
nav{
  height:92px;
  position:sticky;
  top:0;
  padding:0 28px;
  gap:5px;
  background:rgba(255,255,255,.78);
  border:0;
  box-shadow:none;
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  isolation:isolate;
}
nav::before{
  content:"";
  position:absolute;
  inset:10px 18px;
  z-index:-1;
  border-radius:22px;
  background:linear-gradient(105deg,#071d32 0%,#0b2947 58%,#123b5f 100%);
  box-shadow:0 15px 38px rgba(7,29,50,.20),inset 0 1px 0 rgba(255,255,255,.08);
}
nav::after{
  content:"";
  position:absolute;
  left:44px;
  top:10px;
  width:230px;
  height:1px;
  background:linear-gradient(90deg,rgba(162,218,255,0),rgba(162,218,255,.55),rgba(162,218,255,0));
  z-index:-1;
}
nav img{
  width:151px;
  height:45px;
  max-height:none;
  object-fit:contain;
  margin:0 18px 0 18px;
  flex:0 0 auto;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.14));
}
nav .brand{
  display:flex;
  align-items:center;
  height:38px;
  padding-left:18px;
  margin-right:12px;
  border-left:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.92);
  font-size:13px;
  font-weight:800;
  letter-spacing:.15px;
  white-space:nowrap;
}
nav .brand::before{
  content:"B3 PLATFORM";
  position:absolute;
  margin-top:-29px;
  color:rgba(162,218,255,.78);
  font-size:8px;
  line-height:1;
  letter-spacing:1.7px;
  font-weight:800;
}
nav a{
  position:relative;
  color:rgba(255,255,255,.68);
  padding:10px 12px;
  border-radius:12px;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.05px;
  white-space:nowrap;
  transition:color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  transform:none;
}
nav a:last-child{
  color:#102b43;
  background:var(--b3-blue);
  margin-left:5px;
  padding-left:15px;
  padding-right:15px;
  box-shadow:0 7px 20px rgba(162,218,255,.18);
}
nav a:last-child:hover{
  color:#071d32;
  background:#b4e3ff;
  transform:translateY(-1px);
}
nav .user{
  order:20;
  margin-left:auto;
  padding:8px 12px 8px 30px;
  position:relative;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:rgba(255,255,255,.74);
  font-size:10px;
  font-weight:800;
}
nav .user::before{
  content:"";
  position:absolute;
  left:11px;
  top:50%;
  width:10px;
  height:10px;
  transform:translateY(-50%);
  border-radius:50%;
  background:var(--b3-blue);
  box-shadow:0 0 0 4px rgba(162,218,255,.10);
}

/* ---------- Page rhythm / premium surfaces ---------- */
main{
  width:min(1380px,calc(100% - 56px));
  padding:42px 0 92px;
}
.hero{
  position:relative;
  padding:42px 46px 40px;
  margin:4px 0 25px;
  max-width:none;
  overflow:hidden;
  border:1px solid rgba(224,234,243,.95);
  border-radius:30px;
  background:
    radial-gradient(520px 230px at 88% 5%,rgba(162,218,255,.34),transparent 72%),
    linear-gradient(135deg,#fff 0%,#f9fcff 100%);
  box-shadow:var(--b3-shadow);
}
.hero::after{
  content:"";
  position:absolute;
  right:-100px;
  bottom:-150px;
  width:390px;
  height:390px;
  border-radius:50%;
  border:1px solid rgba(162,218,255,.24);
  box-shadow:0 0 0 35px rgba(162,218,255,.045),0 0 0 70px rgba(162,218,255,.025);
  pointer-events:none;
}
.hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:7px 11px;
  border:1px solid #d8ebf7;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:#4e7390;
  letter-spacing:1.5px;
  box-shadow:0 5px 16px rgba(11,41,71,.035);
}
.hero .eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--b3-blue);
  box-shadow:0 0 0 4px rgba(162,218,255,.18);
}
.hero h1{
  position:relative;
  z-index:1;
  font-size:clamp(36px,4.7vw,62px);
  letter-spacing:-2.8px;
  line-height:1.03;
  margin:20px 0 15px;
  max-width:920px;
}
.hero p{position:relative;z-index:1;max-width:780px;font-size:15px}

.card{
  border-radius:23px;
  border-color:#e2ebf2;
  box-shadow:0 12px 42px rgba(11,41,71,.055);
  padding:27px;
}
.card:hover{box-shadow:0 15px 48px rgba(11,41,71,.065)}
.card h1,.card h2{letter-spacing:-.8px}
.card h1{color:var(--b3-navy);font-size:30px}
.card h2{font-size:22px}
.card h3{font-size:14px;text-transform:none}

.stats{gap:15px}
.stat{
  min-height:100px;
  border-radius:19px;
  border-color:#e2ebf2;
  padding:19px 20px;
  background:rgba(255,255,255,.94);
  box-shadow:0 9px 30px rgba(11,41,71,.045);
}
.stat b{font-size:30px;letter-spacing:-1.4px}
.stats.mini .stat{min-height:94px}

/* ---------- Inputs / controls ---------- */
input,select,textarea{
  min-height:44px;
  border-radius:13px;
  border-color:#d8e4ed;
  background:#fcfeff;
  padding:11px 13px;
}
select{cursor:pointer}
input:focus,select:focus,textarea:focus{
  border-color:#8acbf0;
  box-shadow:0 0 0 4px rgba(162,218,255,.22),0 5px 18px rgba(11,41,71,.045);
  background:#fff;
}
button,.button{
  min-height:42px;
  padding:11px 17px;
  border-radius:13px;
  border-color:var(--b3-navy);
  box-shadow:0 6px 16px rgba(11,41,71,.09);
  letter-spacing:.15px;
}
button.primary,.button.primary{
  border-color:var(--b3-blue);
  background:linear-gradient(135deg,#a2daff,#b4e3ff);
  box-shadow:0 8px 22px rgba(93,174,222,.18);
}
button.primary:hover,.button.primary:hover{background:#a9deff;box-shadow:0 11px 28px rgba(93,174,222,.22)}
.button.secondary,button.secondary{box-shadow:none}
.check input{min-height:0}

.api-box,.costbox{
  border-radius:18px;
  padding:18px 20px;
  border-color:#dcecf7;
  background:linear-gradient(135deg,#fafdff,#edf8ff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.costbox strong{font-size:27px}

/* ---------- Tables / lead database ---------- */
.tablewrap{border-radius:18px;box-shadow:0 10px 35px rgba(11,41,71,.045)}
.table th,.table td{padding:14px 15px}
.table th{background:#f8fbfd;color:#60778d;letter-spacing:.9px}
.table tbody tr{transition:background .15s ease}
.table tbody tr:hover td{background:#f8fcff}
.lead-name{font-weight:800}
.pill{background:#f1f8fc;border-color:#d6e6f0;color:#527089;padding:6px 10px}

/* ---------- Job/progress presentation ---------- */
.progress{
  height:13px;
  margin:28px 0 11px;
  background:#edf3f7;
  border-color:#dfe9f0;
  box-shadow:inset 0 1px 2px rgba(11,41,71,.035);
}
.progress>div{background:linear-gradient(90deg,#a2daff 0%,#62bce9 100%);box-shadow:0 0 15px rgba(98,188,233,.22)}
.progressmeta{font-size:11px;font-weight:700}

/* ---------- File rows / utility surfaces ---------- */
.file{
  padding:16px 10px;
  border-radius:13px;
  border-bottom:1px solid #edf2f6;
}
.file:hover{padding-left:14px;padding-right:14px;background:#f8fcff}
.msg{border-radius:14px}
.kpi{border-radius:17px}

/* ---------- Mobile: keep the premium header usable ---------- */
@media(max-width:1050px){
  nav{height:82px;padding:0 18px}
  nav::before{inset:9px 10px;border-radius:19px}
  nav img{width:128px;margin-left:13px;margin-right:10px}
  nav .brand{display:none}
  nav .user{display:none}
  nav a{padding:9px 10px;font-size:11px}
  nav a:last-child{margin-left:2px}
  main{width:min(100% - 34px,1380px)}
}
@media(max-width:700px){
  nav{height:72px;padding:0 12px}
  nav::before{inset:8px 7px;border-radius:17px}
  nav img{width:104px;height:38px;margin-left:9px;margin-right:4px}
  nav a{font-size:10px;padding:8px 8px}
  nav a:nth-of-type(n+4){display:none}
  nav a:last-child{display:inline-flex}
  main{width:calc(100% - 22px);padding-top:26px}
  .hero{padding:29px 23px 30px;border-radius:23px}
  .hero h1{font-size:37px;letter-spacing:-1.8px}
  .card{padding:20px;border-radius:19px}
}
