/* NexusId v2 — live site + shared styles (preview.css) */

:root {
  --pv2-bg: #050506;
  --pv2-surface: rgba(14, 14, 18, 0.85);
  --pv2-surface-2: rgba(20, 20, 26, 0.9);
  --pv2-line: rgba(255, 255, 255, 0.08);
  --pv2-line-strong: rgba(255, 255, 255, 0.12);
  --pv2-text: #f4f4f5;
  --pv2-muted: #8b8b96;
  --pv2-green: #34d399;
  --pv2-green-2: #2dd4bf;
  --pv2-amber: #fbbf24;
  --pv2-red: #f87171;
  --pv2-font: "Space Grotesk", system-ui, sans-serif;
  --pv2-mono: "IBM Plex Mono", monospace;
  --pv2-radius: 16px;
  --pv2-header-h: 68px;
  --pv2-ribbon-h: 40px;
}

* { box-sizing: border-box; }

html, body.pv2 {
  margin: 0;
  min-height: 100%;
  background: var(--pv2-bg);
  color: var(--pv2-text);
  font-family: var(--pv2-font);
  -webkit-font-smoothing: antialiased;
}

body.pv2 {
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(52, 211, 153, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(45, 212, 191, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--pv2-bg);
}

/* Preview ribbon */
.pv2-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--pv2-ribbon-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(52, 211, 153, 0.1));
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.pv2-ribbon-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.pv2-ribbon-text {
  color: #fcd34d;
  flex: 1;
  min-width: 120px;
}

.pv2-ribbon-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pv2-ribbon-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--pv2-line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--pv2-text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.pv2-ribbon-btn:hover,
.pv2-ribbon-btn.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--pv2-green);
}

.pv2-ribbon-muted { color: var(--pv2-muted); }

/* Header */
.pv2-header {
  position: fixed;
  top: var(--pv2-ribbon-h);
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--pv2-line);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.pv2-header-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.04), transparent);
  pointer-events: none;
}

.pv2-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--pv2-header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.pv2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.pv2-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.pv2-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pv2-text);
}

.pv2-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.pv2-nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--pv2-muted);
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.pv2-nav-link:hover,
.pv2-nav-link.active {
  color: var(--pv2-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--pv2-line);
}

.pv2-header-stats {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.pv2-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pv2-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
}

.pv2-chip-label {
  color: var(--pv2-muted);
}

.pv2-chip strong {
  font-family: var(--pv2-mono);
  font-weight: 600;
  color: var(--pv2-green);
  font-variant-numeric: tabular-nums;
}

.pv2-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pv2-green);
  box-shadow: 0 0 10px var(--pv2-green);
  animation: pv2-pulse 2s ease infinite;
}

@keyframes pv2-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pv2-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pv2-user-email {
  font-size: 0.75rem;
  color: var(--pv2-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-logout-form { display: inline; margin: 0; }

/* Buttons */
.pv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--pv2-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pv2-text);
  font-family: var(--pv2-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pv2-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.pv2-btn-primary {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(45, 212, 191, 0.15));
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--pv2-green);
}

.pv2-btn-ghost {
  background: transparent;
}

.pv2-btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.pv2-btn-block { width: 100%; }

/* Main */
.pv2-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--pv2-ribbon-h) + var(--pv2-header-h) + 28px) 20px 48px;
}

.pv2-main .site-notices { margin-bottom: 20px; }

/* Guest hero */
.pv2-hero {
  position: relative;
  border-radius: calc(var(--pv2-radius) + 4px);
  border: 1px solid var(--pv2-line);
  background: var(--pv2-surface);
  overflow: hidden;
  min-height: 520px;
}

.pv2-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pv2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.pv2-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(52, 211, 153, 0.18);
}

.pv2-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: rgba(45, 212, 191, 0.12);
}

.pv2-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.pv2-hero-content {
  position: relative;
  padding: 48px 40px 40px;
  max-width: 720px;
}

.pv2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--pv2-line-strong);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  color: var(--pv2-muted);
  margin-bottom: 24px;
}

.pv2-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pv2-green);
  box-shadow: 0 0 8px var(--pv2-green);
}

.pv2-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pv2-gradient-text {
  background: linear-gradient(135deg, var(--pv2-green), var(--pv2-green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pv2-hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--pv2-muted);
  max-width: 540px;
}

.pv2-hero-lead strong { color: var(--pv2-text); }

.pv2-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.pv2-metric-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--pv2-line);
  background: rgba(0, 0, 0, 0.35);
}

.pv2-metric-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pv2-muted);
  margin-bottom: 6px;
}

.pv2-metric-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--pv2-mono);
  color: var(--pv2-green);
  font-variant-numeric: tabular-nums;
}

.pv2-metric-dim { color: var(--pv2-text); }

.pv2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.pv2-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  color: #042f1a;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pv2-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.45);
}

.pv2-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pv2-cta-block { width: 100%; }

.pv2-cta-title {
  font-size: 1.1rem;
  line-height: 1.2;
}

.pv2-cta-sub {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 2px;
}

.pv2-cta-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 24px;
  border-radius: 14px;
  border: 1px solid var(--pv2-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pv2-text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.pv2-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.pv2-cta-secondary small {
  font-size: 0.72rem;
  color: var(--pv2-muted);
  margin-top: 2px;
}

.pv2-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--pv2-line);
  padding-top: 28px;
}

.pv2-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pv2-step-num {
  font-family: var(--pv2-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pv2-green);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  flex-shrink: 0;
}

.pv2-step strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pv2-step p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--pv2-muted);
  line-height: 1.45;
}

/* Member dashboard */
.pv2-dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.pv2-panel {
  border-radius: var(--pv2-radius);
  border: 1px solid var(--pv2-line);
  background: var(--pv2-surface);
  backdrop-filter: blur(12px);
  padding: 24px;
}

.pv2-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.pv2-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.pv2-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pv2-muted);
}

.pv2-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  font-size: 0.72rem;
  color: var(--pv2-green);
  font-weight: 600;
}

.pv2-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pv2-mini-metric {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pv2-line);
  background: rgba(0, 0, 0, 0.25);
}

.pv2-mini-metric span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pv2-muted);
  margin-bottom: 4px;
}

.pv2-mini-metric strong {
  font-family: var(--pv2-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pv2-green);
}

.pv2-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pv2-notice-warn {
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.pv2-notice-warn span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pv2-amber);
  color: #111;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pv2-notice p { margin: 0; }

.pv2-result {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
  margin-bottom: 16px;
}

.pv2-result-head {
  font-weight: 700;
  color: var(--pv2-green);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.pv2-cred { margin-bottom: 10px; }

.pv2-cred label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pv2-muted);
  margin-bottom: 6px;
}

.pv2-cred-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pv2-cred code {
  flex: 1;
  font-family: var(--pv2-mono);
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--pv2-line);
  overflow-x: auto;
}

.pv2-wait {
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--pv2-line);
  background: rgba(0, 0, 0, 0.25);
}

.pv2-wait-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
}

.pv2-wait-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pv2-wait-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.pv2-wait-bar {
  fill: none;
  stroke: url(#pv2-wg);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease;
}

.pv2-wait-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pv2-mono);
  font-weight: 700;
  font-size: 1rem;
}

.pv2-wait p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pv2-muted);
}

.pv2-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--pv2-muted);
}

.pv2-count-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--pv2-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pv2-line);
}

.pv2-empty {
  text-align: center;
  padding: 32px;
  color: var(--pv2-muted);
  font-size: 0.88rem;
}

.pv2-hist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv2-hist-item {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pv2-line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
}

.pv2-hist-item time {
  color: var(--pv2-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pv2-hist-u,
.pv2-hist-p {
  font-family: var(--pv2-mono);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--pv2-muted);
  border-top: 1px solid var(--pv2-line);
}

.pv2-footer-muted { color: rgba(255, 255, 255, 0.25); }

/* Site announcements — preview + shared partial */
.pv2-main .site-notices,
.site-notices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pv2-main .site-notice,
.site-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--pv2-line);
  background: linear-gradient(145deg, rgba(16, 16, 22, 0.95), rgba(8, 8, 12, 0.9));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: pv2-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.site-notice-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.site-notice-ico svg {
  display: block;
}

.site-notice-body {
  min-width: 0;
  flex: 1;
}

.site-notice-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.site-notice p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-notice-info {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(8, 8, 12, 0.9));
}
.site-notice-info .site-notice-ico {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.site-notice-info .site-notice-title { color: #e0f2fe; }
.site-notice-info p { color: #bfdbfe; }

.site-notice-warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.1), rgba(8, 8, 12, 0.9));
}
.site-notice-warning .site-notice-ico {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.site-notice-warning .site-notice-title { color: #fde68a; }
.site-notice-warning p { color: #fcd34d; }

.site-notice-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.1), rgba(8, 8, 12, 0.9));
}
.site-notice-success .site-notice-ico {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.site-notice-success .site-notice-title { color: #d1fae5; }
.site-notice-success p { color: #a7f3d0; }

/* Responsive */
@media (max-width: 960px) {
  .pv2-nav { display: none; }
  .pv2-chip-hide-sm { display: none; }
  .pv2-dashboard { grid-template-columns: 1fr; }
  .pv2-hero-metrics,
  .pv2-steps { grid-template-columns: 1fr; }
  .pv2-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .pv2-hist-item {
    grid-template-columns: 1fr 1fr;
  }
  .pv2-hist-item time { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .pv2-ribbon-text { display: none; }
  .pv2-header-inner { gap: 10px; }
  .pv2-brand-name { display: none; }
  .pv2-header-stats { display: none; }
  .pv2-hero-content { padding: 32px 20px 28px; }
  .pv2-user-email { display: none; }
}

/* —— Animations & polish v3 —— */

@keyframes pv2-fade-up {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pv2-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pv2-shimmer-sweep {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}

@keyframes pv2-glow-breathe {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(52, 211, 153, 0.25), 0 0 0 0 rgba(52, 211, 153, 0.2);
  }
  50% {
    box-shadow: 0 8px 40px rgba(52, 211, 153, 0.45), 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

@keyframes pv2-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes pv2-float-mid {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 25px); }
}

@property --pv2-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes pv2-border-spin {
  to { --pv2-angle: 360deg; }
}

@keyframes pv2-pop-in {
  0% { opacity: 0; transform: scale(0.92); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pv2-num-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); color: #6ee7b7; }
  100% { transform: scale(1); }
}

@keyframes pv2-tick {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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

@keyframes pv2-particle-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0); }
}

@keyframes pv2-grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  30% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 2%); }
  70% { transform: translate(2%, 1%); }
  90% { transform: translate(-1%, -2%); }
}

body.pv2::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: pv2-grain 8s steps(6) infinite;
}

.pv2-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pv2-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.pv2-ambient-orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: rgba(52, 211, 153, 0.14);
  animation: pv2-float-slow 18s ease-in-out infinite;
}

.pv2-ambient-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: rgba(45, 212, 191, 0.1);
  animation: pv2-float-mid 22s ease-in-out infinite;
}

.pv2-ambient-orb-3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 35%;
  background: rgba(99, 102, 241, 0.06);
  animation: pv2-float-slow 26s ease-in-out infinite reverse;
}

.pv2-ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.pv2-ribbon,
.pv2-header,
.pv2-main,
.pv2-footer {
  position: relative;
  z-index: 2;
}

.pv2-header {
  animation: pv2-slide-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

body.pv2:not(.pv2-loaded) .pv2-anim-in {
  opacity: 0;
}

.pv2-anim-in {
  animation: pv2-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.pv2-anim-delay-2 { animation-delay: 0.15s; }

.pv2-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.92), rgba(10, 10, 14, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.pv2-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pv2-panel-claim::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  --pv2-angle: 0deg;
  background: conic-gradient(
    from var(--pv2-angle),
    transparent 20%,
    rgba(52, 211, 153, 0.5) 35%,
    transparent 50%,
    rgba(45, 212, 191, 0.3) 65%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pv2-border-spin 5s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

.pv2-mini-metric {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
  cursor: default;
}

.pv2-mini-metric:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
}

.pv2-mini-metric strong.pv2-num-pop {
  animation: pv2-num-pop 0.45s ease;
}

.pv2-claim-wrap {
  position: relative;
  margin-top: 4px;
}

.pv2-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pv2-cta-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}

.pv2-cta-ready .pv2-cta-shimmer {
  animation: pv2-shimmer-sweep 2.8s ease-in-out infinite;
}

.pv2-cta-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.4), rgba(45, 212, 191, 0.2));
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

.pv2-cta-ready {
  animation: pv2-glow-breathe 2.5s ease-in-out infinite;
}

.pv2-cta-ready .pv2-cta-glow {
  opacity: 0.6;
}

.pv2-cta-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pv2-cta:active:not(:disabled) {
  transform: scale(0.97);
}

.pv2-result.pv2-result-show {
  animation: pv2-pop-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pv2-wait-glow::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(52, 211, 153, 0.4);
  border-right-color: rgba(45, 212, 191, 0.2);
  animation: pv2-wait-spin 3s linear infinite;
}

.pv2-wait-ring {
  position: relative;
}

#timer-text.pv2-tick {
  animation: pv2-tick 0.35s ease;
}

.pv2-hist-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.3) transparent;
}

.pv2-hist-scroll::-webkit-scrollbar {
  width: 5px;
}

.pv2-hist-scroll::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.35);
  border-radius: 99px;
}

.pv2-hist-item {
  animation: pv2-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}

.pv2-hist-item:hover {
  transform: translateX(6px);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
  box-shadow: -4px 0 0 rgba(52, 211, 153, 0.5);
}

.pv2-hist-u,
.pv2-hist-p {
  transition: color 0.2s;
}

.pv2-hist-item:hover .pv2-hist-u {
  color: #6ee7b7;
}

.pv2-live-pill {
  animation: pv2-glow-breathe 3s ease-in-out infinite;
}

.pv2-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  pointer-events: none;
  z-index: 9999;
  animation: pv2-particle-fly 0.7s ease-out forwards;
  box-shadow: 0 0 8px #34d399;
}

.pv2-hero {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pv2-metric-card {
  transition: transform 0.3s ease, border-color 0.3s;
}

.pv2-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.3);
}

.pv2-step {
  transition: transform 0.3s ease;
}

.pv2-step:hover {
  transform: translateX(4px);
}

.pv2-chip {
  transition: transform 0.25s ease, border-color 0.25s;
}

.pv2-chip:hover {
  transform: scale(1.04);
  border-color: rgba(52, 211, 153, 0.3);
}

/* —— Member panel v4 —— */
.pv2-member {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pv2-member-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.pv2-member-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f4f4f5 30%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pv2-member-sub {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--pv2-muted);
}

.pv2-member-email {
  color: #a7f3d0;
  font-family: var(--pv2-mono);
  font-size: 0.8rem;
}

.pv2-member-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pv2-green);
  animation: pv2-glow-breathe 3s ease-in-out infinite;
}

.pv2-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pv2-bento-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--pv2-line);
  background: linear-gradient(145deg, rgba(16, 16, 22, 0.9), rgba(8, 8, 12, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.pv2-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pv2-bento-stock {
  border-color: rgba(52, 211, 153, 0.2);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(8, 8, 12, 0.9));
}

.pv2-bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--pv2-green);
  flex-shrink: 0;
}

.pv2-bento-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pv2-muted);
  margin-bottom: 2px;
}

.pv2-bento-val {
  font-family: var(--pv2-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pv2-green);
  font-variant-numeric: tabular-nums;
}

.pv2-bento-val.pv2-num-pop {
  animation: pv2-num-pop 0.45s ease;
}

.pv2-member-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.pv2-claim-stage {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(14, 14, 20, 0.95), rgba(6, 6, 10, 0.98));
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.pv2-claim-spotlight {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.15), transparent 70%);
  pointer-events: none;
  animation: pv2-spotlight-pulse 4s ease-in-out infinite;
}

@keyframes pv2-spotlight-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.pv2-claim-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.06);
  color: #fcd34d;
  font-size: 0.78rem;
}

.pv2-claim-zone {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pv2-mega-wrap {
  width: 100%;
  max-width: 420px;
}

.pv2-mega-btn {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #10b981, #34d399 40%, #2dd4bf);
  color: #022c1a;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 8px 32px rgba(52, 211, 153, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.pv2-mega-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #9ca3af;
}

.pv2-mega-btn:not(:disabled):hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 48px rgba(52, 211, 153, 0.5);
}

.pv2-mega-btn:not(:disabled):active {
  transform: scale(0.98);
}

.pv2-mega-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
}

.pv2-mega-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pv2-mega-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pv2-mega-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pv2-mega-sub {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 2px;
}

.pv2-mega-btn.pv2-cta-ready {
  animation: pv2-glow-breathe 2.5s ease-in-out infinite;
}

.pv2-result {
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.1), rgba(52, 211, 153, 0.03));
  margin-bottom: 0;
}

.pv2-result-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--pv2-green);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.pv2-cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pv2-cred-box label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pv2-muted);
  margin-bottom: 6px;
}

.pv2-cred-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--pv2-line);
  background: rgba(0, 0, 0, 0.4);
}

.pv2-cred-field code {
  flex: 1;
  font-family: var(--pv2-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  padding: 8px 0;
}

.pv2-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--pv2-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pv2-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.pv2-copy-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
}

.pv2-copy-all-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: var(--pv2-green);
  font-family: var(--pv2-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pv2-copy-all-btn:hover {
  background: rgba(52, 211, 153, 0.15);
}

.pv2-wait-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pv2-muted);
}

.pv2-history-aside {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(18, 20, 28, 0.95), rgba(8, 9, 14, 0.98));
  padding: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pv2-history-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.45), transparent);
  pointer-events: none;
}

.pv2-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.pv2-history-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pv2-history-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
}

.pv2-history-head h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pv2-history-head p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pv2-muted);
}

.pv2-history-count {
  font-family: var(--pv2-mono);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--pv2-green);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
}

.pv2-member .pv2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  color: var(--pv2-muted);
  text-align: center;
}

.pv2-member .pv2-empty[hidden],
.pv2-hist-scroll[hidden] {
  display: none !important;
}

.pv2-empty-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.35);
}

.pv2-member .pv2-empty strong {
  color: var(--pv2-text);
  font-size: 0.9rem;
}

.pv2-member .pv2-empty > span {
  font-size: 0.78rem;
}

.pv2-hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv2-member .hist-item {
  animation: pv2-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.pv2-hist-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}

.pv2-hist-card:hover {
  transform: translateX(3px);
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.05);
  box-shadow: -3px 0 0 var(--pv2-green), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pv2-hist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pv2-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #042f1a;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
}

.pv2-hist-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pv2-hist-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pv2-hist-top .hist-u {
  font-family: var(--pv2-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #6ee7b7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-hist-top .hist-time {
  font-size: 0.65rem;
  color: var(--pv2-muted);
  font-family: var(--pv2-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.pv2-hist-body .hist-p {
  font-family: var(--pv2-mono);
  font-size: 0.75rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-hist-copy {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pv2-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.pv2-hist-copy:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--pv2-green);
  transform: scale(1.05);
}

.pv2-hist-copy.is-copied {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.pv2-member .pv2-hist-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.35) transparent;
}

.pv2-member .pv2-hist-scroll::-webkit-scrollbar {
  width: 4px;
}

.pv2-member .pv2-hist-scroll::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.4);
  border-radius: 99px;
}

@media (max-width: 960px) {
  .pv2-bento { grid-template-columns: repeat(2, 1fr); }
  .pv2-member-layout { grid-template-columns: 1fr; }
  .pv2-cred-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pv2-bento { grid-template-columns: 1fr 1fr; }
  .pv2-mega-inner { padding: 16px 20px; }
  .pv2-mega-title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.pv2::after { animation: none; }
}

/* Live site — no admin preview ribbon */
body.pv2-live-site .pv2-header {
  top: 0;
}

body.pv2-live-site .pv2-main {
  padding-top: calc(var(--pv2-header-h) + 28px);
}

.pv2-flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.pv2-flash-success {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.pv2-flash-error {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
