/* Upgrade sheet (shared). Works in the 360px side panel and on full pages. */

.pro-sheet {
  width: min(420px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xl);
  overflow: auto;
  font: 13px/1.5 var(--font);
}
.pro-sheet[open] { animation: pro-in 0.32s var(--ease); }
.pro-sheet::backdrop {
  background: rgba(8, 9, 14, 0.42);
  backdrop-filter: blur(6px);
  animation: pro-fade 0.2s ease;
}
@keyframes pro-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@keyframes pro-fade { from { opacity: 0; } }

.pro-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s;
}
.pro-close:hover { background: rgba(255, 255, 255, 0.28); }
.pro-close svg { width: 18px; height: 18px; }

.pro-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 28px;
  background: var(--pro);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.pro-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(closest-side at 75% 60%, rgba(110, 104, 255, 0.55), transparent),
    radial-gradient(closest-side at 40% 85%, rgba(255, 176, 140, 0.5), transparent);
  filter: blur(20px);
  animation: pro-drift 12s ease-in-out infinite alternate;
}
@keyframes pro-drift {
  to { transform: translate(6%, -4%) rotate(12deg); }
}
.pro-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.pro-mark svg { width: 28px; height: 28px; }
.pro-hero h2 {
  margin: 0 0 8px;
  font: 700 24px/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.pro-hero h2 span {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}
.pro-reason { margin: 0 auto; max-width: 300px; opacity: 0.92; font-size: 13px; }

.pro-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }

.pro-features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pro-features li { display: flex; align-items: flex-start; gap: 12px; }
.pro-features li > span:last-child { display: flex; flex-direction: column; }
.pro-features b { font-weight: 600; }
.pro-features small { color: var(--text-2); font-size: 12px; }
.pro-ficon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pro-ficon svg { width: 18px; height: 18px; }

.pro-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pro-cta small { color: var(--text-3); font-size: 12px; }
.pro-buy {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--pro);
  color: #fff;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(76, 91, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s var(--ease), filter 0.15s;
}
.pro-buy:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.pro-buy:disabled { cursor: default; opacity: 0.75; }

.pro-owned {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  font-weight: 600;
}
.pro-owned svg { width: 18px; height: 18px; }

.pro-license summary {
  color: var(--text-2);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.pro-license summary::-webkit-details-marker { display: none; }
.pro-license summary:hover { color: var(--text); }
.pro-form { display: flex; gap: 8px; margin-top: 12px; }
.pro-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background: var(--fill);
  color: var(--text);
  font: 500 13px/1 var(--font-mono);
}
.pro-form input:focus { box-shadow: 0 0 0 2px var(--accent); }
.pro-form button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font: 600 13px/1 var(--font);
  cursor: pointer;
}
.pro-msg { min-height: 18px; margin: 8px 0 0; color: var(--text-2); font-size: 12px; text-align: center; }
.pro-msg.ok { color: var(--success); }
.pro-msg.err { color: var(--danger); }

.pro-dev {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.pro-dev input { accent-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .pro-glow { animation: none; }
}
