.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height, 60px);
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  display: none;
  z-index: 100;
}

@media (max-width: 767px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: var(--bottom-nav-height, 60px); }
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 4px 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-secondary);
  gap: 1px;
  flex: 1;
  height: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item.active {
  color: var(--color-accent);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-label {
  font-size: 10px;
  line-height: 1;
  color: inherit;
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--color-accent);
}

.bottom-nav-add {
  position: relative;
}

.bottom-nav-add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease;
}

.bottom-nav-add-btn:hover {
  opacity: 0.9;
}

.bottom-nav-add-btn svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.bottom-nav-item .notification-count {
  top: -2px;
  right: -6px;
}

.bottom-nav-profile-trigger {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-profile-trigger.active {
  color: var(--color-accent);
}

.bottom-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  display: none;
}

.bottom-nav-overlay.is-visible {
  display: block;
}

.bottom-nav-profile-sheet {
  position: fixed;
  bottom: var(--bottom-nav-height, 60px);
  left: 0;
  right: 0;
  background: var(--color-background);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 99;
  transform: translateY(calc(100% + 60px));
  transition: transform 0.3s ease;
  padding: 8px 0 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.bottom-nav-profile-sheet::before {
  content: '';
  display: block;
  width: 32px;
  height: 4px;
  background: var(--color-bg-muted);
  border-radius: 2px;
  margin: 0 auto 8px;
}

.bottom-nav-profile-sheet.is-open {
  transform: translateY(0);
}

.bottom-nav-profile-sheet-header {
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.bottom-nav-profile-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}

.bottom-nav-profile-id {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.bottom-nav-profile-link {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background 0.15s ease;
}

.bottom-nav-profile-link:hover,
.bottom-nav-profile-link:active {
  background: var(--color-bg-hover);
}

.bottom-nav-profile-link.danger {
  color: var(--color-danger);
}

.bottom-nav-profile-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 20px;
}

@media (min-width: 768px) {
  .bottom-nav-profile-sheet,
  .bottom-nav-overlay {
    display: none;
  }
}
