/* === СТИЛЬ 5: NEON GAMING (Геймерский неон) === */
:root {
  --bg: #0f111a; /* Глубокий сине-черный */
  --panel: #1a1d29; /* Панели с легким синим оттенком */
  --panel-strong: #232736;
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --accent: #6366f1; /* Индиго / Неоновый синий */
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-hover: #4f46e5;
  --success: #10b981;
  --danger: #ef4444;
  --border: #2d3243;
  --input-bg: #141722;
}

* { box-sizing: border-box; }

body.admin-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "FeatureMono", sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.admin-shell {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
  padding: 40px 0;
}

.admin-shell-wide { width: min(1100px, calc(100% - 24px)); }

/* === КАРТОЧКИ === */
.login-card, .panel-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 32px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 800;
}

h1, h2 { margin: 0; font-family: "FeatureMono", sans-serif; }
h1 { font-size: 1.8rem; margin-bottom: 8px; }
h2 { font-size: 1.1rem; }

.lead-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.login-form, .status-form { display: grid; gap: 16px; }

label { display: grid; gap: 8px; }
label span { color: var(--text-main); font-size: 0.85rem; font-weight: 600; }

/* === ИНПУТЫ === */
input, textarea, select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  outline: none;
  padding: 12px 16px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder {
  color: #4b5263;
}

/* === КНОПКИ === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  font-size: 0.95rem;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6); /* Градиент */
  width: 100%;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.button-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.button-secondary {
  color: var(--text-main);
  background: var(--panel-strong);
  border: 1px solid var(--border);
}
.button-secondary:hover {
  background: var(--border);
}

.form-status { margin: 0; font-size: 0.9rem; font-weight: 600; text-align: center; }
.is-error { color: var(--danger); }
.is-success { color: var(--success); }

/* === ШАПКА === */
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* === ПАНЕЛЬ АУДИТА === */
.audit-panel { padding: 32px; }

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.audit-main-column { display: grid; gap: 24px; }

.audit-command-panel, .audit-form, .audit-preview-shell {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.audit-command-head, .audit-form-head, .audit-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.audit-eyebrow {
  margin: 0 0 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
}

.audit-current-command, .audit-meta-chip, .audit-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

/* === КОМАНДЫ === */
.audit-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audit-command-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  transition: all 0.2s;
  cursor: pointer;
}

.audit-command-pill:hover {
  background: var(--panel-strong);
  border-color: #3f4659;
}

.audit-command-pill.is-active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.audit-command-pill-label { color: var(--text-main); font-weight: 700; font-size: 0.95rem; }
.audit-command-pill-title { color: var(--text-muted); font-size: 0.8rem; }

/* === ПОЛЯ ФОРМЫ === */
.audit-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.audit-field { display: grid; gap: 8px; }
.audit-field > span { color: var(--text-main); font-size: 0.85rem; font-weight: 600; }
.audit-field-full { grid-column: 1 / -1; }
.audit-field-info { align-content: end; }

.audit-executor-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}
.audit-executor-card strong { font-size: 0.95rem; color: var(--accent); }
.audit-executor-card small { color: var(--text-muted); font-size: 0.8rem; }

.audit-submit {
  width: 100%;
  margin-top: 8px;
}

/* === ЭМБЕД (Discord Style) === */
.audit-preview-shell {
  position: sticky;
  top: 24px;
}

.audit-embed-card {
  border-radius: 12px;
  background: #2b2d31;
  overflow: hidden;
  border: 1px solid #1e1f22;
}

.audit-embed-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.audit-embed-content { padding: 20px; }
.audit-embed-top { margin-bottom: 16px; }
.audit-embed-app { margin: 0 0 8px; color: #b5bac1; font-size: 0.75rem; font-weight: 700; }
.audit-embed-top h3 { margin: 0; font-size: 1.1rem; color: #f2f3f5; }
.audit-embed-description { margin: 8px 0 0; color: #b5bac1; font-size: 0.85rem; }

.audit-embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audit-embed-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #1e1f22;
}
.audit-embed-item span { color: #b5bac1; font-size: 0.75rem; font-weight: 600; }
.audit-embed-item strong { font-size: 0.9rem; color: #f2f3f5; line-height: 1.4; word-break: break-word; }
.audit-embed-item-full { grid-column: 1 / -1; }

.audit-profile-meta {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #2b2d31;
}
.audit-profile-meta span { color: #b5bac1; font-size: 0.7rem; }
.audit-profile-meta b { color: #f2f3f5; font-size: 0.85rem; }

.audit-quote-block {
  display: block;
  padding: 8px 12px;
  border-left: 3px solid #6366f1;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0 4px 4px 0;
}

.audit-embed-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #1e1f22;
}
.audit-embed-footer span { color: #b5bac1; font-size: 0.75rem; }
.audit-embed-footer strong { color: #b5bac1; font-size: 0.8rem; }

/* === АДАПТИВ === */
@media (max-width: 900px) {
  .audit-layout { grid-template-columns: 1fr; }
  .audit-preview-shell { position: relative; top: 0; }
}

@media (max-width: 600px) {
  .admin-header { display: grid; }
  .audit-command-grid, .audit-fields-grid, .audit-embed-grid { grid-template-columns: 1fr; }
  .login-card, .panel-card { padding: 20px; }
}
@font-face {
  font-family: 'FeatureMono';
  src: url('fonts/FeatureMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}