:root{
  --navy:#000080;
  --gold:#C4A77D;
  --bg:#f5f7fb;
  --text:#111827;
  --muted:#6b7280;
  --danger:#b91c1c;
  --ok:#166534;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(135deg,#f7f8fc,#eef1f8);
  color:var(--text);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.card{
  background:#fff;
  width:100%;
  max-width:540px;
  border-radius:18px;
  padding:36px;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  border-top:6px solid var(--gold);
  text-align:center;
}
.wide{max-width:920px}
.logo-wrap{
  text-align:center;
  margin:0 auto 22px;
}
.logo{
  display:block;
  max-width:280px;
  width:100%;
  height:auto;
  margin:0 auto;
}
h1{
  margin:0 0 10px;
  color:var(--navy);
  font-size:28px;
}
p{
  color:var(--muted);
  line-height:1.5;
  margin-left:auto;
  margin-right:auto;
}
.pay-form{max-width:430px;margin:0 auto}
label{
  display:block;
  font-weight:700;
  margin:20px 0 8px;
  text-align:center;
}
input{
  width:100%;
  padding:14px;
  border:1px solid #d1d5db;
  border-radius:10px;
  font-size:16px;
  text-align:center;
}
button{
  background:var(--navy);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
  width:100%;
}
button:hover{background:var(--gold);color:#111827}
form button{margin-top:14px}
table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
}
th,td{
  text-align:left;
  padding:14px;
  border-bottom:1px solid #e5e7eb;
}
th{color:var(--navy)}
td form{margin:0}
td button{min-width:110px}
.error,.success{
  padding:14px;
  border-radius:10px;
  margin:18px 0;
}
.error{background:#fee2e2;color:var(--danger)}
.success{background:#dcfce7;color:var(--ok)}
.link{
  display:inline-block;
  margin-top:16px;
  color:var(--navy);
  font-weight:700;
  text-decoration:none;
}
.footer{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid #e5e7eb;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
@media(max-width:640px){
  body{padding:14px;align-items:flex-start}
  .card{padding:24px}
  .logo{max-width:240px}
  table,thead,tbody,tr,td,th{display:block}
  thead{display:none}
  tr{padding:12px 0;border-bottom:1px solid #e5e7eb}
  td{border:0;padding:7px 0;text-align:center}
  td::before{content:attr(data-label);display:block;font-weight:700;color:var(--navy);margin-bottom:3px}

}