*{box-sizing:border-box}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",Arial,sans-serif;
  background:#020617;
  color:#f8fafc;
}

a{text-decoration:none;color:inherit}

.app{
  min-height:100vh;
  background:
    radial-gradient(circle at 80% 0%,rgba(20,184,166,.18),transparent 30%),
    radial-gradient(circle at 12% 18%,rgba(59,130,246,.16),transparent 32%),
    linear-gradient(180deg,#07111f 0%,#020617 60%,#000814 100%);
}

header{
  max-width:1180px;
  margin:0 auto;
  padding:22px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid rgba(148,163,184,.12);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:900;
  font-size:20px;
}

.logo{
  width:52px;
  height:52px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#0ea5e9,#14b8a6);
  color:#021018;
  font-weight:950;
  letter-spacing:-1px;
  box-shadow:0 14px 38px rgba(20,184,166,.28);
}

nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav-btn,.btn{
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.72);
  color:#e2e8f0;
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:750;
  display:inline-block;
  transition:.2s ease;
}

.nav-btn:hover,.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(45,212,191,.55);
  background:rgba(15,23,42,.95);
}

.primary{
  background:linear-gradient(135deg,#22d3ee,#2dd4bf);
  color:#03131a;
  border:none;
  box-shadow:0 10px 26px rgba(34,211,238,.22);
}

.telegram{
  background:linear-gradient(135deg,#22d3ee,#06b6d4);
  color:#00111a !important;
  border:none !important;
  font-weight:800;
  box-shadow:0 8px 20px rgba(34,211,238,.25);
}

.telegram:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 25px rgba(34,211,238,.35);
}

.danger{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.32);
  color:#fecaca;
}

.warning{
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.32);
  color:#fde68a;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:38px 20px 68px;
}

.hero{
  display:grid;
  grid-template-columns:1.04fr .96fr;
  gap:30px;
  align-items:center;
  padding:54px 0 40px;
}

.tag{
  display:inline-flex;
  padding:8px 13px;
  border:1px solid rgba(45,212,191,.38);
  background:rgba(20,184,166,.1);
  color:#99f6e4;
  border-radius:999px;
  font-size:13px;
  margin-bottom:20px;
}

h1{
  font-size:clamp(40px,6vw,72px);
  line-height:.98;
  margin:0;
  letter-spacing:-2.4px;
}

h2{letter-spacing:-.8px}

.accent{
  color:#67e8f9;
}

.hero p,.muted{
  color:#9fb2c8;
}

.hero p{
  line-height:1.85;
  font-size:17px;
  max-width:650px;
}

.panel,.card{
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(2,6,23,.76));
  border-radius:30px;
  box-shadow:0 24px 70px rgba(0,0,0,.36);
  backdrop-filter:blur(14px);
}

.panel{
  padding:26px;
  margin-bottom:20px;
}

.notice,.alert{
  padding:13px 15px;
  border-radius:18px;
  margin:16px 0;
  font-size:13px;
  line-height:1.7;
}

.notice{
  border:1px solid rgba(245,158,11,.34);
  background:rgba(245,158,11,.1);
  color:#fde68a;
}

.alert{
  background:rgba(56,189,248,.12);
  border:1px solid rgba(56,189,248,.28);
  color:#bae6fd;
}

.notice .badge{
  margin-top:6px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
  margin-top:22px;
}

.stat{
  border-radius:22px;
  background:rgba(2,6,23,.54);
  padding:18px;
  border:1px solid rgba(148,163,184,.13);
}

.stat b{
  display:block;
  font-size:26px;
  margin-bottom:6px;
  color:#ecfeff;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:26px;
}

.card{
  padding:22px;
}

.card h3{
  margin:0 0 10px;
  font-size:19px;
  color:#e0f2fe;
}

.card p{
  margin:0;
  color:#a8b8cc;
  line-height:1.7;
  font-size:14px;
}

.view-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:22px;
}

.view-title h2{
  font-size:36px;
  margin:0;
}

.form{
  display:grid;
  gap:13px;
  max-width:580px;
}

label{
  color:#dbeafe;
  font-size:14px;
  font-weight:750;
}

input,select,textarea{
  width:100%;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(2,6,23,.64);
  color:#f8fafc;
  border-radius:16px;
  padding:13px 14px;
  outline:none;
}

input:focus,select:focus,textarea:focus{
  border-color:rgba(45,212,191,.7);
  box-shadow:0 0 0 3px rgba(45,212,191,.12);
}

textarea{
  min-height:104px;
  resize:vertical;
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}

table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:20px;
  font-size:14px;
}

th,td{
  text-align:left;
  padding:14px 12px;
  border-bottom:1px solid rgba(148,163,184,.12);
}

th{
  color:#dbeafe;
  background:rgba(2,6,23,.5);
}

td{
  color:#e2e8f0;
}

.badge{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(148,163,184,.1);
}

.ok{
  color:#bbf7d0;
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.1);
}

.hold{
  color:#bae6fd;
  border-color:rgba(56,189,248,.35);
  background:rgba(56,189,248,.1);
}

.stop{
  color:#fecaca;
  border-color:rgba(239,68,68,.35);
  background:rgba(239,68,68,.1);
}

.mini-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mini{
  padding:7px 10px;
  border-radius:12px;
  font-size:12px;
}

footer{
  color:#64748b;
  text-align:center;
  padding:34px 20px 44px;
  font-size:13px;
}

hr{
  border:none;
  border-top:1px solid rgba(148,163,184,.18);
}

@media(max-width:860px){
  .hero,.two-col{
    grid-template-columns:1fr;
  }

  .grid,.stats{
    grid-template-columns:1fr;
  }

  table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  header{
    align-items:flex-start;
    gap:14px;
    flex-direction:column;
  }

  h1{
    font-size:42px;
  }
}