:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #edf2f7;
  --primary: #2f80c1;
  --primary-dark: #1e2a38;
  --accent: #5fa8e3;
  --text: #111111;
  --muted: #526173;
  --border: #e3e8ee;
  --shadow: 0 20px 60px -35px rgba(15, 23, 42, 0.5);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --surface-soft: #111b2e;
  --primary: #5fa8e3;
  --primary-dark: #dbeafe;
  --accent: #2f80c1;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(95, 168, 227, 0.15), transparent 55%),
    linear-gradient(135deg, var(--bg), #ffffff 55%, rgba(95, 168, 227, 0.12) 100%);
  min-height: 100vh;
}

.admin-body {
  background: radial-gradient(circle at top, rgba(95, 168, 227, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 55%, var(--bg) 100%);
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(30, 42, 56, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

:root[data-theme="dark"] .admin-body::before {
  background-image: radial-gradient(rgba(226, 232, 240, 0.08) 1px, transparent 1px);
  opacity: 0.25;
}

.admin-body .admin-layout {
  position: relative;
  z-index: 1;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 193, 0.25);
  background: rgba(95, 168, 227, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--primary);
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 30px 0 8px;
}

.hero p {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  margin: 0 auto;
  max-width: 640px;
}

.share-actions {
  margin-top: 18px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-stage {
  position: relative;
  padding-top: 90px;
}

.logo-stage > :not(.logo-marquee) {
  position: relative;
  z-index: 1;
}

.logo-marquee {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 12px;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  filter: blur(1.2px) saturate(1.08);
  opacity: 0.4;
  z-index: 0;
}

.logo-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 247, 250, 1) 0%,
    rgba(245, 247, 250, 0) 18%,
    rgba(245, 247, 250, 0) 82%,
    rgba(245, 247, 250, 1) 100%
  );
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logo-marquee 34s linear infinite;
  will-change: transform;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 92px;
  flex: 0 0 auto;
}

.logo-track img {
  height: 96px;
  width: auto;
  opacity: 0.95;
  filter: grayscale(0.1);
}

@keyframes logo-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 42, 56, 0.08);
  box-shadow: 0 24px 60px -40px rgba(30, 42, 56, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: admin-rise 0.45s ease both;
}

:root[data-theme="dark"] .admin-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.7);
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 193, 0.25);
  box-shadow: 0 30px 70px -40px rgba(30, 42, 56, 0.65);
}

@keyframes admin-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card h2 {
  margin: 8px 0 0;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 168, 227, 0.18);
  color: var(--primary);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.grid {
  display: grid;
  gap: 24px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 700px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.grid.form-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid.two-col {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.single-col {
  justify-items: center;
}

.single-col .card {
  width: min(820px, 100%);
}

@media (min-width: 900px) {
  .grid.two-col {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .grid.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.two-col.single-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .logo-marquee {
    top: 8px;
    height: 140px;
  }
  .logo-track {
    gap: 0;
  }
  .logo-row {
    gap: 64px;
  }
  .logo-track img {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    transform: translateX(0);
  }
}

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

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

.gender-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47, 128, 193, 0.2);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gender-card input {
  appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

.gender-card:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 128, 193, 0.5);
  box-shadow: 0 10px 20px rgba(30, 42, 56, 0.08);
}

.gender-card:has(input:checked) {
  border-color: rgba(47, 128, 193, 0.8);
  box-shadow: 0 12px 24px rgba(47, 128, 193, 0.16);
  background: rgba(95, 168, 227, 0.18);
}

.gender-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(47, 128, 193, 0.12);
  color: var(--primary-dark);
}

.gender-icon svg {
  width: 20px;
  height: 20px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

:root[data-theme="dark"] .field label {
  color: #e2e8f0;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.3);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 128, 193, 0.18);
}

.error {
  font-size: 12px;
  color: #e11d48;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(95, 168, 227, 0.35);
  background: rgba(95, 168, 227, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
}

.success {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 128, 193, 0.2);
  background: rgba(47, 128, 193, 0.1);
  color: var(--primary-dark);
}

.success-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 128, 193, 0.2);
  background: rgba(47, 128, 193, 0.12);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.success-panel .footer-note {
  margin: 6px 0 0;
}

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

@media (max-width: 720px) {
  .success-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .success-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

:root[data-theme="dark"] .notice,
:root[data-theme="dark"] .success {
  border-color: rgba(95, 168, 227, 0.4);
  background: rgba(47, 128, 193, 0.18);
  color: var(--text);
}

.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px -20px rgba(47, 128, 193, 0.6);
}

.btn.primary:hover {
  background: #256ea8;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #475569;
}

.btn.ghost {
  background: transparent;
  color: #475569;
}

:root[data-theme="dark"] .btn.outline,
:root[data-theme="dark"] .btn.ghost {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.btn.danger {
  background: #e11d48;
  color: #fff;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.7);
}

@media (min-width: 640px) {
  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .checkbox-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checkbox-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.3);
  font-size: 13px;
  align-items: center;
  cursor: pointer;
}

.checkbox-card input {
  accent-color: var(--primary);
  cursor: pointer;
}

.aside-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.aside-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

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

@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 260px 1fr;
  }
}

.admin-body.sidebar-collapsed .admin-layout {
  grid-template-columns: 84px 1fr;
}

.sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: none;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  align-self: stretch;
  height: 100vh;
  overflow-y: auto;
}

:root[data-theme="dark"] .sidebar {
  background: rgba(15, 23, 42, 0.92);
}

@media (min-width: 900px) {
  .sidebar {
    display: flex;
  }
}

.sidebar-backdrop {
  display: none;
}

.admin-body.sidebar-collapsed .sidebar {
  padding: 24px 10px;
}

.admin-body.sidebar-collapsed .sidebar .brand {
  justify-content: center;
}

.admin-body.sidebar-collapsed .sidebar .brand span,
.admin-body.sidebar-collapsed .sidebar h2,
.admin-body.sidebar-collapsed .nav-link span:not(.nav-icon),
.admin-body.sidebar-collapsed .sidebar-toggle-text,
.admin-body.sidebar-collapsed .sidebar-logout-text {
  display: none;
}

.admin-body.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 10px;
}

.admin-body.sidebar-collapsed .sidebar-toggle,
.admin-body.sidebar-collapsed .sidebar-logout {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
}

.sidebar h2 {
  margin: 10px 0 20px;
  font-size: 18px;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 12px;
  background: inherit;
}

.sidebar-logout {
  width: 100%;
  justify-content: center;
  gap: 10px;
  display: inline-flex;
  align-items: center;
}

.mobile-only {
  display: none;
}

.mobile-logout {
  width: 100%;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

:root[data-theme="dark"] .nav-link {
  color: #cbd5f5;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(47, 128, 193, 0.12);
  color: var(--primary);
  transform: translateX(2px);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -24px rgba(30, 42, 56, 0.5);
}

:root[data-theme="dark"] .topbar {
  background: rgba(15, 23, 42, 0.9);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 168, 227, 0.6);
}

:root[data-theme="dark"] .sidebar-toggle {
  background: rgba(17, 24, 39, 0.9);
}

@media (max-width: 700px) {
  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 899px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    max-width: 80vw;
    display: flex;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }

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

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: none;
  }

  .admin-body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .mobile-only {
    display: inline-flex;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 168, 227, 0.6);
}

.theme-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 168, 227, 0.18);
  color: var(--primary);
}

.theme-icon svg {
  width: 14px;
  height: 14px;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(17, 24, 39, 0.9);
}

@media (min-width: 700px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.topbar small {
  color: var(--muted);
}

.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.mobile-link.active {
  background: rgba(47, 128, 193, 0.12);
  color: var(--primary);
  border-color: rgba(47, 128, 193, 0.3);
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.table thead {
  background: #f8fafc;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
}

:root[data-theme="dark"] .table thead {
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table td {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.table tbody tr:hover {
  background: #f8fafc;
}

:root[data-theme="dark"] .table tbody tr:hover {
  background: rgba(15, 23, 42, 0.6);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(95, 168, 227, 0.18);
  border: 1px solid rgba(95, 168, 227, 0.35);
  color: var(--primary-dark);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px -18px rgba(47, 128, 193, 0.5);
}

.info-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47, 128, 193, 0.1);
  border: 1px solid rgba(95, 168, 227, 0.4);
  display: grid;
  gap: 6px;
}

.info-callout span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
}

.info-callout p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.admin-body .table tbody tr:nth-child(even) {
  background: rgba(30, 42, 56, 0.03);
}

:root[data-theme="dark"] .admin-body .table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.35);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(95, 168, 227, 0.18);
  color: var(--primary-dark);
}

.pill.status-new {
  background: rgba(95, 168, 227, 0.2);
  color: var(--primary-dark);
}

.pill.status-called {
  background: rgba(234, 179, 8, 0.2);
  color: #854d0e;
}

.pill.status-confirmed {
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

:root[data-theme="dark"] .pill.status-new {
  color: #dbeafe;
}

:root[data-theme="dark"] .pill.status-called {
  color: #fef3c7;
}

:root[data-theme="dark"] .pill.status-confirmed {
  color: #dcfce7;
}

.filters {
  display: grid;
  gap: 12px;
}

.filters-card {
  position: relative;
  overflow: hidden;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filters-header h3 {
  margin: 0;
  font-size: 16px;
}

.filters-badges {
  display: flex;
  gap: 8px;
}

.filters-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
}

.filters .input,
.filters .select {
  width: 100%;
  min-width: 0;
}

.date-range {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.date-range .input {
  flex: 1 1 140px;
}

@media (min-width: 640px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: min(420px, 90vw);
  box-shadow: var(--shadow);
  animation: modal-pop 0.25s ease;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.login-body {
  background: radial-gradient(circle at top, rgba(95, 168, 227, 0.2), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #f1f5f9 55%, #eef2f7 100%);
}

.login-container {
  padding-top: 72px;
  display: flex;
  justify-content: center;
}

.login-card {
  max-width: 460px;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-badge {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 193, 0.2);
  background: rgba(95, 168, 227, 0.12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--primary);
}

.login-card h1 {
  margin: 18px 0 6px;
  font-size: 26px;
}

.login-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.login-footer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.qr-card {
  width: min(520px, 92vw);
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.qr-body img {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -24px rgba(30, 42, 56, 0.5);
  background: #fff;
  padding: 12px;
}

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

.footer-note {
  font-size: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  width: min(420px, 90vw);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(95, 168, 227, 0.3);
  border-top-color: var(--primary);
  margin: 16px auto 8px;
  animation: spin 1s linear infinite;
}

.loading-quote {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
