:root {
  --bg: #0a0a1a;
  --bg2: #0f0f23;
  --card: #161638;
  --card-hover: #1e1e4a;
  --accent: #e94560;
  --accent2: #7c3aed;
  --accent-glow: rgba(233,69,96,0.3);
  --text: #f0f0f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px 90px;
}

.card { 
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}:root {
  --bg: #0a0a1a;
  --bg2: #0f0f23;
  --card: #161638;
  --card-hover: #1e1e4a;
  --accent: #e94560;
  --accent2: #7c3aed;
  --accent-glow: rgba(233,69,96,0.3);
  --text: #f0f0f5;
  --text2: #8888aa;
  --success: #00e676;
  --warn: #ffa726;
  --danger: #ff1744;
  --nav-bg: linear-gradient(180deg, rgba(15,15,35,0.95) 0%, rgba(10,10,26,0.98) 100%);
  --nav-active: linear-gradient(135deg, #e94560, #7c3aed);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px 100px;
}

/* ─── Dashboard ─── */
.dashboard-header h1 { font-size: 26px; font-weight: 800; }
h1 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 700; }
.subtitle { color: var(--text2); font-size: 13px; margin-bottom: 12px; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

/* ─── Cards ─── */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255,255,255,0.04);
}
.card:active {
  transform: scale(0.96);
  background: var(--card-hover);
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.card-icon { font-size: 28px; flex-shrink: 0; }
.card-body { flex: 1; min-width: 0; }
.card-title { font-weight: 600; font-size: 14px; }
.card-desc { font-size: 11px; color: var(--text2); margin-top: 2px; }
.card-admin { border: 1px solid rgba(124,58,237,0.3); }

.section-title { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #c23152); box-shadow: 0 3px 16px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 6px 24px var(--accent-glow); }
.btn-secondary { background: var(--accent2); color: #fff; }
.btn-danger { background: var(--danger); }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 10px; font-weight: 700; }

.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ─── Premium Bottom Nav ─── */
/* ─── Bottom Navigation — BIG bold buttons ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0d0d1f 0%, #08081a 100%);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 10px));
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.7);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  padding: 8px 2px 6px;
  margin: 0 2px;
  min-height: 58px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-item .nav-icon {
  font-size: 26px;
  line-height: 1;
}

.nav-item .nav-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
}

.nav-dot { display: none; }

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #e94560 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(233,69,96,0.35);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.nav-item.active .nav-label {
  font-weight: 900;
}

.nav-item:active {
  transform: scale(0.93);
}

/* ─── Banners ─── */
.banner {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.banner-warning { background: rgba(255,167,38,0.12); border-color: rgba(255,167,38,0.25); color: var(--warn); }
.banner-info { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.25); }
.banner-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.2); color: var(--success); }

/* ─── Status Badges ─── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.status-draft, .status-pending { background: rgba(255,167,38,0.2); color: var(--warn); }
.status-active, .status-signed, .status-approved, .status-paid, .status-verified { background: rgba(0,230,118,0.15); color: var(--success); }
.status-rejected, .status-expired, .status-suspended { background: rgba(255,23,68,0.15); color: var(--danger); }
.status-submitted, .status-in_review, .status-pending_verification { background: rgba(124,58,237,0.2); color: #a78bfa; }
.status-issued { background: rgba(233,69,96,0.2); color: var(--accent); }

/* ─── Forms — big readable fields ─── */
.form { margin: 16px 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--text2); margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.item-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.item-row input { padding: 8px; font-size: 13px; }

/* ─── Lists ─── */
.list { margin-top: 12px; }
.list-item {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.list-item:active { background: var(--card-hover); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.list-sub { font-size: 14px; color: var(--text2); margin-top: 4px; font-weight: 500; }
.list-right { text-align: right; flex-shrink: 0; }
.list-amount { font-weight: 800; font-size: 17px; }
.green { color: var(--success); }
.red { color: var(--accent); }
.empty { text-align: center; color: var(--text2); padding: 32px 16px; font-size: 14px; }
.message { padding: 8px 12px; border-radius: 8px; font-size: 13px; margin: 8px 0; background: rgba(255,255,255,0.05); }

/* ─── Detail Card ─── */
.detail-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Balance Card ─── */
.balance-card {
  background: linear-gradient(135deg, var(--card), rgba(124,58,237,0.15));
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(124,58,237,0.2);
}
.balance-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.balance-total { font-size: 18px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 8px; }

/* ─── Page ─── */
.page { padding: 4px 0; }
.page h1 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* ─── Loading ─── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 16px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Error Screen ─── */
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  gap: 16px;
  padding: 24px;
}
.error-screen .error-icon { font-size: 56px; }
.error-screen h2 { font-size: 20px; }
.error-screen p { color: var(--text2); font-size: 14px; max-width: 300px; }
.telegram-redirect { background: linear-gradient(180deg, var(--bg), var(--bg2)); }

/* ─── Chat ─── */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - 100px); }
.chat-page h1 { flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px 0; }
.chat-empty { text-align: center; color: var(--text2); padding: 40px 20px; font-size: 14px; line-height: 1.6; }
.chat-msg { margin-bottom: 8px; display: flex; }
.chat-user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-user .chat-bubble { background: var(--accent2); border-bottom-right-radius: 4px; }
.chat-assistant .chat-bubble { background: var(--card); border-bottom-left-radius: 4px; border: 1px solid rgba(255,255,255,0.06); }
.typing { opacity: 0.5; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  flex-shrink: 0;
  align-items: center;
}
.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input button {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.chat-input button:disabled { opacity: 0.4; }

/* ===== Gateway & Work Contract Pages ===== */
.contract-terms {
  background: var(--card-bg, #1a1a2e);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.contract-terms h3 {
  margin-bottom: 15px;
  color: var(--primary, #6c5ce7);
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin: 8px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: rgba(255,255,255,0.1);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary, #6c5ce7);
}

.services-info {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.1));
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.services-info ul {
  list-style: none;
  padding: 0;
}

.services-info li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-sign {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 20px;
  transition: all 0.3s;
}

.btn-sign.active {
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  color: white;
  box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}

.btn-sign.disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-card h2 {
  margin-bottom: 15px;
}

.success-card .btn {
  margin: 10px;
  display: inline-block;
}

/* Work Contract Type Selector */
.contract-type-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.type-btn {
  flex: 1;
  min-width: 100px;
  padding: 15px 10px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.type-btn:hover {
  background: rgba(255,255,255,0.1);
}

.type-btn.active {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108,92,231,0.2);
}

.type-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
}

.krs-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 15px 0;
  font-weight: 500;
}

.krs-status.ok {
  background: rgba(0,206,201,0.2);
  color: #00cec9;
}

.krs-status.fail {
  background: rgba(255,107,107,0.2);
  color: #ff6b6b;
}

.kup-checkbox {
  background: linear-gradient(135deg, rgba(253,203,110,0.1), rgba(255,159,67,0.1));
  border: 1px solid rgba(253,203,110,0.3);
}

/* Calculator */
.calculator-section {
  background: var(--card-bg, #1a1a2e);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.calc-input {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.calc-input input {
  flex: 1;
  padding: 12px;
  font-size: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
}

.calc-result {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 15px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-row.net {
  border-top: 2px solid var(--primary, #6c5ce7);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 18px;
  color: #00cec9;
}

.calc-row.effective {
  border: none;
  opacity: 0.7;
  font-size: 14px;
}

.custom-role-input {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
}

/* Invoice Gate */
.invoice-gate.blocked {
  padding: 20px;
}

.gate-card {
  text-align: center;
  background: var(--card-bg, #1a1a2e);
  border-radius: 16px;
  padding: 30px 20px;
}

.gate-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.gate-card h2 {
  margin-bottom: 15px;
  color: #ff6b6b;
}

.gate-info, .gate-services {
  text-align: left;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
}

.gate-info h4, .gate-services h4 {
  margin-bottom: 10px;
  color: var(--primary, #6c5ce7);
}

.gate-info ul, .gate-services ul {
  list-style: none;
  padding: 0;
}

.gate-info li, .gate-services li {
  padding: 6px 0;
}

.btn-large {
  padding: 18px 30px;
  font-size: 18px;
  margin-top: 20px;
}

/* ===== Language Selector ===== */
.lang-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.lang-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text, #fff);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
}

.lang-btn.active {
  background: var(--primary, #6c5ce7);
  border-color: var(--primary, #6c5ce7);
}

.lang-select-compact {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text, #fff);
  font-size: 13px;
  cursor: pointer;
}

.lang-select-compact option {
  background: #1a1a2e;
  color: #fff;
}

/* ===== Onboarding Flow ===== */
.onboarding-flow {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-bottom: 80px;
}

.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.progress-dot.active {
  background: var(--primary, #6c5ce7);
}

.progress-dot.current {
  width: 24px;
  border-radius: 5px;
}

.onboarding-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-step h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.onboarding-step .subtitle {
  opacity: 0.7;
  margin-bottom: 24px;
}

.model-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.model-desc {
  max-width: 300px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.model-features {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  text-align: left;
}

.feature-icon {
  font-size: 20px;
}

.upload-zone {
  width: 100%;
  max-width: 300px;
  padding: 40px 20px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 16px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.upload-zone:hover {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108,92,231,0.1);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  font-size: 48px;
}

.ocr-progress {
  width: 100%;
  max-width: 300px;
}

.ocr-step {
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  opacity: 0.5;
  transition: all 0.3s;
}

.ocr-step.active {
  opacity: 1;
  background: rgba(108,92,231,0.2);
  animation: pulse 1s infinite;
}

.ocr-step.done {
  opacity: 1;
  color: #00cec9;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ocr-preview {
  width: 100%;
  max-width: 300px;
}

.preview-fields {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.field-row:last-child {
  border-bottom: none;
}

.company-card {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.company-card:hover {
  background: rgba(255,255,255,0.1);
}

.company-card.selected {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108,92,231,0.2);
}

.auto-company {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
}

.auto-note {
  color: #00cec9;
  font-size: 14px;
  margin-top: 8px;
}

.type-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.type-card {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  padding: 20px 16px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.type-card:hover {
  background: rgba(255,255,255,0.1);
}

.type-card.selected {
  border-color: var(--primary, #6c5ce7);
  background: rgba(108,92,231,0.2);
}

.type-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.type-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.type-card ul {
  text-align: left;
  font-size: 12px;
  padding-left: 0;
  list-style: none;
}

.type-card li {
  padding: 4px 0;
}

.gateway-terms {
  width: 100%;
  max-width: 300px;
  margin-bottom: 24px;
}

.term {
  padding: 12px;
  background: rgba(0,206,201,0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.onboarding-step.success h1 {
  color: #00cec9;
}

.full-note {
  background: rgba(255,193,7,0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.back-btn {
  margin-top: auto;
  padding-top: 20px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary, #6c5ce7);
  cursor: pointer;
  font-size: 14px;
}

/* ===== Client Onboarding Flow ===== */
.co-progress {
  margin-bottom: 24px;
}

.co-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.co-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.co-progress-text {
  text-align: center;
  font-size: 12px;
  color: var(--text2);
  margin-top: 6px;
  font-weight: 600;
}

.co-section-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}

.co-price-tag {
  font-size: 11px;
  color: var(--success);
  background: rgba(0,230,118,0.1);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 8px;
}

.co-terms-card {
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.co-terms-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.co-terms-details {
  margin-bottom: 12px;
}

.co-payment-card {
  background: linear-gradient(135deg, var(--card), rgba(124,58,237,0.2));
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  border: 1px solid rgba(124,58,237,0.3);
}

.co-payment-label {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
}

.co-payment-amount {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.co-payment-note {
  font-size: 12px;
  color: var(--text2);
  margin-top: 8px;
}

.co-payment-success {
  text-align: center;
  padding: 20px 0;
}

.co-payment-success p {
  font-size: 18px;
  color: var(--success);
  font-weight: 600;
  margin-top: 12px;
}
