/* MetaImageUp — Custom overrides on top of Bootstrap 5.3.8 */

/* ── Brand / Navbar ─────────────────────────────────────── */
.bg-mi-dark { background-color: #0d1b2a; }

.nav-pill { border-radius: 6px; transition: background 0.15s; }
.nav-pill:hover { background: rgba(255,255,255,0.08) !important; }

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e40af 60%, #6d28d9 100%);
  padding: 5rem 0;
}
.hero-shield { font-size: 4rem; opacity: 0.85; }
.hero-sub { max-width: 620px; opacity: 0.9; font-size: 1.1rem; }

/* ── Section labels ────────────────────────────────────── */
.section-label { letter-spacing: 0.08em; }

/* ── Step cards ────────────────────────────────────────── */
.step-card { transition: transform 0.15s, box-shadow 0.15s; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important; }
.step-card-active { border-top: 3px solid #0d6efd !important; }

.step-number {
  width: 2rem; height: 2rem; line-height: 2rem;
  background: #e7f0ff; color: #0d6efd;
  border-radius: 50%; font-weight: 700; font-size: 0.85rem;
  text-align: center;
}
.step-number-active { background: #0d6efd; color: #fff; }

/* ── Security layer cards ──────────────────────────────── */
.layer-card { border-top: 3px solid transparent; }
.layer-card-primary { border-top-color: #0d6efd !important; }
.layer-card-success  { border-top-color: #198754 !important; }
.layer-card-warning  { border-top-color: #ffc107 !important; }
.layer-card-danger   { border-top-color: #dc3545 !important; }

.layer-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Use case pills ────────────────────────────────────── */
.use-case-pill {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: 50px; padding: 0.5rem 1.25rem;
  font-size: 0.9rem; display: inline-flex; align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.use-case-pill:hover { border-color: #0d6efd; box-shadow: 0 2px 8px rgba(13,110,253,0.12); }

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero { background: #f8f9fa; }
.page-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Drop zone ─────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 3.5rem 2rem;
  text-align: center;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #0d6efd;
  background: #eff6ff;
}
.drop-zone.drag-over { transform: scale(1.01); }
.drop-zone-icon { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.drop-title { font-size: 1.1rem; }

/* ── Key textarea ──────────────────────────────────────── */
.key-textarea {
  width: 100%;
  height: 160px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  resize: none;
  color: #212529;
}
.key-card-private { border-top: 3px solid #dc3545 !important; }
.key-card-public  { border-top: 3px solid #198754 !important; }

/* ── Monospace form control ────────────────────────────── */
.mono {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
}

/* ── Preview canvas ────────────────────────────────────── */
.preview-canvas { max-width: 280px; max-height: 200px; object-fit: contain; }

/* ── Sign status ───────────────────────────────────────── */
.sign-status { font-size: 0.85rem; color: #6c757d; min-height: 1.4em; }

/* ── Manifest labels ───────────────────────────────────── */
.manifest-label {
  font-size: 0.72rem;
  color: #6c757d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.manifest-value { font-size: 0.9rem; color: #212529; }

/* ── Verdict card ──────────────────────────────────────── */
.verdict-card {
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 3px solid;
}
.verdict-icon-wrap { font-size: 3.5rem; line-height: 1; }
.verdict-title { font-size: 1.75rem; letter-spacing: 0.02em; }

.verdict-authentic         { background: #f0fdf4; border-color: #86efac; }
.verdict-authentic         .verdict-title { color: #16a34a; }

.verdict-likely_screenshot { background: #fffbeb; border-color: #fde68a; }
.verdict-likely_screenshot .verdict-title { color: #d97706; }

.verdict-modified,
.verdict-tampered          { background: #fef2f2; border-color: #fca5a5; }
.verdict-modified  .verdict-title,
.verdict-tampered  .verdict-title { color: #dc2626; }

.verdict-unsigned,
.verdict-unknown           { background: #f8f9fa; border-color: #dee2e6; }
.verdict-unsigned  .verdict-title,
.verdict-unknown   .verdict-title { color: #6c757d; }

/* ── Check cards ───────────────────────────────────────── */
.check-pass { background: #f0fdf4 !important; border-top: 3px solid #86efac !important; }
.check-fail { background: #fef2f2 !important; border-top: 3px solid #fca5a5 !important; }
.check-warn { background: #fffbeb !important; border-top: 3px solid #fde68a !important; }

/* ── Language switcher ─────────────────────────────────── */
.lang-btn {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  transition: color 0.15s;
}
.lang-btn:hover { color: #fff; }
.lang-btn-active { color: #fff !important; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid #dee2e6; }

/* ── Workflow progress steps ───────────────────────────── */
.workflow-steps { flex-wrap: wrap; }
.workflow-step {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.85rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  background: #f1f5f9; color: #64748b;
  text-decoration: none;
}
.workflow-step.active { background: #0d6efd; color: #fff; }
.workflow-step.done   { background: #dcfce7; color: #16a34a; }
.workflow-step.done:hover { background: #bbf7d0; }

/* ── Use case cards (index page grid) ──────────────────── */
.use-case-card {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: 12px; padding: 1.5rem;
  height: 100%;
}
.use-case-card:hover { border-color: #0d6efd; box-shadow: 0 4px 16px rgba(13,110,253,0.08); }

/* ── Verdict guide cards (index page) ──────────────────── */
.verdict-guide-card {
  background: #fff; border-radius: 10px;
  padding: 1.25rem; border: 1px solid #dee2e6;
  height: 100%;
}

/* ── Hero trust badges ─────────────────────────────────── */
.hero-trust-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 0.3rem 0.85rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center;
}

/* ── Sponsor list cards (index page) ───────────────────── */
.sponsor-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sponsor-card:hover {
  border-color: #c9f0ff;
  box-shadow: 0 4px 16px rgba(220,38,38,0.08);
}
.sponsor-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #9f1239);
  color: #fff;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sponsor-amount-pill {
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Sponsor floating tab ──────────────────────────────── */
.sponsor-tab {
  position: fixed;
  right: 17px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: right center;
  background: linear-gradient(135deg, #dc2626, #9f1239);
  color: #fff;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  z-index: 1040;
  box-shadow: -2px 0 12px rgba(0,0,0,0.18);
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.sponsor-tab:hover {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  box-shadow: -2px 0 18px rgba(0,0,0,0.28);
  color: #fff;
}

/* ── Sponsor canvas ────────────────────────────────────── */
.sponsor-canvas {
  border-left: 3px solid #dc2626;
}
.sponsor-canvas .offcanvas-header {
  background: linear-gradient(135deg, #fff0f0, #fff);
}

/* ── Sponsor why box ────────────────────────────────────── */
.sponsor-why-box {
  background: #f8faff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.9rem;
}

/* ── Amount preset grid ─────────────────────────────────── */
.sponsor-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.sponsor-amount-btn {
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.sponsor-amount-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff0f0;
}
.sponsor-amount-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ── Step icon circle ────────────────────────────────────── */
.sponsor-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── IBAN bank card ──────────────────────────────────────── */
.sponsor-bank-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
}
.sponsor-bank-card-header {
  background: #0d1b2a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
}
.sponsor-amount-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.85rem;
}
.sponsor-bank-body {
  padding: 0.5rem 0;
}
.sponsor-bank-row {
  display: flex;
  align-items: baseline;
  padding: 0.35rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.82rem;
}
.sponsor-bank-row:last-child { border-bottom: none; }
.sponsor-bank-label {
  color: #6c757d;
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sponsor-bank-value {
  color: #212529;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  word-break: break-all;
}
.sponsor-bank-note {
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-top: 1px solid #dee2e6;
}

/* ── Vault / Library grid ──────────────────────────────── */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.vault-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vault-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13,110,253,0.10);
}
.vault-thumb-wrap {
  position: relative;
  height: 130px;
  background: #f1f5f9;
  overflow: hidden;
}
.vault-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vault-status-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
}
.vault-card-body { padding: 0.65rem; }
.vault-title {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}
.vault-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}
.vault-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}
.vault-size,
.vault-date { font-size: 0.72rem; }
.vault-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.vault-actions .btn { font-size: 0.72rem; padding: 0.18rem 0.4rem; }

/* ── Vault card selection ────────────────────────────────── */
.vault-card.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

/* Checkbox overlay — always visible, gets stronger on hover/selected */
.vault-select-check {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.75);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.vault-select-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #0d6efd;
  margin: 0;
}
.vault-card:hover .vault-select-check {
  background: rgba(255,255,255,0.95);
  border-color: #0d6efd;
}
.vault-card.selected .vault-select-check {
  background: #0d6efd;
  border-color: #0d6efd;
}
.vault-card.selected .vault-select-check input[type="checkbox"] {
  accent-color: #fff;
}

/* ── Selection action bar ────────────────────────────────── */
.selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1b2a;
  padding: 0.65rem 0;
  z-index: 1030;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  border-top: 2px solid #0d6efd;
}
/* Make the clear-selection X button clearly visible */
.selection-bar .btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.selection-bar .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-section { padding: 3rem 0; }
  .hero-shield  { font-size: 2.75rem; }
  .verdict-card { padding: 1.75rem 1rem; }
  .verdict-title { font-size: 1.4rem; }
  .preview-canvas { max-width: 100%; }
}
