/*
 * Mini App Design System — Final Release
 * Brand values are injected at runtime by mini_head.php from Admin Settings.
 * This file intentionally contains no authoritative app name, logo URL,
 * primary colour or secondary colour.
 */

:root {
    /* Neutral foundation */
    --tf-bg: #f7f8f5;
    --tf-bg-raised: #fbfcfa;
    --tf-surface: #ffffff;
    --tf-surface-soft: #f3f5f2;
    --tf-surface-strong: #ecefeb;
    --tf-ink: #17201d;
    --tf-ink-soft: #3f4b47;
    --tf-muted: #6f7b77;
    --tf-subtle: #98a19e;
    --tf-line: #e2e6e3;
    --tf-line-strong: #cfd6d2;

    /* Semantic colours are intentionally independent from branding. */
    --tf-success: #157347;
    --tf-success-soft: #eaf6ef;
    --tf-warning: #a65d0a;
    --tf-warning-soft: #fff4df;
    --tf-danger: #b42318;
    --tf-danger-soft: #fff0ee;
    --tf-info: #315a74;
    --tf-info-soft: #edf5f9;

    /* Brand-derived helpers. --tf-primary/secondary and RGB values are runtime injected. */
    --tf-primary-soft: rgba(var(--tf-primary-rgb), .09);
    --tf-primary-soft-strong: rgba(var(--tf-primary-rgb), .15);
    --tf-primary-line: rgba(var(--tf-primary-rgb), .24);
    --tf-primary-shadow: rgba(var(--tf-primary-rgb), .18);
    --tf-secondary-soft: rgba(var(--tf-secondary-rgb), .10);
    --tf-secondary-line: rgba(var(--tf-secondary-rgb), .24);

    /* Type scale */
    --tf-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tf-text-xs: .6875rem;
    --tf-text-sm: .8125rem;
    --tf-text-md: .9375rem;
    --tf-text-lg: 1.0625rem;
    --tf-text-xl: 1.25rem;
    --tf-text-2xl: 1.5rem;
    --tf-text-display: clamp(2rem, 10vw, 2.7rem);

    /* Spacing */
    --tf-space-1: .25rem;
    --tf-space-2: .5rem;
    --tf-space-3: .75rem;
    --tf-space-4: 1rem;
    --tf-space-5: 1.25rem;
    --tf-space-6: 1.5rem;
    --tf-space-7: 1.75rem;
    --tf-space-8: 2rem;

    /* Geometry */
    --tf-radius-xs: .5rem;
    --tf-radius-sm: .75rem;
    --tf-radius-md: 1rem;
    --tf-radius-lg: 1.25rem;
    --tf-radius-xl: 1.5rem;
    --tf-radius-pill: 999px;
    --tf-control-h: 3.25rem;

    /* Elevation is restrained by design. */
    --tf-shadow-xs: 0 1px 2px rgba(23, 32, 29, .035);
    --tf-shadow-sm: 0 8px 24px rgba(23, 32, 29, .055);
    --tf-shadow-focus: 0 0 0 4px var(--tf-primary-soft-strong);

    /* Layout */
    --tf-shell-max: 31.25rem;
    --tf-page-x: 1rem;
    --tf-dock-height: 4.75rem;
    --tf-dock-space: 5.35rem;
    --tf-safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px));
    --tf-safe-bottom: max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
    width: 100%;
    min-height: 100%;
    background: var(--tf-bg);
    color: var(--tf-ink);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--tf-bg);
    color: var(--tf-ink);
    font-family: var(--tf-font);
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}

button, a, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { border: 0; }
::selection { background: var(--tf-primary-soft-strong); }

:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 2px;
}

/* ---------- App foundation ---------- */
.tf-shell {
    position: relative;
    width: 100%;
    max-width: var(--tf-shell-max);
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--tf-telegram-viewport, 100dvh);
    margin: 0 auto;
    overflow-x: clip;
    background: var(--tf-bg);
    isolation: isolate;
}

.tf-safe-bottom {
    padding-bottom: calc(var(--tf-dock-space) + var(--tf-safe-bottom));
}

.tf-page {
    padding: var(--tf-space-4) var(--tf-page-x) var(--tf-space-2);
}

.tf-stack > * + * { margin-top: var(--tf-space-4); }

.tf-cluster { display: flex; align-items: center; gap: var(--tf-space-3); }
.tf-cluster--between { justify-content: space-between; }
.tf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tf-space-3); }
.tf-scroll-x { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.tf-scroll-x::-webkit-scrollbar { display: none; }

/* ---------- Phase 3 app chrome ---------- */
.tf-appbar {
    position: sticky;
    top: 0;
    z-index: 150;
    width: 100%;
    padding-top: var(--tf-safe-top);
    border-bottom: 1px solid var(--tf-line);
    background: var(--tf-bg);
    box-shadow: 0 1px 0 rgba(23, 32, 29, .015);
}

.tf-appbar__inner {
    min-height: 4.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .62rem var(--tf-page-x);
}

.tf-brand-lockup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    border-radius: var(--tf-radius-sm);
}

.tf-brandmark {
    position: relative;
    width: 2.65rem;
    height: 2.65rem;
    flex: none;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: .9rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-brandmark__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.tf-brandmark img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .22rem;
    background: var(--tf-surface);
}

.tf-brand-lockup__copy { min-width: 0; display: grid; gap: .16rem; }
.tf-brand-lockup__copy strong {
    max-width: 10.5rem;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .94rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.018em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-brand-lockup__copy small {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: var(--tf-muted);
    font-size: .625rem;
    line-height: 1.2;
    font-weight: 800;
}
.tf-live-dot {
    width: .42rem;
    height: .42rem;
    flex: none;
    border-radius: 50%;
    background: var(--tf-success);
    box-shadow: 0 0 0 .2rem var(--tf-success-soft);
}

.tf-appbar__actions { display: flex; align-items: center; gap: .48rem; flex: none; }
.tf-appbar__action {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-line);
    border-radius: .82rem;
    background: var(--tf-surface);
    color: var(--tf-ink-soft);
    box-shadow: var(--tf-shadow-xs);
}
.tf-appbar__action:focus-visible { border-color: var(--tf-primary); }

.tf-user-chip {
    position: relative;
    width: 2.55rem;
    height: 2.55rem;
    flex: none;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: 50%;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .82rem;
    font-weight: 900;
}
.tf-user-chip__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.tf-user-chip img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--tf-surface); }

.tf-dock {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 200;
    width: 100%;
    max-width: var(--tf-shell-max);
    transform: translateX(-50%);
    border-top: 1px solid var(--tf-line);
    background: var(--tf-surface);
    box-shadow: 0 -8px 24px rgba(23, 32, 29, .045);
}
.tf-dock__inner {
    min-height: var(--tf-dock-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: .38rem .38rem calc(.38rem + var(--tf-safe-bottom));
}
.tf-dock__item {
    position: relative;
    min-width: 0;
    min-height: 3.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: .82rem;
    color: var(--tf-subtle);
}
.tf-dock__item::before {
    content: "";
    position: absolute;
    top: -.39rem;
    left: 50%;
    width: 1.5rem;
    height: .18rem;
    transform: translateX(-50%) scaleX(.45);
    border-radius: 999px;
    background: transparent;
    transition: transform .16s ease, background .16s ease;
}
.tf-dock__icon {
    width: 2.15rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: .68rem;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.tf-dock__label {
    max-width: 100%;
    overflow: hidden;
    font-size: .625rem;
    line-height: 1.05;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-dock__item.is-active { color: var(--tf-primary); }
.tf-dock__item.is-active::before { background: var(--tf-primary); transform: translateX(-50%) scaleX(1); }
.tf-dock__item.is-active .tf-dock__icon { background: var(--tf-primary-soft); }
.tf-dock__item.is-pending .tf-dock__icon { background: var(--tf-primary-soft); color: var(--tf-primary); animation: tfDockPulse .7s ease-in-out infinite alternate; }

html[data-route-transition="pending"] .tf-shell { cursor: progress; }

/* ---------- Brand utilities ---------- */
.tf-bg-primary { background: var(--tf-primary) !important; color: var(--tf-on-primary); }
.tf-bg-secondary { background: var(--tf-secondary) !important; color: var(--tf-on-secondary); }
.tf-text-primary { color: var(--tf-primary) !important; }
.tf-text-secondary { color: var(--tf-secondary) !important; }
.tf-brand-soft { background: var(--tf-primary-soft) !important; color: var(--tf-primary) !important; }
.tf-secondary-soft { background: var(--tf-secondary-soft) !important; color: var(--tf-secondary) !important; }
.tf-brand-line { border-color: var(--tf-primary-line) !important; }
.tf-focus-ring { box-shadow: var(--tf-shadow-focus); }

/* ---------- Typography ---------- */
.tf-kicker {
    margin: 0;
    color: var(--tf-primary);
    font-size: var(--tf-text-xs);
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.tf-title {
    margin: 0;
    color: var(--tf-ink);
    font-size: var(--tf-text-xl);
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: -.018em;
}

.tf-subtitle {
    margin: 0;
    color: var(--tf-muted);
    font-size: var(--tf-text-sm);
    line-height: 1.65;
    font-weight: 550;
}

.tf-body { color: var(--tf-ink-soft); font-size: var(--tf-text-md); line-height: 1.65; }
.tf-caption { color: var(--tf-muted); font-size: var(--tf-text-xs); line-height: 1.5; font-weight: 650; }
.tf-money { font-variant-numeric: tabular-nums; letter-spacing: -.035em; }

/* ---------- Surfaces ---------- */
.tf-surface {
    position: relative;
    background: var(--tf-surface);
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-xs);
}

.tf-surface--soft { background: var(--tf-surface-soft); border-color: transparent; }
.tf-surface--outlined { background: transparent; border: 1px solid var(--tf-line); box-shadow: none; }
.tf-panel { padding: var(--tf-space-4); border: 1px solid var(--tf-line); border-radius: var(--tf-radius-md); background: var(--tf-surface); }
.tf-divider { height: 1px; background: var(--tf-line); }

/* ---------- Cards and compact metrics ---------- */
.tf-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tf-space-3); }
.tf-stat {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-md);
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-stat__label { color: var(--tf-muted); font-size: var(--tf-text-xs); font-weight: 750; }
.tf-stat__value { margin-top: .3rem; color: var(--tf-ink); font-size: 1.18rem; font-weight: 850; letter-spacing: -.025em; }

/* ---------- Icon containers ---------- */
.tf-icon {
    width: 2.65rem;
    height: 2.65rem;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: var(--tf-radius-sm);
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    box-shadow: none;
}
.tf-icon--secondary { color: var(--tf-secondary); border-color: var(--tf-secondary-line); background: var(--tf-secondary-soft); }
.tf-icon--neutral { color: var(--tf-ink-soft); border-color: var(--tf-line); background: var(--tf-surface-soft); }

/* ---------- Status ---------- */
.tf-status {
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .28rem .58rem;
    border: 1px solid transparent;
    border-radius: var(--tf-radius-pill);
    font-size: .65rem;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
}
.tf-status--brand { background: var(--tf-primary-soft); color: var(--tf-primary); border-color: var(--tf-primary-line); }
.tf-status--success { background: var(--tf-success-soft); color: var(--tf-success); }
.tf-status--warning { background: var(--tf-warning-soft); color: var(--tf-warning); }
.tf-status--danger { background: var(--tf-danger-soft); color: var(--tf-danger); }

/* ---------- Controls ---------- */
.tf-label {
    display: block;
    margin-bottom: .45rem;
    color: var(--tf-ink-soft);
    font-size: var(--tf-text-sm);
    line-height: 1.35;
    font-weight: 800;
}

.tf-field {
    width: 100%;
    min-width: 0;
    min-height: var(--tf-control-h);
    padding: .78rem .9rem;
    border: 1px solid var(--tf-line-strong);
    border-radius: var(--tf-radius-sm);
    outline: none;
    background: var(--tf-surface);
    color: var(--tf-ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tf-field::placeholder { color: var(--tf-subtle); }
.tf-field:hover { border-color: var(--tf-line-strong); }
.tf-field:focus { border-color: var(--tf-primary); box-shadow: var(--tf-shadow-focus); }
.tf-field:disabled { cursor: not-allowed; background: var(--tf-surface-soft); color: var(--tf-muted); }

.tf-button {
    min-height: var(--tf-control-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .78rem 1rem;
    border-radius: var(--tf-radius-sm);
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: transform .14s ease, opacity .14s ease, background .16s ease, border-color .16s ease;
}
.tf-button:active { transform: translateY(1px) scale(.99); }
.tf-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.tf-button--primary {
    width: 100%;
    background: var(--tf-primary);
    color: var(--tf-on-primary);
    box-shadow: 0 7px 18px var(--tf-primary-shadow);
}
.tf-button--primary:hover { background: var(--tf-primary-pressed); }
.tf-button--secondary { background: var(--tf-secondary); color: var(--tf-on-secondary); }
.tf-button--tonal { background: var(--tf-primary-soft); color: var(--tf-primary); box-shadow: none; }
.tf-button--ghost { background: transparent; color: var(--tf-ink-soft); border: 1px solid var(--tf-line); }
.tf-button--danger { background: var(--tf-danger); color: #fff; }
.tf-button--inline { width: auto; min-height: 2.5rem; padding: .62rem .8rem; }

/* ---------- Choice cards ---------- */
.tf-choice {
    display: flex;
    align-items: center;
    gap: var(--tf-space-3);
    padding: .8rem;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-md);
    background: var(--tf-surface);
    box-shadow: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.tf-choice.is-active {
    border-color: var(--tf-primary);
    background: var(--tf-primary-soft);
    box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), .06);
}

/* ---------- Progress ---------- */
.tf-progress {
    height: .52rem;
    overflow: hidden;
    border-radius: var(--tf-radius-pill);
    background: var(--tf-surface-strong);
}
.tf-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: var(--tf-primary);
    box-shadow: none;
    transition: width .24s ease;
}
/* ---------- Filters ---------- */
.tf-filter {
    min-height: 2.4rem;
    padding: .58rem .78rem;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-pill);
    background: var(--tf-surface);
    color: var(--tf-muted);
    font-size: var(--tf-text-xs);
    font-weight: 800;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.tf-filter.is-active { background: var(--tf-primary); color: var(--tf-on-primary); border-color: var(--tf-primary); box-shadow: none; }

/* ---------- Empty/loading/system states ---------- */
.tf-empty {
    padding: 2rem 1.25rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: var(--tf-radius-lg);
    background: var(--tf-surface);
    text-align: center;
}
.tf-empty__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: var(--tf-radius-md);
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}

.tf-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--tf-surface-strong);
}
.tf-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
    animation: tfShimmer 1.25s infinite;
}

.tf-toast {
    position: fixed;
    left: 50%;
    top: calc(.75rem + var(--tf-safe-top));
    z-index: 220;
    width: max-content;
    max-width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .82rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--tf-radius-sm);
    color: #fff;
    background: var(--tf-ink);
    box-shadow: 0 10px 28px rgba(23,32,29,.16);
    font-size: var(--tf-text-sm);
    font-weight: 750;
    animation: tfToastIn .18s ease-out both;
}
.tf-toast__icon {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
}

.tf-offline-banner {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tf-dock-space) + var(--tf-safe-bottom));
    z-index: 180;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: calc(var(--tf-shell-max) - 2rem);
    padding: .72rem .85rem;
    border-radius: var(--tf-radius-sm);
    color: #fff;
    background: var(--tf-danger);
    box-shadow: 0 10px 24px rgba(180,35,24,.15);
    font-size: var(--tf-text-sm);
    font-weight: 750;
    text-align: center;
}

/* ---------- Interaction/motion ---------- */
.tf-tap { transition: transform .14s ease, opacity .14s ease; }
.tf-tap:active { transform: translateY(1px) scale(.99); opacity: .92; }
.tf-page-enter { animation: tfPageEnter .2s ease-out both; }

@keyframes tfPageEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes tfSpin { to { transform: rotate(360deg); } }
@keyframes tfShimmer { to { transform: translateX(100%); } }
@keyframes tfToastIn { from { opacity: 0; transform: translate(-50%, -.35rem) scale(.98); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes tfDockPulse { from { transform: scale(.96); opacity: .72; } to { transform: scale(1); opacity: 1; } }
@keyframes slideMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulseSoft { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.97); } }

@media (max-width: 350px) {
    :root { --tf-page-x: .75rem; }
    .tf-title { font-size: 1.1rem; }
    .tf-stat { padding: .78rem; }
    .tf-brand-lockup__copy strong { max-width: 7.2rem; }
    .tf-appbar__actions { gap: .32rem; }
    .tf-appbar__action, .tf-user-chip { width: 2.4rem; height: 2.4rem; }
    .tf-dock__label { font-size: .58rem; }
}

@media (min-width: 501px) {
    .tf-shell { border-inline: 1px solid var(--tf-line); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ========================================================================== 
   Phase 4 — Dashboard + Tasks
   Dedicated Mini App screen components.
   ========================================================================== */

.tf-status__dot {
    width: .42rem;
    height: .42rem;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 .18rem rgba(21, 115, 71, .09);
}

.tf-dashboard,
.tf-tasks {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.tf-dashboard__welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-inline: .1rem;
}
.tf-dashboard__welcome > div { min-width: 0; }
.tf-dashboard__welcome-title {
    margin: .28rem 0 0;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-dashboard__welcome-copy {
    max-width: 24rem;
    margin: .28rem 0 0;
    color: var(--tf-muted);
    font-size: .75rem;
    line-height: 1.55;
    font-weight: 600;
}

.tf-earnings-pass {
    position: relative;
    overflow: hidden;
    padding: 1.18rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1.35rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}
.tf-earnings-pass::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .3rem;
    background: var(--tf-primary);
}
.tf-earnings-pass__route {
    position: absolute;
    top: .68rem;
    right: 1rem;
    width: 4.6rem;
    height: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: .55;
}
.tf-earnings-pass__route::before {
    content: "";
    position: absolute;
    left: .25rem;
    right: .25rem;
    top: 50%;
    border-top: 1px dashed var(--tf-primary-line);
}
.tf-earnings-pass__route span {
    position: relative;
    z-index: 1;
    width: .42rem;
    height: .42rem;
    border: 1px solid var(--tf-primary);
    border-radius: 50%;
    background: var(--tf-surface);
}
.tf-earnings-pass__route span:nth-child(2) { background: var(--tf-primary); }
.tf-earnings-pass__topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 4.7rem;
}
.tf-earnings-pass__topline > div { min-width: 0; }
.tf-earnings-pass__label {
    margin: 0;
    color: var(--tf-muted);
    font-size: .68rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .025em;
}
.tf-earnings-pass__amount {
    margin: .38rem 0 0;
    overflow-wrap: anywhere;
    color: var(--tf-ink);
    font-size: clamp(1.9rem, 9vw, 2.55rem);
    line-height: 1.04;
    font-weight: 950;
}
.tf-earnings-pass__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
    padding-top: .92rem;
    border-top: 1px solid var(--tf-line);
}
.tf-earnings-pass__stat {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .65rem .72rem;
    border-radius: .78rem;
    background: var(--tf-surface-soft);
}
.tf-earnings-pass__stat span {
    color: var(--tf-muted);
    font-size: .65rem;
    line-height: 1.3;
    font-weight: 700;
}
.tf-earnings-pass__stat strong {
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .78rem;
    line-height: 1.3;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-runway {
    min-height: 3.6rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--tf-line);
    border-radius: 1rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-runway__badge {
    width: 3.6rem;
    flex: none;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--tf-primary-line);
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-runway__viewport {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 .8rem, #000 calc(100% - .8rem), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 .8rem, #000 calc(100% - .8rem), transparent);
}
.tf-runway__track {
    width: max-content;
    display: flex;
    align-items: center;
    will-change: transform;
    animation: tfRunwayMarquee 28s linear infinite;
}
.tf-runway__group {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}
.tf-runway__item {
    display: inline-flex;
    align-items: center;
    gap: .58rem;
    color: var(--tf-ink-soft);
    font-size: .76rem;
    line-height: 1.35;
    font-weight: 750;
    white-space: nowrap;
}
.tf-runway__item i {
    width: .38rem;
    height: .38rem;
    flex: none;
    border-radius: 50%;
    background: var(--tf-secondary);
    box-shadow: 0 0 0 .2rem var(--tf-secondary-soft);
}

.tf-dashboard__section,
.tf-task-section { display: grid; gap: .75rem; }
.tf-section-heading {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-inline: .08rem;
}
.tf-section-heading > div { min-width: 0; }
.tf-section-heading .tf-title { margin-top: .22rem; }
.tf-section-heading__meta {
    flex: none;
    color: var(--tf-subtle);
    font-size: .65rem;
    line-height: 1.3;
    font-weight: 800;
}

.tf-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}
.tf-quick-action {
    min-width: 0;
    min-height: 6.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .72rem .3rem;
    border: 1px solid var(--tf-line);
    border-radius: 1rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
    text-align: center;
}
.tf-quick-action__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    margin-bottom: .12rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: .82rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-quick-action__icon--secondary {
    border-color: var(--tf-secondary-line);
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
}
.tf-quick-action strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .72rem;
    line-height: 1.2;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-quick-action small {
    max-width: 100%;
    overflow: hidden;
    color: var(--tf-subtle);
    font-size: .58rem;
    line-height: 1.2;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-banner-rail {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: .05rem 0 .25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.tf-banner-rail::-webkit-scrollbar { display: none; }
.tf-banner-card {
    min-width: 100%;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--tf-line);
    border-radius: 1rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-banner-card__media {
    position: relative;
    display: block;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--tf-surface-soft);
}
.tf-banner-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tf-banner-card__caption {
    display: block;
    overflow: hidden;
    padding: .7rem .82rem .76rem;
    color: var(--tf-ink);
    font-size: .75rem;
    line-height: 1.35;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-support-strip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .72rem;
    padding: .82rem;
    border: 1px solid var(--tf-line);
    border-radius: 1rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-support-strip__icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .82rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-support-strip__copy { min-width: 0; flex: 1; display: grid; gap: .12rem; }
.tf-support-strip__copy strong {
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .78rem;
    line-height: 1.3;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-support-strip__copy small {
    overflow: hidden;
    color: var(--tf-muted);
    font-size: .64rem;
    line-height: 1.4;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-support-strip__arrow { flex: none; color: var(--tf-subtle); }

/* Tasks — flight board */
.tf-flight-board {
    position: relative;
    overflow: hidden;
    padding: 1.05rem;
    border: 1px solid var(--tf-line);
    border-radius: 1.25rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}
.tf-flight-board::after {
    content: "";
    position: absolute;
    inset: auto 1.05rem 0;
    height: .24rem;
    border-radius: .24rem .24rem 0 0;
    background: var(--tf-primary);
}
.tf-flight-board__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.tf-flight-board__head > div:first-child { min-width: 0; }
.tf-flight-board__title {
    margin: .25rem 0 0;
    color: var(--tf-ink);
    font-size: 1.42rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.03em;
}
.tf-flight-board__copy {
    max-width: 21rem;
    margin: .35rem 0 0;
    color: var(--tf-muted);
    font-size: .73rem;
    line-height: 1.58;
    font-weight: 600;
}
.tf-flight-board__remaining {
    width: 4.35rem;
    min-height: 4.35rem;
    flex: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .12rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-flight-board__remaining span { font-size: .58rem; line-height: 1.2; font-weight: 800; }
.tf-flight-board__remaining strong { font-size: 1.4rem; line-height: 1; font-weight: 950; font-variant-numeric: tabular-nums; }
.tf-flight-progress { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--tf-line); }
.tf-flight-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--tf-muted);
    font-size: .65rem;
    line-height: 1.3;
    font-weight: 750;
}
.tf-flight-progress__meta strong { color: var(--tf-ink-soft); font-weight: 900; font-variant-numeric: tabular-nums; }
.tf-flight-progress__segments {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .28rem;
    margin-top: .55rem;
}
.tf-flight-progress__segments span {
    height: .42rem;
    border-radius: .22rem;
    background: var(--tf-surface-strong);
}
.tf-flight-progress__segments span.is-complete { background: var(--tf-primary); }

.tf-task-guide {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    padding: .85rem;
    border: 1px solid var(--tf-secondary-line);
    border-radius: 1rem;
    background: var(--tf-secondary-soft);
}
.tf-task-guide__icon {
    width: 2.35rem;
    height: 2.35rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: var(--tf-surface);
    color: var(--tf-secondary);
}
.tf-task-guide > div { min-width: 0; }
.tf-task-guide h2 {
    margin: 0;
    color: var(--tf-ink);
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 900;
}
.tf-task-guide p {
    margin: .24rem 0 0;
    color: var(--tf-ink-soft);
    font-size: .68rem;
    line-height: 1.6;
    font-weight: 600;
}

.tf-task-list { display: grid; gap: .75rem; }
.tf-task-ticket {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--tf-line);
    border-radius: 1.08rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
    transition: opacity .3s ease, transform .3s ease, border-color .18s ease;
}
.tf-task-ticket::before,
.tf-task-ticket::after {
    content: "";
    position: absolute;
    left: 3.5rem;
    z-index: 2;
    width: .72rem;
    height: .72rem;
    transform: translateX(-50%);
    border: 1px solid var(--tf-line);
    border-radius: 50%;
    background: var(--tf-bg);
}
.tf-task-ticket::before { top: -.38rem; }
.tf-task-ticket::after { bottom: -.38rem; }
.tf-task-ticket__index {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .16rem;
    padding: .75rem .35rem;
    border-right: 1px dashed var(--tf-line-strong);
    background: var(--tf-surface-soft);
    color: var(--tf-subtle);
}
.tf-task-ticket__index span {
    font-size: .5rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .09em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.tf-task-ticket__index strong {
    color: var(--tf-primary);
    font-size: 1rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-task-ticket__body { min-width: 0; padding: .9rem; }
.tf-task-ticket__topline {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}
.tf-task-ticket__heading { min-width: 0; }
.tf-task-ticket__eyebrow {
    display: block;
    color: var(--tf-primary);
    font-size: .52rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .11em;
}
.tf-task-ticket__heading h3 {
    margin: .28rem 0 0;
    overflow-wrap: anywhere;
    color: var(--tf-ink);
    font-size: .86rem;
    line-height: 1.45;
    font-weight: 900;
}
.tf-task-ticket__reward {
    flex: none;
    padding: .34rem .55rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: .62rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .68rem;
    line-height: 1.2;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-task-ticket__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem .75rem;
    margin-top: .68rem;
    color: var(--tf-muted);
    font-size: .61rem;
    line-height: 1.35;
    font-weight: 700;
}
.tf-task-ticket__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.tf-task-ticket__meta svg { color: var(--tf-subtle); }
.tf-task-ticket__action {
    width: 100%;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .82rem;
    padding: .68rem .72rem .68rem .88rem;
    border: 0;
    border-radius: .78rem;
    background: var(--tf-primary);
    color: var(--tf-on-primary);
    box-shadow: none;
    cursor: pointer;
    font-size: .72rem;
    line-height: 1.25;
    font-weight: 900;
    text-align: left;
    transition: background .16s ease, transform .14s ease, opacity .16s ease;
}
.tf-task-ticket__action:hover { background: var(--tf-primary-pressed); }
.tf-task-ticket__action:active { transform: translateY(1px) scale(.995); }
.tf-task-ticket__action:disabled { cursor: not-allowed; opacity: .62; }
.tf-task-ticket__action-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-task-ticket__action-icon {
    width: 1.85rem;
    height: 1.85rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .58rem;
    background: rgba(255, 255, 255, .16);
}
.tf-task-ticket__action-icon.is-pulsing { animation: pulseSoft .7s ease-in-out infinite; }
.tf-task-ticket__progress { margin-top: .7rem; }
.tf-task-ticket__progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .42rem;
    color: var(--tf-muted);
    font-size: .6rem;
    line-height: 1.4;
    font-weight: 750;
}
.tf-task-ticket__status { min-width: 0; }
.tf-task-ticket__percent { flex: none; color: var(--tf-primary); font-weight: 900; font-variant-numeric: tabular-nums; }
.tf-task-ticket[data-task-state="running"] { border-color: var(--tf-primary-line); }
.tf-task-ticket[data-task-state="ready"] { border-color: var(--tf-primary); }
.tf-task-ticket[data-task-state="ready"] .tf-task-ticket__action { background: var(--tf-secondary); color: var(--tf-on-secondary); }
.tf-task-ticket.is-complete { opacity: 0; transform: translateY(.55rem) scale(.985); }
.tf-task-empty h2 {
    margin: 1rem 0 0;
    color: var(--tf-ink);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 900;
}
.tf-task-empty p {
    max-width: 22rem;
    margin: .45rem auto 0;
    color: var(--tf-muted);
    font-size: .75rem;
    line-height: 1.6;
    font-weight: 600;
}

@keyframes tfRunwayMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 380px) {
    .tf-dashboard__welcome-copy { display: none; }
    .tf-earnings-pass__topline { padding-right: 3.8rem; }
    .tf-earnings-pass__route { width: 3.7rem; }
    .tf-earnings-pass__stat { align-items: flex-start; flex-direction: column; gap: .15rem; }
    .tf-quick-grid { gap: .42rem; }
    .tf-quick-action { min-height: 6.2rem; padding-inline: .2rem; }
    .tf-quick-action__icon { width: 2.25rem; height: 2.25rem; }
    .tf-flight-board__remaining { width: 3.85rem; min-height: 3.85rem; }
    .tf-task-ticket { grid-template-columns: 3rem minmax(0, 1fr); }
    .tf-task-ticket::before,
    .tf-task-ticket::after { left: 3rem; }
    .tf-task-ticket__body { padding: .8rem; }
    .tf-task-ticket__topline { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tf-runway__track { animation: none !important; }
    .tf-runway__group[aria-hidden="true"] { display: none; }
    .tf-task-ticket__action-icon.is-pulsing { animation: none !important; }
}
.tf-banner-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-earnings-pass__badge {
    position: absolute;
    top: 2rem;
    right: 0;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    padding: .42rem .55rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: .7rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .58rem;
    line-height: 1;
    font-weight: 850;
}

/* ========================================================================== 
   Phase 5 — Referral + Leaderboard
   Dedicated community screens with no legacy visual aliases.
   ========================================================================== */

.tf-referral,
.tf-leaderboard {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

/* Referral */
.tf-referral-intro,
.tf-leaderboard-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .12rem .1rem .08rem;
}
.tf-referral-intro__copy,
.tf-leaderboard-intro > div { min-width: 0; }
.tf-referral-intro__title,
.tf-leaderboard-intro__title {
    margin: .28rem 0 0;
    color: var(--tf-ink);
    font-size: 1.42rem;
    line-height: 1.28;
    font-weight: 950;
    letter-spacing: -.032em;
}
.tf-referral-intro__text,
.tf-leaderboard-intro__text {
    max-width: 23rem;
    margin: .38rem 0 0;
    color: var(--tf-muted);
    font-size: .74rem;
    line-height: 1.62;
    font-weight: 600;
}
.tf-referral-intro__mark {
    width: 3rem;
    height: 3rem;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-secondary-line);
    border-radius: 1rem;
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
}

.tf-invite-pass {
    position: relative;
    overflow: hidden;
    padding: 1.08rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1.28rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}
.tf-invite-pass::before,
.tf-invite-pass::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    border: 1px solid var(--tf-line);
    border-radius: 50%;
    background: var(--tf-bg);
}
.tf-invite-pass::before { left: -.62rem; }
.tf-invite-pass::after { right: -.62rem; }
.tf-invite-pass__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
}
.tf-invite-pass__head > div { min-width: 0; }
.tf-invite-pass__label {
    margin: 0;
    color: var(--tf-primary);
    font-size: .6rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .16em;
}
.tf-invite-pass__title {
    margin: .25rem 0 0;
    color: var(--tf-ink);
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 930;
    letter-spacing: -.022em;
}
.tf-invite-pass__bonus {
    max-width: 46%;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .48rem .6rem;
    border: 1px solid var(--tf-secondary-line);
    border-radius: .72rem;
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
    font-size: .64rem;
    line-height: 1.25;
    font-weight: 900;
    text-align: right;
}
.tf-invite-pass__bonus svg { flex: none; }
.tf-invite-pass__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .48rem;
    margin-top: 1rem;
    padding-block: .88rem;
    border-top: 1px dashed var(--tf-line-strong);
    border-bottom: 1px dashed var(--tf-line-strong);
}
.tf-invite-pass__stat {
    min-width: 0;
    padding: .62rem .42rem;
    border-radius: .76rem;
    background: var(--tf-surface-soft);
    text-align: center;
}
.tf-invite-pass__stat span {
    display: block;
    color: var(--tf-muted);
    font-size: .6rem;
    line-height: 1.2;
    font-weight: 750;
}
.tf-invite-pass__stat strong {
    display: block;
    margin-top: .2rem;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
}
.tf-invite-pass__progress { margin-top: .88rem; }
.tf-invite-pass__progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .48rem;
    color: var(--tf-muted);
    font-size: .64rem;
    line-height: 1.2;
    font-weight: 800;
}
.tf-invite-pass__progress-meta strong { color: var(--tf-primary); font-size: .72rem; font-weight: 950; }

.tf-referral-link-card,
.tf-activation-card,
.tf-ranking-board {
    padding: 1rem;
    border: 1px solid var(--tf-line);
    border-radius: 1.12rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-referral-link-card__head {
    display: flex;
    align-items: center;
    gap: .72rem;
}
.tf-referral-link-card__head > div { min-width: 0; }
.tf-referral-link-card__icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: .82rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-referral-link {
    width: 100%;
    margin-top: .86rem;
    padding: .84rem .88rem;
    overflow-wrap: anywhere;
    border: 1px dashed var(--tf-line-strong);
    border-radius: .84rem;
    background: var(--tf-surface-soft);
    color: var(--tf-ink-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem;
    line-height: 1.55;
    font-weight: 700;
    user-select: all;
}
.tf-referral-link:focus-visible { border-color: var(--tf-primary); outline: 2px solid var(--tf-primary); outline-offset: 2px; }
.tf-referral-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: .62rem;
    margin-top: .7rem;
}

.tf-activation-card__heading { align-items: center; }
.tf-activation-journey {
    position: relative;
    display: grid;
    gap: 0;
    margin: .95rem 0 0;
    padding: 0;
    list-style: none;
}
.tf-activation-step {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: .72rem;
    padding: .1rem 0 .92rem;
}
.tf-activation-step:last-child { padding-bottom: 0; }
.tf-activation-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.3rem;
    top: 2.5rem;
    bottom: .05rem;
    border-left: 1px dashed var(--tf-primary-line);
}
.tf-activation-step__number {
    position: relative;
    z-index: 1;
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: .84rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .68rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-activation-step:nth-child(even) .tf-activation-step__number {
    border-color: var(--tf-secondary-line);
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
}
.tf-activation-step__copy { min-width: 0; display: block; padding-top: .12rem; }
.tf-activation-step__copy strong {
    display: block;
    color: var(--tf-ink);
    font-size: .78rem;
    line-height: 1.4;
    font-weight: 900;
}
.tf-activation-step__copy small {
    display: block;
    margin-top: .22rem;
    color: var(--tf-muted);
    font-size: .67rem;
    line-height: 1.55;
    font-weight: 600;
}
.tf-referral-note,
.tf-leaderboard-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .86rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-surface-soft);
    color: var(--tf-muted);
}
.tf-referral-note__icon,
.tf-leaderboard-note > span {
    width: 2rem;
    height: 2rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .7rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-referral-note p,
.tf-leaderboard-note p {
    margin: .08rem 0 0;
    font-size: .66rem;
    line-height: 1.58;
    font-weight: 650;
}

/* Leaderboard */
.tf-leaderboard-intro__count {
    width: 4.25rem;
    min-height: 4.25rem;
    flex: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .12rem;
    border: 1px solid var(--tf-secondary-line);
    border-radius: 1rem;
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
}
.tf-leaderboard-intro__count strong { font-size: 1.3rem; line-height: 1; font-weight: 950; font-variant-numeric: tabular-nums; }
.tf-leaderboard-intro__count small { font-size: .58rem; line-height: 1.2; font-weight: 850; }

.tf-champion-card {
    position: relative;
    overflow: hidden;
    padding: 1.05rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1.25rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}
.tf-champion-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .28rem;
    background: var(--tf-primary);
}
.tf-champion-card__route {
    position: absolute;
    top: .95rem;
    right: 1rem;
    width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: .68;
}
.tf-champion-card__route::before {
    content: "";
    position: absolute;
    left: .28rem;
    right: .28rem;
    top: 50%;
    border-top: 1px dashed var(--tf-primary-line);
}
.tf-champion-card__route span,
.tf-champion-card__route i {
    position: relative;
    z-index: 1;
    width: .42rem;
    height: .42rem;
    border: 1px solid var(--tf-primary);
    border-radius: 50%;
    background: var(--tf-surface);
}
.tf-champion-card__route i { background: var(--tf-secondary); border-color: var(--tf-secondary); }
.tf-champion-card__label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding-right: 4.8rem;
    color: var(--tf-muted);
    font-size: .62rem;
    line-height: 1.3;
    font-weight: 800;
}
.tf-champion-card__label span {
    padding: .28rem .42rem;
    border-radius: .5rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-weight: 950;
}
.tf-champion-card__body {
    min-width: 0;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .78rem;
    margin-top: .85rem;
}
.tf-champion-card__avatar,
.tf-ranking-row__avatar {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: 50%;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-weight: 950;
}
.tf-champion-card__avatar { width: 3.5rem; height: 3.5rem; }
.tf-champion-card__avatar-fallback,
.tf-ranking-row__avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.tf-champion-card__avatar img,
.tf-ranking-row__avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--tf-surface); }
.tf-champion-card__copy { min-width: 0; }
.tf-champion-card__copy h2 {
    margin: 0;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .98rem;
    line-height: 1.35;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-champion-card__copy p {
    margin: .18rem 0 0;
    color: var(--tf-muted);
    font-size: .64rem;
    line-height: 1.3;
    font-weight: 700;
}
.tf-champion-card__score {
    min-width: 3.7rem;
    padding: .58rem .65rem;
    border-radius: .8rem;
    background: var(--tf-surface-soft);
    text-align: right;
}
.tf-champion-card__score strong {
    display: block;
    color: var(--tf-primary);
    font-size: 1.08rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-champion-card__score span {
    display: block;
    margin-top: .2rem;
    color: var(--tf-muted);
    font-size: .56rem;
    line-height: 1.2;
    font-weight: 800;
}

.tf-ranking-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.tf-ranking-board__head > div { min-width: 0; }
.tf-ranking-list {
    display: grid;
    gap: .42rem;
    margin-top: .86rem;
}
.tf-ranking-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 2rem 2.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .64rem;
    padding: .64rem .68rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
}
.tf-ranking-row__rank {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    background: var(--tf-surface-soft);
    color: var(--tf-muted);
    font-size: .65rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-ranking-row:nth-child(1) .tf-ranking-row__rank {
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-ranking-row:nth-child(2) .tf-ranking-row__rank {
    background: var(--tf-secondary-soft);
    color: var(--tf-secondary);
}
.tf-ranking-row__avatar { width: 2.7rem; height: 2.7rem; font-size: .74rem; }
.tf-ranking-row__identity { min-width: 0; display: grid; gap: .12rem; }
.tf-ranking-row__identity strong {
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .76rem;
    line-height: 1.3;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-ranking-row__identity small {
    overflow: hidden;
    color: var(--tf-muted);
    font-size: .58rem;
    line-height: 1.25;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-ranking-row__score {
    min-width: 3.2rem;
    display: grid;
    justify-items: end;
    gap: .12rem;
    text-align: right;
}
.tf-ranking-row__score strong {
    color: var(--tf-ink);
    font-size: .84rem;
    line-height: 1.1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-ranking-row__score small {
    color: var(--tf-subtle);
    font-size: .54rem;
    line-height: 1.15;
    font-weight: 750;
}
.tf-ranking-board__solo {
    margin: .85rem 0 0;
    padding: .85rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: .84rem;
    color: var(--tf-muted);
    background: var(--tf-surface-soft);
    font-size: .68rem;
    line-height: 1.55;
    font-weight: 650;
    text-align: center;
}
.tf-ranking-empty {
    display: grid;
    justify-items: center;
    padding: 2rem 1.1rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: 1.15rem;
    background: var(--tf-surface);
    text-align: center;
}
.tf-ranking-empty__icon {
    width: 3.7rem;
    height: 3.7rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-ranking-empty h2 {
    margin: .9rem 0 0;
    color: var(--tf-ink);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 950;
}
.tf-ranking-empty p {
    max-width: 20rem;
    margin: .35rem 0 0;
    color: var(--tf-muted);
    font-size: .7rem;
    line-height: 1.6;
    font-weight: 600;
}
.tf-ranking-empty .tf-button { width: auto; min-width: 9rem; margin-top: 1rem; }

@media (max-width: 360px) {
    .tf-referral-intro__title,
    .tf-leaderboard-intro__title { font-size: 1.25rem; }
    .tf-invite-pass__head { display: grid; }
    .tf-invite-pass__bonus { max-width: 100%; width: max-content; }
    .tf-referral-actions { grid-template-columns: 1fr; }
    .tf-champion-card__body { grid-template-columns: 3.2rem minmax(0, 1fr); }
    .tf-champion-card__avatar { width: 3.2rem; height: 3.2rem; }
    .tf-champion-card__score { grid-column: 1 / -1; width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
    .tf-ranking-row { grid-template-columns: 1.8rem 2.45rem minmax(0, 1fr) auto; gap: .5rem; padding-inline: .55rem; }
    .tf-ranking-row__rank { width: 1.8rem; height: 1.8rem; }
    .tf-ranking-row__avatar { width: 2.45rem; height: 2.45rem; }
}

/* ---------- Phase 6: Withdraw + History ---------- */
.tf-withdraw,
.tf-history { display: grid; gap: 1rem; }

.tf-withdraw-intro,
.tf-history-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .15rem;
}
.tf-withdraw-intro__copy,
.tf-history-intro > div { min-width: 0; }
.tf-withdraw-intro__title,
.tf-history-intro__title {
    margin: .28rem 0 0;
    color: var(--tf-ink);
    font-size: 1.45rem;
    line-height: 1.24;
    font-weight: 950;
    letter-spacing: -.025em;
}
.tf-withdraw-intro__text,
.tf-history-intro__text {
    max-width: 24rem;
    margin: .38rem 0 0;
    color: var(--tf-muted);
    font-size: .72rem;
    line-height: 1.65;
    font-weight: 620;
}
.tf-history-intro__mark {
    width: 2.85rem;
    height: 2.85rem;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: .92rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}

.tf-payout-pass {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1.25rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-payout-pass::after {
    content: "";
    position: absolute;
    inset: auto -1.8rem -2.4rem auto;
    width: 6.5rem;
    height: 6.5rem;
    border: 1px solid var(--tf-secondary-line);
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
}
.tf-payout-pass__route {
    position: absolute;
    top: 1.08rem;
    right: 1.1rem;
    width: 4.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: .72;
}
.tf-payout-pass__route::before {
    content: "";
    position: absolute;
    left: .34rem;
    right: .34rem;
    top: 50%;
    border-top: 1px dashed var(--tf-primary-line);
}
.tf-payout-pass__route span,
.tf-payout-pass__route i {
    position: relative;
    z-index: 1;
    width: .45rem;
    height: .45rem;
    border: 1px solid var(--tf-primary);
    border-radius: 50%;
    background: var(--tf-surface);
}
.tf-payout-pass__route i { border-color: var(--tf-secondary); background: var(--tf-secondary); }
.tf-payout-pass__topline {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 4.7rem;
}
.tf-payout-pass__label {
    margin: 0;
    color: var(--tf-primary);
    font-size: .6rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: .12em;
}
.tf-payout-pass__title {
    margin: .24rem 0 0;
    color: var(--tf-muted);
    font-size: .72rem;
    line-height: 1.35;
    font-weight: 760;
}
.tf-payout-pass__mark {
    display: none;
    color: var(--tf-primary);
}
.tf-payout-pass__amount {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 1.2rem 0 0;
    overflow-wrap: anywhere;
    color: var(--tf-ink);
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}
.tf-payout-pass__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .9rem;
    margin-top: .9rem;
    color: var(--tf-muted);
    font-size: .63rem;
    line-height: 1.35;
    font-weight: 760;
}
.tf-payout-pass__meta span { display: inline-flex; align-items: center; gap: .36rem; }
.tf-payout-pass__meta span::before {
    content: "";
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: var(--tf-primary);
}
.tf-payout-pass__meta span + span::before { background: var(--tf-secondary); }

.tf-withdraw-clearance,
.tf-withdraw-step,
.tf-withdraw-submit,
.tf-ledger,
.tf-statement-summary {
    border: 1px solid var(--tf-line);
    border-radius: 1.15rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}
.tf-withdraw-clearance { padding: 1rem; }
.tf-withdraw-clearance__score,
.tf-ledger__count {
    min-width: 2.3rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    padding: 0 .55rem;
    border: 1px solid var(--tf-primary-line);
    border-radius: .7rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .68rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-clearance-list { display: grid; gap: .55rem; margin-top: .85rem; }
.tf-clearance-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr) auto;
    align-items: start;
    gap: .68rem;
    padding: .72rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
}
.tf-clearance-item__icon {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: var(--tf-warning-soft);
    color: var(--tf-warning);
}
.tf-clearance-item.is-complete .tf-clearance-item__icon { background: var(--tf-success-soft); color: var(--tf-success); }
.tf-clearance-item__copy { min-width: 0; display: grid; gap: .22rem; }
.tf-clearance-item__copy strong {
    color: var(--tf-ink);
    font-size: .73rem;
    line-height: 1.3;
    font-weight: 900;
}
.tf-clearance-item__copy small {
    color: var(--tf-muted);
    font-size: .6rem;
    line-height: 1.5;
    font-weight: 620;
}
.tf-clearance-item__copy .tf-progress { height: .28rem; margin-top: .2rem; }
.tf-clearance-item__value {
    max-width: 7rem;
    overflow: hidden;
    color: var(--tf-ink-soft);
    font-size: .66rem;
    line-height: 1.35;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tf-withdraw-flow { display: grid; gap: .8rem; }
.tf-withdraw-step { padding: 1rem; }
.tf-withdraw-step__head {
    display: flex;
    align-items: center;
    gap: .72rem;
    margin-bottom: .9rem;
}
.tf-withdraw-step__number {
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .64rem;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-withdraw-step__head > span:last-child { min-width: 0; }
.tf-withdraw-step__head .tf-title { margin-top: .16rem; }
.tf-method-grid { display: grid; gap: .5rem; }
.tf-method-option {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) 1.25rem;
    align-items: center;
    gap: .7rem;
    padding: .68rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
    cursor: pointer;
}
.tf-method-option.is-active {
    border-color: var(--tf-primary-line);
    background: var(--tf-primary-soft);
}
.tf-method-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.tf-method-option:focus-within { box-shadow: var(--tf-shadow-focus); }
.tf-method-option__icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-line);
    border-radius: .78rem;
    background: var(--tf-surface);
    color: var(--tf-muted);
}
.tf-method-option.is-active .tf-method-option__icon { border-color: var(--tf-primary-line); color: var(--tf-primary); }
.tf-method-option__copy { min-width: 0; display: grid; gap: .14rem; }
.tf-method-option__copy strong {
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .72rem;
    line-height: 1.3;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-method-option__copy small {
    overflow: hidden;
    color: var(--tf-muted);
    font-size: .58rem;
    line-height: 1.4;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-method-option__check {
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--tf-line-strong);
    border-radius: 50%;
    background: var(--tf-surface);
}
.tf-method-option__check i {
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    background: transparent;
}
.tf-method-option.is-active .tf-method-option__check { border-color: var(--tf-primary); }
.tf-method-option.is-active .tf-method-option__check i { background: var(--tf-primary); }

.tf-amount-field {
    min-width: 0;
    min-height: 3.5rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    padding: .34rem .42rem .34rem .85rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
}
.tf-amount-field:focus-within { border-color: var(--tf-primary); box-shadow: var(--tf-shadow-focus); }
.tf-amount-field__currency { color: var(--tf-primary); font-size: 1.15rem; font-weight: 950; }
.tf-amount-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tf-ink);
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}
.tf-amount-field input::placeholder { color: var(--tf-subtle); }
.tf-amount-field button {
    min-height: 2.45rem;
    padding: 0 .7rem;
    border-radius: .7rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .62rem;
    font-weight: 900;
    white-space: nowrap;
}
.tf-field-label {
    display: block;
    margin-bottom: .4rem;
    color: var(--tf-ink-soft);
    font-size: .67rem;
    line-height: 1.3;
    font-weight: 850;
}
.tf-input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 .9rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    outline: 0;
    background: var(--tf-bg-raised);
    color: var(--tf-ink);
    font-size: .76rem;
    font-weight: 680;
}
.tf-input::placeholder { color: var(--tf-subtle); }
.tf-input:focus { border-color: var(--tf-primary); box-shadow: var(--tf-shadow-focus); }
.tf-field-note {
    margin: .48rem 0 0;
    color: var(--tf-muted);
    font-size: .6rem;
    line-height: 1.55;
    font-weight: 620;
}
.tf-withdraw-submit { padding: .85rem; }
.tf-withdraw-submit__note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .72rem;
    border-radius: .82rem;
    background: var(--tf-info-soft);
    color: var(--tf-info);
}
.tf-withdraw-submit__note > span { flex: none; margin-top: .04rem; }
.tf-withdraw-submit__note p { margin: 0; font-size: .61rem; line-height: 1.55; font-weight: 680; }
.tf-withdraw-submit__button { margin-top: .72rem; }
.tf-withdraw-submit__button:disabled {
    cursor: not-allowed;
    opacity: .56;
    filter: grayscale(.08);
}
.tf-withdraw-empty,
.tf-history-empty {
    display: grid;
    justify-items: center;
    padding: 2rem 1.1rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: 1.15rem;
    background: var(--tf-surface);
    text-align: center;
}
.tf-withdraw-empty__icon,
.tf-history-empty__icon {
    width: 3.7rem;
    height: 3.7rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-withdraw-empty h2,
.tf-history-empty h2 {
    margin: .9rem 0 0;
    color: var(--tf-ink);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 950;
}
.tf-withdraw-empty p,
.tf-history-empty p {
    max-width: 21rem;
    margin: .35rem 0 0;
    color: var(--tf-muted);
    font-size: .7rem;
    line-height: 1.6;
    font-weight: 600;
}
.tf-history-empty .tf-button { width: auto; min-width: 9rem; margin-top: 1rem; }

.tf-statement-summary {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tf-statement-summary__primary,
.tf-statement-summary__secondary {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    padding: .88rem;
}
.tf-statement-summary__primary { border-right: 1px solid var(--tf-line); }
.tf-statement-summary__icon {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-statement-summary__secondary .tf-statement-summary__icon { background: var(--tf-danger-soft); color: var(--tf-danger); }
.tf-statement-summary__primary > span:last-child,
.tf-statement-summary__secondary > span:last-child { min-width: 0; display: grid; gap: .12rem; }
.tf-statement-summary small {
    color: var(--tf-muted);
    font-size: .58rem;
    line-height: 1.2;
    font-weight: 760;
}
.tf-statement-summary strong {
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .86rem;
    line-height: 1.2;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tf-statement-summary__primary strong { color: var(--tf-primary); }
.tf-statement-summary__secondary strong { color: var(--tf-danger); }
.tf-statement-summary__net {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .65rem .88rem;
    border-top: 1px solid var(--tf-line);
    background: var(--tf-bg-raised);
}
.tf-statement-summary__net span { color: var(--tf-muted); font-size: .62rem; font-weight: 760; }
.tf-statement-summary__net strong { font-size: .72rem; }
.tf-statement-summary__net strong.is-positive { color: var(--tf-primary); }
.tf-statement-summary__net strong.is-negative { color: var(--tf-danger); }

.tf-history-filters {
    display: flex;
    gap: .42rem;
    overflow-x: auto;
    padding: .08rem 0 .1rem;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.tf-history-filters::-webkit-scrollbar { display: none; }
.tf-history-filter {
    min-height: 2.25rem;
    flex: none;
    padding: 0 .72rem;
    border: 1px solid var(--tf-line);
    border-radius: .72rem;
    background: var(--tf-surface);
    color: var(--tf-muted);
    font-size: .63rem;
    line-height: 1;
    font-weight: 850;
}
.tf-history-filter.is-active {
    border-color: var(--tf-primary-line);
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-ledger { padding: .95rem; }
.tf-ledger__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.tf-ledger__list { display: grid; gap: .42rem; margin-top: .82rem; }
.tf-ledger-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .68rem;
    padding: .66rem;
    border: 1px solid var(--tf-line);
    border-radius: .88rem;
    background: var(--tf-bg-raised);
}
.tf-ledger-row[hidden] { display: none !important; }
.tf-ledger-row__icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: .78rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-ledger-row.is-debit .tf-ledger-row__icon { background: var(--tf-danger-soft); color: var(--tf-danger); }
.tf-ledger-row__copy { min-width: 0; display: grid; gap: .12rem; }
.tf-ledger-row__copy strong,
.tf-ledger-row__copy small,
.tf-ledger-row__copy time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-ledger-row__copy strong { color: var(--tf-ink); font-size: .72rem; line-height: 1.3; font-weight: 900; }
.tf-ledger-row__copy small { color: var(--tf-muted); font-size: .58rem; line-height: 1.3; font-weight: 620; }
.tf-ledger-row__copy time { color: var(--tf-subtle); font-size: .54rem; line-height: 1.3; font-weight: 720; }
.tf-ledger-row__amount {
    min-width: 4.6rem;
    display: grid;
    justify-items: end;
    gap: .12rem;
    text-align: right;
}
.tf-ledger-row__amount strong {
    color: var(--tf-primary);
    font-size: .74rem;
    line-height: 1.15;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tf-ledger-row.is-debit .tf-ledger-row__amount strong { color: var(--tf-danger); }
.tf-ledger-row__amount small { color: var(--tf-subtle); font-size: .52rem; line-height: 1.15; font-weight: 760; }
.tf-history-filter-empty {
    display: grid;
    justify-items: center;
    gap: .22rem;
    padding: 1.35rem 1rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: 1rem;
    background: var(--tf-surface);
    color: var(--tf-muted);
    text-align: center;
}
.tf-history-filter-empty[hidden] { display: none !important; }
.tf-history-filter-empty > span {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    margin-bottom: .35rem;
    border-radius: .8rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-history-filter-empty strong { color: var(--tf-ink); font-size: .76rem; font-weight: 900; }
.tf-history-filter-empty small { font-size: .62rem; line-height: 1.5; font-weight: 620; }

@media (max-width: 360px) {
    .tf-withdraw-intro,
    .tf-history-intro { gap: .7rem; }
    .tf-withdraw-intro { display: grid; }
    .tf-withdraw-intro .tf-status { width: max-content; max-width: 100%; }
    .tf-withdraw-intro__title,
    .tf-history-intro__title { font-size: 1.25rem; }
    .tf-payout-pass__topline { padding-right: 4rem; }
    .tf-payout-pass__route { width: 4rem; }
    .tf-clearance-item { grid-template-columns: 2.25rem minmax(0, 1fr); }
    .tf-clearance-item__icon { width: 2.25rem; height: 2.25rem; }
    .tf-clearance-item__value { grid-column: 2; max-width: 100%; text-align: left; }
    .tf-amount-field { grid-template-columns: auto minmax(0, 1fr); }
    .tf-amount-field button { grid-column: 1 / -1; width: 100%; }
    .tf-statement-summary { grid-template-columns: 1fr; }
    .tf-statement-summary__primary { border-right: 0; border-bottom: 1px solid var(--tf-line); }
    .tf-statement-summary__net { grid-column: 1; }
    .tf-ledger-row { grid-template-columns: 2.45rem minmax(0, 1fr); }
    .tf-ledger-row__icon { width: 2.45rem; height: 2.45rem; }
    .tf-ledger-row__amount { grid-column: 2; min-width: 0; justify-items: start; text-align: left; }
}

/* ========================================================================== */
/* Phase 7 — Authentication, restricted access and complete system states      */
/* ========================================================================== */

[hidden] { display: none !important; }

.tf-access-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--tf-telegram-viewport, 100dvh);
    display: grid;
    align-items: center;
    padding: calc(1.25rem + var(--tf-safe-top)) var(--tf-page-x) calc(1.25rem + var(--tf-safe-bottom));
    background:
        radial-gradient(circle at 84% 8%, var(--tf-secondary-soft) 0, transparent 24%),
        radial-gradient(circle at 8% 92%, var(--tf-primary-soft) 0, transparent 26%),
        var(--tf-bg);
}

.tf-access-wrap {
    width: 100%;
    max-width: 25.5rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.tf-access-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}

.tf-access-brand__mark {
    position: relative;
    width: 2.8rem;
    height: 2.8rem;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--tf-primary-line);
    border-radius: .9rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}

.tf-access-brand__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.tf-access-brand__mark img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--tf-surface);
}

.tf-access-brand__copy {
    min-width: 0;
    display: grid;
    gap: .08rem;
}

.tf-access-brand__copy strong {
    max-width: 14rem;
    overflow: hidden;
    color: var(--tf-ink);
    font-size: .86rem;
    line-height: 1.25;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-access-brand__copy small {
    color: var(--tf-muted);
    font-size: .58rem;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tf-access-footnote {
    margin: 0;
    color: var(--tf-subtle);
    font-size: .59rem;
    line-height: 1.55;
    font-weight: 680;
    text-align: center;
}

/* Authentication gate */
.tf-auth-gate {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    border: 1px solid var(--tf-line);
    border-radius: 1.45rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}

.tf-auth-gate__route {
    position: absolute;
    top: 1.2rem;
    right: 1.15rem;
    width: 5.6rem;
    height: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: .72;
}

.tf-auth-gate__route::before {
    content: "";
    position: absolute;
    left: .45rem;
    right: .45rem;
    top: 50%;
    height: 1px;
    background: var(--tf-line-strong);
}

.tf-auth-gate__route span,
.tf-auth-gate__route i {
    position: relative;
    z-index: 1;
    width: .55rem;
    height: .55rem;
    border: 2px solid var(--tf-surface);
    border-radius: 50%;
    background: var(--tf-primary);
    box-shadow: 0 0 0 1px var(--tf-primary-line);
}

.tf-auth-gate__route i {
    width: .4rem;
    height: .4rem;
    background: var(--tf-secondary);
    box-shadow: 0 0 0 1px var(--tf-secondary-line);
}

.tf-auth-gate__signal {
    position: relative;
    width: 4.85rem;
    height: 4.85rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.05rem;
}

.tf-auth-gate__signal-core {
    position: relative;
    z-index: 2;
    width: 3.75rem;
    height: 3.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-primary-line);
    border-radius: 1.15rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.tf-auth-gate__orbit {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--tf-primary-line);
    border-radius: 50%;
    animation: tfAuthOrbit 5.5s linear infinite;
}

.tf-auth-gate__orbit::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -.22rem;
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: var(--tf-secondary);
    box-shadow: 0 0 0 .25rem var(--tf-secondary-soft);
    transform: translateX(-50%);
}

.tf-auth-icon { grid-area: 1 / 1; transition: opacity .16s ease, transform .16s ease; }
.tf-auth-icon--success,
.tf-auth-icon--error { opacity: 0; transform: scale(.72); }

.tf-auth-gate[data-auth-state="success"] .tf-auth-icon--loading,
.tf-auth-gate[data-auth-state="error"] .tf-auth-icon--loading { opacity: 0; transform: scale(.72); }
.tf-auth-gate[data-auth-state="success"] .tf-auth-icon--success,
.tf-auth-gate[data-auth-state="error"] .tf-auth-icon--error { opacity: 1; transform: scale(1); }
.tf-auth-gate[data-auth-state="success"] .tf-auth-gate__signal-core {
    border-color: transparent;
    background: var(--tf-success-soft);
    color: var(--tf-success);
}
.tf-auth-gate[data-auth-state="error"] .tf-auth-gate__signal-core {
    border-color: transparent;
    background: var(--tf-danger-soft);
    color: var(--tf-danger);
}
.tf-auth-gate[data-auth-state="success"] .tf-auth-gate__orbit {
    border-color: rgba(21, 115, 71, .24);
    animation-duration: 8s;
}
.tf-auth-gate[data-auth-state="error"] .tf-auth-gate__orbit {
    border-color: rgba(180, 35, 24, .22);
    animation: none;
}
.tf-auth-gate[data-auth-state="error"] .tf-auth-gate__orbit::after { background: var(--tf-danger); box-shadow: 0 0 0 .25rem var(--tf-danger-soft); }

.tf-auth-gate__copy { display: grid; gap: .34rem; padding-right: .25rem; }
.tf-auth-gate__kicker {
    color: var(--tf-primary);
    font-size: .6rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.tf-auth-gate[data-auth-state="success"] .tf-auth-gate__kicker { color: var(--tf-success); }
.tf-auth-gate[data-auth-state="error"] .tf-auth-gate__kicker { color: var(--tf-danger); }
.tf-auth-gate__copy h1 {
    margin: 0;
    color: var(--tf-ink);
    font-size: clamp(1.3rem, 6vw, 1.62rem);
    line-height: 1.28;
    font-weight: 950;
    letter-spacing: -.025em;
}
.tf-auth-gate__copy p {
    min-height: 2.8rem;
    margin: 0;
    color: var(--tf-muted);
    font-size: .72rem;
    line-height: 1.65;
    font-weight: 620;
}
.tf-auth-gate[data-auth-state="error"] .tf-auth-gate__copy p { color: var(--tf-danger); }

.tf-auth-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .42rem;
    margin-top: 1rem;
}
.tf-auth-stage {
    min-width: 0;
    display: grid;
    gap: .1rem;
    padding: .58rem .55rem;
    border: 1px solid var(--tf-line);
    border-radius: .82rem;
    background: var(--tf-bg-raised);
    transition: border-color .16s ease, background .16s ease;
}
.tf-auth-stage > span {
    color: var(--tf-subtle);
    font-size: .5rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .07em;
}
.tf-auth-stage strong {
    overflow: hidden;
    color: var(--tf-ink-soft);
    font-size: .62rem;
    line-height: 1.25;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tf-auth-stage small { color: var(--tf-subtle); font-size: .5rem; line-height: 1.2; font-weight: 700; }
.tf-auth-stage.is-current {
    border-color: var(--tf-primary-line);
    background: var(--tf-primary-soft);
}
.tf-auth-stage.is-current > span,
.tf-auth-stage.is-current strong { color: var(--tf-primary); }
.tf-auth-stage.is-complete {
    border-color: transparent;
    background: var(--tf-success-soft);
}
.tf-auth-stage.is-complete > span,
.tf-auth-stage.is-complete strong { color: var(--tf-success); }

.tf-auth-progress {
    height: .35rem;
    overflow: hidden;
    margin-top: .65rem;
    border-radius: var(--tf-radius-pill);
    background: var(--tf-surface-strong);
}
.tf-auth-progress > span {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: var(--tf-primary);
    transition: width .28s ease, background .18s ease;
}
.tf-auth-gate[data-auth-state="loading"] .tf-auth-progress > span { box-shadow: 0 0 0 .1rem var(--tf-primary-soft); }
.tf-auth-gate[data-auth-state="success"] .tf-auth-progress > span { background: var(--tf-success); }
.tf-auth-gate[data-auth-state="error"] .tf-auth-progress > span { background: var(--tf-danger); }

.tf-auth-security-note {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    margin-top: .9rem;
    padding: .7rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
}
.tf-auth-security-note > span {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
}
.tf-auth-security-note > div { min-width: 0; display: grid; gap: .13rem; }
.tf-auth-security-note strong { color: var(--tf-ink); font-size: .65rem; line-height: 1.3; font-weight: 900; }
.tf-auth-security-note small { color: var(--tf-muted); font-size: .56rem; line-height: 1.5; font-weight: 620; }
.tf-auth-retry { margin-top: .9rem; }

/* Restricted access */
.tf-restricted-card {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    border: 1px solid var(--tf-line);
    border-radius: 1.45rem;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-sm);
}
.tf-restricted-card::before {
    content: "";
    position: absolute;
    width: 8.5rem;
    height: 8.5rem;
    right: -4.4rem;
    top: -4.6rem;
    border: 1px solid var(--tf-secondary-line);
    border-radius: 50%;
    background: var(--tf-secondary-soft);
}
.tf-restricted-card__topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}
.tf-restricted-card__topline .tf-status i {
    width: .42rem;
    height: .42rem;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}
.tf-restricted-card__code {
    color: var(--tf-subtle);
    font-size: .5rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
}
.tf-restricted-card__signal {
    position: relative;
    z-index: 1;
    width: 4.4rem;
    height: 4.4rem;
    display: grid;
    place-items: center;
    margin-top: 1.05rem;
    border-radius: 1.25rem;
    background: var(--tf-danger-soft);
    color: var(--tf-danger);
}
.tf-restricted-card__signal::after {
    content: "";
    position: absolute;
    right: -.42rem;
    bottom: -.38rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 4px solid var(--tf-surface);
    border-radius: 50%;
    background: var(--tf-secondary);
}
.tf-restricted-card__signal > span { display: grid; place-items: center; }
.tf-restricted-card__copy { display: grid; gap: .36rem; margin-top: .9rem; }
.tf-restricted-card__kicker {
    color: var(--tf-danger);
    font-size: .58rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tf-restricted-card__copy h1 {
    margin: 0;
    color: var(--tf-ink);
    font-size: clamp(1.28rem, 6vw, 1.6rem);
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -.025em;
}
.tf-restricted-card__copy p {
    margin: 0;
    color: var(--tf-muted);
    font-size: .7rem;
    line-height: 1.7;
    font-weight: 620;
}

.tf-restriction-steps {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
}
.tf-restriction-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    padding: .68rem;
    border: 1px solid var(--tf-line);
    border-radius: .9rem;
    background: var(--tf-bg-raised);
}
.tf-restriction-step > span {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: var(--tf-primary-soft);
    color: var(--tf-primary);
    font-size: .58rem;
    font-weight: 950;
}
.tf-restriction-step > div { min-width: 0; display: grid; gap: .14rem; }
.tf-restriction-step strong { color: var(--tf-ink); font-size: .65rem; line-height: 1.35; font-weight: 900; }
.tf-restriction-step small { color: var(--tf-muted); font-size: .56rem; line-height: 1.5; font-weight: 620; }

.tf-restricted-actions { display: grid; gap: .55rem; margin-top: 1rem; }
.tf-restricted-actions .tf-button { width: 100%; }
.tf-restricted-unavailable {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    align-items: center;
    gap: .68rem;
    padding: .7rem;
    border: 1px dashed var(--tf-line-strong);
    border-radius: .9rem;
    background: var(--tf-surface-soft);
}
.tf-restricted-unavailable > span {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: var(--tf-warning-soft);
    color: var(--tf-warning);
}
.tf-restricted-unavailable > div { min-width: 0; display: grid; gap: .12rem; }
.tf-restricted-unavailable strong { color: var(--tf-ink); font-size: .63rem; line-height: 1.3; font-weight: 900; }
.tf-restricted-unavailable small { color: var(--tf-muted); font-size: .55rem; line-height: 1.45; font-weight: 620; }

.tf-button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.tf-button.is-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    color: var(--tf-primary);
    animation: tfSpin .7s linear infinite;
}

.tf-no-chrome .tf-offline-banner { bottom: calc(1rem + var(--tf-safe-bottom)); }

@keyframes tfAuthOrbit { to { transform: rotate(360deg); } }

@media (max-width: 350px) {
    .tf-access-screen { padding-inline: .8rem; }
    .tf-auth-gate,
    .tf-restricted-card { padding: 1rem; border-radius: 1.25rem; }
    .tf-auth-gate__route { right: .95rem; width: 4.4rem; }
    .tf-auth-stages { gap: .3rem; }
    .tf-auth-stage { padding-inline: .42rem; }
    .tf-auth-stage strong { font-size: .57rem; }
    .tf-restricted-card__topline { align-items: flex-start; }
    .tf-restricted-card__code { margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tf-auth-gate__orbit { animation: none !important; }
}
