
html,
body{
  min-height:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

:root{
  --mt-font:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mt-bg1:#eef2f7;
  --mt-bg2:#f8fafc;
  --mt-text:#111827;
  --mt-muted:#6b7280;
  --mt-border:rgba(0,0,0,.08);
  --mt-card:rgba(255,255,255,.78);
}

body{
  background:linear-gradient(135deg,var(--mt-bg1),var(--mt-bg2));
  font-family:var(--mt-font);
  margin:0;
  color:var(--mt-text);
}

.mt-auth-page{
   min-height:100dvh;
  background:linear-gradient(135deg,var(--mt-bg1),var(--mt-bg2));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.mt-auth-page .mt-auth-wrap{
  width:100%;
  max-width:420px;
}

.mt-auth-page .mt-auth-card{
  background:var(--mt-card);
  backdrop-filter: blur(18px);
  border:1px solid rgba(0,0,0,.06);
  border-radius:26px;
  padding:28px;
  box-shadow:0 30px 60px rgba(0,0,0,.08);
}

.mt-auth-page .mt-auth-logo{
  text-align:center;
  margin-bottom:14px;
}
.mt-auth-page .mt-auth-logo img{
  height:34px;
  object-fit:contain;
}

.mt-auth-page .mt-auth-head{
  text-align:center;
  margin-bottom:16px;
}

.mt-auth-page .mt-auth-title{
  font-size:22px;
  font-weight:700;
  letter-spacing:-0.02em;
  margin:0;
}

.mt-auth-page .mt-auth-subtitle{
  margin-top:6px;
  font-size:14px;
  color:var(--mt-muted);
  line-height:1.35;
}

.mt-auth-page .mt-auth-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(0,0,0,.07);
  background:rgba(255,255,255,.75);
  color:#111827;
  margin-bottom:10px;
}

.mt-auth-page .mt-auth-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.mt-auth-page .mt-auth-field{}

.mt-auth-page .mt-auth-label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin-bottom:6px;
  color:#111827;
}

.mt-auth-page .mt-auth-input{
  position:relative;
}

.mt-auth-page .mt-auth-input i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#9ca3af;
  font-size:14px;
  pointer-events:none;
}

.mt-auth-page .mt-auth-input .form-control{
  width:100%;
  border-radius:14px;
  padding:14px 14px 14px 42px;
  font-size:15px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.92);
}

.mt-auth-page .mt-auth-input .form-control:focus{
  outline:none;
  border-color:rgba(56,189,248,.85);
  box-shadow:0 0 0 3px rgba(56,189,248,.18);
}

.mt-auth-page .mt-auth-hint{
  margin-top:7px;
  font-size:12px;
  color:#9ca3af;
}

.mt-auth-page .mt-auth-rec{
  margin-top:2px;
}

.mt-auth-page .mt-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:2px;
}

.mt-auth-page .mt-auth-check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:#111827;
  user-select:none;
  cursor:pointer;
}

.mt-auth-page .mt-auth-check input{
  width:16px;
  height:16px;
  margin:0;
}

.mt-auth-page .mt-auth-link{
  font-size:13px;
  font-weight:700;
  color:#111827;
  text-decoration:none;
}

.mt-auth-page .mt-auth-link:hover{
  text-decoration:underline;
}

.mt-auth-page .mt-auth-btn{
  width:100%;
  border:0;
  border-radius:16px;
  padding:14px 14px;

  font-size:15px;
  font-weight:700;

  background:#111827;
  color:#fff;

  cursor:pointer;
  transition: transform .12s ease, opacity .12s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.mt-auth-page .mt-auth-btn:hover{
  transform: translateY(-1px);
  opacity:.95;
}

.mt-auth-page .mt-auth-btn:active{
  transform: translateY(0);
}

.mt-auth-page .mt-auth-foot{
  text-align:center;
  margin-top:14px;
  font-size:13px;
  color:var(--mt-muted);
}

.mt-auth-page .mt-auth-foot a{
  color:#111827;
  font-weight:700;
  text-decoration:none;
}

.mt-auth-page .mt-auth-foot a:hover{
  text-decoration:underline;
}

/* small screens */
@media (max-width:420px){
  .mt-auth-page{ padding:18px; }
  .mt-auth-page .mt-auth-card{ padding:22px; border-radius:22px; }
}


/* Register: 2-col grid on desktop, 1-col on mobile */
.mt-auth-page .mt-auth-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

@media (max-width: 520px){
  .mt-auth-page .mt-auth-grid{
    grid-template-columns: 1fr;
  }
}

/* Checkbox rows, cleaner than bootstrap form-check */
.mt-auth-page .mt-auth-checkline{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  color:#111827;
  user-select:none;
  cursor:pointer;
  line-height:1.35;
}

.mt-auth-page .mt-auth-checkline input{
  width:16px;
  height:16px;
  margin-top:2px;
}

.mt-auth-page .mt-auth-checkline a{
  color:#111827;
  font-weight:900;
  text-decoration:none;
}

.mt-auth-page .mt-auth-checkline a:hover{
  text-decoration:underline;
}


.mt-copyright{
  text-align:center;
  margin-top:20px;
  font-size:12px;
  color:#9ca3af;
}







.mt-tip-page{
  font-family:'Inter',sans-serif;
  background:linear-gradient(135deg,#eef2f7,#f8fafc);
   min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.mt-tip-page .mt-tip-wrap{
  width:100%;
  max-width:420px;
}

.mt-tip-page .mt-tip-card{
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(18px);
  border-radius:26px;
  border:1px solid rgba(0,0,0,.06);
  padding:28px;
  box-shadow:0 30px 60px rgba(0,0,0,.08);
}

/* logo */
.mt-tip-page .mt-tip-card .mt-tip-logo{
  text-align:center;
  margin-bottom:20px;
}



.mt-tip-page .mt-tip-card .mt-tip-logo img{
  height:34px;
  object-fit:contain;
}

/* restaurant line */
.mt-tip-page .mt-tip-card .mt-tip-restaurant{
  text-align:center;
  font-size:14px;
  margin-bottom:12px;
  color:#374151;
}

/* title + subtitle */
.mt-tip-page .mt-tip-card .mt-tip-title{
  text-align:center;
  font-size:22px;
  font-weight:600;
  margin-bottom:6px;
  color:#111827;
}

.mt-tip-page .mt-tip-card .mt-tip-subtitle{
  text-align:center;
  font-size:14px;
  color:#6b7280;
  margin-bottom:24px;
}

/* amounts */
.mt-tip-page .mt-tip-card .mt-tip-amounts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:18px;
}

.mt-tip-page .mt-tip-card .mt-tip-amounts button{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:14px 0;
  font-weight:600;
  color:#111827;
  transition:all .2s ease;
}

.mt-tip-page .mt-tip-card .mt-tip-amounts button:hover{
  background:#f0f9ff;
  border-color:#38bdf8;
  color:#0369a1;
}

.mt-tip-page .mt-tip-card .mt-tip-amounts button.active{
  background:#e0f2fe;
  border-color:#38bdf8;
  color:#0369a1;
}

/* custom input */
.mt-tip-page .mt-tip-card .mt-tip-custom{
  margin-bottom:18px;
}

.mt-tip-page .mt-tip-card .mt-tip-custom input{
  border-radius:14px;
  padding:14px;
  font-size:16px;
}

/* pay button area */
.mt-tip-page .mt-tip-card .mt-tip-pay{
  margin-top:10px;
}

.mt-tip-page .mt-tip-card .mt-tip-pay .btn{
  width:100%;
  padding:14px;
  border-radius:16px;
  font-weight:600;
  font-size:16px;
}

.mt-tip-page .mt-tip-alert{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:500;
  border:1px solid rgba(239,68,68,.25);
  background:rgba(239,68,68,.08);
  color:#991b1b;
  display:none;
}

/* note */
.mt-tip-page .mt-tip-card .mt-tip-note{
  text-align:center;
  font-size:12px;
  color:#9ca3af;
  margin-top:18px;
  line-height:1.4;
}

.mt-tip-page .mt-tip-card .mt-tip-input{
  position:relative;
}

.mt-tip-page .mt-tip-card .mt-tip-input i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#9ca3af;
  font-size:14px;
  pointer-events:none;
}

.mt-tip-page .mt-tip-card .mt-tip-input input{
  padding-left:40px;
}

.mt-tip-page .mt-tip-card .mt-tip-hint{
  margin-top:8px;
  font-size:12px;
  color:#9ca3af;
  display:flex;
  align-items:center;
  gap:8px;
}

.mt-tip-page .mt-tip-card .mt-tip-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.mt-tip-page .mt-tip-card .mt-tip-note i{
  margin-top:2px;
  color:#9ca3af;
}

.mt-tip-page .mt-tip-tabs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:14px 0 18px;
}

.mt-tip-page .mt-powered-by{
  text-align:center;
  margin-top:20px;
}
.mt-tip-page .mt-powered-by img{
  max-width:300px;
  height:auto;
}

.mt-tip-page .mt-tip-tabs .mt-tab{
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.85);
  color:#111827;
  transition:all .2s ease;
}

.mt-tip-page .mt-tip-tabs .mt-tab:hover{
  transform:translateY(-1px);
  border-color:rgba(56,189,248,.7);
}

.mt-tip-page .mt-tip-tabs .mt-tab.is-active{
  background:#e0f2fe;
  border-color:#38bdf8;
  color:#0369a1;
}

.mt-checkout{ max-width:520px; margin:0 auto;  position:relative; }
.mt-checkout .mt-checkout-amount{
  font-size:56px; font-weight:700; text-align:center;
  letter-spacing:-1px; margin:6px 0 18px;
}

.mt-checkout #payment-element{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:14px;
}

.mt-checkout .mt-checkout-row{
  display:flex; gap:10px; align-items:flex-start;
  margin:14px 0 0;
  font-size:14px; color:#111;
  user-select:none;
}

.mt-checkout .mt-checkout-row input{
  margin-top:3px;
  width:16px; height:16px;
}

.mt-checkout .mt-checkout-row a{ color:#111; text-decoration:underline; }
.mt-checkout .mt-checkout-row i{ opacity:.55; margin-left:auto; margin-top:2px; }

.mt-checkout .mt-checkout-btn{
  width:100%;
  margin-top:16px;
  padding:14px 16px;
  border:0;
  border-radius:10px;
  font-weight:700;
  background:#4ec96f; /* your screenshot-ish green */
  cursor:pointer;
  color:#fff;
  transition:.15s ease;
}

.mt-checkout .mt-checkout-btn.is-enabled{
  background:#7FE29A; /* your screenshot-ish green */
  cursor:pointer;
}

.mt-checkout .mt-checkout-btn.is-enabled:hover{ filter:brightness(.97); }

.mt-checkout .mt-checkout-error{
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(220,38,38,.25);
  background:rgba(220,38,38,.06);
  color:#991b1b;
  font-size:13px;
}

.mt-checkout .mt-stripe-loading{
  position:absolute;
  inset:0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
}

.mt-checkout .mt-stripe-loading.is-hidden{
  display:none;
}

.mt-checkout .mt-stripe-loading-box{
  text-align:center;
  max-width: 340px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.mt-checkout .mt-stripe-loading-title{
  font-weight: 800;
  margin-top: 10px;
  color: #111827;
}

.mt-checkout .mt-stripe-loading-sub{
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.mt-checkout .mt-spinner{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.10);
  border-top-color: rgba(0,0,0,.55);
  margin: 0 auto;
  animation: mtspin .8s linear infinite;
}

@keyframes mtspin{
  to { transform: rotate(360deg); }
}


.mt-checkout-amount{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  background: rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;

  padding:14px 16px;
  margin:16px 0 18px;

  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.mt-checkout-amount .mt-checkout-amount-label{
  font-size:12px;
  color:#6b7280;
  font-weight:600;
}

.mt-checkout-amount .mt-checkout-amount-value{
  font-size:28px;
  font-weight:700;
  letter-spacing:-0.02em;
  color:#111827;
}

 .mt-checkout-amount .mt-checkout-amount-value span{
  font-size:16px;
  font-weight:600;
  color:#6b7280;
  margin-left:4px;
}

.mt-checkout-amount .mt-checkout-change{
  display:flex;
  align-items:center;
  gap:6px;

  font-size:13px;
  font-weight:600;
  text-decoration:none;

  padding:8px 10px;
  border-radius:10px;

  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);

  color:#111827;
  transition:all .15s ease;
}

.mt-checkout-amount .mt-checkout-change:hover{
  background:rgba(0,0,0,.08);
}



.mt-tip-page .mt-tip-card.mt-paid{
  padding: 18px;
}

.mt-tip-page .mt-paid-hero{
  text-align: center;
  margin-top: 8px;
  margin-bottom: 16px;
}

.mt-tip-page .mt-paid-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  margin-bottom: 10px;
}

.mt-tip-page .mt-paid-badge.is-success{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.22);
  color: #065f46;
}

.mt-tip-page .mt-paid-badge.is-processing{
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.20);
  color: #1d4ed8;
}

.mt-tip-page .mt-paid-badge.is-error{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.20);
  color: #991b1b;
}

.mt-tip-page .mt-paid-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color:#111827;
  margin: 0;
}

.mt-tip-page .mt-paid-subtitle{
  margin-top: 6px;
  color:#6b7280;
  font-size: 14px;
  line-height: 1.35;
}

.mt-tip-page .mt-paid-summary{
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  overflow: hidden;
}

.mt-tip-page .mt-paid-amount{
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.75));
}

.mt-tip-page .mt-paid-amount-label{
  font-size: 12px;
  font-weight: 700;
  color:#6b7280;
}

.mt-tip-page .mt-paid-amount-value{
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color:#111827;
  margin-top: 4px;
}

.mt-tip-page .mt-paid-amount-value span{
  font-size: 16px;
  font-weight: 700;
  color:#6b7280;
  margin-left: 6px;
}

.mt-tip-page .mt-paid-kv{
  padding: 12px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mt-tip-page .mt-paid-kv-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size: 13px;
}

.mt-tip-page .mt-paid-kv-row span{
  color:#6b7280;
  font-weight: 700;
}

.mt-tip-page .mt-paid-kv-row strong{
  color:#111827;
  font-weight: 900;
}

.mt-tip-page .mt-paid-ref{
  margin-top: 12px;
}

.mt-tip-page .mt-paid-actions{
  margin-top: 14px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap: wrap;
}

.mt-tip-page .mt-paid-footer{
  margin-top: 14px;
  text-align:center;
  font-size: 12px;
  color:#6b7280;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* spinner for processing badge */
.mt-tip-page .mt-paid-spinner{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(29,78,216,.25);
  border-top-color: rgba(29,78,216,.85);
  display:inline-block;
  animation: mtSpin .9s linear infinite;
}

@keyframes mtSpin{
  to { transform: rotate(360deg); }
}

.mt-footer{
  margin-top:40px;
  padding:20px 16px;
  text-align:center;
}

.mt-footer .mt-footer-copy{
  font-size:13px;
  color:#6b7280;
  margin-bottom:6px;
}

.mt-footer .mt-footer-links{
  font-size:13px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  color:#9ca3af;
}

.mt-footer .mt-footer-links a{
  text-decoration:none;
  color:#6b7280;
  font-weight:500;
  transition:.15s;
}

.mt-footer .mt-footer-links a:hover{
  color:#111827;
}

.mt-404-card{
  text-align:center;
}

.mt-404-card .mt-404-icon{
  font-size:42px;
  color:#38bdf8;
  margin-bottom:10px;
}

.mt-404-card .mt-404-code{
  font-size:64px;
  font-weight:900;
  letter-spacing:-2px;
  color:#111827;
}

.mt-404-card .mt-404-title{
  font-size:20px;
  font-weight:700;
  margin-top:6px;
  color:#111827;
}

.mt-404-card .mt-404-text{
  font-size:14px;
  color:#6b7280;
  margin-top:8px;
  line-height:1.4;
}

.mt-404-card .mt-404-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:18px;
}

/* Mobile styles for tip page */
@media (max-width:480px){
  .mt-tip-page{
    padding:16px;
  }

}



@media (max-width: 768px){
  .mt-auth-page,
  .mt-tip-page{
    min-height:100svh;
    align-items:flex-start;
    padding-top:max(18px, env(safe-area-inset-top));
    padding-bottom:max(18px, env(safe-area-inset-bottom));
  }

  .mt-tip-page .mt-tip-card{
    padding:28px 20px;
  }
}