@import url("https://cdn.jsdelivr.net/npm/@fontsource-variable/noto-sans-sc@5.1.0/index.min.css");

:root {
  --admin-bg: #f4f0eb;
  --admin-bg-soft: #faf7f3;
  --admin-surface: rgba(255, 250, 246, 0.7);
  --admin-surface-strong: rgba(255, 253, 251, 0.88);
  --admin-surface-muted: rgba(255, 255, 255, 0.42);
  --admin-border: rgba(133, 84, 70, 0.14);
  --admin-border-strong: rgba(133, 84, 70, 0.22);
  --admin-text: #1f1a18;
  --admin-text-soft: #70645d;
  --admin-text-faint: #9a8d86;
  --admin-accent: #8d2230;
  --admin-accent-strong: #68111d;
  --admin-accent-soft: rgba(141, 34, 48, 0.12);
  --admin-accent-fade: rgba(141, 34, 48, 0.04);
  --admin-success: #2f7d58;
  --admin-shadow: 0 22px 56px rgba(95, 70, 58, 0.14);
  --admin-shadow-soft: 0 10px 28px rgba(95, 70, 58, 0.08);
  --admin-radius-xl: 34px;
  --admin-radius-lg: 24px;
  --admin-radius-md: 18px;
  --admin-radius-sm: 14px;
  --admin-blur: blur(24px);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Segoe UI", sans-serif;
  font-weight: 310;
  background:
    radial-gradient(circle at top left, rgba(155, 191, 223, 0.48), transparent 34%),
    radial-gradient(circle at bottom right, rgba(196, 173, 156, 0.28), transparent 24%),
    linear-gradient(180deg, #dbe6f0 0%, #f3ede7 36%, #f7f2ee 100%);
  color: var(--admin-text);
}

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

.admin-body,
.auth-body {
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.admin-body::before,
.admin-body::after,
.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.admin-body::before,
.auth-body::before {
  width: 52vw;
  height: 52vw;
  left: -16vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(194, 225, 255, 0.42) 0%, rgba(194, 225, 255, 0) 70%);
  filter: blur(10px);
}

.admin-body::after,
.auth-body::after {
  width: 46vw;
  height: 46vw;
  right: -12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(141, 34, 48, 0.14) 0%, rgba(141, 34, 48, 0) 66%);
  filter: blur(12px);
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  height: calc(100vh - 28px);
  margin: 14px;
  padding: 16px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 251, 248, 0.42));
  box-shadow:
    inset 0 -1px 0 rgba(126, 91, 72, 0.1),
    0 24px 80px rgba(85, 68, 59, 0.2);
  backdrop-filter: blur(16px);
}

.admin-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 32px;
  pointer-events: none;
}

.admin-sidebar {
  width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24)),
    linear-gradient(180deg, rgba(241, 247, 252, 0.68) 0%, rgba(255, 251, 246, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--admin-blur);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 10px 8px 18px;
}

.sidebar-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(141, 34, 48, 0.16), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(141, 34, 48, 0.14);
  color: var(--admin-accent);
  font-size: 24px;
  box-shadow: 0 14px 36px rgba(141, 34, 48, 0.12);
}

.sidebar-brand-name {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

.sidebar-brand-subtitle {
  margin-top: 6px;
  color: var(--admin-text-soft);
  font-size: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(133, 84, 70, 0.1);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--admin-text-soft);
  font-weight: 430;
  transition: 0.2s ease;
}

.sidebar-nav .nav-link i {
  width: 18px;
  font-size: 18px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  color: var(--admin-accent);
  background: linear-gradient(135deg, rgba(141, 34, 48, 0.08), rgba(255, 255, 255, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-footnote {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(141, 34, 48, 0.05), rgba(194, 225, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(141, 34, 48, 0.16), rgba(255, 255, 255, 0.9));
  color: var(--admin-accent);
  font-weight: 700;
}

.sidebar-user-name {
  font-weight: 560;
}

.sidebar-user-role {
  color: var(--admin-text-soft);
  font-size: 13px;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 0;
  flex-shrink: 0;
}

.topbar-search {
  position: relative;
  width: min(560px, 100%);
}

.topbar-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-text-faint);
}

.topbar-search input {
  width: 100%;
  height: 54px;
  padding: 0 56px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: var(--admin-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: var(--admin-text);
  outline: none;
}

.topbar-search kbd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(133, 84, 70, 0.12);
  color: var(--admin-text-soft);
  font-size: 12px;
  font-family: inherit;
}

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

.topbar-chip,
.topbar-date,
.topbar-icon {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: var(--admin-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.topbar-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--admin-text-soft);
}

.topbar-icon-badge {
  position: absolute;
  top: 12px;
  right: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--admin-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-date {
  height: 54px;
  border-radius: 18px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--admin-text-soft);
  font-weight: 420;
}

.topbar-date strong {
  color: var(--admin-text);
  font-weight: 700;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 4px 10px 0;
  flex-shrink: 0;
}

.hero-overline {
  color: var(--admin-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 560;
}

.page-title {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.page-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--admin-text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.hero-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--admin-shadow-soft);
  white-space: nowrap;
}

.hero-user-pill .btn {
  white-space: nowrap;
}

.admin-content {
  padding: 0 10px 10px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-grid {
  display: grid;
  gap: 22px;
}

.admin-card,
.stat-card,
.glass-panel,
.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 252, 250, 0.54)),
    linear-gradient(135deg, rgba(141, 34, 48, 0.04), rgba(194, 225, 255, 0.18));
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(26px);
}

.admin-card .card-header {
  background: transparent;
  border: 0;
  padding: 24px 26px 0;
  font-weight: 620;
  color: var(--admin-text);
  font-size: 16px;
}

.admin-card .card-body {
  padding: 24px 26px;
}

.admin-card .card-header + .card-body {
  padding-top: 18px;
}

.stat-card {
  height: 100%;
}

.stat-card .card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.stat-copy {
  min-width: 0;
}

.stat-label {
  color: var(--admin-text-soft);
  font-size: 13px;
  font-weight: 430;
}

.stat-value {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  font-weight: 680;
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

.stat-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-soft);
  font-size: 13px;
}

.trend-up {
  color: var(--admin-accent);
  font-weight: 560;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(141, 34, 48, 0.12), rgba(255, 255, 255, 0.7));
  color: var(--admin-accent);
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sparkline {
  width: 100%;
  height: 56px;
}

.sparkline path {
  fill: none;
  stroke: rgba(141, 34, 48, 0.85);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 24px;
  font-weight: 660;
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
}

.panel-subtitle {
  color: var(--admin-text-soft);
  margin-top: 4px;
  font-size: 14px;
}

.btn {
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 460;
}

.btn-dark,
.btn-primary {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-strong));
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(141, 34, 48, 0.24);
}

.btn-dark:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #9b2a39, #761522);
  border-color: transparent;
}

.btn-outline-secondary,
.btn-outline-dark {
  border-color: rgba(133, 84, 70, 0.16);
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.44);
}

.btn-outline-danger {
  border-color: rgba(141, 34, 48, 0.16);
  color: var(--admin-accent);
  background: rgba(255, 255, 255, 0.36);
}

.btn-link {
  color: var(--admin-accent);
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.9fr);
  gap: 22px;
  margin-top: 22px;
}

.revenue-chart {
  position: relative;
  min-height: 360px;
  padding: 12px 0 0;
}

.chart-canvas {
  position: relative;
  height: 300px;
  padding: 24px 16px 32px 62px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at top, rgba(141, 34, 48, 0.08), transparent 56%);
}

.chart-gridline {
  position: absolute;
  left: 56px;
  right: 14px;
  height: 1px;
  background: rgba(133, 84, 70, 0.12);
}

.chart-gridline span {
  position: absolute;
  left: -48px;
  top: -11px;
  color: var(--admin-text-faint);
  font-size: 12px;
}

.chart-gridline.grid-1 { top: 36px; }
.chart-gridline.grid-2 { top: 92px; }
.chart-gridline.grid-3 { top: 148px; }
.chart-gridline.grid-4 { top: 204px; }
.chart-gridline.grid-5 { top: 260px; }

.chart-trace {
  position: absolute;
  inset: 24px 16px 36px 62px;
}

.chart-trace svg {
  width: 100%;
  height: 100%;
}

.chart-area {
  fill: rgba(141, 34, 48, 0.12);
}

.chart-line {
  fill: none;
  stroke: var(--admin-accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: var(--admin-accent);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 4;
}

.chart-marker {
  position: absolute;
  left: 64%;
  top: 86px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--admin-shadow-soft);
  color: var(--admin-text);
  font-weight: 560;
}

.chart-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 112px;
  background: rgba(141, 34, 48, 0.26);
}

.chart-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-left: 62px;
  padding: 0 16px;
  color: var(--admin-text-faint);
  font-size: 13px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-accent);
  background: linear-gradient(145deg, rgba(141, 34, 48, 0.12), rgba(255, 255, 255, 0.74));
}

.activity-title {
  font-weight: 560;
}

.activity-time {
  margin-top: 4px;
  color: var(--admin-text-soft);
  font-size: 12px;
}

.admin-table-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-border-color: rgba(133, 84, 70, 0.08);
}

.table thead th {
  border-bottom-width: 1px;
  color: var(--admin-text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 560;
  padding: 16px 18px;
}

.table tbody td {
  padding: 18px;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.28);
}

.filter-bar,
.editor-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.editor-copy {
  color: var(--admin-text-soft);
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
}

.badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 560;
}

.bg-success-subtle {
  background: rgba(47, 125, 88, 0.12) !important;
}

.text-success-emphasis {
  color: var(--admin-success) !important;
}

.bg-secondary-subtle {
  background: rgba(92, 80, 74, 0.1) !important;
}

.text-secondary-emphasis {
  color: #675d57 !important;
}

.admin-card .form-label,
.form-label {
  font-weight: 560;
  color: var(--admin-text-soft);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(133, 84, 70, 0.12);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--admin-text);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(141, 34, 48, 0.34);
  box-shadow: 0 0 0 0.2rem rgba(141, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

textarea.form-control {
  min-height: 112px;
}

.form-check-input {
  border-color: rgba(133, 84, 70, 0.18);
  background-color: rgba(255, 255, 255, 0.56);
}

.form-check-input:checked {
  background-color: var(--admin-accent);
  border-color: var(--admin-accent);
}

.section-editor {
  border: 1px solid rgba(133, 84, 70, 0.1);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.26);
}

.section-editor-head {
  font-weight: 620;
  margin-bottom: 14px;
  color: var(--admin-accent);
}

.sticky-side-card {
  position: sticky;
  top: 24px;
}

.code-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--admin-text-soft);
}

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  padding: 28px;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 0.95fr);
  gap: 26px;
  padding: 24px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 251, 248, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 80px rgba(85, 68, 59, 0.18);
  backdrop-filter: blur(16px);
}

.auth-showcase,
.auth-card {
  border-radius: 30px;
}

.auth-showcase {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 34px;
  color: #fff7f5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(36, 15, 16, 0.52)),
    url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(141, 34, 48, 0), rgba(141, 34, 48, 0.18));
}

.auth-showcase > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.auth-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.auth-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
}

.auth-copy h1 {
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.04;
  font-weight: 680;
  margin: 0 0 16px;
}

.auth-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 247, 245, 0.82);
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 249, 0.58));
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(24px);
}

.auth-title {
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 680;
  margin-bottom: 12px;
}

.auth-subtitle {
  color: var(--admin-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.alert {
  border-radius: 16px;
}

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

.permission-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(133, 84, 70, 0.1);
}

.permission-card label {
  margin: 0;
  font-weight: 460;
}

.table-compact td,
.table-compact th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo-preview-shell {
  position: relative;
  min-height: 120px;
  border-radius: 18px;
  border: 1px dashed rgba(133, 84, 70, 0.18);
  background: rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.brand-logo-preview {
  display: none;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.brand-logo-preview.has-image {
  display: block;
}

.brand-logo-preview-empty {
  color: var(--admin-text-soft);
  font-size: 13px;
}

.brand-logo-preview-empty.is-hidden {
  display: none;
}

@media (max-width: 1199.98px) {
  .dashboard-grid,
  .auth-stage {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    width: 100%;
    flex-basis: auto;
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-nav .nav-link {
    width: calc(50% - 4px);
  }

  .sidebar-spacer {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .admin-shell {
    margin: 8px;
    padding: 10px;
    border-radius: 26px;
  }

  .admin-sidebar,
  .admin-card,
  .stat-card,
  .auth-card,
  .auth-showcase {
    border-radius: 22px;
  }

  .admin-topbar,
  .admin-hero,
  .filter-bar,
  .editor-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-search,
  .hero-user-pill {
    width: 100%;
  }

  .sidebar-nav .nav-link {
    width: 100%;
  }

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

  .chart-axis {
    font-size: 11px;
    gap: 4px;
  }
}
