:root{
  --bg0:#07080c;
  --bg1:#0d0f16;
  --card:#121521;
  --card2:#151a29;
  --text:#e9ecf6;
  --muted:#b9c0d7;
  --line:rgba(255,255,255,.10);
  --line2:rgba(138,180,255,.22);
  --accent:#8ab4ff;
  --accent2:#a78bfa;
  --good:#35d07f;
  --bad:#ff5a75;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: system-ui, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(138,180,255,.18), transparent 55%),
    radial-gradient(900px 600px at 60% 110%, rgba(53,208,127,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  position:relative;
  overflow-x:hidden;
}

/* subtle grid */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,.85), transparent 70%);
  opacity:.5;
}

.wrap{ max-width: 1100px; margin: 24px auto 44px; padding: 0 16px; position:relative; }

.header{
      display:flex;
  align-items:flex-start;
  gap:18px;
  padding:18px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(18,21,33,.92), rgba(12,14,22,.82));
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}
.brand img{
  width:200px;
  height:200px;
  object-fit:contain;
  filter: drop-shadow(0 0 10px rgba(138,180,255,.35));
}
.brand .title{
  line-height:1.1;
}
.brand .title strong{
  display:block;
  font-size:26px;
  letter-spacing:.5px;
}
.brand .title span{
  display:block;
  font-size:14px;
  color:var(--muted);
  opacity:.95;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-start;
  margin-left:auto;
  padding-top:18px;
}
.nav a{
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:12px;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.nav a:hover{
  background: rgba(138,180,255,.10);
  border-color: rgba(138,180,255,.22);
  transform: translateY(-1px);
}
.nav .pill{
  color: var(--accent);
  border-color: rgba(138,180,255,.22);
  background: rgba(138,180,255,.08);
}

.card{
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(18,21,33,.92), rgba(14,16,26,.88));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 44px rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
}
.card:hover{ border-color: rgba(138,180,255,.18); }

h1,h2,h3{ margin: 10px 0 8px; }
h2{ font-size: 22px; letter-spacing:.2px; }
p{ color: var(--muted); line-height:1.5; }

label{ display:block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input, select{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.55);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(138,180,255,.35);
  box-shadow: 0 0 0 3px rgba(138,180,255,.12);
}

.row{ display:flex; gap:12px; flex-wrap:wrap; }
.inline{ display:inline; }
hr{ border:0; border-top:1px solid rgba(255,255,255,.08); margin: 14px 0; }

button{
  cursor:pointer;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(138,180,255,.22);
  background: linear-gradient(180deg, rgba(138,180,255,.16), rgba(138,180,255,.08));
  color: var(--text);
  font-weight: 600;
  transition: transform .08s ease, filter .12s ease, border-color .12s ease;
}
button:hover{ transform: translateY(-1px); filter: brightness(1.08); }
button:active{ transform: translateY(0px); filter: brightness(.98); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
}
.table th, .table td{
  text-align:left;
  padding:10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
}
.table th{
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(138,180,255,.06);
}
.badge{
  display:inline-block;
  font-size:12px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.badge.good{ border-color: rgba(53,208,127,.25); color: #bff3d8; background: rgba(53,208,127,.10); }
.badge.bad{ border-color: rgba(255,90,117,.25); color: #ffd0d8; background: rgba(255,90,117,.10); }

.flash{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.footer{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(185,192,215,.72);
  text-align:center;
}
.smalllink{ font-size: 13px; }

.flash.ok{ border-color: rgba(53,208,127,.25); background: rgba(53,208,127,.10); }
.flash.error{ border-color: rgba(255,90,117,.25); background: rgba(255,90,117,.10); }

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
small{ color: rgba(185,192,215,.78); }


@media (max-width: 720px){
  .header{ flex-direction: column; align-items: stretch; }
  .nav{ margin-left: 0; padding-top: 0; }
  .brand img{ width:120px; height:120px; }
  .brand{ min-width: 0; }
}
