/**
 * VSR Premium Upgrade Modal — Light Design
 * Clean, warm, premium. Works on all WP admin pages.
 */

/* ── Overlay ─────────────────────────────────────────────────────── */
.vsr-up-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .22s ease;
}
.vsr-up-overlay--in  { opacity: 1; }
.vsr-up-overlay--out { opacity: 0; pointer-events: none; }

/* ── Modal card ──────────────────────────────────────────────────── */
.vsr-up-modal {
  background: #ffffff;
  border: 1px solid #e5e0d8;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .03),
    0 4px 6px rgba(0, 0, 0, .04),
    0 24px 60px rgba(15, 23, 42, .18),
    0 8px 24px rgba(15, 23, 42, .10);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111827;
  outline: none;
  transform: translateY(12px) scale(.975);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}
.vsr-up-overlay--in .vsr-up-modal {
  transform: translateY(0) scale(1);
}

/* ── Header strip ────────────────────────────────────────────────── */
.vsr-up-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f0ece4;
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
  flex-shrink: 0;
}

/* Brand */
.vsr-up-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1208;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.vsr-up-brand em {
  font-style: normal;
  font-weight: 400;
}
.vsr-up-brand-eye {
  color: #f59e0b;
  flex-shrink: 0;
}
.vsr-up-brand-pro {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Pill badge */
.vsr-up-header-pill {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #fef9ec;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.01em;
}

/* Close button */
.vsr-up-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #ede9e3;
  background: #fafaf8;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
  flex-shrink: 0;
}
.vsr-up-close:hover {
  background: #f3f0eb;
  border-color: #ddd8d0;
  color: #374151;
}

/* ── Hero banner (non-scrolling) ─────────────────────────────────── */
.vsr-up-banner {
  position: relative;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f0ece4;
  background:
    radial-gradient(ellipse 70% 120% at 95% -10%, rgba(245,158,11,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 5% 110%, rgba(99,102,241,.04) 0%, transparent 55%),
    #fafaf8;
  flex-shrink: 0;
  overflow: hidden;
}

/* Decorative top-right glow orb */
.vsr-up-banner-deco {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}

.vsr-up-banner-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Left: headline + subtext + callout */
.vsr-up-banner-left { flex: 1; min-width: 0; }

.vsr-up-hero-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: #0f172a;
  margin: 0 0 8px;
}
.vsr-up-hero-title em {
  font-style: normal;
  font-weight: 800;
  color: #d97706;
}
.vsr-up-hero-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.65;
  max-width: 480px;
}

/* Triggered-feature callout */
.vsr-up-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 0 9px 9px 0;
  margin-top: 4px;
  max-width: 520px;
}
.vsr-up-callout-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.vsr-up-callout-text {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.5;
}
.vsr-up-callout-text strong { font-weight: 700; color: #92400e; }

/* Right: stats pills */
.vsr-up-banner-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ede9e3;
  border-radius: 12px;
  padding: 10px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.vsr-up-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px;
  text-align: center;
}
.vsr-up-stat-n {
  font-size: 22px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
  letter-spacing: -0.03em;
}
.vsr-up-stat-l {
  font-size: 9.5px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}
.vsr-up-stat-divider {
  width: 1px;
  height: 32px;
  background: #ede9e3;
  flex-shrink: 0;
}

/* ── Body: scrollable feature grid ──────────────────────────────── */
.vsr-up-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 16px;
  scrollbar-width: thin;
  scrollbar-color: #ddd8d0 transparent;
  background: #ffffff;
}
.vsr-up-body::-webkit-scrollbar { width: 5px; }
.vsr-up-body::-webkit-scrollbar-thumb { background: #ddd8d0; border-radius: 3px; }

/* Section label */
.vsr-up-grid-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin: 0 0 12px;
}

/* ── Feature grid ────────────────────────────────────────────────── */
.vsr-up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ── Feature card ────────────────────────────────────────────────── */
.vsr-up-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #ede9e3;
  background: #fafaf8;
  transition: background .14s, border-color .14s, transform .14s, box-shadow .14s;
  cursor: default;
}
.vsr-up-feat:hover {
  background: #f5f2ed;
  border-color: #ddd8d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15,23,42,.07);
}
.vsr-up-feat--active {
  background: #fffbee;
  border-color: #fde68a;
  border-left: 3px solid #f59e0b;
}
.vsr-up-feat--active:hover {
  background: #fff8e1;
  border-color: #fcd34d;
  box-shadow: 0 4px 14px rgba(245,158,11,.10);
}

.vsr-up-feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .14s;
}
.vsr-up-feat:hover .vsr-up-feat-icon { transform: scale(1.08); }

.vsr-up-feat-body { min-width: 0; }
.vsr-up-feat-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 3px;
}
.vsr-up-feat-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #84cc16, #22c55e);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.5;
  flex-shrink: 0;
}
.vsr-up-feat-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.vsr-up-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px 16px;
  border-top: 1px solid #f0ece4;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Trust signals */
.vsr-up-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vsr-up-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}
.vsr-up-trust-item svg {
  flex-shrink: 0;
  color: #10b981;
  opacity: .85;
}
.vsr-up-trust-item:first-child svg { color: #f59e0b; }
.vsr-up-trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

/* ── CTA button ──────────────────────────────────────────────────── */
.vsr-up-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #431407 !important;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 11px;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: filter .15s, transform .12s, box-shadow .15s;
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 4px 16px rgba(245,158,11,.35),
    0 1px 3px rgba(0,0,0,.1);
  white-space: nowrap;
  flex-shrink: 0;
}
.vsr-up-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 8px 24px rgba(245,158,11,.42),
    0 2px 6px rgba(0,0,0,.12);
  color: #431407 !important;
}
.vsr-up-cta:active {
  transform: translateY(0);
  filter: brightness(.98);
}
.vsr-up-cta svg { flex-shrink: 0; }

/* ── Responsive / mobile ─────────────────────────────────────────── */

/* Tablet: 2-column grid */
@media (max-width: 720px) {
  .vsr-up-grid { grid-template-columns: repeat(2, 1fr); }

  .vsr-up-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .vsr-up-banner-stats {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
  }
  .vsr-up-hero-title { font-size: 21px; }
}

/* Mobile: single column, compact layout */
@media (max-width: 480px) {
  .vsr-up-overlay { padding: 0; align-items: flex-end; }

  .vsr-up-modal {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(24px);
  }
  .vsr-up-overlay--in .vsr-up-modal { transform: translateY(0); }

  .vsr-up-grid { grid-template-columns: 1fr; }

  .vsr-up-banner { padding: 18px 16px 16px; }
  .vsr-up-hero-title { font-size: 19px; }
  .vsr-up-hero-sub { display: none; }

  .vsr-up-banner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .vsr-up-stat { padding: 8px 6px; }
  .vsr-up-stat-n { font-size: 18px; }

  .vsr-up-body { padding: 16px 14px 12px; }

  .vsr-up-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px 20px;
  }
  .vsr-up-trust {
    justify-content: center;
    gap: 8px;
  }
  .vsr-up-trust-dot { display: none; }
  .vsr-up-trust-item { font-size: 11px; }
  .vsr-up-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .vsr-up-header { padding: 12px 16px 10px; }
  .vsr-up-header-pill { display: none; }
}
