:root {
  --bg-0: #070b12;
  --bg-1: #0c121c;
  --bg-2: #121a27;
  --bg-3: #182233;
  --line: rgba(186, 214, 240, 0.12);
  --text: #e8f1fa;
  --muted: #8fa3b8;
  --ice: #d7e9f8;
  --snow: #f4f8fc;
  --accent: #5eb0e8;
  --accent-2: #8fd0ff;
  --danger: #e25b6c;
  --ok: #3ecf8e;
  --warn: #e2b45b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --display: Orbitron, "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 176, 232, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(215, 233, 248, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #05080e);
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--snow); }

.landing {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.landing-hero {
  text-align: center;
  max-width: 520px;
}
.landing-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.08em;
  margin: 0.2em 0;
  color: var(--snow);
  text-shadow: 0 0 40px rgba(143, 208, 255, 0.25);
}
.landing-hero p { color: var(--muted); }
.wolf-mark {
  font-size: 3.5rem;
  filter: drop-shadow(0 10px 30px rgba(94, 176, 232, 0.35));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(420px, 100%);
  background: linear-gradient(160deg, rgba(24, 34, 51, 0.95), rgba(12, 18, 28, 0.98));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: rgba(8, 12, 20, 0.92);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.brand strong {
  display: block;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.brand span { color: var(--muted); font-size: 0.78rem; }
.nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  transition: 0.2s ease;
}
.nav a:hover, .nav a.active {
  background: rgba(94, 176, 232, 0.12);
  color: var(--snow);
}

.content {
  padding: 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.topbar h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}
.muted { color: var(--muted); }

.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: linear-gradient(165deg, rgba(24, 34, 51, 0.9), rgba(12, 18, 28, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  animation: rise 0.5s ease both;
}
.stat:nth-child(2) { animation-delay: 0.05s; }
.stat:nth-child(3) { animation-delay: 0.1s; }
.stat:nth-child(4) { animation-delay: 0.15s; }
.stat .label { color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.stat .value { font-size: 1.35rem; font-weight: 700; color: var(--ice); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.panel {
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.panel h3 { margin: 0 0 14px; font-size: 1rem; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: rgba(94, 176, 232, 0.04); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(94, 176, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 176, 232, 0.12);
}
textarea { min-height: 100px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(143, 208, 255, 0.35); }
.btn-primary {
  background: linear-gradient(135deg, #4a9fd4, #6ebff0);
  color: #061018;
  border: none;
  font-weight: 700;
}
.btn-danger { background: rgba(226, 91, 108, 0.15); color: #ffb4be; border-color: rgba(226, 91, 108, 0.35); }
.btn-ok { background: rgba(62, 207, 142, 0.15); color: #9af0c5; border-color: rgba(62, 207, 142, 0.35); }
.btn-sm { padding: 6px 10px; font-size: 0.82rem; }

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.alert-ok { background: rgba(62, 207, 142, 0.12); color: #9af0c5; }
.alert-err { background: rgba(226, 91, 108, 0.12); color: #ffb4be; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge-active, .badge-approved { color: #9af0c5; border-color: rgba(62, 207, 142, 0.35); }
.badge-pending { color: #ffd89a; border-color: rgba(226, 180, 91, 0.35); }
.badge-suspended { color: #ffd89a; border-color: rgba(226, 180, 91, 0.4); }
.badge-rejected, .badge-banned { color: #ffb4be; border-color: rgba(226, 91, 108, 0.35); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.search-bar input { max-width: 360px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .content { padding: 16px; }
  .grid-stats { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
