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

:root {
  --theme-primary: #ff6a3d;
  --theme-primary-strong: #e55630;
  --theme-secondary: #0f8b7a;
  --theme-ink: #16151a;
  --theme-muted: #666877;
  --theme-bg: #f6efe6;
  --theme-surface: #fffdf8;
  --theme-surface-strong: rgba(255, 255, 255, 0.84);
  --theme-border: #eadbc9;
  --theme-border-strong: #d7c3ad;
  --theme-shadow: 0 24px 60px rgba(27, 21, 15, 0.1);
  --theme-shadow-soft: 0 16px 38px rgba(27, 21, 15, 0.07);
  --theme-radius-lg: 28px;
  --theme-radius-md: 20px;
  --theme-radius-sm: 14px;
  --theme-grid: min(1320px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--theme-ink);
  font-family: "Manrope", "Noto Sans", system-ui, sans-serif;
  background:
    radial-gradient(900px 540px at 0% -10%, rgba(255, 193, 122, 0.3) 0%, transparent 60%),
    radial-gradient(820px 480px at 100% 0%, rgba(24, 181, 150, 0.18) 0%, transparent 58%),
    linear-gradient(180deg, #fbf5ee 0%, #f3ecdf 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: none;
}

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

.admin-body {
  background:
    radial-gradient(940px 540px at 0% -10%, rgba(255, 193, 122, 0.28) 0%, transparent 60%),
    radial-gradient(820px 500px at 100% 0%, rgba(24, 181, 150, 0.16) 0%, transparent 58%),
    linear-gradient(180deg, #fbf7f1 0%, #f3ece0 100%);
}

.shell-frame {
  width: var(--theme-grid);
  margin: 0 auto;
}

.shell-card,
.theme-card,
.card,
.panel {
  background: var(--theme-surface-strong);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  box-shadow: var(--theme-shadow-soft);
  backdrop-filter: blur(18px);
}

.shell-card-strong {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border-strong);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow);
}

.shell-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shell-accent {
  color: var(--theme-primary);
}

.shell-title {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.shell-subtitle {
  margin: 0;
  color: var(--theme-muted);
}

.shell-grid {
  display: grid;
  gap: 20px;
}

.shell-stat {
  padding: 22px;
  border-radius: var(--theme-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 252, 247, 0.82) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
}

.shell-stat-kicker {
  margin-bottom: 12px;
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-stat-value {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.shell-stat-note {
  margin: 10px 0 0;
  color: var(--theme-muted);
  font-size: 14px;
}

.btn-primary,
.btn-theme,
.shell-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, #ff8b5a 55%, var(--theme-secondary) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(255, 106, 61, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-primary:hover,
.btn-theme:hover,
.shell-button-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(255, 106, 61, 0.32);
  filter: saturate(1.03);
}

.shell-button-secondary,
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--theme-border-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--theme-ink);
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.shell-button-secondary:hover,
.btn-outline-primary:hover {
  color: var(--theme-ink);
  background: #fff;
  border-color: var(--theme-primary);
  transform: translateY(-2px);
}

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 16px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(251, 247, 241, 0.94) 0%, rgba(251, 247, 241, 0.76) 100%);
  border-bottom: 1px solid rgba(234, 219, 201, 0.88);
}

.admin-shell {
  width: var(--theme-grid);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(255, 106, 61, 0.2);
}

.admin-brand-title {
  display: block;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-brand-tag {
  display: block;
  margin-top: 4px;
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.admin-link:hover,
.admin-link.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-ink);
  transform: translateY(-1px);
}

.admin-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 61, 0.16);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--theme-border);
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.14), rgba(15, 139, 122, 0.14));
  color: #8a4a25;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #f6cdb8;
  background: #fff1e8;
  color: #b9441a;
  font-size: 13px;
  font-weight: 800;
}

.admin-logout:hover {
  color: #8f3210;
  background: #ffe6d7;
}

.admin-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 16px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-toggle span,
.admin-toggle span::before,
.admin-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--theme-ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.admin-toggle span {
  position: relative;
}

.admin-toggle span::before,
.admin-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.admin-toggle span::before {
  top: -6px;
}

.admin-toggle span::after {
  top: 6px;
}

.admin-toggle.is-open span {
  background: transparent;
}

.admin-toggle.is-open span::before {
  transform: translateY(6px) rotate(45deg);
}

.admin-toggle.is-open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.admin-sidebar {
  position: fixed;
  top: 104px;
  left: max(20px, calc((100vw - var(--theme-grid)) / 2));
  bottom: 20px;
  width: 250px;
  padding: 14px;
  overflow-y: auto;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--theme-border);
  border-radius: 28px;
  box-shadow: var(--theme-shadow);
  backdrop-filter: blur(18px);
  z-index: 40;
}

.admin-sidebar-title {
  margin: 4px 8px 12px;
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  color: #3e4252;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--theme-ink);
  transform: translateX(2px);
}

.admin-sidebar-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 61, 0.18);
}

.admin-sidebar-metric {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff9f1 0%, #fff 100%);
  border: 1px solid var(--theme-border);
}

.admin-sidebar-metric-label {
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar-metric-value {
  margin-top: 10px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.admin-main {
  width: calc(var(--theme-grid) - 282px);
  margin: 32px auto 56px;
  margin-left: calc(max(20px, calc((100vw - var(--theme-grid)) / 2)) + 282px);
  padding: 0 0 12px;
}

.admin-main .bg-white,
.admin-main .bg-gray-50,
.admin-main .bg-gray-100 {
  border-radius: 20px !important;
}

.admin-main .bg-white {
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid var(--theme-border) !important;
  box-shadow: var(--theme-shadow-soft) !important;
}

.admin-main .border,
.admin-main .border-gray-200,
.admin-main .border-gray-300 {
  border-color: var(--theme-border) !important;
}

.admin-main .table-responsive,
.admin-main .overflow-x-auto {
  border-radius: 20px;
}

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

.admin-main table th,
.admin-main table td {
  vertical-align: top;
}

.admin-main table tbody tr {
  transition: background 0.18s ease;
}

.admin-main table tbody tr:hover {
  background: rgba(255, 248, 241, 0.66);
}

.admin-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.admin-main textarea,
.admin-main select {
  border-radius: 16px !important;
  border: 1px solid var(--theme-border) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--theme-ink);
  box-shadow: none !important;
}

.admin-main input:focus,
.admin-main textarea:focus,
.admin-main select:focus {
  outline: none;
  border-color: rgba(255, 106, 61, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12) !important;
}

.admin-main .btn,
.admin-main button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-main .btn:hover,
.admin-main button:hover {
  transform: translateY(-1px);
}

.admin-empty,
.empty-state,
.admin-main .text-muted:only-child {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 248, 241, 0.72);
  border: 1px dashed var(--theme-border-strong);
  color: var(--theme-muted) !important;
}

.status-badge,
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-badge.success,
.admin-status.success {
  background: rgba(27, 139, 112, 0.12);
  color: #156c59;
}

.status-badge.warning,
.admin-status.warning {
  background: rgba(255, 163, 92, 0.16);
  color: #9b5f17;
}

.status-badge.danger,
.admin-status.danger {
  background: rgba(218, 91, 73, 0.14);
  color: #a33a2a;
}

.status-badge.info,
.admin-status.info {
  background: rgba(45, 96, 200, 0.12);
  color: #2d60c8;
}

.admin-title {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.admin-subtitle {
  margin: 10px 0 0;
  color: var(--theme-muted);
  font-size: 16px;
}

.admin-panel-card {
  padding: 28px;
  border-radius: var(--theme-radius-lg);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 248, 240, 0.78) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

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

.admin-summary-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 255, 255, 0.82);
}

.admin-summary-label {
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-summary-value {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.admin-section-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.admin-card-link:hover {
  transform: translateY(-3px);
  border-color: #ffc7af;
  box-shadow: 0 24px 48px rgba(27, 21, 15, 0.12);
}

.shell-card:hover,
.theme-card:hover,
.card:hover,
.panel:hover {
  box-shadow: 0 22px 46px rgba(27, 21, 15, 0.1);
}

.admin-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 106, 61, 0.14), rgba(15, 139, 122, 0.12));
  color: var(--theme-primary);
  font-size: 22px;
}

.admin-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.admin-card-text {
  margin: 0;
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-page {
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: 24px;
  align-items: stretch;
}

.auth-showcase,
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--theme-shadow);
  backdrop-filter: blur(18px);
}

.auth-showcase {
  padding: 38px;
  background:
    radial-gradient(460px 260px at 20% 0%, rgba(255, 195, 116, 0.35) 0%, transparent 65%),
    radial-gradient(380px 240px at 90% 15%, rgba(15, 139, 122, 0.2) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 247, 238, 0.88) 100%);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.18) 0%, rgba(255, 106, 61, 0) 70%);
}

.auth-card {
  padding: 30px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(255, 106, 61, 0.2);
}

.auth-title {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 14px 0 0;
  color: var(--theme-muted);
  font-size: 16px;
  line-height: 1.6;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 219, 201, 0.9);
}

.auth-point-index {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-primary), #ff8b5a);
  color: #fff;
  font-weight: 800;
}

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

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #2c3040;
  letter-spacing: 0.02em;
}

.auth-field {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-ink);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.auth-field:focus {
  outline: none;
  border-color: rgba(255, 106, 61, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
}

.auth-alert {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff0ef;
  border: 1px solid #f6c5c0;
  color: #a33420;
  font-size: 14px;
}

.auth-meta {
  margin-top: 18px;
  color: var(--theme-muted);
  font-size: 14px;
  text-align: center;
}

.auth-meta a {
  color: var(--theme-primary);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .admin-main {
    width: auto;
    margin-left: 302px;
    margin-right: 20px;
  }
}

@media (max-width: 1024px) {
  .admin-toggle {
    display: inline-flex;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
  }

  .admin-panel.is-open {
    display: flex;
  }

  .admin-links,
  .admin-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-link,
  .admin-user,
  .admin-logout {
    justify-content: center;
  }

  .admin-user {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .admin-main {
    width: var(--theme-grid);
    margin: 28px auto 48px;
  }

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

  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    gap: 12px;
  }

  .admin-brand img {
    width: 46px;
    height: 46px;
  }

  .admin-brand-title {
    font-size: 16px;
  }

  .admin-main {
    width: min(100vw - 24px, 100%);
  }

  .admin-user {
    font-size: 12px;
  }

  .admin-panel-card,
  .auth-showcase,
  .auth-card {
    padding: 22px;
    border-radius: 24px;
  }

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