
body {
  margin: 0;
  background: radial-gradient(circle at top, #ffffff, #ffffff);
  font-family: Inter, system-ui, sans-serif;
  color: #000000;
}

.status-bar {
  background: radial-gradient(circle at top, #005eb8, #005eb8);
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
  opacity: 0.8;
}

.screen {
  display: none;
  padding: 24px;
  max-width: 420px;
  margin: auto;
}

.screen.active {
  display: block;
}

.pill {
  background: #005eb8;
  border-radius: 0;
  padding: 20px 24px;
  margin: 0 -24px 20px -24px;
  width: calc(100% + 48px);
  text-align: center;
  position: relative;
  left: -24px;
  margin-top: -24px;
}

.p{
  text-align: center;
  font-size: 20px;
  color: #000;
}

.secure {
  background: rgba(33,197,142,0.15);
  color: #21c58e;
  text-align: center;
  padding: 8px;
  border-radius: 20px;
  margin-bottom: 20px;
}

h1 {
  text-align: center;
  font-size: 20px;
  color: #000;
}

/* Larger auth code display */
#authDisplay {
  font-size: 48px;
  letter-spacing: 8px;
  margin: 8px 0;
  font-weight: 700;
  line-height: 1;
}

.subtitle {
  text-align: center;
  color: #0c0c0c;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.card {
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

.visa { background:#2b62f0; }
.mc { background:#e0362f; }
.amex { background:#2f8de4; }
.union { background:#8b1d1d; }

.toggle {
  display: flex;
  margin: 20px 0;
}

.toggle button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 1px;
  border: 1px solid #929292;
  background: rgba(255,255,255,0.1);
  color: #080808;
}

.toggle .active {
  background: #2f8de4;
  color: #000;
}

.list .item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  padding: 14px;
  margin-bottom: 0px;
  border: 1px solid #929292;
  cursor: pointer;
}

.badge {
  background: #e0a800;
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  float: right;
}

.amount-box {
  background: rgb(255, 255, 255);
  border-radius: 18px;
  padding: 1px;
  text-align: center;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 20px 0;
}

.keypad button {
  padding: 20px;
  border-radius: 1px;
  background: rgba(255,255,255,0.08);
  color: #005eb8;
  border: #444;
  font-size: 27px;
}

.confirm {
  width: 100%;
  padding: 16px;
  border-radius: 1px;
  background: #005eb8;
  border: none;
  color: #fff;
  font-size: 16px;
}



/* CARD ENTRY */
.card-form {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 12px;
}

.card-logos {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.card-logos img {
  height: 26px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}

.card-form label {
  font-size: 13px;
  color: #9fb2c9;
}

.card-form input {
  width: 93%;
  padding: 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 15px;
}

.card-form .row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.pay-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  border: none;
  background: #005eb8;
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.pay-btn .pay-label{
  display:block;
  font-weight:600;
}

.pay-btn .pay-sub{
  display:block;
  font-size:12px;
  color: #cfe6ff; /* lighter contrast on blue */
  opacity: 0.95;
  line-height:1;
}

.secure-text {
  text-align: center;
  font-size: 12px;
  color: #9fb2c9;
  margin-top: 12px;
}

.card-form select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 15px;
  appearance: none;
}


/* SIGNATURE */
.signature-box {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  height: 260px;
  padding: 10px;

}

.signature-box canvas {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 2px solid #1c1d1d;
  border-radius: 12px;
  touch-action: none;
}

.sig-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sig-clear {
  flex: 1;
  padding: 16px;
  border: none;
  background: #444;
  color: #fff;
}


.processing-box {
  text-align: center;
  margin-top: 80px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid #21c58e;
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.receipt {
  background: #fff;
  color: #000;
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
}

.error-box {
  margin-top: 80px;
  background: #7f1f1f;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  font-size: 18px;
}

.input-active {
  outline: 2px solid #21c58e;
}

/* Footer text color */
.footer {
  color: #000000;
}

/* Amount display sizing */
#amount {
  font-size: 48px;
  font-weight: 700;
  color: #2c2c2c;
  display: inline-block;
  line-height: 1;
}


/* New Transaction button */
.new-tx-btn {
  width: 100%;
  margin-top: 20px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: bold;
  background: #ffffff;
  color: #005eb8;
  border: 2px solid #005eb8;
  cursor: pointer;
}

.new-tx-btn:active {
  background: #005eb8;
  color: #ffffff;
}


#cvc{
 margin-top:0px;
}

/* Secure login link (footer) */
.secure-login-link {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(0,94,184,0.95), rgba(0,119,212,0.95));
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 1000001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  opacity: 0.98;
}

.secure-login-link:hover,
.secure-login-link:focus {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  text-decoration: none;
  outline: none;
}

@media (max-width:420px){
  .secure-login-link { font-size: 12px; padding: 8px 12px; }
}

/* Admin confirmation modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000002;
}

.modal[aria-hidden="false"]{
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 18px;
  width: min(360px, 92%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-align: center;
}

.modal-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.modal-content p {
  margin: 0 0 14px 0;
  color: #444;
}

.admin-input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: #005eb8;
  box-shadow: 0 0 0 3px rgba(0,94,184,0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .confirm {
  padding: 8px 18px;
}

.modal-actions .back-btn {
  padding: 8px 18px;
}
