@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #eef3ff;
  --panel-3: #f8fafc;
  --sidebar: #0f172a;
  --sidebar-2: #111c36;
  --text: #132238;
  --text-soft: #5c6c80;
  --line: rgba(19, 34, 56, 0.1);
  --line-strong: rgba(19, 34, 56, 0.16);
  --brand: #1d4ed8;
  --brand-soft: rgba(29, 78, 216, 0.12);
  --success: #0f9f6e;
  --success-soft: rgba(15, 159, 110, 0.12);
  --warning: #c97a10;
  --warning-soft: rgba(201, 122, 16, 0.12);
  --danger: #cf314f;
  --danger-soft: rgba(207, 49, 79, 0.12);
  --shadow: 0 24px 80px rgba(12, 22, 42, 0.12);
  --shadow-soft: 0 14px 40px rgba(12, 22, 42, 0.08);
  --radius: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 159, 110, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  color: var(--text);
}

body.modal-open,
body.sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  z-index: 80;
  font-weight: 700;
  color: var(--text);
}

.page-loader[hidden] {
  display: none;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

.admin-auth-page {
  min-height: 100vh;
  background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.admin-auth-page::before,
.admin-auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.admin-auth-page::before {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.4);
  top: -100px;
  left: -100px;
}

.admin-auth-page::after {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.3);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  z-index: 10;
}

.auth-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
}

.auth-copy,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.auth-copy:hover,
.auth-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  width: fit-content;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-brand h1,
.auth-card h2,
.topbar-copy h1,
.stat-card strong,
.surface h2,
.modal-card h2 {
  font-family: "Space Grotesk", sans-serif;
}

.auth-brand h1 {
  margin: 24px 0 14px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.1;
  background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(192, 132, 252, 0.2);
}

.auth-brand p,
.auth-points li,
.auth-meta {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.auth-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.auth-points li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.auth-points li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  font-weight: 500;
}

.auth-card {
  padding: 34px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.auth-card p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
}

.admin-auth-page .field label {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-auth-page .field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.admin-auth-page .field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(29, 78, 216, 0.44);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.admin-auth-page .field input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.admin-auth-page .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% auto;
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
  transition: all 0.4s ease;
}

.admin-auth-page .btn-primary:hover:not(:disabled) {
  background-position: right center;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.5);
}

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-input:focus {
  border-color: rgba(29, 78, 216, 0.44);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
}

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 18px 38px rgba(29, 78, 216, 0.24);
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-danger:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--brand);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.auth-footer {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.auth-footer a {
  color: #fff;
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px 20px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 40;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(15, 159, 110, 0.22));
  color: #fff;
  font-weight: 900;
}

.sidebar-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sidebar-head strong {
  display: block;
  font-size: 1rem;
}

.sidebar-head span,
.sidebar-footer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

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

.sidebar-spacer {
  flex: 1;
}

.sidebar-footer {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .btn {
  width: 100%;
  margin-top: 12px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px 18px;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 34, 56, 0.06);
}

.topbar-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sidebar-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.topbar-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.topbar-copy p {
  margin: 8px 0 0;
  color: var(--text-soft);
  max-width: 720px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.14), rgba(15, 159, 110, 0.18));
  color: var(--brand);
  font-weight: 900;
}

.profile-chip strong {
  display: block;
  font-size: 0.96rem;
}

.profile-chip span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.admin-content {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.92));
  border: 1px solid rgba(19, 34, 56, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.14), transparent 70%);
}

.stat-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  line-height: 1;
}

.stat-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.surface {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.surface-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.surface-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.surface-head p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-metric {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-3);
  border: 1px solid var(--line);
}

.mini-metric span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.mini-metric strong {
  font-size: 1.35rem;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.feed-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-3);
}

.feed-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.feed-item h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
}

.feed-item p,
.feed-meta,
.feed-date {
  margin: 0;
  color: var(--text-soft);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  min-width: min(320px, 100%);
  max-width: 360px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.badge-neutral {
  background: rgba(19, 34, 56, 0.08);
  color: var(--text-soft);
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.primary-cell {
  display: grid;
  gap: 4px;
}

.primary-cell span,
.table-placeholder,
.hint {
  color: var(--text-soft);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-placeholder {
  padding: 32px 14px;
  text-align: center;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.analytics-card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 34, 56, 0.08);
  box-shadow: var(--shadow-soft);
}

.analytics-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.analytics-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.activity-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 240px;
}

.activity-bar-card {
  display: grid;
  gap: 10px;
  text-align: center;
}

.activity-bar-stack {
  height: 180px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.activity-bar {
  width: 100%;
  border-radius: 14px;
  min-height: 4px;
}

.activity-bar-quiz {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.activity-bar-typing {
  background: linear-gradient(180deg, #10b981, #0f9f6e);
}

.activity-bar-card strong {
  font-size: 0.92rem;
}

.activity-bar-card span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  z-index: 90;
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  box-shadow: 0 36px 120px rgba(15, 23, 42, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-3);
}

.modal-body {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.hint {
  font-size: 0.88rem;
  margin-top: -2px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
}

.empty-state {
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  background: var(--panel-3);
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 100;
}

.toast {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.26);
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast-info {
  background: #1f2937;
}

.toast-success {
  background: #0f9f6e;
}

.toast-warning {
  background: #c97a10;
}

.toast-error {
  background: #cf314f;
}

.toast-hide {
  opacity: 0;
  transform: translateY(10px);
}

@media (max-width: 1180px) {
  .stat-grid,
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    width: min(86vw, 310px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  }

  body.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-grid;
    place-items: center;
  }

  .admin-topbar {
    padding: 20px 18px 16px;
  }

  .admin-content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .stat-grid,
  .analytics-grid,
  .mini-metrics,
  .form-grid,
  .activity-bars {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 16px;
  }

  .auth-copy,
  .auth-card {
    padding: 24px;
    border-radius: 20px;
  }

  .profile-chip {
    width: 100%;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .search-input {
    min-width: 100%;
    max-width: none;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    padding: 10px 0;
    border: none;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .table-actions {
    justify-content: flex-start;
  }

  .modal {
    padding: 12px;
  }

  .modal-head,
  .modal-body,
  .modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }
}
