:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --border:#1f2a44;
  --brand:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --btn:#2563eb;
  --btn2:#334155;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  font-synthesis-weight:none;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(34,197,94,.20), transparent 45%),
              radial-gradient(1200px 600px at 80% 0%, rgba(37,99,235,.18), transparent 45%),
              var(--bg);
  color:var(--text);
}

.appbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{ width:42px; height:42px; border-radius:12px; box-shadow: var(--shadow); }
.title{ font-weight:800; letter-spacing:.2px; }
.subtitle{ font-size:12px; color:var(--muted); margin-top:2px; }

.right{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.status{ display:flex; gap:10px; align-items:center; font-size:13px; color:var(--muted); }
.dot{ width:10px; height:10px; border-radius:99px; background:#64748b; display:inline-block; }
.pill{ border:1px solid rgba(255,255,255,.10); padding:4px 10px; border-radius:999px; color:var(--text); background: rgba(255,255,255,.04); }

.container{
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 16px 28px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel{
  background: rgba(15,23,42,.88);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.panelHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.panelHeader h2{
  margin: 6px 0;
  font-size: 16px;
}

.mini{ display:flex; gap:10px; flex-wrap:wrap; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.field{ display:flex; flex-direction:column; gap:7px; }
.field span{ font-size:12px; color:var(--muted); }
input, select{
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.45);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{ border-color: rgba(37,99,235,.7); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

.actions{
  grid-column: 1 / -1;
  display:flex; gap:10px; justify-content:flex-end;
}

.btn{
  padding: 10px 12px;
  border:0;
  border-radius: 12px;
  cursor:pointer;
  background: var(--btn);
  color:white;
  font-weight:700;
}
.btn.secondary{ background: var(--btn2); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.fileBtn{ display:inline-flex; align-items:center; justify-content:center; }

.filters{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.search{ min-width: 260px; flex: 1; }
.select{ min-width: 190px; }

.list{ margin-top: 10px; display:grid; gap:10px; }
.card{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(2,6,23,.35);
}
.meta{ display:flex; flex-direction:column; gap:4px; }
.nameRow{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.app{ font-weight:800; }
.small{ font-size:12px; color:var(--muted); }
.badge{
  font-size:11px;
  font-weight:800;
  padding: 3px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.badge.soon{ border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12); color:#ffd18a; }
.badge.expired{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); color:#ffb4b4; }
.badge.active{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); color:#b7f7cf; }

.cardActions{ display:flex; gap:8px; justify-content:flex-end; }
.iconBtn{
  padding: 9px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}
.iconBtn.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}

.empty{
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  color: var(--muted);
  text-align:center;
}

.hidden{ display:none !important; }

.footer{
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 0 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap:wrap;
}

@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
  .card{ grid-template-columns: 1fr; }
  .cardActions{ justify-content:flex-start; }
}
