.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: calc(100vh - 24px);
  position: sticky;
  top: 12px;
  overflow: hidden;
  transition: transform 300ms ease, width 300ms ease;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 20px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 12px 8px;
}

.sidebar-section-label.hidden-by-role,
.sidebar-nav.hidden-by-role {
  display: none !important;
}

.sidebar-item.hidden-by-role {
  display: none !important;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent-muted);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.45);
}

.sidebar-item.active .sidebar-icon {
  color: var(--primary);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.sidebar-item:hover .sidebar-icon {
  color: var(--text-secondary);
}

.sidebar-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  text-align: center;
}

.sidebar-promo {
  margin-top: auto;
  padding-top: 16px;
}

.promo-card {
  background: var(--gradient-premium);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201, 169, 98, 0.12);
}

.promo-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -10px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.promo-wave {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.15;
}

.promo-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.promo-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.promo-btn {
  background: var(--gradient-gold);
  color: var(--primary-deep);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  align-self: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-gold);
}

.promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.sidebar-overlay.open { display: block; }
