
:root{
  --bg:#ecf4f7;
  --bg-2:#dfeef2;
  --surface:rgba(255,255,255,.78);
  --surface-strong:#ffffff;
  --surface-2:#eef6f8;
  --text:#0f172a;
  --muted:#5b6b7c;
  --line:rgba(148,163,184,.28);
  --primary:#0f766e;
  --primary-2:#0b5f59;
  --accent:#2563eb;
  --accent-2:#38bdf8;
  --danger:#b91c1c;
  --success:#166534;
  --warning:#92400e;
  --shadow:0 18px 45px rgba(15,23,42,.10);
  --shadow-soft:0 10px 30px rgba(15,23,42,.07);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(37,99,235,.14), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #f8fbfc 45%, #eef6f8 100%);
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 42px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:20px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.brand-title{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
}

.brand-subtitle{
  color:var(--muted);
  font-size:13px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav a,.btn,.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 15px;
  border-radius:12px;
  border:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
}

.nav a,.btn-secondary{
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-soft);
}

.nav a:hover,.btn-secondary:hover{
  transform:translateY(-1px);
  background:#ffffff;
  text-decoration:none;
}

.btn{
  background:linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color:white;
  border-color:transparent;
  box-shadow:0 16px 36px rgba(15,118,110,.22);
}
.btn:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
  text-decoration:none;
}

.btn-danger{
  background:linear-gradient(135deg,#b91c1c 0%, #dc2626 100%)!important;
  border-color:transparent!important;
  color:#fff!important;
}

.hero{
  padding:44px 0 20px;
}
.hero-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(56,189,248,.20), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.18), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.88) 100%);
  border:1px solid rgba(255,255,255,.6);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.12);
  padding:38px;
  backdrop-filter:blur(12px);
}
.hero-card::after{
  content:"";
  position:absolute;
  inset:auto -40px -40px auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(15,118,110,.14), transparent 62%);
  pointer-events:none;
}
.hero h1{
  margin:0 0 12px;
  font-size:48px;
  line-height:1.02;
  max-width:760px;
}
.hero p{
  color:#475569;
  font-size:18px;
  max-width:760px;
  margin:0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:22px;
}

.card{
  position:relative;
  background:var(--surface);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.58);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, var(--primary), var(--accent-2));
  opacity:.95;
}
.card h2,.card h3{
  margin:0 0 8px;
  font-size:20px;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.page-title{
  margin:10px 0 6px;
  font-size:38px;
}
.page-subtitle{
  margin:0 0 16px;
  color:var(--muted);
}

.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:18px;
}
.stat{
  background:linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.70) 100%);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.58);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px;
}
.stat-label{
  color:var(--muted);
  font-size:13px;
}
.stat-value{
  font-size:30px;
  font-weight:800;
  margin-top:8px;
}

.table-wrap{
  overflow:auto;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.58);
  border-radius:20px;
  box-shadow:var(--shadow);
}

table{
  width:100%;
  border-collapse:collapse;
  background:transparent;
}
th,td{
  border-bottom:1px solid rgba(226,232,240,.8);
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}
th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#475569;
  background:rgba(248,250,252,.78);
}
td{font-size:14px}
tr:hover td{background:rgba(255,255,255,.55)}

.form-card{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.58);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px;
}

.row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.col{
  flex:1;
  min-width:220px;
}

label{
  display:block;
  font-size:13px;
  color:#334155;
  margin-bottom:6px;
  font-weight:700;
}
input,textarea,select{
  width:100%;
  border:1px solid #cbd5e1;
  background:rgba(255,255,255,.95);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  min-height:44px;
  outline:none;
}
textarea{min-height:160px;resize:vertical}
input:focus,textarea:focus,select:focus{
  border-color:#7dd3fc;
  box-shadow:0 0 0 4px rgba(56,189,248,.18);
}

.badge,.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
  background:#f8fafc;
  font-weight:700;
}
.badge-ok,.pill-ok{background:#ecfdf5;color:var(--success);border-color:#bbf7d0}
.badge-warn,.pill-warn{background:#fffbeb;color:var(--warning);border-color:#fde68a}
.badge-danger,.pill-danger{background:#fef2f2;color:var(--danger);border-color:#fecaca}
.badge-info,.pill-info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.footer{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(148,163,184,.22);
  color:var(--muted);
  font-size:14px;
}

.auth-shell{
  max-width:540px;
  margin:78px auto;
  padding:0 18px;
}
.auth-card{
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.88) 100%);
  border:1px solid rgba(255,255,255,.68);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.14);
  padding:28px;
  backdrop-filter:blur(12px);
}
.auth-title{
  margin:0 0 8px;
  font-size:36px;
}
.auth-subtitle{
  margin:0 0 20px;
  color:var(--muted);
}

.notice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
  margin-bottom:16px;
}

@media (max-width: 700px){
  .hero h1{font-size:36px}
  .page-title{font-size:30px}
  .hero-card{padding:26px}
}


.logo{height:110px;width:auto;display:block;}

.logo-sm{height:92px;width:auto;display:block;}

@media (max-width: 700px){.logo{height:78px}.logo-sm{height:66px}}

