.payment-page {
  max-width: 520px;
  margin: 1.75rem auto 2rem;
  padding: 1.5rem 1.75rem 1.75rem;
  background: rgba(15,23,42,0.98);
  border-radius: 1rem;
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

.payment-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-btc-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.payment-header-text h1 {
  font-size: 1.3rem;
  font-weight: 650;
}

.payment-header-text p {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.theme-switcher {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 20;
}

.timer-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.standalone-timer {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
}

.timer-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.clock-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #22c55e;
}

#countdown {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

.payment-card {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.left-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.qr-placeholder {
  width: 210px;
  height: 210px;
  border-radius: 0.75rem;
  border: 2px solid #1d4ed8;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-instruction {
  font-size: 0.8rem;
  color: #9ca3af;
}

.right-section {
  display: flex;
  align-items: flex-start;
}

.payment-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.detail-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.bitcoin-icon {
  font-size: 1.1rem;
}

.bitcoin-amount {
  font-weight: 600;
}

.network-dropdown {
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.35rem 0.75rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.bitcoin-address {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.copy-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
  cursor: pointer;
  position: relative;
}

.copy-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  border: 1px solid rgba(148,163,184,0.9);
}

.copy-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  border: 1px solid rgba(148,163,184,0.9);
  top: 7px;
  left: 7px;
}

.payment-status {
  margin-top: 1.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.85rem;
}

.payment-status.waiting {
  border-color: rgba(234,179,8,0.7);
  color: #facc15;
}

.payment-status.success {
  border-color: rgba(34,197,94,0.7);
  color: #4ade80;
}

.payment-status.error {
  border-color: rgba(248,113,113,0.8);
  color: #fca5a5;
}

.instructions {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.light-theme {
  background: #0b1120;
}
