/* ─── Shared Site Nav ─────────────────────────────────────────────────────────
   Used by: index.html and admin/*.php
   Font path is relative to this CSS file's location (thailand/css/).
   ──────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Assyrian';
  src: url('../AssyrianRegular.woff2') format('woff2');
  font-display: swap;
}

:root { --nav-height: 64px; }

/* ── Base nav bar ─────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Scrolled state (frontend JS adds this) or always-solid (admin) */
.site-nav.scrolled,
.site-nav--solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.nav-logo {
  font-family: 'Assyrian', serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.4s;
}
.site-nav.scrolled .nav-logo,
.site-nav--solid .nav-logo { color: var(--purple); }

.nav-logo-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.nav-spin {
  display: inline-block;
  animation: navSpin 8s linear infinite;
}
@keyframes navSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Link container ───────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

/* All nav anchors */
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.site-nav.scrolled .nav-links a,
.site-nav--solid .nav-links a { color: var(--purple-dark); }
.nav-links a:not(.nav-view-site):not(.nav-signout):not(.nav-login):not(.nav-cta):hover { color: var(--purple) !important; }

/* ── Animated underline (scroll-spy + hover) ──────────────────────────────── */
.nav-links a:not(.nav-cta):not(.nav-login):not(.nav-signout):not(.nav-view-site)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav.scrolled .nav-links a:not(.nav-cta):not(.nav-login):not(.nav-signout):not(.nav-view-site)::after,
.site-nav--solid .nav-links a:not(.nav-cta):not(.nav-login):not(.nav-signout):not(.nav-view-site)::after {
  background: var(--purple);
}
.nav-links a.nav-active:not(.nav-cta):not(.nav-login):not(.nav-signout):not(.nav-view-site)::after,
.nav-links a:not(.nav-cta):not(.nav-login):not(.nav-signout):not(.nav-view-site):hover::after {
  transform: scaleX(1);
}

/* No underline pseudo-element in mobile drawer */
@media (max-width: 700px) {
  .nav-links a::after { display: none; }
}

/* CTA pill (frontend only) */
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  transition: background 0.3s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #6358b0 !important; color: #fff !important; }

/* View site button */
.nav-view-site {
  border: 1.5px solid var(--purple) !important;
  color: var(--purple);
  padding: 0.4rem 1.1rem;
  border-radius: 40px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-view-site:hover {
  background: var(--purple) !important;
  color: #fff !important;
  text-decoration: none;
}

/* Login / Sign-out pill */
.nav-login,
.nav-signout {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 40px;
  transition: border-color 0.3s, color 0.3s, background 0.3s !important;
}
.nav-login:hover,
.nav-signout:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.site-nav.scrolled .nav-login,
.site-nav.scrolled .nav-signout,
.site-nav--solid .nav-login,
.site-nav--solid .nav-signout {
  border-color: var(--purple);
  color: var(--purple) !important;
}
.site-nav.scrolled .nav-login:hover,
.site-nav.scrolled .nav-signout:hover,
.site-nav--solid .nav-login:hover,
.site-nav--solid .nav-signout:hover {
  background: var(--purple) !important;
  color: #fff !important;
}

/* ── Profile dropdown ─────────────────────────────────────────────────────── */
.nav-profile {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.nav-profile__trigger {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: var(--purple);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.site-nav--solid .nav-profile__trigger { border-color: var(--purple); }
.nav-profile__trigger:hover { box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2); }
.nav-profile__trigger img { width: 100%; height: 100%; object-fit: cover; }

.nav-profile__initials {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
}

.nav-profile__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
  overflow: hidden;
}
.nav-profile:hover .nav-profile__dropdown,
.nav-profile__dropdown.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-profile__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0edf5;
}
.nav-profile__header img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-profile__avatar-fallback {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-profile__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile__item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #444 !important;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-profile__item::after { display: none !important; }
.nav-profile__item:hover { background: #f5f3fa; color: var(--purple) !important; }

.nav-profile__item--signout {
  color: #c0392b !important;
  border-top: 1px solid #f0edf5;
}
.nav-profile__item--signout:hover { background: #fdf0ef; color: #c0392b !important; }

/* ── Toast notification ───────────────────────────────────────────────────── */
.toast { position: fixed; top: 5rem; left: 50%; transform: translateX(-50%) translateY(-12px); background: #1a1a2e; color: #fff; padding: 0.75rem 1.5rem; border-radius: 40px; font-size: 0.88rem; font-weight: 500; box-shadow: 0 6px 24px rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.4s, transform 0.4s; pointer-events: none; z-index: 3000; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Hamburger ────────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-nav.scrolled .nav-hamburger span,
.site-nav--solid .nav-hamburger span { background: var(--purple-dark); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .site-nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 2rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    gap: 0;
    z-index: 999;
    /* hidden state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Dividers between items (works for both li and direct children) */
  .nav-links > * { width: 100%; border-bottom: 1px solid #f0edf5; }
  .nav-links > *:last-child { border-bottom: none; }

  /* All links in drawer */
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    color: var(--purple-dark) !important;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  /* Flatten pills in mobile */
  .nav-cta, .nav-login, .nav-signout {
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 0.85rem 0 !important;
    color: var(--purple-dark) !important;
  }

  /* Admin user chip in drawer */
  .nav-admin-info { padding: 0.85rem 0; }
}

/* ── Admin Sidebar Shell ─────────────────────────────────────────────────── */
.admin-sidebar-page {
  padding-top: 0 !important;
}

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

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  width: 240px;
  background: linear-gradient(180deg, #171225 0%, #0f0b18 100%);
  color: rgba(255,255,255,0.88);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 12px 0 34px rgba(21, 13, 42, 0.16);
}

.sidebar-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1.35rem 1.2rem 1.15rem;
  color: #fff;
  text-decoration: none;
}

.sidebar-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 116, 246, 0.2);
  color: #d8d0ff;
  font-size: 1.35rem;
  animation: navSpin 8s linear infinite;
}

.sidebar-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-brand__title {
  font-family: 'Assyrian', serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.sidebar-brand__badge {
  margin-top: 0.18rem;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.42);
}

.sidebar-retreat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  margin: 0 0.85rem 0.28rem;
  padding: 0.46rem 0.58rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.86);
}

.sidebar-retreat__inner {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-retreat__label {
  font-size: 0.52rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.38);
  font-weight: 850;
}

.sidebar-retreat__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(255,255,255,0.88);
  font-weight: 750;
}

.sidebar-retreat__chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: rgba(255,255,255,0.42);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-retreat__short {
  display: none;
}

.sidebar-main {
  flex: 1;
  padding: 0.2rem 0.85rem 1rem;
  overflow-y: auto;
}

.sidebar-section {
  padding: 0.42rem 0 0.15rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-section:first-child {
  border-top: none;
  padding-top: 0.08rem;
}

.sidebar-section__label {
  padding: 0 0.55rem 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-weight: 800;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  padding: 0.45rem 0.68rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link__short {
  display: none;
}

.sidebar-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: rgba(255,255,255,0.46);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.sidebar-link:hover .sidebar-icon {
  color: rgba(255,255,255,0.82);
}

.sidebar-link.active {
  background: rgba(139, 116, 246, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 #9d8cff;
}

.sidebar-link.active .sidebar-icon {
  color: #b9adff;
}

.sidebar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.23);
  flex: 0 0 auto;
}

.sidebar-link.active .sidebar-dot {
  background: #b9adff;
  box-shadow: 0 0 0 4px rgba(157, 140, 255, 0.14);
}

.sidebar-bottom {
  padding: 1rem 0.85rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-view-site {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 0.85rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
}

.sidebar-view-site__short {
  display: none;
}

.sidebar-view-site:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-view-site:hover .sidebar-icon {
  color: rgba(255,255,255,0.82);
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6c5ce7;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-account__name {
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.sidebar-account__role {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-top: 0.1rem;
}

.sidebar-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.sidebar-small-link {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}

.sidebar-small-link:hover,
.sidebar-small-link.active {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

.sidebar-small-link.signout {
  color: #ffc7c7;
}

.sidebar-collapse {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.68);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-collapse:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-collapse__icon {
  font-size: 1rem;
  line-height: 1;
}

.admin-main {
  margin-left: 240px;
  min-height: 100vh;
}

.admin-sidebar-collapsed .admin-sidebar {
  width: 72px;
}

.admin-sidebar-collapsed .admin-main {
  margin-left: 72px;
}

.admin-sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.admin-sidebar-collapsed .sidebar-brand__text,
.admin-sidebar-collapsed .sidebar-retreat__inner,
.admin-sidebar-collapsed .sidebar-retreat__chevron,
.admin-sidebar-collapsed .sidebar-section__label,
.admin-sidebar-collapsed .sidebar-link__text,
.admin-sidebar-collapsed .sidebar-view-site__text,
.admin-sidebar-collapsed .sidebar-account__name,
.admin-sidebar-collapsed .sidebar-account__role,
.admin-sidebar-collapsed .sidebar-account-actions,
.admin-sidebar-collapsed .sidebar-collapse__text {
  display: none;
}

.admin-sidebar-collapsed .sidebar-main {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.admin-sidebar-collapsed .sidebar-retreat {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.28rem;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.admin-sidebar-collapsed .sidebar-retreat__short {
  display: block;
  color: #d8d0ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-sidebar-collapsed .sidebar-section {
  padding-top: 0.55rem;
}

.admin-sidebar-collapsed .sidebar-link {
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 0;
  gap: 0;
}

.admin-sidebar-collapsed .sidebar-icon {
  width: 20px;
  height: 20px;
}

.admin-sidebar-collapsed .sidebar-link__short {
  display: none;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-sidebar-collapsed .sidebar-dot {
  display: none;
}

.admin-sidebar-collapsed .sidebar-bottom {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.admin-sidebar-collapsed .sidebar-view-site {
  display: grid;
  place-items: center;
  padding: 0.62rem 0;
}

.admin-sidebar-collapsed .sidebar-view-site__short {
  display: none;
}

.admin-sidebar-collapsed .sidebar-account {
  justify-content: center;
  padding: 0.55rem 0;
}

.admin-sidebar-collapsed .sidebar-avatar {
  width: 34px;
  height: 34px;
}

.admin-sidebar-collapsed .sidebar-collapse {
  padding: 0.58rem 0;
}

.admin-sidebar-collapsed .sidebar-collapse__icon {
  transform: rotate(180deg);
}

.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1300;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #171225;
  color: #fff;
  box-shadow: 0 8px 22px rgba(35,24,69,0.22);
  cursor: pointer;
}

.mobile-sidebar-toggle span,
.mobile-sidebar-toggle::before,
.mobile-sidebar-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-sidebar-toggle.open span {
  opacity: 0;
}

.mobile-sidebar-toggle.open::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-sidebar-toggle.open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 13, 39, 0.44);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

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

  .admin-main {
    margin-left: 0;
  }

  .admin-sidebar-collapsed .admin-sidebar {
    width: 240px;
  }

  .admin-sidebar-collapsed .admin-main {
    margin-left: 0;
  }

  .admin-sidebar-collapsed .sidebar-brand {
    justify-content: flex-start;
    padding: 1.35rem 1.2rem 1.15rem;
  }

  .admin-sidebar-collapsed .sidebar-brand__text,
  .admin-sidebar-collapsed .sidebar-retreat__inner,
  .admin-sidebar-collapsed .sidebar-account__name,
  .admin-sidebar-collapsed .sidebar-account__role {
    display: block;
  }

  .admin-sidebar-collapsed .sidebar-retreat {
    width: auto;
    height: auto;
    margin: 0 0.85rem 0.58rem;
    padding: 0.46rem 0.58rem;
    justify-content: space-between;
    border-radius: 9px;
  }

  .admin-sidebar-collapsed .sidebar-retreat__short {
    display: none;
  }

  .admin-sidebar-collapsed .sidebar-retreat__chevron {
    display: block;
  }

  .admin-sidebar-collapsed .sidebar-section__label {
    display: block;
  }

  .admin-sidebar-collapsed .sidebar-link__text,
  .admin-sidebar-collapsed .sidebar-view-site__text,
  .admin-sidebar-collapsed .sidebar-collapse__text {
    display: inline;
  }

  .admin-sidebar-collapsed .sidebar-account-actions {
    display: grid;
  }

  .admin-sidebar-collapsed .sidebar-main {
    padding: 0.4rem 0.85rem 1rem;
  }

  .admin-sidebar-collapsed .sidebar-section {
    padding: 0.8rem 0 0.2rem;
  }

  .admin-sidebar-collapsed .sidebar-link {
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 39px;
    padding: 0.62rem 0.68rem;
  }

  .admin-sidebar-collapsed .sidebar-bottom {
    padding: 1rem 0.85rem 1.1rem;
  }

  .admin-sidebar-collapsed .sidebar-view-site {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.62rem 0.72rem;
  }

  .admin-sidebar-collapsed .sidebar-account {
    justify-content: flex-start;
    padding: 0.72rem;
  }

  .admin-sidebar-collapsed .sidebar-avatar {
    width: 36px;
    height: 36px;
  }

  .admin-sidebar-collapsed .sidebar-link__short,
  .admin-sidebar-collapsed .sidebar-view-site__short {
    display: none;
  }

  .admin-sidebar-collapsed .sidebar-dot {
    display: block;
  }

  .admin-sidebar-collapsed .sidebar-collapse {
    display: none;
  }

  .sidebar-collapse {
    display: none;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .admin-sidebar-page .container,
  .admin-sidebar-page .page {
    padding-top: 4.5rem !important;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}
