* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafb;
  color: #003832;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

#app { min-height: 100vh; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafb;
  padding-bottom: 100px;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(248, 250, 251, 0.95);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.nav-back {
  font-size: 20px;
  color: #003832;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #003832;
}

.content {
  flex: 1;
  padding: 52px 0 40px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 56, 50, 0.08);
}

.input-group { margin-bottom: 16px; }

.input-label {
  font-size: 13px;
  color: #6f7977;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: #003832;
  background: #f8fafb;
  border: 1px solid #e6e8e9;
  border-radius: 12px;
  outline: none;
}

.input-field:focus { border-color: #003832; }

.input-field::placeholder { color: #9ba4a2; }

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #003832;
  color: #ffffff;
}

.btn-danger {
  background: #e06060;
  color: #fff;
}

.btn-success {
  background: #d4f5e9;
  color: #003832;
}

.btn-outline {
  background: transparent;
  color: #003832;
  border: 1px solid #003832;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
  width: auto;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pending { background: #fef3e2; color: #e67e22; }
.badge-verified { background: #d4f5e9; color: #1a6b4a; }
.badge-rejected { background: #fee2e2; color: #c0392b; }
.badge-none { background: #f0f2f4; color: #6f7977; }

.stat-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-item {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(0, 56, 50, 0.08);
}

.stat-num { font-size: 20px; font-weight: 700; color: #003832; }
.stat-label { font-size: 11px; color: #6a8a8a; margin-top: 4px; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 88%;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e6e8e9;
}

.modal-title { font-size: 17px; font-weight: 700; color: #003832; }
.modal-close { font-size: 20px; color: #6f7977; cursor: pointer; padding: 4px; }

.modal-body { padding: 16px; overflow-y: auto; flex: 1; max-height: 60vh; }

.modal-footer {
  display: flex;
  border-top: 1px solid #e6e8e9;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: #6f7977;
}

.modal-btn:first-child { border-right: 1px solid #e6e8e9; }
.modal-btn.confirm { color: #003832; }
.modal-btn.danger { color: #e06060; }

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #003832;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 2000;
  white-space: nowrap;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid #d2e5cd;
  border-top-color: #003832;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #6a8a8a;
  font-size: 14px;
  gap: 8px;
}

.empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  color: #6f7977;
  font-size: 14px;
}
.empty-icon { font-size: 40px; margin-bottom: 10px; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f2f4f5;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: #6f7977; }
.info-value { font-size: 13px; color: #003832; font-weight: 500; }

.amount-text { color: #003832; font-weight: 700; }

.separator { height: 1px; background: #e6e8e9; margin: 12px 0; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(248, 250, 251, 0.95);
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 4px;
}
.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; color: #6a8a8a; margin-top: 2px; }
.nav-item.active .nav-label { color: #003832; font-weight: 600; }

a { color: #003832; text-decoration: none; font-weight: 600; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { display: flex; gap: 8px; }
.text-small { font-size: 12px; color: #6a8a8a; }
.text-color-secondary { color: #6f7977; }
