* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: #0a0a0a;
  overscroll-behavior-y: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.glow-text {
  background: linear-gradient(180deg, #f4f1ea 0%, #e8c987 55%, #c8973a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.safe-bottom {
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
}

.fab {
  background: linear-gradient(180deg, #e8c987, #c8973a);
  box-shadow: 0 8px 24px -6px rgba(200, 151, 58, .55);
}

.nav-link {
  transition: color .2s ease, background .2s ease;
}

.nav-link.active {
  color: #f4f1ea;
  background: #0C0B1C;
}

.nav-link.active .nav-dot {
  opacity: 1;
}

.mnav {
  color: #8f897b;
  transition: color .2s ease;
}

.mnav.active {
  color: #f4f1ea;
}

.mnav.active svg {
  stroke: #c8973a;
}

.field {
  background: #0C0B1C;
  border: 1px solid #202126;
}

.field:focus {
  outline: none;
  border-color: #c8973a99;
}

/* Toggle switch */
.toggle-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

label:has(> .toggle) input[type="checkbox"],
.toggle-wrapper input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  display: none !important;
}

.toggle {
  width: 44px;
  height: 24px;
  background: #202126;
  border: 1px solid #36342e;
  border-radius: 999px;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
}

.toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8f897b;
  transition: transform .2s ease, background .2s ease;
}

input[type="checkbox"]:checked+.toggle {
  background: rgba(200, 151, 58, 0.25);
  border-color: rgba(200, 151, 58, 0.5);
}

input[type="checkbox"]:checked+.toggle .knob {
  transform: translateX(20px);
  background: #c8973a;
  box-shadow: 0 0 8px rgba(200, 151, 58, 0.4);
}

@media (min-width: 1024px) {
  .safe-bottom {
    padding-bottom: 0;
  }
}

.card {
  background: #0c0b1cab;
  border: 1px solid #202126;
}

.card-hover {
  transition: border-color .25s ease, transform .25s ease;
}

.card-hover:hover {
  border-color: #c8973a55;
}

.copied::after {
  content: 'Copied';
  position: absolute;
  right: 0;
  top: -26px;
  font-size: 10px;
  letter-spacing: .05em;
  color: #3fcf9e;
  background: #0C0B1C;
  border: 1px solid #202126;
  padding: 2px 8px;
  border-radius: 999px;
}


.field {
  background: #0C0B1C;
  border: 1px solid #202126;
}

.field:focus {
  outline: none;
  border-color: #c8973a99;
}

.pulse-dot {
  box-shadow: 0 0 0 0 rgba(63, 207, 158, .6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 207, 158, .55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(63, 207, 158, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(63, 207, 158, 0);
  }
}

.row-active {
  background: linear-gradient(90deg, #c8973a1a, transparent);
  border-left: 2px solid #c8973a;
}

.tf-btn {
  transition: all .2s ease;
}

.tf-btn.active {
  background: #c8973a;
  color: #0a0a0a;
}

.sparkline-wrap svg path.fill {
  opacity: .35;
}



/* ---- Bootstrap modal, re-themed ---- */
.modal-content {
  background: #0C0B1C;
  border: 1px solid #202126;
  border-radius: 16px;
  color: #f4f1ea;
}

.modal-header,
.modal-footer {
  border-color: #202126;
}

.modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: .6;
}

.btn-close:hover {
  opacity: 1;
}

.form-label.small-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8f897b;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background: #0C0B1C;
  border: 1px solid #202126;
  color: #f4f1ea;
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  background: #0C0B1C;
  border-color: #c8973a99;
  color: #f4f1ea;
  box-shadow: 0 0 0 .2rem rgba(200, 151, 58, .15);
}

.form-control::placeholder {
  color: #8f897b;
}

.form-select option {
  background: #0C0B1C;
  color: #f4f1ea;
}

.spinner-border {
  color: #c8973a;
}

.quick-amt {
  background: #0C0B1C;
  border: 1px solid #202126;
  color: #f4f1ea;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.quick-amt:hover {
  border-color: #c8973a99;
}

.quick-amt.active {
  border-color: #c8973a;
  color: #e8c987;
  background: #c8973a1a;
}

.btn-gold-custom {
  background: linear-gradient(180deg, #e8c987, #c8973a);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .875rem;
  font-weight: 500;
}

.btn-gold-custom:hover {
  filter: brightness(1.06);
  color: #0a0a0a;
}

.btn-gold-custom:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-secondary-custom {
  background: transparent;
  border: 1px solid #202126;
  color: #f4f1ea;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .875rem;
}

.btn-secondary-custom:hover {
  border-color: #c8973a99;
  color: #f4f1ea;
}

.qr-img {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 1px solid #1c1b18;
  font-size: .85rem;
}

.pay-row:last-of-type {
  border-bottom: none;
}

.pay-label {
  color: #8f897b;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-value {
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
  word-break: break-all;
}

.expiry-note {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  color: #e8c987;
  font-size: .8rem;
  margin-top: 1rem;
}

.warning-note {
  font-size: .72rem;
  color: #8f897b;
  margin-top: .5rem;
  line-height: 1.45;
}

.step-error {
  font-size: .8rem;
}

/* Capriole Custom Styles & Modal System */

/* Custom Modal Backdrop & Dialog Container */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.custom-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-modal-dialog {
  width: 100%;
  max-width: 480px;
  background: #0C0B1C;
  border: 1px solid #202126;
  border-radius: 20px;
  color: #f4f1ea;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px 0 rgba(200, 151, 58, 0.08);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.custom-modal-backdrop.active .custom-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #202126;
}

.custom-modal-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #f4f1ea;
  margin: 0;
}

.custom-modal-close {
  background: transparent;
  border: none;
  color: #8f897b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.custom-modal-close:hover {
  color: #f4f1ea;
  background-color: #0C0B1C;
}

/* Modal Body */
.custom-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Modal Footer */
.custom-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #202126;
}

/* Custom Form Controls */
.custom-form-label {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #8f897b !important;
  margin-bottom: 6px !important;
}

.custom-form-control,
.custom-form-select {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  background-color: #0C0B1C !important;
  border: 1px solid #202126 !important;
  color: #f4f1ea !important;
  border-radius: 10px !important;
  padding: 0.5rem 0.9rem !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  outline: none !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-form-control:focus,
.custom-form-select:focus {
  border-color: rgba(200, 151, 58, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.15) !important;
}

.custom-form-control::placeholder {
  color: #8f897b !important;
  opacity: 0.8 !important;
}

.custom-form-select option {
  background: #0C0B1C !important;
  color: #f4f1ea !important;
}

/* Spinner */
.custom-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(200, 151, 58, 0.2);
  border-top-color: #c8973a;
  border-radius: 50%;
  animation: custom-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes custom-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Quick Amount Pills */
.quick-amt {
  background: #0C0B1C;
  border: 1px solid #202126;
  color: #f4f1ea;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.quick-amt:hover {
  border-color: rgba(200, 151, 58, 0.6);
}

.quick-amt.active {
  border-color: #c8973a;
  color: #e8c987;
  background: rgba(200, 151, 58, 0.1);
}

/* Custom Buttons */
.btn-gold-custom {
  background: linear-gradient(180deg, #e8c987, #c8973a);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-gold-custom:hover {
  filter: brightness(1.08);
  color: #0a0a0a;
}

.btn-gold-custom:active {
  transform: scale(0.98);
}

.btn-gold-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary-custom {
  background: transparent;
  border: 1px solid #202126;
  color: #f4f1ea;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary-custom:hover {
  border-color: rgba(200, 151, 58, 0.6);
  color: #f4f1ea;
}

/* QR Code & Pay Details */
.qr-img {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #1c1b18;
  font-size: 0.85rem;
}

.pay-row:last-of-type {
  border-bottom: none;
}

.pay-label {
  color: #8f897b;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-value {
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
  word-break: break-all;
}

.expiry-note {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  color: #e8c987;
  font-size: 0.8rem;
  margin-top: 1rem;
}

.warning-note {
  font-size: 0.72rem;
  color: #8f897b;
  margin-top: 0.5rem;
  line-height: 1.45;
}

.step-error {
  font-size: 0.8rem;
  color: #e2703a;
}