/* ==========================================================================
   VIPER-OS colour skin (v1) for the member pages.
   Loaded after viper2077.css / ice-bg.css on: launch pad, Command Deck
   (dashboard), downloads, support, setup, vault, TV link and requests.
   NOT loaded on admin, 404, renew or the login page (login carries its own).
   Same treatment as the website login: yellow-to-white italic headings with a
   pink glitch shadow, magenta "//" accents, white section eyebrows, cyan form
   labels, cyan + yellow-ringed
   selected tabs, black bold italic buttons, a top edge that matches each
   panel's outline colour + cyan / pink corner ticks on section panels,
   cyan / yellow / pink info tiles.
   Colour and effect only: layouts, ids and behaviour stay as they were, and the
   navy Blackwall wash (no scanlines) and the bottom nav are untouched.
   ========================================================================== */
:root {
  --vos-yellow: #fcee0a;
  --vos-cyan: #08dfec;
  --vos-green: #00ff9d;
  --vos-purple: #d98cff;
  --vos-red: #ff005f;
  --vos-ink: #05070c;
  --vos-ring: #090d14;
}

/* Everything below is scoped to html:not(.has-ice-bg): admin, 404, renew and the Vault lock keep the red ICE look,
   even after an in-app soft navigation (the ICE html class is copied across). */

/* ---- headings: yellow-to-white italic gradient + pink glitch shadow ---- */
html:not(.has-ice-bg) body h1:not(.vos-plain),
html:not(.has-ice-bg) body h2:not(.vos-plain),
html:not(.has-ice-bg) body h3:not(.vos-plain) {
  background-image: linear-gradient(180deg, var(--vos-yellow) 10%, #ffffff 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important; /* a text-shadow would show through the clear fill and muddy the gradient */
  filter: drop-shadow(3px 0 0 var(--vos-red));
}
/* headings that were already a single accent colour keep it and just gain the glitch */
html:not(.has-ice-bg) body h1.text-cyberyellow, html:not(.has-ice-bg) body h2.text-cyberyellow, html:not(.has-ice-bg) body h3.text-cyberyellow,
html:not(.has-ice-bg) body h1.text-cybercyan, html:not(.has-ice-bg) body h2.text-cybercyan, html:not(.has-ice-bg) body h3.text-cybercyan {
  background-image: none;
  -webkit-text-fill-color: currentColor;
}
/* coloured words inside a heading (THE <VAULT>, WELCOME, <NAME>) stay solid */
html:not(.has-ice-bg) body h1 [class*="text-cyber"], html:not(.has-ice-bg) body h2 [class*="text-cyber"], html:not(.has-ice-bg) body h3 [class*="text-cyber"],
html:not(.has-ice-bg) body h1 .vault-title-accent,
html:not(.has-ice-bg) body h2 .dl-section-title span:not(.vos-slash):not(.vos-title-run),
html:not(.has-ice-bg) body .dl-section-title span:not(.vos-slash):not(.vos-title-run) {
  -webkit-text-fill-color: currentColor;
}
html:not(.has-ice-bg) body h1 [class*="text-cyberyellow"], html:not(.has-ice-bg) body h2 [class*="text-cyberyellow"], html:not(.has-ice-bg) body h3 [class*="text-cyberyellow"] { color: var(--vos-yellow) !important; }
/* "Your" / "Apps" / "Watching" used to be cyan; they are now solid white so the title does not go pale blue */
html:not(.has-ice-bg) body h1 [class*="text-cybercyan"], html:not(.has-ice-bg) body h2 [class*="text-cybercyan"], html:not(.has-ice-bg) body h3 [class*="text-cybercyan"],
html:not(.has-ice-bg) body h1 .text-glow-cyan, html:not(.has-ice-bg) body h2 .text-glow-cyan, html:not(.has-ice-bg) body h3 .text-glow-cyan {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
/* the highlighted name / word in a heading (WELCOME, <NAME>; GET THE <APPS>) stays solid yellow; the heading's own glitch shadow covers it */
html:not(.has-ice-bg) body h1 .vip-text, html:not(.has-ice-bg) body h2 .vip-text, html:not(.has-ice-bg) body h3 .vip-text,
html:not(.has-ice-bg) body h1 .text-glow-yellow, html:not(.has-ice-bg) body h2 .text-glow-yellow, html:not(.has-ice-bg) body h3 .text-glow-yellow {
  color: var(--vos-yellow) !important;
  -webkit-text-fill-color: var(--vos-yellow);
  text-shadow: none !important;
}
/* inline SVG icons in headings keep their own stroke colour */
html:not(.has-ice-bg) body h1 svg, html:not(.has-ice-bg) body h2 svg, html:not(.has-ice-bg) body h3 svg { -webkit-text-fill-color: initial; }

/* magenta "//" accents (wrapped by viperos-skin.js).
   Slim mono dividers: they must not inherit the heading's heavy italic, weight,
   gradient fill or glitch shadow, or the two slashes read as a solid block. */
html:not(.has-ice-bg) .vos-slash,
html:not(.has-ice-bg) body h1 .vos-slash, html:not(.has-ice-bg) body h2 .vos-slash, html:not(.has-ice-bg) body h3 .vos-slash,
html:not(.has-ice-bg) body .dl-section-title .vos-slash {
  color: var(--vos-red) !important;
  -webkit-text-fill-color: var(--vos-red) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  text-shadow: none !important;
  filter: none !important; /* own filter only; a parent heading filter is lifted below */
  font-family: var(--v77-mono, 'JetBrains Mono', ui-monospace, monospace) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 0.68em;
  letter-spacing: 0;
  line-height: 1;
  display: inline-block;
  margin: 0 0.35em;
  vertical-align: 0.12em;
  transform: none;
}

/* A heading filter would still paint onto child slashes, so when a title
   contains a divider, move the gradient + glitch onto the text runs only. */
html:not(.has-ice-bg) body h1.vos-has-slash,
html:not(.has-ice-bg) body h2.vos-has-slash,
html:not(.has-ice-bg) body h3.vos-has-slash {
  background-image: none;
  -webkit-text-fill-color: unset;
  filter: none;
}
html:not(.has-ice-bg) body .vos-title-run {
  background-image: linear-gradient(180deg, var(--vos-yellow) 10%, #ffffff 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(3px 0 0 var(--vos-red));
}

/* ---- section eyebrows / kickers: white, magenta // (form labels stay cyan below) ---- */
html:not(.has-ice-bg) body .dl-kicker,
html:not(.has-ice-bg) body .uplink-head .text-cybercyan,
html:not(.has-ice-bg) body .uplink-head [class*="text-cybercyan"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ---- membership Retry: never wrap the button; stack it under NO SIGNAL in the tight plan/expiry columns ---- */
html:not(.has-ice-bg) body .vsk-retry {
  white-space: nowrap !important;
  flex-shrink: 0;
  min-width: 4.75rem;
  padding: 0 .6rem;
  letter-spacing: .1em;
}
html:not(.has-ice-bg) body .vsk-fail {
  letter-spacing: .1em;
  max-width: 100%;
}
html:not(.has-ice-bg) body .dash-mem-facts #dispPlan:has(.vsk-fail),
html:not(.has-ice-bg) body .dash-mem-facts #dispExpiry:has(.vsk-fail) {
  overflow-wrap: normal;
  word-break: normal;
}
html:not(.has-ice-bg) body .dash-mem-facts .vsk-fail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .28rem;
}
html:not(.has-ice-bg) body .dash-mem-meta .vsk-fail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .45rem;
}

/* ---- labels in cyan ---- */
html:not(.has-ice-bg) body label,
html:not(.has-ice-bg) body .vault-label,
html:not(.has-ice-bg) body .stat-label,
html:not(.has-ice-bg) body .diag-label,
html:not(.has-ice-bg) body .dash-mem-label,
html:not(.has-ice-bg) body .tv-link-label,
html:not(.has-ice-bg) body .tv-row-label,
html:not(.has-ice-bg) body .comms-ticket-reply-label,
html:not(.has-ice-bg) body .anime-cfg-section-label,
html:not(.has-ice-bg) body .dl-fold-label {
  color: var(--vos-cyan);
}

/* ---- panels: top edge matches the outline (cyan on section cards); cyan top-left tick, pink bottom-right tick ---- */
html:not(.has-ice-bg) body .cyber-card,
html:not(.has-ice-bg) body .dl-card,
html:not(.has-ice-bg) body .tv-link-card {
  --vos-tl: linear-gradient(var(--vos-cyan), var(--vos-cyan));
  position: relative;
  background:
    var(--vos-tl) 0 0 / 16px 2px no-repeat,
    var(--vos-tl) 0 0 / 2px 16px no-repeat,
    linear-gradient(180deg, rgba(12, 24, 42, .92), rgba(9, 19, 34, .88)) !important;
}
html:not(.has-ice-bg) body .cyber-card::before,
html:not(.has-ice-bg) body .dl-card::before,
html:not(.has-ice-bg) body .tv-link-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 22px auto 18px !important;
  width: auto !important;
  height: 2px !important;
  background: var(--vos-cyan) !important;
  border: 0 !important;
  opacity: 1 !important;
  clip-path: none !important;
  animation: none !important;
  pointer-events: none;
  z-index: 1;
}
html:not(.has-ice-bg) body .cyber-card::after,
html:not(.has-ice-bg) body .dl-card::after,
html:not(.has-ice-bg) body .tv-link-card::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 16px !important;
  height: 16px !important;
  background: none !important;
  border-right: 2px solid var(--vos-red) !important;
  border-bottom: 2px solid var(--vos-red) !important;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 1;
}
/* launch-pad tiles have chamfered top-left / bottom-right corners, so their ticks follow the cut */
html:not(.has-ice-bg) body .portal-card {
  --portal-accent: var(--vos-cyan);
  background:
    linear-gradient(135deg, transparent 8px, var(--portal-accent) 8px, var(--portal-accent) 10px, transparent 10px) 0 0 / 18px 18px no-repeat,
    linear-gradient(180deg, rgba(14, 18, 26, .92) 0%, rgba(6, 7, 10, .98) 100%);
}
html:not(.has-ice-bg) body .portal-card--cyan { --portal-accent: var(--cyber-cyan, var(--vos-cyan)); }
html:not(.has-ice-bg) body .portal-card--gold { --portal-accent: var(--cyber-yellow, var(--vos-yellow)); }
html:not(.has-ice-bg) body .portal-card--green { --portal-accent: var(--cyber-green, var(--vos-green)); }
html:not(.has-ice-bg) body .portal-card--purple { --portal-accent: var(--cyber-purple, var(--vos-purple)); }
html:not(.has-ice-bg) body .portal-card--red { --portal-accent: var(--cyber-red, var(--vos-red)); }
html:not(.has-ice-bg) body .portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 18px;
  height: 2px;
  background: var(--portal-accent);
  pointer-events: none;
}
html:not(.has-ice-bg) body .portal-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 8px, var(--portal-accent) 8px, var(--portal-accent) 10px, transparent 10px);
  pointer-events: none;
}

/* ---- selected tabs and pills: cyan fill, thick yellow double outline, dark italic text ---- */
html:not(.has-ice-bg) body .chip.active,
html:not(.has-ice-bg) body .portal-chip.active,
html:not(.has-ice-bg) body .req-tab.active,
html:not(.has-ice-bg) body .member-filter-pill.active,
html:not(.has-ice-bg) body .pref-pill.active,
html:not(.has-ice-bg) body .audio-pill.active,
html:not(.has-ice-bg) body .anime-net-tab.active,
html:not(.has-ice-bg) body [role="tab"][aria-selected="true"]:not(.nav-tab):not(.pwa-qn-item) {
  background: var(--vos-cyan) !important;
  color: var(--vos-ink) !important;
  -webkit-text-fill-color: var(--vos-ink) !important;
  font-style: italic !important;
  font-weight: 900 !important;
  border: 2px solid var(--vos-yellow) !important;
  clip-path: none !important;
  box-shadow: 0 0 0 2px var(--vos-ring), 0 0 0 4px var(--vos-yellow) !important;
  position: relative;
  z-index: 1;
}
/* scrolling chip rows would clip the outer ring, so they get a little breathing room */
html:not(.has-ice-bg) body .vault-chips, html:not(.has-ice-bg) body .req-tabs { padding: 6px 5px; }

/* ---- buttons: black bold italic text on the yellow slab ---- */
html:not(.has-ice-bg) body .cyber-btn:not(.btn-danger):not(.bg-cyberred),
html:not(.has-ice-bg) body .uplink-btn-yellow,
html:not(.has-ice-bg) body .uplink-btn-yellow * {
  color: var(--vos-ink) !important;
  -webkit-text-fill-color: var(--vos-ink) !important;
  font-style: italic;
  font-weight: 900 !important;
}
html:not(.has-ice-bg) body .cyber-btn:not(.btn-danger):not(.bg-cyberred) svg,
html:not(.has-ice-bg) body .uplink-btn-yellow svg { stroke: var(--vos-ink); }

/* ---- info tiles pick up cyan / yellow / pink ---- */
html:not(.has-ice-bg) body .quick-jump-item,
html:not(.has-ice-bg) body .uplink-app-tile,
html:not(.has-ice-bg) body .diag-cell,
html:not(.has-ice-bg) body .cyber-telemetry-cell,
html:not(.has-ice-bg) body .dash-mem-chip,
html:not(.has-ice-bg) body .dl-chip {
  border-color: rgba(8, 223, 236, .55) !important;
  border-top-width: 2px;
  border-top-color: var(--vos-cyan) !important;
}
html:not(.has-ice-bg) body .quick-jump-item:nth-child(3n+2),
html:not(.has-ice-bg) body .uplink-app-tile:nth-child(3n+2),
html:not(.has-ice-bg) body .diag-cell:nth-child(3n+2),
html:not(.has-ice-bg) body .cyber-telemetry-cell:nth-child(3n+2) {
  border-color: rgba(252, 238, 10, .55) !important;
  border-top-color: var(--vos-yellow) !important;
}
html:not(.has-ice-bg) body .quick-jump-item:nth-child(3n),
html:not(.has-ice-bg) body .uplink-app-tile:nth-child(3n),
html:not(.has-ice-bg) body .diag-cell:nth-child(3n),
html:not(.has-ice-bg) body .cyber-telemetry-cell:nth-child(3n) {
  border-color: rgba(255, 0, 95, .55) !important;
  border-top-color: var(--vos-red) !important;
}
