/* Account controls share the existing sidebar colours and navigation spacing. */
.sb-bottom button.sb-user-strip {
  width: calc(100% - 16px);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.sb-bottom button.sb-user-strip:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.sb-bottom .sb-subscription-btn {
  text-decoration: none;
  box-sizing: border-box;
  min-height: 44px;
}
.sb-bottom button.sb-user-strip:focus-visible,
.sb-bottom .sb-subscription-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Subscription Expiry Badge */
.sb-subscription-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-left: auto;
  transition: background 0.15s ease, color 0.15s ease;
}
.sb-sub-badge--safe {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}
[data-theme='dark'] .sb-sub-badge--safe {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
.sb-sub-badge--warning {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.35);
}
[data-theme='dark'] .sb-sub-badge--warning {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}
.sb-sub-badge--danger {
  background: rgba(220, 38, 38, 0.16);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
}
[data-theme='dark'] .sb-sub-badge--danger {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

/* Collapsed sidebar (62px rail): stack the icon above a compact days pill so
   "14d" / "Today" / "Expired" stays fully readable without horizontal clipping. */
.sb-collapsed .sb-bottom .sb-subscription-btn {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 7px 2px !important;
}
.sb-collapsed .sb-subscription-badge {
  margin-left: 0 !important;
  font-size: 9px !important;
  padding: 1px 5px !important;
  line-height: 1.25 !important;
  max-width: 54px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.sb-collapsed .sb-subscription-badge .sb-sub-suffix {
  display: none !important;
}

