/* =============================================================
   MPYPCP — Verification skin (verification.html + iframe pages)
   Shared, modern, red/black brand. Mobile-first.
   ============================================================= */

:root {
  --vfy-red: #c62828;
  --vfy-red-dark: #9b1c1c;
  --vfy-red-deeper: #6b0d0d;
  --vfy-red-soft: #fff0f1;
  --vfy-ink: #1a1d24;
  --vfy-muted: #6b7280;
  --vfy-bg-soft: #f7f8fa;
  --vfy-border: #e6e6ea;
  --vfy-shadow: 0 4px 6px rgba(16, 24, 40, .04), 0 10px 24px rgba(0, 0, 0, .06);
  --vfy-shadow-hover: 0 14px 30px rgba(198, 40, 40, .18);
  --vfy-radius: 12px;
  --vfy-gold: #ffc107;
}

/* ---------- Page hero strip ---------- */
.vfy-hero {
  position: relative;
  background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
  color: #fff;
  padding: 34px 0 38px;
  border-bottom: 4px solid var(--vfy-red-deeper);
  overflow: hidden;
}

.vfy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255, 255, 255, .10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0, 0, 0, .18), transparent 60%);
  pointer-events: none;
}

.vfy-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3%;
}

.vfy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.vfy-hero__eyebrow i { font-size: 11px; color: var(--vfy-gold); }

.vfy-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
}

.vfy-hero__lead {
  font-size: 15px;
  line-height: 1.7;
  max-width: 820px;
  opacity: .92;
  margin: 0;
}

.vfy-hero__trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.vfy-hero__trust span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vfy-hero__trust i { color: var(--vfy-gold); font-size: 12px; }

/* ---------- Section wrapper (overlaps hero a bit) ---------- */
.vfy-section {
  max-width: 1400px;
  margin: -22px auto 50px;
  padding: 0 3%;
  position: relative;
  z-index: 2;
}

.vfy-card-wrap {
  background: #fff;
  border-radius: var(--vfy-radius);
  padding: 36px 30px;
  box-shadow: var(--vfy-shadow);
}

/* ---------- Cards grid (verification.html) ---------- */
.vfy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.vfy-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--vfy-border);
  border-radius: var(--vfy-radius);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.vfy-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vfy-red), var(--vfy-red-dark));
}

.vfy-card:hover,
.vfy-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--vfy-shadow-hover);
  border-color: rgba(198, 40, 40, .28);
}

.vfy-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--vfy-red-soft);
  color: var(--vfy-red);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform .25s ease;
}

.vfy-card:hover .vfy-card__icon { transform: scale(1.06) rotate(-3deg); }

.vfy-card h2 {
  font-size: 17px;
  color: var(--vfy-ink);
  margin: 0 0 8px;
  line-height: 1.3;
  font-weight: 700;
}

.vfy-card p {
  color: var(--vfy-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex-grow: 1;
}

.vfy-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--vfy-red), var(--vfy-red-dark));
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, gap .2s ease;
  box-shadow: 0 4px 12px rgba(198, 40, 40, .25);
}

.vfy-card__btn:hover,
.vfy-card__btn:focus-visible {
  transform: translateY(-1px);
  gap: 12px;
  box-shadow: 0 8px 22px rgba(198, 40, 40, .38);
  color: #fff;
  outline: none;
}

.vfy-card__btn i { transition: transform .2s ease; }
.vfy-card:hover .vfy-card__btn i { transform: translateX(2px); }

/* ---------- Help / info strip ---------- */
.vfy-help {
  margin-top: 24px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e0 100%);
  border-left: 4px solid var(--vfy-gold);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--vfy-ink);
}

.vfy-help a { color: var(--vfy-red); font-weight: 700; text-decoration: none; }
.vfy-help a:hover { text-decoration: underline; }
.vfy-help i { color: #c8a200; margin-right: 6px; }

/* ---------- Back link (iframe pages) ---------- */
.vfy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vfy-red);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 14px;
  padding: 6px 0;
  transition: gap .2s ease, color .2s ease;
}

.vfy-back:hover { gap: 10px; color: var(--vfy-red-dark); text-decoration: none; }
.vfy-back i { font-size: 11px; }

/* ---------- Iframe portal card ---------- */
.vfy-portal {
  background: #fff;
  border: 1px solid var(--vfy-border);
  border-radius: var(--vfy-radius);
  overflow: hidden;
  box-shadow: var(--vfy-shadow);
}

.vfy-portal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1d24 0%, #2a2d34 100%);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 3px solid var(--vfy-red);
}

.vfy-portal__bar .lock { color: #6ee7b7; }

.vfy-portal__bar .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  opacity: .9;
  font-size: 12px;
  background: rgba(255, 255, 255, .07);
  padding: 4px 10px;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vfy-portal__bar a.open-ext {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vfy-red);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}

.vfy-portal__bar a.open-ext:hover {
  background: var(--vfy-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.vfy-portal__frame {
  position: relative;
  background: var(--vfy-bg-soft);
  min-height: 600px;
}

.vfy-portal__frame iframe {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
  display: block;
  background: var(--vfy-bg-soft);
}

.vfy-portal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--vfy-muted);
  pointer-events: none;
  font-size: 13px;
}

.vfy-portal__loading .spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #e6e6ea;
  border-top-color: var(--vfy-red);
  animation: vfy-spin 1s linear infinite;
}

@keyframes vfy-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .vfy-hero { padding: 26px 0 30px; }
  .vfy-hero__lead { font-size: 14px; }
  .vfy-card-wrap { padding: 22px 16px; }
  .vfy-section { margin-top: -16px; margin-bottom: 36px; }
  .vfy-portal__bar { flex-wrap: wrap; }
  .vfy-portal__bar .url { order: 3; flex: 1 0 100%; margin-top: 4px; }
  .vfy-portal__bar a.open-ext { margin-left: auto; }
  .vfy-portal__frame,
  .vfy-portal__frame iframe { min-height: 520px; }
  .vfy-portal__frame iframe { height: 72vh; }
}

@media (max-width: 380px) {
  .vfy-hero__trust { gap: 6px; }
  .vfy-hero__trust span { font-size: 12px; padding: 5px 10px; }
}
