/* GoMining Tax Access Gate — payment modal styles */

.gta-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 26, 0.62);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  animation: gta-fade 0.18s ease;
}
@keyframes gta-fade { from { opacity: 0; } to { opacity: 1; } }

.gta-modal {
  background: #ffffff;
  color: #1b1f27;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  animation: gta-pop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes gta-pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

.gta-modal * { box-sizing: border-box; }

.gta-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #eef0f3;
}
.gta-modal-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.gta-modal-head .gta-price {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #5a6472;
}
.gta-modal-head .gta-price b { color: #1b1f27; font-size: 15px; }

.gta-close {
  border: 0;
  background: #f1f3f6;
  color: #50596a;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.gta-close:hover { background: #e4e8ee; }

.gta-modal-body { padding: 18px 22px 22px; }

/* Tabs */
.gta-tabs {
  display: flex;
  gap: 6px;
  background: #f3f5f8;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.gta-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #5a6472;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gta-tab.is-active { background: #ffffff; color: #111827; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.gta-tab:disabled { opacity: 0.5; cursor: not-allowed; }

/* Fields */
.gta-field { margin-bottom: 12px; }
.gta-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #404a59;
  margin-bottom: 5px;
}
.gta-field input,
.gta-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d9e0;
  border-radius: 9px;
  font-size: 14px;
  color: #1b1f27;
  background: #fff;
}
.gta-field input:focus,
.gta-field select:focus { outline: none; border-color: #4c6ef5; box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.15); }
.gta-field .gta-hint { font-size: 11.5px; color: #8a93a2; margin-top: 4px; }

.gta-row2 { display: flex; gap: 10px; }
.gta-row2 > * { flex: 1; }

/* Pay details */
.gta-paybox {
  background: #f7f9fc;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 4px;
}
.gta-amount-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gta-amount-line .gta-usdc { font-size: 22px; font-weight: 700; }
.gta-amount-line .gta-eur { font-size: 13px; color: #5a6472; }

.gta-copyrow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 8px 0;
}
.gta-copyrow .gta-val {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid #dde2e9;
  border-radius: 8px;
  padding: 9px 11px;
  word-break: break-all;
  user-select: all;
}
.gta-copy-btn {
  flex: 0 0 auto;
  border: 1px solid #d4d9e0;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3651c9;
  cursor: pointer;
}
.gta-copy-btn:hover { background: #f0f3fb; }

.gta-qr {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
}
.gta-qr > div, .gta-qr canvas, .gta-qr img {
  padding: 10px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
}

.gta-rate-note { font-size: 11.5px; color: #8a93a2; text-align: center; margin-top: 4px; }

.gta-reminder {
  display: flex;
  gap: 8px;
  background: #fff8e6;
  border: 1px solid #f3e3b3;
  color: #715c14;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin: 12px 0;
}

/* Buttons */
.gta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}
.gta-btn-primary { background: #4c6ef5; color: #fff; }
.gta-btn-primary:hover { filter: brightness(1.05); }
.gta-btn-primary:disabled { background: #b8c2e6; cursor: not-allowed; }
.gta-btn-dark { background: #111827; color: #fff; }
.gta-btn-dark:hover { filter: brightness(1.15); }
.gta-btn-ghost { background: #f1f3f6; color: #3a4453; }

.gta-step { margin-top: 14px; }

/* Status / alerts */
.gta-alert {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  margin: 12px 0;
}
.gta-alert-ok   { background: #e7f7ec; border: 1px solid #b7e3c4; color: #176c34; }
.gta-alert-err  { background: #fdecec; border: 1px solid #f4c2c2; color: #a12626; }
.gta-alert-wait { background: #eef2fd; border: 1px solid #c9d5f7; color: #2d4bb8; }
.gta-alert-off  { background: #f3f4f6; border: 1px solid #dfe2e7; color: #5a6472; text-align: center; }

.gta-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gta-spin 0.7s linear infinite;
}
.gta-spinner-dark { border-color: rgba(45,75,184,0.25); border-top-color: #2d4bb8; }
@keyframes gta-spin { to { transform: rotate(360deg); } }

.gta-foot-note {
  font-size: 11px;
  color: #9aa2b1;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.gta-hidden { display: none !important; }

@media (max-width: 480px) {
  .gta-modal { border-radius: 14px; }
  .gta-modal-head { padding: 16px 16px 12px; }
  .gta-modal-body { padding: 14px 16px 18px; }
  .gta-row2 { flex-direction: column; gap: 0; }
}

/* v2.1.0: billing rows and secondary action button */
.gta-row3 { display: flex; gap: 10px; }
.gta-row3 > * { flex: 1; }
.gta-btn-light { background: #f1f3f6; color: #3a4453; margin-top: 8px; }
.gta-btn-light:hover { background: #e4e8ee; }
@media (max-width: 520px) {
  .gta-row3 { flex-direction: column; gap: 0; }
}

/* Service tiers */
.gta-tier-section { margin-bottom: 18px; }
.gta-tier-title { font-size: 14px; font-weight: 750; color: #1b1f27; margin-bottom: 3px; }
.gta-tier-intro { font-size: 12px; color: #697386; margin-bottom: 10px; }
.gta-tier-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.gta-tier-card {
  width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  text-align: left; border: 1px solid #dce1e8; background: #fff; border-radius: 12px; padding: 12px;
  color: #1b1f27; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gta-tier-card:hover { border-color: #9aabf7; }
.gta-tier-card.is-selected { border-color: #4c6ef5; background: #f7f9ff; box-shadow: 0 0 0 2px rgba(76,110,245,.12); }
.gta-tier-check { width: 16px; height: 16px; border: 1.5px solid #b9c1ce; border-radius: 50%; margin-top: 2px; position: relative; }
.gta-tier-card.is-selected .gta-tier-check { border-color: #4c6ef5; }
.gta-tier-card.is-selected .gta-tier-check::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #4c6ef5; }
.gta-tier-copy { display: flex; flex-direction: column; min-width: 0; }
.gta-tier-copy strong { font-size: 14px; }
.gta-tier-short { font-size: 12px; font-weight: 650; color: #4f5d70; margin-top: 1px; }
.gta-tier-desc { font-size: 11.5px; color: #788395; margin-top: 4px; line-height: 1.4; }
.gta-tier-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.gta-tier-price b { font-size: 15px; color: #111827; }
.gta-tier-price small { font-size: 10px; color: #8791a0; font-weight: 500; margin-top: 1px; }
@media (max-width: 520px) { .gta-tier-card { grid-template-columns: 18px minmax(0, 1fr); } .gta-tier-price { grid-column: 2; align-items: flex-start; margin-top: 3px; } }
