.author-space-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 14, 12, 0.08);
  transition: box-shadow 0.3s ease;
}

.author-space-navbar.is-scrolled {
  box-shadow: 0 2px 20px rgba(15, 14, 12, 0.08);
}

.author-space-navbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.author-space-navbar__brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
}

.author-space-navbar__brand-name {
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
  color: #0f0e0c;
  letter-spacing: -0.01em;
}

.author-space-navbar__brand-accent {
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
  color: #c0392b;
  font-style: italic;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 14, 12, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.editor-nav-state {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.06);
}

.editor-nav-state__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f0e0c;
  white-space: nowrap;
}

.nav-link {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #7a7468;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0f0e0c;
  background: rgba(15, 14, 12, 0.06);
}

.nav-link.is-active {
  color: #0f0e0c;
  background: #f5f0e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: #0f0e0c;
  color: #f5f0e8;
  border: 1.5px solid #0f0e0c;
}

.btn-primary:hover {
  background: #c0392b;
  border-color: #c0392b;
}

.btn-secondary {
  background: transparent;
  color: #0f0e0c;
  border: 1.5px solid rgba(15, 14, 12, 0.25);
}

.btn-secondary:hover {
  border-color: #0f0e0c;
  background: rgba(15, 14, 12, 0.04);
}

.editor-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(15, 14, 12, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #0f0e0c;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.editor-icon-btn:hover {
  border-color: #0f0e0c;
  background: rgba(15, 14, 12, 0.04);
}

.editor-icon-btn.is-active {
  background: #0f0e0c;
  color: #f5f0e8;
  border-color: #0f0e0c;
}

.ghost-link {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #7a7468;
  text-decoration: none;
  padding: 8px 10px;
  transition: color 0.2s ease;
}

.ghost-link:hover {
  color: #0f0e0c;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.user-card:hover {
  border-color: rgba(15, 14, 12, 0.15);
  background: rgba(15, 14, 12, 0.03);
}

.avatar-fallback,
.avatar-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar-fallback {
  background: #0f0e0c;
  color: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.avatar-image {
  object-fit: cover;
}

.user-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f0e0c;
  display: block;
  line-height: 1.2;
}

.user-card__sub {
  font-size: 0.68rem;
  color: #7a7468;
  display: block;
  line-height: 1.2;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #0f0e0c;
  background: rgba(15, 14, 12, 0.06);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.25);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% { box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.08); }
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(15, 14, 12, 0.18);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  padding: 0;
}

.hamburger:hover {
  border-color: #0f0e0c;
  background: rgba(15, 14, 12, 0.04);
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #0f0e0c;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease, width 0.28s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1),
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2),
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.is-open span:nth-child(3),
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  width: 232px;
  background: #faf7f2;
  border: 1px solid rgba(15, 14, 12, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 14, 12, 0.12), 0 2px 6px rgba(15, 14, 12, 0.05);
  overflow: hidden;
  transform-origin: top right;
  z-index: 200;
}

.mobile-dropdown.is-open {
  display: block;
  animation: dd-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dd-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dd-section {
  padding: 8px;
}

.dd-section + .dd-section {
  border-top: 1px solid rgba(15, 14, 12, 0.07);
}

.dd-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a09890;
  padding: 4px 10px 5px;
  display: block;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #0f0e0c;
  transition: background 0.13s ease;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
}

.dd-item:hover {
  background: rgba(15, 14, 12, 0.05);
}

.dd-item.danger {
  color: #c0392b;
}

.dd-item.danger:hover {
  background: rgba(192, 57, 43, 0.06);
}

.dd-item--accent {
  color: #c0392b;
  font-weight: 600;
}

.dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 14, 12, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dd-icon--accent {
  background: rgba(192, 57, 43, 0.08);
}

.dd-item.danger .dd-icon {
  background: rgba(192, 57, 43, 0.08);
}

@media (max-width: 767px) {
  .desktop-nav,
  .desktop-actions {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }
}
