* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  color: #222;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

/* Order page */
body.order-page {
  min-height: 100vh;
  margin: 2% 5% 0;
  color: #212529;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  background-image: url("assets/gtc-background.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.order-main-card {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  margin: auto;
  padding: 2.5%;
  overflow: auto;
  background: #fff;
  border: 2px solid #c0c0c0;
  border-radius: 5px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.register-box {
  width: 100%;
  padding: 20px 40px;
}

.brand-header {
  text-align: center;
}

.brand-header h1 {
  margin: 0 0 8px;
  font-size: 0;
  line-height: 1.2;
}

.brand-logo {
  display: inline-block;
  width: 100px;
  height: auto;
}

.brand-subtitle {
  margin: 0 0 48px;
  color: #6c757d;
  font-size: 16px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.payment-methods {
  min-width: 0;
  padding: 0;
  border: 0;
}

.payment-methods legend,
.form-group > label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #212529;
  font-size: 16px;
  font-weight: 400;
}

.payment-methods legend span {
  color: green;
}

.channel-list {
  position: relative;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: stretch;
}

.channel-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  margin: 0 10px 10px 0;
  padding: 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 38px;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  box-shadow: 2px 2px 2px #888;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.channel-button:hover {
  color: #333;
  border-color: #959595;
}

.channel-button:active {
  opacity: 0.82;
}

.channel-button:focus-within {
  outline: 2px solid rgba(30, 159, 255, 0.45);
  outline-offset: 2px;
}

.channel-button input {
  width: 13px;
  height: 13px;
  margin: 0 5px 0 0;
  accent-color: #1677ff;
}

.channel-button img {
  flex: 0 0 auto;
  margin: 0 3px 5px 0;
  object-fit: contain;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 6px 12px;
  color: #495057;
  font-size: 16px;
  line-height: 1.5;
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  outline: none;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.amount-description {
  color: red;
}

.form-footer {
  margin: 16px 0;
}

.submit-button {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 16px 0;
  padding: 6px 12px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  background: #0b56a5;
  border: 1px solid #0b56a5;
  border-radius: 4px;
}

.submit-button:hover {
  background: #084984;
  border-color: #084984;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.notice-card {
  margin-top: 8px;
}

.notice-body h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.notice-body p {
  margin: 0 0 16px;
}

.notice-body p:last-child {
  margin-bottom: 0;
}

.notice-body .notice-critical {
  color: red;
  font-size: large;
  font-weight: 700;
}

/* Original-style safety modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 19891013;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal.is-open {
  display: flex;
}

.modal-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 30px));
  min-width: 240px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
  box-shadow: 1px 1px 50px rgba(0, 0, 0, 0.3);
  animation: modal-pop 0.18s ease-out;
}

.modal-content {
  padding: 28px 36px 20px;
  color: green;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.modal-content p {
  margin: 0;
  text-indent: 2em;
}

.modal-content .danger-line {
  margin-top: 14px;
  color: red;
  text-indent: 0;
}

.modal-actions {
  padding: 10px 15px 16px;
  text-align: center;
  background: #f8f8f8;
  border-top: 1px solid #eee;
}

.modal-actions button {
  min-height: 38px;
  padding: 0 18px;
  color: green;
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
}

/* Payment page — matched to c2cCheckout.css */
.page-checkout {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #0d3582;
}

.interface-wrapper {
  max-width: 500px;
  margin: 20px auto;
  padding: 0 0 10px;
  background: #2855ac;
  border: 1px solid #fff;
  border-radius: 30px;
  box-shadow: 0 1px 6px 0 rgba(117, 117, 117, 0.25);
}

.interface-header {
  position: relative;
  width: 100%;
  min-height: 160px;
  padding: 30px;
  color: #fff;
  background-image: linear-gradient(to bottom, #1143a3, #2e56ad, #4468b6, #5a7bbf, #708ec7);
  border-radius: 30px;
}

.interface-header h1 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.interface-body {
  position: relative;
  width: 100%;
}

.interface-wrapper .featured {
  margin: -40px 20px 0;
  padding: 10px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(117, 117, 117, 0.25);
}

.interface-body .highlight {
  color: #e9490a;
  font-size: 18px;
  font-weight: 900;
}

#timeid {
  font-size: 12px;
}

.usdt-amount {
  overflow-wrap: anywhere;
}

.amount-red {
  color: red;
}

.interface-body .scanqr {
  margin: 10px 20px;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(117, 117, 117, 0.25);
}

.qr-holder {
  position: relative;
  display: inline-block;
  width: 130px;
  height: 130px;
}

#qrCanvas {
  display: block;
  width: 130px;
  height: 130px;
  image-rendering: pixelated;
}

.qr-demo {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 1px 3px;
  color: #a71919;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #a71919;
  transform: translate(-50%, -50%);
}

.address {
  position: relative;
  padding: 5px 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  padding: 0;
  margin: 0 0 0 2px;
  vertical-align: middle;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.copy-button img {
  display: block;
}

.copy-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 3;
  display: none;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  background: #16b777;
  border-radius: 2px;
}

.copy-tip::after {
  position: absolute;
  top: 100%;
  right: 10px;
  content: "";
  border: 5px solid transparent;
  border-top-color: #16b777;
}

.copy-tip.is-visible {
  display: block;
}

.security-featured {
  margin-top: 8px !important;
}

.interface-footer {
  color: #fff;
}

.d-flex {
  display: flex;
}

.d-inline-block {
  display: inline-block;
}

.mr-3 {
  margin-right: 16px;
}

.mb-0 {
  margin: 0;
}

.mb-3 {
  margin-bottom: 16px;
}

.align-self-center {
  align-self: center;
}

.text-center {
  text-align: center;
}

small {
  font-size: 80%;
  font-weight: 400;
}

.dev-watermark {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 20000000;
  padding: 4px 7px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  pointer-events: none;
  background: rgba(160, 25, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media screen and (max-width: 480px) {
  .interface-wrapper {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .interface-header {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel {
    animation: none;
  }
}
