/* ═══════════════════════════════════════
   register.css — Business registration
═══════════════════════════════════════ */

/* ── Body — fills page-body alongside left nav ── */
.reg-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 54px);
  overflow: visible;
}

/* ── Left panel ── */
.reg-left {
  padding: 2.5rem 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--border);
  position: relative;
}
.reg-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, #0066CC 100%);
}

/* ── Steps ── */
.reg-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  padding-top: .25rem;
}
.reg-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px !important; font-weight: 700 !important;
  color: var(--text-muted) !important;
  background: #fff;
  flex-shrink: 0;
  transition: all .25s;
  position: relative; z-index: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.reg-step-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,102,204,.35);
}
.reg-step-dot.done {
  border-color: #10b981;
  background: #10b981;
  color: #fff !important;
}
.reg-step-dot.done::after {
  content: '✓';
  font-size: 12px !important;
}
.reg-step-dot.done span { display: none; }
.reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background .2s;
}
.reg-step-line.done { background: #10b981; }

/* ── Step content ── */
.reg-step { display: none; }
.reg-step.active { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }

.reg-step-label {
  font-size: 11px !important; font-weight: 600 !important;
  color: var(--accent-light) !important;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .25rem;
}
.reg-step-title {
  font-size: 26px !important; font-weight: 700 !important;
  color: var(--text-primary) !important;
  line-height: 1.2; margin-bottom: .5rem; margin-top: 2.75rem;
}
.reg-step-sub {
  font-size: 14px !important; color: var(--text-muted) !important;
  margin-bottom: 1.75rem; line-height: 1.55;
}

/* ── Form fields ── */
.reg-field { margin-bottom: 1.25rem; }
.reg-field label {
  display: block;
  font-size: 12px !important; font-weight: 600 !important;
  color: var(--text-secondary) !important;
  margin-bottom: .5rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.reg-input,
.reg-select {
  width: 100%; height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  padding: 0 16px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
  box-sizing: border-box;
}
.reg-input:focus,
.reg-select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,102,204,.1);
}
.reg-input.error,
.reg-select.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.reg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reg-field-hint { font-size: 12px !important; color: var(--text-muted) !important; margin-top: .375rem; }
.reg-field-error { font-size: 12px !important; color: #ef4444 !important; margin-top: .375rem; display: none; }
.reg-field-error.show { display: block; }

/* ── Category picker ── */
.cat-search-wrap { position: relative; }
.cat-search-input { padding-left: 38px !important; }
.cat-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--text-muted); pointer-events: none;
}
.cat-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; max-height: 200px; overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: none;
}
.cat-dropdown.open { display: block; }
.cat-option {
  padding: 9px 14px; font-size: 13px !important; color: var(--text-secondary) !important;
  cursor: pointer; transition: background .1s;
}
.cat-option:hover { background: var(--bg-chip); color: var(--text-primary) !important; }
.cat-option.selected { color: var(--accent-light) !important; font-weight: 500 !important; }
.cat-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: .75rem; min-height: 0;
}
.cat-tag {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,102,204,.1); border: 1px solid rgba(0,102,204,.25);
  color: var(--accent-light) !important; font-size: 12px !important; font-weight: 500 !important;
  padding: 4px 10px; border-radius: 99px;
}
.cat-tag button {
  background: none; border: none; cursor: pointer;
  color: var(--accent-light) !important; padding: 0; line-height: 1;
  font-size: 14px !important; opacity: .7;
}
.cat-tag button:hover { opacity: 1; }
.cat-limit-note { font-size: 12px !important; color: var(--text-muted) !important; margin-top: .5rem; }

/* ── Password strength ── */
.pwd-strength {
  display: flex; gap: 3px; margin-top: .5rem;
}
.pwd-bar {
  height: 3px; flex: 1; border-radius: 2px;
  background: var(--border); transition: background .2s;
}
.pwd-bar.weak   { background: #ef4444; }
.pwd-bar.medium { background: #f59e0b; }
.pwd-bar.strong { background: #10b981; }

/* ── Plan selector tabs (step 5) ── */
.reg-plan-tabs {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: .875rem;
}
.reg-plan-tab {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 6px; text-align: center;
  background: #fff; cursor: pointer; transition: all .15s;
  font-family: 'Inter', sans-serif !important;
}
.reg-plan-tab .pt-name { display: block; font-size: 13px !important; font-weight: 600 !important; color: var(--text-primary) !important; }
.reg-plan-tab .pt-price { display: block; font-size: 11px !important; color: var(--text-muted) !important; margin-top: 2px; }
.reg-plan-tab.active { border-color: var(--accent); background: rgba(0,102,204,.06); }
.reg-plan-tab.active .pt-name { color: var(--accent) !important; }
.reg-plan-tab.featured-tab.active { border-color: #d97706; background: rgba(251,191,36,.06); }
.reg-plan-tab.featured-tab.active .pt-name { color: #b45309 !important; }

/* ── Payment box ── */
.payment-box {
  background: var(--bg-chip);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.payment-box-title {
  font-size: 13px !important; font-weight: 600 !important;
  color: var(--text-primary) !important; margin-bottom: 1rem;
}
.payment-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.payment-row:last-child { margin-bottom: 0; }
.payment-label { font-size: 12px !important; color: var(--text-muted) !important; }
.payment-value { font-size: 13px !important; font-weight: 600 !important; color: var(--text-primary) !important; }
.payment-value.accent { color: var(--accent-light) !important; font-size: 20px !important; }
.payment-divider { border: none; border-top: 1px solid var(--border); margin: .875rem 0; }

.telebirr-logo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1rem;
}
.telebirr-badge {
  background: #22c55e; color: #fff !important;
  font-size: 11px !important; font-weight: 700 !important;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .03em;
}
.telebirr-number {
  font-size: 18px !important; font-weight: 700 !important;
  color: var(--text-primary) !important; letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 11px !important; color: var(--text-muted) !important;
  cursor: pointer; transition: all .12s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-light) !important; }

.reg-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 1.5rem;
}
.reg-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent);
}
.reg-checkbox-row label {
  font-size: 13px !important; color: var(--text-secondary) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  font-weight: 400 !important; margin-bottom: 0;
}

/* ── Buttons ── */
.reg-actions {
  display: flex; gap: 10px; margin-top: 2rem; padding-top: 0;
}
.reg-btn-primary {
  flex: 1; height: 52px;
  background: var(--accent); color: #fff !important;
  border: none; border-radius: 12px;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, box-shadow .15s, transform .15s;
  box-shadow: 0 4px 14px rgba(0,102,204,.3);
}
.reg-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(0,102,204,.4);
  transform: translateY(-1px);
}
.reg-btn-primary:active { transform: translateY(0); }
.reg-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.reg-btn-secondary {
  height: 46px; padding: 0 20px;
  height: 52px;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
  color: var(--text-secondary) !important; font-size: 14px !important; font-weight: 500 !important;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.reg-btn-secondary:hover { border-color: var(--accent); color: var(--accent) !important; box-shadow: 0 2px 8px rgba(0,102,204,.12); }

/* ── Alert ── */
.reg-alert {
  padding: 12px 16px; border-radius: 8px; font-size: 13px !important;
  margin-bottom: 1rem; display: none;
}
.reg-alert.show { display: block; }
.reg-alert.error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #dc2626 !important; }
.reg-alert.success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3); color: #059669 !important; }
.reg-alert.info { background: rgba(0,102,204,.06); border: 1px solid rgba(0,102,204,.25); color: var(--text-primary) !important; }
.reg-alert-btn { display: inline-block; padding: 7px 16px; background: var(--primary); color: #fff !important; border-radius: 7px; font-size: 13px !important; font-weight: 600 !important; text-decoration: none !important; }
.reg-alert-btn:hover { background: var(--primary-hover); }
.reg-alert-link { color: var(--primary) !important; font-weight: 500 !important; text-decoration: underline !important; font-size: 13px !important; }
.reg-link-btn { background: none; border: 1.5px solid var(--primary); color: var(--primary) !important; border-radius: 7px; padding: 6px 14px; font-size: 13px !important; font-weight: 600 !important; cursor: pointer; font-family: inherit; }
.reg-link-btn:hover:not(:disabled) { background: rgba(0,102,204,.08); }
.reg-link-btn:disabled { opacity: 0.55; cursor: default; }

/* ── Success screen ── */
.reg-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 2rem 0;
}
.reg-success.show { display: flex; }
.reg-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(16,185,129,.12); border: 2px solid rgba(16,185,129,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.reg-success-icon svg { width: 36px; height: 36px; stroke: #10b981; }
.reg-success h2 { font-size: 22px !important; font-weight: 700 !important; color: var(--text-primary) !important; margin: 0 0 .75rem; }
.reg-success p  { font-size: 14px !important; color: var(--text-muted) !important; line-height: 1.6; margin: 0 0 2rem; max-width: 360px; }

/* ── Right panel ── */
.reg-right {
  background: linear-gradient(145deg, #0a2a4a 0%, #082038 35%, #0f172a 65%, #0a1628 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  overflow: hidden;
}
.reg-right::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,.22) 0%, transparent 70%);
  pointer-events: none;
}
.reg-right::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Right-panel plan cards (shown on step 5) ── */
.reg-right-plans { display: none; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 1rem; }
.reg-right-plans.show { display: flex; }
.reg-right-plan-card {
  border-radius: 12px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: space-between;
}
.reg-right-plan-card:hover { background: rgba(255,255,255,.1); }
.reg-right-plan-card.selected { border-color: rgba(0,102,204,.6); background: rgba(0,102,204,.18); }
.reg-right-plan-card.featured.selected { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.12); }
.reg-rpc-left { display: flex; flex-direction: column; gap: 3px; }
.reg-rpc-name { font-size: 13px !important; font-weight: 600 !important; color: #fff !important; }
.reg-rpc-desc { font-size: 11px !important; color: rgba(255,255,255,.5) !important; }
.reg-rpc-price { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; }
.reg-rpc-price.free-price { color: rgba(255,255,255,.4) !important; }
.reg-rpc-price.featured-price { color: #fbbf24 !important; }
.reg-rpc-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reg-right-plan-card.selected .reg-rpc-check { background: var(--accent); border-color: var(--accent); }
.reg-right-plan-card.featured.selected .reg-rpc-check { background: #d97706; border-color: #d97706; }
.reg-right-inner { max-width: 380px; width: 100%; }
.reg-illustration { width: 100%; margin-bottom: 2rem; }

.reg-right-step-info { text-align: center; }
.reg-right-steps {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 1.5rem;
}
.reg-right-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); transition: all .2s;
}
.reg-right-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.reg-right-dot.done  { background: #10b981; }

.reg-right-quote {
  color: rgba(255,255,255,.9) !important;
  font-size: 18px !important; font-weight: 600 !important;
  line-height: 1.5; margin-bottom: .75rem; text-align: center;
}
.reg-right-desc {
  color: rgba(255,255,255,.5) !important;
  font-size: 13px !important; line-height: 1.6; text-align: center;
}

/* ── Receipt upload ── */
.receipt-upload-area {
  border: 2px dashed var(--border); border-radius: 10px;
  background: var(--bg-chip); padding: 1.25rem 1rem;
  cursor: pointer; transition: border-color .15s;
  text-align: center;
}
.receipt-upload-area:hover { border-color: var(--accent); }
.receipt-upload-area.has-file { border-style: solid; border-color: #10b981; background: rgba(16,185,129,.05); }
.receipt-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.receipt-placeholder svg { width: 28px; height: 28px; stroke: var(--text-muted); }
.receipt-placeholder span { font-size: 13px !important; color: var(--text-secondary) !important; }
.receipt-placeholder .hint { font-size: 11px !important; color: var(--text-muted) !important; }
.receipt-preview { display: none; align-items: center; gap: 12px; justify-content: center; flex-direction: column; }
.receipt-preview img { max-height: 120px; max-width: 100%; border-radius: 6px; object-fit: contain; }
.receipt-preview-name { font-size: 12px !important; color: #10b981 !important; display: flex; align-items: center; gap: 5px; }
.receipt-preview-name svg { width: 14px; height: 14px; stroke: #10b981; }
.receipt-change-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 10px; font-size: 11px !important; color: var(--text-muted) !important;
  cursor: pointer; margin-top: 4px;
}
.receipt-change-btn:hover { border-color: var(--accent); color: var(--accent-light) !important; }

/* ── QR panel (right side step 5) ── */
.reg-right-qr { display: none; flex-direction: column; align-items: center; gap: .5rem; margin-top: .5rem; }
.reg-right-qr img {
  width: 140px; height: 140px; border-radius: 10px;
  border: 3px solid rgba(255,255,255,.15);
  background: #fff; object-fit: contain; padding: 6px;
}
.qr-fallback {
  width: 140px; height: 140px; border-radius: 10px;
  border: 2px dashed rgba(255,255,255,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: rgba(255,255,255,.05);
}
.qr-fallback svg { width: 32px; height: 32px; stroke: rgba(255,255,255,.4); }
.qr-fallback span { font-size: 11px !important; color: rgba(255,255,255,.4) !important; text-align: center; }
.reg-right-qr-label { font-size: 13px !important; color: rgba(255,255,255,.7) !important; text-align: center; }
.reg-right-qr-amount { font-size: 22px !important; font-weight: 700 !important; color: #fff !important; }
.reg-right-qr-number { font-size: 13px !important; color: rgba(255,255,255,.5) !important; letter-spacing: .03em; }

/* ── Saved badge ── */
.reg-saved-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3);
  color: #059669 !important; padding: 10px 14px; border-radius: 8px;
  font-size: 13px !important; margin-bottom: 1rem;
}
.reg-saved-badge svg { width: 16px; height: 16px; stroke: #059669; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .reg-body { grid-template-columns: 1fr; }
  .reg-right { display: none; }
  .reg-left { padding: 1.25rem 1.5rem; }
}
@media (max-width: 480px) {
  .reg-left { padding: 1.5rem 1rem; }
  .reg-field-row { grid-template-columns: 1fr; }
}

/* ── Dark mode overrides ── */
body.dark-mode .reg-left {
  background: var(--bg-card);
  border-right-color: rgba(255,255,255,0.07);
}
body.dark-mode .reg-step-dot {
  background: #0e0e11;
  border-color: rgba(255,255,255,0.12);
}
body.dark-mode .reg-input,
body.dark-mode .reg-select {
  background: #0e0e11;
  border-color: rgba(255,255,255,0.1);
  color: var(--text-primary) !important;
}
body.dark-mode .reg-input:focus,
body.dark-mode .reg-select:focus {
  background: #111114;
  border-color: var(--accent);
}
body.dark-mode .reg-input::placeholder { color: var(--placeholder); }
body.dark-mode .reg-plan-tab {
  background: #0e0e11;
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .reg-plan-tab.active {
  background: rgba(0,102,204,0.15);
  border-color: var(--accent);
}
body.dark-mode .reg-btn-secondary {
  background: #111114;
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary) !important;
}
body.dark-mode .reg-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light) !important;
}
body.dark-mode .receipt-preview img { background: #1a1a1a; }
