:root{
  --bg1:#050814;
  --bg2:#0b1220;

  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.05);

  --stroke: rgba(255,255,255,.14);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --shadow: 0 22px 55px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);

  --radius: 18px;

  /* accents (optional use) */
  --teal:#19d3c5;
  --indigo:#6d5efc;
  --rose:#ff4d8d;
  --good:#32d296;
  --warn:#ffd166;
  --danger:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(25,211,197,.18), transparent 58%),
    radial-gradient(900px 520px at 88% 8%, rgba(109,94,252,.18), transparent 58%),
    radial-gradient(760px 520px at 76% 86%, rgba(255,77,141,.14), transparent 58%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg1) 100%);
}

a{color:inherit}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}

/* ---------- BRAND (logo + title) ---------- */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width: 0;
}

.brand-text{
  min-width: 0;
}

.brand h1{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Logo container (replaces old rectangle) */
.logo-wrap{
  width:44px;
  height:44px;
  border-radius:14px;
  position:relative;
  flex:0 0 auto;
  display:grid;
  place-items:center;
}

/* Actual image */
.logo-img{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  position:relative;
  z-index:2;
}

/* Soft glow layer */
.logo-glow{
  position:absolute;
  inset:-10px;
  border-radius:18px;
  z-index:1;
  background:
    radial-gradient(circle at 35% 30%, rgba(25,211,197,.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(109,94,252,.45), transparent 55%);
  filter: blur(10px);
  opacity: .55;
  animation: logoGlow 3.2s ease-in-out infinite;
}

/* Gentle glow animation */
@keyframes logoGlow{
  0%,100%{
    transform: scale(0.98);
    opacity: .48;
    filter: blur(11px);
  }
  50%{
    transform: scale(1.06);
    opacity: .75;
    filter: blur(14px);
  }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .logo-glow{ animation: none; }
}

/* ---------- NAV ---------- */
.nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow2);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

.btn.primary{
  border-color: rgba(25,211,197,.30);
  background: linear-gradient(90deg, rgba(25,211,197,.18), rgba(109,94,252,.14));
}
.btn.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}

/* ---------- LAYOUT ---------- */
.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
}

.card{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px;
  position:relative;
  overflow:hidden;
}

.card h2{
  margin:0 0 10px;
  font-size:16px;
}

.card-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.small{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  margin:0;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  font-size:13px;
  color: var(--muted);
}

.dot{
  width:8px;height:8px;border-radius:50%;
  background: rgba(25,211,197,.95);
  box-shadow: 0 0 0 6px rgba(25,211,197,.15);
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse{
  0%,100%{ transform:scale(1); box-shadow: 0 0 0 6px rgba(25,211,197,.15);}
  50%{ transform:scale(1.1); box-shadow: 0 0 0 10px rgba(25,211,197,.10);}
}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

.item{
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  padding: 12px;
  box-shadow: var(--shadow2);
}

.item .row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}

.item h3{
  margin:0;
  font-size:14px;
}

.item p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.badge{
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  white-space:nowrap;
}

.badge.urgent{
  border-color: rgba(239,68,68,.40);
  background: rgba(239,68,68,.16);
}

.form{
  display:grid;
  gap:10px;
}

label{
  font-size:13px;
  color:var(--muted);
  font-weight:700
}

input, textarea, select{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-size:14px;
  outline:none;
}

input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }

textarea{ min-height: 92px; resize: vertical; }

.hr{
  height:1px;
  background:rgba(255,255,255,.10);
  border:none;
  margin:14px 0
}

.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}

.notice{
  padding:10px 12px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
}

.hidden{display:none}
