/* REQ-004 Transferable Fixed — branch-only styles */

.tf-entry-wrap { margin-top: 4px; }
.tf-entry-card {
  display: block; width: 100%; text-align: left;
  border: none; border-radius: 14px; padding: 14px 14px 12px;
  background: linear-gradient(135deg, #e8f8ef 0%, #f3fbf6 55%, #fff 100%);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  cursor: pointer; position: relative;
}
.tf-entry-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--opay); padding: 2px 6px; border-radius: 4px;
}
.tf-entry-title { font-size: 16px; font-weight: 700; color: #0b3d2c; }
.tf-entry-sub { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.tf-entry-meta { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--opay); }
.tf-entry-link {
  display: block; width: 100%; margin-top: 8px; border: none; background: transparent;
  text-align: left; font-size: 13px; font-weight: 600; color: var(--opay); cursor: pointer; padding: 4px 2px;
}

/* Match product hero-card palette (light mint → white) */
.tf-hero {
  margin: 12px 16px 8px; padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #eaf8f1 0%, #fff 55%);
  position: relative; overflow: hidden;
  color: #111;
}
.tf-hero.compact { padding: 14px; }
.tf-hero-kicker { font-size: 15px; font-weight: 700; color: #111; padding-right: 56px; }
.tf-hero-points { margin-top: 10px; font-size: 12px; line-height: 1.55; color: #4b5563; }
.tf-hero-points div { display: flex; align-items: flex-start; gap: 6px; }
.tf-hero-check {
  flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px;
  border-radius: 4px; background: var(--opay); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.tf-hero-art {
  position: absolute; right: 10px; top: 12px;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(0,184,118,.12); display: grid; place-items: center;
  color: var(--opay); font-size: 22px;
}
.tf-hero-sub {
  margin-top: 6px; font-size: 12px; color: var(--muted);
}

.tf-offer-card, .tf-list-card, .tf-holding-card {
  display: block; width: 100%; text-align: left; border: none; cursor: pointer;
  background: #fff; border-radius: 12px; padding: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); margin-bottom: 10px;
}
.tf-offer-card { border: 1px solid #d8f0e4; }
.tf-offer-name { font-weight: 700; font-size: 14px; }
.tf-offer-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.tf-offer-cta { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--opay); }
.tf-list-foot .green { color: var(--opay); font-weight: 700; }

.tf-zone-hero { margin: 12px 16px 8px; }
.tf-zone-hero .my-plans-pill,
button.my-plans-pill {
  border: 1px solid #eee !important;
  outline: none;
  box-shadow: none;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.tf-formula-note {
  margin: -2px 0 8px; padding: 0 0 8px;
  font-size: 11px; color: var(--muted); line-height: 1.4;
  border-bottom: 1px solid #f3f4f6;
}

.tf-match-box {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #f3fbf6; border: 1px solid #d8f0e4;
}
.tf-match-box .tf-chance {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700;
}
.tf-match-box .tf-chance.very-high,
.tf-chance.very-high { color: var(--opay); }
.tf-match-box .tf-chance.high,
.tf-chance.high { color: #159a62; }
.tf-match-box .tf-chance.normal,
.tf-chance.normal { color: #b45309; }
.tf-match-box .tf-chance.low,
.tf-chance.low { color: #dc2626; }
.tf-match-validity {
  margin-top: 6px; font-size: 11px; color: #6b7280; line-height: 1.45;
}
.tf-match-validity .tf-link { font-size: 11px; }

.tf-big-rate, .tf-big-num { font-size: 18px; font-weight: 700; color: #111; }
.tf-big-rate { color: var(--opay); }
.tf-lab { font-size: 10px; color: var(--muted); margin-top: 2px; }
.tf-muted { font-size: 12px; color: var(--muted); }

.tf-chips, .tf-quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tf-chip {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer; color: #374151;
}
.tf-chip.on { border-color: var(--opay); background: #e8f8ef; color: var(--opay); font-weight: 600; }

.tf-list-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tf-list-yield { font-size: 18px; font-weight: 700; color: var(--opay); }
.tf-list-yield small { font-size: 11px; font-weight: 600; color: var(--muted); }
.tf-list-days { font-size: 12px; font-weight: 600; color: #0f3d2e; }
.tf-list-mid { display: flex; justify-content: space-between; margin-top: 10px; gap: 12px; }
.tf-list-amt { font-size: 15px; font-weight: 700; }
.tf-list-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tf-list-card.preview { cursor: default; border: 1px dashed #b7e0cc; background: #f7fcf9; }

/* Market list scheme B — single panel, row layout */
.tf-list-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  overflow: hidden;
}
.tf-list-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f0f2f4;
  background: transparent;
  cursor: pointer;
  padding: 14px 16px;
  -webkit-appearance: none;
  appearance: none;
}
.tf-list-row:last-child { border-bottom: none; }
.tf-list-row:active { background: #f7faf8; }
.tf-list-row-rate-wrap {
  flex: 0 0 auto;
  min-width: 4.6em;
}
.tf-list-row-rate {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--opay);
  letter-spacing: -0.02em;
}
.tf-list-row-rate-sub {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.tf-list-row-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.tf-list-row-line1,
.tf-list-row-line2 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.tf-list-row-line1 {
  color: #111;
}
.tf-list-row-dur {
  font-weight: 700;
}
.tf-list-row-line2 {
  margin-top: 2px;
  color: #6b7280;
}

.tf-summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: #fff; border-radius: 12px; padding: 14px;
}
.tf-summary-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.tf-summary-grid-listing {
  padding-top: 12px;
  padding-bottom: 16px;
  row-gap: 12px;
}
.tf-summary-from {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.3;
  text-align: left;
}
.tf-gain-card {
  background: linear-gradient(180deg, #eefaf3 0%, #fff 70%);
  border: 1px solid #c8ecd8;
  border-radius: 12px;
  padding: 16px 16px 14px;
  text-align: left;
}
.tf-gain-kicker {
  font-size: 12px;
  font-weight: 500;
  color: #3d7a5c;
}
.tf-gain-amt {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--opay);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tf-gain-bullets {
  margin: 12px 0 0;
  padding: 10px 10px 10px 26px;
  list-style: disc;
  background: #e8f8ef;
  border-radius: 8px;
}
.tf-gain-bullets li {
  font-size: 11px;
  font-weight: 500;
  color: #0f3d2e;
  line-height: 1.45;
  margin: 0 0 6px;
}
.tf-gain-bullets li:last-child { margin-bottom: 0; }
.tf-amount-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 12px 14px;
}
.tf-currency { font-size: 22px; font-weight: 700; }
.tf-amount-input {
  flex: 1; border: none; outline: none; font-size: 24px; font-weight: 700; width: 100%;
  background: transparent;
}
.tf-calc-card { padding: 4px 14px; }
.tf-kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.tf-kv:last-child { border-bottom: none; }
.tf-kv .green { color: var(--opay); }
.tf-note {
  margin: 12px 0 0; font-size: 12px; color: #4b5563; line-height: 1.45;
  background: #f9fafb; border-radius: 10px; padding: 10px 12px;
}
.tf-note a, .tf-link {
  color: var(--opay); font-weight: 600; text-decoration: none;
}
.tf-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; font-size: 13px; background: #fff; border-radius: 12px; padding: 12px 14px;
}

/* Custom agree checkbox — no hover chrome */
.tf-agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; font-size: 13px; line-height: 1.4;
  background: #fff; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; user-select: none;
}
.tf-check {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 5px; border: 1.5px solid #cfd4dc;
  background: #fff; color: transparent;
  display: grid; place-items: center; padding: 0;
  transition: none;
}
.tf-check,
.tf-check:hover,
.tf-check:focus,
.tf-check:active {
  outline: none; box-shadow: none; filter: none;
}
.tf-check.on {
  background: var(--opay); border-color: var(--opay); color: #fff;
}
.tf-check i { font-size: 12px; line-height: 1; }
.tf-agree-text a {
  color: var(--opay); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}

.tf-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 13px; }

.tf-tabs {
  display: flex; gap: 0; margin: 8px 16px 0; background: #f3f4f6; border-radius: 10px; padding: 4px;
}
.tf-tabs button {
  flex: 1; border: none; background: transparent; padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tf-tabs button.on { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.tf-holding-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tf-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 6px; background: #eef2ff; color: #3730a3; white-space: nowrap;
}
.tf-status.investing { background: #e8f8ef; color: #0f3d2e; }
.tf-status.transferring { background: #fff7ed; color: #c2410c; }
.tf-status.transferred { background: #f3f4f6; color: #4b5563; }

.tf-transfer-banner {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 4px 14px 12px;
}

/* Receive amount hero on transfer */
.tf-receive {
  text-align: center; padding: 8px 8px 4px;
}
.tf-receive-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tf-receive-amt {
  margin-top: 4px; font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  color: #0b3d2c;
}
.tf-receive-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tf-vs-cost.pos { color: var(--opay); font-weight: 700; }
.tf-vs-cost.neg { color: #dc2626; font-weight: 700; }

/* Custom range — real DOM knob (html2canvas cannot paint ::-webkit-slider-thumb) */
.tf-range-wrap {
  position: relative;
  padding: 8px 2px 0;
}
.tf-range-ui {
  position: relative;
  height: 22px;
  margin: 8px 0 2px;
  pointer-events: none;
}
.tf-range-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 6px; margin-top: -3px;
  border-radius: 999px; background: #c8f0dc;
  overflow: hidden;
}
.tf-range-fill {
  height: 100%; border-radius: 999px; background: var(--opay);
}
.tf-range-knob {
  position: absolute;
  top: 0;
  width: 22px; height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--opay);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  box-sizing: border-box;
}
.tf-range {
  position: absolute;
  left: 0; right: 0;
  top: 8px;
  width: 100%;
  height: 28px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 2;
}
.tf-range:hover,
.tf-range:focus,
.tf-range:active { outline: none; box-shadow: none; }
.tf-slider-labels {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px;
}

.tf-footer-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tf-footer-stack {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.tf-footer-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: #4b5563; line-height: 1.4;
}
.tf-footer-meta .tf-chance {
  font-weight: 700;
}
.tf-footer-meta .tf-chance.very-high { color: var(--opay); }
.tf-footer-meta .tf-chance.high { color: #159a62; }
.tf-footer-meta .tf-chance.normal { color: #b45309; }
.tf-footer-meta .tf-chance.low { color: #b91c1c; }

#tf-result-footer.tf-footer-stack .btn + .btn,
.tf-footer-stack .btn + .btn { margin-top: 0; }

.tf-result { text-align: center; padding: 48px 20px 20px; }
.tf-result-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--opay); color: #fff; font-size: 28px; line-height: 56px; font-weight: 700;
}
.tf-result h2 { margin: 0; font-size: 20px; }
.tf-result-amt { margin-top: 12px; font-size: 28px; font-weight: 700; }

.tf-sheet-title {
  text-align: center; font-size: 16px; font-weight: 700; margin: 4px 0 12px;
}
.tf-sheet-note {
  margin: 12px 16px 8px; padding: 10px 12px; border-radius: 10px;
  background: #f5f6f8; font-size: 12px; color: #4b5563; line-height: 1.45;
}

#tf-processing.show { display: flex; }

.phone-stage > .tf-debug-panel {
  position: absolute; right: 12px; top: 48px; bottom: 12px; width: 260px;
  z-index: 40; overflow: auto;
}
.tf-debug-panel.debug-panel {
  background: #111827; color: #e5e7eb; border-radius: 12px; padding: 14px;
  border: 1px solid #1f2937;
}
.tf-debug-panel h2 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.tf-debug-panel h3 { margin: 0 0 8px; font-size: 12px; color: #93c5fd; }
.tf-debug-panel .debug-section { margin-bottom: 14px; }
.tf-debug-panel select, .tf-debug-panel button {
  width: 100%; margin-top: 6px; border-radius: 8px; border: 1px solid #374151;
  background: #1f2937; color: #fff; padding: 8px; font-size: 12px;
}
.tf-debug-panel button.primary { background: var(--opay); border-color: var(--opay); }
.tf-debug-panel .muted { font-size: 11px; color: #9ca3af; }

/* Scheme B transfer price panel */
.tf-price-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tf-price-block {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.tf-price-block-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.tf-receive.compact {
  text-align: left;
  padding: 0 0 8px;
}
.tf-receive.compact .tf-receive-amt {
  font-size: 28px;
  margin-top: 0;
}
.tf-face-floor-tip {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.4;
}
.tf-face-floor-tip[hidden] { display: none !important; }
.tf-liquidate-hint {
  margin: 0;
  font-size: 12px;
  color: #b45309;
  line-height: 1.4;
  text-align: center;
}
.tf-status.liquidated { background: #fef2f2; color: #b91c1c; }

