/* ==========================================================================
   GUAVA INVEST TELEGRAM MINI APP — CORE STYLESHEET
   Brand Palette: Deep Emerald Green (#142B16, #1B3B22), Gold Accents (#D4AF37)
   Mobile-First Architecture & Telegram WebApp Optimization
   ========================================================================== */

:root {
  /* Surface & Backgrounds (Guava White Theme) */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9FAFB;
  --bg-card-active: #F3F4F6;
  --bg-subtle: #F3F4F6;

  /* Brand Colors from guavainvest.com */
  --brand-emerald: #002619;
  --brand-emerald-hover: #073D2A;
  --brand-emerald-active: #001A11;
  --brand-lime: #D4ED6D;
  --brand-lime-hover: #C5E05A;

  /* Borders */
  --border-subtle: #E5E7EB;
  --border-card: #ECEEF2;
  --border-gold: rgba(0, 38, 25, 0.12);
  --border-gold-strong: #002619;

  /* Typography Colors */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-brand: #002619;
  --text-gold: #002619;

  /* Semantic Compatibility */
  --accent-gold: #002619;
  --accent-gold-light: #D4ED6D;
  --accent-gold-gradient: linear-gradient(135deg, #002619 0%, #0d3b2b 100%);
  --accent-green-gradient: linear-gradient(135deg, #002619 0%, #073D2A 100%);

  /* Status Colors */
  --status-active: #10B981;
  --status-pending: #F59E0B;
  --status-error: #EF4444;

  /* Buttons */
  --btn-bg: #002619;
  --btn-hover: #073D2A;
  --btn-active: #001A11;

  /* Typography matching guavainvest.com */
  --font-heading: 'Unbounded', Arial, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family: var(--font-body);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 38, 25, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 6px 18px rgba(0, 38, 25, 0.08);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 38, 25, 0.06);
  --shadow-glow: 0 4px 16px rgba(0, 38, 25, 0.18);

  /* Safe Area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 15px;
}

/* Headings use Unbounded */
h1, h2, h3, h4, h5, h6,
.brand-name,
.investor-name,
.card-title,
.modal-title,
.wizard-step-title,
.btn-primary,
.btn-submit {
  font-family: var(--font-heading);
}

/* Body & Descriptions use Onest */
button, input, select, textarea,
.brand-tag,
.card-subtitle,
.investor-objects,
.modal-body,
.form-label,
.form-input,
.disclaimer-text,
.toast {
  font-family: var(--font-body);
}

button, input, select, textarea {
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* App Container */
.app-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 16px) 16px;
}

/* Header & Brand */
.app-header {
  margin-bottom: 20px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-emerald);
  text-transform: uppercase;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Hero Investor Card (Left-aligned VIP Card) */
.investor-card {
  position: relative;
  background: linear-gradient(135deg, #002619 0%, #073B29 60%, #021C13 100%);
  border: 1px solid rgba(0, 38, 25, 0.2);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 38, 25, 0.16), 0 2px 6px rgba(0, 38, 25, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
}

.investor-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 140px;
  height: 120px;
  background: radial-gradient(circle, rgba(212, 237, 109, 0.18) 0%, rgba(212, 237, 109, 0) 70%);
  pointer-events: none;
  filter: blur(20px);
}

.investor-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 0;
}

.investor-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3b2b 0%, #041c13 100%);
  border: 2px solid rgba(212, 237, 109, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 12px rgba(212, 237, 109, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.investor-avatar img,
.investor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.investor-avatar-initials {
  font-size: 20px;
  font-weight: 700;
  color: #D4ED6D;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.investor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.investor-name {
  font-size: 17.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.investor-objects {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  font-weight: 400;
  max-width: 100%;
  text-align: left;
  word-break: break-word;
}

.investor-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: none;
}

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

/* Object Selector (G01 Multi-Object) */
.object-selector-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.selector-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--brand-emerald);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.object-select {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  padding-right: 28px;
  cursor: pointer;
  appearance: none;
}

.object-select option {
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 8px;
}

.select-arrow {
  position: absolute;
  right: 0;
  font-size: 10px;
  color: var(--brand-emerald);
  pointer-events: none;
}

/* Single Object Display */
.single-object-container {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.single-object-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.single-object-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Main Content Views */
.app-main {
  flex: 1;
}

.view {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* Menu Grid & 6 Canonical Buttons */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-card);
}

.menu-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 38, 25, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.menu-card:active {
  transform: scale(0.985);
  background: var(--bg-card-active);
}

.menu-card.btn-accent {
  background: var(--brand-emerald);
  border: 1px solid var(--brand-emerald);
  box-shadow: 0 6px 20px rgba(0, 38, 25, 0.2);
}

.menu-card.btn-accent:hover {
  background: var(--brand-emerald-hover);
  border-color: var(--brand-emerald-hover);
}

.menu-card.btn-accent:active {
  background: var(--brand-emerald-active);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.09);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.icon-svg-sm {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.icon-svg-lg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: 0 auto;
}

.menu-card:hover .card-icon {
  background: rgba(0, 38, 25, 0.09);
  border-color: rgba(0, 38, 25, 0.22);
  color: var(--brand-emerald);
  transform: scale(1.05);
}

.btn-accent .card-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #D4ED6D;
  box-shadow: 0 0 12px rgba(212, 237, 109, 0.2);
}

.btn-accent:hover .card-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #E2F38C;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.btn-accent .card-title {
  color: #FFFFFF;
}

.card-subtitle {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.btn-accent .card-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.card-arrow {
  font-size: 20px;
  color: #9CA3AF;
  font-weight: 300;
  transition: color 0.15s ease, transform 0.15s ease;
}

.menu-card:hover .card-arrow {
  color: var(--brand-emerald);
  transform: translateX(2px);
}

.btn-accent .card-arrow {
  color: #D4ED6D;
}

/* Payment Wizard Container (Task 03 Anchor) */
.wizard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-back {
  font-size: 14px;
  color: var(--brand-emerald);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 38, 25, 0.06);
  transition: background 0.15s ease;
}

.btn-back:hover {
  background: rgba(0, 38, 25, 0.1);
}

.btn-back:active {
  background: rgba(0, 38, 25, 0.16);
}

.view-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-emerald);
}

.wizard-placeholder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.wizard-placeholder-card h3 {
  font-size: 18px;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

.wizard-placeholder-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.placeholder-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.step-chip {
  background: #F3F4F6;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   TASK 03 — PAYMENT WIZARD INTERACTIVE STYLES
   ========================================================================== */

.animated-fade-in {
  animation: fadeIn 0.2s ease-out;
}

.wizard-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
}

.wizard-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.btn-wizard-step-back {
  font-size: 13px;
  color: var(--brand-emerald);
  background: rgba(0, 38, 25, 0.06);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease;
}

.btn-wizard-step-back:hover {
  background: rgba(0, 38, 25, 0.1);
}

.btn-wizard-step-back:active {
  background: rgba(0, 38, 25, 0.16);
}

.wizard-step-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-emerald);
  background: rgba(0, 38, 25, 0.06);
  border: 1px solid rgba(0, 38, 25, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-weight: 600;
  display: inline-block;
}

.wizard-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 6px;
}

.wizard-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Step 1: Countries */
.wizard-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.btn-country-choice {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-country-choice:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-card-hover);
}

.btn-country-choice:active {
  transform: scale(0.97);
  background: var(--bg-card-active);
}

.country-name {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 4px;
}

.country-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

/* Step 2: Methods */
.wizard-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-method-choice {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-method-choice:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-emerald);
}

.btn-method-choice:active {
  background: var(--bg-card-active);
}

.method-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.09);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-emerald);
  transition: all 0.15s ease;
}

.btn-method-choice:hover .method-icon {
  background: rgba(0, 38, 25, 0.09);
  border-color: rgba(0, 38, 25, 0.2);
}

.method-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.method-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.method-arrow {
  color: #9CA3AF;
  font-size: 18px;
}

/* Step 3: Instructions & Video */
.rf-card-instruction-box {
  background: rgba(0, 38, 25, 0.04);
  border: 1px solid rgba(0, 38, 25, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 14px 0;
}

.instruction-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--brand-emerald);
  font-size: 13px;
}

.instruction-icon {
  font-size: 16px;
}

.instruction-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.video-instruction-container {
  margin: 14px 0;
}

.video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.wizard-video {
  width: 100%;
  max-height: 320px;
  display: block;
}

.video-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Step 4: Objects */
.saved-objects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.saved-object-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.saved-object-card:hover {
  background: var(--bg-card-hover);
}

.saved-object-card.selected {
  border-color: var(--brand-emerald);
  background: rgba(0, 38, 25, 0.04);
  box-shadow: 0 0 0 1px var(--brand-emerald);
}

.object-card-radio {
  color: var(--brand-emerald);
  font-size: 16px;
  margin-top: 2px;
}

.object-card-body {
  flex: 1;
}

.object-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.object-card-details {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.object-card-details span {
  color: var(--text-muted);
}

.object-amount-row {
  margin-top: 2px;
}

.object-card-amount {
  font-weight: 700;
  color: var(--brand-emerald);
  font-size: 13.5px;
}

.object-management-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.object-management-buttons button {
  width: 100%;
  font-size: 13px;
  padding: 10px 14px;
}

.object-quick-summary {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.object-quick-summary .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.object-quick-summary .summary-line:last-child {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.object-quick-summary .summary-line span {
  color: var(--text-muted);
}

/* Step 5: Disclaimer */
.disclaimer-alert-card {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

.disclaimer-headline {
  font-size: 14px;
  font-weight: 700;
  color: #DC2626;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.disclaimer-content {
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
  font-weight: 500;
}

/* Step 6: Form */
.wizard-form {
  margin-top: 14px;
}

.form-section-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-emerald);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 2px rgba(0, 38, 25, 0.12);
}

.form-input.input-invalid {
  border-color: var(--status-error);
  background: #FEF2F2;
}

.field-error {
  font-size: 11px;
  color: var(--status-error);
  margin-top: 4px;
  display: none;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 16px 0;
  padding: 8px 10px;
  background: #F3F4F6;
  border-radius: var(--radius-sm);
}

.wizard-actions-footer {
  margin-top: 18px;
}

/* Step 6: Review Summary */
.review-summary-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-section-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.review-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.btn-review-edit {
  background: transparent;
  color: var(--brand-emerald);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid rgba(0, 38, 25, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-review-edit:hover {
  background: rgba(0, 38, 25, 0.05);
  border-color: var(--brand-emerald);
}

.btn-review-edit:active {
  background: rgba(0, 38, 25, 0.1);
  transform: scale(0.98);
}

.review-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-emerald);
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 6px;
}

.review-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 12px;
}

.review-item.highlight {
  background: #F0FDF4;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-top: 4px;
}

.review-label {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.review-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.review-amount {
  color: var(--brand-emerald);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.review-prompt-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}

/* Step 7: Success */
.wizard-success-card {
  text-align: center;
  padding: 28px 16px;
}

.success-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid var(--status-active);
}

.success-title-large {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.success-info-box {
  font-size: 13px;
  color: var(--brand-emerald);
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 38, 25, 0.2);
  border-top-color: var(--brand-emerald);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 20, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleInModal 0.2s ease-out;
}

.modal-card.modal-large {
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes scaleInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid #F0F2F4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-emerald);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #F3F4F6;
  color: #6B7280;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: #E5E7EB;
  color: #111827;
}

.modal-close:active {
  background: #D1D5DB;
}

.modal-body {
  padding: 18px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.modal-question {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.45;
}

/* Modal Choice Buttons (Review modal) */
.modal-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-choice-btn {
  background: #F9FAFB;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.review-choice-btn:hover {
  background: #F3F4F6;
  border-color: rgba(0, 38, 25, 0.2);
}

.review-choice-btn:active {
  background: #E5E7EB;
  transform: scale(0.985);
}

.choice-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.09);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-emerald);
  transition: all 0.15s ease;
}

.review-choice-btn:hover .choice-icon {
  background: rgba(0, 38, 25, 0.09);
  border-color: rgba(0, 38, 25, 0.2);
}

.choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.choice-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.choice-arrow {
  color: var(--brand-emerald);
  font-size: 16px;
}

/* Forms & Textarea */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
  min-height: 90px;
}

.form-textarea:focus {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 2px rgba(0, 38, 25, 0.12);
}

/* Alert / Info Boxes */
.alert-box {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-info {
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.12);
  color: var(--brand-emerald);
}

.alert-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.alert-consent {
  background: rgba(212, 237, 109, 0.22);
  border: 1px solid rgba(0, 38, 25, 0.15);
  color: var(--brand-emerald);
  font-weight: 500;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Client Preview Box inside modals */
.client-preview-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
  font-size: 12px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  background: var(--brand-emerald);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--brand-emerald);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 38, 25, 0.15);
}

.btn-primary:hover {
  background: var(--brand-emerald-hover);
  box-shadow: 0 6px 16px rgba(0, 38, 25, 0.22);
}

.btn-primary:active {
  background: var(--brand-emerald-active);
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.btn-gold {
  background: var(--brand-emerald);
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 38, 25, 0.2);
}

.btn-primary.btn-gold:active {
  filter: brightness(0.92);
}

.btn-secondary {
  width: 100%;
  background: #F3F4F6;
  color: #374151;
  border-radius: var(--radius-lg);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #E5E7EB;
}

.btn-secondary:active {
  background: #D1D5DB;
}

/* Success Card States */
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-active);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 14px auto;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

.success-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Info block inside Document modal */
.info-block {
  margin-bottom: 14px;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-emerald);
}

/* Schedule Modal Layout */

.schedule-object-picker {
  margin-bottom: 14px;
}

.schedule-object-picker .selector-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.schedule-object-badge {
  background: rgba(0, 38, 25, 0.06);
  border: 1px solid rgba(0, 38, 25, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-emerald);
  margin-bottom: 14px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.schedule-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-item.highlight {
  background: rgba(0, 38, 25, 0.05);
  border-color: rgba(0, 38, 25, 0.2);
}

.schedule-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.schedule-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.schedule-item.highlight .schedule-value {
  font-size: 16px;
  color: var(--brand-emerald);
  font-weight: 700;
}

/* Footer */
.app-footer {
  margin-top: 24px;
  padding: 14px 0 8px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--brand-emerald);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}

.toast {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border: 1px solid rgba(212, 237, 109, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 38, 25, 0.25);
  text-align: center;
  animation: toastIn 0.25s ease-out, toastOut 0.25s ease-in 2.75s forwards;
}

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

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

/* ==========================================================================
   AUTHORIZATION GATE (Direct E-mail Verification)
   ========================================================================== */

.auth-gate-container {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-top: 8px;
}

.auth-gate-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 38, 25, 0.05);
  border: 1px solid rgba(0, 38, 25, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-emerald);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

.auth-gate-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-emerald);
  margin-bottom: 8px;
  line-height: 1.3;
}

.auth-gate-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  margin-bottom: 0;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.auth-email-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-email-input:focus {
  outline: none;
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(0, 38, 25, 0.08);
}

.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--brand-emerald);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
  background: var(--brand-emerald-hover);
}

.auth-submit-btn:active {
  background: var(--brand-emerald-active);
  transform: scale(0.99);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error box inside auth gate */
.auth-error-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease-in-out;
}

.auth-error-icon {
  color: #DC2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-error-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.auth-error-title {
  font-weight: 700;
  font-size: 14px;
  color: #991B1B;
}

.auth-error-text {
  font-size: 13px;
  line-height: 1.45;
  color: #7F1D1D;
}

.auth-error-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-error-action {
  background: #FFFFFF;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-error-action:hover {
  background: #FEE2E2;
}

.btn-error-action-support {
  background: #991B1B;
  border-color: #991B1B;
  color: #FFFFFF;
}

.btn-error-action-support:hover {
  background: #7F1D1D;
}

.auth-gate-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  text-align: center;
}

.auth-security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
