:root {
  --bg-main: #081226;
  --bg-card: #0d1b34;
  --bg-surface: #142a49;
  --bg-surface-soft: #11223f;
  --line: #243e66;
  --line-strong: #325b90;
  --text-main: #eef4ff;
  --text-muted: #8da6c9;
  --accent: #4a88ff;
  --success: #3ad58d;
  --danger: #ff6f7a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 0%, #142a49, var(--bg-main) 55%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.payment-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(13, 27, 52, 0.98), rgba(8, 18, 38, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(150deg, #4a88ff, #2f56d6);
}

.brand-text h1 {
  margin: 0;
  font-size: 28px;
}

.brand-text p {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.merchant-card,
.timer-card,
.amount-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-surface-soft));
}

.merchant-card,
.amount-card,
.panel {
  padding: 14px;
  margin-top: 12px;
}

.timer-card {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timer-value {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}

.muted {
  color: var(--text-muted);
  margin: 0;
}

.merchant-name {
  margin: 2px 0;
  font-size: 24px;
  font-weight: 700;
}

.amount-value {
  margin: 4px 0;
  font-size: 44px;
  font-weight: 800;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.qr-wrapper {
  margin-top: 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  padding: 16px;
  background: #0a1428;
}

#qrImage {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.search {
  margin-top: 12px;
  display: block;
}

.search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text-main);
  background: #091a34;
  font: inherit;
}

.search input:focus {
  outline: 1px solid var(--accent);
}

.sbp-button {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.sbp-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sbp-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.bank-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.bank-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c1d3a;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  flex: 0 0 auto;
}

.bank-item:hover {
  border-color: var(--line-strong);
}

.bank-title {
  margin: 0;
  font-weight: 700;
}

.bank-sub {
  margin: 2px 0 0;
  color: var(--success);
  font-size: 14px;
}

.bank-arrow {
  color: var(--text-muted);
  font-size: 24px;
}

.status-message {
  margin: 14px 2px 2px;
  min-height: 18px;
  color: var(--danger);
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .payment-card {
    padding: 14px;
    border-radius: 16px;
  }

  .brand-text h1 {
    font-size: 24px;
  }

  .panel h2 {
    font-size: 24px;
  }

  .amount-value {
    font-size: 38px;
  }

  .timer-value {
    font-size: 30px;
  }
}
