/* GasShield — In-Page HUD Interceptor Styles */

#gasshield-overlay-container {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#gasshield-overlay-container.gasshield-active {
  opacity: 1;
  pointer-events: auto;
}

.gasshield-modal-card {
  width: 92%;
  max-width: 460px;
  background: linear-gradient(145deg, #0d121f 0%, #06080e 100%);
  border: 1px solid rgba(0, 245, 155, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 245, 155, 0.18);
  padding: 24px;
  color: #f1f5f9;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

#gasshield-overlay-container.gasshield-active .gasshield-modal-card {
  transform: scale(1) translateY(0);
}

/* Header */
.gasshield-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gasshield-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gasshield-shield-icon {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.25) 0%, rgba(0, 245, 155, 0.05) 70%);
  border: 1px solid #00f59b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.3);
}

.gasshield-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.gasshield-title-wrap p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.gasshield-intercept-badge {
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.4);
  color: #00f59b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Q-HOM Inviolable Security Sentinel Banner */
.gasshield-security-status {
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 245, 155, 0.3);
  background: rgba(0, 245, 155, 0.05);
  transition: all 0.25s ease;
}

.gasshield-security-status.safe-airtight {
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  border-color: rgba(0, 245, 155, 0.35);
}

.gasshield-security-status.threat-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 88, 12, 0.06) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.gasshield-security-status.threat-critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.1) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  animation: pulse-danger 2s infinite alternate;
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
}

.gs-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gs-sec-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gs-sec-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f8fafc;
}

.gs-sec-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gs-sec-badge.badge-safe {
  background: rgba(0, 245, 155, 0.15);
  color: #00f59b;
  border: 1px solid rgba(0, 245, 155, 0.4);
}

.gs-sec-badge.badge-caution {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.gs-sec-badge.badge-threat {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid #ef4444;
}

.gs-sec-details {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Target details */
.gasshield-target-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gasshield-action-name {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gasshield-target-addr {
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Big Savings Hero */
.gasshield-savings-hero {
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(0, 245, 155, 0.45);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.gasshield-savings-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.gasshield-hero-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a7f3d0;
  margin-bottom: 4px;
}

.gasshield-hero-value {
  font-size: 26px;
  font-weight: 800;
  color: #00f59b;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(0, 245, 155, 0.4);
}

.gasshield-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Comparison Grid */
.gasshield-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.gasshield-compare-col {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gasshield-compare-col.vanilla {
  border-color: rgba(239, 68, 68, 0.25);
}

.gasshield-compare-col.shielded {
  border-color: rgba(0, 245, 155, 0.35);
  background: rgba(0, 245, 155, 0.03);
}

.gasshield-col-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.vanilla .gasshield-col-tag { color: #f87171; }
.shielded .gasshield-col-tag { color: #34d399; }

.gasshield-col-price {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.gasshield-col-detail {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Mode Switcher Tabs */
.gasshield-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.gasshield-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gasshield-mode-btn.active {
  background: #1e293b;
  color: #00f59b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Transparent Protocol Fee & Net Savings Bar */
.gasshield-fee-breakdown {
  background: rgba(0, 245, 155, 0.05);
  border: 1px solid rgba(0, 245, 155, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 11.5px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  margin-bottom: 2px;
}

.fee-row.profit-row {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 4px;
  margin-top: 4px;
}

.fee-val {
  color: #cbd5e1;
  font-weight: 600;
}

.profit-val {
  color: #00f59b;
  font-weight: 800;
  font-size: 13px;
}

/* Action Buttons */
.gasshield-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gasshield-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #00f59b 0%, #00c77d 100%);
  border: none;
  border-radius: 12px;
  color: #05080e;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 245, 155, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gasshield-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 245, 155, 0.45);
}

.gasshield-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gasshield-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gasshield-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.gasshield-btn-cancel {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gasshield-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}
