* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1e1f22;
  background: #f5f6fa;
}

a {
  color: #0b63ce;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1f2937;
  color: #ffffff;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.account-info {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e0e4ea;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid #d5dbe5;
  background: #f7f8fb;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  background: #0b63ce;
  color: #ffffff;
  border-color: #0b63ce;
}

.content {
  padding: 24px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.card {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-top: 0;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list button,
.list .list-item {
  text-align: left;
  border: 1px solid #dce2eb;
  background: #f9fbfd;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.list button.active,
.list .list-item.active {
  border-color: #0b63ce;
  background: #e7f1ff;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.muted {
  color: #6b7280;
}

.search {
  width: 100%;
  padding: 8px 10px;
  margin: 8px 0 12px;
  border-radius: 6px;
  border: 1px solid #d0d6df;
}

.link-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #0b63ce;
  text-decoration: none;
}

.progress {
  height: 10px;
  border-radius: 8px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: #0b63ce;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.primary {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #0b63ce;
  color: #ffffff;
  cursor: pointer;
}

.secondary {
  padding: 8px 12px;
  border: 1px solid #d0d6df;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  z-index: 10;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
}

.steps .step {
  display: none;
}

.steps .step.active {
  display: block;
}

.warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  padding: 12px;
  border-radius: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 12px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1f2937;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 360px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.onboarding-locked .topbar,
body.onboarding-locked .tabs,
body.onboarding-locked .content {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
  opacity: 0.3;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button-group .primary,
.button-group .secondary {
  flex: 1;
}

.message {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .account-info {
    flex-direction: column;
    gap: 4px;
  }
}
