.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: calc(var(--z-dock) + 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: -0.01em;
}

.status-bar-left,
.status-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Brand ── */
.status-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding-right: 12px;
  border-right: 0.5px solid rgba(0, 0, 0, 0.1);
}

.status-bar-brand-icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* ── Sync badges with colored outlines ── */
.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.15s ease;
  cursor: default;
}

.sync-badge:hover {
  background: rgba(255, 255, 255, 0.9);
}

.sync-badge[data-service="infomaniak"] {
  border-color: var(--green);
  color: var(--green);
}

.sync-badge[data-service="infomaniak"] .sync-badge-icon {
  color: var(--green);
}

.sync-badge[data-service="pennylane"] {
  border-color: var(--blue);
  color: var(--blue);
}

.sync-badge[data-service="pennylane"] .sync-badge-icon {
  color: var(--blue);
}

.sync-badge-icon {
  width: 13px;
  height: 13px;
}

/* ── Search ── */
.status-search {
  position: relative;
}

.status-search-input {
  width: 200px;
  height: 26px;
  padding: 0 10px 0 30px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.status-search-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.status-search-input:focus {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(90, 158, 53, 0.25);
}

.status-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ── Buttons ── */
.status-bar-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.75);
  transition: all 0.15s ease;
}

.status-bar-button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.status-bar-button-icon {
  width: 16px;
  height: 16px;
}

.status-bar-button-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Dropdowns ── */
.status-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 10px;
  box-shadow: 
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.08);
  padding: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
}

.status-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.status-dropdown-header {
  padding: 12px 14px 10px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 6px;
}

.status-dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
}

.status-dropdown-subtitle {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.status-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.status-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.status-dropdown-item-icon {
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}

.status-dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.status-dropdown-item-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

.status-dropdown-item-subtitle {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dropdown-item-time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.status-dropdown-divider {
  height: 0.5px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

.status-dropdown-item.danger {
  color: #ff3b30;
}

.status-dropdown-item.danger .status-dropdown-item-icon {
  color: #ff3b30;
}

.status-dropdown-item.danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

/* ── Account ── */
.status-bar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.status-bar-account:hover {
  background: rgba(0, 0, 0, 0.06);
}

.status-bar-account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.status-bar-account-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}
