* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #eef3f8;
  color: #132033;
}

.topbar {
  height: 76px;
  padding: 0 8%;
  background: #081827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}

.logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00d4ff, #1769ff);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #dbe9ff;
  text-decoration: none;
  font-size: 15px;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(0,212,255,.25), transparent 35%),
    linear-gradient(135deg, #081827, #102a43);
  color: white;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin: 18px 0;
}

.hero p {
  color: #c6d6e8;
  font-size: 18px;
  max-width: 680px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(0, 132, 255, .12);
  color: #1d7cff;
  border: 1px solid rgba(29, 124, 255, .25);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.hero .badge {
  color: #7ce7ff;
  border-color: rgba(124,231,255,.35);
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(135deg, #00b8ff, #1769ff);
  color: white;
}

.btn.secondary {
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}

.btn.full {
  width: 100%;
  margin-top: 22px;
}

.panel-card,
.info-card,
.form-card,
.side-box,
.summary-card,
.result-card,
.processing-card {
  background: white;
  color: #132033;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(8, 24, 39, .14);
}

.panel-card {
  padding: 28px;
  background: rgba(255,255,255,.1);
  color: white;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.15);
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.status-ok {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(25, 135, 84, .18);
  color: #7cffb0;
  font-weight: 800;
}

.grid-section {
  padding: 70px 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  padding: 28px;
}

.security {
  margin: 0 8% 70px;
  padding: 36px;
  background: #081827;
  color: white;
  border-radius: 26px;
}

.security p {
  color: #c6d6e8;
}

footer {
  padding: 30px 8%;
  background: #06111d;
  color: #b9c8d8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.page {
  padding: 55px 8%;
}

.page-title {
  max-width: 800px;
  margin-bottom: 35px;
}

.page-title h1,
.form-card h1 {
  font-size: 42px;
  margin: 14px 0 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  text-align: left;
  border: none;
  background: white;
  padding: 30px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 20px 55px rgba(8, 24, 39, .1);
  transition: .2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.icon {
  font-size: 38px;
}

.form-layout,
.checkout-layout {
  padding: 55px 8%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.form-card,
.side-box,
.summary-card {
  padding: 30px;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid #cfd9e5;
  border-radius: 12px;
  font-size: 16px;
  background: white;
}

input[readonly] {
  background: #f3f6fa;
}

.warning {
  margin: 20px 0;
  padding: 16px;
  background: #fff4d7;
  border: 1px solid #ffe2a1;
  color: #765000;
  border-radius: 14px;
  font-weight: 700;
}

.summary-card p,
.receipt p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e7edf3;
  padding: 14px 0;
}

.processing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(0,212,255,.22), transparent 35%),
    #081827;
}

.processing-card {
  width: min(560px, 92%);
  padding: 42px;
  text-align: center;
}

.loader {
  width: 72px;
  height: 72px;
  border: 7px solid #d8e3ee;
  border-top-color: #1769ff;
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

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

.process-list {
  text-align: left;
  margin-top: 25px;
  background: #f4f7fb;
  padding: 20px;
  border-radius: 16px;
}

.process-list div {
  padding: 9px;
  color: #7a8797;
}

.process-list .active {
  color: #1769ff;
  font-weight: 900;
}

.result-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 40px 8%;
}

.result-card {
  width: min(720px, 100%);
  padding: 38px;
  text-align: center;
}

.result-icon {
  width: 84px;
  height: 84px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 44px;
  font-weight: 900;
}

.result-card.approved .result-icon {
  background: #d7f8e5;
  color: #198754;
}

.result-card.rejected .result-icon {
  background: #ffe0e3;
  color: #dc3545;
}

.result-card.pending .result-icon {
  background: #fff4d7;
  color: #b77900;
}

.receipt {
  margin: 25px 0;
  text-align: left;
  background: #f6f9fc;
  padding: 20px;
  border-radius: 18px;
}

@media (max-width: 850px) {
  .hero,
  .grid-section,
  .service-grid,
  .form-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  footer {
    flex-direction: column;
  }
}
