.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(94, 158, 122, 0.12);
  border: 1px solid rgba(94, 158, 122, 0.35);
  color: #8fd0a9;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  margin-top: 18px;
}

.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fce93;
  flex: none;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #e0b96a;
  background: rgba(201, 165, 90, 0.12);
  border: 1px solid rgba(201, 165, 90, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

details.how-it-works {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
}

details.how-it-works summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

details.how-it-works summary::-webkit-details-marker {
  display: none;
}

details.how-it-works summary .qmark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #241a08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

details.how-it-works summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.15s ease;
}

details.how-it-works[open] summary::after {
  transform: rotate(180deg);
}

details.how-it-works .how-body {
  padding: 0 18px 18px 50px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

details.how-it-works .how-body ol {
  margin: 0;
  padding-left: 18px;
}

details.how-it-works .how-body li + li {
  margin-top: 6px;
}

.step-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg-alt);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

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

.step-sub {
  color: var(--text-faint);
  font-size: 13px;
}

.step-section {
  margin-top: 34px;
}

.step-section > .step-heading {
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card-bg-alt);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--accent);
}

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

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #241a08;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-primary:disabled {
  background: var(--gray-1);
  color: var(--gray-3);
  opacity: 1;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-toggle {
  border: 1px solid var(--border);
  background: var(--card-bg-alt);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle.active {
  background: rgba(201, 165, 90, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-icon {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card-bg-alt);
  color: var(--text-faint);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: bcm-spin 0.7s linear infinite;
}

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

/* Dropzone */
.dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 44px 28px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(201, 165, 90, 0.06);
}

.dropzone .dz-copy {
  min-width: 220px;
}

.dropzone .dz-title {
  font-weight: 600;
  font-size: 17px;
}

.dropzone .dz-hint {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 6px;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone .btn-primary {
  flex: 1 1 260px;
  min-width: 220px;
}

.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 16px;
}

.empty-state a, .empty-state .link-like {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* form bits */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.text-input, select.select-input {
  width: 100%;
  background: var(--card-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
}

.text-input:focus, select.select-input:focus {
  outline: none;
  border-color: var(--accent);
}

.text-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.radio-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.radio-option .radio-title {
  font-weight: 600;
  font-size: 13.5px;
}

.radio-option .radio-sub {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 2px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}
