/* taffy 塔菲云 · Apple.com & Luxury Architectural Design System (v13.3 - Mobile Precision + Ace Taffy Splash Cinema) */
:root {
  --tf-bg: #ffffff;
  --tf-bg-alt: #f5f5f7;
  --tf-surface: #ffffff;
  --tf-surface-elevated: #f5f5f7;
  --tf-surface-glass: rgba(255, 255, 255, 0.88);
  --tf-ink: #1d1d1f;
  --tf-ink-secondary: #6e6e73;
  --tf-ink-tertiary: #86868b;
  --tf-border: rgba(0, 0, 0, 0.08);
  --tf-border-strong: rgba(0, 0, 0, 0.14);
  --tf-accent: #0071e3;
  --tf-accent-hover: #0077ed;
  --tf-accent-soft: rgba(0, 113, 227, 0.10);
  --tf-emerald: #0a8458;
  --tf-amber: #b25e09;
  --tf-rose: #d92b4b;
  --tf-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --tf-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --tf-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);
  --tf-spotlight: rgba(0, 113, 227, 0.06);
  --tf-radius-xl: 28px;
  --tf-radius-lg: 20px;
  --tf-radius-md: 14px;
  --tf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tf-spring: cubic-bezier(0.22, 1.38, 0.36, 1);
  --tf-font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --tf-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-taffy-finish="obsidian"] {
  --tf-bg: #000000;
  --tf-bg-alt: #0b0b0e;
  --tf-surface: #121215;
  --tf-surface-elevated: #1c1c21;
  --tf-surface-glass: rgba(18, 18, 22, 0.88);
  --tf-ink: #f5f5f7;
  --tf-ink-secondary: #a1a1a6;
  --tf-ink-tertiary: #6e6e73;
  --tf-border: rgba(255, 255, 255, 0.10);
  --tf-border-strong: rgba(255, 255, 255, 0.18);
  --tf-accent: #2997ff;
  --tf-accent-hover: #40a3ff;
  --tf-accent-soft: rgba(41, 151, 255, 0.14);
  --tf-emerald: #30d158;
  --tf-amber: #ffd60a;
  --tf-rose: #ff453a;
  --tf-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.42);
  --tf-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.62);
  --tf-shadow-lg: 0 32px 84px rgba(0, 0, 0, 0.85);
  --tf-spotlight: rgba(41, 151, 255, 0.10);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent !important;
}

body {
  margin: 0;
  font-family: var(--tf-font);
  background: var(--tf-bg);
  color: var(--tf-ink);
  line-height: 1.5;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  -webkit-tap-highlight-color: transparent !important;
}

#taffy-stage, main {
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

button, [role="button"], [onclick] {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  outline: none !important;
  touch-action: manipulation;
}

button:focus, button:focus-visible, button:active,
a:focus, a:focus-visible, a:active,
[role="button"]:focus, [onclick]:focus {
  outline: none !important;
}

input, textarea, select {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent !important;
}

/* ---------- Apple Global Glass Navigation (Single-Line Precision on Mobile & Desktop) ---------- */
.tf-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 56px;
  background: var(--tf-surface-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--tf-border);
  transform: translate3d(0, 0, 0);
}

.tf-nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.tf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.tf-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.tf-brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tf-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--tf-ink-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--tf-border-strong);
  white-space: nowrap;
  flex-shrink: 0;
}

.tf-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--tf-ink-secondary);
  white-space: nowrap;
  min-width: 0;
}

.tf-nav-links a, .tf-nav-links button.tf-nav-link {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 12.5px;
  color: var(--tf-ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tf-nav-links a:hover, .tf-nav-links button.tf-nav-link:hover,
.tf-nav-links a.active, .tf-nav-links button.tf-nav-link.active {
  color: var(--tf-ink);
}

.tf-nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1520px) {
  .tf-brand-sub,
  .tf-hide-xl {
    display: none !important;
  }
  .tf-nav-links {
    gap: 16px;
  }
}

@media (max-width: 1240px) {
  .tf-hide-lg {
    display: none !important;
  }
  .tf-nav-inner {
    padding: 0 18px;
    gap: 10px;
  }
  .tf-nav-actions .tf-btn-sm,
  .tf-nav-actions .tf-bf-nav-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 1060px) {
  .tf-nav-links {
    display: none !important;
  }
}

/* ---------- Buttons, Tactile Spring Physics & Pills ---------- */
.tf-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 980px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.36s var(--tf-spring), background-color 0.24s var(--tf-ease), border-color 0.24s var(--tf-ease), color 0.24s var(--tf-ease), box-shadow 0.28s var(--tf-ease), opacity 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tf-btn:hover:not(:disabled) {
  transform: translate3d(0, -1.5px, 0) scale(1.015);
}

.tf-btn:active:not(:disabled),
.tf-btn.is-pressing:not(:disabled) {
  transform: translate3d(0, 0.5px, 0) scale(0.945);
  transition-duration: 0.1s;
}

.tf-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.tf-btn-primary {
  background: var(--tf-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.24);
}
.tf-btn-primary:hover:not(:disabled) {
  background: var(--tf-accent-hover);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.36);
}

.tf-btn-ink {
  background: var(--tf-ink);
  color: var(--tf-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.tf-btn-ink:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.tf-btn-outline {
  background: transparent;
  color: var(--tf-ink);
  border: 1px solid var(--tf-border-strong);
}
.tf-btn-outline:hover:not(:disabled) {
  background: var(--tf-surface-elevated);
  border-color: var(--tf-ink-tertiary);
}

.tf-btn-ghost {
  background: var(--tf-surface-elevated);
  color: var(--tf-ink);
}
.tf-btn-ghost:hover:not(:disabled) {
  background: var(--tf-border-strong);
}

.tf-ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0%, rgba(41, 151, 255, 0.18) 60%, transparent 100%);
  animation: tfRippleExpand 0.58s var(--tf-ease) forwards;
}

.tf-btn-sm { padding: 7px 13px; font-size: 12.5px; }
.tf-btn-lg { padding: 14px 28px; font-size: 15.5px; font-weight: 600; }

/* Mobile Header Precision Fix (Prevents multi-line wrapping, squashed logo & viewport overflow) */
@media (max-width: 768px) {
  .tf-hide-mobile {
    display: none !important;
  }
  .tf-nav {
    height: 54px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .tf-nav-inner {
    padding: 0 12px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .tf-brand {
    gap: 6px;
    font-size: 14.5px;
    flex-shrink: 0;
    max-width: 44%;
    overflow: hidden;
  }
  .tf-brand-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tf-brand-mark {
    width: 24px;
    height: 24px;
  }
  .tf-brand-mark svg {
    width: 24px;
    height: 24px;
  }
  .tf-brand-sub {
    display: none !important;
  }
  .tf-nav-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .tf-nav-actions .tf-btn-sm,
  .tf-nav-actions .tf-bf-nav-pill {
    padding: 6px 10px;
    font-size: 11.5px;
    border-radius: 980px;
    height: 30px;
  }
  .tf-bf-landing-spotlight {
    padding: 16px;
    border-radius: 20px;
    gap: 14px;
  }
  .tf-bf-landing-spotlight > div {
    min-width: 0 !important;
    width: 100%;
  }
  .tf-bf-landing-spotlight > button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tf-hide-xs {
    display: none !important;
  }
  .tf-nav-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .tf-brand {
    font-size: 14px;
    max-width: 48%;
  }
  .tf-nav-actions {
    gap: 5px;
  }
  .tf-nav-actions .tf-btn-sm,
  .tf-nav-actions .tf-bf-nav-pill {
    padding: 5px 9px;
    font-size: 11px;
    height: 29px;
  }
}

.tf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--tf-surface-elevated);
  color: var(--tf-ink-secondary);
  border: 1px solid var(--tf-border);
}

.tf-pill-accent {
  background: var(--tf-accent-soft);
  color: var(--tf-accent);
  border-color: transparent;
}

/* ---------- Landing Keynote Hero & Smooth Ambient Aura ---------- */
.tf-ribbon-announce {
  background: var(--tf-bg-alt);
  border-bottom: 1px solid var(--tf-border);
  text-align: center;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--tf-ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.tf-ribbon-announce a, .tf-ribbon-announce button {
  color: var(--tf-accent);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.tf-ribbon-announce a:hover, .tf-ribbon-announce button:hover { text-decoration: underline; }

.tf-hero-wrap {
  position: relative;
  overflow: hidden;
}

.tf-hero-aura {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 920px;
  height: 460px;
  margin-left: -460px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 45%, rgba(0, 113, 227, 0.14), rgba(94, 92, 230, 0.10) 45%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
  animation: tfAuraFloat 14s ease-in-out infinite alternate;
  will-change: transform;
}

.tf-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 60px;
  text-align: center;
}

.tf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tf-ink-secondary);
  margin-bottom: 22px;
  max-width: 100%;
}

.tf-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tf-emerald);
  box-shadow: 0 0 0 4px rgba(10, 132, 88, 0.16);
  animation: tfPulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.tf-hero-title {
  margin: 0 auto 20px;
  max-width: 920px;
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.tf-hero-animate .tf-hero-badge { animation: tfHeroRise 0.7s var(--tf-ease) both; }
.tf-hero-animate .tf-hero-title { animation: tfHeroRise 0.78s var(--tf-ease) 0.06s both; }
.tf-hero-animate .tf-hero-sub { animation: tfHeroRise 0.84s var(--tf-ease) 0.12s both; }
.tf-hero-animate .tf-hero-cta { animation: tfHeroRise 0.9s var(--tf-ease) 0.18s both; }

.tf-gradient-text {
  background: linear-gradient(125deg, var(--tf-ink) 10%, var(--tf-accent) 55%, #5e5ce6 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tfShimmerText 8s ease-in-out infinite alternate;
}

.tf-hero-sub {
  margin: 0 auto 32px;
  max-width: 700px;
  font-size: clamp(15.5px, 2vw, 20.5px);
  line-height: 1.6;
  color: var(--tf-ink-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.tf-hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

/* ---------- VPS & Tier-1 Carrier Auto-Scrolling Marquee ---------- */
.tf-marquee-section {
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
  background: var(--tf-bg-alt);
  padding: 28px 0 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.tf-marquee-heading {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-ink-tertiary);
  margin-bottom: 18px;
  padding: 0 20px;
}

.tf-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.tf-marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: tfMarquee 34s linear infinite;
  will-change: transform;
}

.tf-marquee-viewport:hover .tf-marquee-track {
  animation-play-state: paused;
}

.tf-carrier-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  box-shadow: var(--tf-shadow-sm);
  white-space: nowrap;
  transition: transform 0.25s var(--tf-ease), border-color 0.25s ease;
}

.tf-carrier-pill:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--tf-accent);
}

.tf-carrier-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Hardware / Dark Keynote Contrast Stage ---------- */
.tf-stage-obsidian {
  background: #000000;
  color: #f5f5f7;
  padding: 84px 20px;
  position: relative;
  overflow: hidden;
}

.tf-stage-obsidian::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 440px;
  background: radial-gradient(ellipse at 50% 0%, rgba(41, 151, 255, 0.20), rgba(94, 92, 230, 0.08) 45%, transparent 72%);
  pointer-events: none;
}

.tf-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px;
}

.tf-section-alt {
  background: var(--tf-bg-alt);
}

.tf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-accent);
  margin-bottom: 12px;
}

.tf-h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.tf-lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(15px, 1.5vw, 18.5px);
  color: var(--tf-ink-secondary);
  line-height: 1.6;
}

/* ---------- Optical Fabric Canvas Card ---------- */
.tf-fabric-shell {
  position: relative;
  border-radius: var(--tf-radius-xl);
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  color: #f5f5f7;
}

.tf-fabric-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tf-fabric-canvas-wrap {
  position: relative;
  height: 400px;
  width: 100%;
  background: radial-gradient(circle at 50% 45%, #121524 0%, #07070a 75%);
}

.tf-fabric-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tf-fabric-hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: none;
}

.tf-fabric-stat {
  pointer-events: auto;
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 11px 15px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Bento Grid & Spotlight Cards ---------- */
.tf-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tf-bento-card {
  position: relative;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-xl);
  padding: 28px;
  box-shadow: var(--tf-shadow-sm);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.32s var(--tf-ease), border-color 0.25s ease;
  transform: translate3d(0, 0, 0);
}

.tf-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), var(--tf-spotlight), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tf-bento-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--tf-border-strong);
}

.tf-bento-card:hover::after { opacity: 1; }

.tf-col-12 { grid-column: span 12; }
.tf-col-8 { grid-column: span 8; }
.tf-col-7 { grid-column: span 7; }
.tf-col-6 { grid-column: span 6; }
.tf-col-5 { grid-column: span 5; }
.tf-col-4 { grid-column: span 4; }
.tf-col-3 { grid-column: span 3; }

@media (max-width: 920px) {
  .tf-col-8, .tf-col-7, .tf-col-6, .tf-col-5, .tf-col-4, .tf-col-3 { grid-column: span 12; }
  .tf-nav-links { display: none; }
  .tf-bento-card { padding: 22px 18px; border-radius: 22px; }
}

/* ---------- Brand Heritage Timeline ("历史语言") ---------- */
.tf-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.tf-milestone {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tf-radius-lg);
  padding: 26px;
  transition: transform 0.3s var(--tf-ease), border-color 0.25s ease, background 0.25s ease;
}

.tf-milestone:hover {
  transform: translate3d(0, -3px, 0);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(41, 151, 255, 0.45);
}

.tf-milestone-year {
  font-family: var(--tf-mono);
  font-size: 13px;
  font-weight: 700;
  color: #2997ff;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.tf-card {
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 24px;
  box-shadow: var(--tf-shadow-sm);
  min-width: 0;
  transition: transform 0.24s var(--tf-ease), border-color 0.22s ease, background-color 0.22s ease;
}

@media (max-width: 768px) {
  .tf-card { padding: 18px 16px; }
}

.tf-card-interactive:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--tf-accent);
}
.tf-card-interactive:active {
  transform: scale(0.99);
}

/* ---------- Dashboard Shell & Responsive Knowledge Base ---------- */
.tf-app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Responsive Knowledge Base Grid (Fixes vertical squashed text on mobile!) */
.tf-docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tf-docs-article-card {
  min-height: 340px;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 860px) {
  .tf-docs-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.tf-sidebar {
  position: sticky;
  top: 78px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-xl);
  padding: 16px;
  box-shadow: var(--tf-shadow-sm);
}

.tf-side-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tf-ink-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px 6px;
}

.tf-side-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  margin-bottom: 3px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--tf-ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--tf-ease), color 0.2s var(--tf-ease), transform 0.2s var(--tf-spring);
}

.tf-side-item:hover {
  background: var(--tf-surface-elevated);
  color: var(--tf-ink);
}

.tf-side-item:active {
  transform: scale(0.975);
}

.tf-side-item.active {
  background: var(--tf-ink);
  color: var(--tf-bg);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.tf-side-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tf-side-count {
  font-size: 11px;
  font-family: var(--tf-mono);
  padding: 2px 7px;
  border-radius: 980px;
  background: rgba(127, 127, 127, 0.16);
}

.tf-main-view {
  min-width: 0;
  width: 100%;
}

.tf-view-animate {
  animation: tfViewEnter 0.3s var(--tf-ease) both;
}

/* Silky-Smooth Persistent Mobile Tab Strip (Never Resets Scroll on Click!) */
.tf-mobile-tabs {
  display: none;
  position: sticky;
  top: 52px;
  z-index: 880;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tf-border);
  background: var(--tf-surface-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tf-mobile-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tf-mobile-tab-btn {
  position: relative;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 980px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.26s var(--tf-spring), background-color 0.24s var(--tf-ease), color 0.24s var(--tf-ease), box-shadow 0.24s var(--tf-ease);
}

.tf-mobile-tab-btn:active {
  transform: scale(0.93);
}

.tf-mobile-tab-btn.tf-btn-ink {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transform: translate3d(0, -1px, 0);
}

@media (max-width: 960px) {
  .tf-app-shell { grid-template-columns: 1fr; padding: 18px 14px 64px; }
  .tf-sidebar { display: none; }
  .tf-mobile-tabs { display: flex; }
}

/* ---------- Nodes & Traffic Monitor Components ---------- */
.tf-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.tf-node-card {
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: transform 0.22s var(--tf-ease), border-color 0.2s ease;
}

.tf-node-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--tf-border-strong);
}

.tf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.tf-status-dot.online {
  background: var(--tf-emerald);
  box-shadow: 0 0 0 4px rgba(10, 132, 88, 0.15);
}
.tf-status-dot.offline {
  background: var(--tf-rose);
  box-shadow: 0 0 0 4px rgba(217, 43, 75, 0.15);
}

.tf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 146px;
  padding-top: 16px;
}

.tf-bar-col {
  flex: 1;
  min-width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.tf-bar-track {
  width: 100%;
  max-width: 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--tf-surface-elevated);
  border-radius: 8px;
  overflow: hidden;
}

.tf-bar-down {
  background: linear-gradient(180deg, #2997ff, #0071e3);
  transition: height 0.55s var(--tf-ease);
}

.tf-bar-up {
  background: linear-gradient(180deg, #64d2ff, #5e5ce6);
  transition: height 0.55s var(--tf-ease);
}

/* ---------- Forms, Inputs & Spam Mail Notice ---------- */
.tf-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--tf-border-strong);
  background: var(--tf-surface-elevated);
  color: var(--tf-ink);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tf-input:focus {
  border-color: var(--tf-accent);
  background: var(--tf-surface);
  box-shadow: 0 0 0 4px var(--tf-accent-soft);
}

.tf-spam-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.30);
  color: var(--tf-ink);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Ultra-Smooth Modals (Zero-Flash In-Place Architecture) ---------- */
.tf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  will-change: opacity;
}

.tf-overlay.is-entering {
  animation: tfFadeIn 0.22s var(--tf-ease) both;
}

.tf-dialog {
  width: 100%;
  max-width: 520px;
  background: var(--tf-surface);
  color: var(--tf-ink);
  border: 1px solid var(--tf-border-strong);
  border-radius: 26px;
  padding: 24px 22px;
  box-shadow: var(--tf-shadow-lg);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: auto;
  will-change: transform, opacity;
}

.tf-dialog.is-entering {
  animation: tfModalIn 0.34s var(--tf-spring) both;
}

/* Silky Billing Period Cards inside Order & Settlement Modal (Zero Flicker) */
.tf-period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tf-period-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--tf-border);
  background: var(--tf-surface-elevated);
  color: var(--tf-ink);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.34s var(--tf-spring), background-color 0.24s var(--tf-ease), color 0.24s var(--tf-ease), border-color 0.24s var(--tf-ease), box-shadow 0.28s var(--tf-ease);
}

.tf-period-card:hover {
  transform: translate3d(0, -2px, 0) scale(1.01);
  border-color: var(--tf-border-strong);
}

.tf-period-card:active,
.tf-period-card.is-pressing {
  transform: translate3d(0, 0, 0) scale(0.95);
  transition-duration: 0.1s;
}

.tf-period-card.active {
  background: var(--tf-ink);
  color: var(--tf-bg);
  border-color: var(--tf-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  transform: translate3d(0, -2px, 0) scale(1.015);
}

.tf-period-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tf-period-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
}

.tf-period-card.active .tf-period-label {
  opacity: 0.92;
}

.tf-period-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.3;
  transform: scale(0.75);
  transition: transform 0.34s var(--tf-spring), opacity 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.tf-period-card.active .tf-period-check {
  opacity: 1;
  transform: scale(1);
  background: var(--tf-accent);
  border-color: var(--tf-accent);
  color: #ffffff;
}

.tf-period-price {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tf-price-morph {
  display: inline-block;
  animation: tfPricePulse 0.34s var(--tf-spring) both;
}

/* ---------- Apple.com Flagship Horizontal Sliding Showcase Gallery & Dual Marquee ---------- */
.tf-marquee-track-reverse {
  display: flex;
  width: max-content;
  gap: 18px;
  margin-top: 14px;
  animation: tfMarqueeReverse 38s linear infinite;
  will-change: transform;
}

.tf-marquee-viewport:hover .tf-marquee-track-reverse {
  animation-play-state: paused;
}

/* Hero Live Micro-Telemetry Visuals inside 4 Bento Cards */
.tf-hero-metric-card {
  padding: 22px 24px 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0);
  transition: transform 0.36s var(--tf-ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

.tf-hero-metric-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, -5px, 0) scale(1.015);
  box-shadow: var(--tf-shadow-md);
  border-color: var(--tf-accent);
}

.tf-hero-spark {
  margin-top: 12px;
  height: 28px;
  border-radius: 10px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

.tf-laser-packet {
  position: absolute;
  top: 50%;
  left: -30%;
  width: 44%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #2997ff, #64d2ff, #ffffff);
  box-shadow: 0 0 10px #2997ff;
  animation: tfPacketSlide 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.tf-laser-packet.delay-1 {
  animation-delay: 1.1s;
  background: linear-gradient(90deg, transparent, #5e5ce6, #30d158, #ffffff);
}

.tf-eq-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 16px;
  gap: 3px;
}

.tf-eq-bar {
  flex: 1;
  background: linear-gradient(180deg, #64d2ff, #0071e3);
  border-radius: 3px;
  height: 35%;
  animation: tfEqBounce 1.2s ease-in-out infinite alternate;
}

.tf-mini-ticker {
  display: flex;
  width: max-content;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--tf-ink-secondary);
  animation: tfMarquee 14s linear infinite;
}

/* Apple Pro Horizontal Sliding Gallery */
.tf-gallery-section {
  padding: 84px 0 76px;
  background: var(--tf-bg);
  overflow: hidden;
  position: relative;
}

.tf-gallery-header {
  max-width: 1180px;
  margin: 0 auto 36px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.tf-gallery-nav-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--tf-border-strong);
  background: var(--tf-surface-elevated);
  color: var(--tf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.34s var(--tf-spring), background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.24s ease;
}

.tf-gallery-arrow:hover {
  transform: translate3d(0, -2px, 0) scale(1.06);
  background: var(--tf-ink);
  color: var(--tf-bg);
  border-color: var(--tf-ink);
}

.tf-gallery-arrow:active {
  transform: scale(0.92);
}

.tf-gallery-viewport {
  max-width: min(1140px, calc(100% - 36px));
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 8px 0 28px;
  box-sizing: border-box;
}

.tf-gallery-track {
  display: flex;
  width: 100%;
  gap: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.tf-gallery-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  border-radius: 30px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  box-shadow: var(--tf-shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--tf-ease), border-color 0.3s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.tf-gallery-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: var(--tf-accent);
  box-shadow: var(--tf-shadow-lg);
}

.tf-gallery-card.is-active {
  border-color: rgba(41, 151, 255, 0.48);
}

.tf-gallery-stage {
  position: relative;
  height: 256px;
  background: radial-gradient(circle at 50% 25%, #161b2e 0%, #090a10 72%, #050508 100%);
  color: #ffffff;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tf-gallery-body {
  padding: 24px 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.tf-gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tf-gallery-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  backdrop-filter: blur(14px);
}

.tf-gallery-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 980px;
  border: none;
  padding: 0;
  background: var(--tf-ink-tertiary);
  opacity: 0.45;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.38s var(--tf-spring), opacity 0.25s ease, background-color 0.25s ease;
}

.tf-gallery-dot.active {
  width: 38px;
  opacity: 1;
  background: rgba(127, 127, 127, 0.28);
}

.tf-gallery-dot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--tf-ink);
  border-radius: 980px;
}

.tf-gallery-dot.active .tf-gallery-dot-fill {
  animation: tfGalleryDotFill 4.8s linear forwards;
}

.tf-gallery-paused .tf-gallery-dot.active .tf-gallery-dot-fill {
  animation-play-state: paused;
}

/* Animated Visuals inside Gallery Stage & Benchmark Bars */
.tf-stage-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.tf-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  color: #f5f5f7;
  animation: tfFloatBob 3.6s ease-in-out infinite alternate;
}

.tf-bench-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.tf-bench-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(127, 127, 127, 0.16);
  overflow: hidden;
  position: relative;
}

.tf-bench-fill {
  height: 100%;
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.tf-bench-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: tfBeamSweep 2.4s ease-in-out infinite;
}

.tf-device-dock {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
}
.tf-device-dock::-webkit-scrollbar { display: none; }

.tf-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--tf-spring), border-color 0.22s ease;
}
.tf-device-chip:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--tf-accent);
}

/* ---------- Ace Taffy (永雏塔菲) Abstract Splash Cinema & Seamless Iris Transition ---------- */
.tf-splash-stage {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: radial-gradient(circle at 50% 42%, #190d26 0%, #07070c 68%, #000000 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  transition: opacity 0.62s var(--tf-ease), transform 0.68s var(--tf-ease), filter 0.62s var(--tf-ease);
  will-change: opacity, transform, filter;
}

.tf-splash-stage.is-leaving {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(18px);
  pointer-events: none;
}

.tf-splash-cinema-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(1120px, 96vw);
  max-height: 88vh;
  border-radius: 22px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.9);
}

.tf-splash-video {
  max-width: min(1120px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.tf-splash-danmaku-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tf-danmaku-item {
  position: absolute;
  right: -100%;
  white-space: nowrap;
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92), 0 0 12px rgba(255, 82, 168, 0.75);
  padding: 4px 12px;
  border-radius: 980px;
  background: rgba(15, 10, 24, 0.56);
  border: 1px solid rgba(255, 142, 201, 0.35);
  animation: tfDanmakuFly 4.4s linear forwards;
}

.tf-splash-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.tf-splash-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(12, 12, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 130, 192, 0.42);
  font-size: 12px;
  font-weight: 700;
  color: #ff9ec6;
}

.tf-splash-bottombar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 5;
}

.tf-splash-ping-box {
  background: rgba(10, 12, 20, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tf-splash-progress-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 6;
}

.tf-splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b9d, #2997ff, #30d158);
  transition: width 0.12s linear;
}

@media (max-width: 680px) {
  .tf-splash-stage {
    padding: 10px;
  }
  .tf-splash-cinema-box {
    max-width: 96vw;
    max-height: 86vh;
    border-radius: 18px;
  }
  .tf-splash-video {
    max-width: 96vw;
    max-height: 86vh;
  }
  .tf-splash-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
}

/* ---------- Scroll Reveal Choreography ---------- */
.tf-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.72s var(--tf-ease), transform 0.78s var(--tf-ease), filter 0.65s var(--tf-ease);
  will-change: opacity, transform, filter;
}

.tf-reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
}

.tf-delay-1 { transition-delay: 0.07s; }
.tf-delay-2 { transition-delay: 0.14s; }
.tf-delay-3 { transition-delay: 0.21s; }

/* ---------- Rich Text / Markdown Prose & Clickable Links ---------- */
.tf-prose {
  line-height: 1.75;
  color: var(--tf-ink-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.tf-prose h1, .tf-prose h2, .tf-prose h3 { color: var(--tf-ink); margin: 16px 0 8px; line-height: 1.3; }
.tf-prose h1 { font-size: 20px; }
.tf-prose h2 { font-size: 17.5px; }
.tf-prose h3 { font-size: 15.5px; }
.tf-prose p { margin: 0 0 10px; }
.tf-prose ul, .tf-prose ol { margin: 6px 0 12px 18px; padding: 0; }
.tf-prose li { margin-bottom: 5px; }
.tf-prose code {
  font-family: var(--tf-mono);
  font-size: 12.5px;
  background: var(--tf-surface-elevated);
  padding: 2px 6px;
  border-radius: 6px;
}

.tf-doc-link {
  color: var(--tf-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
  word-break: break-all;
  transition: opacity 0.15s ease;
}
.tf-doc-link:hover {
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.tf-footer {
  border-top: 1px solid var(--tf-border);
  background: var(--tf-bg-alt);
  padding: 46px 24px 64px;
  font-size: 12.5px;
  color: var(--tf-ink-secondary);
}

.tf-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---------- Keyframes ---------- */
@keyframes tfHeroRise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tfViewEnter {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tfModalIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes tfMarqueeReverse {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes tfRippleExpand {
  0% { transform: scale(0); opacity: 0.75; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes tfPricePulse {
  0% { transform: scale(0.92) translate3d(0, 3px, 0); opacity: 0.65; }
  60% { transform: scale(1.04) translate3d(0, -1px, 0); opacity: 1; }
  100% { transform: scale(1) translate3d(0, 0, 0); opacity: 1; }
}

@keyframes tfPacketSlide {
  0% { left: -45%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

@keyframes tfEqBounce {
  0% { height: 22%; opacity: 0.65; }
  50% { height: 95%; opacity: 1; }
  100% { height: 42%; opacity: 0.85; }
}

@keyframes tfGalleryDotFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes tfFloatBob {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -6px, 0); }
}

@keyframes tfBeamSweep {
  0% { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

@keyframes tfAuraFloat {
  0% { transform: translate3d(-3%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, 14px, 0) scale(1.06); }
}

@keyframes tfShimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes tfPulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(10, 132, 88, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(10, 132, 88, 0.04); }
}

@keyframes tfDanmakuFly {
  0% { transform: translate3d(0, 0, 0); right: -60%; }
  100% { transform: translate3d(-220vw, 0, 0); right: 100%; }
}

/* ---------- Official Telegram Channel & Group Direct-Link Visual Buttons ---------- */
.tf-tg-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.tf-tg-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--tf-border-strong);
  background: var(--tf-surface);
  box-shadow: var(--tf-shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.34s var(--tf-spring), border-color 0.24s ease, box-shadow 0.28s ease;
}

.tf-tg-card:hover {
  transform: translate3d(0, -3px, 0) scale(1.01);
  border-color: #2997ff;
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.18);
}

.tf-tg-card:active {
  transform: scale(0.97);
}

.tf-tg-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}

.tf-tg-icon.channel {
  background: linear-gradient(135deg, #0071e3, #2997ff);
}

.tf-tg-icon.group {
  background: linear-gradient(135deg, #5e5ce6, #bf5af2);
  box-shadow: 0 6px 16px rgba(94, 92, 230, 0.28);
}

.tf-tg-side-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--tf-border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tf-tg-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  color: var(--tf-ink);
  transition: transform 0.28s var(--tf-spring), border-color 0.2s ease, background-color 0.2s ease;
}

.tf-tg-side-btn:hover {
  transform: translate3d(0, -1.5px, 0);
  border-color: var(--tf-accent);
  background: var(--tf-accent-soft);
  color: var(--tf-accent);
}

/* ---------- Withdrawal Threshold Notice & Progress Bar ---------- */
.tf-withdraw-rule-box {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border-strong);
  font-size: 12.5px;
  line-height: 1.6;
}

.tf-withdraw-prog-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(127, 127, 127, 0.18);
  overflow: hidden;
  margin: 8px 0 10px;
  position: relative;
}

.tf-withdraw-prog-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0071e3, #30d158);
  position: relative;
  overflow: hidden;
  transition: width 0.6s var(--tf-ease);
}

.tf-withdraw-prog-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: tfBeamSweep 2.2s ease-in-out infinite;
}

/* ---------- High-Fashion Monochrome Titanium 3-Tier Affiliate Studio ---------- */
.tf-aff-studio {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(165deg, #0b0c10 0%, #050507 60%, #090a0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f5f5f7;
  padding: 28px 26px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
}

.tf-aff-studio::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 680px;
  height: 260px;
  margin-left: -340px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(226, 212, 189, 0.11) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 72%);
  pointer-events: none;
  animation: tfAuraFloat 12s ease-in-out infinite alternate;
}

.tf-aff-top-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .tf-aff-top-grid {
    grid-template-columns: 1fr;
  }
  .tf-aff-studio {
    padding: 20px 16px;
    border-radius: 22px;
  }
}

.tf-aff-canvas-wrap {
  position: relative;
  min-height: 310px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.45) 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-aff-canvas-wrap canvas {
  width: 100%;
  height: 310px;
  display: block;
}

.tf-aff-canvas-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  font-size: 11px;
  font-family: var(--tf-mono);
  color: rgba(255, 255, 255, 0.56);
}

.tf-aff-tier-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.tf-aff-tier-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: transform 0.34s var(--tf-spring), border-color 0.28s var(--tf-ease), background-color 0.28s var(--tf-ease), box-shadow 0.3s ease;
}

.tf-aff-tier-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translate3d(-110%, 0, 0);
  transition: transform 0.7s var(--tf-ease);
  pointer-events: none;
}

.tf-aff-tier-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.tf-aff-tier-card:hover::after {
  transform: translate3d(110%, 0, 0);
}

.tf-aff-tier-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(214, 195, 165, 0.09));
  border-color: rgba(214, 195, 165, 0.58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.tf-aff-tier-code {
  font-family: var(--tf-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #d6c3a5;
  text-transform: uppercase;
}

.tf-aff-sim-panel {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tf-aff-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  margin: 12px 0 16px;
}

.tf-aff-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d6c3a5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s var(--tf-spring);
}

.tf-aff-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.tf-aff-sim-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 680px) {
  .tf-aff-sim-bars {
    grid-template-columns: 1fr;
  }
}

.tf-aff-sim-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-aff-bar-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  margin-top: 8px;
}

.tf-aff-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #d6c3a5);
  transition: width 0.45s var(--tf-ease);
}

.tf-roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  transition: transform 0.28s var(--tf-spring), border-color 0.22s ease, background-color 0.22s ease;
}

.tf-roster-item:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--tf-border-strong);
}

/* ---------- Ultra-Compact Progressive 3D Chibi Companion (Clean, No Label, Zero Obstruction) ---------- */
.tf-chibi-companion {
  position: fixed;
  bottom: 16px;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  transition: left 0.55s var(--tf-spring), right 0.55s var(--tf-spring);
}

.tf-chibi-companion.is-right {
  right: 16px;
  left: auto;
  flex-direction: row-reverse;
}

.tf-chibi-companion.is-left {
  left: 16px;
  right: auto;
  flex-direction: row;
}

.tf-chibi-avatar-wrap {
  pointer-events: auto;
  position: relative;
  width: 72px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  perspective: 720px;
  transform-style: preserve-3d;
}

.tf-chibi-shadow {
  position: absolute;
  bottom: 2px;
  width: 52px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.36) 0%, transparent 72%);
  transform: rotateX(70deg);
  transition: transform 0.35s var(--tf-ease), opacity 0.35s ease;
}

.tf-chibi-figure {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  object-fit: contain;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26));
  animation: tfChibi3DIdle 4s ease-in-out infinite;
  transition: transform 0.32s var(--tf-spring);
}

.tf-chibi-avatar-wrap:hover .tf-chibi-figure {
  transform: translate3d(0, -5px, 12px) rotateY(12deg) scale(1.06);
}

.tf-chibi-companion.is-popping .tf-chibi-figure {
  animation: tfChibiPopJump 0.65s var(--tf-spring) both;
}

.tf-chibi-companion.is-poked .tf-chibi-figure {
  animation: tfChibiPokeSpin 0.62s var(--tf-spring) both;
}

.tf-chibi-spark {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  font-size: 13px;
  font-weight: 700;
  color: #d6c3a5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  animation: tfSparkRise 0.85s var(--tf-ease) forwards;
}

/* Slim Apple Dynamic-Island Frosted Speech Pill (Progressive Typewriter Reveal) */
.tf-chibi-bubble {
  pointer-events: auto;
  position: relative;
  width: min(244px, calc(100vw - 102px));
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--tf-surface-glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--tf-border-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  color: var(--tf-ink);
  font-size: 12px;
  line-height: 1.5;
  transform-origin: bottom right;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.32s var(--tf-ease), transform 0.38s var(--tf-spring);
}

.tf-chibi-companion.is-left .tf-chibi-bubble {
  transform-origin: bottom left;
}

.tf-chibi-bubble.is-hidden {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.92);
  pointer-events: none;
  visibility: hidden;
}

.tf-chibi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.tf-chibi-name-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tf-ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tf-chibi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tf-accent);
  flex-shrink: 0;
}

.tf-chibi-tool-btns {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tf-chibi-mini-btn {
  border: none;
  background: var(--tf-surface-elevated);
  color: var(--tf-ink-secondary);
  border-radius: 980px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.22s var(--tf-spring);
}

.tf-chibi-mini-btn:hover {
  background: var(--tf-border-strong);
  color: var(--tf-ink);
  transform: scale(1.05);
}

.tf-chibi-text {
  min-height: 18px;
  color: var(--tf-ink);
  word-break: break-word;
}

.tf-type-cursor {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--tf-accent);
  animation: tfCursorBlink 0.75s steps(2, start) infinite;
}

.tf-chibi-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity 0.28s ease, transform 0.3s var(--tf-ease);
}

.tf-chibi-actions.is-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tf-chibi-cta {
  flex: 1;
  border: none;
  border-radius: 980px;
  padding: 5.5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tf-bg);
  background: var(--tf-ink);
  cursor: pointer;
  transition: transform 0.28s var(--tf-spring), opacity 0.2s ease;
}

.tf-chibi-cta:hover {
  transform: translate3d(0, -1px, 0);
  opacity: 0.9;
}

@media (max-width: 680px) {
  .tf-chibi-companion {
    bottom: 12px;
  }
  .tf-chibi-companion.is-right { right: 10px; }
  .tf-chibi-companion.is-left { left: 10px; }
  .tf-chibi-avatar-wrap {
    width: 60px;
    height: 64px;
  }
  .tf-chibi-figure {
    width: 58px;
    height: 58px;
  }
  .tf-chibi-bubble {
    width: min(224px, calc(100vw - 84px));
    padding: 9px 11px;
    font-size: 11.5px;
  }
}

@keyframes tfChibi3DIdle {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(-7deg) rotateZ(-1.2deg); }
  50% { transform: translate3d(0, -5px, 8px) rotateY(7deg) rotateZ(1.4deg); }
}

@keyframes tfChibiPopJump {
  0% { transform: translate3d(0, 12px, 0) scale(0.86) rotateY(-16deg); }
  55% { transform: translate3d(0, -9px, 12px) scale(1.08) rotateY(10deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotateY(0deg); }
}

@keyframes tfChibiPokeSpin {
  0% { transform: scale(1) rotateY(0deg); }
  30% { transform: translate3d(0, -11px, 14px) scale(1.12) rotateY(22deg) rotateZ(-6deg); }
  65% { transform: translate3d(0, -4px, 6px) scale(0.96) rotateY(-14deg) rotateZ(5deg); }
  100% { transform: scale(1) rotateY(0deg) rotateZ(0deg); }
}

@keyframes tfSparkRise {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.5); }
  25% { opacity: 1; transform: translate3d(var(--sx, 0px), -12px, 0) scale(1.1); }
  100% { opacity: 0; transform: translate3d(var(--sx, 0px), -34px, 0) scale(0.85); }
}

@keyframes tfCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   v13.9 TAFFY SENTINEL · TITANIUM ANTI-BOT & ORBITAL GRAPHIC VERIFICATION
   ========================================================================== */
.tf-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

.tf-sentinel-card {
  position: relative;
  margin: 4px 0 14px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(20, 21, 27, 0.94), rgba(11, 12, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: border-color 0.35s var(--tf-ease), box-shadow 0.35s var(--tf-ease), transform 0.25s var(--tf-ease);
}

html[data-taffy-finish="ceramic"] .tf-sentinel-card {
  background: linear-gradient(155deg, rgba(250, 250, 253, 0.96), rgba(242, 242, 247, 0.98));
  border-color: rgba(18, 18, 24, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tf-sentinel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(214, 195, 165, 0.08) 48%, transparent 72%);
  transform: translateX(-100%);
  pointer-events: none;
}

.tf-sentinel-card.is-scanning::before {
  animation: tfSentinelSweep 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.tf-sentinel-card.is-verified {
  border-color: rgba(214, 195, 165, 0.44);
  box-shadow: inset 0 1px 0 rgba(214, 195, 165, 0.16), 0 10px 26px rgba(0, 0, 0, 0.22);
}

html[data-taffy-finish="ceramic"] .tf-sentinel-card.is-verified {
  border-color: rgba(164, 134, 92, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px rgba(154, 125, 84, 0.12);
}

.tf-sentinel-card.is-shake {
  animation: tfSentinelShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: rgba(255, 69, 58, 0.55);
}

.tf-sentinel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 11px 13px;
  position: relative;
  z-index: 1;
}

.tf-sentinel-emblem {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d6c3a5;
  position: relative;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-emblem {
  background: rgba(18, 18, 24, 0.04);
  border-color: rgba(18, 18, 24, 0.1);
  color: #8f7248;
}

.tf-sentinel-card.is-verified .tf-sentinel-emblem {
  background: radial-gradient(circle at 30% 25%, rgba(214, 195, 165, 0.24), rgba(214, 195, 165, 0.06));
  border-color: rgba(214, 195, 165, 0.5);
  color: #f3e6d0;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-card.is-verified .tf-sentinel-emblem {
  background: radial-gradient(circle at 30% 25%, rgba(164, 134, 92, 0.18), rgba(164, 134, 92, 0.05));
  border-color: rgba(154, 125, 84, 0.48);
  color: #7c6036;
}

.tf-sentinel-ring-spin {
  animation: tfSentinelSpin 1.5s linear infinite;
  transform-origin: center;
}

.tf-sentinel-check-path {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
  animation: tfSentinelCheckDraw 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tf-sentinel-copy {
  flex: 1;
  min-width: 0;
}

.tf-sentinel-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tf-ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-sentinel-sub {
  font-size: 10.5px;
  color: var(--tf-ink-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-sentinel-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tf-sentinel-pill {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 247, 0.82);
  border-radius: 980px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.22s var(--tf-spring);
}

html[data-taffy-finish="ceramic"] .tf-sentinel-pill {
  border-color: rgba(18, 18, 24, 0.12);
  background: rgba(18, 18, 24, 0.04);
  color: rgba(29, 29, 31, 0.78);
}

.tf-sentinel-pill:hover {
  border-color: rgba(214, 195, 165, 0.55);
  color: #d6c3a5;
  transform: translateY(-0.5px);
}

html[data-taffy-finish="ceramic"] .tf-sentinel-pill:hover {
  border-color: rgba(154, 125, 84, 0.5);
  color: #7c6036;
}

.tf-sentinel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 980px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(214, 195, 165, 0.14);
  border: 1px solid rgba(214, 195, 165, 0.36);
  color: #e9d9bd;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-badge {
  background: rgba(154, 125, 84, 0.11);
  border-color: rgba(154, 125, 84, 0.34);
  color: #7c6036;
}

.tf-sentinel-progress {
  position: relative;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-progress {
  background: rgba(18, 18, 24, 0.05);
}

.tf-sentinel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(214, 195, 165, 0.25), #d6c3a5, #ffffff);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Titanium Orbital Graphic Challenge Drawer (Compact Horizontal Luxury Stage) */
.tf-sentinel-graphic {
  padding: 0 13px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  animation: tfSentinelUnfold 0.36s var(--tf-ease) both;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-graphic {
  border-top-color: rgba(18, 18, 24, 0.07);
}

.tf-sentinel-stage-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0 10px;
}

.tf-sentinel-dial-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 42%, rgba(36, 38, 48, 0.9), rgba(10, 11, 15, 0.98));
  border: 1px solid rgba(214, 195, 165, 0.22);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-dial-wrap {
  background: radial-gradient(circle at 50% 42%, #1d1e24, #0d0e12);
  border-color: rgba(154, 125, 84, 0.35);
}

.tf-sentinel-dial-canvas {
  width: 80px;
  height: 80px;
  display: block;
}

.tf-sentinel-stage-meta {
  flex: 1;
  min-width: 0;
}

.tf-sentinel-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6c3a5;
  margin-bottom: 3px;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-eyebrow {
  color: #8f7248;
}

.tf-sentinel-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--tf-ink);
  font-weight: 500;
}

.tf-sentinel-feedback {
  margin-top: 4px;
  font-size: 11px;
  color: var(--tf-ink-tertiary);
  min-height: 15px;
}

.tf-sentinel-feedback.is-error {
  color: #ff6b6b;
}

.tf-sentinel-feedback.is-near {
  color: #d6c3a5;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-feedback.is-near {
  color: #8f7248;
}

/* Machined Titanium Magnetic Slider Track */
.tf-sentinel-track {
  position: relative;
  height: 38px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: pointer;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-track {
  background: rgba(18, 18, 24, 0.055);
  border-color: rgba(18, 18, 24, 0.12);
}

.tf-sentinel-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38px;
  border-radius: 980px;
  background: linear-gradient(90deg, rgba(214, 195, 165, 0.12), rgba(214, 195, 165, 0.34));
  pointer-events: none;
}

.tf-sentinel-track-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 247, 0.55);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

html[data-taffy-finish="ceramic"] .tf-sentinel-track-label {
  color: rgba(29, 29, 31, 0.55);
}

.tf-sentinel-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e8dfd0);
  color: #111216;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
  transition: box-shadow 0.2s ease, transform 0.18s var(--tf-spring);
}

.tf-sentinel-tap-btn {
  margin-top: 9px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 980px;
  border: 1px solid rgba(214, 195, 165, 0.45);
  background: linear-gradient(135deg, rgba(214, 195, 165, 0.16), rgba(41, 151, 255, 0.14));
  color: var(--tf-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tf-sentinel-tap-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 195, 165, 0.8);
}

.tf-sentinel-thumb:active {
  cursor: grabbing;
  transform: scale(0.95);
  box-shadow: 0 2px 16px rgba(214, 195, 165, 0.45);
}

.tf-sentinel-ext-slot {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.tf-sentinel-ext-slot:empty {
  display: none;
  margin-top: 0;
}

@keyframes tfSentinelSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes tfSentinelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tfSentinelCheckDraw {
  0% { stroke-dashoffset: 28; }
  100% { stroke-dashoffset: 0; }
}

@keyframes tfSentinelUnfold {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes tfSentinelShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ==========================================================================
   v14.0 KINETIC PLANS SHOWCASE · LIVE NODE COUNTRIES & ANIMATED FEATURE ROWS
   ========================================================================== */
.tf-plans-hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.tf-cycle-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 980px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tf-cycle-btn {
  border: none;
  background: transparent;
  color: var(--tf-ink-secondary);
  border-radius: 980px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.28s var(--tf-ease), transform 0.25s var(--tf-spring), box-shadow 0.28s ease;
}

.tf-cycle-btn:hover {
  color: var(--tf-ink);
}

.tf-cycle-btn.active {
  background: var(--tf-ink);
  color: var(--tf-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

/* Global Live Node Countries Kinetic Ribbon */
.tf-plan-region-deck {
  position: relative;
  border-radius: 24px;
  padding: 18px 0 16px;
  margin-bottom: 24px;
  background: linear-gradient(155deg, rgba(16, 17, 22, 0.96), rgba(9, 10, 14, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  animation: tfPlanCardReveal 0.65s var(--tf-ease) both;
}

html[data-taffy-finish="ceramic"] .tf-plan-region-deck {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(244, 245, 249, 0.98));
  border-color: rgba(18, 18, 24, 0.09);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tf-plan-region-deck::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 22% 20%, rgba(214, 195, 165, 0.14), transparent 48%),
              radial-gradient(circle at 82% 80%, rgba(0, 113, 227, 0.12), transparent 50%);
  pointer-events: none;
  animation: tfAuraDrift 12s ease-in-out infinite alternate;
}

.tf-plan-region-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 12px;
}

.tf-plan-region-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tf-ink);
  letter-spacing: 0.01em;
}

.tf-live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6c3a5;
  box-shadow: 0 0 0 0 rgba(214, 195, 165, 0.65);
  animation: tfBeaconPulse 2.1s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  flex-shrink: 0;
}

html[data-taffy-finish="ceramic"] .tf-live-beacon {
  background: #9a7d54;
  box-shadow: 0 0 0 0 rgba(154, 125, 84, 0.55);
}

.tf-region-marquee-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 4px 0;
}

.tf-region-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  animation: tfRegionScrollLeft 36s linear infinite;
}

.tf-region-marquee-track.is-reverse {
  margin-top: 8px;
  animation: tfRegionScrollRight 42s linear infinite;
}

.tf-plan-region-deck:hover .tf-region-marquee-track {
  animation-play-state: paused;
}

.tf-region-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tf-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.28s var(--tf-spring), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-taffy-finish="ceramic"] .tf-region-chip {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(18, 18, 24, 0.09);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tf-region-chip:hover {
  transform: translate3d(0, -2px, 0) scale(1.04);
  border-color: rgba(214, 195, 165, 0.62);
  box-shadow: 0 6px 18px rgba(214, 195, 165, 0.16);
}

.tf-region-chip-flag {
  font-size: 15px;
  line-height: 1;
}

.tf-region-chip-cnt {
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d6c3a5;
  padding: 1px 6px;
  border-radius: 980px;
  background: rgba(214, 195, 165, 0.12);
}

html[data-taffy-finish="ceramic"] .tf-region-chip-cnt {
  color: #8b6e42;
  background: rgba(154, 125, 84, 0.11);
}

/* Luxury Kinetic Plan Cards Grid */
.tf-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.tf-plan-card {
  position: relative;
  border-radius: 26px;
  padding: 24px 22px 22px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  box-shadow: var(--tf-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  opacity: 0;
  animation: tfPlanCardReveal 0.68s var(--tf-ease) both;
  animation-delay: calc(var(--ci, 0) * 95ms);
  transition: transform 0.38s var(--tf-spring), border-color 0.32s ease, box-shadow 0.36s var(--tf-ease);
}

.tf-plan-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, -6px, 0);
  border-color: rgba(214, 195, 165, 0.5);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(214, 195, 165, 0.22);
}

html[data-taffy-finish="ceramic"] .tf-plan-card:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(154, 125, 84, 0.26);
}

/* Cursor-Following Champagne-Platinum Specular Spotlight */
.tf-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 15%), rgba(214, 195, 165, 0.14), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.tf-plan-card:hover::before {
  opacity: 1;
}

/* Continuous Ambient Light Sweep on Featured / Active Plan Card */
.tf-plan-card.is-featured,
.tf-plan-card.is-current {
  border-color: rgba(214, 195, 165, 0.44);
  background: linear-gradient(165deg, rgba(24, 25, 32, 0.96), rgba(13, 14, 19, 0.99));
}

html[data-taffy-finish="ceramic"] .tf-plan-card.is-featured,
html[data-taffy-finish="ceramic"] .tf-plan-card.is-current {
  border-color: rgba(154, 125, 84, 0.42);
  background: linear-gradient(165deg, #ffffff, #f7f5f0);
}

.tf-plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(108deg, transparent 20%, rgba(255, 255, 255, 0.07) 48%, rgba(214, 195, 165, 0.1) 52%, transparent 80%);
  pointer-events: none;
  z-index: 1;
  animation: tfCardGlintSweep 6.8s ease-in-out infinite;
  animation-delay: calc(var(--ci, 0) * 1.4s);
}

html[data-taffy-finish="ceramic"] .tf-plan-card::after {
  background: linear-gradient(108deg, transparent 20%, rgba(214, 195, 165, 0.16) 50%, transparent 80%);
}

.tf-plan-card-body,
.tf-plan-card-foot {
  position: relative;
  z-index: 2;
}

.tf-plan-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tf-plan-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(214, 195, 165, 0.13);
  border: 1px solid rgba(214, 195, 165, 0.3);
  color: #e9d9bd;
}

html[data-taffy-finish="ceramic"] .tf-plan-quota-pill {
  background: rgba(154, 125, 84, 0.1);
  border-color: rgba(154, 125, 84, 0.28);
  color: #7c6036;
}

.tf-plan-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #d6c3a5, #f4e8d3);
  color: #14151a;
  box-shadow: 0 4px 14px rgba(214, 195, 165, 0.34);
  animation: tfSoftFloat 3.4s ease-in-out infinite;
}

.tf-plan-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--tf-ink);
}

.tf-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 12px;
}

.tf-plan-price-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--tf-ink);
  display: inline-block;
  animation: tfPriceMorph 0.42s var(--tf-spring) both;
}

/* Liquid Titanium Quota Energy Meter */
.tf-plan-meter-wrap {
  height: 5px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 12px;
}

html[data-taffy-finish="ceramic"] .tf-plan-meter-wrap {
  background: rgba(18, 18, 24, 0.07);
}

.tf-plan-meter-fill {
  height: 100%;
  border-radius: 980px;
  background: linear-gradient(90deg, rgba(214, 195, 165, 0.45), #d6c3a5, #ffffff, #d6c3a5);
  background-size: 220% 100%;
  animation: tfLiquidShimmer 3.2s linear infinite;
  transition: width 0.8s var(--tf-ease);
}

html[data-taffy-finish="ceramic"] .tf-plan-meter-fill {
  background: linear-gradient(90deg, #9a7d54, #d6c3a5, #7c6036, #d6c3a5);
  background-size: 220% 100%;
}

.tf-plan-reset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #d6c3a5;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(214, 195, 165, 0.09);
  border: 1px solid rgba(214, 195, 165, 0.22);
  margin-bottom: 12px;
}

html[data-taffy-finish="ceramic"] .tf-plan-reset-chip {
  color: #8b6e42;
  background: rgba(154, 125, 84, 0.08);
  border-color: rgba(154, 125, 84, 0.22);
}

/* Per-Card Compact Live Countries Ticker Strip */
.tf-plan-mini-marquee {
  position: relative;
  overflow: hidden;
  margin: 0 -4px 14px;
  padding: 6px 0;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tf-plan-mini-track {
  display: flex;
  gap: 7px;
  width: max-content;
  animation: tfRegionScrollLeft 24s linear infinite;
}

.tf-plan-card:hover .tf-plan-mini-track {
  animation-duration: 15s;
}

.tf-plan-mini-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tf-ink-secondary);
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  white-space: nowrap;
}

/* Animated Verbatim Plan Content Feature Stack */
.tf-plan-feat-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.tf-plan-feat-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.8px;
  line-height: 1.55;
  color: var(--tf-ink-secondary);
  overflow: hidden;
  opacity: 0;
  animation:
    tfPlanFeatIn 0.55s var(--tf-ease) forwards,
    tfPlanRowWave 6.4s ease-in-out infinite;
  animation-delay:
    calc(var(--ci, 0) * 90ms + var(--fi, 0) * 58ms),
    calc(var(--ci, 0) * 0.7s + var(--fi, 0) * 0.62s + 0.8s);
  transition: transform 0.28s var(--tf-spring), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

html[data-taffy-finish="ceramic"] .tf-plan-feat-item {
  background: rgba(18, 18, 24, 0.026);
  border-color: rgba(18, 18, 24, 0.068);
  animation:
    tfPlanFeatIn 0.55s var(--tf-ease) forwards,
    tfPlanRowWaveCeramic 6.4s ease-in-out infinite;
  animation-delay:
    calc(var(--ci, 0) * 90ms + var(--fi, 0) * 58ms),
    calc(var(--ci, 0) * 0.7s + var(--fi, 0) * 0.62s + 0.8s);
}

.tf-plan-feat-item:hover {
  transform: translate3d(5px, 0, 0);
  background: rgba(214, 195, 165, 0.1);
  border-color: rgba(214, 195, 165, 0.36);
  color: var(--tf-ink);
}

html[data-taffy-finish="ceramic"] .tf-plan-feat-item:hover {
  background: rgba(154, 125, 84, 0.085);
  border-color: rgba(154, 125, 84, 0.34);
  color: var(--tf-ink);
}

.tf-plan-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  background: #d6c3a5;
  box-shadow: 0 0 8px rgba(214, 195, 165, 0.6);
  transition: transform 0.28s var(--tf-spring);
}

html[data-taffy-finish="ceramic"] .tf-plan-feat-dot {
  background: #9a7d54;
  box-shadow: 0 0 6px rgba(154, 125, 84, 0.4);
}

.tf-plan-feat-item:hover .tf-plan-feat-dot {
  transform: scale(1.45);
}

.tf-plan-feat-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.tf-plan-cta-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
}

.tf-plan-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: left 0.65s var(--tf-ease);
}

.tf-plan-cta-btn:hover::after {
  left: 145%;
}

/* ==========================================================================
   v14.0 SUBSCRIPTION ASSET VAULT · MULTI-PLAN SWITCHING WORKSPACE
   ========================================================================== */
.tf-vault-hero {
  position: relative;
  border-radius: 26px;
  padding: 16px;
  margin-bottom: 20px;
  background: linear-gradient(155deg, rgba(16, 17, 23, 0.97), rgba(8, 9, 13, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  animation: tfPlanCardReveal 0.6s var(--tf-ease) both;
}

.tf-vault-hero > *,
.tf-vault-grid > *,
.tf-vault-card > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

html[data-taffy-finish="ceramic"] .tf-vault-hero {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(242, 243, 248, 0.98));
  border-color: rgba(18, 18, 24, 0.09);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tf-vault-canvas-stage {
  position: relative;
  min-height: 328px;
  height: 100%;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 42%, #131624 0%, #090a10 62%, #05060a 100%);
  border: 1px solid rgba(214, 195, 165, 0.28);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 46px rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  --shuf-x: 112px;
  --fan-outer: 104px;
  --fan-inner: 38px;
}

html[data-taffy-finish="ceramic"] .tf-vault-canvas-stage {
  background: linear-gradient(145deg, #131520 0%, #090a0f 60%, #17141a 100%);
  border-color: rgba(154, 125, 84, 0.3);
}

.tf-vault-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tf-vault-canvas-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(245, 245, 247, 0.62);
  pointer-events: none;
}

.tf-vault-summary-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.tf-vault-kpi {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-taffy-finish="ceramic"] .tf-vault-kpi {
  background: rgba(18, 18, 24, 0.035);
  border-color: rgba(18, 18, 24, 0.075);
}

.tf-vault-kpi-label {
  font-size: 11px;
  color: var(--tf-ink-tertiary);
  margin-bottom: 4px;
}

.tf-vault-kpi-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-vault-quick-bar {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(214, 195, 165, 0.08);
  border: 1px solid rgba(214, 195, 165, 0.24);
  margin-bottom: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tf-vault-quick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  min-width: 0;
}

.tf-vault-quick-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tf-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-vault-quick-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tf-vault-quick-clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

html[data-taffy-finish="ceramic"] .tf-vault-quick-bar {
  background: rgba(154, 125, 84, 0.07);
  border-color: rgba(154, 125, 84, 0.22);
}

/* 3D Titanium Black-Card Asset Deck */
.tf-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr));
  gap: 20px;
}

.tf-vault-card {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(150deg, rgba(22, 23, 30, 0.96), rgba(11, 12, 16, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  animation: tfPlanCardReveal 0.6s var(--tf-ease) both;
  animation-delay: calc(var(--ci, 0) * 85ms);
  transition: transform 0.36s var(--tf-spring), border-color 0.3s ease, box-shadow 0.34s var(--tf-ease);
}

html[data-taffy-finish="ceramic"] .tf-vault-card {
  background: linear-gradient(150deg, #ffffff, #f3f4f8);
  border-color: rgba(18, 18, 24, 0.1);
  color: #1d1d1f;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tf-vault-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 20%), rgba(214, 195, 165, 0.2), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.tf-vault-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, -5px, 0);
  border-color: rgba(214, 195, 165, 0.52);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

html[data-taffy-finish="ceramic"] .tf-vault-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.11);
}

.tf-vault-card:hover::before {
  opacity: 1;
}

.tf-vault-card.is-active {
  border-color: rgba(214, 195, 165, 0.62);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(214, 195, 165, 0.28), inset 0 1px 0 rgba(214, 195, 165, 0.22);
}

html[data-taffy-finish="ceramic"] .tf-vault-card.is-active {
  background: linear-gradient(150deg, #ffffff, #faf6ee);
  border-color: rgba(154, 125, 84, 0.56);
  box-shadow: 0 18px 46px rgba(154, 125, 84, 0.16), 0 0 0 1px rgba(154, 125, 84, 0.24);
}

.tf-vault-card.is-switching {
  animation: tfVaultSwitchFlash 0.65s var(--tf-ease) both;
}

.tf-vault-chip-emblem {
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e7d8be 0%, #a88d64 52%, #f4ebd8 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 4px 12px rgba(214, 195, 165, 0.26);
  flex-shrink: 0;
}

.tf-vault-chip-emblem::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(20, 20, 24, 0.35);
  border-radius: 3px;
}

.tf-vault-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tf-vault-status-pill.active {
  background: rgba(214, 195, 165, 0.18);
  border: 1px solid rgba(214, 195, 165, 0.48);
  color: #f3e6d0;
}

html[data-taffy-finish="ceramic"] .tf-vault-status-pill.active {
  background: rgba(154, 125, 84, 0.14);
  border-color: rgba(154, 125, 84, 0.42);
  color: #7c6036;
}

.tf-vault-status-pill.standby {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 247, 0.66);
}

html[data-taffy-finish="ceramic"] .tf-vault-status-pill.standby {
  background: rgba(18, 18, 24, 0.05);
  border-color: rgba(18, 18, 24, 0.1);
  color: rgba(29, 29, 31, 0.6);
}

.tf-vault-add-ghost {
  border-radius: 24px;
  padding: 26px 22px;
  border: 1.5px dashed rgba(214, 195, 165, 0.34);
  background: rgba(214, 195, 165, 0.035);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 230px;
  cursor: pointer;
  transition: transform 0.32s var(--tf-spring), border-color 0.25s ease, background-color 0.25s ease;
}

html[data-taffy-finish="ceramic"] .tf-vault-add-ghost {
  border-color: rgba(154, 125, 84, 0.36);
  background: rgba(154, 125, 84, 0.035);
}

.tf-vault-add-ghost:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(214, 195, 165, 0.72);
  background: rgba(214, 195, 165, 0.08);
}

.tf-vault-add-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: #d6c3a5;
  background: rgba(214, 195, 165, 0.12);
  border: 1px solid rgba(214, 195, 165, 0.34);
  animation: tfSoftFloat 3.2s ease-in-out infinite;
}

html[data-taffy-finish="ceramic"] .tf-vault-add-orb {
  color: #8b6e42;
  background: rgba(154, 125, 84, 0.1);
  border-color: rgba(154, 125, 84, 0.34);
}

.tf-vault-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  margin-bottom: 16px;
}

.tf-vault-tab-btn {
  border: none;
  background: transparent;
  color: var(--tf-ink-secondary);
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.tf-vault-tab-btn.active {
  background: var(--tf-ink);
  color: var(--tf-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .tf-vault-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    gap: 14px;
  }
  .tf-vault-canvas-stage {
    min-height: 278px;
    height: 278px;
    --shuf-x: 64px;
    --fan-outer: 58px;
    --fan-inner: 22px;
  }
}

@media (max-width: 560px) {
  .tf-vault-summary-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0 12px;
  }
  .tf-vault-kpi {
    padding: 9px 8px;
    border-radius: 12px;
  }
  .tf-vault-kpi-label {
    font-size: 10px;
  }
  .tf-vault-kpi-val {
    font-size: 13.5px;
  }
  .tf-plans-grid,
  .tf-vault-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .tf-vault-quick-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .tf-vault-quick-btns {
    display: grid;
    grid-template-columns: 1fr auto auto;
    width: 100%;
  }
  .tf-vault-quick-clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-vault-card {
    padding: 16px 14px;
  }
  .tf-vault-client-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-main-view {
    padding-bottom: 108px;
  }
}

/* v14.0 Keyframes */
@keyframes tfRegionScrollLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes tfRegionScrollRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes tfBeaconPulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 195, 165, 0.68); }
  70% { box-shadow: 0 0 0 9px rgba(214, 195, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 195, 165, 0); }
}

@keyframes tfAuraDrift {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes tfPlanCardReveal {
  0% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfPlanFeatIn {
  0% { opacity: 0; transform: translate3d(-10px, 6px, 0); filter: blur(3px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes tfPlanRowWave {
  0%, 72%, 100% {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.032);
  }
  84% {
    border-color: rgba(214, 195, 165, 0.34);
    background: rgba(214, 195, 165, 0.085);
  }
}

@keyframes tfPlanRowWaveCeramic {
  0%, 72%, 100% {
    border-color: rgba(18, 18, 24, 0.068);
    background: rgba(18, 18, 24, 0.026);
  }
  84% {
    border-color: rgba(154, 125, 84, 0.34);
    background: rgba(154, 125, 84, 0.08);
  }
}

@keyframes tfCardGlintSweep {
  0%, 76% { left: -130%; }
  100% { left: 155%; }
}

@keyframes tfLiquidShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes tfSoftFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

@keyframes tfVaultSwitchFlash {
  0% { box-shadow: 0 0 0 0 rgba(214, 195, 165, 0.72); transform: scale(0.99); }
  45% { box-shadow: 0 0 0 14px rgba(214, 195, 165, 0); transform: scale(1.015); }
  100% { box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34); transform: scale(1); }
}

/* ==========================================================================
   v14.1 ZERO-TWITCH CINEMATIC VAULT SWITCHING & IN-CARD IMPORT DOCK
   ========================================================================== */
.tf-vault-grid.is-in-place .tf-vault-card {
  opacity: 1 !important;
  animation: none !important;
}

.tf-vault-grid.is-in-place .tf-vault-card.is-activating {
  opacity: 1 !important;
  animation: tfVaultActivatePop 0.62s var(--tf-spring) both !important;
}

.tf-vault-card-beam {
  position: absolute;
  top: 0;
  left: -135%;
  width: 85%;
  height: 100%;
  background: linear-gradient(108deg, transparent 15%, rgba(214, 195, 165, 0.24) 48%, rgba(255, 255, 255, 0.34) 52%, transparent 85%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

.tf-vault-card.is-activating .tf-vault-card-beam {
  opacity: 1;
  animation: tfVaultBeamSweep 0.76s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* In-Card Active Subscription Import Dock (Visible Directly Under User's Thumb!) */
.tf-vault-card-import {
  margin-top: 2px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(214, 195, 165, 0.085);
  border: 1px solid rgba(214, 195, 165, 0.28);
  animation: tfVaultImportUnfold 0.38s var(--tf-ease) both;
}

html[data-taffy-finish="ceramic"] .tf-vault-card-import {
  background: rgba(154, 125, 84, 0.075);
  border-color: rgba(154, 125, 84, 0.24);
}

.tf-vault-url-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(245, 245, 247, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 9px;
}

html[data-taffy-finish="ceramic"] .tf-vault-url-preview {
  color: rgba(29, 29, 31, 0.68);
  background: rgba(18, 18, 24, 0.045);
  border-color: rgba(18, 18, 24, 0.08);
}

.tf-vault-client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.tf-vault-client-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  border-radius: 10px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.24s var(--tf-spring), border-color 0.2s ease, background-color 0.2s ease;
}

html[data-taffy-finish="ceramic"] .tf-vault-client-pill {
  border-color: rgba(18, 18, 24, 0.11);
  background: rgba(255, 255, 255, 0.85);
  color: #1d1d1f;
}

.tf-vault-client-pill:hover {
  transform: translate3d(0, -1.5px, 0);
  border-color: rgba(214, 195, 165, 0.62);
  background: rgba(214, 195, 165, 0.16);
}

.tf-vault-quick-bar.is-synced-flash {
  animation: tfVaultDockFlash 0.72s var(--tf-ease) both;
}

/* Floating Dynamic-Island Switch Transition Banner */
.tf-vault-switch-banner {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translate3d(-50%, -18px, 0) scale(0.95);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 980px;
  background: rgba(14, 15, 20, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(214, 195, 165, 0.48);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(214, 195, 165, 0.14);
  color: #f5f5f7;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.38s var(--tf-spring);
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-vault-switch-banner.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.tf-vault-banner-cta {
  border: none;
  border-radius: 980px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #e7d6b8, #ffffff);
  color: #111216;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.22s var(--tf-spring), opacity 0.2s ease;
}

.tf-vault-banner-cta:hover {
  transform: scale(1.04);
  opacity: 0.94;
}

@keyframes tfVaultActivatePop {
  0% { transform: scale(0.982); box-shadow: 0 0 0 0 rgba(214, 195, 165, 0.72); }
  42% { transform: scale(1.016); box-shadow: 0 0 0 12px rgba(214, 195, 165, 0); }
  100% { transform: scale(1); box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(214, 195, 165, 0.28); }
}

@keyframes tfVaultBeamSweep {
  0% { left: -135%; }
  100% { left: 155%; }
}

@keyframes tfVaultImportUnfold {
  0% { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfVaultDockFlash {
  0% { border-color: rgba(214, 195, 165, 0.85); box-shadow: 0 0 0 0 rgba(214, 195, 165, 0.45); }
  50% { border-color: rgba(255, 255, 255, 0.75); box-shadow: 0 0 24px rgba(214, 195, 165, 0.28); }
  100% { border-color: rgba(214, 195, 165, 0.24); box-shadow: none; }
}

/* ==========================================================================
   v14.5 CELESTIAL SILK & 3D DOUBLE-SIDED SPATIAL WALLET (DUAL GRAND ANIMATIONS)
   ========================================================================== */
.tf-spatial-deck {
  position: relative;
  z-index: 3;
  width: calc(100% - 34px);
  max-width: 374px;
  height: 184px;
  perspective: 1150px;
  transform-style: preserve-3d;
  margin-top: 10px;
}

.tf-spatial-floor-shadow {
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 78%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 195, 165, 0.28) 0%, rgba(0, 0, 0, 0.52) 48%, transparent 74%);
  transform: translateX(-50%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  animation: tfSpatialShadowBreath 6.4s ease-in-out infinite;
}

.tf-spatial-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-sizing: border-box;
  color: #f5f5f7;
  cursor: pointer;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.tf-spatial-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 16px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tf-spatial-card.is-front {
  z-index: 5;
  animation: tfSpatialGraceWaltz 6.4s ease-in-out infinite;
}

.tf-spatial-card.is-front .tf-spatial-face-front {
  background: linear-gradient(135deg, rgba(35, 33, 42, 0.9) 0%, rgba(14, 16, 24, 0.95) 52%, rgba(42, 35, 28, 0.92) 100%);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1.25px solid rgba(238, 220, 190, 0.68);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 34px rgba(214, 195, 165, 0.22);
}

/* Engraved Champagne-Platinum Back Face revealed during 360° Grand Flip */
.tf-spatial-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(138deg, #f3e4c9 0%, #c9af83 34%, #26221e 62%, #e6d1ae 100%);
  border: 1.4px solid rgba(255, 248, 232, 0.85);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.72), 0 0 42px rgba(232, 214, 184, 0.42);
  color: #181614;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.tf-spatial-back-ring {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(16, 16, 22, 0.88);
  border: 1px solid rgba(255, 244, 222, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.tf-spatial-back-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.tf-spatial-back-sub {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(15, 16, 22, 0.68);
  color: #f3e2c4;
  border: 1px solid rgba(255, 244, 222, 0.35);
}

.tf-spatial-card.is-front.is-swapping {
  animation: tfSpatialFlipIn 0.76s cubic-bezier(0.22, 1, 0.36, 1) both, tfSpatialGraceWaltz 6.4s ease-in-out 0.78s infinite;
}

.tf-spatial-card.is-front.is-flourish {
  animation: tfSpatialGrandFlip 1.38s cubic-bezier(0.22, 1, 0.36, 1) both, tfSpatialGraceWaltz 6.4s ease-in-out 1.4s infinite;
}

.tf-spatial-card.is-front.is-flourish .tf-spatial-glare {
  animation: tfSpatialGlareBurst 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Interactive Floating Editorial Subtitle Caption inside 3D Spatial Stage */
.tf-spatial-caption {
  position: absolute;
  left: 50%;
  bottom: 29px;
  transform: translate3d(-50%, 10px, 0) scale(0.96);
  z-index: 9;
  max-width: calc(100% - 24px);
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(10, 11, 16, 0.84);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(238, 220, 190, 0.46);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
  color: #faf0de;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
}

.tf-spatial-caption.is-visible {
  opacity: 1;
  animation: tfCaptionDrift 4.8s ease-in-out forwards;
}

.tf-spatial-spark {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  font-size: 14px;
  color: #fff2d6;
  text-shadow: 0 0 14px rgba(232, 214, 184, 0.95);
  animation: tfSpatialRadialSpark 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tf-spatial-hint-top {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(246, 236, 218, 0.78);
  background: rgba(14, 16, 24, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 214, 184, 0.22);
  border-radius: 980px;
  padding: 3px 11px;
  white-space: nowrap;
  pointer-events: none;
}

.tf-spatial-card.is-back-1 {
  z-index: 3;
  animation: tfSpatialBackBreath 6.4s ease-in-out infinite;
}

.tf-spatial-card.is-back-1 .tf-spatial-face-front {
  background: linear-gradient(135deg, rgba(24, 27, 38, 0.86), rgba(11, 13, 20, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
}

.tf-spatial-card.is-back-1:hover {
  animation-play-state: paused;
  transform: translate3d(20px, -24px, -10px) rotateX(4deg) rotateY(-4deg) scale(0.95) !important;
}

.tf-spatial-card.is-back-1:hover .tf-spatial-face-front {
  border-color: rgba(232, 214, 184, 0.62);
}

.tf-spatial-card.is-back-2 {
  z-index: 2;
  transform: translate3d(26px, -28px, -48px) rotateX(7deg) rotateY(-9deg) scale(0.87);
  opacity: 0.64;
}

.tf-spatial-card.is-back-2 .tf-spatial-face-front {
  background: linear-gradient(135deg, rgba(22, 24, 34, 0.84), rgba(10, 12, 18, 0.9));
  border: 1px solid rgba(214, 195, 165, 0.2);
}

.tf-spatial-card.is-back-3 {
  z-index: 1;
  transform: translate3d(-24px, -24px, -70px) rotateX(7deg) rotateY(10deg) scale(0.83);
  opacity: 0.46;
}

.tf-spatial-card.is-back-3 .tf-spatial-face-front {
  background: linear-gradient(135deg, rgba(28, 25, 34, 0.8), rgba(10, 11, 16, 0.88));
  border: 1px solid rgba(160, 186, 245, 0.2);
}

/* Grand 4-Card Riffle Shuffle, Fan Spread & High-Arc Draw Choreography */
.tf-spatial-deck.is-shuffling .tf-spatial-card.is-front {
  z-index: 8;
  animation: tfShuffleDrawAce 1.95s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.tf-spatial-deck.is-shuffling .tf-spatial-card.is-front .tf-spatial-glare {
  animation: tfSpatialGlareBurst 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards !important;
}

.tf-spatial-deck.is-shuffling .tf-spatial-card.is-back-1 {
  z-index: 6;
  animation: tfShuffleCardRight 1.95s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.tf-spatial-deck.is-shuffling .tf-spatial-card.is-back-2 {
  z-index: 5;
  animation: tfShuffleCardLeft 1.95s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.tf-spatial-deck.is-shuffling .tf-spatial-card.is-back-3 {
  z-index: 4;
  animation: tfShuffleCardFar 1.95s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.tf-spatial-deck.is-shuffling .tf-spatial-floor-shadow {
  animation: tfShuffleShadowPulse 1.95s ease-in-out both !important;
}

.tf-spatial-glare {
  position: absolute;
  top: -25%;
  left: -135%;
  width: 76%;
  height: 160%;
  background: linear-gradient(108deg, transparent 18%, rgba(255, 255, 255, 0.22) 47%, rgba(238, 220, 190, 0.34) 53%, transparent 82%);
  pointer-events: none;
  animation: tfCardGlintSweep 4.6s ease-in-out infinite;
}

.tf-spatial-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tf-spatial-chip {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f3e5cc 0%, #b5986b 52%, #f8f0df 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 3px 10px rgba(214, 195, 165, 0.3);
  position: relative;
  flex-shrink: 0;
}

.tf-spatial-chip::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(20, 20, 26, 0.35);
  border-radius: 2px;
}

.tf-spatial-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 980px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(214, 195, 165, 0.18);
  border: 1px solid rgba(214, 195, 165, 0.45);
  color: #f6ead4;
  white-space: nowrap;
}

.tf-spatial-card:not(.is-front) .tf-spatial-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(245, 245, 247, 0.72);
}

.tf-spatial-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tf-spatial-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-spatial-email {
  font-size: 11px;
  color: rgba(245, 245, 247, 0.62);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-spatial-ring-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.tf-spatial-ring-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f5e6cb;
}

.tf-spatial-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(245, 245, 247, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

/* Standby Card Compact Preview Strip & Per-Seat Reset Button */
.tf-vault-standby-strip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-taffy-finish="ceramic"] .tf-vault-standby-strip {
  background: rgba(18, 18, 24, 0.028);
  border-color: rgba(18, 18, 24, 0.08);
}

.tf-vault-reset-btn {
  border: 1px solid rgba(255, 69, 58, 0.34);
  background: rgba(255, 69, 58, 0.08);
  color: #ff6961;
  border-radius: 980px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--tf-spring);
}

html[data-taffy-finish="ceramic"] .tf-vault-reset-btn {
  color: #d92b4b;
  background: rgba(217, 43, 75, 0.06);
  border-color: rgba(217, 43, 75, 0.28);
}

.tf-vault-reset-btn:hover {
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 69, 58, 0.6);
  transform: translateY(-1px);
}

/* Silky Zero-Twitch Knowledge Base (接入文档) Animations */
.tf-doc-nav-item {
  position: relative;
  transition: background-color 0.24s ease, color 0.22s ease, transform 0.28s var(--tf-spring), box-shadow 0.26s ease !important;
}

.tf-doc-nav-item:hover {
  transform: translate3d(4px, 0, 0);
}

.tf-doc-nav-item:active {
  transform: scale(0.975);
}

.tf-doc-article-inner {
  transition: opacity 0.22s ease, transform 0.28s var(--tf-ease);
}

.tf-doc-article-inner.is-loading {
  opacity: 0.42;
  transform: translate3d(0, 4px, 0);
}

.tf-doc-article-inner.is-entering {
  animation: tfDocArticleIn 0.36s var(--tf-ease) both;
}

.tf-doc-skeleton-bar {
  height: 13px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(214, 195, 165, 0.14) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: tfLiquidShimmer 1.4s linear infinite;
  margin-bottom: 12px;
}

html[data-taffy-finish="ceramic"] .tf-doc-skeleton-bar {
  background: linear-gradient(90deg, rgba(18, 18, 24, 0.05) 25%, rgba(154, 125, 84, 0.14) 50%, rgba(18, 18, 24, 0.05) 75%);
  background-size: 200% 100%;
}

@media (max-width: 560px) {
  .tf-spatial-deck {
    width: calc(100% - 26px);
    height: 164px;
    margin-top: 8px;
  }
  .tf-spatial-face {
    padding: 13px 14px;
  }
  .tf-spatial-name {
    font-size: 16.5px;
  }
}

/* Animation 1: Graceful Large-Amplitude 3D Figure-Eight Spatial Waltz */
@keyframes tfSpatialGraceWaltz {
  0%, 100% {
    transform: translate3d(-7px, 7px, 28px) rotateX(7deg) rotateY(-12deg) rotateZ(-1.4deg) scale(1);
  }
  25% {
    transform: translate3d(5px, -9px, 44px) rotateX(-5deg) rotateY(4deg) rotateZ(0.8deg) scale(1.018);
  }
  50% {
    transform: translate3d(8px, 6px, 34px) rotateX(6deg) rotateY(13deg) rotateZ(1.5deg) scale(1.005);
  }
  75% {
    transform: translate3d(-5px, -10px, 46px) rotateX(-6deg) rotateY(-4deg) rotateZ(-0.9deg) scale(1.018);
  }
}

@keyframes tfSpatialBackBreath {
  0%, 100% {
    transform: translate3d(18px, -16px, -28px) rotateX(6deg) rotateY(8deg) scale(0.92);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(-12px, -22px, -22px) rotateX(-4deg) rotateY(-9deg) scale(0.935);
    opacity: 0.88;
  }
}

@keyframes tfSpatialShadowBreath {
  0%, 100% { transform: translateX(-54%) scaleX(0.96); opacity: 0.78; }
  50% { transform: translateX(-46%) scaleX(1.06); opacity: 0.56; }
}

/* Animation 2: Grand 4-Card Riffle Shuffle -> Fan Spread -> High-Arc Ace Draw & 360° Flip */
@keyframes tfShuffleDrawAce {
  0% {
    transform: translate3d(0, 4px, 28px) rotateX(5deg) rotateY(0deg) rotateZ(0deg) scale(0.96);
  }
  16% {
    /* Split aggressively to left half */
    transform: translate3d(calc(var(--shuf-x) * -1), -12px, 44px) rotateY(22deg) rotateZ(-19deg) scale(0.93);
  }
  30% {
    /* Riffle weave rapidly across center */
    transform: translate3d(24px, 6px, 56px) rotateY(-14deg) rotateZ(7deg) scale(0.95);
  }
  44% {
    /* Grand Fan Spread (Rightmost showcase arc) */
    transform: translate3d(var(--fan-outer), 10px, 34px) rotateY(-16deg) rotateZ(18deg) scale(0.92);
  }
  64% {
    /* DRAMATIC HIGH-ARC ACE DRAW + 180° GOLD BACK REVEAL */
    transform: translate3d(0, -34px, 132px) rotateX(12deg) rotateY(180deg) rotateZ(-4deg) scale(1.11);
  }
  84% {
    /* Sweep around 360° descending forward */
    transform: translate3d(0, -10px, 76px) rotateX(-8deg) rotateY(350deg) rotateZ(2deg) scale(1.04);
  }
  94% {
    /* Elastic magnetic snap settle */
    transform: translate3d(-4px, 10px, 34px) rotateX(8deg) rotateY(364deg) rotateZ(-1.6deg) scale(0.99);
  }
  100% {
    transform: translate3d(-7px, 7px, 28px) rotateX(7deg) rotateY(348deg) rotateZ(-1.4deg) scale(1);
  }
}

@keyframes tfShuffleCardRight {
  0% {
    transform: translate3d(18px, -16px, -28px) rotateY(8deg) scale(0.92);
    opacity: 0.82;
  }
  16% {
    /* Split aggressively to right half */
    transform: translate3d(var(--shuf-x), 8px, 16px) rotateY(-24deg) rotateZ(21deg) scale(0.91);
    opacity: 0.96;
  }
  30% {
    /* Riffle weave inward */
    transform: translate3d(-26px, -8px, 10px) rotateY(16deg) rotateZ(-8deg) scale(0.92);
    opacity: 0.95;
  }
  44% {
    /* Grand Fan Spread (Inner right) */
    transform: translate3d(var(--fan-inner), -6px, 4px) rotateY(-8deg) rotateZ(7deg) scale(0.91);
    opacity: 0.96;
  }
  66% {
    /* Tuck smoothly back while Ace draws out */
    transform: translate3d(28px, -18px, -22px) rotateY(12deg) rotateZ(6deg) scale(0.91);
    opacity: 0.86;
  }
  100% {
    transform: translate3d(18px, -16px, -28px) rotateX(6deg) rotateY(8deg) scale(0.92);
    opacity: 0.78;
  }
}

@keyframes tfShuffleCardLeft {
  0% {
    transform: translate3d(26px, -28px, -48px) rotateY(-9deg) scale(0.87);
    opacity: 0.64;
  }
  16% {
    /* Split to far left behind Ace */
    transform: translate3d(calc(var(--shuf-x) * -0.82), 14px, -10px) rotateY(20deg) rotateZ(-15deg) scale(0.88);
    opacity: 0.9;
  }
  30% {
    /* Riffle weave across */
    transform: translate3d(32px, -14px, -16px) rotateY(-14deg) rotateZ(10deg) scale(0.88);
    opacity: 0.88;
  }
  44% {
    /* Grand Fan Spread (Inner left) */
    transform: translate3d(calc(var(--fan-inner) * -1), -6px, 0px) rotateY(8deg) rotateZ(-7deg) scale(0.9);
    opacity: 0.94;
  }
  66% {
    transform: translate3d(-20px, -24px, -44px) rotateY(-10deg) rotateZ(-5deg) scale(0.87);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(26px, -28px, -48px) rotateX(7deg) rotateY(-9deg) scale(0.87);
    opacity: 0.64;
  }
}

@keyframes tfShuffleCardFar {
  0% {
    transform: translate3d(-24px, -24px, -70px) rotateY(10deg) scale(0.83);
    opacity: 0.46;
  }
  16% {
    /* Split to far right */
    transform: translate3d(calc(var(--shuf-x) * 0.86), -16px, -24px) rotateY(-20deg) rotateZ(16deg) scale(0.85);
    opacity: 0.84;
  }
  30% {
    /* Riffle weave */
    transform: translate3d(-34px, 10px, -28px) rotateY(14deg) rotateZ(-10deg) scale(0.85);
    opacity: 0.82;
  }
  44% {
    /* Grand Fan Spread (Far left arc) */
    transform: translate3d(calc(var(--fan-outer) * -1), 12px, -14px) rotateY(16deg) rotateZ(-19deg) scale(0.88);
    opacity: 0.92;
  }
  66% {
    transform: translate3d(-30px, -22px, -62px) rotateY(12deg) rotateZ(-4deg) scale(0.84);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(-24px, -24px, -70px) rotateX(7deg) rotateY(10deg) scale(0.83);
    opacity: 0.46;
  }
}

@keyframes tfShuffleShadowPulse {
  0%, 100% { transform: translateX(-50%) scaleX(0.96); opacity: 0.72; }
  20%, 44% { transform: translateX(-50%) scaleX(1.38); opacity: 0.85; }
  64% { transform: translateX(-50%) scaleX(0.66); opacity: 0.35; }
}

@keyframes tfSpatialFlipIn {
  0% { transform: translate3d(26px, -24px, -36px) rotateX(12deg) rotateY(-28deg) scale(0.88); opacity: 0.65; }
  58% { transform: translate3d(-4px, 10px, 46px) rotateX(-4deg) rotateY(8deg) scale(1.04); opacity: 1; }
  100% { transform: translate3d(-7px, 7px, 28px) rotateX(7deg) rotateY(-12deg) rotateZ(-1.4deg) scale(1); opacity: 1; }
}

@keyframes tfSpatialRadialSpark {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate3d(calc(var(--dx, 0px) * 0.35), calc(var(--dy, -20px) * 0.35), 0) scale(1.25) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 0px), var(--dy, -70px), 0) scale(0.6) rotate(140deg);
  }
}

@keyframes tfDocArticleIn {
  0% { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(3px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes tfSpatialGlareBurst {
  0% { left: -135%; opacity: 1; }
  100% { left: 165%; opacity: 1; }
}

@keyframes tfCaptionDrift {
  0% { opacity: 0; transform: translate3d(-50%, 10px, 0) scale(0.96); }
  12% { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
  84% { opacity: 1; transform: translate3d(-50%, -4px, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, -12px, 0) scale(0.98); }
}

/* ==========================================================================
   v14.7 3D GLOBE PHOTONIC FABRIC HUD & ZERO-COLLISION INTERACTIVE TRAFFIC CHART
   ========================================================================== */
.tf-globe-stage {
  position: relative;
  height: 310px;
  background: radial-gradient(circle at 50% 48%, #101628 0%, #070910 64%, #030407 100%);
  overflow: hidden;
}

.tf-globe-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tf-globe-hud-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.96), rgba(10, 11, 16, 0.99));
  border-top: 1px solid rgba(214, 195, 165, 0.16);
  color: #f5f5f7;
}

.tf-globe-hud-item {
  min-width: 0;
}

.tf-globe-hud-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.52);
  margin-bottom: 2px;
}

.tf-globe-hud-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #f5f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-globe-hud-val.accent {
  color: #e6d3b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tf-globe-hud-val.ping {
  color: #5ce1a6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tf-globe-hud-sep {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 14px;
}

/* Apple-Health Grade Interactive Traffic Telemetry Chart (ZERO Number Overlap!) */
.tf-traffic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tf-traffic-range-pills {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 980px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
}

.tf-traffic-range-btn {
  border: none;
  background: transparent;
  color: var(--tf-ink-secondary);
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.tf-traffic-range-btn.active {
  background: var(--tf-ink);
  color: var(--tf-bg);
}

.tf-traffic-inspector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(214, 195, 165, 0.09), rgba(0, 113, 227, 0.07));
  border: 1px solid rgba(214, 195, 165, 0.24);
  margin-bottom: 14px;
}

html[data-taffy-finish="ceramic"] .tf-traffic-inspector {
  background: linear-gradient(145deg, rgba(154, 125, 84, 0.08), rgba(0, 113, 227, 0.055));
  border-color: rgba(154, 125, 84, 0.22);
}

.tf-traffic-insp-total {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tf-ink);
  line-height: 1.1;
  animation: tfPriceMorph 0.28s var(--tf-spring) both;
}

.tf-traffic-insp-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 980px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--tf-ink);
  color: var(--tf-bg);
}

.tf-traffic-stage {
  position: relative;
  height: 176px;
  padding: 14px 36px 8px 4px;
  border-radius: 16px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
  box-sizing: border-box;
  overflow: hidden;
}

.tf-traffic-gridlines {
  position: absolute;
  inset: 14px 4px 8px 4px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tf-traffic-grid-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-traffic-grid-line {
  flex: 1;
  height: 1px;
  background: var(--tf-border);
  opacity: 0.65;
}

.tf-traffic-grid-tick {
  width: 30px;
  text-align: right;
  font-size: 9.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tf-ink-tertiary);
  flex-shrink: 0;
}

.tf-traffic-svg-overlay {
  position: absolute;
  left: 4px;
  right: 36px;
  top: 14px;
  bottom: 8px;
  width: calc(100% - 40px);
  height: calc(100% - 22px);
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.tf-traffic-bars-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  width: 100%;
}

.tf-tbar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 0 1px;
  -webkit-tap-highlight-color: transparent;
}

.tf-tbar-col::before {
  content: '';
  position: absolute;
  inset: -4px 0;
  border-radius: 8px;
  background: rgba(214, 195, 165, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tf-tbar-col.is-active::before,
.tf-tbar-col:hover::before {
  opacity: 1;
}

.tf-tbar-stack {
  width: 100%;
  max-width: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 1px;
  position: relative;
  z-index: 1;
}

.tf-tbar-up {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #e7d4b3, #b99763);
  transform-origin: bottom;
  animation: tfTrafficBarRise 0.58s var(--tf-spring) both;
  animation-delay: calc(var(--bi, 0) * 28ms);
  transition: filter 0.2s ease, transform 0.22s var(--tf-spring);
}

.tf-tbar-down {
  width: 100%;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #3b9eff, #0066cc);
  transform-origin: bottom;
  animation: tfTrafficBarRise 0.58s var(--tf-spring) both;
  animation-delay: calc(var(--bi, 0) * 28ms);
  transition: filter 0.2s ease, transform 0.22s var(--tf-spring);
}

.tf-tbar-col.is-active .tf-tbar-down {
  background: linear-gradient(180deg, #74beff, #0071e3);
  box-shadow: 0 0 14px rgba(0, 113, 227, 0.45);
}

.tf-tbar-col.is-active .tf-tbar-up {
  background: linear-gradient(180deg, #fff1d6, #d6b989);
  box-shadow: 0 0 12px rgba(214, 195, 165, 0.5);
}

.tf-traffic-xaxis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 36px 0 4px;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tf-ink-tertiary);
}

.tf-traffic-xaxis span {
  white-space: nowrap;
}

.tf-traffic-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tf-traffic-kpi-box {
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
}

.tf-traffic-kpi-lbl {
  font-size: 10.5px;
  color: var(--tf-ink-tertiary);
  margin-bottom: 2px;
}

.tf-traffic-kpi-val {
  font-size: 13.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tf-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes tfTrafficBarRise {
  0% { transform: scaleY(0); opacity: 0.25; }
  100% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 560px) {
  .tf-globe-stage {
    height: 276px;
  }
  .tf-globe-hud-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 14px;
  }
  .tf-globe-hud-hide-sm {
    display: none;
  }
  .tf-traffic-insp-total {
    font-size: 20px;
  }
  .tf-traffic-stage {
    height: 158px;
  }
}

/* ==========================================================================
   v14.8 PURCHASE KINETICS, SOVEREIGN COVENANT CEREMONY & BLACK FRIDAY SHOWCASE
   ========================================================================== */

/* ---------- 1. Checkout & Payment Kinetic Polish ---------- */
.tf-buy-dialog-luxury {
  position: relative;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(214, 195, 165, 0.28) !important;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  animation: tfBuyDialogEnter 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-buy-dialog-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 65%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 220, 180, 0.95), rgba(116, 196, 255, 0.8), transparent);
  animation: tfBuyTopScan 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* Mobile-safe Splash Skip Dock & Anti-Hijack Animated Card */
.tf-splash-floating-skip {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-splash-safe-card {
  width: min(420px, 92vw);
  padding: 32px 24px 26px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(22, 16, 30, 0.96), rgba(11, 12, 18, 0.98));
  border: 1px solid rgba(232, 204, 156, 0.38);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 44px rgba(232, 162, 196, 0.16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tf-splash-safe-avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid rgba(240, 216, 174, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  margin: 0 auto 16px;
  display: block;
  animation: tfBfPortraitFloat 3.6s ease-in-out infinite;
}

@media (max-width: 520px) {
  .tf-dialog {
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }
  .tf-buy-stage-head {
    padding: 13px 14px;
    margin-bottom: 14px;
  }
  .tf-period-grid {
    gap: 8px;
    margin-bottom: 14px;
  }
  .tf-period-card {
    padding: 10px 12px;
  }
}

.tf-buy-stage-head {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(16, 18, 28, 0.96), rgba(28, 25, 22, 0.94));
  border: 1px solid rgba(214, 195, 165, 0.26);
  color: #f5f5f7;
  overflow: hidden;
}

.tf-buy-stage-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(214, 195, 165, 0.22), transparent 56%),
              radial-gradient(circle at 12% 92%, rgba(41, 151, 255, 0.16), transparent 52%);
  pointer-events: none;
}

.tf-buy-steps {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  font-family: var(--tf-mono);
  color: rgba(235, 232, 224, 0.56);
  flex-wrap: wrap;
}

.tf-buy-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s ease;
}

.tf-buy-step.is-active {
  color: #f7e6c4;
  background: rgba(214, 195, 165, 0.16);
  border-color: rgba(214, 195, 165, 0.46);
  box-shadow: 0 0 16px rgba(214, 195, 165, 0.18);
}

.tf-period-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.26s ease, background 0.24s ease !important;
}

.tf-period-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(108deg, transparent 15%, rgba(238, 220, 188, 0.26) 50%, transparent 85%);
  pointer-events: none;
}

.tf-period-card.active {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.18), 0 0 0 1px rgba(214, 195, 165, 0.35) inset;
}

.tf-period-card.is-pulse::after {
  animation: tfPeriodShimmer 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tf-period-card.is-pulse {
  animation: tfPeriodBounce 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.tf-price-pop {
  display: inline-block;
  animation: tfPriceTick 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.tf-bf-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f3dfb8;
  background: linear-gradient(135deg, rgba(24, 21, 18, 0.92), rgba(48, 36, 22, 0.88));
  border: 1px solid rgba(214, 195, 165, 0.42);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tf-bf-coupon-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(214, 195, 165, 0.24);
}

.tf-btn-covenant-submit {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #17171d 0%, #2a241c 48%, #151722 100%) !important;
  color: #f9ebd0 !important;
  border: 1px solid rgba(226, 206, 172, 0.52) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 22px rgba(214, 195, 165, 0.16) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease !important;
}

.tf-btn-covenant-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 240, 206, 0.32) 50%, transparent 90%);
  animation: tfBtnGoldSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.tf-btn-covenant-submit:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(214, 195, 165, 0.28) !important;
}

.tf-btn-covenant-submit.is-forging {
  pointer-events: none;
  opacity: 0.92;
}

.tf-pay-qr-scanner {
  position: relative;
  display: inline-block;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(214, 195, 165, 0.45);
  overflow: hidden;
}

.tf-pay-qr-scanner::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2.5px;
  top: 10px;
  background: linear-gradient(90deg, transparent, #d6b67c, #0071e3, transparent);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.55);
  animation: tfQrLaserScan 2.2s ease-in-out infinite;
  pointer-events: none;
}

.tf-pay-method-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease !important;
  border: 1px solid var(--tf-border) !important;
}

.tf-pay-method-btn:hover {
  transform: translateX(3px);
  border-color: rgba(214, 195, 165, 0.52) !important;
}

/* ---------- 2. Taffy Sovereign Covenant Ceremony (Post-Purchase Ritual) ---------- */
.tf-cov-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(20, 22, 34, 0.94), rgba(5, 6, 11, 0.97));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: tfCovFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow-y: auto;
}

.tf-cov-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tf-cov-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  perspective: 1200px;
}

.tf-cov-card {
  position: relative;
  border-radius: 28px;
  padding: 28px 28px 24px;
  background: linear-gradient(155deg, rgba(18, 19, 27, 0.96) 0%, rgba(12, 13, 19, 0.98) 54%, rgba(24, 21, 17, 0.97) 100%);
  border: 1px solid rgba(232, 212, 178, 0.42);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.72), 0 0 60px rgba(214, 195, 165, 0.14), inset 0 1px 0 rgba(255, 244, 219, 0.25);
  color: #f5f5f7;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: tfCovCardAscend 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tf-cov-card.is-stamped {
  animation: tfCovStampRecoil 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-cov-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(214, 195, 165, 0.16);
  pointer-events: none;
}

.tf-cov-sheen {
  position: absolute;
  top: 0;
  left: -135%;
  width: 75%;
  height: 100%;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 240, 206, 0.14) 50%, transparent 85%);
  animation: tfCovSheen 4.2s ease-in-out 1.8s infinite;
  pointer-events: none;
}

.tf-cov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tf-cov-crest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e9d4ad;
  font-family: var(--tf-mono);
}

.tf-cov-serial {
  font-size: 10.5px;
  font-family: var(--tf-mono);
  color: rgba(235, 232, 224, 0.54);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tf-cov-title-kicker {
  font-size: 12px;
  color: rgba(235, 232, 224, 0.62);
  margin-bottom: 6px;
}

.tf-cov-plan-name {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 10%, #f5e2be 56%, #d9b87e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tf-cov-vow {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(238, 234, 226, 0.76);
  font-style: italic;
}

.tf-cov-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.tf-cov-meta-item {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 195, 165, 0.16);
}

.tf-cov-meta-item span {
  display: block;
  font-size: 10.5px;
  color: rgba(235, 232, 224, 0.52);
  margin-bottom: 4px;
}

.tf-cov-meta-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8ecd5;
  font-family: var(--tf-mono);
}

.tf-cov-sign-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(214, 195, 165, 0.055);
  border: 1px dashed rgba(214, 195, 165, 0.28);
  margin-bottom: 20px;
  min-height: 92px;
}

.tf-cov-sig-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(232, 212, 178, 0.65);
  font-family: var(--tf-mono);
  margin-bottom: 4px;
}

.tf-cov-sig-svg {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 46px;
  overflow: visible;
}

.tf-cov-sig-path {
  fill: none;
  stroke: url(#tfCovGoldStroke);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: tfCovSignDraw 1.05s cubic-bezier(0.35, 0, 0.25, 1) 0.55s forwards;
  filter: drop-shadow(0 0 6px rgba(240, 216, 164, 0.55));
}

.tf-cov-seal {
  position: relative;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 32% 28%, #f8e5be 0%, #c8a263 45%, #7e5c2b 86%, #4e3615 100%);
  border: 2px solid rgba(255, 244, 214, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 2px 5px rgba(255, 250, 232, 0.68), inset 0 -3px 8px rgba(58, 36, 10, 0.68);
  color: #211505;
  opacity: 0;
  transform: scale(2.6) rotate(-26deg);
  animation: tfCovSealSlam 0.56s cubic-bezier(0.22, 1, 0.36, 1) 1.48s forwards;
}

.tf-cov-seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(38, 22, 6, 0.55);
}

.tf-cov-seal-top {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-family: var(--tf-mono);
}

.tf-cov-seal-main {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.tf-cov-seal-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(244, 224, 182, 0.9);
  opacity: 0;
  animation: tfCovSealWave 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.62s forwards;
  pointer-events: none;
}

.tf-cov-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  animation: tfCovActionsIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1.88s forwards;
}

/* ---------- 3. Black Friday 11.25-28 Luxury Showcase Page ---------- */
.tf-bf-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #f8e6c1 !important;
  background: linear-gradient(135deg, #171418 0%, #2b211a 52%, #19131c 100%) !important;
  border: 1px solid rgba(228, 200, 152, 0.52) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24), 0 0 16px rgba(228, 200, 152, 0.16);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tf-bf-nav-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 240, 206, 0.32) 50%, transparent 85%);
  animation: tfBtnGoldSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.tf-bf-nav-pill:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 22px rgba(228, 200, 152, 0.3);
}

.tf-bf-nav-pill:active {
  transform: scale(0.92);
  box-shadow: 0 0 0 4px rgba(228, 200, 152, 0.28);
  transition-duration: 0.12s;
}

.tf-bf-side-item {
  background: linear-gradient(135deg, rgba(28, 22, 18, 0.92), rgba(20, 16, 24, 0.94)) !important;
  color: #f7e6c4 !important;
  border: 1px solid rgba(226, 198, 148, 0.42) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.tf-bf-side-item.active {
  background: linear-gradient(135deg, #e7cfa1 0%, #c6a064 100%) !important;
  color: #161108 !important;
  border-color: rgba(255, 245, 222, 0.8) !important;
  box-shadow: 0 10px 28px rgba(198, 160, 100, 0.34);
}

.tf-bf-side-badge {
  font-size: 10px;
  font-family: var(--tf-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(247, 230, 196, 0.16);
  color: #f7e6c4;
}

.tf-bf-side-item.active .tf-bf-side-badge {
  background: rgba(22, 17, 8, 0.16);
  color: #161108;
}

/* Landing Page Black Friday Spotlight Banner */
.tf-bf-landing-spotlight {
  position: relative;
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #101016 0%, #1d1719 52%, #11131d 100%);
  border: 1px solid rgba(228, 200, 152, 0.38);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), 0 0 36px rgba(228, 200, 152, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.tf-bf-landing-spotlight:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.38), 0 0 44px rgba(228, 200, 152, 0.2);
}

.tf-bf-landing-spotlight:active {
  transform: scale(0.975);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), 0 0 28px rgba(228, 200, 152, 0.28);
  transition-duration: 0.14s;
}

.tf-btn-covenant-submit:active {
  transform: scale(0.95) !important;
  transition-duration: 0.12s !important;
}

.tf-bf-landing-thumb {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
  border: 1.5px solid rgba(235, 208, 162, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

/* Full Black Friday Showcase Container */
.tf-bf-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tf-bf-hero {
  position: relative;
  border-radius: 30px;
  padding: 34px 32px;
  background: linear-gradient(140deg, #0b0c12 0%, #171218 48%, #10131e 100%);
  border: 1px solid rgba(228, 200, 152, 0.34);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 240, 210, 0.16);
  color: #f5f5f7;
  overflow: hidden;
}

.tf-bf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tf-bf-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.tf-bf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: var(--tf-mono);
  color: #f6e2bb;
  background: rgba(228, 200, 152, 0.12);
  border: 1px solid rgba(228, 200, 152, 0.38);
  margin-bottom: 14px;
}

.tf-bf-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b9d;
  box-shadow: 0 0 10px #ff6b9d;
  animation: tfBeaconPulse 2s infinite;
}

.tf-bf-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 12%, #f6e1ba 54%, #e5a9be 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tf-bf-sub {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(235, 234, 240, 0.78);
  max-width: 560px;
}

.tf-bf-countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tf-bf-cd-cell {
  min-width: 66px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(228, 200, 152, 0.24);
  backdrop-filter: blur(10px);
}

.tf-bf-cd-cell strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--tf-mono);
  color: #f9e8c5;
  line-height: 1.1;
}

.tf-bf-cd-cell span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(235, 232, 224, 0.56);
  margin-top: 4px;
}

/* Portrait Stage for Image 2 (taffy-bf.jpg) */
.tf-bf-portrait-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  cursor: pointer;
  user-select: none;
}

.tf-bf-portrait-orbit {
  position: absolute;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 204, 156, 0.34);
  animation: tfBfOrbitSpin 24s linear infinite;
  pointer-events: none;
}

.tf-bf-portrait-orbit.is-outer {
  width: 304px;
  height: 304px;
  border-style: solid;
  border-color: rgba(242, 158, 194, 0.16);
  animation-direction: reverse;
  animation-duration: 34s;
}

.tf-bf-portrait-frame {
  position: relative;
  width: 238px;
  height: 238px;
  border-radius: 34px;
  padding: 6px;
  background: linear-gradient(140deg, rgba(246, 224, 184, 0.78), rgba(236, 146, 182, 0.45), rgba(116, 184, 255, 0.38));
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.62), 0 0 42px rgba(236, 166, 194, 0.2);
  animation: tfBfPortraitFloat 5.2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.tf-bf-portrait-stage:hover .tf-bf-portrait-frame {
  transform: scale(1.035) rotate(-1.2deg);
}

.tf-bf-portrait-frame.is-spark {
  animation: tfBfPortraitPop 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.tf-bf-portrait-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #121016;
}

.tf-bf-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.tf-bf-portrait-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(12, 10, 16, 0.64) 100%);
  pointer-events: none;
}

.tf-bf-portrait-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #faebd0;
  font-family: var(--tf-mono);
}

.tf-bf-portrait-whisper {
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(248, 232, 202, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(228, 200, 152, 0.24);
  transition: all 0.28s ease;
}

/* Founder's Thank-You Letter Card */
.tf-bf-letter-card {
  position: relative;
  border-radius: 26px;
  padding: 28px 30px;
  background: var(--tf-surface);
  border: 1px solid rgba(214, 195, 165, 0.3);
  box-shadow: var(--tf-shadow-card);
  overflow: hidden;
}

.tf-bf-letter-card::before {
  content: '“';
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 110px;
  font-family: Georgia, serif;
  color: rgba(214, 195, 165, 0.14);
  line-height: 1;
  pointer-events: none;
}

.tf-bf-letter-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--tf-ink-secondary);
}

.tf-bf-letter-body strong {
  color: var(--tf-ink);
  font-weight: 700;
}

.tf-bf-milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--tf-border);
}

.tf-bf-ms-pill {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border);
}

.tf-bf-ms-pill span {
  display: block;
  font-size: 11px;
  color: var(--tf-ink-tertiary);
  margin-bottom: 4px;
}

.tf-bf-ms-pill strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
}

/* 5 Black Friday Privilege Cards */
.tf-bf-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tf-bf-perk-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  box-shadow: var(--tf-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.32s ease;
  animation: tfPlanCardReveal 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-bf-perk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 195, 165, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.tf-bf-perk-card.is-signature {
  background: linear-gradient(145deg, #12131c 0%, #1c1719 52%, #131622 100%);
  border-color: rgba(232, 204, 156, 0.44);
  color: #f5f5f7;
}

.tf-bf-perk-card.is-signature .tf-bf-perk-desc {
  color: rgba(235, 234, 240, 0.78);
}

.tf-bf-perk-card.is-wide {
  grid-column: 1 / -1;
}

.tf-bf-perk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tf-bf-perk-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-family: var(--tf-mono);
  color: #c8a263;
}

.tf-bf-perk-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--tf-mono);
  background: rgba(214, 195, 165, 0.16);
  color: #c8a263;
  border: 1px solid rgba(214, 195, 165, 0.34);
}

.tf-bf-perk-card.is-signature .tf-bf-perk-tag {
  background: rgba(246, 224, 184, 0.14);
  color: #f8e4be;
}

.tf-bf-perk-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tf-bf-perk-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--tf-ink-secondary);
}

.tf-bf-coupon-vault {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 15px;
  background: rgba(214, 195, 165, 0.1);
  border: 1px dashed rgba(226, 200, 156, 0.56);
  flex-wrap: wrap;
}

.tf-bf-coupon-code {
  font-family: var(--tf-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f8e6c1;
}

.tf-bf-overlay {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: rgba(6, 7, 12, 0.72) !important;
  animation: tfBfOverlayIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: opacity;
}

.tf-bf-overlay.is-leaving {
  animation: tfBfOverlayOut 0.28s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
  pointer-events: none;
}

.tf-bf-modal-shell {
  max-width: 960px !important;
  width: min(94vw, 960px) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px !important;
  transform: translate3d(0, 0, 0);
  animation: tfBfSheetIn 0.44s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: transform, opacity;
}

.tf-bf-modal-shell.is-leaving {
  animation: tfBfSheetOut 0.28s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
  pointer-events: none;
}

/* Prevent nested staggered animations from fighting the modal sheet GPU layer on mobile */
.tf-bf-modal-shell .tf-bf-perk-card {
  animation: none !important;
}

.tf-bf-modal-shell.is-leaving .tf-bf-portrait-orbit,
.tf-bf-modal-shell.is-leaving .tf-bf-portrait-frame {
  animation-play-state: paused !important;
}

.tf-bf-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 980px;
  background: var(--tf-surface-elevated);
  border: 1px solid var(--tf-border-strong);
  color: var(--tf-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.tf-bf-close-btn:hover {
  border-color: rgba(214, 195, 165, 0.65);
  transform: scale(1.04);
}

.tf-bf-close-btn:active {
  transform: scale(0.9);
  transition-duration: 0.1s;
}

@keyframes tfBfOverlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tfBfOverlayOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes tfBfSheetIn {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) scale(0.955); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfBfSheetOut {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.96); }
}

.tf-bf-badge {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .tf-bf-badge {
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 5px 11px;
  }
}

/* ---------- Keyframes ---------- */
@keyframes tfBuyDialogEnter {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tfBuyTopScan {
  0% { left: -100%; }
  100% { left: 140%; }
}

@keyframes tfPeriodShimmer {
  0% { left: -130%; }
  100% { left: 150%; }
}

@keyframes tfPeriodBounce {
  0% { transform: scale(0.96); }
  55% { transform: scale(1.03); }
  100% { transform: translateY(-2px) scale(1); }
}

@keyframes tfPriceTick {
  0% { transform: scale(0.88); opacity: 0.5; }
  60% { transform: scale(1.09); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tfBtnGoldSweep {
  0%, 58% { left: -120%; }
  100% { left: 155%; }
}

@keyframes tfQrLaserScan {
  0%, 100% { top: 12px; opacity: 0.7; }
  50% { top: calc(100% - 14px); opacity: 1; }
}

@keyframes tfCovFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tfCovCardAscend {
  0% { opacity: 0; transform: translateY(34px) scale(0.9) rotateX(12deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
}

@keyframes tfCovStampRecoil {
  0% { transform: scale(1); }
  25% { transform: scale(0.975) translateY(3px); }
  65% { transform: scale(1.012) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes tfCovSignDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes tfCovSealSlam {
  0% { opacity: 0; transform: scale(2.8) rotate(-32deg); filter: blur(4px); }
  70% { opacity: 1; transform: scale(0.92) rotate(5deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); filter: blur(0); }
}

@keyframes tfCovSealWave {
  0% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.55); }
}

@keyframes tfCovActionsIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes tfCovSheen {
  0%, 62% { left: -135%; }
  100% { left: 165%; }
}

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

@keyframes tfBfPortraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tfBfPortraitPop {
  0% { transform: scale(0.94); }
  45% { transform: scale(1.07) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ---------- Mobile Responsive Rules (Zero Overflow at 390px) ---------- */
@media (max-width: 780px) {
  .tf-bf-hero {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .tf-bf-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tf-bf-portrait-stage {
    order: -1;
    padding: 8px;
  }
  .tf-bf-portrait-frame {
    width: 196px;
    height: 196px;
  }
  .tf-bf-portrait-orbit {
    width: 222px;
    height: 222px;
  }
  .tf-bf-portrait-orbit.is-outer {
    width: 252px;
    height: 252px;
  }
  .tf-bf-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-bf-perks-grid {
    grid-template-columns: 1fr;
  }
  .tf-bf-letter-card {
    padding: 22px 18px;
  }
  .tf-bf-perk-card {
    padding: 20px 18px;
  }
  .tf-bf-modal-shell {
    padding: 16px !important;
    width: 96vw !important;
  }
}

@media (max-width: 520px) {
  .tf-cov-card {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }
  .tf-cov-plan-name {
    font-size: 23px;
  }
  .tf-cov-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tf-cov-meta-item:last-child {
    grid-column: 1 / -1;
  }
  .tf-cov-sign-row {
    padding: 12px;
  }
  .tf-cov-seal {
    width: 68px;
    height: 68px;
  }
  .tf-bf-cd-cell {
    min-width: 58px;
    padding: 8px 9px;
  }
}

/* ==========================================================================
   v14.8.5 UNIVERSAL MOBILE SILKY TACTILE SPRING ENGINE & ZERO TAP-HIGHLIGHT
   ========================================================================== */
.tf-btn,
.tf-bf-nav-pill,
.tf-bf-close-btn,
.tf-bf-coupon-chip,
.tf-bf-landing-spotlight,
.tf-period-card,
.tf-side-item,
.tf-mobile-tab-btn,
.tf-gallery-arrow,
.tf-sentinel-pill,
.tf-sentinel-tap-btn,
.tf-vault-tab-btn,
.tf-tg-side-btn,
.tf-doc-row,
.tf-brand {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Crisp GPU tactile compression + elastic spring rebound (visible even on rapid mobile taps!) */
.tf-tap-down {
  transform: translate3d(0, 1px, 0) scale(0.915) !important;
  filter: brightness(1.08);
  transition: transform 0.11s cubic-bezier(0.22, 1, 0.36, 1), filter 0.11s ease !important;
}

.tf-tap-down.is-card-tap {
  transform: translate3d(0, 1px, 0) scale(0.968) !important;
}

.tf-tap-rebound {
  animation: tfTapSpringRebound 0.42s cubic-bezier(0.22, 1.38, 0.36, 1) both !important;
}

.tf-tap-rebound.is-card-tap {
  animation: tfTapCardRebound 0.42s cubic-bezier(0.22, 1.32, 0.36, 1) both !important;
}

/* Luminous Specular Water-Drop Ripple clipped inside pill/button borders */
.tf-ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52) 0%, rgba(116, 196, 255, 0.34) 48%, transparent 74%);
  animation: tfRippleExpand 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tf-ripple-wave.is-gold {
  background: radial-gradient(circle, rgba(255, 244, 214, 0.62) 0%, rgba(232, 198, 138, 0.38) 48%, transparent 74%);
}

html[data-taffy-finish="ceramic"] .tf-btn-ghost .tf-ripple-wave,
html[data-taffy-finish="ceramic"] .tf-btn-outline .tf-ripple-wave,
html[data-taffy-finish="ceramic"] .tf-bf-close-btn .tf-ripple-wave,
html[data-taffy-finish="ceramic"] .tf-side-item:not(.active):not(.tf-bf-side-item) .tf-ripple-wave {
  background: radial-gradient(circle, rgba(0, 113, 227, 0.24) 0%, rgba(168, 134, 84, 0.16) 52%, transparent 76%);
}

/* Universal Silky Modal Exit Transition for ALL Dialogs */
.tf-overlay.is-leaving {
  animation: tfBfOverlayOut 0.24s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
  pointer-events: none;
}

.tf-dialog.is-leaving {
  animation: tfDialogOut 0.24s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
  pointer-events: none;
}

.tf-cov-overlay.is-leaving {
  animation: tfBfOverlayOut 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
  pointer-events: none;
}

.tf-cov-overlay.is-leaving .tf-cov-card {
  animation: tfDialogOut 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
}

/* Disable sticky hover states on touchscreens so buttons never look "stuck" after tap */
@media (hover: none) and (pointer: coarse) {
  .tf-btn:hover:not(:disabled),
  .tf-bf-nav-pill:hover,
  .tf-bf-landing-spotlight:hover,
  .tf-bf-close-btn:hover,
  .tf-period-card:hover {
    transform: none;
  }
}

@keyframes tfTapSpringRebound {
  0% { transform: translate3d(0, 1px, 0) scale(0.915); }
  52% { transform: translate3d(0, -1px, 0) scale(1.035); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfTapCardRebound {
  0% { transform: translate3d(0, 1px, 0) scale(0.968); }
  52% { transform: translate3d(0, -1px, 0) scale(1.012); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes tfDialogOut {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.955); }
}

/* ==========================================================================
   v14.9 CELESTIAL CONSTELLATION — ALL-COUNTRY STARLIGHT NETWORK STAGE
   ========================================================================== */
.tf-star-topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 18, 28, 0.94), rgba(10, 12, 20, 0.96));
}

.tf-star-topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tf-star-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--tf-mono);
  letter-spacing: 0.06em;
  color: #f6e4c1;
  background: rgba(232, 206, 160, 0.12);
  border: 1px solid rgba(232, 206, 160, 0.34);
  white-space: nowrap;
}

.tf-star-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 2px 4px;
}

@media (max-width: 767px) {
  .tf-star-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .tf-star-pills::-webkit-scrollbar {
    display: none;
  }
}

.tf-star-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(235, 238, 248, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.24s ease;
}

.tf-star-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(236, 212, 168, 0.42);
}

.tf-star-pill.is-active {
  background: linear-gradient(135deg, #f8e8c8 0%, #dfc088 100%);
  color: #141009;
  border-color: rgba(255, 246, 224, 0.9);
  box-shadow: 0 4px 16px rgba(232, 200, 140, 0.34);
}

.tf-star-pill-cnt {
  font-size: 10px;
  font-family: var(--tf-mono);
  opacity: 0.72;
}

.tf-star-pill.is-active .tf-star-pill-cnt {
  opacity: 0.88;
  font-weight: 800;
}

.tf-star-stage {
  position: relative;
  width: 100%;
  height: 368px;
  background: radial-gradient(ellipse at 50% 42%, #13182c 0%, #090c17 58%, #05060c 100%);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.tf-star-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.tf-star-labels-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.tf-star-lbl {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(244, 247, 255, 0.94);
  text-shadow: 0 1px 2px rgba(4, 6, 14, 0.98), 0 0 8px rgba(4, 6, 14, 0.92);
  padding: 1px 4px;
}

.tf-star-lbl.is-focus {
  z-index: 4;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 24, 0.92);
  border: 1px solid rgba(168, 184, 214, 0.45);
  color: rgba(232, 238, 250, 0.94);
  text-shadow: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.tf-star-lbl.is-focus.is-lit {
  border-color: rgba(244, 222, 180, 0.88);
  color: #fff6e0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.62), 0 0 12px rgba(244, 222, 180, 0.22);
}

.tf-star-corner-tl,
.tf-star-corner-tr {
  position: absolute;
  top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.tf-star-corner-tl {
  left: 18px;
  color: rgba(232, 210, 172, 0.62);
}

.tf-star-corner-tr {
  right: 18px;
  color: rgba(126, 198, 255, 0.72);
}

.tf-star-legend {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10.5px;
  color: rgba(228, 232, 244, 0.74);
  pointer-events: none;
}

.tf-star-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tf-star-dot-lit {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff3d6;
  box-shadow: 0 0 8px #f0d090;
}

.tf-star-dot-dim {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168, 184, 214, 0.36);
}

@media (max-width: 640px) {
  .tf-star-topbar {
    padding: 12px 14px 10px;
    gap: 9px;
  }
  .tf-star-stage {
    height: 300px;
  }
  .tf-star-lbl {
    font-size: 11.5px;
    font-weight: 600;
  }
  .tf-star-lbl.is-focus {
    font-size: 12px;
    padding: 4px 10px;
  }
  .tf-star-legend {
    left: 10px;
    bottom: 8px;
    gap: 8px;
    padding: 4px 9px;
    font-size: 9.5px;
  }
}
