/* Trueflix — digital-services tax notice.

   The statement the member is shown and the console's own jurisdiction
   reference. Both are scoped under .tf-tax- so nothing here can touch the
   app's own chrome, and every figure is set in a tabular monospace so a
   column of numbers lines up the way a tax form reads. */

.tf-tax-scrim {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 10, 18, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: tf-tax-fade 0.16s ease-out;
}
@keyframes tf-tax-fade { from { opacity: 0; } to { opacity: 1; } }

.tf-tax-card {
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 780px);
  overflow: auto;
  background: #ffffff;
  color: #1c2430;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(10, 16, 30, 0.42);
  font: 400 14px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  animation: tf-tax-rise 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.tf-tax-card.tf-tax-wide { max-width: 860px; }
@keyframes tf-tax-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.tf-tax-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid #e6ebf1;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  position: sticky;
  top: 0;
  z-index: 2;
}
.tf-tax-flag {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
}
.tf-tax-titlewrap { flex: 1 1 auto; min-width: 0; }
.tf-tax-kicker {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.tf-tax-titlewrap h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.tf-tax-sub { margin: 3px 0 0; font-size: 12px; color: #64748b; }
.tf-tax-x {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.tf-tax-x:hover { background: #f1f5f9; color: #0f172a; }

.tf-tax-body { padding: 1.05rem 1.15rem 0.4rem; }
.tf-tax-lede {
  margin: 0 0 0.9rem;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tf-tax-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tf-tax-badge.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tf-tax-badge.waiv { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.tf-tax-badge.mut { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.tf-tax-lines {
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tf-tax-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
}
.tf-tax-line:last-child { border-bottom: 0; }
.tf-tax-lb { font-size: 13px; color: #334155; }
.tf-tax-lb span { display: block; font-size: 11px; color: #8494a7; margin-top: 1px; }
.tf-tax-lb small { display: block; font-size: 11px; color: #8494a7; margin-top: 1px; }
.tf-tax-vl {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}
.tf-tax-line.base { background: #f8fafc; }
.tf-tax-line.base .tf-tax-vl { font-weight: 700; }
.tf-tax-line.em .tf-tax-vl { font-weight: 700; }
.tf-tax-line.waiv { background: #f5f7ff; }
.tf-tax-line.waiv .tf-tax-vl { color: #4338ca; font-weight: 700; }
.tf-tax-line.floor { background: #fffbeb; }
.tf-tax-line.floor .tf-tax-vl { color: #b45309; font-weight: 700; }
.tf-tax-sep { height: 1px; background: #dfe6ee; }

.tf-tax-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #f5f7ff;
}
.tf-tax-total span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #4338ca; }
.tf-tax-total small { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.tf-tax-total strong {
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #312e81;
}

.tf-tax-auths, .tf-tax-why { margin-top: 1rem; }
.tf-tax-h {
  margin: 0 0 0.4rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.tf-tax-auth-item {
  border-left: 3px solid #dbe2ea;
  padding: 0.35rem 0 0.35rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 12px;
  color: #475569;
}
.tf-tax-auth-item strong { display: block; font-size: 12px; color: #1c2430; }
.tf-tax-auth-item span { display: block; }
.tf-tax-auth-item a { display: block; color: #4338ca; text-decoration: none; word-break: break-all; }
.tf-tax-auth-item a:hover { text-decoration: underline; }
.tf-tax-why p { margin: 0; font-size: 12.5px; color: #475569; }

.tf-tax-note {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #7c8a9c;
}
.tf-tax-status { margin: 0.6rem 0 0; min-height: 16px; font-size: 12.5px; color: #4338ca; }

.tf-tax-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid #e6ebf1;
  background: #fbfcfe;
  position: sticky;
  bottom: 0;
}
.tf-tax-foot button {
  font: inherit;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.tf-tax-clear { background: #fff; border-color: #dbe2ea; color: #475569; }
.tf-tax-clear:hover { background: #f1f5f9; }
.tf-tax-pay { background: #4338ca; border-color: #4338ca; color: #fff; }
.tf-tax-pay:hover { background: #3730a3; }
.tf-tax-pay:disabled { opacity: 0.6; cursor: default; }

/* console reference */
.tf-tax-refsearch { padding: 0.85rem 1.15rem; border-bottom: 1px solid #e6ebf1; }
.tf-tax-refsearch input {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.8rem;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
  background: #fff;
  color: #1c2430;
}
.tf-tax-refsearch input:focus { outline: 2px solid #c7d2fe; outline-offset: 1px; }
.tf-tax-reflist { max-height: min(60vh, 520px); overflow: auto; }
.tf-tax-refrow {
  display: grid;
  grid-template-columns: 32px 1fr auto auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.tf-tax-refrow:hover { background: #f8fafc; }
.tf-tax-refflag { font-size: 19px; line-height: 1; }
.tf-tax-refname { min-width: 0; color: #1c2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-tax-refname small { display: block; font-size: 11px; color: #8494a7; }
.tf-tax-refrate {
  text-align: right;
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  color: #334155;
  min-width: 66px;
}
.tf-tax-refrate small { display: block; font-family: inherit; font-size: 10px; color: #9aa8ba; letter-spacing: 0.06em; text-transform: uppercase; }
.tf-tax-refrate.cap { color: #0f172a; font-weight: 700; }
.tf-tax-refrate.waiv { color: #4338ca; font-weight: 700; }
.tf-tax-refempty { margin: 0; padding: 1.5rem 1.15rem; text-align: center; color: #8494a7; font-size: 13px; }

.tf-tax-ref-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 5.35rem;
  z-index: 2147483000;
  font: 700 12px "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.95rem;
  border: 1px solid #4338ca;
  border-radius: 10px;
  background: #4338ca;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(67, 56, 202, 0.35);
}
.tf-tax-ref-btn:hover { background: #3730a3; }

@media (max-width: 560px) {
  .tf-tax-refrow { grid-template-columns: 26px 1fr auto; }
  .tf-tax-refrow .tf-tax-refrate:nth-of-type(3),
  .tf-tax-refrow .tf-tax-refrate.waiv { display: none; }
  .tf-tax-foot { flex-direction: column-reverse; }
  .tf-tax-foot button { width: 100%; }
}
