body.admin {
  background: #070707;
  font-family: "Rajdhani", sans-serif;
  color: #f4f1ec;
  min-height: 100vh;
  margin: 0;
}

.admin::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 300px at 10% -10%, rgba(255,77,0,.18), transparent 50%),
    repeating-linear-gradient(135deg, #0c0c0c 0 2px, #141414 2px 4px);
  opacity: .5;
}

.admin-shell, .login-card { position: relative; z-index: 1; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(12,12,12,.88);
  border: 1px solid rgba(255,77,0,.35);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.login-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 18px;
}

.login-card h1 {
  font-family: Orbitron, sans-serif;
  font-size: 18px;
  letter-spacing: .14em;
  margin: 0 0 8px;
}

.login-card p { color: #a8a39a; margin: 0 0 18px; }

label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 6px; color: #cfcfcf; }

input, textarea, select {
  width: 100%;
  background: #101010;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }

.alert {
  background: rgba(179,0,0,.2);
  border: 1px solid #b30000;
  color: #ffd0d0;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.ok {
  background: rgba(37,211,102,.12);
  border: 1px solid #25d366;
  color: #c8ffdc;
}

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  background: rgba(7,7,7,.86);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.admin-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-brand strong {
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
}

.admin-nav a { color: #cfcfcf; margin-right: 12px; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.admin-nav a.active, .admin-nav a:hover { color: #ff7a18; }

.admin-main { width: min(1100px, calc(100% - 32px)); margin: 28px auto 80px; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(14,14,14,.8);
  border-radius: 16px;
  overflow: hidden;
}

.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.table th { color: #ff7a18; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #111; }

.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.preview-box {
  border: 1px dashed rgba(255,122,24,.4);
  border-radius: 16px;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0c0c0c;
}
.preview-box img { width: 100%; height: 100%; object-fit: cover; }

.row-actions a, .row-actions button {
  margin-right: 8px;
  color: #ffb067;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.check input { width: auto; }

.news-preview {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,122,24,.35);
  background: linear-gradient(180deg, #16110d, #0b0b0b);
  padding: 18px;
  min-height: 280px;
}

.news-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin: 10px 0;
}

.news-preview h3 { font-family: Orbitron, sans-serif; letter-spacing: .06em; }
.news-preview p { color: #a8a39a; white-space: pre-wrap; }

@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: column; align-items: flex-start; }
}
