/* ===== ACFL Transfers (buy page) =====
   Page-specific styles live here (linked after style.css) so the visual
   editor regenerating style.css never wipes them. */

.tf-main {
  padding-block: var(--size-700, 3rem);
  min-height: 60vh;
}

.tf-status {
  padding: 2rem 0;
  color: var(--color-neutral-600);
  font-size: var(--fs-500, 1.125rem);
  text-align: center;
}

/* ---- Hero ---- */
.tf-hero {
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28)),
    url(/images/thumbs/tridentssunset.png);
  background-size: cover;
  background-position: 75% 30%;
}
.tf-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--fw-bold, 800);
  line-height: 1.05;
  margin: 0;
}
.tf-hero p {
  margin: 0.5rem 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- Card ---- */
.tf-card {
  background: var(--color-neutral-100, #fff);
  border: 1px solid var(--color-neutral-300, #e5e7eb);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dark-mode .tf-card {
  background: var(--color-neutral-200, #1c1c22);
  border-color: rgba(255, 255, 255, 0.08);
}

.tf-owned {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-neutral-300, #e5e7eb);
}
.dark-mode .tf-owned { border-color: rgba(255, 255, 255, 0.08); }
.tf-owned .tf-owned-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-400, #0d6efd);
}
.tf-owned .tf-owned-label {
  color: var(--color-neutral-600, #6b7280);
  font-weight: 600;
}

.tf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-neutral-600, #6b7280);
  font-size: 0.95rem;
}
.tf-meta b { color: var(--color-neutral-900, #111); font-weight: 700; }
.dark-mode .tf-meta b { color: #f3f4f6; }

.tf-buy-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* ---- Recipient toggle (self / gift) ---- */
.tf-toggle {
  display: inline-flex;
  border: 1px solid var(--color-neutral-400, #d1d5db);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.tf-toggle-btn {
  border: 0;
  background: transparent;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-neutral-600, #6b7280);
  transition: background 0.15s ease, color 0.15s ease;
}
.tf-toggle-btn.is-active {
  background: var(--color-primary-400, #0d6efd);
  color: #fff;
}
.dark-mode .tf-toggle { border-color: rgba(255, 255, 255, 0.1); }
.dark-mode .tf-toggle-btn { color: #cbd0d8; }
.dark-mode .tf-toggle-btn.is-active { color: #fff; }

.tf-gift { margin-bottom: 1.5rem; }
.tf-gift-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.tf-gift-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tf-gift-row input {
  flex: 1 1 220px;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--color-neutral-400, #d1d5db);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color-neutral-100, #fff);
  color: var(--color-neutral-900, #111);
}
.tf-gift-row input:focus {
  outline: 2px solid var(--color-primary-400, #0d6efd);
  outline-offset: 1px;
}
.dark-mode .tf-gift-row input {
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.12);
}
.tf-gift-row button {
  height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--color-primary-400, #0d6efd);
  border-radius: 12px;
  background: transparent;
  color: var(--color-primary-400, #0d6efd);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tf-gift-row button:hover { background: var(--color-primary-400, #0d6efd); color: #fff; }
.tf-gift-row button:disabled { opacity: 0.5; cursor: progress; }
.tf-gift-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--color-neutral-600, #6b7280);
}
.tf-gift-hint a { color: var(--color-primary-400, #0d6efd); }
.tf-gift-result {
  margin-top: 0.6rem;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}
.tf-gift-result.error { background: #fdecea; color: #922; }
.tf-gift-result.success { background: #e7f6ec; color: #17663a; }
.dark-mode .tf-gift-result.error { background: rgba(220,60,60,0.15); color: #ff9b9b; }
.dark-mode .tf-gift-result.success { background: rgba(40,180,110,0.15); color: #7ee2a8; }

.tf-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.tf-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-neutral-400, #d1d5db);
  border-radius: 12px;
  overflow: hidden;
}
.tf-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-neutral-200, #f3f4f6);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-neutral-900, #111);
  transition: background 0.15s ease;
}
.tf-stepper button:hover { background: var(--color-neutral-300, #e5e7eb); }
.tf-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.dark-mode .tf-stepper button { background: rgba(255,255,255,0.06); color: #f3f4f6; }
.tf-stepper input {
  width: 64px;
  height: 44px;
  border: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--color-neutral-100, #fff);
  color: var(--color-neutral-900, #111);
  -moz-appearance: textfield;
}
.tf-stepper input::-webkit-outer-spin-button,
.tf-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dark-mode .tf-stepper input { background: transparent; color: #f3f4f6; }

.tf-total {
  font-size: 1.05rem;
  color: var(--color-neutral-600, #6b7280);
}
.tf-total b {
  font-size: 1.6rem;
  color: var(--color-neutral-900, #111);
  font-weight: 800;
}
.dark-mode .tf-total b { color: #f3f4f6; }

.tf-actions { margin-top: 1.75rem; }
.tf-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary-400, #0d6efd);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.tf-pay:hover { filter: brightness(1.05); }
.tf-pay:active { transform: translateY(1px); }
.tf-pay:disabled { opacity: 0.6; cursor: progress; }

.tf-methods {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--color-neutral-600, #6b7280);
  font-size: 0.85rem;
}

.tf-note {
  margin-top: 0.6rem;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}
.tf-note.error { background: #fdecea; color: #922; }
.tf-note.success { background: #e7f6ec; color: #17663a; }
.dark-mode .tf-note.error { background: rgba(220,60,60,0.15); color: #ff9b9b; }
.dark-mode .tf-note.success { background: rgba(40,180,110,0.15); color: #7ee2a8; }

/* ---- Gate / empty states ---- */
.tf-gate {
  text-align: center;
  background: var(--color-neutral-100, #fff);
  border: 1px solid var(--color-neutral-300, #e5e7eb);
  border-radius: 16px;
  padding: 3rem 1.5rem;
}
.dark-mode .tf-gate {
  background: var(--color-neutral-200, #1c1c22);
  border-color: rgba(255, 255, 255, 0.08);
}
.tf-gate h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.tf-gate p { margin: 0 auto 1.25rem; max-width: 44ch; color: var(--color-neutral-600, #6b7280); }
.tf-gate .button { display: inline-flex; }
