:root{
  --bg:#0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --accent:#6ea8ff;
  --danger:#ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --blur: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial;
}
*{box-sizing:border-box}
body{
  margin:0; font-family:var(--font); color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(110,168,255,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(160,110,255,.14), transparent 55%),
              var(--bg);
}
.container{max-width:1200px;margin:0 auto;padding:20px}
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  margin:10px 0 18px 0;
}
.brand{display:flex;gap:10px;align-items:center}
.badge{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, rgba(110,168,255,.85), rgba(160,110,255,.65));
  box-shadow: var(--shadow);
}
.title{font-weight:700;letter-spacing:.2px}
.card{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}
.card-pad{padding:16px}
.grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:900px){ .grid{grid-template-columns:1fr 1fr} }
.btn{
  border:1px solid var(--stroke);
  background: var(--panel2);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:8px;
  cursor:pointer;
}
.btn:hover{border-color:rgba(255,255,255,.18)}
.btn-primary{border-color:rgba(110,168,255,.45)}
.btn-danger{border-color:rgba(255,107,107,.45); color:#ffd2d2}
.pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.20);
  color: var(--muted);
  font-size:12px;
}
.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.row{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
}
.row td{padding:14px}
.row td:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}
.row td:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}
.muted{color:var(--muted)}
.input, select, textarea{
  width:100%;
  background: rgba(0,0,0,.25);
  border:1px solid var(--stroke);
  color:var(--text);
  padding:12px 12px;
  border-radius: 14px;
  outline:none;
}
.input:focus, select:focus, textarea:focus{border-color: rgba(110,168,255,.55)}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.kpi{display:flex;gap:10px;flex-wrap:wrap}
.kpi .pill strong{color:var(--text)}

/* --- Lead Cards (Modern) --- */
.lead-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width: 980px){
  .lead-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lead-card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  overflow:hidden;
}

.lead-card-inner{ padding: 14px; }

.lead-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.lead-title{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width:0;
}

.lead-name{
  font-weight: 780;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-sub{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}

.lead-meta{
  display:grid;
  gap: 8px;
  margin-top: 12px;
}

.meta-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  border-radius: 16px;
}

.meta-key{ color: rgba(255,255,255,.65); font-size: 12px; }
.meta-val{
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  max-width: 70%;
  text-align:right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-message{
  margin-top: 12px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  border-radius: 16px;
  color: rgba(255,255,255,.80);
  line-height: 1.55;
  font-size: 13px;
}

.lead-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

.btn-compact{
  padding: 9px 12px;
  border-radius: 14px;
}

.pill-strong{
  border-color: rgba(110,168,255,.35);
  background: rgba(110,168,255,.10);
  color: rgba(255,255,255,.86);
}

/* Mobilde aksiyon butonu daha kullanışlı olsun */
@media(max-width: 520px){
  .lead-actions{ width:100%; justify-content:stretch; }
  .lead-actions .btn{ width:100%; justify-content:center; }
}


/* --- Lead Cards (Modern, responsive) --- */
.lead-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width: 980px){
  .lead-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lead-card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  overflow:hidden;
}

.lead-card-inner{ padding: 14px; }

.lead-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.lead-title{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width:0;
}

.lead-name{
  font-weight: 780;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-sub{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}

.lead-meta{
  display:grid;
  gap: 8px;
  margin-top: 12px;
}

.meta-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  border-radius: 16px;
}

.meta-key{ color: rgba(255,255,255,.65); font-size: 12px; }
.meta-val{
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  max-width: 70%;
  text-align:right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-message{
  margin-top: 12px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  border-radius: 16px;
}

.lead-message-text{
  color: rgba(255,255,255,.80);
  line-height: 1.55;
  font-size: 13px;
}

.lead-message[data-collapsed="1"] .lead-message-text{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-toggle{
  margin-top: 10px;
  width: fit-content;
}

.lead-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

.btn-compact{
  padding: 9px 12px;
  border-radius: 14px;
}

.pill-strong{
  border-color: rgba(110,168,255,.35);
  background: rgba(110,168,255,.10);
  color: rgba(255,255,255,.86);
}

/* Mobilde aksiyon butonu daha kullanışlı olsun */
@media(max-width: 520px){
  .lead-actions{ width:100%; justify-content:stretch; }
  .lead-actions .btn{ width:100%; justify-content:center; }
}

select.input { appearance: none; -webkit-appearance: none; }