:root {
  --trust-bg: #0b0718;
  --trust-panel-soft: #211638;
  --trust-border: rgba(255, 255, 255, 0.12);
  --trust-text: #f8f5ff;
  --trust-muted: #bdb5ce;
  --trust-purple: #9d68ff;
  --trust-purple-dark: #6f39d9;
  --trust-green: #52d6a5;
  --trust-amber: #ffc96b;
}

body.eth-trust-modal-open { overflow: hidden; }

.eth-trust-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 2, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eth-trust-backdrop.is-visible { display: flex; }

.eth-trust-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 40px));
  overflow: hidden;
  color: var(--trust-text);
  background: radial-gradient(circle at 8% 0%, rgba(157, 104, 255, 0.24), transparent 32%), linear-gradient(145deg, #1a102f 0%, var(--trust-bg) 58%);
  border: 1px solid var(--trust-border);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
  font-family: Inter, Roboto, Arial, sans-serif;
}

.eth-trust-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: var(--trust-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.eth-trust-content { overflow: auto; padding: 26px 28px 18px; }

.eth-trust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 7px 11px;
  color: #d9fff2;
  background: rgba(82, 214, 165, 0.12);
  border: 1px solid rgba(82, 214, 165, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eth-trust-title {
  max-width: 760px;
  margin: 0;
  color: var(--trust-text);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.08;
}

.eth-trust-lead {
  max-width: 820px;
  margin: 8px 0 16px;
  color: var(--trust-muted);
  font-size: 16px;
  line-height: 1.45;
}

.eth-trust-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 13px;
  background: rgba(157, 104, 255, 0.09);
  border: 1px solid rgba(157, 104, 255, 0.28);
  border-radius: 16px;
}

.eth-trust-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #e8ddff;
  background: rgba(157, 104, 255, 0.25);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}
.eth-trust-alert strong { display: inline; margin-right: 6px; color: #e8ddff; }
.eth-trust-alert p { display: inline; margin: 0; color: #d8cfbe; line-height: 1.45; }
.eth-trust-alert a, .eth-trust-proof a { color: #c9aaff; font-weight: 700; }

.eth-trust-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eth-trust-video-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--trust-border);
  border-radius: 14px;
}

.eth-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.eth-trust-video-shell, .eth-trust-proof {
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--trust-border);
  border-radius: 18px;
}

.eth-trust-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 13px;
}

.eth-trust-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.eth-trust-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(11, 7, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.eth-trust-sound:hover, .eth-trust-sound:focus-visible { background: var(--trust-purple-dark); }

.eth-trust-video-meta { min-height: 54px; padding: 9px 11px; }
.eth-trust-video-meta strong { display: block; margin-bottom: 2px; font-size: 13px; line-height: 1.3; }
.eth-trust-video-meta span { display: block; overflow: hidden; color: var(--trust-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.eth-trust-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.eth-trust-video-choice {
  padding: 11px 12px;
  color: var(--trust-muted);
  text-align: left;
  background: var(--trust-panel-soft);
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
}

.eth-trust-video-choice strong, .eth-trust-video-choice span { display: block; }
.eth-trust-video-choice strong { margin-bottom: 3px; color: var(--trust-text); font-size: 13px; }
.eth-trust-video-choice span { font-size: 11px; }
.eth-trust-video-choice.is-active { background: rgba(157, 104, 255, 0.16); border-color: var(--trust-purple); }

.eth-trust-proof h3 { margin: 0 0 13px; font-size: 18px; }
.eth-trust-checklist { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }

.eth-trust-checklist li {
  position: relative;
  padding-left: 25px;
  color: var(--trust-muted);
  font-size: 14px;
  line-height: 1.48;
}

.eth-trust-checklist li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--trust-green);
  content: "✓";
  font-weight: 900;
}

.eth-trust-address {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  padding: 7px 9px;
  color: #e7ddff;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eth-trust-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }

.eth-trust-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #c8f6e5;
  font-size: 12px;
  font-weight: 700;
}

.eth-trust-proof-strip a { color: #c8f6e5; text-decoration: none; }

.eth-trust-link, .eth-trust-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.eth-trust-link { color: var(--trust-text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--trust-border); }

.eth-trust-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 16px;
  padding: 13px 28px;
  background: rgba(11, 7, 24, 0.98);
  border-top: 1px solid var(--trust-border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.eth-trust-footer-note { max-width: 600px; color: #968da8; font-size: 12px; line-height: 1.45; }

.eth-trust-action {
  min-width: 230px;
  color: #fff;
  background: linear-gradient(135deg, var(--trust-purple), var(--trust-purple-dark));
  border: 0;
  box-shadow: 0 8px 24px rgba(111, 57, 217, 0.32);
  cursor: pointer;
}

.eth-trust-action:hover, .eth-trust-action:focus-visible { filter: brightness(1.1); }

@media (max-width: 780px) {
  .eth-trust-backdrop { align-items: flex-end; padding: 0; }
  .eth-trust-modal { max-height: 94vh; border-radius: 22px 22px 0 0; }
  .eth-trust-content { padding: 22px 16px 14px; }
  .eth-trust-grid { grid-template-columns: 1fr; }
  .eth-trust-footer { padding: 12px 16px; }
  .eth-trust-footer-note { display: none; }
  .eth-trust-action { width: 100%; }
}

@media (max-width: 480px) {
  .eth-trust-video-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .eth-trust-video-card { flex: 0 0 82%; scroll-snap-align: start; }
  .eth-trust-title { padding-right: 36px; }
}
