.pay-page {
  min-height: 70vh;
  padding: 48px 16px;
  background: var(--bg-secondary, #f8f9fa);
}

.pay-container {
  max-width: 860px;
  margin: 0 auto;
}

.pay-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.pay-btc-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.pay-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text, #111);
  line-height: 1.2;
}

.pay-subtitle {
  font-size: 14px;
  color: var(--color-muted, #666);
  margin: 2px 0 0;
}

.pay-header-text {
  display: flex;
  flex-direction: column;
}

.pay-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.pay-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: payPulse 1.5s infinite;
}

.pay-dot-pending,
.pay-dot-unconfirmed {
  background: #f59e0b;
}
.pay-dot-paid {
  background: #22c55e;
  animation: none;
}
.pay-dot-expired {
  background: #ef4444;
  animation: none;
}
.pay-dot-underpaid {
  background: #f97316;
}
.pay-dot-no_address {
  background: #94a3b8;
  animation: none;
}

@keyframes payPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.pay-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

@media (max-width: 620px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.pay-qr {
  border-radius: 6px;
  display: block;
}

.pay-qr-hint {
  font-size: 12px;
  color: #888;
  margin: 0;
  text-align: center;
}

.pay-amount-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.pay-amount-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pay-amount-usd {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text, #111);
  line-height: 1.2;
}

.pay-amount-btc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #f7931a;
  font-weight: 600;
  margin-top: 6px;
}

.pay-amount-btc-icon {
  width: 18px;
  height: 18px;
}

.pay-address-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.pay-address-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.pay-address-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-address {
  font-size: 12px;
  font-family: monospace;
  background: #f4f6f8;
  padding: 8px 10px;
  border-radius: 6px;
  flex: 1;
  word-break: break-all;
  color: #111;
}

.pay-copy-btn {
  flex-shrink: 0;
  background: #f7931a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pay-copy-btn:hover {
  background: #e8841a;
}

.pay-address-warning {
  font-size: 11px;
  color: #ef4444;
  margin-top: 8px;
}

.pay-timer-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pay-timer-label {
  font-size: 13px;
  color: #888;
}

.pay-timer {
  font-size: 22px;
  font-weight: 700;
  font-family: monospace;
  color: var(--color-text, #111);
}

.pay-timer-expired {
  color: #ef4444;
}

.pay-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
}

.pay-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7931a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-progress-wrap {
  height: 3px;
  background: #f0f0f0;
  border-radius: 2px;
  margin: 16px 0;
  overflow: hidden;
}

.pay-progress-bar {
  height: 100%;
  background: #f7931a;
  border-radius: 2px;
  width: 0%;
}

.pay-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pay-link {
  font-size: 13px;
  color: #888;
  text-decoration: underline;
}

.pay-link:hover {
  color: #555;
}

.pay-status-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}

.pay-status-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.pay-status-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.pay-status-card p {
  color: #666;
  margin: 0 0 20px;
}

.pay-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pay-btn-primary {
  background: #f7931a;
  color: #fff;
}
.pay-btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.pay-success-overlay[hidden] {
  display: none !important;
}

.pay-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-success-modal {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
  width: 90%;
}

.pay-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  color: #22c55e;
  line-height: 1;
}

.pay-success-modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.pay-success-modal p {
  color: #666;
  margin: 0 0 20px;
  font-size: 15px;
}

.pay-success-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.thankyou-page {
  min-height: 70vh;
  padding: 48px 16px;
  background: var(--bg-secondary, #f8f9fa);
}

.thankyou-container {
  max-width: 700px;
  margin: 0 auto;
}

.thankyou-hero {
  text-align: center;
  margin-bottom: 32px;
}

.thankyou-check-wrap {
  margin-bottom: 16px;
}

.thankyou-check {
  width: 64px;
  height: 64px;
  animation: tyCheckIn 0.5s ease-out;
}

@keyframes tyCheckIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thankyou-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text, #111);
}

.thankyou-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.thankyou-order-card,
.thankyou-items-card,
.thankyou-shipping-card,
.thankyou-what-next {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.thankyou-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.thankyou-order-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.thankyou-order-no {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text, #111);
}

.thankyou-badge {
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.thankyou-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.thankyou-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.thankyou-meta-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
}

.thankyou-payment-method {
  display: flex;
  align-items: center;
  gap: 5px;
}

.thankyou-btc-icon {
  width: 16px;
  height: 16px;
}

.thankyou-tx-link {
  font-family: monospace;
  font-size: 13px;
  color: #f7931a;
}

.thankyou-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text, #111);
}

.thankyou-items {
  display: flex;
  flex-direction: column;
}

.thankyou-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.thankyou-item:last-child {
  border-bottom: none;
}

.thankyou-item-name {
  color: #333;
}
.thankyou-item-qty {
  color: #888;
  text-align: right;
}
.thankyou-item-price {
  font-weight: 600;
  text-align: right;
}

.thankyou-discount .thankyou-discount-val {
  color: #22c55e;
  font-weight: 600;
}

.thankyou-total {
  font-weight: 700;
  font-size: 16px;
  padding-top: 14px;
}

.thankyou-btc-row {
  font-size: 13px;
  color: #f7931a;
}

.thankyou-ship-name {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 15px;
}
.thankyou-ship-addr {
  color: #555;
  margin: 0 0 4px;
  font-size: 14px;
}
.thankyou-ship-phone {
  color: #888;
  margin: 0;
  font-size: 13px;
}

.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thankyou-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.thankyou-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7931a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thankyou-step-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.thankyou-step-body p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.thankyou-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.thankyou-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.thankyou-btn-primary {
  background: #f7931a;
  color: #fff;
}
.thankyou-btn-primary:hover {
  background: #e8e8e8;
  color: #333;
}
.thankyou-btn-secondary {
  background: #f0f0f0;
  color: #333;
}
.thankyou-btn-secondary:hover {
  background: #e0e0e0;
  color: #222;
}

.thankyou-support {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 0;
}

.thankyou-support a {
  color: #f7931a;
}

.admin-cron-url-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
}

.admin-cron-url {
  font-family: monospace;
  font-size: 12px;
  flex: 1;
  word-break: break-all;
  color: #333;
}

.checkout-coupon-code-wrap {
  margin-bottom: 16px;
}

.checkout-coupon-code-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.checkout-coupon-code-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: monospace;
}

.checkout-coupon-code-input:focus {
  outline: none;
  border-color: #f7931a;
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.15);
}

.checkout-apply-coupon-btn {
  background: #f7931a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-apply-coupon-btn:hover {
  background: #e8841a;
}
.checkout-apply-coupon-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.checkout-coupon-code-msg {
  margin-top: 6px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
}

.checkout-coupon-code-msg-ok {
  background: #dcfce7;
  color: #16a34a;
}
.checkout-coupon-code-msg-error {
  background: #fee2e2;
  color: #dc2626;
}

.uc-pay-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.uc-pay-timer {
  font-size: 16px;
  font-weight: 700;
  font-family: monospace;
  color: #333;
}

.uc-pay-expired-note {
  background: #fee2e2;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.uc-payment-confirmed {
  text-align: center;
}

.admin-stat-mini {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.admin-stat-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-stat-label {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.admin-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.admin-btn-active {
  background: #2878ff;
  color: #fff;
}

.pay-dot-warning {
  background: #f59e0b;
}
.pay-dot-expired {
  background: #94a3b8;
}
.pay-dot-pending {
  background: #f59e0b;
}
.pay-dot-paid {
  background: #22c55e;
}
.pay-dot-unconfirmed {
  background: #f59e0b;
}

.pay-addr-transactions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.pay-addr-tx-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pay-addr-tx-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.pay-addr-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
}
.pay-addr-tx-row strong {
  font-weight: 600;
  color: #1e293b;
  font-family: monospace;
  font-size: 12px;
}
.pay-addr-tx-received strong {
  color: #16a34a;
}
.pay-addr-tx-waiting strong {
  color: #94a3b8;
}
.pay-addr-tx-hash {
  color: #2878ff;
  text-decoration: none;
  font-family: monospace;
  font-size: 12px;
}
.pay-addr-tx-hash:hover {
  text-decoration: underline;
}
.pay-addr-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pay-addr-tx-table th {
  text-align: left;
  font-weight: 600;
  color: #64748b;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pay-addr-tx-table td {
  padding: 6px 8px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.pay-tx-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pay-tx-pending {
  background: #fef3c7;
  color: #92400e;
}
.pay-tx-confirmed {
  background: #d1fae5;
  color: #065f46;
}
.pay-tx-expired {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 640px) {
  .pay-page {
    padding: 20px 10px;
  }
  .pay-header {
    gap: 10px;
  }
  .pay-btc-logo {
    width: 32px;
    height: 32px;
  }
  .pay-title {
    font-size: 17px;
  }
  .pay-subtitle {
    font-size: 13px;
  }
  .pay-status-card {
    padding: 24px 16px;
  }
  .pay-status-card h2 {
    font-size: 18px;
  }
  .pay-amount-card {
    padding: 14px;
  }
  .pay-amount-usd {
    font-size: 22px;
  }
  .pay-amount-btc {
    font-size: 13px;
  }
  .pay-address-card {
    padding: 14px;
  }
  .pay-address {
    font-size: 10px;
  }
  .pay-copy-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  .pay-timer {
    font-size: 22px;
  }
  .pay-steps {
    gap: 8px;
  }
  .pay-step {
    font-size: 12px;
    padding: 10px 12px;
  }
  .pay-step-n {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .pay-addr-transactions {
    padding-top: 12px;
  }
  .pay-addr-tx-table th,
  .pay-addr-tx-table td {
    padding: 5px 6px;
    font-size: 11px;
  }

  .thankyou-page {
    padding: 24px 10px;
  }
  .thankyou-title {
    font-size: 20px;
  }
  .thankyou-subtitle {
    font-size: 13px;
  }
  .thankyou-order-card,
  .thankyou-items-card,
  .thankyou-shipping-card,
  .thankyou-what-next {
    padding: 16px;
    border-radius: 8px;
  }
  .thankyou-order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .thankyou-order-no {
    font-size: 18px;
  }
  .thankyou-meta {
    gap: 10px;
  }
  .thankyou-meta-item {
    font-size: 13px;
  }
  .thankyou-items-table {
    font-size: 12px;
  }
  .thankyou-items-table th,
  .thankyou-items-table td {
    padding: 6px 8px;
  }
  .thankyou-check {
    width: 48px;
    height: 48px;
  }
}
