/* ==========================================================================
   Trueflix UI layer, part 1 of 4 -- foundation.
   Tokens, base surface, ambient background, typography, scrollbars, focus.

   This sheet is loaded after the app's own bundle sheet and, unlike it, sits
   in no cascade layer. Unlayered declarations outrank every layered one, so
   these rules win against the bundle's Tailwind utilities without needing a
   specificity war or an !important on each line. Only the handful of places
   that fight the shell's own inline <style> (which is written with
   !important) carry one here.
   ========================================================================== */

:root {
  /* Surfaces. The app's own page colour is #040b14 and its panel colour is
     #0b1726; both are kept so nothing reads as a different product, then a
     third and fourth step are added so nested panels stop flattening into
     one another. */
  --tf-bg: #03070e;
  --tf-bg-soft: #060d18;
  --tf-surface: #0b1726;
  --tf-surface-2: #0e1e32;
  --tf-surface-3: #122540;

  /* Hairlines. Three steps, because a panel inside a panel needs a dimmer
     edge than the one it sits on. */
  --tf-line: rgba(255, 255, 255, 0.07);
  --tf-line-2: rgba(255, 255, 255, 0.11);
  --tf-line-3: rgba(255, 255, 255, 0.17);

  /* Type. Four steps from headline to caption. */
  --tf-text: #eef4ff;
  --tf-text-2: #b3c2d8;
  --tf-text-3: #8296b0;
  --tf-text-4: #62748d;

  /* Accents. Gold is the primary action colour -- the app already carries it
     as --color-reward, so the brand does not shift, it just leads now. Teal
     stays as the live/online signal and coral as the danger signal, both at
     a calmer saturation than the bundle used. */
  --tf-gold: #f5c15a;
  --tf-gold-hi: #ffe1a0;
  --tf-gold-lo: #c9932f;
  --tf-gold-ink: #23180a;
  --tf-teal: #2ad6b8;
  --tf-teal-soft: rgba(42, 214, 184, 0.14);
  --tf-coral: #ff8577;
  --tf-ok: #35d39c;
  --tf-warn: #f5c15a;
  --tf-danger: #ff8577;

  --tf-grad-gold: linear-gradient(122deg, #ffe3a6 0%, #f5c15a 46%, #d19a2c 100%);
  --tf-grad-line: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );

  /* Geometry. Four radii only -- pills are pills, everything else is one of
     three nested sizes, so cards line up with the controls inside them. */
  --tf-r-sm: 10px;
  --tf-r: 14px;
  --tf-r-lg: 18px;
  --tf-r-xl: 24px;
  --tf-r-pill: 999px;

  /* Elevation. Two shadows and one glow; anything more turns into noise on a
     dark surface. */
  --tf-sh-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --tf-sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 26px 60px -24px rgba(0, 0, 0, 0.75);
  --tf-glow-gold: 0 10px 30px -12px rgba(245, 193, 90, 0.45);

  --tf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base surface
   -------------------------------------------------------------------------- */

html {
  background: var(--tf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--tf-bg);
  color: var(--tf-text);
}

/* The ambient wash the page sits on. The bundle drew one with two radial
   glows (teal over blue); the same construction is kept but the blue is
   traded for the gold the rest of the sheet is built on, and the whole thing
   is dimmed so card edges and body text keep their contrast. Fixed rather
   than scrolled, so a long list never drags the light source with it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
      ellipse 78% 58% at 8% 0%,
      rgba(245, 193, 90, 0.1),
      transparent 58%
    ),
    radial-gradient(
      ellipse 66% 52% at 96% 12%,
      rgba(42, 214, 184, 0.07),
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 108%,
      rgba(56, 110, 190, 0.09),
      transparent 60%
    );
}

/* Every top-level painting element must sit above that wash. */
#root {
  position: relative;
  z-index: 1;
}

/* Any full-bleed gradient the bundle painted behind a hero or a page is
   replaced with the token wash above, so the two do not double up. */
[class*="bg-[radial-gradient"] {
  background-image: none !important;
}

::selection {
  background: rgba(245, 193, 90, 0.28);
  color: #fffaf0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

/* Display face: the bundle ships Unbounded at 500-800. Leading is tightened
   and tracking pulled in a touch; both read as more considered at the
   headline sizes this app uses. */
.font-display {
  letter-spacing: -0.015em;
  line-height: 1.08;
}

/* The small all-caps label the app repeats above almost every section
   ("tracking-[0.24em]"). It is the one recurring piece of branding on the
   site, so it is given the gold and a consistent weight instead of inheriting
   whatever colour its section happened to use. */
.tracking-\[0\.24em\],
.tracking-\[0\.18em\],
.tracking-\[0\.2em\],
.tracking-\[0\.28em\] {
  color: var(--tf-gold);
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* Muted body copy, re-tiered. The bundle leaned on slate-400/500 for nearly
   everything secondary, which is why so much of the page read as grey mush;
   each step is lifted and separated so a caption no longer competes with a
   paragraph. */
.text-slate-200 {
  color: var(--tf-text-2);
}
.text-slate-300 {
  color: var(--tf-text-2);
}
.text-slate-400 {
  color: var(--tf-text-3);
}
.text-slate-500 {
  color: var(--tf-text-3);
}
.text-slate-600 {
  color: var(--tf-text-4);
}

/* Teal is the app's most-used accent class. It becomes the gold accent so
   headings and emphasis land on the brand colour; genuine online/success
   states use their own emerald/teal background classes and are left alone. */
.text-teal-200 {
  color: var(--tf-gold-hi);
}
.text-teal-300 {
  color: var(--tf-gold);
}
.text-teal-400 {
  color: var(--tf-gold-lo);
}

/* Money and counters. Tabular figures stop a balance from reflowing as it
   ticks up, which is the single most distracting thing on an earnings page. */
.earn-counter,
[data-testid="nav-earn-balance"],
[data-testid="watch-clock"],
[data-testid="tf-watch-time-tile"],
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Headings that were left at default weight get a considered one. */
h1,
h2,
h3 {
  color: var(--tf-text);
  text-wrap: balance;
}
h1 {
  font-weight: 700;
}
h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 600;
}
p {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Scrollbars and focus
   -------------------------------------------------------------------------- */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 193, 90, 0.34) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(245, 193, 90, 0.3);
  border: 3px solid transparent;
  border-radius: var(--tf-r-pill);
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 193, 90, 0.5);
  background-clip: content-box;
}

/* One focus ring for the whole site, in the brand colour, and only for
   keyboard users. */
:focus-visible {
  outline: 2px solid rgba(245, 193, 90, 0.85) !important;
  outline-offset: 2px !important;
  border-radius: var(--tf-r-sm);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none !important;
}

::placeholder {
  color: var(--tf-text-4);
  opacity: 1;
}

/* Native form furniture, matched to the dark surface. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--tf-gold);
}
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}
/* ==========================================================================
   Trueflix UI layer, part 2 of 4 -- primitives and chrome.
   Buttons, fields, tables, chips, surfaces, header and navigation.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */

/* Page base and the app's own translucent page colour, deepened one step so
   white copy gains contrast without the navy turning black. */
.bg-\[\#040b14\] {
  background-color: var(--tf-bg);
}
.bg-\[\#040b14\]\/80 {
  background-color: rgba(3, 7, 14, 0.82);
}
.bg-\[\#040b14\]\/70 {
  background-color: rgba(3, 7, 14, 0.72);
}

/* Hairlines, re-tiered. The bundle used /8, /10 and /12 for everything; each
   maps to one of the three steps so depth reads as depth. */
.border-white\/8,
.border-white\/10 {
  border-color: var(--tf-line);
}
.border-white\/12,
.border-white\/15 {
  border-color: var(--tf-line-2);
}
.border-white\/20 {
  border-color: var(--tf-line-3);
}

/* Translucent fills. These are the "raised card" and "hover" washes. */
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.035);
}
.bg-white\/8 {
  background-color: rgba(255, 255, 255, 0.05);
}
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.065);
}
.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.24);
}

/* Radii, collapsed onto the four-step scale. The bundle used eleven different
   corner radii, including four separate arbitrary values between 20px and
   32px, which is why panels on the same screen never quite lined up. */
.rounded-lg {
  border-radius: var(--tf-r-sm);
}
.rounded-xl {
  border-radius: var(--tf-r);
}
.rounded-2xl {
  border-radius: var(--tf-r-lg);
}
.rounded-3xl,
.rounded-\[1\.25rem\],
.rounded-\[1\.5rem\],
.rounded-\[1\.75rem\],
.rounded-\[2rem\],
.rounded-\[2\.25rem\],
.rounded-\[2\.5rem\] {
  border-radius: var(--tf-r-xl);
}

/* A card is a div that carries a large radius and a hairline border -- the
   app's own shorthand for one, and used on every screen. Giving it an inset
   top highlight and one soft shadow makes a stack of them read as layers
   instead of as flat rectangles. */
div.rounded-2xl.border,
div.rounded-3xl.border,
div.rounded-\[2rem\].border,
div.rounded-\[1\.5rem\].border {
  border-color: var(--tf-line-2);
  background-image: var(--tf-grad-line);
  box-shadow: var(--tf-sh-1);
}

/* Dialogs and sheets get the heavier shadow. */
[role="dialog"] {
  border-color: var(--tf-line-2);
  box-shadow: var(--tf-sh-2);
  border-radius: var(--tf-r-xl);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

/* Primary action: gold, dark ink, pill. The bundle's gradient ran teal to
   coral; the same construction in gold makes a page whose only saturated
   colour is the thing you are meant to press. */
.btn-primary {
  background: var(--tf-grad-gold) !important;
  color: var(--tf-gold-ink) !important;
  border: 1px solid rgba(255, 233, 178, 0.55) !important;
  border-radius: var(--tf-r-pill) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 0.72rem 1.15rem !important;
  box-shadow: var(--tf-glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transition: transform 0.16s var(--tf-ease), filter 0.16s var(--tf-ease),
    box-shadow 0.16s var(--tf-ease) !important;
}
.btn-primary:hover {
  filter: brightness(1.06) saturate(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(245, 193, 90, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled,
.btn-primary[disabled] {
  filter: grayscale(0.55) brightness(0.8);
  box-shadow: none;
  cursor: not-allowed;
}

/* Secondary action: glass, hairline, pill. */
.btn-ghost {
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--tf-text) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r-pill) !important;
  font-weight: 600 !important;
  padding: 0.68rem 1.1rem !important;
  backdrop-filter: blur(8px);
  transition: background 0.16s var(--tf-ease), border-color 0.16s var(--tf-ease),
    color 0.16s var(--tf-ease), transform 0.16s var(--tf-ease) !important;
}
.btn-ghost:hover {
  background: rgba(245, 193, 90, 0.1) !important;
  border-color: rgba(245, 193, 90, 0.45) !important;
  color: var(--tf-gold-hi) !important;
  transform: translateY(-1px);
}

/* Any other bare button in the app -- icon buttons, close buttons, the small
   controls inside tables -- gets a sane pointer and plane colour so none of
   them keeps the browser default. */
#root button {
  cursor: pointer;
}
#root button:disabled {
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

.field {
  background: rgba(2, 8, 16, 0.6) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r) !important;
  color: var(--tf-text) !important;
  padding: 0.8rem 1rem !important;
  transition: border-color 0.16s var(--tf-ease), box-shadow 0.16s var(--tf-ease),
    background 0.16s var(--tf-ease) !important;
}
.field:focus {
  border-color: rgba(245, 193, 90, 0.6) !important;
  background: rgba(2, 8, 16, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(245, 193, 90, 0.14) !important;
}

/* Selects need their own arrow on a dark surface, or the OS draws a grey one
   on grey. */
select.field,
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--tf-text-3) 50%),
    linear-gradient(135deg, var(--tf-text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem !important;
}
select option {
  background: var(--tf-surface-2);
  color: var(--tf-text);
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

/* Labels: the app writes them as small slate caption text. They read better
   as a spaced all-caps micro-label above the control. */
fieldset > legend {
  color: var(--tf-text-2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tables and ledgers
   -------------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  color: var(--tf-text-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--tf-line-2);
  white-space: nowrap;
}
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--tf-line);
  color: var(--tf-text-2);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
/* The first column of a ledger is the thing being read (a date, a method, an
   id); it should carry the weight. */
tbody td:first-child {
  color: var(--tf-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Chips and badges
   -------------------------------------------------------------------------- */

/* Status pills. The app colours these with inline utility classes rather than
   a shared class, so they are normalised by shape here and left to keep their
   own colour, which is what carries the meaning. */
[class*="rounded-full"][class*="px-2"],
[class*="rounded-full"][class*="px-3"] {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-color: var(--tf-line-2);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* The site header is the only one carrying z-40 (the chat and support panels
   each have their own header at z-10). It becomes a proper glass bar: a
   saturating blur, a gold-tinted bottom hairline, and just enough shadow to
   separate it from the content that scrolls under it. */
#root header.z-40,
header.z-40 {
  background: rgba(3, 7, 14, 0.72) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  border-bottom: 1px solid var(--tf-line-2) !important;
  box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.9);
}

/* Navigation entries read as quiet pills that light up on hover, with the
   open one holding a gold wash. */
[data-testid="primary-nav"] a,
[data-testid="primary-nav"] button {
  border-radius: var(--tf-r-pill) !important;
  color: var(--tf-text-2);
  font-weight: 600;
  transition: background 0.15s var(--tf-ease), color 0.15s var(--tf-ease);
}
[data-testid="primary-nav"] a:hover,
[data-testid="primary-nav"] button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tf-text);
}
[data-testid="primary-nav"] [aria-current="page"],
[data-testid="primary-nav"] [data-active="true"] {
  background: rgba(245, 193, 90, 0.12) !important;
  color: var(--tf-gold-hi) !important;
}

/* The nav dropdowns hang off the bar; give them the same glass and edge as
   the bar itself. */
[data-testid="primary-nav"] [role="menu"] {
  background: rgba(11, 23, 38, 0.97) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r-lg) !important;
  box-shadow: var(--tf-sh-2) !important;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

/* Notification dropdown, matched to the same treatment. */
.tf-notif-host [role="dialog"] {
  background: rgba(11, 23, 38, 0.97) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r-lg) !important;
  box-shadow: var(--tf-sh-2) !important;
}

/* The balance shown in the bar is a number a member checks constantly: give
   it the tabular gold treatment so it reads as a figure, not as a label. */
[data-testid="nav-earn-balance"] {
  color: var(--tf-gold) !important;
  font-weight: 700 !important;
}

/* Mobile nav rows, which the shell already reflows into a second row. */
[data-testid="mobile-primary-nav"] > li {
  border-radius: var(--tf-r) !important;
  border-color: var(--tf-line) !important;
}
[data-testid^="mobile-nav-"] {
  border-radius: var(--tf-r) !important;
}
/* ==========================================================================
   Trueflix UI layer, part 3 of 4 -- core pages and wallet flows.
   Dashboard and watch, deposit, withdraw, KYC, ledgers, toasts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page framing
   -------------------------------------------------------------------------- */

/* The shell's content column. Capped and given a breathing gutter so that on a
   wide monitor the interface stops stretching to the window edge, which is
   what made long pages read as unfinished. */
.mx-auto.max-w-\[1400px\] {
  max-width: 1240px;
}

/* --------------------------------------------------------------------------
   Earnings and statistics
   -------------------------------------------------------------------------- */

/* The earn counter is the number the whole product exists to show. It gets
   the display face, the gold, and a soft glow behind it so it reads as the
   headline of the page it sits on. */
.earn-counter,
[data-testid="tf-watch-time-tile"] {
  color: var(--tf-gold) !important;
  font-family: var(--font-display, "Unbounded", sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 0 34px rgba(245, 193, 90, 0.32);
}

/* Stat tiles: the app builds these as small bordered boxes. Flat is fine for
   a label but not for a figure, so the number is lifted and the box gets the
   inset highlight used elsewhere. */
[data-testid^="admin-stat-"] {
  border-radius: var(--tf-r-lg);
}

/* KYC / loan notices on the dashboard: make them read as notices rather than
   as more content. */
[data-testid="dashboard-kyc-status"],
[data-testid="dashboard-loan-reminder"],
[data-testid="borrow-lock-banner"],
[data-testid="penalty-rate-banner"],
[data-testid="referral-cut-banner"] {
  border-radius: var(--tf-r-lg) !important;
  border-width: 1px !important;
  border-style: solid !important;
  padding: 0.95rem 1.1rem !important;
}

/* --------------------------------------------------------------------------
   Watch
   -------------------------------------------------------------------------- */

/* The player frame. A hairline ring keeps the black rectangle from bleeding
   into the page, and the shadow lifts it off the background. */
.aspect-video {
  border-radius: var(--tf-r-xl);
  overflow: hidden;
  box-shadow: var(--tf-sh-2);
  outline: 1px solid var(--tf-line-2);
  outline-offset: 0;
}
.aspect-video iframe,
.aspect-video video {
  border-radius: var(--tf-r-xl);
}

/* The running clock over the video is set as a pill so it stays legible
   against whatever frame is behind it. */
[data-testid="watch-clock"] {
  border-radius: var(--tf-r-pill) !important;
  background: rgba(3, 7, 14, 0.72) !important;
  border: 1px solid var(--tf-line-2);
  backdrop-filter: blur(10px);
  color: var(--tf-gold) !important;
  font-weight: 700 !important;
  padding: 0.3rem 0.7rem !important;
}

/* Comments. The bundle drew each one as a bare bordered row; they get the
   card treatment and a consistent author line instead. */
[data-testid="watch-comments"],
[data-testid="watch-comments-section"] {
  border-radius: var(--tf-r-xl);
}
[data-testid="watch-comments-section"] [class*="rounded-2xl"],
[data-testid="watch-comments"] [class*="rounded-2xl"] {
  border-radius: var(--tf-r) !important;
  border-color: var(--tf-line) !important;
}

/* The guest gate over a video is the last thing between a visitor and a
   signup, so it is given the heaviest card treatment on the sheet. */
[data-testid="guest-watch-gate"] {
  border-radius: var(--tf-r-xl) !important;
  border: 1px solid var(--tf-line-3) !important;
  background: rgba(11, 23, 38, 0.94) !important;
  box-shadow: var(--tf-sh-2);
  backdrop-filter: blur(16px);
  padding: 1.6rem !important;
}
[data-testid="guest-watch-gate-login"],
[data-testid="guest-watch-gate-register"] {
  border-radius: var(--tf-r-pill) !important;
}

/* --------------------------------------------------------------------------
   Wallet: deposit
   -------------------------------------------------------------------------- */

[data-testid="deposit-page"] {
  border-radius: var(--tf-r-xl);
}

/* Method tabs. The selected one has to be unmistakable, so it takes the gold
   wash and hairline rather than a slightly different grey. */
[data-testid="deposit-method-tabs"],
[data-testid="deposit-tab-crypto"],
[data-testid="deposit-tab-fiat"] {
  border-radius: var(--tf-r) !important;
}
[data-testid="deposit-method-tabs"] button {
  border-radius: var(--tf-r) !important;
  font-weight: 600;
  transition: background 0.15s var(--tf-ease), color 0.15s var(--tf-ease),
    border-color 0.15s var(--tf-ease);
}
[data-testid="deposit-method-tabs"] button[aria-selected="true"],
[data-testid="deposit-method-tabs"] button[data-state="active"] {
  background: rgba(245, 193, 90, 0.12) !important;
  border: 1px solid rgba(245, 193, 90, 0.4) !important;
  color: var(--tf-gold-hi) !important;
}

[data-testid="deposit-crypto-form"],
[data-testid="deposit-fiat-form"],
[data-testid="deposit-fiat-merchants"],
[data-testid="deposit-guide-modal"] {
  border-radius: var(--tf-r-xl) !important;
}

/* A deposit address is copied by eye off the screen, so it is set in the
   mono face, given room, and underlined on hover as the copy affordance. */
[data-testid="deposit-address-value"] {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  word-break: break-all;
  background: rgba(2, 8, 16, 0.66) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r) !important;
  padding: 0.8rem 0.95rem !important;
  color: var(--tf-gold-hi) !important;
}
[data-testid="deposit-copy-address"] {
  border-radius: var(--tf-r-pill) !important;
}

/* A pending deposit is a state, not an error; a gold pulse says "waiting". */
[data-testid="deposit-crypto-pending"],
[data-testid="deposit-polling"] {
  border-radius: var(--tf-r) !important;
  border-color: rgba(245, 193, 90, 0.35) !important;
}
[data-testid="deposit-empty"],
[data-testid="deposit-need-context"],
[data-testid="deposit-telegram-help"] {
  border-radius: var(--tf-r-lg) !important;
}

/* Merchant cards in the fiat list. */
[data-testid^="fiat-merchant-"] {
  border-radius: var(--tf-r-lg) !important;
  border-color: var(--tf-line) !important;
  transition: border-color 0.16s var(--tf-ease), transform 0.16s var(--tf-ease);
}
[data-testid^="fiat-merchant-"]:hover {
  border-color: rgba(245, 193, 90, 0.4) !important;
  transform: translateY(-1px);
}

/* Ledger rows, shared by the deposit and transaction history lists. */
[data-testid="deposit-ledger"],
[data-testid="withdraw-ledger"] {
  border-radius: var(--tf-r-xl) !important;
}
[data-testid^="deposit-row-"] {
  border-radius: var(--tf-r) !important;
  border-color: var(--tf-line) !important;
}
[data-testid^="deposit-row-"]:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

/* --------------------------------------------------------------------------
   Wallet: withdraw
   -------------------------------------------------------------------------- */

[data-testid="withdraw-form"] {
  border-radius: var(--tf-r-xl) !important;
}

/* The amount field is the one thing a member must get right on this screen. */
[data-testid="withdraw-amount"] {
  font-family: var(--font-display, "Unbounded", sans-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--tf-gold) !important;
  border-radius: var(--tf-r) !important;
}

/* Method pickers, chosen and unchosen. */
[data-testid^="withdraw-method-"] {
  border-radius: var(--tf-r-lg) !important;
  transition: border-color 0.16s var(--tf-ease), background 0.16s var(--tf-ease);
}
[data-testid^="withdraw-method-"][data-selected="true"],
[data-testid^="withdraw-method-"][aria-pressed="true"],
[data-testid^="withdraw-method-"][aria-checked="true"] {
  border-color: rgba(245, 193, 90, 0.5) !important;
  background: rgba(245, 193, 90, 0.08) !important;
}
[data-testid="withdraw-method-max"] {
  border-radius: var(--tf-r-pill) !important;
  color: var(--tf-gold) !important;
  font-weight: 700 !important;
}
[data-testid="withdraw-submit"] {
  border-radius: var(--tf-r-pill) !important;
}

/* The eligibility list. Every unmet gate has to be visible at a glance, so
   the list gets a surface of its own and each gate a row. */
[data-testid="withdraw-eligibility"],
[data-testid="withdraw-gates-list"],
[data-testid="withdraw-gates-open"],
[data-testid="withdraw-gates-blocked"] {
  border-radius: var(--tf-r-lg) !important;
  border-color: var(--tf-line-2) !important;
}
[data-testid="withdraw-submit-blocked-notice"],
[data-testid="withdraw-loan-block"],
[data-testid="withdraw-gate-loan"] {
  border-radius: var(--tf-r) !important;
  border-color: rgba(255, 133, 119, 0.35) !important;
  color: var(--tf-coral);
}
[data-testid="wallet-withdraw-cta"] {
  border-radius: var(--tf-r-pill) !important;
}
[data-testid="withdraw-country"] {
  border-radius: var(--tf-r) !important;
}

/* --------------------------------------------------------------------------
   KYC
   -------------------------------------------------------------------------- */

[data-testid="kyc-page"],
[data-testid="kyc-form"] {
  border-radius: var(--tf-r-xl) !important;
}

/* The stepper. Done, current and pending have to be distinguishable at a
   glance, so all three states are given explicit colour rather than relying
   on the bundle's near-identical greys. */
[data-testid="kyc-steps"],
[data-testid^="kyc-step-"] {
  border-radius: var(--tf-r-lg) !important;
}
[data-testid^="kyc-step-"] [class*="rounded-full"] {
  border-color: var(--tf-line-2);
}
[data-testid="kyc-next"],
[data-testid="kyc-submit"] {
  border-radius: var(--tf-r-pill) !important;
}
[data-testid="kyc-approved-state"],
[data-testid="kyc-pending-state"],
[data-testid="kyc-status-badge"],
[data-testid="profile-kyc-status"] {
  border-radius: var(--tf-r-lg) !important;
}
[data-testid="kyc-approved-state"] {
  border-color: rgba(53, 211, 156, 0.35) !important;
}
[data-testid="kyc-pending-state"] {
  border-color: rgba(245, 193, 90, 0.35) !important;
}
[data-testid="kyc-liveness"] video,
[data-testid="kyc-liveness"] canvas,
[data-testid="kyc-liveness"] img {
  border-radius: var(--tf-r-lg);
}
[data-testid="kyc-pep"],
[data-testid="kyc-sanctions"] {
  border-radius: var(--tf-r) !important;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

/* Every confirmation in the app arrives as one of these. They are bottom
   anchored and slide, so they need a solid surface, a clear edge and enough
   shadow to sit above whatever they cover. */
[data-testid="deposit-toast"],
[data-testid="referral-toast"],
[data-testid="services-purchase-toast"] {
  border-radius: var(--tf-r-lg) !important;
  background: rgba(14, 30, 50, 0.97) !important;
  border: 1px solid var(--tf-line-3) !important;
  box-shadow: var(--tf-sh-2) !important;
  backdrop-filter: blur(14px);
  color: var(--tf-text) !important;
  font-weight: 600;
}
/* ==========================================================================
   Trueflix UI layer, part 4 of 4 -- support, chat and motion.
   Chatroom, support desk, tickets, floating widgets, the staff button.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Chat surfaces
   -------------------------------------------------------------------------- */

/* The chat and support panels were built on a purple ink (#120b22, #1b1033)
   that belongs to no other part of the product, which is why opening support
   felt like leaving the site. Every one of them is re-based onto the navy and
   gold the rest of the app now uses. The !important is needed because the
   shell writes some of these colours inline. */

[data-testid="support-chat-panel"],
[data-testid="support-page-panel"],
[data-testid="proactive-helper-popup"],
[data-testid="chatroom-page"],
[data-testid="tickets-page"],
[data-testid="ticket-detail-page"] {
  border-radius: var(--tf-r-xl) !important;
  border: 1px solid var(--tf-line-2) !important;
  background: rgba(11, 23, 38, 0.97) !important;
  box-shadow: var(--tf-sh-2) !important;
  backdrop-filter: blur(18px) saturate(150%);
}

/* Panel headers carry the bot's face and name; give them the same hairline as
   every other header in the app. */
[data-testid="support-chat-panel"] > header,
[data-testid="support-page-panel"] > header,
[data-testid="chatroom-page"] > header,
[data-testid="tickets-page"] > header {
  background: rgba(6, 13, 24, 0.7) !important;
  border-bottom: 1px solid var(--tf-line-2) !important;
  padding: 0.85rem 1rem !important;
}

/* Message bubbles. Incoming sits on a raised surface and outgoing takes the
   gold, so a member can follow a thread without reading the names. */
[data-testid="support-chat-messages"] > *,
[data-testid="support-page-messages"] > *,
[data-testid="chatroom-messages"] > * {
  border-radius: var(--tf-r-lg) !important;
}
[data-testid="chatroom-messages"] [class*="rounded-2xl"],
[data-testid="support-chat-messages"] [class*="rounded-2xl"] {
  border-radius: var(--tf-r-lg) !important;
  border-color: var(--tf-line) !important;
}
[data-testid="support-chat-system"],
[data-testid="chatroom-typing"],
[data-testid="withdraw-activity-typing"] {
  color: var(--tf-text-3) !important;
  font-size: 0.78rem;
}

/* The composer: one bar holding an input and a send button, pinned to the
   bottom of the panel. */
[data-testid="chatroom-composer"],
[data-testid="support-chat-panel"] footer,
[data-testid="support-page-panel"] footer {
  background: rgba(6, 13, 24, 0.72) !important;
  border-top: 1px solid var(--tf-line-2) !important;
  padding: 0.7rem !important;
}
[data-testid="chatroom-input"],
[data-testid="ticket-reply-input"] {
  border-radius: var(--tf-r-pill) !important;
  background: rgba(2, 8, 16, 0.6) !important;
  border: 1px solid var(--tf-line-2) !important;
}
[data-testid="chatroom-send"],
[data-testid="ticket-reply-submit"],
[data-testid="support-continue-bot"],
[data-testid="support-page-continue-bot"],
[data-testid="support-request-live"],
[data-testid="support-page-request-live"] {
  border-radius: var(--tf-r-pill) !important;
  font-weight: 700 !important;
}
[data-testid="support-chat-close"] {
  border-radius: var(--tf-r-pill) !important;
}

/* Counters and the live pill above the room. */
[data-testid="chatroom-live"],
[data-testid="chatroom-total-online"],
[data-testid="chatroom-total-joined"],
[data-testid="chatroom-social-counters"] {
  border-radius: var(--tf-r-pill) !important;
  border: 1px solid var(--tf-line) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 0.3rem 0.75rem !important;
}
[data-testid="chatroom-live"] {
  border-color: rgba(42, 214, 184, 0.35) !important;
  color: var(--tf-teal) !important;
  font-weight: 700;
}

/* The blocked-composer notice -- send is off until an account is funded or
   verified, and that reason has to be legible. */
[data-testid="chatroom-send-blocked"],
[data-testid="support-chat-system"],
[data-testid="chatroom-loading"] {
  border-radius: var(--tf-r) !important;
  border-color: rgba(245, 193, 90, 0.3) !important;
}

/* Tickets and the withdraw-activity feed, which share the same card shape. */
[data-testid^="ticket-msg-"],
[data-testid^="support-msg-"],
[data-testid="withdraw-activity-list"],
[data-testid^="withdraw-activity-item"] {
  border-radius: var(--tf-r-lg) !important;
}
[data-testid="support-msg-photo"],
[data-testid="withdraw-activity-comment-input"] {
  border-radius: var(--tf-r) !important;
}
[data-testid="withdraw-activity-comment-send"] {
  border-radius: var(--tf-r-pill) !important;
}

/* --------------------------------------------------------------------------
   Floating widgets
   -------------------------------------------------------------------------- */

/* The action cluster in the corner: one solid surface, one edge, one shadow,
   instead of a stack of differently-styled buttons. */
[data-testid="floating-actions"],
[data-testid="floating-chat"],
[data-testid="floating-chat-chooser"],
[data-testid="floating-chat-chatroom"],
[data-testid="floating-chat-telegram"] {
  border-radius: var(--tf-r-lg) !important;
  background: rgba(11, 23, 38, 0.96) !important;
  border: 1px solid var(--tf-line-2) !important;
  box-shadow: var(--tf-sh-2) !important;
  backdrop-filter: blur(14px);
}

/* --------------------------------------------------------------------------
   The staff button
   -------------------------------------------------------------------------- */

/* Written by the shell itself with inline !important, in purple. Re-based on
   the navy surface with the gold word, and straightened from a squircle into
   the same radius the rest of the sheet uses. */
#tf-helix-fab {
  background: rgba(11, 23, 38, 0.96) !important;
  border: 1px solid var(--tf-line-2) !important;
  border-radius: var(--tf-r) !important;
  box-shadow: var(--tf-sh-2) !important;
  backdrop-filter: blur(14px);
  color: var(--tf-text) !important;
}
#tf-helix-fab .hx-core {
  background: var(--tf-surface-2) !important;
  border-radius: var(--tf-r-sm) !important;
}
#tf-helix-fab .hx-word {
  color: var(--tf-gold) !important;
}
#tf-helix-fab:hover {
  border-color: rgba(245, 193, 90, 0.5) !important;
}

/* The full-height staff desk and its scrim. */
#tf-helix-panel {
  border-radius: var(--tf-r-xl) !important;
  border: 1px solid var(--tf-line-2) !important;
  background: rgba(11, 23, 38, 0.98) !important;
  box-shadow: var(--tf-sh-2) !important;
}
#tf-helix-desk {
  background: rgba(3, 2, 8, 0.6) !important;
  backdrop-filter: blur(3px);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

/* One transition rhythm across the interactive surface, so nothing snaps
   while its neighbour eases. */
[data-testid^="deposit-method-tabs"] button,
.btn-primary,
.btn-ghost,
.field,
a,
button {
  transition-timing-function: var(--tf-ease);
}

/* Entrance for the panels and dialogs that appear on demand: a short lift and
   fade, keyed off the app's own open class and off role=dialog, so it does
   not need the bundle changed to animate. */
@keyframes tf-ui-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[role="dialog"],
[data-testid="support-chat-panel"],
[data-testid="deposit-guide-modal"],
[data-testid="proactive-helper-popup"],
[data-testid="loan-repayment-modal"] {
  animation: tf-ui-rise 0.22s var(--tf-ease) both;
}

/* Somebody who has asked their system for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================================
   Trueflix UI layer, part 5 -- keep the playing film clear.

   The watch player paints its own wording over the video: an earnings counter
   and balance along the top, a session total and a running clock along the
   bottom, a Withdraw call-to-action in the top-right corner, a Pause button
   under the middle of the frame, and a notice that rises every half minute
   ("+$x this watch", "Watch complete ..."). Over a film that is a lot of
   chrome, and the two call-to-actions sit straight on top of the picture.

   This layer strips the two buttons a member does not need while the clip is
   running and drops every remaining line to a whisper, so the frame reads
   first. Everything is scoped to the player surface -- the single
   .relative.aspect-video.bg-black on the page -- so the same words stay full
   strength in the wallet and on the dashboard, where they are the point.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Off the film entirely
   -------------------------------------------------------------------------- */

/* The Withdraw shortcut parked on the top-right corner of the video. */
.relative.aspect-video.bg-black a[href^="/withdraw"] {
  display: none !important;
}

/* The Pause control under the middle of the frame; the player's own controls
   still pause the clip. */
.relative.aspect-video.bg-black button[class*="bottom-14"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   A whisper, not a headline
   -------------------------------------------------------------------------- */

/* The two status rows -- balance and earnings along the top, session total and
   running clock along the bottom -- step far back so the frame behind them
   reads first. */
.relative.aspect-video.bg-black [class*="inset-x-2"][class*="top-2"],
.relative.aspect-video.bg-black [class*="inset-x-2"][class*="bottom-2"] {
  opacity: 0.18 !important;
}

/* The running clock keeps its pill, but at the row's new weight it loses the
   solid slate fill and the glow. */
.relative.aspect-video.bg-black [data-testid="watch-clock"] {
  background: rgba(3, 7, 14, 0.45) !important;
  box-shadow: none !important;
}

/* The notice that rises every half minute. It has to inform without covering
   the film, so it is faded hard and its panel loses the solid fill and the
   heavy shadow. */
.relative.aspect-video.bg-black [role="status"] {
  opacity: 0.22 !important;
  background: rgba(3, 7, 14, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: blur(3px);
}
