/**
 * file-verify.css
 * ===========================================================
 *
 * SPDX-License-Identifier: LicenseRef-Kodachi-SAN-1.0
 * Copyright (c) 2013-2026 Warith Al Maawali
 *
 * This file is part of Kodachi OS.
 * For full license terms, see LICENSE.md or visit:
 * http://kodachi.cloud/wiki/bina/license.html
 *
 * Commercial or organizational use requires a written license.
 * Contact: warith@digi77.com
 *
 * Author: Warith Al Maawali
 * Version: 9.0.1
 * Last updated: 2026-04-04
 *
 * Description:
 * Styles for the File Integrity Verification page.
 * Uses Kodachi dark theme variables from kodachi-variables-dark.css.
 *
 * Links:
 * - Website: https://www.digi77.com
 * - Website: https://www.kodachi.cloud
 * - GitHub: https://github.com/WMAL
 * - Discord: https://discord.gg/KEFErEx
 * - LinkedIn: https://om.linkedin.com/in/warith1977
 * - X (Twitter): https://x.com/warith2020
 */

/* ---- Drop zone ---- */
.fv-drop-zone {
  border: 2px dashed var(--kodachi-neon-green, #9FEF00);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: rgba(159, 239, 0, 0.02);
  margin: 24px 0;
}

.fv-drop-zone:hover,
.fv-drop-zone.fv-dragover {
  border-color: var(--kodachi-neon-green-bright, #9FEF00);
  box-shadow: 0 0 24px var(--kodachi-neon-green-glow, rgba(159,239,0,0.3)),
              inset 0 0 24px rgba(159, 239, 0, 0.04);
  background: rgba(159, 239, 0, 0.04);
}

.fv-drop-zone__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}

.fv-drop-zone__title {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--kodachi-text-primary, #f0f0f0);
  margin-bottom: 8px;
}

.fv-drop-zone__subtitle {
  font-size: 13px;
  color: var(--kodachi-text-secondary, #999);
}

.fv-file-input {
  display: none;
}

/* ---- Progress bar ---- */
.fv-progress {
  display: none;
  margin: 20px 0;
}

.fv-progress__track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.fv-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--kodachi-neon-green, #9FEF00);
  border-radius: 3px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px var(--kodachi-neon-green-glow, rgba(159,239,0,0.3));
}

.fv-progress__text {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--kodachi-text-secondary, #999);
  text-align: right;
  margin-top: 4px;
}

/* ---- File info ---- */
.fv-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(159, 239, 0, 0.04);
  border: 1px solid var(--kodachi-border-default, rgba(159,239,0,0.15));
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fv-file-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--kodachi-blue-electric, #9FEF00);
  word-break: break-all;
}

.fv-file-size {
  font-size: 13px;
  color: var(--kodachi-text-secondary, #999);
  white-space: nowrap;
}

.fv-file-meta {
  font-size: 12px;
  color: var(--kodachi-text-muted, #777);
  white-space: nowrap;
  padding-left: 8px;
  border-left: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
}

.fv-file-meta--type {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.fv-file-meta--speed {
  color: var(--kodachi-neon-green, #9FEF00);
}

/* ---- Hash rows ---- */
.fv-hashes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.fv-hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  border-radius: 6px;
  transition: border-color 0.15s;
}

.fv-hash-row:hover {
  border-color: var(--kodachi-border-default, rgba(159,239,0,0.15));
}

.fv-hash-label {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--kodachi-text-secondary, #999);
  min-width: 62px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.fv-hash-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--kodachi-text-primary, #f0f0f0);
  word-break: break-all;
  flex: 1;
  user-select: all;
  line-height: 1.5;
  background: none;
  border: none;
  padding: 0;
}

.fv-copy-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--kodachi-border-default, rgba(159,239,0,0.15));
  border-radius: 4px;
  background: transparent;
  color: var(--kodachi-text-secondary, #999);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fv-copy-btn:hover {
  border-color: var(--kodachi-neon-green, #9FEF00);
  color: var(--kodachi-neon-green, #9FEF00);
  box-shadow: 0 0 6px var(--kodachi-neon-green-glow, rgba(159,239,0,0.3));
}

.fv-copy-btn.fv-copied {
  border-color: var(--kodachi-success, #9FEF00);
  color: var(--kodachi-success, #9FEF00);
}

.fv-copy-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Scan links ---- */
.fv-scan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  align-items: center;
}

.fv-scan-links__label {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--kodachi-text-secondary, #999);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.fv-scan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--kodachi-border-default, rgba(159,239,0,0.15));
  border-radius: 6px;
  color: var(--kodachi-text-secondary, #999);
  text-decoration: none;
  transition: all 0.15s;
  background: rgba(255,255,255,0.02);
}

.fv-scan-link:hover {
  border-color: var(--kodachi-blue-electric, #9FEF00);
  color: var(--kodachi-blue-electric, #9FEF00);
  box-shadow: 0 0 8px var(--kodachi-blue-glow, rgba(159,239,0,0.3));
  text-decoration: none;
}

.fv-scan-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---- Verification result cards ---- */
.fv-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid;
}

.fv-result--match {
  border-color: var(--kodachi-success, #9FEF00);
  background: var(--kodachi-status-success-bg, rgba(159,239,0,0.1));
}

.fv-result--nomatch {
  border-color: var(--kodachi-warning, #ffcc00);
  background: var(--kodachi-status-warning-bg, rgba(255,204,0,0.1));
}

.fv-result--unavailable {
  border-color: var(--kodachi-text-muted, #666);
  background: rgba(255, 255, 255, 0.03);
}

.fv-result__icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 28px;
  height: 28px;
}

.fv-result__icon svg {
  width: 28px;
  height: 28px;
}

.fv-result__body {
  flex: 1;
  min-width: 0;
}

.fv-result__title {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fv-result--match .fv-result__icon svg {
  stroke: var(--kodachi-success, #9FEF00);
}

.fv-result--match .fv-result__title {
  color: var(--kodachi-success, #9FEF00);
}

.fv-result--nomatch .fv-result__icon svg {
  stroke: var(--kodachi-warning, #ffcc00);
}

.fv-result--nomatch .fv-result__title {
  color: var(--kodachi-warning, #ffcc00);
}

.fv-result--unavailable .fv-result__icon svg {
  stroke: var(--kodachi-text-secondary, #999);
}

.fv-result--unavailable .fv-result__title {
  color: var(--kodachi-text-secondary, #999);
}

.fv-result__text {
  font-size: 13px;
  color: var(--kodachi-text-secondary, #999);
  line-height: 1.5;
}

.fv-result__text strong {
  color: var(--kodachi-text-primary, #f0f0f0);
}

/* ---- Official hashes table ---- */
.fv-table-heading {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--kodachi-text-primary, #f0f0f0);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
}

.fv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fv-hash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fv-hash-table th {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--kodachi-text-secondary, #999);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--kodachi-border-default, rgba(159,239,0,0.15));
  white-space: nowrap;
}

.fv-hash-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  color: var(--kodachi-text-primary, #f0f0f0);
  vertical-align: middle;
}

.fv-hash-table tbody tr:hover {
  background: rgba(159, 239, 0, 0.03);
}

.fv-hash-cell {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
  color: var(--kodachi-text-secondary, #999);
}

/* ---- Collapsible details ---- */
.fv-details {
  margin: 16px 0;
  border: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  border-radius: 8px;
  overflow: hidden;
}

.fv-details__summary {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--kodachi-text-primary, #f0f0f0);
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.fv-details__summary::-webkit-details-marker {
  display: none;
}

.fv-details__summary::before {
  content: "\25B6";
  font-size: 10px;
  color: var(--kodachi-text-muted, #666);
  transition: transform 0.2s;
  display: inline-block;
}

.fv-details[open] > .fv-details__summary::before {
  transform: rotate(90deg);
}

.fv-details__summary:hover {
  background: rgba(159, 239, 0, 0.03);
}

.fv-details .fv-table-wrap {
  padding: 0 16px 16px;
}

/* ---- Signature attachment ---- */
.fv-sig-attach {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--kodachi-border-default, rgba(159,239,0,0.15));
  border-radius: 8px;
}

.fv-sig-attach__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fv-sig-attach__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.fv-sig-attach__icon {
  width: 22px;
  height: 22px;
  stroke: var(--kodachi-text-muted, #777);
  flex-shrink: 0;
}

.fv-sig-attach__text {
  font-size: 12px;
  color: var(--kodachi-text-secondary, #999);
  line-height: 1.5;
}

.fv-sig-attach__text code {
  color: var(--kodachi-neon-green, #9FEF00);
  font-size: 12px;
}

.fv-sig-attach__buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.fv-sig-attach__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--kodachi-border-default, rgba(159,239,0,0.15));
  border-radius: 6px;
  background: transparent;
  color: var(--kodachi-text-secondary, #999);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.fv-sig-attach__btn:hover {
  border-color: var(--kodachi-neon-green, #9FEF00);
  color: var(--kodachi-neon-green, #9FEF00);
  box-shadow: 0 0 8px var(--kodachi-neon-green-glow, rgba(159,239,0,0.3));
}

.fv-sig-attach__btn svg {
  width: 14px;
  height: 14px;
}

.fv-sig-attach__btn.fv-sig-attached {
  border-color: var(--kodachi-success, #9FEF00);
  color: var(--kodachi-success, #9FEF00);
  pointer-events: none;
}

.fv-sig-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--kodachi-text-secondary, #999);
}

.fv-sig-status:empty {
  display: none;
}

.fv-sig-name {
  font-family: "JetBrains Mono", monospace;
  color: var(--kodachi-neon-green, #9FEF00);
}

/* ---- How-it-works step cards ---- */
.fv-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.fv-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.fv-step:hover {
  border-color: var(--kodachi-border-default, rgba(159,239,0,0.15));
  background: rgba(159, 239, 0, 0.03);
  box-shadow: 0 0 12px rgba(159, 239, 0, 0.06);
}

.fv-step__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.fv-step__num {
  position: absolute;
  top: -4px;
  right: -8px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--kodachi-bg-primary, #0d1117);
  background: var(--kodachi-neon-green, #9FEF00);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

.fv-step__icon {
  width: 32px;
  height: 32px;
  stroke: var(--kodachi-neon-green, #9FEF00);
  opacity: 0.7;
  flex-shrink: 0;
}

.fv-step:hover .fv-step__icon {
  opacity: 1;
}

.fv-step__title {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--kodachi-text-primary, #f0f0f0);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.fv-step__desc {
  font-size: 12px;
  color: var(--kodachi-text-secondary, #999);
  line-height: 1.5;
}

/* ---- Section divider ---- */
.fv-section-divider {
  border: none;
  border-top: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  margin: 32px 0;
}

/* ---- Privacy notice ---- */
.fv-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(159, 239, 0, 0.03);
  border: 1px solid var(--kodachi-border-subtle, rgba(159,239,0,0.08));
  border-radius: 8px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--kodachi-text-secondary, #999);
  line-height: 1.5;
}

.fv-privacy__icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .fv-drop-zone {
    padding: 32px 16px;
  }

  .fv-hash-row {
    flex-wrap: wrap;
  }

  .fv-hash-label {
    min-width: unset;
    width: 100%;
  }

  .fv-hash-value {
    font-size: 10px;
  }

  .fv-file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .fv-file-meta {
    border-left: none;
    padding-left: 0;
  }

  .fv-result {
    padding: 12px 14px;
  }

  .fv-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .fv-scan-links {
    flex-direction: column;
  }

  .fv-scan-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .fv-steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Readability bump 2026-05-28 ---- */
/* Bumps the small caption / hint / pill / code-cell fonts that were */
/* arrowed in the v1.png + v2.png feedback round. Targets only the   */
/* low-readability elements; everything else keeps its previous size. */
.fv-drop-zone__subtitle { font-size: 14px; line-height: 1.55; }
.fv-privacy             { font-size: 14px; line-height: 1.55; }
.fv-privacy__icon       { font-size: 18px; }
.fv-step__title         { font-size: 14px; letter-spacing: 0.6px; }
.fv-step__desc          { font-size: 13px; line-height: 1.6; }
.fv-step__num           { font-size: 11px; width: 20px; height: 20px; }
.fv-hash-cell           { font-size: 13px; }
/* Format pill (e.g. iso / tar.gz) in the Release Packages table */
.fv-hash-table td > code:not(.fv-hash-cell) { font-size: 13px; padding: 2px 8px; }
/* CLI examples block inside the "Verifying from the command line" admonition */
.md-typeset .admonition .highlight pre code,
.md-typeset .admonition .highlight code,
.md-typeset details .highlight pre code { font-size: 14px; line-height: 1.55; }
/* Drop-zone secondary copy + sig-status, both arrowed */
.fv-sig-status          { font-size: 13px; }
.fv-file-meta--type     { font-size: 12px; }
@media (max-width: 768px) {
  .fv-hash-cell         { font-size: 12px; }
  .fv-step__desc        { font-size: 12.5px; }
}

/* ---- Mismatch detail block (inside No-Match card) 2026-05-28 ---- */
/* Renders the user's computed hash + the 3 official expected hashes  */
/* so the user can see exactly which release-package hashes were      */
/* compared against. Added from v3.png feedback round.                */
.fv-mismatch-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--kodachi-border-subtle, rgba(255, 170, 0, 0.18));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fv-mismatch-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fv-mismatch-label {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--kodachi-text-secondary, #aaa);
}

.fv-mismatch-hash {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--kodachi-text-secondary, #999);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--kodachi-border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: 4px;
  padding: 6px 9px;
  user-select: all;
}

.fv-mismatch-hash--user {
  color: var(--kodachi-warning, #ffaa00);
  border-color: rgba(255, 170, 0, 0.25);
  background: rgba(255, 170, 0, 0.04);
}

.fv-mismatch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fv-mismatch-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fv-mismatch-pkg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.fv-mismatch-pkg__name {
  font-weight: 600;
  color: var(--kodachi-text-primary, #f0f0f0);
}

.fv-mismatch-pkg__ver {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--kodachi-text-secondary, #999);
}

.fv-mismatch-pkg__fmt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--kodachi-border-subtle, rgba(159, 239, 0, 0.15));
  border-radius: 3px;
  color: var(--kodachi-neon-green, #9FEF00);
  background: rgba(159, 239, 0, 0.03);
}

.fv-mismatch-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--kodachi-text-secondary, #999);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .fv-mismatch-hash { font-size: 11.5px; }
}

/* ---- Mismatch-detail FAILURE colouring 2026-05-28 ----
   When the parent card is .fv-result--nomatch, every hash text /
   label / format pill inside the detail block flips to red/amber so
   it reads as "danger" instead of the default neutral grey/green.
   The .md-typeset scope is required to beat MkDocs Material's
   .md-typeset code rule which would otherwise repaint the codes
   green. */
.md-typeset .fv-result--nomatch .fv-mismatch-hash {
  color: #ff8a8a;
  background: rgba(255, 64, 64, 0.06);
  border-color: rgba(255, 64, 64, 0.22);
}
.md-typeset .fv-result--nomatch .fv-mismatch-hash--user {
  color: #ff4d4d;
  background: rgba(255, 64, 64, 0.12);
  border-color: rgba(255, 64, 64, 0.50);
  font-weight: 500;
  text-shadow: 0 0 6px rgba(255, 64, 64, 0.35);
}
.md-typeset .fv-result--nomatch .fv-mismatch-label {
  color: #ff8a8a;
}
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__name {
  color: #ffd5d5;
}
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__ver {
  color: #ff8a8a;
}
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__fmt {
  color: #ff8a8a;
  background: rgba(255, 64, 64, 0.05);
  border-color: rgba(255, 64, 64, 0.28);
}
.md-typeset .fv-result--nomatch .fv-mismatch-note {
  color: #ffaa00;
}
.md-typeset .fv-result--nomatch .fv-mismatch-note strong {
  color: #ff4d4d;
}
.md-typeset .fv-result--nomatch .fv-mismatch-detail {
  border-top-color: rgba(255, 64, 64, 0.30);
}

/* ---- Result-card animations 2026-05-28 ----
   Celebration glow for verification PASS, red alert flash for FAIL.
   The cards animate every time they're rendered (full innerHTML swap
   in showVerification), so re-dropping a file re-fires the animation.
   Respects prefers-reduced-motion. */

/* Pop-in shared by all result cards */
@keyframes fv-pop-in {
  0%   { opacity: 0; transform: scale(0.96) translateY(-4px); }
  60%  { opacity: 1; transform: scale(1.01) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* SUCCESS — celebration glow + icon bounce + sustained breathing pulse */
@keyframes fv-pulse-success {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 239, 0, 0.0), inset 0 0 0 0 rgba(159, 239, 0, 0.0); }
  50%      { box-shadow: 0 0 28px 4px rgba(159, 239, 0, 0.35), inset 0 0 18px 0 rgba(159, 239, 0, 0.08); }
}
@keyframes fv-icon-bounce {
  0%   { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  40%  { transform: scale(1.25) rotate(0deg); opacity: 1; }
  60%  { transform: scale(0.92) rotate(0deg); }
  80%  { transform: scale(1.08) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes fv-shimmer {
  0%   { background-position: -200% 0; opacity: 0; }
  20%  { opacity: 0.6; }
  100% { background-position: 200% 0; opacity: 0; }
}

.fv-result--match {
  animation: fv-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             fv-pulse-success 2.4s ease-in-out 0.45s 3;
  position: relative;
  overflow: hidden;
}
.fv-result--match::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(159, 239, 0, 0.22) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  pointer-events: none;
  animation: fv-shimmer 1.4s ease-out 0.3s 1 both;
}
.fv-result--match .fv-result__icon {
  transform-origin: center;
  animation: fv-icon-bounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.fv-result--match .fv-result__icon svg {
  filter: drop-shadow(0 0 8px rgba(159, 239, 0, 0.55));
}

/* FAILURE — entry shake + red flash + sustained alert pulse */
@keyframes fv-shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-7px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
@keyframes fv-pulse-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.0), inset 0 0 0 0 rgba(255, 64, 64, 0.0); border-color: var(--kodachi-warning, #ffcc00); }
  50%      { box-shadow: 0 0 26px 4px rgba(255, 64, 64, 0.45), inset 0 0 18px 0 rgba(255, 64, 64, 0.10); border-color: #ff4040; }
}
@keyframes fv-icon-flash {
  0%, 100% { transform: scale(1); color: var(--kodachi-warning, #ffcc00); }
  20%      { transform: scale(1.25); color: #ff4040; }
  40%      { transform: scale(0.95); color: var(--kodachi-warning, #ffcc00); }
  60%      { transform: scale(1.15); color: #ff4040; }
  80%      { transform: scale(1); color: var(--kodachi-warning, #ffcc00); }
}

.fv-result--nomatch {
  animation: fv-pop-in 0.4s ease-out both,
             fv-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.15s 1 both,
             fv-pulse-alert 3.8s ease-in-out 0.55s infinite;
  position: relative;
}
.fv-result--nomatch .fv-result__icon {
  transform-origin: center;
  animation: fv-icon-flash 2.5s ease-in-out 0.2s infinite both;
}
.fv-result--nomatch .fv-result__icon svg {
  filter: drop-shadow(0 0 6px rgba(255, 64, 64, 0.55));
}
.fv-result--nomatch .fv-result__title {
  letter-spacing: 0.4px;
}

/* UNAVAILABLE — soft fade-in, no celebration or alarm */
.fv-result--unavailable {
  animation: fv-pop-in 0.35s ease-out both;
}

/* Honor the OS / user accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .fv-result--match,
  .fv-result--nomatch,
  .fv-result--unavailable,
  .fv-result--match::after,
  .fv-result--match .fv-result__icon,
  .fv-result--nomatch .fv-result__icon {
    animation: none !important;
  }
  /* Keep a static glow so success/failure is still visually distinct */
  .fv-result--match    { box-shadow: 0 0 14px rgba(159, 239, 0, 0.25); }
  /* Strong static danger signal when motion is disabled — thick border + deep glow */
  .fv-result--nomatch  {
    box-shadow: 0 0 22px rgba(255, 64, 64, 0.55), inset 0 0 18px rgba(255, 64, 64, 0.08);
    border-color: #ff4040 !important;
    border-width: 2px !important;
  }
}

/* ---- v8 polish 2026-05-28 ---- */
/* Addresses two concrete feedback points from screenshot v8.png:        */
/* 1. Non-stop animation on the No-Match failure card (was 4 iterations) */
/* 2. Font sizes too small for multiple elements inside the card.        */
/* All rules scoped to .fv-result--nomatch or .fv-result--unavailable   */
/* so the success card is completely unaffected.                         */

/* -- Border-color alarm cycle: amber <-> red, synced to pulse tempo -- */
@keyframes fv-border-alarm {
  0%, 100% { border-color: var(--kodachi-warning, #ffcc00); }
  50%       { border-color: #ff4040; }
}

.fv-result--nomatch {
  animation: fv-pop-in 0.4s ease-out both,
             fv-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.15s 1 both,
             fv-pulse-alert 3.8s ease-in-out 0.55s infinite,
             fv-border-alarm 3.8s ease-in-out 0.55s infinite;
}

/* -- Faint synchronised inner glow breathes with the outer pulse -- */
/* Applied via the existing box-shadow inside fv-pulse-alert keyframe; */
/* the inset component provides the inner breath.                       */

/* -- Card title: larger, heavier, more authoritative weight -- */
.fv-result--nomatch .fv-result__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  /* Slight text-shadow gives the title visual weight without bold serif */
  text-shadow: 0 0 12px rgba(255, 170, 0, 0.35);
}

/* -- Card body text: larger, more breathing room -- */
.fv-result--nomatch .fv-result__text {
  font-size: 15px;
  line-height: 1.65;
}

/* -- Mismatch labels (small-caps section headers) -- */
.md-typeset .fv-result--nomatch .fv-mismatch-label,
.fv-result--nomatch .fv-mismatch-label {
  font-size: 12.5px;
  letter-spacing: 0.8px;
}

/* -- Hash boxes: the primary content — must be legible at a glance -- */
.md-typeset .fv-result--nomatch .fv-mismatch-hash,
.fv-result--nomatch .fv-mismatch-hash {
  font-size: 14px;
  line-height: 1.65;
  padding: 8px 11px;
}

/* -- Package name (e.g. "Desktop ISO") -- */
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__name,
.fv-result--nomatch .fv-mismatch-pkg__name {
  font-size: 14px;
  font-weight: 700;
}

/* -- Package version (e.g. "9.0.1.161") -- */
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__ver,
.fv-result--nomatch .fv-mismatch-pkg__ver {
  font-size: 13px;
}

/* -- Format pill (e.g. "iso" / "tar.gz") -- */
.md-typeset .fv-result--nomatch .fv-mismatch-pkg__fmt,
.fv-result--nomatch .fv-mismatch-pkg__fmt {
  font-size: 12.5px;
  padding: 2px 8px;
}

/* -- Footnote ("No match among 28 published individual binaries...") -- */
.md-typeset .fv-result--nomatch .fv-mismatch-note,
.fv-result--nomatch .fv-mismatch-note {
  font-size: 14px;
  line-height: 1.6;
}

/* -- Signature Verification Skipped card body text -- */
.fv-result--unavailable .fv-result__text {
  font-size: 14.5px;
  line-height: 1.65;
}

/* -- Mobile step-down so text doesn't overflow on narrow screens -- */
@media (max-width: 768px) {
  .fv-result--nomatch .fv-result__title             { font-size: 15px; }
  .fv-result--nomatch .fv-result__text              { font-size: 14px; }
  .fv-result--nomatch .fv-mismatch-hash             { font-size: 12.5px; padding: 6px 9px; }
  .md-typeset .fv-result--nomatch .fv-mismatch-hash { font-size: 12.5px; padding: 6px 9px; }
  .fv-result--nomatch .fv-mismatch-pkg__name        { font-size: 13px; }
  .fv-result--nomatch .fv-mismatch-note             { font-size: 13px; }
  .fv-result--unavailable .fv-result__text          { font-size: 13.5px; }
}

/* ====================================================================
   v8.2 — SVG icon-burst animations (replaces the heavy box-shadow
          loops from v8.1). User feedback: heavy/infinite glows were
          tiring. New design: ONE-TIME burst of floating SVG icons on
          result render, plus a "scan flow" during the hashing phase.
          Light, content-driven, no infinite box-shadow throbs.
   ==================================================================== */

/* ---- Disable the v8.1 heavy infinite loops + v8.0 shimmer ::after ----
   The v8.0 block declared a `::after` shimmer overlay on .fv-result--match
   (lines ~941) and v8.1 declared a `::before` scan-line overlay on both
   variants. Kill BOTH pseudo elements outright so they can't paint over or
   compete with the new SVG burst layer. */
.fv-result--match::before,
.fv-result--nomatch::before,
.fv-result--match::after,
.fv-result--nomatch::after { content: none !important; animation: none !important; background: none !important; }

.fv-result--match .fv-result__icon,
.fv-result--nomatch .fv-result__icon { animation: none; }
.fv-result--match .fv-result__icon svg,
.fv-result--nomatch .fv-result__icon svg { filter: none; animation: none; }

/* ---- Hero icon: ONE-TIME entrance bounce, then settle ---- */
@keyframes fv-hero-bounce {
  0%   { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  45%  { transform: scale(1.3) rotate(8deg); opacity: 1; }
  65%  { transform: scale(0.9) rotate(-4deg); }
  80%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes fv-hero-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  10%      { transform: translateX(-6px) rotate(-8deg); }
  25%      { transform: translateX(5px)  rotate(7deg); }
  40%      { transform: translateX(-4px) rotate(-5deg); }
  55%      { transform: translateX(3px)  rotate(4deg); }
  70%      { transform: translateX(-2px) rotate(-2deg); }
  85%      { transform: translateX(1px)  rotate(1deg); }
}
.fv-result--match .fv-result__icon {
  animation: fv-hero-bounce 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both !important;
  transform-origin: center;
  position: relative;
  z-index: 2;
}
.fv-result--nomatch .fv-result__icon {
  animation: fv-hero-shake 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.1s both !important;
  transform-origin: center;
  position: relative;
  z-index: 2;
}
.fv-result--match .fv-result__icon svg {
  filter: drop-shadow(0 0 10px rgba(159, 239, 0, 0.7)) !important;
}
.fv-result--nomatch .fv-result__icon svg {
  filter: drop-shadow(0 0 10px rgba(255, 64, 64, 0.75)) !important;
}
/* Keep the body / text above the burst particles */
.fv-result--match .fv-result__body,
.fv-result--nomatch .fv-result__body { position: relative; z-index: 2; }

/* Subtle once-pulse glow on the card border so the result still "lands" */
@keyframes fv-card-flash-success {
  0%   { box-shadow: 0 0 0 0 rgba(159, 239, 0, 0); }
  35%  { box-shadow: 0 0 24px 4px rgba(159, 239, 0, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(159, 239, 0, 0); }
}
@keyframes fv-card-flash-fail {
  0%   { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0); }
  35%  { box-shadow: 0 0 28px 4px rgba(255, 64, 64, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0); }
}
/* Canonical card animation: entry pop-in + one-shot flash + layout properties.
   Single declaration so future edits don't introduce dead-code overrides. */
.fv-result--match {
  animation: fv-pop-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both,
             fv-card-flash-success 1.8s ease-out 0.2s 1 !important;
  position: relative;
  overflow: visible !important;
}
.fv-result--nomatch {
  animation: fv-pop-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both,
             fv-card-flash-fail 2.2s ease-out 0.2s 1 !important;
  position: relative;
  overflow: visible !important;
}

/* ====================================================================
   SVG ICON BURST — particles thrown from the card on result render
   ==================================================================== */

.fv-burst {
  position: absolute;
  inset: -10px -10px -40px -10px;     /* overflow card so particles can drift out */
  pointer-events: none;
  overflow: visible;
  z-index: 0;                         /* particles fly BEHIND icon + body text */
}
.fv-burst__particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  opacity: 0;
  will-change: transform, opacity;
}
.fv-burst__particle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Each particle gets its own --dx/--dy/--rot/--scale via inline style.
   The keyframe uses those CSS vars so 1 keyframe drives all 10 particles. */
@keyframes fv-throw-up {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
  15%  { opacity: 1; transform: translate(calc(var(--dx,0px) * 0.4), calc(var(--dy,0px) * 0.4)) scale(1.15) rotate(calc(var(--rot,0deg) * 0.4)); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx,0px), var(--dy,-180px)) scale(var(--scale,0.8)) rotate(var(--rot,360deg)); }
}
@keyframes fv-throw-down {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
  20%  { opacity: 1; transform: translate(calc(var(--dx,0px) * 0.3), calc(var(--dy,0px) * 0.3)) scale(1.2) rotate(calc(var(--rot,0deg) * 0.3)); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx,0px), var(--dy,180px)) scale(var(--scale,0.7)) rotate(var(--rot,-540deg)); }
}

.fv-burst--success .fv-burst__particle {
  color: var(--kodachi-neon-green, #9FEF00);
  filter: drop-shadow(0 0 6px rgba(159, 239, 0, 0.7));
  animation: fv-throw-up 2.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) 1 both;
}
.fv-burst--success .fv-burst__particle svg { stroke: var(--kodachi-neon-green, #9FEF00); }

.fv-burst--fail .fv-burst__particle {
  color: #ff4040;
  filter: drop-shadow(0 0 6px rgba(255, 64, 64, 0.7));
  animation: fv-throw-down 2.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) var(--delay, 0s) 1 both;
}
.fv-burst--fail .fv-burst__particle svg { stroke: #ff5a5a; }

/* Sparkle pulse for ✦/+ tiny accent particles */
@keyframes fv-sparkle {
  0%, 100% { opacity: 0; transform: translate(var(--dx,0), var(--dy,0)) scale(0.4); }
  50%      { opacity: 1; transform: translate(var(--dx,0), var(--dy,0)) scale(1.2); }
}
.fv-burst__particle--sparkle {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  animation: fv-sparkle 1.6s ease-in-out var(--delay, 0s) 1 both !important;
}

/* ====================================================================
   CHECKING-FLOW SCANNER — runs inside #fv-progress while hashing
   ==================================================================== */

.fv-scan-flow {
  position: relative;
  height: 56px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(159, 239, 0, 0.15);
  border-radius: 8px;
  background: rgba(159, 239, 0, 0.025);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.fv-scan-flow__rail {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 239, 0, 0.35), transparent);
  transform: translateY(-50%);
}
.fv-scan-flow__stations {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.fv-scan-flow__station {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(159, 239, 0, 0.30);
  background: rgba(0, 20, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kodachi-neon-green, #9FEF00);
}
.fv-scan-flow__station svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
@keyframes fv-station-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 239, 0, 0.0); border-color: rgba(159, 239, 0, 0.30); }
  50%      { box-shadow: 0 0 12px 3px rgba(159, 239, 0, 0.55); border-color: rgba(159, 239, 0, 0.95); }
}
@keyframes fv-station-svg-on {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
.fv-scan-flow__station--s1 { animation: fv-station-pulse 1.8s ease-in-out 0.0s infinite; }
.fv-scan-flow__station--s2 { animation: fv-station-pulse 1.8s ease-in-out 0.45s infinite; }
.fv-scan-flow__station--s3 { animation: fv-station-pulse 1.8s ease-in-out 0.9s infinite; }
.fv-scan-flow__station--s4 { animation: fv-station-pulse 1.8s ease-in-out 1.35s infinite; }
.fv-scan-flow__station--s1 svg { animation: fv-station-svg-on 1.8s ease-in-out 0.0s infinite; }
.fv-scan-flow__station--s2 svg { animation: fv-station-svg-on 1.8s ease-in-out 0.45s infinite; }
.fv-scan-flow__station--s3 svg { animation: fv-station-svg-on 1.8s ease-in-out 0.9s infinite; }
.fv-scan-flow__station--s4 svg { animation: fv-station-svg-on 1.8s ease-in-out 1.35s infinite; }

/* File packet that travels left → right repeatedly while hashing */
.fv-scan-flow__packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: var(--kodachi-neon-green, #9FEF00);
  filter: drop-shadow(0 0 6px rgba(159, 239, 0, 0.7));
  z-index: 3;
}
.fv-scan-flow__packet svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes fv-packet-glide {
  0%   { left: -6%;  opacity: 0; }
  10%  {              opacity: 1; }
  90%  {              opacity: 1; }
  100% { left: 100%;  opacity: 0; }
}
.fv-scan-flow__packet { animation: fv-packet-glide 2.4s linear infinite; }
.fv-scan-flow__packet--p2 { animation-delay: 0.8s; }
.fv-scan-flow__packet--p3 { animation-delay: 1.6s; }

/* ---- prefers-reduced-motion: silence everything, keep static glows ---- */
@media (prefers-reduced-motion: reduce) {
  .fv-result--match,
  .fv-result--nomatch,
  .fv-result--unavailable,
  .fv-result--match .fv-result__icon,
  .fv-result--nomatch .fv-result__icon,
  .fv-burst__particle,
  .fv-scan-flow__station,
  .fv-scan-flow__station svg,
  .fv-scan-flow__packet { animation: none !important; }
  .fv-burst { display: none !important; }
  .fv-result--match   { box-shadow: 0 0 14px rgba(159, 239, 0, 0.35); }
  .fv-result--nomatch { box-shadow: 0 0 14px rgba(255, 64, 64, 0.55); border-color: #ff4040 !important; }
}
