/* ============================================================
   IdeaForge – Admin Panel Stylesheet
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #07080d;
  --bg-2:        #0c0d16;
  --surface:     #10121e;
  --surface-2:   #161826;
  --surface-3:   #1d2030;
  --border:      #1e2138;
  --border-2:    #282c45;

  --accent:      #6C63FF;
  --accent-2:    #00D4AA;
  --accent-glow: rgba(108,99,255,.2);

  --text:        #E8E9F3;
  --text-2:      #8B90B4;
  --text-3:      #50546e;

  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --info:        #3B82F6;

  --sidebar-w:   240px;
  --topbar-h:    60px;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;

  --shadow:      0 2px 16px rgba(0,0,0,.5);
  --transition:  .18s ease;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* ── Login Page ──────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-bg { position: fixed; inset: 0; pointer-events: none; }
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.login-orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,.15), transparent 70%);
  top: -100px; right: -100px;
}
.login-orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,170,.1), transparent 70%);
  bottom: -50px; left: -50px;
}

.login-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.login-logo .logo-icon {
  font-size: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}
.login-logo small {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.login-card .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.login-card .form-group input {
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.login-card .form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .5;
  cursor: pointer;
  background: none; border: none; padding: 0;
}
.pw-toggle:hover { opacity: 1; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(108,99,255,.3);
}
.btn-login:hover {
  background: #7d75ff;
  box-shadow: 0 6px 28px rgba(108,99,255,.45);
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.login-footer a { color: var(--accent); }

.admin-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid;
}
.admin-alert--error   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.admin-alert--success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.admin-alert--info    { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #93c5fd; }

/* ── Admin Layout ────────────────────────────────────────── */
.admin-body { overflow-x: hidden; }

.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform .3s ease;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo .logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-logo span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  flex: 1;
}
.sidebar-close { display: none; font-size: 16px; color: var(--text-3); margin-left: auto; }

.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
  overflow-y: auto;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul + ul { margin-top: 4px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(108,99,255,.2); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 12px 6px;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.sidebar-footer > div {
  flex: 1;
  overflow: hidden;
}
.sidebar-footer strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer span {
  font-size: 11px;
  color: var(--text-3);
}
.sidebar-logout {
  font-size: 18px;
  opacity: .5;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.sidebar-logout:hover { opacity: 1; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 199;
  backdrop-filter: blur(4px);
}

/* Main Area */
.admin-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(16,18,30,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-menu-btn {
  font-size: 18px;
  color: var(--text-2);
  display: none;
  padding: 6px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.topbar-time {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-3);
}
.topbar-site-link { font-size: 18px; }

.admin-content { padding: 28px 28px; flex: 1; }

/* ── Page Header ─────────────────────────────────────────── */
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-page-sub {
  font-size: 13px;
  color: var(--text-3);
}
.back-link {
  font-size: 13px;
  color: var(--text-3);
  display: inline-block;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

/* ── Buttons (Admin) ────────────────────────────────────── */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-admin--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,99,255,.3);
}
.btn-admin--primary:hover {
  background: #7d75ff;
  box-shadow: 0 4px 20px rgba(108,99,255,.45);
  transform: translateY(-1px);
}
.btn-admin--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-2);
}
.btn-admin--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.btn-admin--sm { padding: 6px 12px; font-size: 12px; }
.btn-admin--xs { padding: 4px 10px; font-size: 11px; }
.btn-block { width: 100%; display: flex; }

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stats-grid--sm { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }

.stat-card--blue   { border-left: 3px solid #3B82F6; }
.stat-card--green  { border-left: 3px solid #10B981; }
.stat-card--yellow { border-left: 3px solid #F59E0B; }
.stat-card--purple { border-left: 3px solid #6C63FF; }
.stat-card--teal   { border-left: 3px solid #00D4AA; }
.stat-card--orange { border-left: 3px solid #F97316; }

.stat-card__icon { font-size: 22px; }
.stat-card__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.stat-card__label { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ── Admin Card ──────────────────────────────────────────── */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-card__header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.card-link { font-size: 12px; color: var(--accent); font-weight: 600; }
.word-chip {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--surface-3);
  border-radius: 20px;
  color: var(--text-3);
}

/* ── Dashboard Grid ──────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart-wrap { height: 200px; }
#submissionsChart { width: 100% !important; }

/* Recent List */
.recent-list { display: flex; flex-direction: column; gap: 0; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.recent-item:last-child { border-bottom: none; }
.recent-avatar {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.recent-info {
  flex: 1;
  min-width: 0;
}
.recent-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-info span {
  font-size: 11px;
  color: var(--text-3);
}
.recent-badges { display: flex; gap: 4px; flex-shrink: 0; }
.recent-link { font-size: 12px; color: var(--accent-2); font-weight: 600; flex-shrink: 0; }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar { padding: 16px 20px; }
.filters-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 12px;
}
.filter-search input {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text);
}
.filter-search input::placeholder { color: var(--text-3); }
.filters-form select {
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.filters-form select:focus {
  border-color: var(--accent);
}

/* ── Table ───────────────────────────────────────────────── */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }

.td-id { width: 120px; }
.tracking-pill {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.td-user__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.td-user__inner strong { display: block; font-size: 13px; }
.td-user__inner span   { font-size: 11px; color: var(--text-3); }

.td-idea { max-width: 240px; }
.idea-truncate {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.td-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }

.action-btns { display: flex; gap: 6px; align-items: center; }
.table-empty { text-align: center; padding: 40px; color: var(--text-3); }
.empty-state { text-align: center; padding: 28px; color: var(--text-3); font-size: 13px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* ── Filter Tabs ─────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab:hover  { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: white; border-color: var(--accent); }
.tab-badge {
  background: var(--warning);
  color: #000;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
}
.pg-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── Detail Page ─────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.detail-col-main { display: flex; flex-direction: column; }
.detail-col-side  { display: flex; flex-direction: column; }

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-field--full { grid-column: 1 / -1; }
.detail-field span  { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.detail-field strong, .detail-field a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.detail-field a { color: var(--accent-2); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.idea-full-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── AI Report ───────────────────────────────────────────── */
.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 16px;
}
.ai-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.ai-empty__icon { font-size: 48px; margin-bottom: 12px; }

.ai-score-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ai-score-circle {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
}
.ai-score-circle svg { width: 80px; height: 80px; }
.ai-score-circle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.ai-score-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ai-score-info p { font-size: 13px; color: var(--text-2); }
.ai-recommendation {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.ai-meta-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.meta-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  min-width: 80px;
  text-align: center;
}
.meta-chip span  { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.meta-chip strong { font-size: 13px; font-weight: 700; margin-top: 2px; }

.ai-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.ai-col {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid;
}
.ai-col--green {
  background: rgba(16,185,129,.06);
  border-color: rgba(16,185,129,.2);
}
.ai-col--red {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.2);
}
.ai-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ai-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-col li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.ai-col--green li::before { content: '•'; position: absolute; left: 0; color: var(--success); }
.ai-col--red   li::before { content: '•'; position: absolute; left: 0; color: var(--danger);  }

.ai-mvp, .ai-monetize, .ai-verdict-text { margin-bottom: 16px; }
.ai-mvp h4, .ai-monetize h4, .ai-verdict-text h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mvp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mvp-chip {
  padding: 5px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.mvp-chip--teal {
  background: rgba(0,212,170,.08);
  border-color: rgba(0,212,170,.2);
  color: var(--accent-2);
}
.ai-verdict-text p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
  background: var(--surface-2);
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

/* ── Status Control ──────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--surface-3); }
.form-group textarea { resize: vertical; }
.form-group small { font-size: 11px; color: var(--text-3); }

/* ── Payment Screenshot ──────────────────────────────────── */
.screenshot-wrap { text-align: center; }
.screenshot-img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: opacity var(--transition);
}
.screenshot-img:hover { opacity: .85; }
.screenshot-hint { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.payment-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform var(--transition);
}
.payment-thumb:hover { transform: scale(1.05); }
.no-screenshot { font-size: 12px; color: var(--text-3); }
.verified-tag { font-size: 12px; color: var(--success); font-weight: 600; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 48px rgba(0,0,0,.7);
}
.modal--wide { max-width: 560px; }
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal__header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.modal__header button { font-size: 18px; color: var(--text-3); }
.modal__body { padding: 20px 22px; }
.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}

/* ── Admin Toast ─────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  max-width: 320px;
}
.admin-toast.show { transform: translateY(0); opacity: 1; }
.admin-toast.success { border-color: var(--success); background: rgba(16,185,129,.12); color: var(--success); }
.admin-toast.error   { border-color: var(--danger);  background: rgba(239,68,68,.12);  color: var(--danger);  }

/* ── Settings ────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.settings-info { display: flex; flex-direction: column; gap: 0; }
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.settings-row:last-child { border-bottom: none; }
.settings-row span  { color: var(--text-3); }
.settings-row strong { font-weight: 600; color: var(--text); }
.settings-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.settings-note code {
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-2);
  font-family: monospace;
}

/* Response options */
.response-options { display: flex; flex-direction: column; gap: 8px; }

/* ── Admin Form Inline ───────────────────────────────────── */
#adminNotes {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#adminNotes:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-col-side { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .sidebar-close { display: block; }
  .sidebar-overlay { display: block; display: none; }
  .sidebar-overlay.show { display: block; }
  .admin-main { margin-left: 0; }
  .topbar-menu-btn { display: block; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid  { grid-template-columns: 1fr; }
  .ai-columns     { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 16px; }
  .detail-col-side { grid-template-columns: 1fr; }
}
