:root{
  --bg:#333333;
  --panel:#242424;
  --card:#1f1f1f;
  --card2:#292929;
  --text:#fff;
  --muted:#d7d7d7;
  --soft:#aaa;
  --line:rgba(255,255,255,.12);
  --orange:#ff5800;
  --orange2:#ff7a2f;
  --green:#20c970;
  --red:#ff4d4d;
  --blue:#4da3ff;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}

.app{
  min-height:100svh;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,88,0,.24),transparent 30%),
    radial-gradient(circle at 90% 8%,rgba(77,163,255,.13),transparent 28%),
    var(--bg);
  padding-bottom:92px;
}

.top{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(36,36,36,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.top-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.logo{
  width:40px;
  height:40px;
  border-radius:15px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  display:grid;
  place-items:center;
  font-weight:950;
  box-shadow:0 12px 32px rgba(255,88,0,.34);
}

.brand-title{
  font-weight:950;
  font-size:17px;
  letter-spacing:-.04em;
}

.brand-sub{
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:18px 16px;
}

.hero{
  margin-bottom:16px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  border:1px solid var(--line);
  font-size:13px;
  font-weight:850;
}

.dot{
  width:9px;
  height:9px;
  border-radius:99px;
  background:var(--green);
  box-shadow:0 0 0 5px rgba(32,201,112,.13);
}

h1{
  margin:16px 0 8px;
  font-size:36px;
  line-height:1;
  letter-spacing:-.06em;
}

.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:999px;
  padding:12px 16px;
  font-weight:950;
  cursor:pointer;
  text-align:center;
}

.btn-orange{
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  box-shadow:0 14px 34px rgba(255,88,0,.28);
}

.btn-dark{
  background:rgba(255,255,255,.09);
  color:#fff;
  border:1px solid var(--line);
}

.btn-green{
  background:rgba(32,201,112,.18);
  color:#fff;
  border:1px solid rgba(32,201,112,.35);
}

.btn-red{
  background:rgba(255,77,77,.15);
  color:#fff;
  border:1px solid rgba(255,77,77,.28);
}

.btn-full{width:100%}

.metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.metric{
  background:rgba(255,255,255,.075);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
}

.metric b{
  display:block;
  font-size:26px;
  letter-spacing:-.05em;
}

.metric span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

.panel{
  background:rgba(255,255,255,.075);
  border:1px solid var(--line);
  border-radius:28px;
  padding:14px;
  box-shadow:0 20px 58px rgba(0,0,0,.28);
  margin-bottom:14px;
}

.form{
  display:grid;
  gap:10px;
}

.input,.select,.textarea{
  width:100%;
  min-height:52px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(0,0,0,.2);
  color:#fff;
  outline:0;
  padding:14px;
  font-size:16px;
}

.input::placeholder,.textarea::placeholder{color:rgba(255,255,255,.58)}
.textarea{min-height:94px;resize:vertical}

.filters{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:14px;
}

.pipeline{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.col{
  background:rgba(0,0,0,.16);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
}

.col-head{
  padding:14px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.col-head strong{
  font-size:16px;
  letter-spacing:-.03em;
}

.count{
  min-width:28px;
  height:28px;
  border-radius:99px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-weight:950;
  font-size:12px;
}

.col-body{
  padding:12px;
  display:grid;
  gap:10px;
}

.lead-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  padding:13px;
}

.lead-card h3{
  margin:0 0 6px;
  font-size:17px;
  letter-spacing:-.03em;
}

.lead-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.lead-meta{
  display:grid;
  gap:5px;
  margin:10px 0;
  color:var(--muted);
  font-size:12px;
}

.tag{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(255,88,0,.16);
  font-size:11px;
  font-weight:950;
  margin-top:8px;
}

.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}

.small-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  margin-top:8px;
}

.small-btn{
  min-height:38px;
  font-size:12px;
  padding:9px 10px;
}

.empty{
  padding:14px;
  color:var(--soft);
  font-size:13px;
  line-height:1.35;
}

.bottom{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:70;
  padding:10px 12px max(10px,env(safe-area-inset-bottom));
  background:rgba(36,36,36,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
}

.bottom-inner{
  max-width:520px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

@media(min-width:760px){
  h1{font-size:58px;max-width:760px}
  .metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
  .form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form .full{grid-column:1/-1}
  .filters{grid-template-columns:1fr 220px 220px}
  .pipeline{grid-template-columns:repeat(5,minmax(0,1fr))}
  .bottom{display:none}
  .app{padding-bottom:0}
}
