:root {
  --bg: #e8eef6;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --primary: #00338D;
  --primary-hover: #002266;
  --primary-light: #dbeafe;
  --secondary: #1e293b;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #00338D;
  --success-bg: #dbeafe;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 60px;
}

.hidden {
  display: none !important;
}

/* Top Demo Bar */
.demo-bar {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 20px;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}

.demo-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.demo-pill {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.role-switcher {
  display: flex;
  gap: 8px;
  background: #1e293b;
  padding: 4px;
  border-radius: 10px;
}

.role-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.role-btn.active {
  background: #00338D;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Main Header */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #00338D, #005EB8);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 51, 141, 0.25);
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.session-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Main Container */
.main-container {
  max-width: 1180px;
  margin: 26px auto;
  padding: 0 20px;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #002266 0%, #00338D 55%, #005EB8 100%);
  color: #ffffff;
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.cra-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.hero-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-banner p {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 720px;
}

/* Auth Grid & Mobile Switcher */
.auth-choice-bar {
  display: none;
}

.returning-client-inline-link {
  display: none;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

@media (max-width: 820px) {
  .auth-choice-bar {
    display: block;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0, 51, 141, 0.10);
  }

  .auth-choice-prompt {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00338D;
    text-align: center;
    margin-bottom: 8px;
  }

  .auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .auth-mode-tab {
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    border: 2px solid #93c5fd;
    background: #f0f6ff;
    color: #00338D;
    transition: all 0.15s;
    text-align: center;
  }

  .auth-mode-tab.active {
    background: linear-gradient(135deg, #00338D 0%, #002266 100%);
    color: #ffffff;
    border-color: #002266;
    box-shadow: 0 4px 12px rgba(0, 51, 141, 0.30);
  }

  .auth-mobile-hidden {
    display: none !important;
  }

  .returning-client-inline-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 14px;
    font-size: 0.83rem;
    gap: 6px;
    flex-wrap: wrap;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card-returning {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 6px solid #00338D;
  box-shadow: 0 10px 26px rgba(0, 34, 102, 0.08);
}

.highlight-card {
  background: linear-gradient(180deg, #d7e7ff 0%, #ebf3ff 100%);
  border: 2px solid #005EB8;
  border-top: 6px solid #002266;
  box-shadow: 0 12px 30px rgba(0, 51, 141, 0.16);
}

.highlight-card .feature-checklist {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 16px;
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tile-returning {
  background: #dbeafe;
  border: 1.5px solid #93c5fd;
}

.tile-new {
  background: #00338D;
  box-shadow: 0 4px 10px rgba(0, 51, 141, 0.25);
}

.auth-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
}

.badge-returning {
  background: #dbeafe;
  color: #00338D;
  border: 1px solid #93c5fd;
}

.badge-new-client {
  background: #00338D;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 51, 141, 0.25);
}

.btn-new-client-cta {
  background: linear-gradient(135deg, #00338D 0%, #002266 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 51, 141, 0.28);
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.btn-new-client-cta:hover {
  background: #002266;
  transform: translateY(-1px);
}

.card-header-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.auth-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 141, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.pin-input {
  font-size: 1.35rem !important;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--primary) !important;
}

.pin-input::placeholder {
  font-size: 0.92rem !important;
  font-weight: 400;
  letter-spacing: normal;
  color: #94a3b8 !important;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline-sm {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  margin-top: 18px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.demo-quick-fill {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.demo-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-profile-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  border-color: var(--primary);
  background: #eef4fc;
}

.feature-checklist {
  list-style: none;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

/* Client Welcome Banner & Stepper */
.client-welcome-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.access-code-badge {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
}

.access-code-badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.access-code-badge strong {
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: 0.15em;
}

.stepper-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .stepper-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.step-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
}

.step-tab.active {
  border-color: var(--primary);
  background: #eef4fc;
  color: var(--primary);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-tab.active .step-num {
  background: var(--primary);
  color: #fff;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.radio-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 680px) {
  .radio-card-group {
    grid-template-columns: 1fr;
  }
}

.radio-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.radio-card.selected {
  border-color: var(--primary);
  background: #eef4fc;
}

.radio-card-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.radio-card-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Step 2: Consent & Signature */
.badge-info {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.badge-success {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.consent-document-preview {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.consent-doc-header {
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.consent-doc-body {
  padding: 16px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-legal-text {
  color: var(--text-muted);
  font-size: 0.83rem;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  margin-top: 4px;
}

.canvas-container {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: #fffbeb;
  margin-top: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

canvas {
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
}

/* Step 3: Checklist & Photo Upload */
.contact-followup-box {
  background: #eef4fc;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 20px;
}

.contact-followup-box h4 {
  color: #00338D;
  margin-bottom: 4px;
}

.benefits-section-header {
  margin-bottom: 12px;
}

.benefits-section-header h4 {
  font-size: 1.05rem;
  color: var(--text);
}

.check-card-wrap {
  display: flex;
  flex-direction: column;
}

.benefit-detail-box {
  background: #eef4fc;
  border: 1.5px solid #93c5fd;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 14px;
  margin-top: -6px;
  font-size: 0.85rem;
}

.benefit-detail-box label {
  font-size: 0.8rem;
  color: #00338D;
  margin-bottom: 4px;
  display: block;
}

.inline-check-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.inline-check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #15803d;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.check-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  background: var(--surface-alt);
}

.check-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.check-card-content strong {
  display: block;
  font-size: 0.9rem;
}

.check-card-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-zone-wrapper h4 {
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.upload-dropzone {
  border: 2px dashed var(--primary);
  background: #eef4fc;
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.upload-dropzone:hover {
  background: #dbeafe;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.upload-dropzone strong {
  display: block;
  color: var(--primary);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.uploaded-files-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.helper-note {
  color: var(--primary);
  font-weight: 500;
}

/* Step 4: Refund Summary */
.refund-summary-card {
  background: linear-gradient(135deg, #e0ecff 0%, #d1fae5 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .refund-summary-card {
    grid-template-columns: 1fr;
  }
}

.refund-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #005EB8;
}

.refund-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #00338D;
  margin: 4px 0;
}

.refund-sub {
  font-size: 0.8rem;
  color: #005EB8;
}

.refund-breakdown {
  background: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
}

/* Step 5: Interac Box */
.interac-box {
  border: 2px solid #f59e0b;
  background: #fffbeb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
}

.interac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fde68a;
}

.interac-logo {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.interac-amount-pill {
  font-size: 1rem;
}

.interac-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 680px) {
  .interac-details-grid {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.copy-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #fcd34d;
  padding: 8px 12px;
  border-radius: 8px;
  justify-content: space-between;
}

.copy-input-group code {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.btn-copy {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.autodeposit-note {
  font-size: 0.86rem;
  background: #fef3c7;
  padding: 10px 12px;
  border-radius: 8px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #93c5fd;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.final-docs-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface-alt);
}

.final-docs-card h4 {
  margin-bottom: 12px;
}

.doc-download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.doc-download-row strong {
  display: block;
}

/* ==========================================
   TARA'S ADMIN & DT MAX HUB STYLES
   ========================================== */
.admin-header-banner {
  background: #1e293b;
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-pill {
  display: inline-block;
  background: #00338D;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.admin-header-banner p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-top: 4px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 820px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 4px 0;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-warning { color: #d97706; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }

.admin-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 920px) {
  .admin-split-grid {
    grid-template-columns: 1fr;
  }
}

.card-title-row {
  margin-bottom: 14px;
}

.admin-client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-row-item {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
}

.client-row-item:hover,
.client-row-item.active {
  border-color: var(--primary);
  background: #eef4fc;
}

.client-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.client-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.74rem;
}

.tag-es { background: #fef3c7; color: #92400e; }
.tag-en { background: #e0f2fe; color: #075985; }
.tag-status { background: #f1f5f9; color: #334155; }
.tag-paid { background: #dbeafe; color: #00338D; }

/* DT Max Inspector */
.dtmax-box {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.dtmax-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #334155;
  font-family: 'Inter', sans-serif;
}

.dtmax-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #1e293b;
}

.dtmax-key {
  color: #38bdf8;
  font-weight: 700;
}

.translation-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
  font-size: 0.88rem;
}

.translation-card strong {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
}

/* Admin Filter Bar & Google Sheets Summary Table */
.admin-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1fr 0.95fr 0.95fr;
  gap: 10px;
}

@media (max-width: 980px) {
  .admin-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }
}

.badge-danger-pill {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delete-confirm-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.86rem;
  color: #1e293b;
  line-height: 1.5;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: #b91c1c;
}

.active-view-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 1050px;
}

.sheet-table th {
  background: #0f172a;
  color: #f8fafc;
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #334155;
}

.sheet-table td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  vertical-align: middle;
}

.sheet-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.sheet-table tbody tr:hover {
  background: #eef4fc;
  cursor: pointer;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 300;
}

/* ============================================================================
   SMART PROGRESSIVE DISCLOSURE QUESTIONNAIRE (STEP 3)
   ============================================================================ */
.tax-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .tax-mode-selector {
    grid-template-columns: 1fr;
  }
}

.tax-mode-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.tax-mode-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.tax-mode-card.active {
  border-color: var(--primary);
  background: #eef4fc;
  box-shadow: 0 4px 12px rgba(0, 51, 141, 0.1);
}

.tax-mode-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 2px;
}

.tax-mode-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}

.tax-mode-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.auto-rebate-banner {
  background: linear-gradient(135deg, #eef4fc 0%, #e0ecff 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.auto-rebate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auto-rebate-top strong {
  color: #00338D;
  font-size: 0.92rem;
}

.auto-rebate-sub {
  font-size: 0.8rem;
  color: #005EB8;
  margin-top: 4px;
}

.auto-rebate-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #bfdbfe;
  font-size: 0.82rem;
  color: #002266;
}

.smart-q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.smart-q-item {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smart-q-item.active-yes {
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 51, 141, 0.08);
}

.smart-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  background: var(--surface-alt);
}

.smart-q-item.active-yes .smart-q-header {
  background: #eef4fc;
}

.smart-q-info {
  flex: 1;
}

.smart-q-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.smart-q-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.yn-toggle-group {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 99px;
  flex-shrink: 0;
}

.yn-btn {
  border: none;
  background: transparent;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yn-btn.active-no {
  background: #ffffff;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.yn-btn.active-yes {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 51, 141, 0.25);
}

.smart-q-body {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid #dbeafe;
  font-size: 0.85rem;
}

.smart-q-body label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #00338D;
  margin-bottom: 4px;
  display: block;
}

.expand-more-income-bar {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gig-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

/* ============================================================================
   OFFICIAL CRA FORM AUT-01 / EFILE AUTHREP SIGNATURE PAGE STYLING
   ============================================================================ */
.cra-official-form-box {
  border: 2px solid #0f172a;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 18px;
}

.cra-form-top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cra-gov-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cra-flag-icon {
  font-size: 1.4rem;
}

.cra-gov-brand strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.cra-gov-brand span {
  display: block;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.cra-form-code {
  text-align: right;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.cra-form-code strong {
  display: block;
  font-size: 0.92rem;
  color: #38bdf8;
}

.cra-form-code span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.cra-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #cbd5e1;
}

@media (max-width: 680px) {
  .cra-form-grid {
    grid-template-columns: 1fr;
  }
}

.cra-form-section {
  padding: 12px 16px;
  border-right: 1px solid #e2e8f0;
}

.cra-form-section:last-child {
  border-right: none;
}

.cra-sec-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #00338D;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.cra-field-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  padding: 3px 0;
}

.cra-field-row span {
  color: #64748b;
}

.cra-field-row strong {
  color: #0f172a;
  text-align: right;
}

.cra-cert-box {
  padding: 12px 16px;
  background: #f8fafc;
}

/* ============================================================================
   MOBILE-FIRST POLISH (iPHONE / ANDROID FRIENDLY)
   ============================================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  max-width: 100%;
  touch-action: none; /* Prevents page scroll while finger-signing on mobile */
}

@media (max-width: 760px) {
  /* Single-row sleek swipeable stepper instead of tall 3-row grid */
  .stepper-nav {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .stepper-nav::-webkit-scrollbar {
    display: none;
  }

  .step-tab {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  /* Prevent iOS Safari auto-zoom when tapping form inputs */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }

  .app-header {
    padding: 10px 14px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .brand-text p {
    font-size: 0.72rem;
  }

  .main-container {
    margin: 14px auto;
    padding: 0 12px;
  }

  .hero-banner {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  .hero-banner h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .hero-banner p {
    font-size: 0.9rem;
  }

  .card {
    padding: 18px 15px;
    border-radius: 12px;
  }

  .client-welcome-banner {
    padding: 14px 16px;
    gap: 10px;
  }

  .access-code-badge {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
  }

  /* Thumb-friendly Yes/No rows on small screens */
  .smart-q-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
  }

  .yn-toggle-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .yn-btn {
    padding: 9px 12px;
    font-size: 0.85rem;
    min-height: 38px;
  }

  /* Stack footer buttons cleanly with Primary button full-width on top */
  .step-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .step-footer > div {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
  }

  .step-footer button,
  .step-footer .btn-primary,
  .step-footer .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 0.95rem;
  }

  .upload-dropzone {
    padding: 22px 14px;
  }

  .modal-card {
    padding: 18px 16px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 16px;
    text-align: center;
  }
}

/* ============================================================================
   TFW-FRIENDLY 3-STEP HERO STRIP, DIRECT DEPOSIT TIP & FLOATING WHATSAPP HELP
   ============================================================================ */
.hero-3steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-step-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
}

.hero-step-arrow {
  color: #93c5fd;
  font-weight: 800;
  font-size: 0.9rem;
}

.tfw-direct-deposit-tip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.floating-wa-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #00338D;
  color: #ffffff;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 24px rgba(0, 51, 141, 0.35);
  z-index: 150;
  transition: transform 0.15s ease, background 0.15s ease;
}

.floating-wa-help:hover {
  background: #005EB8;
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  body {
    padding-bottom: 84px;
  }

  .floating-wa-help {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

/* ============================================================================
   TRUST & FAQ SECTION + INTERACTIVE "ASK US FIRST" SIDE HELPER WIDGET
   ============================================================================ */
.trust-faq-wrapper {
  margin-top: 26px;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .trust-badges-grid {
    grid-template-columns: 1fr;
  }
}

.trust-badge-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-badge-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-badge-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.faq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 10px 14px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 8px;
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.side-helper-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.side-helper-container .floating-wa-help {
  position: static;
  border: none;
  cursor: pointer;
}

.side-helper-drawer {
  width: 340px;
  max-width: calc(100vw - 28px);
  background: #ffffff;
  border: 1.5px solid #00338D;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.side-helper-header {
  background: linear-gradient(135deg, #00338D, #002266);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.side-helper-header strong {
  display: block;
  font-size: 0.9rem;
}

.side-helper-header span {
  display: block;
  font-size: 0.74rem;
  color: #dbeafe;
}

.side-helper-body {
  padding: 12px 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.helper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.helper-chip {
  background: #eef4fc;
  border: 1px solid #93c5fd;
  color: #00338D;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.helper-chip:hover {
  background: #dbeafe;
}

.helper-quick-answer {
  margin-top: 8px;
  background: #f8fafc;
  border-left: 3px solid #00338D;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.79rem;
  color: #1e293b;
  line-height: 1.45;
}

.new-client-inline-link {
  background: #eef4fc;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  /* Hide orphan hero step arrows and tighten pills cleanly */
  .hero-step-arrow {
    display: none;
  }

  .hero-3steps {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-step-pill {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  /* Compact single-row mobile header */
  .header-inner {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.76rem;
  }
}

/* Hardened Auth Errors, Registration Pin Row, PIPEDA Consent & Legal Footer */
.auth-inline-error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.4;
}

.reg-pin-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.reg-pin-row input {
  flex: 1;
}

.btn-regen-pin {
  background: #ffffff;
  color: #00338D;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-regen-pin:hover {
  background: #dbeafe;
}

.consent-check-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #1e293b;
}

.consent-check-box label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
}

.consent-check-box input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00338D;
}

.btn-disabled-soft {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.site-legal-footer {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 18px 20px 26px;
  border-top: 1px solid #cbd5e1;
  text-align: center;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
}

.site-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.legal-modal-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.84rem;
  color: #1e293b;
  line-height: 1.55;
  max-height: 55vh;
  overflow-y: auto;
}

.legal-modal-body h4 {
  color: #00338D;
  font-size: 0.9rem;
  margin: 10px 0 4px;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body ul {
  padding-left: 18px;
  margin: 4px 0 8px;
}

.step4-all-done-card {
  background: linear-gradient(135deg, #eef4fc 0%, #f0fdf4 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
}

.step4-all-done-card h4 {
  color: #00338D;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.step4-all-done-card p {
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.step4-all-done-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-notify-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-pref-badge {
  display: inline-block;
  background: #dbeafe;
  color: #00338D;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
}

@media (max-width: 680px) {
  .step4-all-done-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step4-all-done-actions button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

/* ============================================================================
   MULTI-YEAR FILING SWITCHER & ARCHIVE VIEWER
   ============================================================================ */
.client-year-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.client-year-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.year-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.year-pill-btn:hover {
  border-color: #00338D;
  color: #00338D;
  background: #eef4fc;
}

.year-pill-btn.active {
  background: #00338D;
  color: #ffffff;
  border-color: #00338D;
  box-shadow: 0 2px 8px rgba(0, 51, 141, 0.22);
}

.year-pill-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px dashed #00338D;
  background: #eef4fc;
  color: #00338D;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.year-pill-add:hover {
  background: #dbeafe;
}

.past-return-card {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 51, 141, 0.08);
}

.past-return-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.past-return-banner {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.admin-year-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  margin: 12px 0;
}

@media (max-width: 680px) {
  .client-year-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .year-pill-add {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.btn-toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  color: #475569;
  line-height: 1;
}

.btn-toggle-pw:hover {
  color: #00338D;
}

.verify-email-card {
  max-width: 540px;
  margin: 28px auto;
  padding: 28px 24px;
  border: 1.5px solid #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.verify-email-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 680px) {
  .verify-email-card {
    margin: 12px auto;
    padding: 20px 16px;
  }

  .verify-email-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-email-actions button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}








