/* WarpTime Check Page Scoped Styles */

:root {
  --pink-rgb: 234, 76, 137;
  --pink: #EA4C89;
  --pink-hover: #F06292;
  --pink-glow: rgba(234, 76, 137, 0.4);
  --green: #00E676;
  --green-rgb: 0, 230, 118;
  --red: #FF5252;
  --yellow: #FFB142;
  --cyan: #00D2FF;
  --card-bg: #16181C;
  --card-border: rgba(255, 255, 255, 0.08);
  --bg-alt: #1C1F26;
  --text-main: #FFFFFF;
  --text-muted: #A0A5B5;
  --text-dim: #636A7E;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

.check-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 124px 24px 70px;
  min-height: calc(100vh - 120px);
}

.check-hero {
  text-align: center;
  padding: 20px 0 36px;
}

.check-hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.check-hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 2px dashed rgba(234, 76, 137, 0.35);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(234, 76, 137, 0.06), transparent 70%), var(--card-bg);
  padding: 56px 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--pink);
  background: radial-gradient(circle at 50% 0%, rgba(234, 76, 137, 0.12), transparent 70%), var(--card-bg);
  box-shadow: 0 0 35px rgba(234, 76, 137, 0.25), 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.upload-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: var(--radius-lg);
  background: rgba(234, 76, 137, 0.12);
  border: 1px solid rgba(234, 76, 137, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone:hover .upload-icon-wrapper {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 0 20px rgba(234, 76, 137, 0.4);
}

.upload-icon {
  width: 32px;
  height: 32px;
}

.dropzone-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.dropzone-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.file-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.upload-limits {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* Queue List Card */
.queue-panel {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.queue-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Queue list */
.queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 6px 2px 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}

.queue-list::-webkit-scrollbar {
  width: 6px;
}

.queue-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.queue-list::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 64px;
}

.queue-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.queue-item.scanning {
  border-color: rgba(234, 76, 137, 0.6);
  background: linear-gradient(90deg, rgba(234, 76, 137, 0.08) 0%, var(--bg-alt) 100%);
  box-shadow: 0 0 25px rgba(234, 76, 137, 0.2);
  animation: scanItemPulse 2s infinite ease-in-out;
}

@keyframes scanItemPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(234, 76, 137, 0.12);
    border-color: rgba(234, 76, 137, 0.45);
  }
  50% {
    box-shadow: 0 0 28px rgba(234, 76, 137, 0.3);
    border-color: rgba(234, 76, 137, 0.8);
  }
}

.queue-item.scanning::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  animation: queueShimmer 1.4s infinite linear;
}

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

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.queue-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(234, 76, 137, 0.1);
  color: var(--pink);
  flex-shrink: 0;
}

.queue-file-icon.done {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
}

.queue-file-icon.error {
  background: rgba(255, 82, 82, 0.1);
  color: var(--red);
}

.queue-file-icon.scanning {
  background: rgba(234, 76, 137, 0.18);
  color: var(--pink);
}

.queue-icon-spin {
  animation: spin 0.8s linear infinite;
}

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

.queue-file {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: left;
  justify-content: center;
}

.queue-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin: 0;
  padding-top: 3px;
}

.queue-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 1px;
}

.queue-meta-status {
  font-weight: 600;
}

.queue-meta-status.scanning {
  color: var(--pink);
}

.queue-meta-status.done {
  color: var(--green);
}

.queue-meta-status.error {
  color: var(--red);
}

.queue-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.queue-badge.done {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.queue-badge.scanning {
  background: rgba(234, 76, 137, 0.15);
  color: var(--pink);
  border: 1px solid rgba(234, 76, 137, 0.4);
}

.queue-badge.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--card-border);
}

.queue-badge.error {
  background: rgba(255, 82, 82, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.remove-file {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 14px;
}

.remove-file:hover:not(:disabled) {
  background: rgba(255, 82, 82, 0.18);
  border-color: rgba(255, 82, 82, 0.35);
  color: #ff5252;
  transform: scale(1.08);
}

/* Alert Box */
.alert-box {
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff9999;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
  white-space: pre-wrap;
}

/* Scan Bar */
.scan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.scan-status-text {
  font-size: 13px;
  color: var(--text-muted);
}

.scan-status-text.busy {
  color: var(--pink);
}

.scan-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons with Shimmer & Spring Animations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.btn:hover:not(:disabled)::before {
  left: 150%;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.btn:disabled::before,
.btn[disabled]::before,
.btn:disabled:hover::before,
.btn[disabled]:hover::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.btn:disabled svg,
.btn[disabled] svg {
  transform: none !important;
}

.btn-pink {
  background: linear-gradient(135deg, #FF3377 0%, #EA4C89 50%, #B83280 100%);
  color: #FFF;
  box-shadow: 0 4px 18px rgba(var(--pink-rgb), 0.35);
  padding: 10px 22px;
}

.btn-pink svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-pink:hover:not(:disabled) {
  box-shadow: 0 0 25px rgba(234, 76, 137, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-pink:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 10px 20px;
}

.btn-outline svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(234, 76, 137, 0.08);
  border-color: rgba(234, 76, 137, 0.45);
  box-shadow: 0 0 20px rgba(234, 76, 137, 0.25);
  color: #fff;
}

.btn-outline:hover:not(:disabled) svg {
  transform: rotate(90deg);
  color: var(--pink);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-link:hover {
  color: var(--pink);
}

/* Results Section */
.results-section {
  margin-top: 40px;
  padding-bottom: 60px;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pink);
  margin-bottom: 4px;
}

.results-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Task 1: Centered circle badge */
.badge-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 9999px;
  background: rgba(234, 76, 137, 0.18);
  color: var(--pink);
  border: 1px solid rgba(234, 76, 137, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
}

.empty-results-card {
  padding: 48px 24px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
}

.empty-icon-wrap {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.empty-results-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.empty-results-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Result Card */
.results-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.75;
}

.filter-pill:hover {
  background: rgba(234, 76, 137, 0.08);
  border-color: rgba(234, 76, 137, 0.3);
  color: #fff;
}

.filter-pill.active {
  background: rgba(234, 76, 137, 0.15);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(234, 76, 137, 0.2);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-card:hover {
  border-color: rgba(234, 76, 137, 0.35);
}

.result-card.is-expanded {
  border-color: rgba(234, 76, 137, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.result-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
}

.result-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 0;
}

.result-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.result-file-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  margin: 0;
  word-break: break-word;
}

.result-file-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.result-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mini-score-label {
  color: var(--text-muted);
  font-size: 11px;
}

.mini-score-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.mini-score-val.risk-low {
  color: var(--green);
}

.mini-score-val.risk-med {
  color: var(--yellow);
}

.mini-score-val.risk-high {
  color: var(--red);
}

.expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.result-card:hover .expand-btn {
  color: #fff;
  background: rgba(234, 76, 137, 0.15);
  border-color: rgba(234, 76, 137, 0.3);
}

.expand-btn svg {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-card.is-expanded .expand-btn svg {
  transform: rotate(180deg);
}

.result-details {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.2s ease-out;
}

.result-card.is-expanded .result-details {
  display: block;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.result-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-head h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  word-break: break-word;
  color: #fff;
  margin: 0;
}

/* Task 2: Cached Badge without "(кэш)" and without emoji */
.cached-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  text-align: center;
}

.cached-badge svg {
  flex-shrink: 0;
  color: var(--cyan);
}

/* Task 1: Centered verdict */
.verdict {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.verdict.high_risk {
  background: rgba(255, 82, 82, 0.14);
  color: var(--red);
  border: 1px solid rgba(255, 82, 82, 0.35);
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.25);
}

.verdict.review {
  background: rgba(255, 177, 66, 0.14);
  color: var(--yellow);
  border: 1px solid rgba(255, 177, 66, 0.35);
  box-shadow: 0 0 20px rgba(255, 177, 66, 0.2);
}

.verdict.no_signals {
  background: rgba(0, 230, 118, 0.14);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.result-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Metadata pills */
.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.metadata span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* Score Grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.score-grid > div {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.score-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.score-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #fff;
}

.score-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.score-bar-fill.risk-high {
  background: linear-gradient(90deg, #FF5252, #EA4C89);
  box-shadow: 0 0 10px rgba(234, 76, 137, 0.5);
}

.score-bar-fill.risk-med {
  background: linear-gradient(90deg, #FFB142, #FF793F);
}

.score-bar-fill.risk-low {
  background: linear-gradient(90deg, #00E676, #00D2FF);
}

.score-note {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

/* Findings */
.findings-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.finding {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.finding summary {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  user-select: none;
}

.finding summary::-webkit-details-marker {
  display: none;
}

.finding summary::after {
  content: "›";
  margin-left: auto;
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.finding[open] summary::after {
  transform: rotate(90deg);
  color: var(--pink);
}

.finding p {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.evidence {
  margin: 0 16px 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  white-space: pre-wrap;
  word-break: break-all;
}

.severity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.severity-critical {
  background: rgba(255, 82, 82, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 82, 82, 0.35);
}

.severity-high {
  background: rgba(234, 76, 137, 0.15);
  color: var(--pink);
  border: 1px solid rgba(234, 76, 137, 0.35);
}

.severity-medium {
  background: rgba(255, 177, 66, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(255, 177, 66, 0.35);
}

.severity-low {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.severity-info {
  background: rgba(157, 78, 221, 0.15);
  color: #bf8eff;
  border: 1px solid rgba(157, 78, 221, 0.35);
}

.limitations {
  margin-top: 16px;
  margin-bottom: 18px;
  background: rgba(255, 177, 66, 0.04);
  border: 1px solid rgba(255, 177, 66, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.limitations[open] {
  background: rgba(255, 177, 66, 0.07);
  border-color: rgba(255, 177, 66, 0.35);
  box-shadow: 0 4px 20px rgba(255, 177, 66, 0.08);
}

.limitations summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: color 0.2s ease;
}

.limitations summary::-webkit-details-marker {
  display: none;
}

.limitations-chevron {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--yellow);
}

.limitations[open] .limitations-chevron {
  transform: rotate(90deg);
}

.limitations-content {
  margin-top: 10px;
  animation: detailsFadeDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes detailsFadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.limitations p {
  font-size: 12px;
  color: #fed89a;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

.limitations p + p {
  margin-top: 6px;
}

/* Hash row */
.hash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.hash-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

/* Custom Copy Button with Smooth Spring */
.btn-custom-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-custom-copy svg {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.btn-custom-copy:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.5);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.btn-custom-copy:hover svg {
  transform: scale(1.18) rotate(-6deg);
  color: var(--cyan);
}

.btn-custom-copy:active {
  transform: translateY(0) scale(0.97);
}

.btn-custom-copy.copied {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.5);
  color: var(--green);
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.35);
}

.btn-custom-copy.copied svg {
  transform: scale(1.15) rotate(0deg);
  color: var(--green);
}

/* Task 4: Silky Smooth Custom Download Button */
.result-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-custom-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 76, 137, 0.18), rgba(157, 78, 221, 0.18));
  border: 1px solid rgba(234, 76, 137, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-custom-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 76, 137, 0.3), rgba(157, 78, 221, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-custom-download:hover::before {
  opacity: 1;
}

.btn-custom-download:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 22px rgba(234, 76, 137, 0.45), 0 0 14px rgba(157, 78, 221, 0.3);
}

.btn-custom-download svg {
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.btn-custom-download:hover svg {
  transform: scale(1.24) translateY(2px) rotate(-6deg);
  filter: drop-shadow(0 2px 8px rgba(234, 76, 137, 0.8));
}

.btn-custom-download:active svg {
  transform: scale(0.95) translateY(0);
}

/* Security notice banner */
.security-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 30px;
  line-height: 1.5;
}

.security-disclaimer svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  margin-top: 2px;
}
