:root {
  --brand-50: #fff8e6;
  --brand-100: #ffefc2;
  --brand-200: #ffe29a;
  --brand-300: #ffd56a;
  --brand-400: #ffca3f;
  --brand-500: #fbbf24;
  --brand-600: #d9a20b;
  --brand-700: #b78300;
  --brand-800: #8a6200;
  --brand-900: #5f4400;
  --brand-neutral-900: #1f2937;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(251 191 36 / 0.35);
  color: #111827;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-logo img {
  height: 2rem;
  width: 2rem;
  object-fit: contain;
}

.brand-name {
  letter-spacing: -0.015em;
}

.brand-header {
  background: #ffffff;
  z-index: 50;
}

.brand-nav-badge {
  border: 1px solid rgb(217 162 11 / 0.35);
  background: rgb(251 191 36 / 0.12);
  color: var(--brand-800);
}

.brand-nav-link {
  color: #475569;
  border-color: transparent;
  transition: all 0.18s ease;
}

.brand-nav-link:hover {
  color: var(--brand-800);
  background: rgb(251 191 36 / 0.08);
}

.brand-public-nav-active {
  color: var(--brand-900);
  background: rgb(251 191 36 / 0.16);
  border: 1px solid rgb(217 162 11 / 0.22);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.brand-nav-cta {
  border: 1px solid rgb(217 162 11 / 0.35);
  color: var(--brand-800);
  background: linear-gradient(145deg, rgb(255 248 230), rgb(255 255 255));
  transition: all 0.2s ease;
}

.brand-nav-cta:hover {
  border-color: rgb(217 162 11 / 0.5);
  background: linear-gradient(145deg, rgb(255 239 194), rgb(255 255 255));
  color: var(--brand-900);
}

.brand-nav-item-active {
  background: linear-gradient(120deg, rgb(251 191 36 / 0.2), rgb(255 255 255 / 1));
  color: var(--brand-900);
  border-color: rgb(217 162 11 / 0.3);
}

.brand-admin-panel {
  box-shadow: 0 14px 30px rgb(15 23 42 / 0.06);
}

.brand-user-card {
  background: linear-gradient(140deg, #fffef8 0%, #ffffff 100%);
}

.brand-admin-section-title {
  letter-spacing: 0.18em;
}

.brand-admin-nav-item {
  color: #334155;
  border-color: transparent;
  transition: all 0.18s ease;
}

.brand-admin-nav-item:hover {
  color: #0f172a;
  border-color: rgb(203 213 225 / 0.6);
  background: #f8fafc;
}

.brand-admin-nav-item-active {
  position: relative;
  color: var(--brand-900);
  border-color: rgb(217 162 11 / 0.34);
  background: linear-gradient(135deg, rgb(255 248 230) 0%, rgb(255 255 255) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5);
}

.brand-admin-nav-item-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 9999px;
  background: var(--brand-600);
}

.brand-admin-nav-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.brand-admin-nav-icon {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}

.brand-avatar-fallback {
  background: var(--brand-700);
  color: #fff;
}

.brand-surface {
  border: 1px solid rgb(251 191 36 / 0.35);
  background: linear-gradient(120deg, #fff8e6 0%, #ffffff 52%, #ffefc2 100%);
}

.actions-overflow-open {
  overflow: visible !important;
}

.mobile-side-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 1023.98px) {
  .brand-header {
    z-index: 70 !important;
  }

  #mobileOverlay {
    top: var(--admin-header-h, 56px) !important;
    z-index: 55 !important;
  }

  #sidebar {
    top: var(--admin-header-h, 56px) !important;
    height: calc(100dvh - var(--admin-header-h, 56px)) !important;
    z-index: 60 !important;
  }
}

@media (min-width: 1024px) {
  .admin-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .admin-sidebar-col {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
    overflow: visible !important;
    padding-top: 1.5rem !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    border-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-self: start;
  }

  .admin-main-col {
    min-width: 0;
    padding-top: 1.5rem !important;
  }

  #mobileOverlay {
    display: none !important;
  }

  #menuCloseWrap,
  #menuClose {
    display: none !important;
  }
}
