/*
Theme Name: risk
Theme URI: https://www.chausdt.online/
Description: 风险查 - USDT及波场/以太坊地址风险查询与完整交易记录明细系统，支持 PC 端与手机端双端自适应与举报/申诉交互。
Version: 1.0
Author: Antigravity
Text Domain: risk
*/

:root {
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --teal-bg: #D9F7EF;
  --blue: #3B82F6;
  --blue-bg: #DBEAFE;
  --red: #EF4444;
  --red-dark: #DC2626;
  --red-bg: #FEE2E2;
  --orange: #F59E0B;
  --orange-bg: #FEF3C7;
  --purple: #8B5CF6;
  --purple-bg: #EDE9FE;
  --green: #059669;
  --green-bg: #D1FAE5;
  --ink: #1F2937;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Shared header dimensions and colors from templateUI/第四个站UI. */
header { display:flex; justify-content:center; padding:14px 32px; border-bottom:1px solid var(--line); background:#fff; }
.header-inner { width:100%; max-width:1160px; min-height:0; margin:0; padding:0; gap:20px; }
.logo { gap:10px; flex-shrink:0; }
.logo .mark { width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg, #F59E0B, #D97706); display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; }
.logo .logo-text { display:flex; flex-direction:column; line-height:1.15; }
.logo .name, .logo .logo-text .name { font-size:23px; font-weight:800; color:var(--ink); }
.header-right { gap:16px; flex-shrink:0; }
.lang-trigger { min-height:0; gap:8px; padding:8px 12px; border-radius:8px; color:var(--ink); font-size:13.5px; font-weight:400; transition:border-color .15s ease,background .15s ease; }
.lang-trigger:hover { border-color:#CBD5E1; background:var(--bg-soft); }
.lang-trigger .chev { font-size:10px; color:#9CA3AF; transition:transform .18s ease; }
.lang-select.open .lang-trigger .chev { transform:rotate(180deg); }
.lang-trigger .flag-emoji, .lang-option .flag-emoji { box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.lang-panel { width:230px; max-height:340px; padding:6px; border-radius:12px; box-shadow:0 16px 40px -12px rgba(16,24,40,.22); display:none; opacity:1; visibility:visible; transform:none; transition:none; z-index:60; }
.lang-select.open .lang-panel { display:block; }
.lang-option { min-height:0; gap:10px; padding:9px 10px; border-radius:8px; color:#2563EB; font-size:13.5px; }
.lang-option:hover { background:#F3F7FE; }
.lang-option.selected { color:#2563EB; background:#E8F1FE; }
.lang-option .check { color:#2563EB; font-size:13px; }
@media (max-width:600px) { header { padding:12px 16px; } .logo .mark { width:34px; height:34px; font-size:16px; } .logo .name, .logo .logo-text .name { font-size:20px; } }

/* Shared site header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo, .header-right, .back-link, .lang-trigger, .lang-option {
  display: flex;
  align-items: center;
}
.logo { gap: 9px; font-weight: 800; }

.logo .name { font-size: 20px; color: var(--ink); }
.header-right { gap: 16px; margin-left: auto; }
.back-link {
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.back-link:hover { color: var(--teal-dark); }
.lang-select { position: relative; }
.lang-trigger {
  min-height: 36px;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.lang-trigger:hover { border-color: var(--teal); }
.lang-trigger .chev { color: var(--muted); font-size: 10px; }
.lang-trigger .flag-emoji, .lang-option .flag-emoji {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  width: 158px;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.lang-select.open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.lang-option .lname { flex: 1; }
.lang-option .check { color: var(--teal-dark); opacity: 0; }
.lang-option.selected .check { opacity: 1; }
.lang-option:hover, .lang-option.selected { background: var(--teal-bg); color: var(--teal-dark); }

/* Global Toast */
.risk-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #EF4444;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}
.risk-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.risk-toast.success {
  background: #10B981;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}
.risk-toast.centered {
  top: 50%;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 22px;
  text-align: center;
  white-space: normal;
  line-height: 1.6;
}
.risk-toast.centered.show { transform: translateX(-50%) translateY(-50%); }

/* Modals */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 16px;
}
.modal-mask.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal-mask.open .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
#report-modal .modal-header { align-items: flex-start; margin-bottom: 14px; }
.report-modal-subtitle { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
#appeal-modal .modal-header, #extra-report-modal .modal-header { align-items: flex-start; margin-bottom: 14px; }
.modal-subtitle { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-close:hover {
  background: #E5E7EB;
}

/* Transaction hash detail modal matches the complete-record reference UI. */
#hash-modal {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: none;
  padding: 20px;
}
#hash-modal .modal-card {
  max-width: 520px;
  max-height: 86vh;
  padding: 28px 26px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: none;
}
#hash-modal.open .modal-card { transform: none; }
#hash-modal .modal-header { margin-bottom: 6px; }
#hash-modal .modal-title { font-size: 19px; }
#hash-modal .modal-header .modal-close { display: none; }
#hash-modal .hash-detail-body { padding-top: 6px; }
#hash-modal .hash-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
#hash-modal .hash-detail-row:last-child { border-bottom: 0; }
#hash-modal .hash-detail-key { flex-shrink: 0; color: var(--muted); font-size: 13.5px; }
#hash-modal .hash-detail-value { color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: right; word-break: break-all; }
#hash-modal .hash-detail-mono { font-family: var(--mono); }
#hash-modal .modal-actions { display: block; margin-top: 22px; }
#hash-modal .modal-actions .btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 14.5px;
}

/* Form controls */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* 移动端防聚焦缩放：iOS 在输入控件 font-size<16px 时聚焦会自动放大页面且不恢复 */
.form-select { font-size: 13.5px; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-input[readonly] {
  background: #F3F4F6;
  color: #6B7280;
  cursor: not-allowed;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.captcha-row {
  display: flex;
  gap: 10px;
}
.captcha-box {
  width: 110px;
  height: 38px;
  background: #E2E8F0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 4px;
  color: #1E293B;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  transition: all 0.15s ease;
}
.btn-secondary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  background: #E5E7EB;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
}
.modal-actions button:disabled { opacity: .65; cursor: wait; }
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
}

/* Lightbox Modal */
.lightbox-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 24px;
}
.lightbox-mask.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}
@media (max-width: 768px) {
  .lightbox-mask { padding: 12px; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
}

/* Evidence Thumbnails */
.evidence-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.evidence-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.evidence-thumb:hover {
  transform: scale(1.04);
  border-color: var(--teal);
}

/* Shared evidence and captcha controls for report-related forms. */
.report-form-modal .evidence-upload-panel {
  min-height: 128px;
  border: 1px dashed #A7E3DD;
  border-radius: 12px;
  background: #F5FCFB;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s ease, background .15s ease;
}
.report-form-modal .evidence-upload-panel:hover { border-color: var(--teal); background: #ECFDF9; }
.report-form-modal .evidence-upload-panel input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.report-form-modal .evidence-upload-panel svg { margin-bottom: 3px; }
.report-form-modal .evidence-upload-panel strong { color: var(--ink); font-size: 14px; }
.report-form-modal .evidence-upload-panel span { color: var(--muted); font-size: 13px; }
.report-form-modal .evidence-upload-panel .upload-status { display:none; color:var(--teal-dark); font-weight:700; }
.report-form-modal .evidence-upload-panel.is-uploading { cursor:progress; opacity:.78; pointer-events:none; }
.report-form-modal .evidence-upload-panel.is-uploading .upload-status { display:block; }
.report-form-modal .report-captcha-row { display: flex; align-items: center; gap: 10px; }
.report-form-modal .report-captcha-image {
  width: 115px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  background: repeating-linear-gradient(-18deg, #F8FAFC 0, #F8FAFC 7px, #EEF2F5 8px, #EEF2F5 9px);
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 5px;
  text-decoration: line-through;
  user-select: none;
}
.report-form-modal .captcha-refresh-button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.report-form-modal .captcha-refresh-button:hover { color: var(--teal-dark); border-color: var(--teal); }
.report-form-modal .report-captcha-row .form-input { height: 48px; min-width: 0; flex: 1; }
#report-modal .report-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; justify-content: stretch; }
#report-modal .report-modal-actions .btn { min-height: 50px; padding: 10px 16px; font-size: 15px; }
#report-modal .report-modal-actions .btn-red { background: #F43F46; }
#report-modal .report-modal-actions .btn-red:hover { background: #DC2626; }
@media (max-width: 768px) {
  .evidence-thumb { width: 56px; height: 56px; }
  .report-form-modal .report-captcha-row { gap: 8px; }
  .report-form-modal .report-captcha-image { width: 102px; }
  .report-form-modal .captcha-refresh-button { width: 44px; }
}

/* Risk detail pages follow the risk-detail reference layout. */
main.risk-detail-page { max-width: 900px; margin: 0 auto; padding: 36px 24px 70px; }
.risk-detail-page .warn-box { display:flex; gap:12px; align-items:flex-start; background:var(--red-bg); border:1px solid #FBC7C7; border-radius:14px; padding:16px 18px; margin-bottom:20px; }
.risk-detail-page .warn-box svg { color:var(--red); flex-shrink:0; margin-top:2px; }
.risk-detail-page .warn-box .t { font-size:13.5px; font-weight:700; color:#B91C1C; margin-bottom:3px; }
.risk-detail-page .warn-box .d { font-size:12.5px; color:#B91C1C; opacity:.85; line-height:1.6; }
.risk-detail-page .hero-card { margin-bottom:20px; box-shadow:none; }
.risk-detail-page .hero-top { margin-bottom:16px; }
.risk-detail-page .hero-time { display:flex; align-items:center; gap:5px; font-size:12.5px; color:rgba(255,255,255,.85); }
.risk-detail-page .hero-addr { font-size:17px; margin-bottom:14px; }
.risk-detail-page .stats-row { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-bottom:20px; }
.risk-detail-page .stat-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 12px; text-align:center; min-width:0; box-sizing:border-box; }
.risk-detail-page .stat-card .lb { font-size:11.5px; color:var(--muted); word-break:break-word; }
.risk-detail-page .stat-card .val { margin-top:4px; color:var(--ink); font-family:var(--mono); font-size:18px; font-weight:800; word-break:break-all; overflow-wrap:anywhere; line-height:1.25; }
.risk-detail-page .stat-card.warn .val { color:var(--red-dark); }
.risk-detail-page .panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px 26px; margin-bottom:18px; }
.risk-detail-page .panel h3 { display:flex; align-items:center; gap:8px; margin:0 0 16px; color:var(--ink); font-size:15px; font-weight:800; }
.risk-detail-page .panel h3 svg { color:var(--teal-dark); flex-shrink:0; }
.risk-detail-page .panel h3 .count { color:var(--muted); font-size:13px; font-weight:600; }
.risk-detail-page .detail-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 0; border-bottom:1px dashed var(--line); font-size:13.5px; }
.risk-detail-page .detail-row:last-child { border-bottom:0; }
.risk-detail-page .detail-row .k { color:var(--muted); flex-shrink:0; font-family:var(--sans); }
.risk-detail-page .detail-row .v { color:var(--ink); font-family:var(--mono); font-weight:700; text-align:right; word-break:break-all; }
.risk-detail-page .detail-row .v[data-tone="danger"] { color:#B91C1C; }
.risk-detail-page .detail-row .v[data-tone="safe"] { color:var(--teal-dark); }
.risk-detail-page .detail-row .v[data-tone="muted"] { color:var(--muted); }
.risk-detail-page .report-item { border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:12px; }
.risk-detail-page .report-item:last-child { margin-bottom:0; }
.risk-detail-page .report-item .rmeta { display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.risk-detail-page .report-badge { border-radius:999px; font-size:11.5px; font-weight:700; padding:3px 10px; }
.risk-detail-page .report-badge.fraud { background:var(--red-bg); color:var(--red-dark); }
.risk-detail-page .report-badge.theft { background:var(--purple-bg); color:var(--purple); }
.risk-detail-page .report-item .rtime { color:var(--muted); font-size:12px; }
.risk-detail-page .report-item .rdesc { color:var(--ink); font-size:13.5px; line-height:1.7; }
.risk-detail-page .report-item .ruser { color:#9CA3AF; font-size:12px; margin-top:8px; }
.risk-detail-page .report-item .evidence { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.risk-detail-page .report-item .evidence img { width:72px; height:72px; object-fit:cover; border:1px solid var(--line); border-radius:8px; cursor:pointer; transition:opacity .15s ease; }
.risk-detail-page .report-item .evidence img:hover { opacity:.85; }
.risk-detail-page .risk-supplement-panel p { margin:0 0 16px; color:var(--muted); font-size:13.5px; }
.risk-detail-page .risk-supplement-panel button { display:inline-flex; align-items:center; gap:6px; border:0; border-radius:9px; background:var(--red); color:#fff; font-size:13.5px; font-weight:700; padding:11px 22px; }
.risk-detail-page .risk-supplement-panel button:hover { background:var(--red-dark); }
@media (max-width: 680px) {
  main.risk-detail-page { padding:24px 16px 54px; }
  .risk-detail-page .stats-row { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .risk-detail-page .stat-card { padding:14px 8px; }
  .risk-detail-page .stat-card .val { font-size:16px; }
  .risk-detail-page .panel { padding:20px 18px; }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .header-inner { min-height: 58px; padding: 0 16px; gap: 10px; }
  .logo .logo-text .name { font-size: 19px; }
  .header-right { gap: 8px; }
  .back-link { font-size: 12px; }
  .lang-trigger { padding: 5px 7px; }
  #risk-lang-name, .lang-trigger .chev { display: none; }
  main { padding: 20px 14px 50px; }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--line);
  }
}

/* Keep the language switcher consistent with the HashCha template. */
.lang-select { position: relative; }
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 400;
  line-height: normal;
  transition: border-color .15s ease, background .15s ease;
}
.lang-trigger:hover { border-color: #CBD5E1; background: var(--bg-soft); }
.lang-trigger .flag-emoji, .lang-option .flag-emoji {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  flex-shrink: 0;
  display: block;
}
.lang-trigger .chev {
  display: inline;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, color .15s ease;
}
.lang-trigger:hover .chev, .lang-select.open .lang-trigger .chev { color: #000; }
.lang-select.open .lang-trigger .chev { transform: rotate(180deg); }
.lang-panel {
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 230px;
  max-height: 340px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .22);
  transform: none;
  transition: none;
}
.lang-select.open .lang-panel { display: block; opacity: 1; visibility: visible; transform: none; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #2563EB;
  font-size: 13.5px;
  line-height: normal;
  white-space: nowrap;
}
.lang-option:hover { background: #F3F7FE; }
.lang-option.selected { color: #2563EB; background: #E8F1FE; }
.lang-option .check { color: #2563EB; font-size: 13px; }
@media (max-width: 768px) {
  .lang-trigger { padding: 8px 12px; }
  #risk-lang-name, .lang-trigger .chev { display: inline; }
}

/* Use the homepage navigation spacing on every page at mobile sizes. */
@media (max-width: 600px) {
  header { padding: 12px 16px; }
  .header-inner { min-height: 0; padding: 0; gap: 20px; }
  .header-right { gap: 16px; }
  #risk-lang-name, .lang-trigger .chev { display: inline; }
}

/* Fixed header heights shared by the homepage and every detail page. */
header { min-height: 66px; }
@media (max-width: 768px) {
  .header-inner { min-height: 0; }
}
@media (max-width: 600px) {
  header { min-height: 58px; }
}
