/* TrueVAULT minimal, clean design */
:root {
  --brand: #6b8cff;
  --brand-600: #5576f0;
  --brand-700: #3f5fdc;
  /* Slightly darker base background */
  --bg: #0b0e1a;
  --card: #181c2f;
  --text: #e8ecff;
  --muted: #b8c0e0;
  --ok: #38d39f;
  --warn: #ffbf69;
  --err: #ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  /* Purple-only animated gradient with a darker base */
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(103, 67, 227, 0.45) 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(103, 67, 227, 0.30) 0%, transparent 65%),
    radial-gradient(800px 600px at 0% 100%, rgba(103, 67, 227, 0.22) 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  background-position: 20% 0%, 100% 10%, 0% 100%, 0 0;
  animation: gradientFloat 24s ease-in-out infinite;
  line-height: 1.6;
}

@keyframes gradientFloat {
  0%   { background-position: 20% 0%,   100% 10%, 0% 100%, 0 0; }
  50%  { background-position: 35% 12%,   70% 22%, 10% 85%, 0 0; }
  100% { background-position: 20% 0%,   100% 10%, 0% 100%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

.wrap {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.logo-img { height: 48px; width: auto; border-radius: 0; box-shadow: none; background: transparent; }
.logo-badge span { font-weight: 800; color: white; letter-spacing: .5px; }
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: .6px; color: var(--text); }
.logo-sub { color: var(--muted); font-size: 12px; letter-spacing: .4px; }

main { display: grid; place-items: center; padding: 10px 16px 40px; }
.card {
  width: 100%;
  max-width: 520px;
  /* Dark frosted glass */
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(12, 14, 26, .48);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 28px;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Center alignment variant for cards needing centered content */
.card-center { margin-left: auto; margin-right: auto; text-align: center; }
.card-center .field, .card-center .actions { margin-left: auto; margin-right: auto; }
.card-center h1, .card-center h2, .card-center h3 { margin-top: 0; }

/* Progress bar */
.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar .bar {
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-700) 100%);
  animation: progressSlide 1.6s cubic-bezier(.4,.0,.2,1) infinite;
  will-change: left;
}
.progress-bar .bar2 { animation-delay: .8s; }
@keyframes progressSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* Fallback when backdrop-filter isn't supported: make card more opaque */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card { background: rgba(12, 14, 26, .82); }
}
.card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: .4px; }
.card p.lead { margin: 0 0 18px; color: var(--muted); }

.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.control { position: relative; }
.control input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.control input:focus { border-color: color-mix(in srgb, var(--brand) 70%, white 30%); background: rgba(255,255,255,.06); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error { color: var(--err); font-size: 12px; margin-top: 6px; display: none; }
.error.show { display: block; }

/* Inline help tooltip */
.help-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 8px; }
.help-badge {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 1; color: var(--text);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  cursor: help;
}
.help-badge:focus { outline: 2px solid color-mix(in srgb, var(--brand) 70%, white 30%); outline-offset: 2px; }
.tooltip {
  position: absolute; left: 100%; top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; z-index: 10;
  background: rgba(12, 14, 26, .95);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.help-wrap:hover .tooltip, .help-wrap:focus-within .tooltip { opacity: 1; pointer-events: auto; }

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 16px; border-radius: 12px; border: 0;
  cursor: pointer; text-decoration: none; font-weight: 600; letter-spacing: .3px;
}
.btn.primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: white; }
.btn.secondary { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,.12); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.note { padding: 12px 14px; border: 1px dashed rgba(255,255,255,.15); border-radius: 10px; color: var(--muted); font-size: 13px; }
.note strong { color: var(--text); font-weight: 700; }
.note-steps {
  margin: 8px 0 0 18px;
  padding-left: 8px;
}
.note-steps li { margin: 4px 0; }

/* Accessible accordion styling */
details.note-accordion { border-style: dashed; }
details.note-accordion { margin-bottom: 12px; }
details.note-accordion > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 700; /* match REQUIRED heading weight */
  font-size: 13px;  /* match REQUIRED heading size */
  display: flex;
  align-items: center;
  gap: 8px;
}
details.note-accordion > summary::-webkit-details-marker { display: none; }
details.note-accordion > summary::before {
  content: '\25BC'; /* down triangle */
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform .2s ease;
  font-size: 0.9em;
  opacity: .8;
}
details.note-accordion[open] > summary::before { transform: rotate(0deg); }
details.note-accordion[open] { padding-bottom: 10px; }
details.note-accordion > .note-steps { margin-top: 10px; }

.status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; margin: 10px 0;
}
.status.ok { background: rgba(56, 211, 159, .12); color: #baf3dd; border: 1px solid rgba(56,211,159,.35); }
.status.warn { background: rgba(255, 191, 105, .12); color: #ffe7c3; border: 1px solid rgba(255,191,105,.35); }
.status.err { background: rgba(255, 107, 107, .12); color: #ffd4d4; border: 1px solid rgba(255,107,107,.35); }

.center { text-align: center; }
.muted { color: var(--muted); }

footer.site { color: var(--muted); text-align: center; padding: 24px 16px 40px; font-size: 12px; }
footer.site .secure-badge { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); padding: 6px 10px; border-radius: 30px; font-size: 11px; letter-spacing: .4px; color: var(--text); }
footer.site .secure-badge .lock { filter: drop-shadow(0 0 2px rgba(0,0,0,.4)); }

/* Small help icon positioned bottom-right of the main card */
.tv-help-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  z-index: 5; /* above tv-border-svg */
  transition: transform .12s ease, box-shadow .18s ease, background .12s ease;
}
.tv-help-icon:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.tv-help-icon svg { color: var(--text); opacity: 0.95; }

/* Expandable help control: small toggle that folds out to the left with the Discord link */
.tv-help-wrap { position: relative; display: inline-block; }
/* The toggle itself acts as the container that expands in-place. We animate max-width for a smooth horizontal expansion. */
.tv-help-toggle {
  height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 0 8px; /* small horizontal padding when closed */
  max-width: 40px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: transform .12s ease, box-shadow .14s ease, background .12s ease, max-width .22s cubic-bezier(.2,.9,.2,1), padding .18s ease;
}
.tv-help-toggle:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }
.tv-help-toggle:focus { outline: none; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }

/* Open state: allow the toggle to expand horizontally and reveal the link text */
.tv-help-toggle.open { max-width: 280px; padding: 0 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.45); }

/* The link inside the toggle stays on one line and is revealed with opacity/transform */
.tv-help-toggle .tv-help-link { display: inline-block; color: var(--text); font-weight: 700; text-decoration: none; padding: 6px 8px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.tv-help-toggle.open .tv-help-link { opacity: 1; transform: translateX(0); pointer-events: auto; }
.tv-help-toggle .tv-help-icon-inner { display: inline-grid; place-items: center; width: 20px; height: 20px; }
/* Also target raw SVGs placed directly inside the toggle (no wrapper) */
.tv-help-toggle > svg, .tv-help-toggle svg {
  width: 18px; height: 18px; display: block; flex: 0 0 18px;
  color: var(--text); opacity: 0.98; stroke: currentColor; fill: none;
}

/* Center the icon when toggle is closed */
.tv-help-toggle { justify-content: center; }
.tv-help-toggle.open { justify-content: flex-start; }

/* Stronger guarantee: force the SVG visible and above any background layers */
.tv-help-toggle svg {
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--text) !important;
  stroke: var(--text) !important;
  fill: none !important;
  z-index: 6; /* sit above the rounded background */
}

/* If the SVG is wrapped or replaced by an icon font, ensure the inner icon element is also visible */
.tv-help-toggle .lucide, .tv-help-toggle .icon {
  display: inline-block; vertical-align: middle; color: var(--text) !important; opacity: 1 !important;
}

/* Fallback: show a simple question-mark when closed if the SVG isn't visible for some reason */
.tv-help-toggle:not(.open)::after {
  content: '?';
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-left: 0;
  opacity: 1;
  transform: none;
  z-index: 7;
  pointer-events: none;
}

/* If the browser supports :has(), hide the fallback when an SVG is present to avoid duplication */
@supports (selector(:has(.tv-help-toggle svg))) {
  .tv-help-toggle:has(svg):not(.open)::after { display: none; }
}

/* Fallback using a data-URI SVG image centered in the closed toggle. This guarantees visibility on browsers
   that don't render the inline SVG correctly. We position it above the background and hide when open. */
.tv-help-toggle {
  position: relative; /* required for pseudo positioning */
}
.tv-help-toggle:not(.open)::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; pointer-events: none; z-index: 7;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='white' stroke-width='1.8'/><path d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/><path d='M12 17h.01' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* Prefer the real SVG when present; hide the pseudo fallback if an inline SVG exists (best-effort for browsers without :has support) */
/* no-op removal: rely on the pseudo-element fallback and :has() rule above */

/* Keep the older panel styles if other pages rely on them, but lower priority than in-place toggle */
.tv-help-panel { position: absolute; right: 48px; bottom: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 4px; width: 0; overflow: hidden; opacity: 0; pointer-events: none; background: transparent; border-radius: 10px; transition: width .22s cubic-bezier(.2,.9,.2,1), opacity .18s ease; }
.tv-help-panel.open { width: 220px; opacity: 1; pointer-events: auto; background: linear-gradient(135deg, rgba(103,67,227,0.14), rgba(103,67,227,0.06)); padding: 6px 8px; border: 1px solid rgba(103,67,227,0.10); }
.tv-help-panel .btn { width: 100%; padding: 8px 12px; border-radius: 8px; }

@media (max-width: 520px) { .tv-help-panel.open { width: 160px; right: 48px; } }


/* Password strength meter */
.strength { display: grid; grid-auto-flow: column; gap: 6px; margin-top: 8px; }
.strength span { height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--err); }
.strength[data-level="2"] span:nth-child(-n+2) { background: #ff9966; }
.strength[data-level="3"] span:nth-child(-n+3) { background: #ffd166; }
.strength[data-level="4"] span:nth-child(-n+4) { background: #a8e6cf; }
.strength[data-level="5"] span:nth-child(-n+5) { background: var(--ok); }

@media (max-width: 520px) { .actions { flex-direction: column; align-items: stretch; } }

/* Code display + copy */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .8px; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }

/* Responsive video embed */
.video { position: relative; width: 100%; max-width: 800px; margin: 12px auto 0; aspect-ratio: 16/9; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Drag-and-drop install button states */
.truevault-drag-button.dragging { opacity: .8; transform: scale(0.98); }
.truevault-install-action { margin-top: 10px; }
/* Make the install button full-width with 10px rounding */
.truevault-install-action .truevault-drag-button {
  width: 100%;
  border-radius: 10px;
  cursor: crosshair;
}

/* Dashed drop area variant that looks like the provided screenshot */
.truevault-install-link {
  display: block; width: 100%; max-width: 520px; margin: 8px auto 20px; text-decoration: none;
  border-radius: 12px; padding: 8px; box-sizing: border-box;
}

/* Dashed drag/drop area with a stronger pulsing halo */
/* Drag/drop area updated to match TrueVFX purple and energy trail */
.truevault-install-link .truevault-drag-area {
  /* layout */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px dashed rgba(103,67,227,0.95); /* TrueVFX purple */
  border-radius: 12px;
  background: rgba(103,67,227,0.08);
  color: #ffffff; /* text white inside area */

  /* make the area visually prominent with a baseline glow */
  position: relative;
  box-shadow: 0 10px 36px rgba(92,132,255,0.12);
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .22s ease, background-color .12s ease;

  /* animate a more visible inner pulse */
  animation: tv-pulse-glow 2.2s ease-in-out infinite;
}

/* soft outer halo implemented with a pseudo-element for stronger visible glow */
.truevault-install-link .truevault-drag-area::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(103,67,227,0.20), rgba(103,67,227,0.06) 40%, transparent 60%);
  filter: blur(18px);
  opacity: 0.9;
  transition: opacity .3s ease, transform .4s ease;
  animation: tv-outer-glow 2.6s ease-in-out infinite;
}

/* energy ring that trails around the dashed area - anti-clockwise */
.truevault-install-link .truevault-drag-area::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  /* thin bright arc segment */
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(103,67,227,0.95) 300deg 324deg, transparent 324deg 360deg);
  filter: blur(6px) saturate(140%);
  opacity: 0; /* hidden: using SVG track instead */
  mix-blend-mode: screen;
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black calc(100% - 7px));
  /* animation removed; hidden in favor of SVG stroke animation */
}

.truevault-install-link .drag-icon { width:20px; height:20px; color: rgba(255,255,255,0.95); }
.truevault-install-link .drag-text { font-weight:800; color: #ffffff; letter-spacing: .2px; }

.truevault-install-link .truevault-help { text-align:center; margin-top:8px; color: #ffffff; font-weight:700; opacity:1; }

/* Hover / active state intensifies the halo, raises the element, and brightens the background */
.truevault-install-link .truevault-drag-area:hover,
.truevault-install-link .truevault-drag-area:active {
  transform: translateY(-4px) scale(1.01);
  animation-duration: 1.1s;
  box-shadow: 0 20px 60px rgba(92,132,255,0.20), 0 0 80px rgba(92,132,255,0.12);
  background: rgba(92,132,255,0.10);
}

.truevault-install-link .truevault-drag-area:hover::after,
.truevault-install-link .truevault-drag-area:active::after {
  transform: scale(1.06);
  opacity: 1;
}

/* Focus styles for keyboard users — very visible ring */
.truevault-install-link .truevault-drag-area:focus-within,
.truevault-install-link .truevault-drag-area:focus {
  outline: none;
  box-shadow: 0 20px 72px rgba(92,132,255,0.24), 0 0 96px rgba(92,132,255,0.18);
}

/* Subtle reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .truevault-install-link .truevault-drag-area { animation: none; }
  .truevault-install-link .truevault-drag-area::after { animation: none; }
}

/* Inner pulse: stronger expansion and fade to create an obvious breathing halo */
@keyframes tv-pulse-glow {
  0% {
    box-shadow: 0 6px 24px rgba(92,132,255,0.10), 0 0 0 0 rgba(92,132,255,0.00);
    transform: translateY(0);
  }
  45% {
    box-shadow: 0 18px 46px rgba(92,132,255,0.18), 0 0 36px rgba(92,132,255,0.10);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 6px 24px rgba(92,132,255,0.08), 0 0 0 0 rgba(92,132,255,0.00);
    transform: translateY(0);
  }
}

/* Outer halo animation: pulse the pseudo-element's scale/opacity */
@keyframes tv-outer-glow {
  0%   { transform: scale(1);   opacity: 0.75; }
  50%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);   opacity: 0.75; }
}

/* Initial panel: now a button-like installer trigger with purple energy border */
.truevault-warning {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 12px auto 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(103,67,227,0.18), rgba(103,67,227,0.06));
  color: #ffffff;
  cursor: pointer;
  overflow: visible;
  transition: transform .12s ease, box-shadow .18s ease, filter .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
  border: none;
  box-shadow: 0 6px 20px rgba(103,67,227,0.12), inset 0 1px 0 rgba(255,255,255,0.02);
  display: block;
}

/* .truevault-warning::before removed — SVG stroke now used for moving pulse */

/* A faint outer glow for depth */
.truevault-warning::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, rgba(103,67,227,0.18), transparent 30%);
  filter: blur(14px);
  opacity: 0.9;
}

.truevault-warning:focus {
  outline: none;
  box-shadow: 0 10px 40px rgba(103,67,227,0.22), 0 0 0 4px rgba(103,67,227,0.12);
}

.truevault-warning:hover { transform: translateY(-3px); }
.truevault-warning:active { transform: translateY(0); filter: brightness(.96); }

@media (prefers-reduced-motion: reduce) {
  .truevault-install-link .truevault-drag-area::before {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .tv-border-svg .pulse { animation: none !important; }
}

/* SVG border pulse: stroke dash animation to make a short bright segment race around the rect (racecar track) */
/* Ensure SVG pulse sits outside content and isn't clipped */
.tv-border-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.tv-content { position: relative; z-index: 2; }

/* A short visible dash then a long gap; new perimeter approx 560 so animate offset accordingly */
.tv-border-svg .pulse { stroke-linecap: round; stroke-dasharray: 90 470; stroke-dashoffset: 0; transition: filter .12s ease; }
.tv-border-svg .pulse { animation: tv-stroke-move 1.8s linear infinite reverse; }

@keyframes tv-stroke-move {
  0% {
    stroke-dashoffset: 0;
    stroke-width: 4;
    filter: drop-shadow(0 0 0 rgba(103,67,227,0));
    opacity: 1;
  }
  50% {
    stroke-dashoffset: -280; /* mid-track for larger perimeter */
    stroke-width: 6;         /* slight swell when passing */
    filter: drop-shadow(0 8px 18px rgba(103,67,227,0.32));
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -560;
    stroke-width: 4;
    filter: drop-shadow(0 0 0 rgba(103,67,227,0));
    opacity: 1;
  }
}

/* Hover intensify the glow */
.truevault-warning:hover .tv-border-svg .pulse { filter: drop-shadow(0 8px 20px rgba(103,67,227,0.36)); }

@media (prefers-reduced-motion: reduce) {
  .tv-border-svg .pulse { animation: none !important; }
}

/* Make the installation instruction text more prominent */
.truevault-install-note .muted {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
}

/* Action row above video */
.video-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.video-actions .btn { padding: 8px 12px; border-radius: 10px; }

/* When expanded, the card grows to accommodate a larger video, within layout flow */
.card.is-video-expanded { max-width: clamp(720px, 90vw, 1200px); }
@media (max-width: 760px) { .card.is-video-expanded { max-width: calc(100vw - 24px); } }
