/* ============================================================
   THOR AUDIT AI — Premium Modal CSS
   ============================================================ */

.thor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.thor-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.thor-modal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 0;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,158,11,0.1);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.thor-modal-overlay.open .thor-modal {
  transform: scale(1) translateY(0);
}

/* Top accent stripe */
.thor-modal::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--thor-gold, #f59e0b), transparent);
}

/* Ambient glow */
.thor-modal::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.thor-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9eb7;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 2;
}

.thor-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #f0f4f8;
  transform: scale(1.1);
}

/* ── MODAL HEADER ───────────────────────────────────────────── */
.thor-modal-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.thor-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--thor-gold, #f59e0b);
  margin-bottom: 10px;
}

.thor-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #f0f4f8;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-right: 40px;
}

.thor-modal-header p {
  font-size: 14px;
  color: #8b9eb7;
  margin: 0;
  line-height: 1.6;
}

/* ── MODAL BODY ─────────────────────────────────────────────── */
.thor-modal-body {
  padding: 24px 32px;
}

/* Feature list */
.thor-modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.thor-modal-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #8b9eb7;
  line-height: 1.4;
}

.thor-modal-feature .ok {
  color: #22c55e;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Price box */
.thor-modal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  margin-bottom: 16px;
}

.thor-modal-price__label {
  font-size: 13px;
  font-weight: 600;
  color: #8b9eb7;
}

.thor-modal-price__val {
  font-size: 28px;
  font-weight: 900;
  color: #f0f4f8;
  letter-spacing: -0.03em;
  line-height: 1;
}

.thor-modal-price__sub {
  font-size: 12px;
  color: #4b5a6e;
  margin-top: 2px;
  text-align: right;
}

/* Auditor card */
.thor-modal-auditor {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 20px;
}

.thor-modal-auditor__icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.thor-modal-auditor__info {
  flex: 1;
}

.thor-modal-auditor__name {
  font-size: 14px;
  font-weight: 700;
  color: #f0f4f8;
  margin-bottom: 3px;
}

.thor-modal-auditor__meta {
  font-size: 11px;
  color: #4b5a6e;
  line-height: 1.5;
}

.thor-modal-auditor__meta strong {
  color: var(--thor-gold, #f59e0b);
}

/* ── MODAL FOOTER ───────────────────────────────────────────── */
.thor-modal-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.thor-modal-cta {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  background-size: 200% auto;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.thor-modal-cta:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(245,158,11,0.55);
  transform: translateY(-1px);
}

.thor-modal-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.thor-modal-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #4b5a6e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .thor-modal { border-radius: 16px; margin: 0 8px; }
  .thor-modal-header,
  .thor-modal-body { padding: 20px; }
  .thor-modal-footer { padding: 16px 20px 24px; }
  .thor-modal-features { grid-template-columns: 1fr; }
}
