* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f8fc;
  color: #0f172a;
}

.wrap {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 20px;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #123a63, #0b2b52);
  box-shadow: 0 14px 30px rgba(11, 43, 82, 0.35);
}


h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: -0.5px;
}

.header p {
  margin: 10px 0 0;
  color: #64748b;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.field { margin-bottom: 16px; }

label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.muted { font-weight: 500; color: #94a3b8; }

.grid2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
}

.prefix, .suffix {
  color: #64748b;
  font-weight: 700;
  user-select: none;
}

.input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  padding: 6px 0;
}

.btn {
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #0b2b52, #123a63);
  box-shadow: 0 16px 30px rgba(11, 43, 82, 0.25);
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.result-card {
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b2b52;
  color: #fff;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
}

.result-top {
  padding: 22px 24px;
}

.result-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  font-weight: 800;
}

.result-amount {
  font-size: 56px;
  font-weight: 900;
  margin-top: 10px;
  letter-spacing: -1px;
}

.result-sub { margin-top: 2px; opacity: 0.85; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  background: #fff;
  color: #0f172a;
}



.stat {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}


.stat-label {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
}
.stat-value {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;   
}

.note {
  background: #fff;
  color: #94a3b8;
  text-align: center;
  padding: 14px 18px 18px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .result-amount { font-size: 44px; }
}


.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0f172a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon--blue   { background: #e8f1ff; }
.stat-icon--yellow { background: #fff2cc; }
.stat-icon--green  { background: #dcfce7; }


.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] { display: block; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.modal-card {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 18px 14px;
  animation: modalPop 160ms ease-out;
}

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

.modal-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 6px 10px;
}

.modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #fee2e2;
  color: #991b1b;
}

.modal-title {
  font-weight: 900;
  color: #0f172a;
}

.modal-subtitle {
  margin-top: 2px;
  color: #64748b;
  font-size: 14px;
}

.modal-list {
  margin: 8px 6px 12px;
  padding-left: 18px;
  color: #0f172a;
}

.modal-list li {
  margin: 6px 0;
  color: #334155;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px;
}

.modal-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #123a63, #0b2b52);
  box-shadow: 0 12px 22px rgba(11, 43, 82, 0.25);
}

.modal-btn:active { transform: translateY(1px); }

/* --- Nice text pages (About/Privacy/etc.) --- */
.page-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-card h2 {
  margin: 18px 0 10px;
  font-size: 18px;
  color: #0f172a;
}

.page-card p, .page-card li {
  color: #334155;
  line-height: 1.65;
}

.page-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.footer {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  color: #64748b;
}

.footer a {
  color: #64748b;
  text-decoration: none;
}

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