* { 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: #FE2C55;
  --accent-hover: #e6264d;
  --cyan: #25B8B3;
  --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: relative;
  background: #fe2c55;
  border-radius: 20px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(254,44,85,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(254,44,85,0.08);
  border: 1px solid rgba(254,44,85,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(254,44,85,0.06);
  border: 1px solid rgba(254,44,85,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(254,44,85,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(254,44,85,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(254,44,85,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(254,44,85,0.15);
  border-left: 3px solid var(--accent);
  box-shadow: 0 1px 8px rgba(254,44,85,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(254,44,85,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(254,44,85,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(254,44,85,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;
  padding: 16px 32px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(254,44,85,0.2); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; }

.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); }
