* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #f5f5f8;
  --card: #ffffff;
  --card-hover: #f0f0f3;
  --border: #e0e0e6;
  --text: #1a1a2e;
  --text-secondary: #8e8ea0;
  --accent: #00b82e;
  --accent-hover: #009c27;
  --cyan: #079b47;
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  height: 100%;
  background: #fff;
}

body {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.modal-overlay { background: rgba(0,0,0,0.5); }

/* ===== SCREENS ===== */
.screen { display: none; width: 100%; height: 100%; overflow-y: auto; }
.screen.active { display: flex; align-items: center; justify-content: center; }

/* ===== APP SHELL ===== */
.app-shell { display: none; width: 100%; height: 100%; flex-direction: column; background: var(--bg); }
.app-shell.active { display: flex; }

/* ===== TAB CONTENT ===== */
.tab-content { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.tab-content.active { display: flex; }

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.tab-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 16px;
  transition: color var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bn-item svg { transition: color var(--transition); }

.bn-item.active { color: var(--accent); }
.bn-item.active svg { color: var(--accent); }
.bn-item.disabled { opacity: 0.3; pointer-events: none; }

.bn-item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  transition: transform 0.25s ease;
}

.bn-item.active::after { transform: translateX(-50%) scaleX(1); }

/* ===== HOME TOP ===== */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  animation: fadeSlideIn 0.4s ease;
}

.ht-left { display: flex; align-items: center; gap: 12px; }
.ht-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); color: var(--text-secondary);
}
.ht-info { display: flex; flex-direction: column; }
.ht-greeting { font-size: 13px; color: var(--text-secondary); }
.ht-email { font-size: 14px; font-weight: 600; color: var(--text); }

.ht-notif {
  position: relative; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
  flex-shrink: 0;
}
.ht-notif:hover { background: var(--card-hover); }
.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ===== BALANCE CARD ===== */
.balance-card {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #00b82e;

  border-radius: 20px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,184,46,0.3), 0 0 10px rgba(0,0,0,0.5) inset;
  animation: slideUp 0.5s ease 0.05s both;
  aspect-ratio: 1.586 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-glare {
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(125deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 30%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.2) 100%);
  pointer-events: none; z-index: 0;
}

.card-texture {
  position: absolute; inset: 0; border-radius: 20px;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; pointer-events: none; z-index: 0;
}

.bc-glow {
  position: absolute; top: -80%; right: -30%;
  width: 120%; height: 180%;
  background: radial-gradient(ellipse at 70% 30%, rgba(37,244,238,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

.bc-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.bc-chip { flex-shrink: 0; }
.bc-contactless { flex-shrink: 0; }
.bc-balance-wrap { position: relative; z-index: 1; }
.bc-label { font-size: 15px; color: rgb(255 255 255); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: -5px; }
.bc-value { font-size: 35px; font-weight: bold; color: #fff; letter-spacing: -0.3px; }
.bc-cents { font-size: 18px; font-weight: 600; }
.bc-currency { font-size: 14px; color: rgb(255 255 255); margin-top: -8px; }

.bc-card-number {
  font-size: 16px; letter-spacing: 3px; color: rgba(255,255,255,0.85);
  font-family: "Courier New", monospace; position: relative; z-index: 1;
  margin: 6px 0;
}

.bc-status-line { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; margin-top: 8px; }
.bc-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4); flex-shrink: 0; }
#home-bc-label { font-size: 10px; color: rgb(255 255 255); }



/* ===== ALERT BANNER ===== */
.alert-banner {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  animation: slideUp 0.5s ease 0.1s both;
}

.alert-banner.warning {
  background: rgba(0,184,46,0.08);
  border: 1px solid rgba(0,184,46,0.2);
}

.alert-banner.info {
  background: rgba(22,199,132,0.06);
  border: 1px solid rgba(22,199,132,0.15);
}

.alert-banner.denied {
  background: rgba(0,184,46,0.06);
  border: 1px solid rgba(0,184,46,0.12);
}

.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-banner.warning .alert-icon { color: var(--accent); }
.alert-banner.info .alert-icon { color: #16c784; }

.alert-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.alert-banner.warning .alert-text strong { color: #f87171; }
.alert-banner.info .alert-text strong { color: #16c784; }

.alert-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== ACTION GRID ===== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  animation: slideUp 0.5s ease 0.15s both;
}

.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 0; cursor: default;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.action-btn:disabled { opacity: 0.5; }

.action-lock {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #dc2626; color: #fff;
}
.action-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04);
}

/* ===== HOME ACTIONS ===== */
.home-actions { margin-bottom: 24px; animation: slideUp 0.5s ease 0.2s both; }

/* ===== HOME SECTION ===== */
.home-section { animation: slideUp 0.5s ease 0.25s both; }
.hs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hs-header h3 { font-size: 16px; font-weight: 600; }
.hs-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}
.hs-badge.pending { background: #fef3c7; color: #d97706; }
.hs-badge.in-progress { background: rgba(22,199,132,0.1); color: #16c784; }
.hs-badge.denied { background: rgba(0,184,46,0.08); color: var(--accent); }

.hs-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
}

.ac-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,184,46,0.1); color: var(--accent);
}

.ac-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.ac-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== ANALYSIS PROGRESS ===== */
.analysis-progress {
  margin: 20px 0 16px;
  animation: slideUp 0.4s ease;
}

.ap-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ap-label { font-size: 14px; font-weight: 500; }
.ap-day { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(0,184,46,0.08); padding: 3px 10px; border-radius: 100px; }

.ap-track {
  height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; margin-bottom: 6px;
}
.ap-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.6s ease; }
.ap-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); }

/* ===== ANALYSIS STATUS ===== */
.analysis-status {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid rgba(0,184,46,0.15);
  border-left: 3px solid var(--accent);
  box-shadow: 0 1px 8px rgba(0,184,46,0.04);
  margin-bottom: 20px; animation: slideUp 0.4s ease 0.08s both;
}

.as-icon {
  flex-shrink: 0; color: var(--accent);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,184,46,0.08);
}
.as-text {
  font-size: 15px; font-weight: 500; color: var(--text);
  line-height: 1.5;
}
.as-text strong { color: var(--accent); font-weight: 600; }
.as-text span { color: var(--text-secondary); font-weight: 400; }

/* ===== TIMELINE ===== */
.analysis-timeline {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px;
  margin-bottom: 20px; animation: slideUp 0.4s ease 0.12s both;
}

.tl-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

.tl-list { display: flex; flex-direction: column; gap: 8px; }

.tl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
  animation: fadeSlideIn 0.3s ease both;
  transition: all 0.3s ease;
}
.tl-item.completed { border-color: rgba(22,199,132,0.35); background: rgba(22,199,132,0.07); }
.tl-item.current { border-color: #f59e0b; background: rgba(245,158,11,0.08); }
.tl-item.denied { border-color: #dc2626; background: rgba(220,38,38,0.06); }

.tl-i-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #eeeef2; color: var(--text-secondary); transition: all 0.3s ease;
}
.tl-item.completed .tl-i-icon { background: rgba(22,199,132,0.15); color: #16c784; }
.tl-item.current .tl-i-icon { background: rgba(245,158,11,0.15); color: #d97706; }
.tl-item.denied .tl-i-icon { background: rgba(220,38,38,0.12); color: #dc2626; }

.tl-i-content { flex: 1; min-width: 0; }
.tl-i-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.tl-item.completed .tl-i-name { color: #16c784; }
.tl-item.current .tl-i-name { color: #b45309; }
.tl-item.denied .tl-i-name { color: #dc2626; }

.tl-i-status { display: block; font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item.completed .tl-i-status { color: #16c784; }
.tl-item.current .tl-i-status { color: #d97706; }

.tl-i-bar { height: 3px; border-radius: 2px; background: #e0e0e6; margin-top: 6px; overflow: hidden; }
.tl-i-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.tl-item.completed .tl-i-fill { background: #16c784; }
.tl-item.current .tl-i-fill { background: #d97706; }

.tl-i-fill--loading {
  animation: loadFill 3.5s ease infinite;
}
@keyframes loadFill {
  0%   { width: 0%;   opacity: 0.6; }
  20%  { width: 15%;  opacity: 1; }
  50%  { width: 45%;  opacity: 1; }
  75%  { width: 78%;  opacity: 1; }
  88%  { width: 94%;  opacity: 0.9; }
  95%  { width: 100%; opacity: 0.5; }
  100% { width: 100%; opacity: 0; }
}

.tl-i-approved {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: #16c784;
  background: rgba(22,199,132,0.12);
  padding: 3px 8px 3px 10px; border-radius: 100px;
  flex-shrink: 0; margin-left: auto;
}

.tl-i-check {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tl-item.denied .tl-i-check { color: #dc2626; }

.tl-i-badge {
  font-size: 10px;
  font-weight: 600;
  color: #d97706;
  background: rgba(245,158,11,0.12);
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: auto;
  flex-shrink: 0;
  animation: pulseBadge 1.5s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===== DENIED (analysis tab) ===== */
.analysis-denied {
  text-align: center; padding: 32px 0;
  animation: slideUp 0.5s ease;
}

.ad-icon-wrap {
  position: relative; display: inline-flex; margin-bottom: 20px;
}
.ad-icon-pulse {
  position: absolute; inset: -12px; border-radius: 50%;
  background: rgba(220,38,38,0.08);
  animation: deniedPulse 2s ease-in-out infinite;
}
.ad-icon {
  position: relative; z-index: 1; display: block;
  animation: deniedPop 0.5s ease both;
}
@keyframes deniedPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.25); opacity: 0.8; }
}
@keyframes deniedPop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ad-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.ad-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; padding: 0 4px; }
.ad-sub strong { color: #dc2626; font-weight: 600; }

.ad-result {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.ad-result-item {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.ad-ri-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.ad-ri-value { font-size: 15px; font-weight: 700; color: var(--text); }
.ad-ri-value.denied { color: #dc2626; }

.ad-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px;
  text-align: left;
}
.ad-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }

.ad-reasons { }
.ad-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
}
.ad-row:last-child { border-bottom: none; }
.ad-row svg { flex-shrink: 0; }

.ad-value {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(220,38,38,0.04), rgba(220,38,38,0.08));
  border: 1px solid rgba(220,38,38,0.15);
}
.dv-left { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.dv-label { font-size: 13px; font-weight: 600; color: var(--text); }
.dv-desc { font-size: 11px; color: var(--text-secondary); }
.dv-amount { font-size: 22px; font-weight: 700; color: #dc2626; }

/* ===== SUPPORT ===== */
.support-content {
  padding: 24px 0;
  animation: slideUp 0.5s ease;
}

.faq-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.faq-header-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,184,46,0.08);
}
.faq-header h3 { font-size: 18px; font-weight: 700; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--accent); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 16px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text);
  text-align: left; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faq-q span { flex: 1; }
.faq-arrow {
  flex-shrink: 0; color: var(--text-secondary);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner {
  overflow: hidden; font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; padding: 0 16px;
}
.faq-item.open .faq-a-inner { padding: 0 16px 14px; }
.faq-a-inner strong { color: var(--text); font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  width: 100%; max-width: 480px; max-height: 90vh;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 12px 24px 32px;
  overflow-y: auto;
  animation: slideUpModal 0.35s ease;
}

.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 16px;
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-title { font-size: 18px; font-weight: 700; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
}
.btn-icon:hover { background: var(--card); }

.modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }

/* ===== UPLOAD ZONES ===== */
.upload-zone {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer;
  transition: all var(--transition); position: relative;
}
.upload-zone:hover { border-color: var(--accent); background: var(--card-hover); }
.upload-zone.has-file { border-color: #16c784; border-style: solid; background: rgba(22,199,132,0.04); }
.upload-zone.has-file .uz-icon { color: #16c784; }

.uz-icon { flex-shrink: 0; color: var(--text-secondary); transition: color var(--transition); }
.uz-info { flex: 1; }
.uz-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.uz-sub { font-size: 12px; color: var(--text-secondary); }
.uz-status { flex-shrink: 0; color: var(--text-secondary); }
.uz-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===== LOGIN ===== */
.login-container {
  width: 100%; max-width: 400px; padding: 40px 24px;
}
.login-header { margin-bottom: 40px; animation: fadeSlideIn 0.5s ease; text-align: center; }
.login-title { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 10px; animation: slideUp 0.5s ease 0.1s both; }
.login-desc { font-size: 15px; color: var(--text-secondary); text-align: center; line-height: 1.5; margin-bottom: 36px; padding: 0 12px; animation: slideUp 0.5s ease 0.15s both; }
.login-form { width: 100%; }
.login-footer { text-align: center; margin-top: 28px; font-size: 13px; color: var(--text-secondary); }
.login-footer a { color: var(--accent); text-decoration: none; }

/* ===== FORM ===== */
.input-group {
  position: relative; width: 100%; margin-bottom: 16px;
}
.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); pointer-events: none;
}
.input-field {
  width: 100%; padding: 16px 16px 16px 48px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px;
  color: var(--text); outline: none; transition: all var(--transition);
}
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,46,0.08); }
.input-field::placeholder { color: var(--text-secondary); }

.form-msg { font-size: 13px; margin-top: 12px; text-align: center; min-height: 20px; }
.form-msg.error { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 16px 32px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 4px 12px rgba(0,184,46,0.18);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0,0,0,0.1), 0 8px 22px rgba(0,184,46,0.28); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 2px 8px rgba(0,184,46,0.18); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,184,46,0.22), 0 4px 12px rgba(0,184,46,0.18); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; filter: grayscale(0.2); }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 18px 32px; font-size: 17px; }

.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.btn-outline:disabled { opacity: 0.4; cursor: default; }

/* ===== UPLOAD SUCCESS ===== */
.upload-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
  animation: successPop 0.5s ease;
}
.upload-success.show { display: flex; }
#upload-modal .modal-sheet:has(.upload-success.show) .modal-handle,
#upload-modal .modal-sheet:has(.upload-success.show) .modal-header,
#upload-modal .modal-sheet:has(.upload-success.show) .modal-desc,
#upload-modal .modal-sheet:has(.upload-success.show) #doc-form,
#upload-modal .modal-sheet:has(.upload-success.show) #upload-msg {
  display: none;
}
.us-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,199,132,0.10);
  margin-bottom: 20px; animation: successScale 0.6s ease;
}
.us-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.us-sub { font-size: 14px; color: var(--text-secondary); }

@keyframes successPop {
  0% { opacity: 0; transform: scale(0.85); }
  60% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes successScale {
  0% { transform: scale(0); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 200; padding: 14px 24px; border-radius: 100px;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: all 0.3s ease; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.hide { opacity: 0; transform: translateX(-50%) translateY(20px); }
.toast.success { border-color: #16c784; }
.toast.error { border-color: var(--accent); }

/* ===== SPINNER ===== */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== SCROLLBAR ===== */
.tab-scroll::-webkit-scrollbar, .modal-sheet::-webkit-scrollbar, .screen::-webkit-scrollbar { width: 4px; }
.tab-scroll::-webkit-scrollbar-track, .modal-sheet::-webkit-scrollbar-track, .screen::-webkit-scrollbar-track { background: transparent; }
.tab-scroll::-webkit-scrollbar-thumb, .modal-sheet::-webkit-scrollbar-thumb, .screen::-webkit-scrollbar-thumb { background: #d0d0d8; border-radius: 2px; }

.login-footer a { color: var(--accent); }
.login-footer a:hover { text-decoration: underline; }

.upload-zone { background: #fff; }
.upload-zone:hover { border-color: var(--accent); background: #f8f8fb; }
.upload-zone.has-file { border-color: #16c784; background: rgba(22,199,132,0.04); }

/* ===== ID DOC UPLOAD (light theme for readability) ===== */
.doc-type-card {
  background: #f7f7fb;
  border: 1px solid #e4e4ec;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.dt-title { color: #1a1a2e; font-weight: 700; font-size: 15px; }
.dt-desc { color: #5c5c6b; font-size: 13px; line-height: 1.45; margin-top: 4px; }

.id-upload { margin-bottom: 14px; }
.id-upload-label {
  display: block;
  font-size: 13px;
  color: #1a1a2e;
  font-weight: 700;
  margin-bottom: 6px;
}
.id-drop {
  position: relative;
  border: 2px dashed #c9c9d6;
  border-radius: 12px;
  min-height: 130px;
  background: #fafafd;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.id-drop:hover { border-color: #00b82e; background: #fff5f7; }
.id-drop.has-file { border-style: solid; border-color: #16c784; background: #f0fbf5; }
.id-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.id-drop.has-file .id-input { pointer-events: none; }
.id-drop-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px; color: #5c5c6b; font-size: 13px; font-weight: 600; text-align: center;
  height: 100%; min-height: 130px;
}
.id-drop-empty svg { color: #8e8ea0; }
.id-drop.has-file .id-drop-empty { display: none; }
.id-image { display: none; position: relative; }
.id-drop.has-file .id-image { display: block; }
.id-image img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.id-image-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  position: absolute; left: 0; right: 0; bottom: 0;
}
.id-image-label { color: #fff; font-size: 12px; font-weight: 700; }
.id-delete {
  display: inline-flex; align-items: center; gap: 6px;
  background: #00b82e; color: #fff; border: none;
  padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  position: relative; z-index: 3;
}
.id-delete:hover { background: #009c27; }
.id-help {
  font-size: 12.5px; color: #5c5c6b; line-height: 1.55;
  margin: 4px 0 14px;
}
.id-field { margin-bottom: 16px; }
.id-field label,
.id-field .id-upload-label { display:block; font-size:13px; color:#1a1a2e; font-weight:700; margin-bottom:6px; }
.id-field .id-help { margin-top: 6px; }
.id-input-text {
  width: 100%; box-sizing: border-box;
  background: #fff;
  border: 2px solid #d5d5df;
  color: #1a1a2e; font-size: 16px; font-weight: 600; letter-spacing: .3px;
  padding: 14px 16px; border-radius: 12px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.id-input-text::placeholder { color: #9a9aae; font-weight: 500; letter-spacing: 0; }
.id-input-text:hover { border-color: #b5b5c4; }
.id-input-text:focus {
  border-color: #00b82e;
  box-shadow: 0 0 0 3px rgba(0,184,46,0.18);
}

.id-check {
  display:flex; gap:10px; align-items:flex-start;
  margin:14px 0 4px; font-size:13.5px; color:#1a1a2e;
  line-height:1.5; cursor:pointer; font-weight:500;
}
.id-check input { width:20px; height:20px; flex-shrink:0; margin-top:1px; accent-color:#00b82e; cursor:pointer; }

.id-actions { display: flex; gap: 10px; margin-top: 8px; }
.id-actions .btn-primary, .id-actions .btn-secondary { flex: 1; }

.btn-secondary {
  min-height: 52px;
  padding: 14px 20px;
  background: #f0f0f5;
  color: #1a1a2e;
  border: 1.5px solid #d5d5df;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-secondary:hover { background: #e6e6ee; border-color: #b5b5c4; }

/* ===== LIVE CHAT ===== */
.chat-section {
  margin-top: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.chat-header-icon {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(37,244,238,0.1);
  display: flex; align-items: center; justify-content: center;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #16c784; border: 2px solid #0a0b0e;
}
.chat-header-info h3 { margin: 0; font-size: 15px; color: #fff; font-weight: 700; }
.chat-status { font-size: 12px; color: rgba(255,255,255,0.55); }

.chat-window {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  max-height: 380px; min-height: 220px;
  overflow-y: auto;
  background: rgba(0,0,0,0.15);
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg-agent { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.45; color: #fff;
  word-wrap: break-word;
}
.chat-msg-agent .chat-bubble {
  background: rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, #00b82e, #00b82e);
  border-bottom-right-radius: 4px;
}
.chat-time { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; padding: 0 4px; }

.chat-typing .chat-bubble {
  display: inline-flex; gap: 4px; padding: 12px 14px;
}
.chat-typing .chat-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-chip {
  background: rgba(37,244,238,0.08);
  color: #00b82e;
  border: 1px solid rgba(37,244,238,0.25);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.chat-chip:hover { background: rgba(37,244,238,0.18); }

.chat-input-row {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.chat-input-row input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 10px 14px; border-radius: 999px;
  outline: none; font-size: 14px;
}
.chat-input-row input:focus { border-color: #00b82e; }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #00b82e, #00b82e);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.chat-send:hover { transform: scale(1.05); }

/* ===== CARD TAB ===== */
.card-display-wrap { padding: 20px 0 8px; }
.card-display {
  position: relative;
  aspect-ratio: 1.586 / 1;
  width: 100%;
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg,#1a1a1a 0%,#333 100%);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.4s ease;
}
.card-display::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.card-display.color-red { background: linear-gradient(135deg,#00b82e 0%,#c81f43 100%); }
.card-display.color-cyan { background: linear-gradient(135deg,#00b82e 0%,#0891b2 100%); color: #062631; }
.card-display.color-gold { background: linear-gradient(135deg,#f4c430 0%,#b8860b 100%); color: #2b1e00; }
.card-display.color-purple { background: linear-gradient(135deg,#a855f7 0%,#6b21a8 100%); }
.card-display.color-silver { background: linear-gradient(135deg,#e5e7eb 0%,#9ca3af 100%); color: #1f2937; }
.cp-brand { font-weight: 800; font-size: 15px; letter-spacing: 0.5px; opacity: 0.95; }
.cp-chip { align-self: flex-start; }
.cp-number { font-family: "SF Mono", Menlo, monospace; letter-spacing: 3px; font-size: 17px; }
.cp-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cp-hint { font-size: 9px; text-transform: uppercase; opacity: 0.75; letter-spacing: 1px; }
.cp-name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-exp { font-weight: 700; font-size: 13px; }

.card-section { margin-top: 20px; }
.card-section-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.color-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-item {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cs-item:hover { transform: scale(1.08); }
.cs-item.active { border-color: var(--accent); transform: scale(1.1); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.toggle-title { font-weight: 700; font-size: 14px; }
.toggle-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-track { position: absolute; inset: 0; background: #ccc; border-radius: 26px; transition: 0.2s; cursor: pointer; }
.slider-track::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider-track { background: var(--accent); }
.switch input:checked + .slider-track::before { transform: translateX(18px); }

.address-form { margin-top: 14px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); animation: fadeIn 0.3s; }
.af-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.af-row label { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; }
.af-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-note { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px; background: rgba(37,244,238,0.08); border-radius: 10px; font-size: 12px; color: var(--text-secondary); }
.af-note svg { color: var(--cyan); flex-shrink: 0; }

/* Address inputs: light theme so they are readable on the white/grey form background */
.address-form .id-input-text,
#card-name-input,
#setup-card-name-input {
  background: #ffffff;
  border: 2px solid #d1d1d6;
  color: #111118;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.address-form .id-input-text::placeholder,
#card-name-input::placeholder,
#setup-card-name-input::placeholder { color: #8e8e93; font-weight: 400; }
.address-form .id-input-text:hover,
#card-name-input:hover,
#setup-card-name-input:hover { border-color: #a1a1aa; background: #ffffff; }
.address-form .id-input-text:focus,
.address-form .id-input-text:focus-visible,
#card-name-input:focus,
#setup-card-name-input:focus,
#card-name-input:focus-visible,
#setup-card-name-input:focus-visible {
  border-color: #00b82e;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0,184,46,0.15);
  outline: none;
}

/* Card name input: ensure enough vertical space for easy touch input */
#card-name-input,
#setup-card-name-input {
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ===== SPECIALIST BANNER ===== */
.specialist-banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(0,184,46,0.08), rgba(37,244,238,0.06));
  border: 1px solid rgba(0,184,46,0.2);
  border-radius: var(--radius);
}
.specialist-banner .sb-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#00b82e,#00b82e); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.specialist-banner strong { font-size: 14px; }
.specialist-banner p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ===== RESUBMIT CTA IN DENIED ===== */
.ad-resubmit {
  margin-top: 16px; padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,184,46,0.06), rgba(37,244,238,0.05));
  border: 1px solid rgba(0,184,46,0.2);
}
.ad-resub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(135deg,#00b82e,#00b82e); color: #fff;
  font-size: 11px; font-weight: 700; margin-bottom: 10px;
}
.ad-resub-text { font-size: 13px; color: var(--text); margin-bottom: 12px; line-height: 1.5; }

/* ===== CHAT AVATAR / HEADER ===== */
.chat-avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#00b82e,#00b82e); color:#fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.chat-avatar .chat-online-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #16c784; border: 2px solid var(--card);
}
.chat-badge-verified {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan); color: #fff; border-radius: 50%;
  width: 14px; height: 14px; font-size: 9px; margin-left: 4px;
}
.chat-msg { display: flex; flex-direction: column; margin-bottom: 10px; max-width: 82%; }
.chat-msg-user { align-self: flex-end; align-items: flex-end; }
.chat-msg-agent { align-self: flex-start; align-items: flex-start; }
.chat-seen { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.chat-seen::before { content: "✓✓ "; color: var(--cyan); font-weight: 700; }

/* ===== SHIPPING STATUS ===== */
.shipping-status{background:rgba(22,199,132,.08);border:1px solid rgba(22,199,132,.35);border-radius:14px;padding:14px;margin-top:14px}
.shipping-status .ss-head{display:flex;align-items:center;gap:8px;color:#16c784;margin-bottom:8px;font-size:14px}
.shipping-status .ss-line{margin:3px 0;font-size:13px;opacity:.85;line-height:1.45}

/* Review modal */
.review-summary { margin-top:14px; background:#f7f7f8; border-radius:12px; padding:10px 14px; }
.review-summary .rs-row { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; }
.review-summary .rs-k { color:#666; }
.review-summary .rs-v { color:#111; font-weight:600; }
.review-docs { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.review-docs .rd-item { background:#f7f7f8; border-radius:12px; padding:10px; text-align:center; }
.review-docs .rd-label { font-size:12px; color:#666; margin-bottom:6px; text-transform:uppercase; letter-spacing:0.5px; }
.review-docs .rd-thumb { width:100%; height:90px; background:#e5e5e7; border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.review-docs .rd-thumb img { width:100%; height:100%; object-fit:cover; }
.review-docs .rd-name { font-size:11px; color:#333; margin-top:6px; word-break:break-all; }

/* ===== STATUS TRACKER ===== */
.status-tracker{background:#fff;border:1px solid #ececec;border-radius:14px;padding:16px 14px;margin-bottom:14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.st-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.st-title{font-size:14px;font-weight:700;color:#161823}
.st-stage{font-size:12px;font-weight:600;color:#00b82e;background:rgba(0,184,46,.08);padding:3px 9px;border-radius:999px}
.st-step{display:flex;gap:12px;position:relative;padding-bottom:16px}
.st-step:last-child{padding-bottom:0}
.st-step:not(:last-child)::before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:#ececec}
.st-step.done:not(:last-child)::before{background:#22c55e}
.st-dot{width:26px;height:26px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#f1f1f2;color:#9a9a9f;border:2px solid #ececec}
.st-step.done .st-dot{background:#22c55e;border-color:#22c55e;color:#fff}
.st-step.active .st-dot{background:#00b82e;border-color:#00b82e;color:#fff;animation:stPulse 1.6s infinite}
.st-step.failed .st-dot{background:#dc2626;border-color:#dc2626;color:#fff}
@keyframes stPulse{0%,100%{box-shadow:0 0 0 0 rgba(0,184,46,.35)}50%{box-shadow:0 0 0 7px rgba(0,184,46,0)}}
.st-body{flex:1;min-width:0}
.st-name{display:block;font-size:13.5px;font-weight:600;color:#161823}
.st-sub{display:block;font-size:12px;color:#77777b;margin-top:2px;line-height:1.35}
.st-step.pending .st-name{color:#9a9a9f}
.st-tag{display:inline-block;margin-top:5px;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px}
.st-step.done .st-tag{background:rgba(34,197,94,.12);color:#16a34a}
.st-step.active .st-tag{background:rgba(0,184,46,.1);color:#00b82e}
.st-step.failed .st-tag{background:rgba(220,38,38,.1);color:#dc2626}
.st-step.pending .st-tag{background:#f4f4f5;color:#9a9a9f}

/* ===== STRICTER DOC VALIDATION ===== */
.id-field-hint{display:block;font-size:11.5px;color:#77777b;margin-top:5px}
.id-check{display:flex;gap:9px;align-items:flex-start;margin:12px 0 4px;font-size:12.5px;color:#4b4b52;line-height:1.4;cursor:pointer}
.id-check input{width:17px;height:17px;flex-shrink:0;margin-top:1px;accent-color:#00b82e}
.id-checklist{display:none;flex-direction:column;gap:6px;background:#fff5f6;border:1px solid #ffd4dc;border-radius:10px;padding:10px 12px;margin:10px 0 2px}
.id-checklist.show{display:flex}
.id-cl-item{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.35}
.id-cl-item.ok{color:#16a34a}
.id-cl-item.fail{color:#dc2626}
.id-cl-item svg{flex-shrink:0;margin-top:1px}

/* ===== LIVE SUPPORT REVAMP ===== */
.live-support { padding: 0 !important; }
.chat-live { margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; background: linear-gradient(180deg, rgba(37,244,238,0.03), transparent 40%); }
.chat-header-live { padding: 12px 16px; gap: 12px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.chat-avatar-lg { width: 44px; height: 44px; font-size: 15px; letter-spacing: 0.5px; }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-actions { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,184,46,0.12); border: 1px solid rgba(0,184,46,0.35); }
.chat-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #00b82e; box-shadow: 0 0 0 0 rgba(0,184,46,0.7); animation: livePulse 1.6s infinite; }
.chat-live-label { font-size: 10px; font-weight: 800; color: #00b82e; letter-spacing: 1px; }
@keyframes livePulse { 0%{box-shadow:0 0 0 0 rgba(0,184,46,0.7)} 70%{box-shadow:0 0 0 8px rgba(0,184,46,0)} 100%{box-shadow:0 0 0 0 rgba(0,184,46,0)} }
.chat-encryption-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 11px; color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.04); }
.chat-live .chat-window { max-height: none; min-height: 340px; height: 46vh; padding: 18px 14px; }

/* System / event bubbles */
.chat-event { align-self: center; max-width: 90%; text-align: center; font-size: 11px; color: rgba(255,255,255,0.55); padding: 4px 10px; background: rgba(255,255,255,0.04); border-radius: 999px; margin: 6px 0; }
.chat-joined { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #16c784; padding: 4px 10px; background: rgba(22,199,132,0.08); border: 1px solid rgba(22,199,132,0.25); border-radius: 999px; margin: 6px 0; }
.chat-joined .dot { width: 6px; height: 6px; border-radius: 50%; background: #16c784; }

/* Read receipts: sent (✓) / delivered (✓✓) / seen (✓✓ cyan) */
.chat-seen { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 3px; padding: 0 4px; }
.chat-seen::before { content: "✓ "; color: rgba(255,255,255,0.45); font-weight: 700; }
.chat-seen[data-state="delivered"]::before { content: "✓✓ "; color: rgba(255,255,255,0.55); }
.chat-seen[data-state="seen"] { color: var(--cyan); }
.chat-seen[data-state="seen"]::before { content: "✓✓ "; color: var(--cyan); }

/* FAQ collapsible */
.faq-collapsible { margin: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.02); overflow: hidden; }
.faq-collapsible > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.faq-collapsible > summary::-webkit-details-marker { display: none; }
.faq-collapsible[open] > summary { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-collapsible > summary svg { color: var(--cyan); }
.faq-collapsible .faq-list { padding: 6px 12px 12px; }

/* Chip: tighten */
.chat-live .chat-suggestions { padding: 10px 12px; }
.chat-live .chat-chip { font-size: 12px; padding: 7px 12px; }

/* ===== RESUBMIT REASON ===== */
.resub-reason{display:none;flex-direction:column;gap:8px;background:#fff5f6;border:1px solid #ffd4dc;border-radius:12px;padding:12px 14px;margin:0 0 12px}
.resub-reason.show{display:flex}
.resub-reason .rr-title{display:flex;align-items:center;gap:8px;font-weight:700;color:#b91c1c;font-size:14px}
.resub-reason .rr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.resub-reason .rr-list li{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#3f1015;line-height:1.4}
.resub-reason .rr-list li::before{content:"";flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#dc2626;margin-top:7px}
.resub-reason .rr-hint{font-size:12px;color:#6b1420;background:#ffe4e8;border-radius:8px;padding:8px 10px}

/* ===== LIVE PRE-CHECK ===== */
.id-precheck{display:none;margin-top:8px;background:#f8f9fb;border:1px solid #e6e8ee;border-radius:10px;padding:10px 12px;font-size:12.5px}
.id-precheck.show{display:block}
.id-precheck .pc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.id-precheck .pc-head strong{font-size:13px;color:#111}
.id-precheck .pc-badge{font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;letter-spacing:.02em;text-transform:uppercase}
.id-precheck .pc-badge.good{background:#dcfce7;color:#15803d}
.id-precheck .pc-badge.warn{background:#fef3c7;color:#a16207}
.id-precheck .pc-badge.bad{background:#fee2e2;color:#b91c1c}
.id-precheck .pc-badge.check{background:#e0e7ff;color:#4338ca}
.id-precheck .pc-row{display:grid;grid-template-columns:88px 1fr 42px;align-items:center;gap:8px;padding:4px 0}
.id-precheck .pc-row .pc-k{color:#4b5563;font-size:12px}
.id-precheck .pc-row .pc-v{font-weight:700;text-align:right;font-size:12px}
.id-precheck .pc-bar{position:relative;height:6px;border-radius:6px;background:#e5e7eb;overflow:hidden}
.id-precheck .pc-bar>span{position:absolute;left:0;top:0;bottom:0;border-radius:6px;transition:width .3s ease;background:linear-gradient(90deg,#fbbf24,#16c784)}
.id-precheck .pc-bar.bad>span{background:linear-gradient(90deg,#f87171,#dc2626)}
.id-precheck .pc-bar.warn>span{background:linear-gradient(90deg,#fbbf24,#f59e0b)}
.id-precheck .pc-hint{margin-top:6px;font-size:11.5px;color:#6b7280}
.id-precheck .pc-hint.bad{color:#b91c1c;font-weight:600}

/* ===== REVIEW CHANGES ===== */
.review-changes{margin-top:12px;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:12px;padding:10px 14px}
.review-changes .rc-title{display:flex;align-items:center;gap:8px;font-weight:700;color:#15803d;font-size:13px;margin-bottom:6px}
.review-changes .rc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.review-changes .rc-list li{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:#064e3b;line-height:1.4}
.review-changes .rc-list li::before{content:"→";color:#15803d;font-weight:700;flex-shrink:0}
.review-changes.no-change{background:#f3f4f6;border-color:#e5e7eb}
.review-changes.no-change .rc-title{color:#374151}
.review-changes.no-change .rc-list li{color:#4b5563}
.review-changes.no-change .rc-list li::before{color:#9ca3af;content:"·"}

/* ===== ENLARGED REVIEW THUMBS + ZOOM ===== */
.review-docs-lg .rd-thumb{height:150px}
.rd-thumb-zoom{position:relative;padding:0;border:none;cursor:pointer;background:#e5e5e7}
.rd-thumb-zoom .rd-zoom-badge{position:absolute;bottom:6px;right:6px;display:inline-flex;align-items:center;gap:4px;background:rgba(17,17,17,0.78);color:#fff;font-size:11px;font-weight:600;padding:4px 8px;border-radius:999px;backdrop-filter:blur(4px)}
.rd-thumb-zoom:active{transform:scale(0.98)}

/* ===== REVIEW PRIVACY CHECKBOX ===== */
.review-privacy{margin:14px 2px 4px;background:#fff8f9;border:1px solid #ffd4dc;border-radius:10px;padding:10px 12px}
.review-privacy .rp-link{color:#00b82e;text-decoration:underline;font-weight:600}

/* ===== THUMBNAIL LIGHTBOX ===== */
.thumb-lightbox{position:fixed;inset:0;background:rgba(0,0,0,0.92);display:none;flex-direction:column;align-items:center;justify-content:center;z-index:9999;padding:20px;gap:14px}
.thumb-lightbox.open{display:flex}
.thumb-lightbox .tl-close{position:absolute;top:14px;right:14px;background:rgba(255,255,255,0.12);border:none;color:#fff;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.thumb-lightbox .tl-stage{max-width:100%;max-height:70vh;display:flex;align-items:center;justify-content:center}
.thumb-lightbox .tl-stage img{max-width:100%;max-height:70vh;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,0.5);object-fit:contain;background:#111}
.thumb-lightbox .tl-caption{color:#e5e7eb;font-size:13px}
.thumb-lightbox .tl-switch{display:flex;gap:8px}
.thumb-lightbox .tl-side{background:rgba(255,255,255,0.08);color:#fff;border:1px solid rgba(255,255,255,0.15);padding:8px 18px;border-radius:999px;font-weight:600;cursor:pointer;font-size:13px}
.thumb-lightbox .tl-side.active{background:#00b82e;border-color:#00b82e}

.btn-primary.btn-disabled,.btn-primary:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.2)}

/*

/* ===== IMAGE MARKERS (auto-suggestions) ===== */
.id-image { position: relative; }
.id-marker { position: absolute; inset: 0; width: 100%; height: 100%; max-height: 220px; pointer-events: none; z-index: 2; }
.id-image .id-image-actions { z-index: 3; }

/* Pre-check tips */
.id-precheck .pc-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;padding-top:8px;border-top:1px dashed #e5e7eb;font-size:11px;color:#4b5563}
.id-precheck .pc-legend span{display:inline-flex;align-items:center;gap:5px}
.id-precheck .pc-legend .lg-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.id-precheck .lg-red{background:#dc2626}
.id-precheck .lg-amber{background:#f59e0b}
.id-precheck .lg-cyan{background:transparent;border:1.5px dashed #25f4ee}
.id-precheck .pc-tips{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.id-precheck .pc-tip{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #e6e8ee;font-size:12px;line-height:1.35}
.id-precheck .pc-tip.warn{background:#fffbeb;border-color:#fde68a}
.id-precheck .pc-tip.bad{background:#fef2f2;border-color:#fecaca}
.id-precheck .pc-tip.good{background:#ecfdf5;border-color:#bbf7d0}
.id-precheck .pc-tip-ic{flex:0 0 22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f3f4f6;color:#374151}
.id-precheck .pc-tip.warn .pc-tip-ic{background:#fef3c7;color:#a16207}
.id-precheck .pc-tip.bad .pc-tip-ic{background:#fee2e2;color:#b91c1c}
.id-precheck .pc-tip.good .pc-tip-ic{background:#dcfce7;color:#15803d}
.id-precheck .pc-tip-body{display:flex;flex-direction:column;gap:2px}
.id-precheck .pc-tip-body strong{font-size:12px;color:#111}
.id-precheck .pc-tip-body span{color:#4b5563}

/* ===== ACESSIBILIDADE ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid #00b82e;
  outline-offset: 2px;
  border-radius: 6px;
}
.modal-sheet:focus { outline: none; }
.btn-icon:focus-visible,
.tl-close:focus-visible,
.tl-side:focus-visible,
.cs-item:focus-visible,
.rd-thumb-zoom:focus-visible,
.id-drop:focus-visible,
.chat-chip:focus-visible {
  outline: 3px solid #00b82e;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37,244,238,0.18);
}
.input-field:focus-visible,
.id-input-text:focus-visible,
.chat-input-row input:focus-visible {
  outline: 2px solid #00b82e;
  outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== CHAT DE SUPORTE — LEGIBILIDADE E CONTRASTE ===== */
.chat-live .chat-window,
.chat-window { background: #0e0e12; }

.chat-bubble {
  font-size: 15px;
  line-height: 1.5;
  padding: 11px 15px;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.chat-msg-agent .chat-bubble {
  background: #24242c;
  border: 1px solid rgba(255,255,255,0.14);
  color: #f4f4f6;
}
.chat-msg-agent .chat-bubble strong { color: #00b82e; }
.chat-msg-user .chat-bubble {
  background: #00b82e;
  border: 1px solid #ff466a;
  color: #ffffff;
}
.chat-msg-user .chat-bubble strong { color: #fff; text-decoration: underline; }
.chat-time { font-size: 11px; color: rgba(255,255,255,0.72); }
.chat-status { color: rgba(255,255,255,0.8); font-size: 12.5px; }
.chat-encryption-note { color: rgba(255,255,255,0.75); font-size: 11.5px; }
.chat-event { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.08); font-size: 11.5px; }
.chat-seen { color: rgba(255,255,255,0.7); font-size: 11px; }
.chat-seen::before { color: rgba(255,255,255,0.7); }
.chat-seen[data-state="delivered"]::before { color: rgba(255,255,255,0.8); }

.chat-chip,
.chat-live .chat-chip {
  background: #14343a;
  color: #7ff6f1;
  border: 1px solid rgba(37,244,238,0.55);
  font-size: 13px;
  padding: 8px 13px;
  min-height: 36px;
}
.chat-chip:hover { background: #1c4a52; color: #b9fffb; }

/* Campo de escrita e botão enviar */
.chat-input-row {
  position: sticky;
  bottom: 0;
  z-index: 6;
  gap: 10px;
  padding: 12px;
  background: #16161c;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.chat-input-row input {
  background: #24242c;
  border: 1.5px solid rgba(255,255,255,0.28);
  color: #ffffff;
  font-size: 15px;
  padding: 12px 16px;
  min-height: 46px;
  caret-color: #00b82e;
}
.chat-input-row input::placeholder { color: rgba(255,255,255,0.62); }
.chat-input-row input:focus,
.chat-input-row input:focus-visible {
  background: #2b2b34;
  border-color: #00b82e;
  box-shadow: 0 0 0 3px rgba(37,244,238,0.22);
  outline: none;
}
.chat-send {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  background: #00b82e;
  border: 1px solid #ff5c7c;
  box-shadow: 0 2px 8px rgba(0,184,46,0.4);
}
.chat-send:hover { background: #ff466a; transform: scale(1.05); }
.chat-send:active { transform: scale(0.96); }

/* Superfície do chat sempre escura e coerente (o fundo da aba é claro) */
.chat-section.chat-live {
  background: #0e0e12;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  margin: 12px;
}
.chat-header-live {
  background: #1a1a21;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.chat-header-info h3 { color: #ffffff; font-size: 15.5px; }
.chat-live .chat-encryption-note { background: #15151b; }
.chat-live .chat-suggestions {
  background: #16161c;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Analysis empty state */
.analysis-empty { background:#fff; border:1px solid #ececec; border-radius:16px; padding:24px 20px; margin-bottom:14px; box-shadow:0 2px 12px rgba(0,0,0,.05); text-align:left; }
.analysis-empty .ae-icon { width:64px; height:64px; border-radius:16px; background:linear-gradient(135deg,#00b82e,#ff5b7f); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:14px; box-shadow:0 8px 22px rgba(0,184,46,.28); }
.analysis-empty .ae-title { font-size:19px; font-weight:800; color:#111118; margin:0 0 6px; }
.analysis-empty .ae-desc { font-size:14px; color:#4b5563; margin:0 0 14px; line-height:1.5; }
.analysis-empty .ae-list { list-style:none; padding:0; margin:0 0 6px; display:flex; flex-direction:column; gap:10px; }
.analysis-empty .ae-list li { display:flex; align-items:center; gap:12px; font-size:14px; color:#1f2937; background:#f7f7f9; border:1px solid #ececec; border-radius:12px; padding:10px 12px; }
.analysis-empty .ae-dot { width:26px; height:26px; border-radius:50%; background:#00b82e; color:#fff; font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.analysis-empty .ae-help { font-size:12px; color:#6b7280; margin:12px 0 0; text-align:center; }

/* Home card mirror */
.home-card-wrap { padding: 4px 0 0; }
.home-card-wrap .card-display { transform: scale(0.94); transform-origin: top center; margin: 0 auto; }
.home-card-meta { margin: 10px 0 0; font-size: 12px; color: var(--text-secondary); text-align: center; }
.hs-link { background: transparent; border: none; color: var(--pink); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; }
.hs-link:hover { text-decoration: underline; }

.st-live{display:inline-flex;align-items:center;gap:4px;background:#00b82e;color:#fff;font-size:9px;font-weight:800;padding:2px 6px;border-radius:6px;margin-right:6px;letter-spacing:.5px}
.st-live i{width:6px;height:6px;background:#fff;border-radius:50%;animation:stpulse 1.2s infinite}
@keyframes stpulse{0%,100%{opacity:1}50%{opacity:.3}}
.st-live-bar{position:relative;background:#f5f5f7;border-radius:10px;padding:10px 12px;margin:10px 0 12px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}
.st-live-bar::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--pct,0%);background:linear-gradient(90deg,rgba(0,184,46,.15),rgba(0,184,46,.05));transition:width .8s ease}
.st-live-label{position:relative;font-size:12px;color:#333;font-weight:600}
.st-live-count{position:relative;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-weight:700;color:#00b82e}
.st-updated{font-size:10px;color:#999;text-align:right;margin-top:8px}

/* Notifications panel */
.ht-notif { position: relative; }
.notif-panel { position: absolute; top: 48px; right: 12px; width: 300px; max-height: 380px; overflow-y: auto; background:#fff; color:#111; border-radius:14px; box-shadow:0 12px 36px rgba(0,0,0,.28); z-index:9999; padding:8px 0; }
.notif-panel .np-head { font-weight:700; padding:8px 14px 10px; border-bottom:1px solid #eee; font-size:14px; }
.notif-panel .np-list { padding:4px 0; }
.notif-panel .np-empty { padding:20px 14px; color:#666; font-size:13px; text-align:center; }
.notif-panel .np-item { padding:10px 14px; border-bottom:1px solid #f2f2f2; }
.notif-panel .np-item:last-child { border-bottom:none; }
.notif-panel .np-item.np-unread { background:#fff5f7; }
.notif-panel .np-title { font-weight:700; font-size:13px; margin-bottom:2px; }
.notif-panel .np-warning .np-title { color:#c81e40; }
.notif-panel .np-body { font-size:12px; color:#444; line-height:1.35; }
.notif-panel .np-when { font-size:11px; color:#888; margin-top:4px; }
.notif-dot { display:none; }

/* ==== Analysis step detail panels ==== */
.st-toggle{display:block;width:100%;text-align:left;background:none;border:0;padding:0 22px 0 0;position:relative;cursor:pointer;min-height:auto}
.st-toggle:focus-visible{outline:2px solid #00b82e;outline-offset:3px;border-radius:8px}
.st-caret{position:absolute;right:0;top:1px;font-size:13px;color:#9a9a9f;transition:transform .18s ease}
.st-toggle[aria-expanded="true"] .st-caret{transform:rotate(180deg);color:#00b82e}
.st-details{display:none;margin-top:10px;background:#f7f7f8;border:1px solid #ececec;border-radius:12px;padding:12px}
.st-details.open{display:block}
.st-step.active .st-details{background:rgba(0,184,46,.05);border-color:rgba(0,184,46,.22)}
.st-step.failed .st-details{background:rgba(220,38,38,.05);border-color:rgba(220,38,38,.2)}
.st-step.done .st-details{background:rgba(34,197,94,.05);border-color:rgba(34,197,94,.2)}
.st-det-lead{margin:0 0 10px;font-size:12.5px;line-height:1.45;color:#3d3d44}
.st-det-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.st-det-list li{display:flex;justify-content:space-between;gap:10px;font-size:12px;border-bottom:1px dashed rgba(0,0,0,.07);padding-bottom:6px}
.st-det-list li:last-child{border-bottom:0;padding-bottom:0}
.st-det-list li span{color:#77777b}
.st-det-list li strong{color:#161823;font-weight:600;text-align:right}

.st-det-note{margin:10px 0 0;font-size:11.5px;line-height:1.4;color:#77777b;background:#fff;border-radius:9px;padding:8px 10px;border-left:3px solid #00b82e}

/* Submission summary card */
.submission-summary{background:#fff;border:1px solid #eef0f2;border-radius:14px;padding:14px;margin:12px 12px 0;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ss-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ss-title{font-size:14px;font-weight:700;color:#161823}
.ss-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;background:#eef0f2;color:#555}
.ss-badge.inprog{background:#fff4e5;color:#b26a00}
.ss-badge.action{background:#fde8ea;color:#c2263a}
.ss-badge.done{background:#e6f7ec;color:#0f7a3a}
.ss-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.ss-item{display:flex;flex-direction:column;padding:8px;background:#f8f9fb;border-radius:10px;border:1px solid #eef0f2}
.ss-k{font-size:10.5px;color:#77777b;text-transform:uppercase;letter-spacing:.3px;font-weight:600}
.ss-v{font-size:12.5px;color:#161823;font-weight:600;margin-top:2px;word-break:break-word}
.ss-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.ss-thumb{background:#f8f9fb;border:1px dashed #d9dbe0;border-radius:10px;padding:8px;text-align:center}
.ss-thumb>span{display:block;font-size:10.5px;font-weight:700;color:#77777b;text-transform:uppercase;margin-bottom:4px}
.ss-th{font-size:11.5px;color:#161823;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Home balance card reflects selected card color/name */
.balance-card.color-black { background: linear-gradient(135deg,#1a1a2e 0%,#000 100%); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-pink, .balance-card.color-red { background: linear-gradient(135deg,#00b82e 0%,#c81f43 100%); box-shadow: 0 20px 40px rgba(0,184,46,0.3), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-cyan { background: linear-gradient(135deg,#00b82e 0%,#0891b2 100%); box-shadow: 0 20px 40px rgba(37,244,238,0.3), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-gold { background: linear-gradient(135deg,#f4c430 0%,#b8860b 100%); box-shadow: 0 20px 40px rgba(184,134,11,0.35), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-purple { background: linear-gradient(135deg,#a855f7 0%,#6b21a8 100%); box-shadow: 0 20px 40px rgba(107,33,168,0.35), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-green, .balance-card.color-emerald { background: linear-gradient(135deg,#10b981 0%,#065f46 100%); box-shadow: 0 20px 40px rgba(16,185,129,0.3), 0 0 10px rgba(0,0,0,0.5) inset; }
.balance-card.color-silver { background: linear-gradient(135deg,#e5e7eb 0%,#9ca3af 100%); box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 10px rgba(0,0,0,0.3) inset; }

.bc-holder-line { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; position:relative; z-index:1; margin-top:2px; }
.bc-hint { font-size:9px; letter-spacing:1px; text-transform:uppercase; color:rgba(255,255,255,0.7); }
.bc-holder { font-size:13px; font-weight:700; color:#fff; letter-spacing:1px; text-transform:uppercase; margin-top:2px; }

.home-card-edit-wrap { display:flex; justify-content:flex-end; margin-top:10px; margin-bottom:4px; padding:0 4px; }
.bc-edit-outside {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--text); border:2px solid var(--border);
  border-radius:999px; padding:10px 16px; font-size:13px; font-weight:700;
  cursor:pointer; box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:all var(--transition); min-height:44px;
}
.bc-edit-outside svg { color:var(--accent); }
.bc-edit-outside:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,184,46,0.12); }
.bc-edit-outside:focus-visible { outline:none; box-shadow:0 0 0 3px rgba(0,184,46,0.25); border-color:var(--accent); }

/* ===== CARD SAVE CONFIRM + UNDO ===== */
.cc-diff { display: flex; gap: 10px; margin: 4px 0 14px; }
.cc-col { flex: 1; background: #f5f5f8; border: 1px solid #e0e0e6; border-radius: 14px; padding: 12px; }
.cc-col.is-new { border-color: #00b82e; background: #fff5f7; }
.cc-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8e8ea0; margin-bottom: 8px; }
.cc-col.is-new .cc-tag { color: #00b82e; }
.cc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1a1a2e; margin-top: 6px; font-weight: 600; word-break: break-word; }
.cc-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e0e0e6; }
.cc-dot.color-black { background: linear-gradient(135deg,#1a1a2e,#000); }
.cc-dot.color-pink, .cc-dot.color-red { background: linear-gradient(135deg,#00b82e,#c81f43); }
.cc-dot.color-cyan { background: linear-gradient(135deg,#00b82e,#0891b2); }
.cc-dot.color-gold { background: linear-gradient(135deg,#f4c430,#b8860b); }
.cc-dot.color-purple { background: linear-gradient(135deg,#a855f7,#6b21a8); }
.cc-dot.color-green, .cc-dot.color-emerald { background: linear-gradient(135deg,#10b981,#065f46); }
.cc-dot.color-silver { background: linear-gradient(135deg,#e5e7eb,#9ca3af); }
.cc-actions { display: flex; gap: 10px; }
.cc-actions button { flex: 1; }

.undo-bar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: 92px; z-index: 999; width: min(360px, calc(100% - 32px));
  background: #1a1a2e; color: #fff; border-radius: 14px;
  padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.undo-bar.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.undo-bar span { flex: 1; font-size: 13px; font-weight: 600; }
.undo-bar button {
  background: transparent; border: 2px solid #00b82e; color: #00b82e;
  font-weight: 800; font-size: 13px; border-radius: 10px;
  min-height: 40px; padding: 0 14px; cursor: pointer;
}
.undo-bar button:active { background: #00b82e; color: #fff; }

/* ===== CREDIT RELEASE TO WALLET ===== */
.credit-release{background:#12121a;border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:16px;margin-bottom:14px;color:#fff}
.cr-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.cr-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#e8e8f0}
.cr-live{display:inline-flex;align-items:center;gap:5px;background:rgba(22,199,132,.14);color:#16c784;font-size:10px;font-weight:800;letter-spacing:.5px;padding:3px 7px;border-radius:999px}
.cr-live i{width:6px;height:6px;border-radius:50%;background:#16c784;animation:crPulse 1.4s infinite}
@keyframes crPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.7)}}
.cr-pct{font-size:12px;font-weight:800;color:#16c784}
.cr-amount{font-size:32px;font-weight:800;letter-spacing:-.5px;color:#16c784;line-height:1.1}
.cr-of{font-size:12px;color:#9a9aae;margin-bottom:10px}
.cr-track{height:10px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden}
.cr-fill{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#16c784,#00b82e);transition:width .6s ease}
.cr-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.cr-m{background:rgba(255,255,255,.05);border-radius:10px;padding:8px}
.cr-m span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:#8e8ea3}
.cr-m strong{display:block;font-size:13px;font-weight:700;margin-top:2px;color:#fff}
.cr-log{display:flex;flex-direction:column;gap:6px}
.cr-row{background:rgba(255,255,255,.04);border:1px solid transparent;border-radius:10px;overflow:hidden}
.cr-row.done{border-color:rgba(22,199,132,.28)}
.cr-row.active{border-color:rgba(37,244,238,.4);background:rgba(37,244,238,.07)}
.cr-row.pending{opacity:.6}
.cr-r-toggle{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;padding:9px 10px;cursor:pointer;text-align:left;color:inherit;font:inherit}
.cr-r-toggle:focus-visible{outline:2px solid #00b82e;outline-offset:-2px}
.cr-r-dot{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:rgba(255,255,255,.1);color:#cfcfdc}
.cr-row.done .cr-r-dot{background:#16c784;color:#04150e}
.cr-row.active .cr-r-dot{background:#00b82e;color:#04202a}
.cr-r-body{flex:1;min-width:0}
.cr-r-name{display:block;font-size:12.5px;font-weight:700;color:#fff}
.cr-r-desc{display:block;font-size:11px;color:#9a9aae}
.cr-r-right{text-align:right;flex:none}
.cr-r-val{display:block;font-size:12.5px;font-weight:800;color:#16c784}
.cr-r-tag{display:block;font-size:10px;color:#8e8ea3}
.cr-r-caret{flex:none;color:#9a9aae;transition:transform .2s ease}
.cr-row.open .cr-r-caret{transform:rotate(180deg)}
.cr-r-detail{padding:0 10px 10px;border-top:1px solid rgba(255,255,255,.08);margin-top:2px}
.cr-d-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.cr-d-cell{background:rgba(255,255,255,.05);border-radius:8px;padding:7px 8px}
.cr-d-cell span{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.4px;color:#8e8ea3}
.cr-d-cell strong{display:block;font-size:12px;font-weight:700;color:#fff;margin-top:2px}
.cr-d-bar{height:5px;border-radius:3px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:9px}
.cr-d-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#16c784,#00b82e);transition:width .5s ease}
.cr-d-ts{font-size:10.5px;color:#9a9aae;margin-top:7px}
.cr-note{font-size:11.5px;color:#9a9aae;margin-top:10px;line-height:1.45}


/* ============================================================
   LIVE SUPPORT CHAT (spec: live-support-chat.jsx)
   ============================================================ */
#tab-support { background: #f5f5f8; }
.lsc-wrap { flex: 1; min-height: 0; display: flex; padding: 0; background: #f5f5f8; }
.lsc {
  width: 100%; max-width: 420px; margin: 0 auto;
  background: #f5f5f8; display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}
.lsc * { box-sizing: border-box; }

@keyframes lscDotBounce { 0%,80%,100% { opacity:.3; transform:scale(.85);} 40% { opacity:1; transform:scale(1.15);} }
@keyframes lscFadeUp { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }
@keyframes lscLiveDot { 0%,100% { opacity:1;} 50% { opacity:.4;} }

.lsc-header {
  padding: 14px 16px; background: #fff; border-bottom: 1px solid #e0e0e6;
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.lsc-avatar { position: relative; flex-shrink: 0; width: 42px; height: 42px; }
.lsc-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.lsc-avatar-fallback {
  width: 100%; height: 100%; border-radius: 50%; background: #00b82e;
  display: none; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  position: absolute; inset: 0;
}
.lsc-online-dot { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.lsc-header-info { flex: 1; min-width: 0; }
.lsc-name-row { display: flex; align-items: center; gap: 5px; }
.lsc-name { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.lsc-status { font-size: 12.5px; color: #8e8ea0; margin-top: 1px; }
.lsc-status.is-typing { color: #079b47; font-weight: 500; }
.lsc-live {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,184,46,0.05); padding: 5px 12px;
  border-radius: 16px; border: 1px solid rgba(0,184,46,0.09);
}
.lsc-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #00b82e; animation: lscLiveDot 1.8s ease-in-out infinite; }
.lsc-live-label { font-size: 11.5px; font-weight: 700; color: #00b82e; letter-spacing: .6px; }

.lsc-encryption {
  padding: 7px 16px; display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #8e8ea0; background: #fff;
  border-bottom: 1px solid #e0e0e6; flex-shrink: 0;
}

.lsc-messages {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.lsc-messages::-webkit-scrollbar { width: 3px; }
.lsc-messages::-webkit-scrollbar-thumb { background: #e0e0e6; border-radius: 3px; }

.lsc-row { display: flex; align-items: flex-end; gap: 10px; }
.lsc-row-agent { opacity: 0; transform: translateY(10px); transition: all .35s cubic-bezier(.22,1,.36,1); }
.lsc-row-agent.is-in { opacity: 1; transform: translateY(0); }
.lsc-mini-avatar { position: relative; flex-shrink: 0; width: 34px; height: 34px; }
.lsc-mini-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.lsc-mini-avatar .lsc-avatar-fallback { font-size: 11px; }
.lsc-mini-avatar .lsc-online-dot { bottom: -1px; right: -1px; width: 10px; height: 10px; border: 2px solid #f5f5f8; }
.lsc-spacer { width: 34px; flex-shrink: 0; }

.lsc-bubble-agent {
  background: #fff; border: 1px solid #e0e0e6;
  border-radius: 4px 18px 18px 4px;
  padding: 11px 15px; max-width: 80%;
  color: #1a1a2e; font-size: 14px; line-height: 1.6;
  white-space: pre-line; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lsc-row-agent.is-first .lsc-bubble-agent { border-radius: 18px 18px 18px 4px; }

.lsc-row-user { display: flex; justify-content: flex-end; animation: lscFadeUp .3s ease-out; }
.lsc-bubble-user {
  background: #00b82e; border-radius: 18px 18px 4px 18px;
  padding: 11px 15px; max-width: 80%;
  color: #fff; font-size: 14px; line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,184,46,0.15);
}

.lsc-typing-bubble {
  background: #fff; border: 1px solid #e0e0e6;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 20px;
  display: flex; gap: 5px; align-items: center;
}
.lsc-typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8e8ea0; display: inline-block;
  animation: lscDotBounce 1.4s ease-in-out infinite;
}
.lsc-typing-bubble span:nth-child(2) { animation-delay: .2s; }
.lsc-typing-bubble span:nth-child(3) { animation-delay: .4s; }

.lsc-sys {
  display: flex; justify-content: center; padding: 6px 0;
}
.lsc-sys span {
  font-size: 12px; font-weight: 500; color: #079b47;
  background: rgba(37,184,179,0.06); padding: 4px 14px;
  border-radius: 16px; border: 1px solid rgba(37,184,179,0.12);
}
.lsc-time { font-size: 11px; color: #8e8ea0; padding: 2px 0 4px 46px; }

.lsc-options {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px 0 6px 46px;
  opacity: 0; transform: translateY(12px);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.lsc-options.is-in { opacity: 1; transform: translateY(0); }
.lsc-opt {
  background: #fff; border: 1.5px solid #e0e0e6; border-radius: 22px;
  padding: 8px 16px; color: #1a1a2e;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all .2s ease; font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lsc-opt:hover { border-color: #00b82e; color: #00b82e; box-shadow: 0 2px 12px rgba(0,184,46,0.12); }
.lsc-opt svg { opacity: .65; }

.lsc-input-row {
  padding: 10px 14px; background: #fff;
  border-top: 1px solid #e0e0e6;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.lsc-input {
  flex: 1; background: #f5f5f8; border-radius: 22px;
  padding: 10px 16px; font-size: 13.5px; color: #1a1a2e;
  border: 1px solid #e0e0e6; resize: none; outline: none;
  font-family: inherit; min-height: 40px; max-height: 120px;
}
.lsc-input::placeholder { color: #8e8ea0; }
.lsc-input:focus { border-color: #00b82e; background: #fff; box-shadow: 0 0 0 3px rgba(0,184,46,.12); }
.lsc-input:disabled { opacity: .65; cursor: not-allowed; }
.lsc-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: #00b82e; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 12px rgba(0,184,46,0.25);
  transition: transform .15s ease; flex-shrink: 0;
}
.lsc-send:hover { transform: scale(1.06); }

/* Live tracker connection status */
.st-conn{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;border-radius:10px;font-size:12px;font-weight:600;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#e8e8e8}
.st-conn-dot{width:8px;height:8px;border-radius:50%;background:#16c784;flex:none;box-shadow:0 0 0 0 rgba(22,199,132,.6);animation:stConnPulse 2s infinite}
.st-conn[data-status="reconnecting"]{background:rgba(255,176,32,.14);border-color:rgba(255,176,32,.45);color:#ffb020}
.st-conn[data-status="reconnecting"] .st-conn-dot{background:#ffb020;animation:stConnPulse 1s infinite}
.st-conn[data-status="error"]{background:rgba(0,184,46,.14);border-color:rgba(0,184,46,.5);color:#ff6b86}
.st-conn[data-status="error"] .st-conn-dot{background:#00b82e;animation:none}
.st-conn-text{flex:1}
.st-conn-retry{border:none;background:#00b82e;color:#fff;font-weight:700;font-size:12px;padding:8px 14px;min-height:36px;border-radius:8px;cursor:pointer}
.st-conn-retry:hover{filter:brightness(1.08)}
.st-conn-retry:focus-visible{outline:3px solid #fff;outline-offset:2px}
@keyframes stConnPulse{0%{box-shadow:0 0 0 0 currentColor}70%{box-shadow:0 0 0 6px transparent}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion: reduce){.st-conn-dot{animation:none}}

/* ===== Home: unified Bank Analysis status card (wallet-dashboard spec) ===== */
.hs-status-card{
  background:#fff;
  border:1px solid #e0e0e6;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.03);
}
.hsc-progress{height:3px;background:#f5f5f8;}
.hsc-progress-fill{
  height:100%;
  background:linear-gradient(90deg,#00b82e,#00b82ecc);
  border-radius:0 3px 3px 0;
  transition:width .6s ease;
}
.hsc-body{padding:18px 16px;}
.hsc-step{display:flex;gap:14px;position:relative;}
.hsc-step:last-child .hsc-text{padding-bottom:0;}
.hsc-line{
  position:absolute;left:17px;top:36px;width:2px;height:calc(100% - 16px);
  background:#e0e0e6;border-radius:1px;
}
.hsc-step.is-active .hsc-line,
.hsc-step.is-done .hsc-line{background:rgba(0,184,46,.30);}
.hsc-bullet{
  width:36px;height:36px;border-radius:50%;
  background:#f5f5f8;border:1.5px solid #e0e0e6;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;z-index:1;color:#b0b0be;
}
.hsc-step.is-active .hsc-bullet{
  background:rgba(0,184,46,.06);
  border-color:rgba(0,184,46,.4);
  color:#00b82e;
}
.hsc-step.is-done .hsc-bullet{
  background:rgba(0,184,46,.10);
  border-color:rgba(0,184,46,.35);
  color:#00b82e;
}
.hsc-text{flex:1;padding-bottom:20px;}
.hsc-title{font-size:13.5px;font-weight:600;color:#b0b0be;line-height:1.3;margin-top:2px;}
.hsc-step.is-active .hsc-title,
.hsc-step.is-done .hsc-title{color:#1a1a2e;}
.hsc-desc{font-size:12px;color:#8e8ea0;margin-top:3px;line-height:1.4;}

/* ===== HOME QUICK ID UPLOAD ===== */
.home-upload-card { padding: 16px; }
.hu-lead { font-size: 13px; line-height: 1.5; color: #3b3b46; margin: 0 0 14px; }
.hu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .hu-grid { grid-template-columns: 1fr; } }
.hu-slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hu-slot-label { font-size: 12px; font-weight: 800; color: #111; letter-spacing: .01em; }
.hu-drop {
  position: relative; display: block; border: 2px dashed #b9b9c6; border-radius: 14px;
  background: #fff; min-height: 118px; cursor: pointer; overflow: hidden; transition: border-color .18s, background .18s;
}
.hu-drop:hover, .hu-drop:focus-within { border-color: #00b82e; background: #fff5f7; }
.hu-drop.has-file { border-style: solid; border-color: #16c784; }
.hu-drop.is-error { border-color: #e0284a; background: #fff2f4; }
.hu-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.hu-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px; color: #4a4a57; font-size: 12px; font-weight: 700; text-align: center; padding: 8px;
}
.hu-image { display: none; }
.hu-drop.has-file .hu-empty { display: none; }
.hu-drop.has-file .hu-image { display: block; }
.hu-image img { width: 100%; height: 118px; object-fit: cover; display: block; }
.hu-meta { font-size: 11px; font-weight: 700; color: #16a06a; min-height: 14px; word-break: break-all; }
.hu-meta.is-error { color: #e0284a; }
.hu-remove {
  align-self: flex-start; background: #fff; border: 2px solid #111; border-radius: 999px;
  padding: 6px 12px; font-size: 11px; font-weight: 800; cursor: pointer; min-height: 34px;
}
.hu-help { font-size: 11px; color: #6b6b78; margin: 12px 0 4px; line-height: 1.5; }
.hu-error { font-size: 12px; font-weight: 700; color: #e0284a; margin: 0 0 10px; min-height: 16px; }
#hu-continue[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== HOME ANALYSIS CYCLE STATES ===== */
.cycle-card {
  margin-top: 14px; background: #fff; border: 1px solid #e6e6ee; border-left: 5px solid #8e8ea0;
  border-radius: 16px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.cycle-card.is-pending { border-left-color: #f5a524; }
.cycle-card.is-review { border-left-color: #2f6bff; }
.cycle-card.is-action { border-left-color: #e0284a; }
.cycle-card.is-done { border-left-color: #16c784; }
.cyc-top { display: flex; gap: 12px; align-items: flex-start; }
.cyc-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: #f1f1f6; color: #3b3b46;
}
.cycle-card.is-pending .cyc-icon { background: #fff4e0; color: #b26b00; }
.cycle-card.is-review .cyc-icon { background: #e8efff; color: #2f6bff; }
.cycle-card.is-action .cyc-icon { background: #ffe9ee; color: #e0284a; }
.cycle-card.is-done .cyc-icon { background: #e4f9ef; color: #109f68; }
.cyc-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cyc-pill {
  align-self: flex-start; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: #f1f1f6; color: #3b3b46;
}
.cycle-card.is-pending .cyc-pill { background: #fff4e0; color: #b26b00; }
.cycle-card.is-review .cyc-pill { background: #e8efff; color: #2f6bff; }
.cycle-card.is-action .cyc-pill { background: #ffe9ee; color: #e0284a; }
.cycle-card.is-done .cyc-pill { background: #e4f9ef; color: #109f68; }
.cyc-title { font-size: 15px; font-weight: 900; color: #111; line-height: 1.3; }
.cyc-msg { font-size: 13px; line-height: 1.55; color: #4a4a57; margin: 10px 0 0; }
.cyc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cyc-chip {
  font-size: 11px; font-weight: 800; color: #3b3b46; background: #f4f4f8;
  border: 1px solid #e6e6ee; border-radius: 999px; padding: 5px 10px;
}
.cyc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cyc-actions:empty { display: none; }
.cyc-btn {
  flex: 1 1 auto; min-height: 46px; border-radius: 12px; font-size: 13px; font-weight: 800;
  cursor: pointer; border: 2px solid #111; background: #fff; color: #111; padding: 0 14px;
}
.cyc-btn.primary { background: #00b82e; border-color: #00b82e; color: #fff; }
.cyc-btn:focus-visible { outline: 3px solid #00b82e; outline-offset: 2px; }

/* ==== Home cycle progress bar ==== */
.cyc-prog { margin-top: 14px; }
.cyc-prog-top, .cyc-prog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cyc-prog-label { font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #6b6b7b; }
.cyc-prog-pct { font-size: 15px; font-weight: 900; color: #111; font-variant-numeric: tabular-nums; }
.cyc-bar {
  position: relative; margin: 8px 0 8px; height: 12px; border-radius: 999px; overflow: hidden;
  background: #ededf3; border: 1px solid #e2e2ec;
}
.cyc-bar-fill {
  height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #00b82e, #ff7a5c);
  transition: width .9s cubic-bezier(.22,.9,.28,1);
  position: relative; overflow: hidden;
}
.cyc-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: cycShine 1.9s linear infinite;
}
.cycle-card.is-review .cyc-bar-fill { background: linear-gradient(90deg, #2f6bff, #6aa4ff); }
.cycle-card.is-action .cyc-bar-fill { background: linear-gradient(90deg, #e0284a, #ff6b85); }
.cycle-card.is-done .cyc-bar-fill { background: linear-gradient(90deg, #109f68, #37d99a); }
.cycle-card.is-done .cyc-bar-fill::after,
.cycle-card.is-pending .cyc-bar-fill::after { animation: none; opacity: 0; }
@keyframes cycShine { to { transform: translateX(100%); } }
.cyc-eta, .cyc-stage { font-size: 12px; font-weight: 800; color: #4a4a57; font-variant-numeric: tabular-nums; }
.cyc-stage { color: #8a8a99; }
.cycle-card.is-changed { animation: cycFlash .9s ease-out; }
@keyframes cycFlash {
  0% { box-shadow: 0 0 0 0 rgba(0,184,46,.45); transform: translateY(-2px); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cyc-bar-fill { transition: none; }
  .cyc-bar-fill::after { animation: none; }
  .cycle-card.is-changed { animation: none; }
}

/* ==== Home floating live support ==== */
.fab-support{
  position: fixed; right: 16px; bottom: 84px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border: none; border-radius: 999px;
  background: #00b82e; color: #fff; font-size: 14px; font-weight: 900; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,184,46,.4);
  transition: transform .18s ease, opacity .18s ease;
}
.fab-support:hover{ transform: translateY(-2px); }
.fab-support:focus-visible{ outline: 3px solid #111; outline-offset: 3px; }
.fab-support.is-hidden{ opacity: 0; pointer-events: none; transform: translateY(12px); }
.fab-dot{
  width: 9px; height: 9px; border-radius: 50%; background: #16c784; box-shadow: 0 0 0 0 rgba(22,199,132,.7);
  animation: fabPulse 1.8s infinite;
}
@keyframes fabPulse{ 70%{ box-shadow: 0 0 0 9px rgba(22,199,132,0);} 100%{ box-shadow: 0 0 0 0 rgba(22,199,132,0);} }
.fab-label{ white-space: nowrap; }
.fab-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; opacity: 0; transition: opacity .2s ease;
}
.fab-backdrop.is-open{ opacity: 1; }
.fab-sheet{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: #fff; color: #111;
  border-radius: 20px 20px 0 0; padding: 10px 16px 22px; max-height: 78vh; overflow-y: auto;
  box-shadow: 0 -12px 34px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.22,.9,.28,1);
}
.fab-sheet.is-open{ transform: translateY(0); }
.fab-sheet-grab{ width: 44px; height: 5px; border-radius: 999px; background: #dcdce6; margin: 4px auto 12px; }
.fab-sheet-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fab-sheet-head strong{ display: block; font-size: 15px; font-weight: 900; color: #111; }
.fab-sheet-sub{ display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6b6b7b; margin-top: 3px; }
.fab-live-dot{ width: 8px; height: 8px; border-radius: 50%; background: #16c784; display: inline-block; }
.fab-close{
  border: none; background: #f1f1f6; color: #111; width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.fab-sheet-hint{ font-size: 13px; color: #4a4a57; margin: 10px 0 6px; line-height: 1.5; }
.fab-group-title{
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: #8a8a99; margin: 14px 0 8px;
}
.fab-topic{
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  min-height: 50px; padding: 0 14px; margin-bottom: 8px; cursor: pointer;
  background: #fff; color: #111; border: 2px solid #e6e6ee; border-radius: 12px;
  font-size: 13px; font-weight: 800;
}
.fab-topic:hover{ border-color: #00b82e; background: #fff5f7; }
.fab-topic:focus-visible{ outline: 3px solid #00b82e; outline-offset: 2px; }
.fab-topic-ico{ display: grid; place-items: center; color: #00b82e; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce){
  .fab-support, .fab-sheet, .fab-backdrop{ transition: none; }
  .fab-dot{ animation: none; }
}

/* ===== Wallet credit notifications (Analysis) ===== */
.cr-notifs { margin-top: 14px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; }
.crn-head { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.crn-list { display: flex; flex-direction: column; gap: 8px; }
.crn-item { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; }
.crn-item.is-new { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.crn-ic { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.crn-body { flex: 1; min-width: 0; }
.crn-title { font-size: 13.5px; font-weight: 700; color: #111827; }
.crn-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.crn-amt { font-size: 13.5px; font-weight: 800; color: #15803d; white-space: nowrap; }
.crn-empty { font-size: 12.5px; color: #6b7280; }
.crn-title, .crn-sub { display: block; }

/* ===== Support chat: FAQ section ===== */
.lsc-faq { border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.lsc-faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: transparent; border: 0; padding: 12px 14px; cursor: pointer; min-height: 48px; }
.lsc-faq-title { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #111827; }
.lsc-faq-chev { color: #6b7280; transition: transform .2s ease; }
.lsc-faq.is-closed .lsc-faq-chev { transform: rotate(-90deg); }
.lsc-faq.is-closed .lsc-faq-body { display: none; }
.lsc-faq-body { padding: 0 14px 12px; }
.lsc-faq-hint { font-size: 12px; color: #4b5563; margin: 0 0 10px; }
.lsc-faq-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lsc-faq-item { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111827; border: 1.5px solid #d1d5db; border-radius: 999px; padding: 9px 13px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px; }
.lsc-faq-item:hover { border-color: #111827; }
.lsc-faq-item:focus-visible { outline: 3px solid #079b47; outline-offset: 2px; }
.lsc-faq-item svg { color: #079b47; flex: 0 0 auto; }

/* ===== Verification status timeline ===== */
.vstatus { background: #fff; border: 1px solid #e3e3e8; border-radius: 14px; padding: 14px; margin: 12px 0; color: #16161a; }
.vs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vs-title { font-size: 14px; font-weight: 700; color: #16161a; }
.vs-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.vs-badge .vs-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: vsPulse 1.4s infinite; }
.vs-badge.idle { background: #eef0f4; color: #55555f; }
.vs-badge.review { background: #e6f4ff; color: #0b64c4; }
.vs-badge.approved { background: #e6f8ee; color: #10784a; }
.vs-badge.rejected { background: #ffe9ec; color: #c0142f; }
@keyframes vsPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.vs-list { list-style: none; margin: 0; padding: 0; }
.vs-item { position: relative; display: flex; gap: 10px; padding: 0 0 14px 0; }
.vs-item:last-child { padding-bottom: 0; }
.vs-item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: #e3e3e8; }
.vs-item:last-child::before { display: none; }
.vs-mark { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: #d3d3da; border: 2px solid #fff; box-shadow: 0 0 0 2px #d3d3da; }
.vs-item.done .vs-mark { background: #10784a; box-shadow: 0 0 0 2px #10784a; }
.vs-item.active .vs-mark { background: #0b64c4; box-shadow: 0 0 0 2px #0b64c4; animation: vsPulse 1.4s infinite; }
.vs-item.rejected .vs-mark { background: #c0142f; box-shadow: 0 0 0 2px #c0142f; }
.vs-body { flex: 1; min-width: 0; }
.vs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vs-row strong { font-size: 13.5px; color: #16161a; }
.vs-time { font-size: 11.5px; font-weight: 600; color: #55555f; white-space: nowrap; }
.vs-body p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: #4a4a55; }
.vs-rel { display: inline-block; margin-top: 3px; font-size: 11px; color: #8a8a95; }
.vs-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e3e3e8; font-size: 11.5px; color: #6a6a76; }
.vs-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10784a; animation: vsPulse 1.4s infinite; }

/* ===== Chat guidance tip cards ===== */
.lsc-tip { margin: 6px 0 4px 40px; background: #f4f8ff; border: 1px solid #cfe0f7; border-left: 3px solid #0b64c4; border-radius: 12px; padding: 10px 12px; color: #16161a; max-width: 88%; }
.lsc-tip-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #0b64c4; margin-bottom: 6px; }
.lsc-tip-head svg { width: 14px; height: 14px; }
.lsc-tip ul { margin: 0; padding-left: 16px; }
.lsc-tip li { font-size: 12.5px; line-height: 1.5; color: #2a2a33; }

/* Document type picker */
.doc-type-picker{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.doc-type-picker .dtp-opt{
  flex:1 1 auto;min-height:44px;padding:10px 14px;border-radius:12px;
  border:2px solid #d5d7de;background:#fff;color:#161823;
  font-size:13px;font-weight:700;cursor:pointer;text-align:center;
  transition:border-color .15s,background .15s,color .15s;
}
.doc-type-picker .dtp-opt:hover{border-color:#161823}
.doc-type-picker .dtp-opt:focus-visible{outline:3px solid #00b82e;outline-offset:2px}
.doc-type-picker .dtp-opt.is-active{background:#161823;border-color:#161823;color:#fff}

/* ===== Saved draft banner (upload modal) ===== */
.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff8e6;
  border: 2px solid #f0b429;
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px;
  color: #1a1a1a;
}
.draft-banner .db-icon { color: #8a5a00; flex: 0 0 auto; }
.draft-banner .db-body { flex: 1 1 180px; min-width: 0; }
.draft-banner .db-body strong { display: block; font-size: 15px; color: #111; }
.draft-banner .db-body p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #4a3a12; }
.draft-banner .db-actions { display: flex; gap: 8px; flex: 1 1 100%; }
.draft-banner .db-btn {
  min-height: 44px;
  flex: 1 1 auto;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
}
.draft-banner .db-primary { background: #111; color: #fff; border: 2px solid #111; }
.draft-banner .db-ghost { background: #fff; color: #6b4d00; border: 2px solid #d9a92a; }
.draft-banner .db-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* restored file name row */
.id-filemeta{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:8px; padding:8px 10px; border-radius:10px;
  background:#f1f5f9; border:1px solid #cbd5e1; color:#0f172a;
  font-size:12px; font-weight:600;
}
.id-filemeta .fm-ico{
  background:#0f172a; color:#fff; border-radius:6px; padding:2px 6px;
  font-size:10px; letter-spacing:.04em;
}
.id-filemeta .fm-name{
  max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.id-filemeta .fm-size{ color:#475569; font-weight:600; }
.id-filemeta .fm-when{ color:#64748b; font-weight:500; margin-left:auto; }

/* ===== Document submission progress (restored on reopen) ===== */
.doc-progress{background:#fff;border:1px solid #d9dde5;border-radius:12px;padding:12px 14px;margin:10px 0 14px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.dp-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.dp-label{font-size:13px;font-weight:700;color:#101828}
.dp-pct{font-size:13px;font-weight:800;color:#0b7a4b}
.dp-bar{height:10px;border-radius:999px;background:#eef1f6;overflow:hidden;border:1px solid #e2e6ee}
.dp-fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#16c784,#0ea5e9);transition:width .6s cubic-bezier(.22,.61,.36,1)}
.dp-steps{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.dp-step{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#475467;background:#f4f6fa;border:1px solid #e2e6ee;border-radius:999px;padding:5px 10px}
.dp-step .dp-dot{width:9px;height:9px;border-radius:50%;background:#c4cbd8;flex:none}
.dp-step.done{color:#0b7a4b;background:#eafaf2;border-color:#bdead4}
.dp-step.done .dp-dot{background:#16c784}
.dp-step.partial{color:#8a5a00;background:#fff7e6;border-color:#ffe0a3}
.dp-step.partial .dp-dot{background:#f5a524}
.dp-resume{margin-top:10px;font-size:12px;font-weight:600;color:#8a5a00;background:#fff7e6;border:1px solid #ffe0a3;border-radius:9px;padding:8px 10px;line-height:1.4}
