/* =============================================
   EMERGENCY HAMBURG — ADMIN STYLESHEET
   ============================================= */

/* Hérite des variables de style.css */

.admin-body {
  background: var(--dark);
  overflow: hidden;
}

/* ===================== LOGIN ===================== */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(224, 48, 48, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at center, #0d0f1a 0%, #07090f 100%);
}

/* Grille tactique derrière le login */
.login-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224, 48, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 48, 48, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-box {
  background: var(--dark-3); border: 1px solid var(--border-red);
  border-radius: var(--radius-lg); padding: 52px 44px; width: 100%; max-width: 430px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(224, 48, 48, 0.1);
  animation: loginAppear 0.5s var(--ease) both;
}

@keyframes loginAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-bright), var(--red), transparent);
}

/* Coin décoratif */
.login-box::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 60px; height: 60px;
  border-right: 2px solid var(--border-red);
  border-bottom: 2px solid var(--border-red);
  border-radius: 0 0 var(--radius-lg) 0;
}

.login-logo {
  font-family: var(--font-display); font-size: 2rem;
  margin-bottom: 6px; letter-spacing: 3px;
  color: var(--text);
}

.login-logo .accent { 
  color: var(--red);
  filter: drop-shadow(0 0 8px rgba(224, 48, 48, 0.5));
}

.login-box h2 {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 4px; letter-spacing: 0.5px;
}

.login-box > p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 36px; }

.btn-login {
  width: 100%; background: var(--red); color: white;
  border: none; border-radius: var(--radius-sm); padding: 14px;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s var(--ease); margin-top: 8px;
  box-shadow: 0 4px 20px rgba(224, 48, 48, 0.3);
}

.btn-login:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 28px rgba(224, 48, 48, 0.5);
  transform: translateY(-1px);
}

.back-link {
  display: block; margin-top: 18px;
  color: var(--text-muted); font-size: 0.85rem; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: var(--red); }

.login-error {
  background: rgba(224, 48, 48, 0.1); border: 1px solid rgba(224, 48, 48, 0.3);
  color: var(--red-bright); border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 0.85rem; margin-bottom: 14px;
  font-family: var(--font-heading); font-weight: 600;
}

.login-hint { color: var(--text-muted); font-size: 0.75rem; margin-top: 14px; opacity: 0.5; }

/* ===================== LAYOUT ADMIN ===================== */
.admin-app {
  display: flex; height: 100vh; overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 248px; min-width: 248px;
  background: var(--dark-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; height: 100vh;
  overflow-y: auto; position: relative;
}

/* Ligne rouge gauche */
.sidebar::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--border-red) 0%, transparent 100%);
}

.sidebar-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  padding: 22px 20px 18px; letter-spacing: 3px;
  border-bottom: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; gap: 8px;
}

.sidebar-logo .accent { color: var(--red); }

.sidebar-nav {
  flex: 1; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 3px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: none; border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer; text-align: left; transition: all 0.2s var(--ease);
}

.nav-item:hover {
  background: var(--dark-4); color: var(--text);
  border-color: var(--border);
}

.nav-item.active {
  background: rgba(224, 48, 48, 0.1);
  color: var(--red-bright);
  border-color: rgba(224, 48, 48, 0.2);
}

.nav-icon { font-size: 1rem; }

.badge-count {
  margin-left: auto;
  background: var(--red); color: white;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark-4); border: 2px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.admin-name { font-weight: 700; font-size: 0.88rem; font-family: var(--font-heading); }
.admin-role { font-size: 0.72rem; color: var(--red); font-family: var(--font-heading); font-weight: 600; }

.logout-btn {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 1.1rem;
  transition: color 0.2s; padding: 4px;
}
.logout-btn:hover { color: var(--red); }

/* ---- MAIN ---- */
.admin-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--dark);
}

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid var(--border);
  background: var(--dark-2); flex-shrink: 0;
}

.page-title {
  font-family: var(--font-display); font-size: 1.8rem;
  letter-spacing: 2px; color: var(--text);
}

.page-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; font-family: var(--font-heading); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.bot-status-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(62, 207, 110, 0.1); border: 1px solid rgba(62, 207, 110, 0.25);
  color: var(--green); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
  font-family: var(--font-heading); letter-spacing: 0.5px;
}

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2s ease infinite;
}

.topbar-time {
  color: var(--text-muted); font-size: 0.82rem;
  font-family: monospace; font-variant-numeric: tabular-nums;
}

/* ---- TAB CONTENT ---- */
.tab-content {
  display: none; flex: 1; overflow-y: auto;
  padding: 28px 32px;
}

.tab-content.active { display: block; }

/* ---- STATS ROW ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 22px;
}

.stat-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.25s var(--ease);
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0; transition: opacity 0.25s;
}

.stat-card:hover { border-color: var(--border-red); }
.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.stat-icon.purple { background: rgba(136, 85, 221, 0.15); }
.stat-icon.blue   { background: rgba(74, 143, 223, 0.15); }
.stat-icon.green  { background: rgba(62, 207, 110, 0.15); }
.stat-icon.red    { background: rgba(224, 48, 48, 0.15); }

.stat-val {
  font-family: var(--font-display); font-size: 1.8rem;
  letter-spacing: 1px; line-height: 1;
}

.stat-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.5px; }
.stat-trend { margin-left: auto; font-size: 0.75rem; font-weight: 700; font-family: var(--font-heading); }
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--red); }
.stat-trend.neutral { color: var(--text-muted); }

/* ---- DASHBOARD GRID ---- */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}

.admin-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  transition: border-color 0.2s;
  position: relative; overflow: hidden;
}

.admin-card:hover { border-color: rgba(224, 48, 48, 0.15); }
.admin-card.wide { grid-column: 1 / -1; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-heading); letter-spacing: 0.5px;
}

.card-badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 10px; letter-spacing: 1px;
  font-family: var(--font-heading);
}

.card-badge.live   { background: rgba(224, 48, 48, 0.15); color: var(--red); }
.card-badge.online { background: rgba(62, 207, 110, 0.15); color: var(--green); }

/* ---- ACTIVITY FEED ---- */
.activity-feed { display: flex; flex-direction: column; gap: 10px; }

.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--dark-3);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.activity-item:hover { border-color: var(--border-red); }

.act-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.act-dot.green  { background: var(--green); }
.act-dot.blue   { background: var(--blue); }
.act-dot.red    { background: var(--red); }
.act-dot.yellow { background: var(--gold); }

.act-text { flex: 1; font-size: 0.85rem; color: var(--text); }
.act-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; font-family: monospace; }

/* BOT INFO GRID */
.bot-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.bot-info-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--dark-3);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}

.bi-label { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-heading); font-weight: 600; }
.bi-val { font-size: 0.85rem; font-weight: 700; color: var(--red); font-family: var(--font-heading); }

/* CHART */
.chart-container { height: 200px; position: relative; }

/* ---- BOT TAB ---- */
.bot-panel { display: flex; flex-direction: column; gap: 22px; }

.bot-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.bot-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--dark-4); border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(224, 48, 48, 0.25);
}

.bot-header-info { flex: 1; }
.bot-header-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 2px; font-family: var(--font-heading); }
.bot-tag { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.bot-status-row { display: flex; align-items: center; gap: 8px; }

.green-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse-green 2s ease infinite;
}

.bot-actions { display: flex; gap: 10px; }

.btn-bot-action {
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid;
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s;
}

.btn-bot-action.restart {
  background: rgba(74, 143, 223, 0.1); border-color: rgba(74, 143, 223, 0.3);
  color: var(--blue);
}
.btn-bot-action.restart:hover { background: rgba(74, 143, 223, 0.2); }

.btn-bot-action.stop {
  background: rgba(224, 48, 48, 0.1); border-color: rgba(224, 48, 48, 0.3);
  color: var(--red);
}
.btn-bot-action.stop:hover { background: rgba(224, 48, 48, 0.2); }

.bot-stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}

.bsg-item {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
  transition: border-color 0.2s;
}

.bsg-item:hover { border-color: var(--border-red); }
.bsg-icon { font-size: 1.4rem; margin-bottom: 6px; }
.bsg-val { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }
.bsg-lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; font-family: var(--font-heading); font-weight: 600; }

.commands-list { display: flex; flex-direction: column; gap: 8px; }

.cmd-item {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px; background: var(--dark-3);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.cmd-item:hover { border-color: var(--border-red); }
.cmd-name { font-family: monospace; color: var(--red); font-size: 0.85rem; min-width: 100px; }
.cmd-desc { flex: 1; color: var(--text-muted); font-size: 0.82rem; }
.cmd-uses { font-size: 0.75rem; color: var(--text-muted); }

/* Message Announce */
.msg-announce-area textarea {
  width: 100%; background: var(--dark-4);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem; resize: vertical;
  transition: border-color 0.2s;
}

.msg-announce-area textarea:focus {
  outline: none; border-color: rgba(224, 48, 48, 0.5);
  box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.07);
}

.btn-send-msg {
  background: var(--red); color: white;
  border: none; border-radius: var(--radius-sm); padding: 12px 24px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(224, 48, 48, 0.25);
}

.btn-send-msg:hover { background: var(--red-bright); transform: translateY(-1px); }

/* ---- TICKETS TAB ---- */
.tickets-toolbar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}

.tickets-filters { display: flex; gap: 7px; }

.filter-btn {
  padding: 7px 15px; border-radius: var(--radius-sm);
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(224, 48, 48, 0.1);
  border-color: rgba(224, 48, 48, 0.3);
  color: var(--red);
}

.search-input {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 0.85rem;
  flex: 1; transition: border-color 0.2s;
}

.search-input:focus { outline: none; border-color: rgba(224, 48, 48, 0.4); }

.tickets-table-wrapper { overflow-x: auto; }

.tickets-table { width: 100%; border-collapse: collapse; }

.tickets-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
}

.tickets-table td {
  padding: 14px 16px; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}

.tickets-table tr:hover td { background: var(--dark-3); }

.status-pill {
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

.status-pill.open        { background: rgba(62, 207, 110, 0.12); color: var(--green); }
.status-pill.in-progress { background: rgba(212, 168, 67, 0.12); color: var(--gold); }
.status-pill.closed      { background: rgba(150,150,170, 0.12); color: var(--text-muted); }

.type-pill {
  padding: 3px 8px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; font-family: var(--font-heading);
}

.btn-view {
  background: var(--dark-4); border: 1px solid var(--border);
  color: var(--text); padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
  font-family: var(--font-heading); font-weight: 600;
}

.btn-view:hover { border-color: var(--red); color: var(--red); }

.btn-close-ticket {
  background: rgba(224, 48, 48, 0.08); border: 1px solid rgba(224, 48, 48, 0.2);
  color: var(--red); padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
  font-family: var(--font-heading); font-weight: 600;
}

.btn-close-ticket:hover { background: rgba(224, 48, 48, 0.18); }

/* ---- MODAL ---- */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
}

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative; z-index: 1;
  background: var(--dark-2); border: 1px solid var(--border-red);
  border-radius: var(--radius-lg); padding: 32px; width: 90%; max-width: 600px;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.25s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 60%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 700; }

.modal-close {
  background: var(--dark-4); border: 1px solid var(--border);
  color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--red); border-color: var(--red); }

.modal-field { margin-bottom: 16px; }

.modal-field label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  display: block; margin-bottom: 5px;
  font-family: var(--font-heading); font-weight: 700;
}

.modal-field p { font-size: 0.9rem; line-height: 1.6; }

/* ---- MEMBERS ---- */
.members-toolbar { display: flex; gap: 14px; margin-bottom: 20px; }

.filter-select {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px; color: var(--text);
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.2s;
}

.filter-select:focus { outline: none; border-color: rgba(224, 48, 48, 0.4); }

.members-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}

.member-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s;
}

.member-card:hover { border-color: var(--border-red); transform: translateY(-2px); }

.member-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark-4); border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.member-name { font-weight: 700; font-size: 0.9rem; font-family: var(--font-heading); }

.member-role-badge {
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; display: inline-block; margin-top: 4px;
  font-family: var(--font-heading); letter-spacing: 0.5px;
}

.member-joined { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ---- SANCTIONS ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.btn-sanction {
  background: rgba(224, 48, 48, 0.08); border: 1px solid rgba(224, 48, 48, 0.3);
  color: var(--red); padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(224, 48, 48, 0.12);
}

.btn-sanction:hover { background: rgba(224, 48, 48, 0.18); transform: translateY(-1px); }

.sanctions-list { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }

.sanction-item {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 16px; background: var(--dark-3);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.sanction-item:hover { border-color: var(--border-red); }

.sanction-type {
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; min-width: 60px; text-align: center;
  font-family: var(--font-heading); letter-spacing: 0.5px;
}

.sanction-type.warn { background: rgba(212, 168, 67, 0.12); color: var(--gold); }
.sanction-type.ban  { background: rgba(224, 48, 48, 0.12); color: var(--red); }
.sanction-type.kick { background: rgba(74, 143, 223, 0.12); color: var(--blue); }
.sanction-type.mute { background: rgba(150,150,170, 0.10); color: var(--text-muted); }

.sanction-user { font-weight: 700; font-size: 0.88rem; min-width: 140px; font-family: var(--font-heading); }
.sanction-reason { flex: 1; color: var(--text-muted); font-size: 0.82rem; }
.sanction-date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; font-family: monospace; }

/* ---- LOGS ---- */
.log-controls { display: flex; gap: 10px; align-items: center; }

.btn-clear-logs {
  background: var(--dark-4); border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}

.btn-clear-logs:hover { color: var(--red); border-color: var(--red); }

.logs-terminal {
  background: #06080d; border: 1px solid rgba(224, 48, 48, 0.1);
  border-radius: var(--radius-sm); padding: 16px;
  height: 480px; overflow-y: auto; font-family: monospace;
  font-size: 0.8rem; line-height: 1.85;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.log-line { display: flex; gap: 12px; }
.log-time  { color: var(--text-muted); white-space: nowrap; }
.log-level { min-width: 50px; font-weight: 700; }
.log-level.info  { color: var(--blue); }
.log-level.warn  { color: var(--gold); }
.log-level.error { color: var(--red); }
.log-level.mod   { color: var(--purple); }
.log-msg { color: #a8b4c0; }

/* ---- SETTINGS ---- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.btn-save {
  background: var(--red); color: white;
  border: none; border-radius: var(--radius-sm); padding: 12px 24px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; margin-top: 8px;
  box-shadow: 0 4px 16px rgba(224, 48, 48, 0.25);
}

.btn-save:hover { background: var(--red-bright); transform: translateY(-1px); }

.btn-test-webhook {
  background: rgba(74, 143, 223, 0.1); border: 1px solid rgba(74, 143, 223, 0.3);
  color: var(--blue); padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; margin-right: 10px; margin-top: 8px;
}

.btn-test-webhook:hover { background: rgba(74, 143, 223, 0.2); }

.form-group small { color: var(--text-muted); font-size: 0.75rem; margin-top: 5px; display: block; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 20px; font-size: 0.88rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: toastIn 0.3s var(--ease) both;
  font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
}

.toast::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.toast.success::before { background: var(--green); }
.toast.error::before   { background: var(--red); }
.toast.info::before    { background: var(--blue); }

.toast.success { border-color: rgba(62, 207, 110, 0.3); color: var(--green); }
.toast.error   { border-color: rgba(224, 48, 48, 0.3);  color: var(--red-bright); }
.toast.info    { border-color: rgba(74, 143, 223, 0.3);  color: var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}