/**
 * VSR License Page Styles
 */

/* ── Page shell ───────────────────────────────────────────────────── */
.vsr-license-wrap {
  min-height: 100vh;
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vsr-lic-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ── Upgrade hero ─────────────────────────────────────────────────── */
.vsr-lic-hero {
  text-align: center;
  padding: 56px 32px 52px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(67,56,202,.28);
  position: relative;
  overflow: hidden;
}

.vsr-lic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(250,204,21,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(167,139,250,.15) 0%, transparent 55%);
  pointer-events: none;
}

.vsr-lic-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(250,204,21,.15);
  border: 1px solid rgba(250,204,21,.35);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.vsr-lic-hero-title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vsr-lic-hero-sub {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 15px;
  color: #c7d2fe;
  line-height: 1.6;
}

/* ── Upgrade button ───────────────────────────────────────────────── */
.vsr-lic-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(217,119,6,.40), inset 0 1px 0 rgba(255,255,255,.18);
  transition: opacity .15s, transform .15s, box-shadow .15s;
  position: relative;
}

.vsr-lic-upgrade-btn:hover {
  opacity: .93;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,.50), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}

.vsr-lic-upgrade-btn:active {
  transform: translateY(0);
}

/* ── Feature grid ─────────────────────────────────────────────────── */
.vsr-lic-features {
  margin-bottom: 48px;
}

.vsr-lic-features-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.vsr-lic-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vsr-lic-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: box-shadow .15s, border-color .15s;
}

.vsr-lic-feat-item:hover {
  border-color: #fde68a;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.vsr-lic-feat-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.vsr-lic-feat-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsr-lic-feat-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.vsr-lic-feat-text span {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* ── License key card ────────────────────────────────────────────── */
.vsr-lic-key-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 36px;
}

.vsr-lic-key-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.vsr-lic-key-hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #6b7280;
}

.vsr-lic-key-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vsr-lic-key-input {
  flex: 1;
  min-width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: monospace;
  outline: none;
  transition: border-color .15s;
}
.vsr-lic-key-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

.vsr-lic-activate-btn,
.vsr-lic-redownload-btn,
.vsr-lic-deactivate-btn {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.vsr-lic-activate-btn   { background: #6366f1; color: #fff; }
.vsr-lic-activate-btn:hover   { background: #4f46e5; }
.vsr-lic-redownload-btn { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.vsr-lic-redownload-btn:hover { background: #e5e7eb; }
.vsr-lic-deactivate-btn { background: #fff; color: #ef4444; border: 1px solid #fca5a5; margin-left: 8px; }
.vsr-lic-deactivate-btn:hover { background: #fef2f2; }
button:disabled { opacity: .55; cursor: not-allowed; }

.vsr-lic-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
}
.vsr-lic-msg--ok  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.vsr-lic-msg--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.vsr-lic-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #374151;
}
.vsr-lic-status--active .vsr-lic-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.vsr-lic-key-masked { font-family: monospace; color: #6b7280; }

/* ── Bottom CTA ───────────────────────────────────────────────────── */
.vsr-lic-bottom-cta {
  text-align: center;
  padding-top: 8px;
}

.vsr-lic-bottom-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #9ca3af;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .vsr-lic-body          { padding: 24px 16px 56px; }
  .vsr-lic-hero          { padding: 40px 20px 36px; }
  .vsr-lic-hero-title    { font-size: 22px; }
  .vsr-lic-upgrade-btn   { width: 100%; justify-content: center; }
  .vsr-lic-feat-grid     { grid-template-columns: 1fr; }
}
