body.auth-body {
  margin: 0;
  background: #ffffff;
  color: #18181b;
  font-family: "Pretendard", sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.app-header__inner,
.app-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #18181b;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.app-brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-nav a,
.app-nav button {
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  color: #344054;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.app-nav a.app-nav__primary,
.app-nav button.app-nav__primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2563eb;
  border-radius: 999px;
  padding: 11px 16px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  color: #344054;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.app-main {
  padding: 40px 0 64px;
}

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

.hero-card,
.panel-card {
  border: 1px solid #e4e7ec;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hero-card {
  padding: 28px;
}

.panel-card {
  padding: 24px;
}

.panel-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card h1,
.panel-card h1,
.panel-card h2 {
  margin: 0;
  color: #18181b;
  letter-spacing: -0.04em;
}

.hero-card p,
.panel-card p {
  color: #667085;
  line-height: 1.75;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  color: #475467;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.admin-tab.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.flash-message {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.flash-message--success {
  background: #f8fbff;
  color: #1859b8;
  border: 1px solid #d8e8ff;
}

.flash-message--error {
  background: #fff7f7;
  color: #a42828;
  border: 1px solid #f4d4d4;
}

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

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

.auth-field label,
.auth-field span {
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  color: #18181b;
  font: inherit;
  font-size: 15px;
}

.auth-field textarea,
.auth-field input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  color: #18181b;
  font: inherit;
  font-size: 15px;
}

.auth-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-field textarea:focus,
.auth-field input[type="file"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

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

.admin-field--full,
.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-start;
}

.auth-submit {
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.auth-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.auth-links a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

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

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

.stat-card {
  border-radius: 22px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}

.stat-card__label {
  font-size: 13px;
  font-weight: 600;
  color: #667085;
}

.stat-card__value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  color: #18181b;
  letter-spacing: -0.04em;
}

.data-table-wrap {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  border-bottom: 1px solid #eaecf0;
  padding: 14px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.data-table th {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-empty {
  padding: 24px 0 8px;
  color: #667085;
  font-size: 15px;
}

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

.admin-shortcut-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  padding: 20px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.admin-shortcut-card strong {
  color: #18181b;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.admin-shortcut-card span {
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.admin-table-offset {
  margin-top: 18px;
}

.admin-table-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.role-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.admin-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.role-badge--admin {
  background: #fef3c7;
  color: #92400e;
}

.role-badge--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff1f2;
  color: #b91c1c;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.button-danger:hover {
  background: #fee2e2;
}

.admin-inline-form {
  display: inline-flex;
}

.admin-action-btn {
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-action-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-action-btn--danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318;
}

.slide-admin-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.slide-admin-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
}

.slide-admin-preview {
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  min-height: 160px;
}

.slide-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-admin-body {
  display: grid;
  gap: 14px;
}

.slide-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slide-admin-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #18181b;
}

.slide-admin-body p {
  margin: 0;
}

.slide-admin-links {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

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

@media (max-width: 860px) {
  .stat-grid,
  .stat-grid--wide,
  .admin-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid,
  .slide-admin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-header__inner,
  .app-main {
    width: min(100% - 24px, 1120px);
  }

  .hero-card,
  .panel-card {
    border-radius: 24px;
    padding: 20px;
  }

  .app-nav {
    justify-content: flex-end;
  }

  .admin-tabs {
    gap: 8px;
  }

  .app-nav a,
  .app-nav button {
    padding: 10px 14px;
  }
}
