/* KickPay — Mobile-first design system */

:root {
  --navy: #0a0e1a;
  --navy-light: #111827;
  --teal: #06d6a0;
  --teal-dark: #05b88a;
  --orange: #ff9f1c;
  --orange-dark: #e88a18;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --error: #ef4444;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.app-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---- Screen base ---- */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 24px;
}
.screen.active { display: flex; }

/* ---- Splash ---- */
.splash-screen {
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  background: var(--navy);
}
.kickpay-logo {
  width: 120px;
  height: auto;
}
.splash-tagline {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 700;
}
.splash-loading {
  width: 32px; height: 32px;
  border: 3px solid var(--navy-light);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Form shared ---- */
.screen-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--white);
}
.screen-subtitle {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.5;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  display: block;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-700);
  background: var(--navy-light);
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--teal);
}
.form-input::placeholder { color: var(--gray-500); }
.form-divider {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin: 8px 0 16px;
}
.btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: transform 0.1s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--navy);
}
.btn-secondary {
  background: var(--navy-light);
  color: var(--white);
  border: 1.5px solid var(--gray-700);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--navy);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-link {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  text-align: center;
  width: 100%;
}
.form-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---- Compliance notice ---- */
.compliance-notice {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}

/* ---- KYC / Identity ---- */
.kyc-card {
  background: var(--navy-light);
  border: 1.5px solid var(--gray-700);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
.kyc-icon { font-size: 32px; margin-bottom: 12px; }
.kyc-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.kyc-desc { font-size: 13px; color: var(--gray-300); line-height: 1.6; }
.kyc-price { font-size: 12px; color: var(--gray-500); margin-top: 8px; }

/* ---- Payroll Connect ---- */
.argyle-disclosure {
  background: rgba(6,214,160,0.08);
  border: 1px solid rgba(6,214,160,0.25);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.6;
}
.argyle-disclosure strong { color: var(--teal); }
.data-list {
  list-style: none;
  margin: 12px 0;
}
.data-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-300);
  padding: 6px 0;
}
.data-list li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ---- Eligibility Result ---- */
.result-screen { justify-content: center; align-items: center; text-align: center; }
.result-icon { font-size: 64px; margin-bottom: 24px; }
.result-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.result-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  margin: 16px 0;
}
.result-desc { font-size: 14px; color: var(--gray-300); line-height: 1.6; max-width: 320px; margin: 0 auto 24px; }
.adverse-notice {
  background: var(--navy-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--gray-300);
  margin: 16px 0;
  line-height: 1.5;
}
.adverse-notice strong { color: var(--white); }
.decline-reason {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: var(--gray-300);
  margin: 16px 0;
  max-width: 320px;
}

/* ---- Setup / Card + ACH ---- */
.setup-screen { padding-top: 32px; }
.setup-card {
  background: var(--navy-light);
  border: 1.5px solid var(--gray-700);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.setup-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.setup-card-subtitle { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.fee-disclosure {
  background: rgba(255,159,28,0.1);
  border: 1px solid rgba(255,159,28,0.3);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.6;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-700);
  font-size: 14px;
}
.fee-row:last-child { border-bottom: none; font-weight: 700; color: var(--orange); }
.fee-row span:first-child { color: var(--gray-300); }
.consent-box {
  background: var(--navy-light);
  border: 1px solid var(--gray-700);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 12px 0;
}

/* ---- Home Screen ---- */
.home-header {
  padding: 48px 0 32px;
  text-align: center;
}
.home-balance-label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.home-balance-amount {
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.home-balance-available { font-size: 13px; color: var(--teal); margin-top: 4px; }
.home-request-btn {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  margin: 24px 0 8px;
  transition: transform 0.1s;
}
.home-request-btn:active { transform: scale(0.98); }
.home-request-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.home-pending-alert {
  background: rgba(255,159,28,0.15);
  border: 1px solid rgba(255,159,28,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 16px;
  text-align: center;
}
.home-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin: 24px 0 12px;
}
.history-list { list-style: none; }
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-700);
}
.history-item:last-child { border-bottom: none; }
.history-amount { font-size: 18px; font-weight: 700; }
.history-meta { text-align: right; }
.history-date { font-size: 12px; color: var(--gray-500); }
.history-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 4px;
  display: inline-block;
}
.status-disbursed { background: rgba(6,214,160,0.2); color: var(--teal); }
.status-repaid { background: rgba(6,214,160,0.1); color: var(--teal-dark); }
.status-pending { background: rgba(255,159,28,0.2); color: var(--orange); }
.history-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--gray-500);
  font-size: 14px;
}

/* ---- Loading spinner ---- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--gray-700);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ---- Progress dots ---- */
.step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
}
.step-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-700);
}
.step-dot.active { background: var(--teal); }
.step-dot.done { background: var(--teal); opacity: 0.5; }