.license-active {
  color: var(--color-success);
}

.license-unregistered {
  color: var(--color-error);
}

.license-activation-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.license-input-group {
  display: flex;
  gap: 0.5rem;
}

.license-input {
  flex-grow: 1;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-emphasis);
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

.license-input:focus {
  border-color: var(--color-accent);
}

.license-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.activate-btn {
  background: var(--color-accent);
  border: none;
  color: var(--color-accent-text-on);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
  transition: background 0.15s;
}

.activate-btn:hover {
  background: var(--color-accent-hover);
}

.activate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-text {
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 0.25rem;
}

.hwid-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-bg-base);
  padding: 0.625rem;
  border-radius: 0.25rem;
  border: 1px solid var(--color-border-subtle);
  margin: 0.5rem 0;
}

.hwid-label {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.hwid-val {
  font-family: "CascadiaCode", monospace;
  font-size: 0.75rem;
  color: var(--color-text-primary);
  word-break: break-all;
}

.spinner-container {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
}

.spinner {
  width: 0.875rem;
  height: 0.875rem;
  border: 0.125rem solid var(--color-spinner-track);
  border-top-color: var(--color-accent-text-on);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.offline-toggle {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.offline-toggle:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
