﻿:root {
  --bg-a: #0c1224;
  --bg-b: #14203c;
  --card: rgba(10, 18, 38, 0.75);
  --text: #e6ecff;
  --muted: #a8b4d9;
  --line: rgba(168, 180, 217, 0.22);
  --accent: #22d3ee;
  --accent-2: #f59e0b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, #1e2f58, transparent),
              radial-gradient(900px 600px at 95% 20%, #2e335f, transparent),
              linear-gradient(140deg, var(--bg-a), var(--bg-b));
  min-height: 100vh;
}
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.layout { max-width: 1400px; margin: 0 auto; padding: 20px; display: grid; gap: 16px; position: relative; }
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  padding: 16px;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: 1.6rem; }
p { margin: 6px 0 0; color: var(--muted); }
.panel { display: grid; gap: 8px; }
label { font-weight: 600; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 12, 27, 0.6);
  color: var(--text);
  padding: 10px 12px;
}
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #041423;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary {
  background: linear-gradient(135deg, var(--accent-2), #fb923c);
  color: #241200;
}
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
h2 { margin: 0 0 10px; }
.list { display: grid; gap: 8px; max-height: 62vh; overflow: auto; }
.customer-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5, 10, 24, 0.45);
  cursor: pointer;
}
.customer-item.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.kpi { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.ticket {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 10, 24, 0.45);
  padding: 10px;
}
.ticket h3 { margin: 0 0 5px; font-size: 1rem; }
.article {
  margin-top: 8px;
  border-left: 2px solid var(--accent-2);
  padding-left: 8px;
  color: #d5def7;
  white-space: pre-wrap;
}
.status { color: var(--muted); min-height: 1.2em; }
.meta { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .list { max-height: none; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
