/* ============================================================================
   Component Styles — Orbit Labs Design System
   ============================================================================ */

/* ── Cards & Surfaces ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius);
  padding: var(--space-lg);
  transition: transform var(--duration-slow) var(--easing-out),
              box-shadow var(--duration-slow) var(--easing-out),
              border-color var(--duration-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-light);
}

a.card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

a.card:hover {
  color: var(--color-text);
}

.card-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.card-body {
  margin: var(--space-md) 0;
}

.card-footer {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ── Stat Grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius);
  padding: var(--space-lg);
  text-align: center;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-card .lbl {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── Forms ── */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=date],
input[type=time],
input[type=file],
select,
textarea {
  width: 100%;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-base);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.1);
}

textarea {
  height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-help {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

/* Campaign form specific */
.campaign-textarea-lg {
  height: 200px;
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

.tg-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--size-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--duration-base), transform var(--duration-fast),
              background var(--duration-base) var(--easing-ease),
              box-shadow var(--duration-base);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

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

/* Button variants */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-warning {
  background: var(--color-warning);
  color: #000;
}

.btn-secondary {
  background: var(--color-surface2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
  border-radius: var(--size-radius-xs);
}

.btn-xs {
  padding: 3px var(--space-sm);
  font-size: 10px;
  border-radius: 5px;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* Full width button */
.btn.w-full {
  width: 100%;
}

/* ── Tables ── */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--size-radius);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th {
  background: var(--color-surface2);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) var(--space-md);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.badge-info {
  background: rgba(79, 142, 247, 0.15);
  color: var(--color-info);
}

.badge-warning {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-warning);
}

.badge-note {
  background: rgba(234, 179, 8, 0.15);
  color: var(--color-note);
}

.badge-primary {
  background: rgba(79, 142, 247, 0.15);
  color: var(--color-primary);
}

.badge-secondary {
  background: rgba(136, 146, 164, 0.15);
  color: var(--color-text-muted);
}

/* ── Alerts ── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--size-radius-sm);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  border-left: 4px solid transparent;
}

.alert-info {
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.3);
  border-left-color: var(--color-info);
  color: #93c5fd;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left-color: var(--color-success);
  color: #86efac;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left-color: var(--color-danger);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-left-color: var(--color-warning);
  color: #fed7aa;
}

.message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--size-radius-sm);
  margin-bottom: var(--space-md);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ── Progress bar ── */
.progress {
  background: var(--color-surface2);
  border-radius: 99px;
  overflow: hidden;
  height: 6px;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--color-primary);
  transition: width 0.4s ease;
}

.progress-bar.success {
  background: var(--color-success);
}

.progress-bar.danger {
  background: var(--color-danger);
}

/* ── Checkbox & Radio ── */
input[type=checkbox],
input[type=radio] {
  width: auto;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: var(--space-sm) 0;
  user-select: none;
}

.check-label input {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* ── Utilities ── */
.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-danger {
  color: var(--color-danger);
}

.text-success {
  color: var(--color-success);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mt-md {
  margin-top: var(--space-md);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

/* ── Inbox / Chat layout ── */
.inbox-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 180px);
  min-height: 500px;
}
.inbox-accounts {
  width: 200px;
  min-width: 160px;
  border: 1px solid var(--color-border);
  border-radius: 6px 0 0 6px;
  overflow-y: auto;
  background: var(--color-surface);
  flex-shrink: 0;
}
.inbox-acc-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inbox-acc-item:hover { background: var(--color-surface2); }
.inbox-acc-item.active { background: var(--color-surface2); border-left: 3px solid var(--color-primary); }
.inbox-acc-item .acc-phone { font-size: 13px; font-weight: 600; }
.inbox-acc-item .acc-owner { font-size: 11px; color: var(--color-text-muted); }
.inbox-acc-item .acc-badge {
  background: var(--color-danger);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 2px 7px;
  min-width: 18px;
  text-align: center;
}
.inbox-convos {
  width: 300px;
  min-width: 220px;
  border: 1px solid var(--color-border);
  border-left: none;
  overflow-y: auto;
  background: var(--color-surface);
  flex-shrink: 0;
}
.inbox-convo-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
}
.inbox-convo-item:hover { background: var(--color-surface2); }
.inbox-convo-item.active { background: var(--color-surface2); border-left: 3px solid var(--color-primary); }
.inbox-convo-item .convo-name { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.inbox-convo-item .convo-preview { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-convo-item .convo-meta { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.inbox-convo-item .convo-badge { background: var(--color-danger); color: #fff; border-radius: 10px; font-size: 10px; padding: 1px 6px; }
.inbox-convo-search { padding: 10px; border-bottom: 1px solid var(--color-border); }
.inbox-convo-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 12px;
  outline: none;
  background: var(--color-surface2);
  color: var(--color-text);
}
.inbox-section-title {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: var(--color-surface2);
}
.chat-header {
  padding: 12px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 6px 0 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 70%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; word-break: break-word; }
.msg-out { background: var(--color-primary); color: #fff; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.msg-in  { background: var(--color-surface); color: var(--color-text); align-self: flex-start; border-radius: 12px 12px 12px 2px; border: 1px solid var(--color-border); }
.msg-time { font-size: 10px; opacity: 0.7; margin-top: 3px; text-align: right; }
.chat-input {
  padding: 12px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 6px 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  resize: none;
  font-size: 14px;
  outline: none;
  height: 40px;
  max-height: 120px;
  overflow-y: auto;
  background: var(--color-surface2);
  color: var(--color-text);
}
.chat-input textarea:focus { border-color: var(--color-primary); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 15px; }

/* ============================================================================
   Animations & Interactions
   ============================================================================ */

/* ── Page fade-in ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content {
  animation: fadeIn var(--duration-slow) var(--easing-out) both;
}

/* ── Button loading state ── */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

.btn-secondary.is-loading::after {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: var(--color-text);
}

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

/* ── Table row hover ── */
.table-responsive table tbody tr {
  transition: background var(--duration-fast);
}

.table-responsive table tbody tr:hover {
  background: var(--color-surface-hover);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--easing-out),
              visibility var(--duration-slow);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius-lg);
  padding: var(--space-2xl);
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-slow) var(--easing-out);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--size-radius-sm);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.modal-close:hover {
  background: var(--color-surface2);
  color: var(--color-text);
}

.modal-body {
  margin-bottom: var(--space-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ── Dropdown ── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-base) var(--easing-out),
              transform var(--duration-base) var(--easing-out),
              visibility var(--duration-base);
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: background var(--duration-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.dropdown-item.danger {
  color: var(--color-danger);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xs) 0;
}

/* ── Form Validation States ── */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.form-error {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-xs);
}

.form-success {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-success);
  margin-top: var(--space-xs);
}

/* ============================================================================
   Wizard Component
   ============================================================================ */

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--size-radius);
  overflow-x: auto;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.wizard-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  position: relative;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--color-border);
  background: var(--color-surface2);
  color: var(--color-text-muted);
  transition: all var(--duration-base) var(--easing-out);
}

.wizard-step-dot.active .wizard-step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.wizard-step-dot.completed .wizard-step-circle {
  border-color: var(--color-success);
  background: var(--color-success);
  color: #fff;
}

.wizard-step-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--duration-base);
}

.wizard-step-dot.active .wizard-step-label {
  color: var(--color-primary);
  font-weight: 600;
}

.wizard-step-dot.completed .wizard-step-label {
  color: var(--color-success);
}

.wizard-step-line {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin: 0 var(--space-xs);
  margin-bottom: 18px;
  transition: background var(--duration-base);
}

.wizard-step-line.completed {
  background: var(--color-success);
}

.wizard-panel {
  display: none;
  animation: fadeIn var(--duration-slow) var(--easing-out) both;
}

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


.wizard-review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-md);
}

.wizard-review-item:last-child {
  border-bottom: none;
}

.wizard-review-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.wizard-review-value {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-align: right;
  word-break: break-word;
}

.wizard-review-edit {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: var(--font-size-xs);
  padding: 2px var(--space-sm);
  border-radius: var(--size-radius-xs);
  transition: background var(--duration-fast);
  flex-shrink: 0;
}

.wizard-review-edit:hover {
  background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
  .wizard-stepper {
    padding: var(--space-md) var(--space-sm);
  }

  .wizard-step-circle {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .wizard-step-label {
    font-size: 10px;
  }

  .wizard-step-line {
    width: 20px;
  }

}

@media (max-width: 480px) {
  .wizard-step-label {
    display: none;
  }

  .wizard-step-line {
    width: 16px;
    margin-bottom: 0;
  }

  .wizard-stepper {
    justify-content: space-between;
    padding: var(--space-sm);
  }
}

/* Wizard Nav */
.wizard-nav {
  display: flex;
  flex-direction: row;
  gap: 56px;
  justify-content: center;
  margin-bottom: 32px;
  padding-bottom: 40px;
}

.wizard-nav-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.wizard-nav-item.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.wizard-nav-item.done {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.wizard-nav-item::after {
  content: "";
  position: absolute;
  right: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 2px;
  background: var(--border);
}

.wizard-nav-item:last-child::after {
  display: none;
}

.wizard-nav-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  text-align: center;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
  display: none;
}

.wizard-nav-item.active .wizard-nav-label {
  display: block;
  color: var(--accent);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .wizard-nav-item {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .wizard-nav-item::after {
    width: 16px;
    right: -20px;
  }

  .wizard-nav-label {
    display: none;
  }
}

#btnCancel:not([disabled]) {
  opacity: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
#btnCancel:not([disabled]):hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}
