:root {
  --sidebar-w: 260px;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.1);
  --red: #dc2626;
  --amber: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }

/* Layout */
.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition);
}

.admin-sidebar-header {
  padding: 1.35rem 1rem 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.15rem 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.admin-logo:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.admin-logo-img {
  display: block;
  width: 136px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
}

.admin-nav-label {
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  transition: var(--transition);
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-link.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.admin-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.9;
}

.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-menu-btn {
  display: none;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.admin-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.admin-breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

.admin-topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* User profile menu */
.admin-user-menu {
  position: relative;
}

.admin-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  background: var(--white);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.admin-user-trigger:hover,
.admin-user-menu.is-open .admin-user-trigger {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.admin-user-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.admin-user-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--transition);
  margin-left: 0.15rem;
}

.admin-user-menu.is-open .admin-user-chevron {
  transform: rotate(180deg);
}

.admin-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 260px;
  background: #111827;
  border-radius: 12px;
  padding: 0.65rem 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 200;
  animation: admin-dropdown-in 0.15s ease-out;
}

.admin-user-dropdown[hidden] {
  display: none;
}

@keyframes admin-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-user-session {
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 0.35rem 1rem 0.65rem;
  margin: 0;
  line-height: 1.4;
}

.admin-user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

.admin-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f9fafb;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--transition);
}

.admin-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-user-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.admin-user-logout-form {
  margin: 0;
  padding: 0;
}

.admin-user-dropdown-item--logout {
  color: #fca5a5;
}

.admin-user-dropdown-item--logout:hover {
  background: rgba(252, 165, 165, 0.08);
  color: #fecaca;
}

.admin-user-dropdown-item--logout svg {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .admin-user-meta { display: none; }
  .admin-user-trigger { padding: 0.35rem; border-radius: 10px; }
}

.admin-content {
  padding: 1.75rem 2rem 3rem;
  flex: 1;
}

/* Alerts */
.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Dashboard */
.dashboard { max-width: 1280px; }

.dashboard-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.dashboard-welcome::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-welcome-text { position: relative; z-index: 1; max-width: 520px; }

.dashboard-welcome-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.dashboard-welcome-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.dashboard-welcome-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.dashboard-welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dashboard-welcome-actions .btn-primary {
  background: #fff;
  color: var(--blue-dark);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.dashboard-welcome-actions .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.dashboard-welcome-actions .btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-welcome-alert {
  background: rgba(254, 226, 226, 0.15) !important;
  border-color: rgba(252, 165, 165, 0.5) !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stat-card--link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card--blue::before { background: var(--blue); }
.stat-card--green::before { background: var(--green); }
.stat-card--amber::before { background: var(--amber); }
.stat-card--red::before { background: var(--red); }

.stat-card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.stat-card--link:hover::before { opacity: 1; }

.stat-card--pulse {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1), var(--shadow);
  animation: stat-pulse 2.5s ease-in-out infinite;
}

@keyframes stat-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1), var(--shadow); }
  50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15), var(--shadow-lg); }
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg { display: block; }

.stat-card-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-card-icon.green { background: var(--green-soft); color: var(--green); }
.stat-card-icon.amber { background: rgba(217, 119, 6, 0.12); color: var(--amber); }
.stat-card-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--red); }

.stat-card-body { flex: 1; min-width: 0; }

.stat-card-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-card-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 600;
  margin-top: 0.15rem;
}

.stat-card-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.dashboard-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.dashboard-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.dashboard-panel-sub {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}

.dashboard-panel-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.dashboard-panel-link:hover { text-decoration: underline; }

.quick-action-group { margin-bottom: 1.25rem; }
.quick-action-group:last-child { margin-bottom: 0; }

.quick-action-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 0.65rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.quick-actions-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  min-height: 88px;
}

.quick-action-card:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  font-size: 1.1rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.quick-action-card:hover .quick-action-icon {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.2);
}

.inbox-list { list-style: none; }

.inbox-item { border-bottom: 1px solid var(--gray-100); }
.inbox-item:last-child { border-bottom: none; }

.inbox-item-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  border-radius: 8px;
}

.inbox-item-link:hover { background: var(--gray-50); }

.inbox-item--unread .inbox-item-link {
  background: rgba(37, 99, 235, 0.04);
}

.inbox-item--unread .inbox-item-body strong {
  color: var(--blue-dark);
}

.inbox-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inbox-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.inbox-item-body strong {
  font-size: 0.875rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-time {
  font-size: 0.7rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.inbox-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-500);
}

.inbox-empty p {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.inbox-empty span { font-size: 0.8rem; }

/* Legacy quick links (other pages) */
.admin-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.admin-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.admin-card-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.admin-card-link span { color: var(--gray-400); font-weight: 400; font-size: 0.8rem; }

/* Toolbar & tables */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
}

.admin-table th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: var(--gray-50);
}

.admin-table tr.unread {
  background: var(--blue-soft);
  font-weight: 600;
}

.admin-table .actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-table code {
  font-size: 0.8rem;
  background: var(--gray-100);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.btn-link {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
}

.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-danger-text {
  color: var(--red) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}

.btn-danger-text:hover {
  background: rgba(220, 38, 38, 0.06) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
}

body.admin-modal-open { overflow: hidden; }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.admin-modal[hidden] { display: none; }

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  text-align: center;
  animation: admin-modal-in 0.2s ease-out;
}

@keyframes admin-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-icon--primary {
  background: var(--blue-soft);
  color: var(--blue);
}

.admin-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.admin-modal-body {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.admin-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.admin-modal-actions .btn { min-width: 100px; }

/* Forms */
.admin-form { max-width: 800px; }

.form-section {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-section legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-600);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.dynamic-item {
  padding: 1rem;
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  border-radius: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  cursor: pointer;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
}

/* Auth */
.auth-body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-900);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15), transparent 50%);
  pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 400px; }

.auth-brand h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 1rem;
}

.auth-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.auth-brand-features {
  list-style: none;
  margin-top: 2rem;
}

.auth-brand-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-brand-features li::before {
  content: '✓';
  color: #34d399;
  font-weight: 700;
}

.auth-brand-logo {
  display: block;
  width: 148px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gray-50);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.auth-header { text-align: center; margin-bottom: 2rem; }

.auth-logo-img {
  display: block;
  margin: 0 auto 1.25rem;
  width: 128px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.auth-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}

.auth-header p { font-size: 0.875rem; color: var(--gray-500); }

.auth-form .form-group { margin-bottom: 1.25rem; }

details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.875rem;
}

details[open] { padding-top: 0.5rem; }

/* Mobile */
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: block; }
  .admin-content { padding: 1.25rem; }
  .admin-topbar { padding: 1rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-actions-grid,
  .quick-actions-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .dashboard-welcome { padding: 1.35rem 1.25rem; }
  .dashboard-welcome-title { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions-grid,
  .quick-actions-grid--compact { grid-template-columns: 1fr; }
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 150;
}

.admin-overlay.show { display: block; }

.vf-swal-popup {
  font-family: 'Inter', system-ui, sans-serif !important;
  border-radius: var(--radius-lg) !important;
}
