.sidebar .brand-logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.profile-name-edit-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.profile-name-edit-trigger[hidden],
.sidebar-company-name-form[hidden] {
  display: none;
}

.profile-name-text {
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name-pencil {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.68);
  transition: color 150ms ease, background-color 150ms ease;
}

.profile-name-pencil svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.profile-name-edit-trigger:hover .profile-name-pencil {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.profile-name-edit-trigger:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.48);
  outline-offset: 4px;
  border-radius: 8px;
}

.sidebar-company-name-form {
  display: grid;
  gap: 8px;
}

.sidebar-company-name-form label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-company-name-form input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 11px;
  font: inherit;
}

.sidebar-company-name-form input:focus {
  border-color: #38bdf8;
  outline: 3px solid rgba(56, 189, 248, 0.22);
}

.sidebar-company-name-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sidebar-company-name-actions button {
  min-height: 36px;
  border-radius: 10px;
  font-weight: 850;
  cursor: pointer;
}

.sidebar-company-name-save {
  border: 0;
  background: #ffffff;
  color: #0f172a;
}

.sidebar-company-name-cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
}

.sidebar-company-name-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.sidebar-company-name-notice {
  margin: 0;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-credit-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #eef8ff 100%);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-credit-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sidebar-credit-balance {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.sidebar-charge-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.sidebar-charge-btn:hover,
.sidebar-charge-btn.active {
  background: #0284c7;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.24);
}

.sidebar-charge-btn:hover {
  transform: translateY(-1px);
}

.sidebar-charge-btn:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.48);
  outline-offset: 2px;
}

.nav .sidebar-service-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.nav .sidebar-operations-group {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.nav .sidebar-operations-group button {
  font-weight: 800;
}

.admin-operations-tabs button:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.4);
  outline-offset: 2px;
}

.nav .sidebar-service-card:hover,
.nav .sidebar-service-card.active {
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.nav .sidebar-service-card:hover {
  transform: translateY(-1px);
}

.nav .sidebar-service-card:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.48);
  outline-offset: 2px;
}

.sidebar-service-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.sidebar-service-card-head strong {
  min-width: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.sidebar-service-card-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.sidebar-service-card-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-service-card-arrow {
  color: rgba(255, 255, 255, 0.54);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.sidebar-service-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-service-summary-count {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sidebar-service-summary-list {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sidebar-service-summary[data-summary-state="empty"] .sidebar-service-summary-count,
.sidebar-service-summary[data-summary-state="unavailable"] .sidebar-service-summary-count {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 640px) {
  .my-service-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .my-service-tabs button {
    min-width: 0;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .sidebar-credit-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .sidebar-credit-label {
    grid-column: 1;
  }

  .sidebar-credit-balance {
    grid-column: 1;
  }

  .sidebar-charge-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 96px;
    margin-top: 0;
    padding-inline: 18px;
  }

  .nav .sidebar-service-card {
    gap: 9px;
  }

}
