/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f7fff;
  --primary-dark: #3a6aee;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --guide-bg: #f0f5ff;
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.12);
}

html { font-size: 15px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0d1117;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

/* ─── Background Decoration ─────────────────────────────────── */
.bg-decoration {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.bg-circle {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.c1 { width: 600px; height: 600px; background: #4f7fff; top: -200px; left: -200px; }
.c2 { width: 500px; height: 500px; background: #a855f7; bottom: -150px; right: -150px; }
.c3 { width: 400px; height: 400px; background: #06b6d4; top: 40%; left: 50%; transform: translate(-50%,-50%); }

/* ─── Layout ─────────────────────────────────────────────────── */
.page-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
}

.app-card {
  width: 100%; max-width: 900px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ─── Header ─────────────────────────────────────────────────── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -1px;
}

.brand-title {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.brand-sub { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 1px; }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-icon:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-icon svg { width: 18px; height: 18px; }

/* ─── Body ───────────────────────────────────────────────────── */
.app-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── Guide Panel ────────────────────────────────────────────── */
.guide-panel {
  background: var(--guide-bg);
  border-right: 1px solid var(--border);
  padding: 24px;
}

.guide-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: #1d4ed8;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #dbeafe;
}
.guide-header svg { width: 18px; height: 18px; }

.step-list { display: flex; flex-direction: column; gap: 20px; }

.step-item { display: flex; gap: 12px; align-items: flex-start; }

.step-badge {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  margin-top: 2px;
}
.s1 { background: #ef4444; }
.s2 { background: #22c55e; }
.s3 { background: #3b82f6; }
.s4 { background: #8b5cf6; }

.step-content { flex: 1; }
.step-title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; margin-bottom: 8px; }
.step-desc strong { color: var(--text); }
.step-desc code {
  background: rgba(79,127,255,0.12); color: #1d4ed8;
  padding: 1px 5px; border-radius: 4px; font-size: 0.78rem;
  font-family: 'Consolas', 'Monaco', monospace;
}

.step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 500;
}
.tag-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.tag-green  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.tag-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-purple { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }

/* Buy bar（header 下方居中） */
.buy-bar {
  background: #f0f5ff;
  border-bottom: 1px solid #dbeafe;
  padding: 18px 24px;
  text-align: center;
}
.buy-bar-inner {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
}
.buy-title {
  font-size: 0.95rem; font-weight: 700; color: #1e40af;
}
.buy-desc {
  font-size: 0.82rem; color: #64748b; margin: 0;
}

/* Notice bar（两列下方居中） */
.notice-bar {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  padding: 16px 24px;
  text-align: center;
}
.notice-bar-inner {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.notice-bar .notice-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; color: #b45309; font-size: 0.88rem;
}
.notice-bar .notice-title svg { width: 15px; height: 15px; color: #f59e0b; }
.notice-bar p {
  font-size: 0.8rem; color: #92400e; margin: 0;
}

.step-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.step-btn:hover { opacity: 0.85; }

.step-divider {
  height: 1px; background: #dbeafe;
  margin: 14px 0;
}

.code-example {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
  color: #1d4ed8;
  background: rgba(79,127,255,0.08);
  border: 1px dashed #bfdbfe;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.step-notice {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #92400e;
  line-height: 1.5;
}
.notice-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; color: #b45309;
  margin-bottom: 4px;
}
.notice-title svg { width: 15px; height: 15px; flex-shrink: 0; color: #f59e0b; }

.step-tip {
  display: flex; align-items: flex-start; gap: 6px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 8px 10px;
  font-size: 0.78rem; color: #92400e; line-height: 1.4;
}
.step-tip svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #f59e0b; }

/* ─── Exchange Panel ─────────────────────────────────────────── */
.exchange-panel { padding: 24px; background: #fff; }

.exchange-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: #1d4ed8;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #dbeafe;
}
.exchange-header svg { width: 18px; height: 18px; }

.exchange-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label-row {
  display: flex; align-items: center; gap: 8px;
}
.form-num {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #4f7fff, #3b82f6);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
label { font-size: 0.88rem; font-weight: 600; color: var(--text); }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon {
  position: absolute; left: 12px;
  width: 16px; height: 16px; color: var(--text-3);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 11px 44px 11px 36px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem; color: var(--text);
  font-family: 'Consolas', 'Monaco', monospace;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder { color: var(--text-3); font-family: inherit; }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,127,255,0.12);
  background: #fff;
}

.btn-paste {
  position: absolute; right: 8px;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-paste:hover { background: #f1f5f9; color: var(--primary); }
.btn-paste svg { width: 15px; height: 15px; }

.form-hint { font-size: 0.76rem; color: var(--text-3); padding-left: 4px; }

.input-with-btn {
  display: flex; gap: 8px; align-items: center;
}
.input-with-btn .form-input {
  flex: 1; padding-left: 12px; padding-right: 12px;
}
.btn-verify {
  flex-shrink: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; border: none; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-verify:hover { opacity: 0.85; }
.btn-verify:disabled { opacity: 0.6; cursor: not-allowed; }

/* Submit Button */
.btn-submit {
  margin-top: 6px;
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; border: none;
  border-radius: 10px; cursor: pointer;
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,0.45); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-text, .btn-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-text svg { width: 18px; height: 18px; }
.btn-loading svg { width: 18px; height: 18px; }

/* Result Box */
.result-box {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeIn 0.3s ease;
}
.result-box.success {
  background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #15803d;
}
.result-box.error {
  background: #fef2f2; border: 1.5px solid #fecaca; color: #dc2626;
}
.result-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ─── Footer ─────────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Admin Specific ─────────────────────────────────────────── */
.admin-layout {
  display: flex; min-height: 100vh;
  background: #f1f5f9;
}

.sidebar {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 0;
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 100;
}
.sidebar-brand {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.sidebar-title { font-size: 0.9rem; font-weight: 700; }
.sidebar-sub { font-size: 0.7rem; opacity: 0.7; }

.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.75);
  cursor: pointer; font-size: 0.88rem;
  transition: all 0.2s;
  margin-bottom: 2px;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 0.85rem; transition: all 0.2s;
  background: none; border: none; width: 100%;
}
.logout-btn:hover { background: rgba(255,0,0,0.15); color: #fca5a5; }
.logout-btn svg { width: 16px; height: 16px; }

.main-content {
  margin-left: 220px; flex: 1;
  display: flex; flex-direction: column;
}

.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.content-area { padding: 24px; flex: 1; }

/* Stats Cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border-radius: 12px;
  padding: 18px; border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.stat-label { font-size: 0.78rem; color: var(--text-2); margin-bottom: 6px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-value.blue { color: #3b82f6; }
.stat-value.green { color: #22c55e; }
.stat-value.orange { color: #f59e0b; }
.stat-value.purple { color: #8b5cf6; }
.stat-sub { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }

/* Panels */
.panel {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: #f8fafc;
}
.panel-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.panel-body { padding: 18px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th {
  background: #f8fafc; color: var(--text-2);
  font-weight: 600; font-size: 0.78rem;
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

.code-cell {
  font-family: 'Consolas', monospace;
  font-size: 0.8rem; color: #1d4ed8;
  letter-spacing: 0.5px;
}
.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.badge-unused { background: #eff6ff; color: #1d4ed8; }
.badge-used   { background: #f0fdf4; color: #15803d; }
.badge-disabled { background: #fef2f2; color: #dc2626; }

/* Forms & Inputs (admin) */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-col { flex: 1; min-width: 140px; }
.admin-input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
  background: #fff;
}
.admin-input:focus { border-color: var(--primary); }
.admin-label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: none; cursor: pointer; font-size: 0.83rem; font-weight: 600; transition: all 0.2s; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger  { background: #ef4444; color: #fff; }
.btn-danger:hover  { background: #dc2626; }
.btn-ghost { background: #f1f5f9; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: #e2e8f0; color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }

/* Filter Bar */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logs-header { gap: 12px; }
.logs-filter-bar {
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
}
.logs-filter-bar .admin-input {
  flex: 1;
  min-width: 0;
  max-width: 360px;
}
.logs-filter-bar .btn {
  flex-shrink: 0;
}
.filter-select {
  padding: 7px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.83rem; color: var(--text);
  outline: none; background: #fff; cursor: pointer;
}

/* Login overlay */
#loginOverlay {
  position: fixed; inset: 0;
  background: #0d1117;
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.login-card {
  background: #fff; border-radius: 16px;
  padding: 36px 32px;
  width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
}
.login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  margin: 0 auto 16px;
}
.login-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.login-sub { font-size: 0.82rem; color: var(--text-2); margin-bottom: 24px; }
.login-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--primary); }
.login-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; border: none; border-radius: 10px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,0.45); }
.login-err { color: #dc2626; font-size: 0.8rem; margin-top: 8px; display: none; }

/* CDK Code Display */
.cdk-output-area {
  background: #0f172a; border-radius: 10px;
  padding: 10px; max-height: 320px; overflow-y: auto;
}
.cdk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  transition: background 0.15s;
}
.cdk-row { cursor: pointer; justify-content: space-between; }
.cdk-row:hover { background: rgba(255,255,255,0.05); }
.cdk-copy-tip {
  font-size: 0.72rem; color: #475569;
  opacity: 0; transition: opacity 0.15s;
}
.cdk-row:hover .cdk-copy-tip { opacity: 1; }
.cdk-index {
  font-size: 0.75rem; color: #475569;
  width: 24px; text-align: right; flex-shrink: 0;
}
.cdk-code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem; color: #86efac; letter-spacing: 0.5px;
}
/* keep old fallback */
.cdk-output-area-old {
  font-family: 'Consolas', monospace; font-size: 0.82rem;
  color: #86efac; line-height: 1.7;
}

/* Tabs */
.view-tab { display: none; }
.view-tab.active { display: block; }

/* Checkbox */
.row-check { width: 16px; height: 16px; cursor: pointer; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.page-btn {
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff;
  font-size: 0.8rem; cursor: pointer; color: var(--text-2);
}
.page-btn:hover { background: #f1f5f9; }
.page-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.page-info { font-size: 0.8rem; color: var(--text-3); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .app-body { grid-template-columns: 1fr; }
  .guide-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .page-wrapper { padding: 12px; justify-content: flex-start; padding-top: 20px; }
  .app-card { border-radius: 14px; }

  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; }
  .sidebar-brand { display: none; }
  .sidebar-nav { display: flex; padding: 8px; flex-direction: row; }
  .nav-item { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 0.7rem; min-width: 60px; text-align: center; }
  .sidebar-footer { display: none; }
  .main-content { margin-left: 0; }
  .admin-layout { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .logs-header { align-items: flex-start; }
  .logs-filter-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .logs-filter-bar .admin-input {
    max-width: none;
    width: 100%;
  }
}
