/* ============================================
   DESIGN SYSTEM — Blue Illustrated Referral
   ============================================ */
.rrs-share-center {
  --brand: #3B82F6;
  --brand-dark: #2563EB;
  --brand-deeper: #1D4ED8;
  --brand-light: #EFF6FF;
  --brand-glow: rgba(59, 130, 246, 0.1);
  --brand-50: #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-400: #60A5FA;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;
  --brand-800: #1E40AF;
  --brand-900: #1E3A5F;
  --coral: #F97066;
  --peach: #FEB273;
  --mint: #34D399;
  --sky: #38BDF8;
  --lavender: #A78BFA;
  --sunny: #FBBF24;
  --rose: #FB7185;
  --surface: #ffffff;
  --surface-alt: #F8FAFC;
  --surface-dim: #F1F5F9;
  --surface-cool: #F7F9FC;
  --border-light: #EDF0F4;
  --border-medium: #D8DEE6;
  --text-primary: #1A2332;
  --text-secondary: #526072;
  --text-muted: #9BA8B8;
  --green: #10B981;
  --green-bg: #ECFDF5;
  --amber: #F59E0B;
  --amber-bg: #FFFBEB;
  --red: #EF4444;
  --red-bg: #FEF2F2;
  --purple: #8B5CF6;
  --purple-bg: #F5F3FF;
  --slate: #64748B;
  --slate-bg: #F1F5F9;
  --font: 'Noto Sans TC', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --display: 'DM Sans', 'Noto Sans TC', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

.rrs-share-center *, .rrs-share-center *::before, .rrs-share-center *::after { margin: 0; padding: 0; box-sizing: border-box; }
.rrs-share-center { overflow-x: hidden; max-width: 100%; }
.rrs-share-center html { scroll-behavior: smooth; }

.rrs-share-center body {
  font-family: var(--font);
  background: #F8FAFE;
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.rrs-share-center .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.rrs-share-center .reveal.is-visible { opacity: 1; transform: translateY(0); }
.rrs-share-center .reveal-d1 { transition-delay: 0.08s; }
.rrs-share-center .reveal-d2 { transition-delay: 0.16s; }
.rrs-share-center .reveal-d3 { transition-delay: 0.24s; }
.rrs-share-center .reveal-d4 { transition-delay: 0.32s; }

/* ============================================
   HERO SECTION
   ============================================ */
.rrs-share-center .hero {
  position: relative;
  padding: 140px 40px 0;
  background: linear-gradient(172deg, #EFF6FF 0%, #DBEAFE 32%, #EDE9FE 100%);
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
}

/* Soft mesh blobs */
.rrs-share-center .hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}
.rrs-share-center .hero-blob--1 {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  background: rgba(59, 130, 246, 0.18);
  animation: blob-a 14s ease-in-out infinite alternate;
}
.rrs-share-center .hero-blob--2 {
  width: 340px; height: 340px;
  bottom: 0; left: -60px;
  background: rgba(167, 139, 250, 0.16);
  animation: blob-b 12s ease-in-out infinite alternate;
}
.rrs-share-center .hero-blob--3 {
  width: 260px; height: 260px;
  top: 40%; left: 55%;
  background: rgba(251, 191, 36, 0.12);
  animation: blob-c 10s ease-in-out infinite alternate;
}

@keyframes blob-a { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-30px,25px) scale(1.08)} }
@keyframes blob-b { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(20px,-30px) scale(1.1)} }
@keyframes blob-c { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-15px,20px) scale(0.92)} }

.rrs-share-center .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

/* Staggered entrance */
.rrs-share-center .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 13px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 22px;
  animation: hero-up 0.8s var(--ease) 0.1s both;
}

.rrs-share-center .hero-label-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(59,130,246,0.35); }
  50% { opacity:0.6; box-shadow:0 0 0 6px rgba(59,130,246,0); }
}

@keyframes hero-up {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

.rrs-share-center .hero-title {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  animation: hero-up 0.8s var(--ease) 0.22s both;
}

.rrs-share-center .hero-title em {
  font-style: normal;
  position: relative;
  background: linear-gradient(120deg, var(--brand-600) 0%, #60A5FA 30%, var(--brand-600) 60%, #60A5FA 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

.rrs-share-center .hero-title em::after {
  content: '';
  position: absolute;
  bottom: 1px; left: -2px; right: -2px;
  height: 8px;
  background: var(--brand-200);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.5;
  animation: line-grow 0.5s var(--ease-out-back) 0.7s both;
}

@keyframes shimmer { 0%{background-position:0% center} 100%{background-position:200% center} }
@keyframes line-grow { from{transform:scaleX(0);transform-origin:left} to{transform:scaleX(1)} }

.rrs-share-center .hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto;
  font-weight: 400;
  animation: hero-up 0.8s var(--ease) 0.36s both;
}

/* ============================================
   HERO ILLUSTRATION — Proper layout
   ============================================ */
.rrs-share-center .hero-scene {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  padding-bottom: 12px;
  height: 220px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: hero-up 0.9s var(--ease) 0.5s both;
}

/* Three card-like panels side by side */
.rrs-share-center .scene-character {
  position: absolute;
  bottom: 0;
  transition: transform 0.4s var(--ease);
}

.rrs-share-center .scene-character:hover { transform: translateY(-6px); }

/* Left character */
.rrs-share-center .scene-left { left: 4%; }
/* Center gift */
.rrs-share-center .scene-center { left: 50%; transform: translateX(-50%); }
.rrs-share-center .scene-center:hover { transform: translateX(-50%) translateY(-6px); }
/* Right character */
.rrs-share-center .scene-right { right: 4%; }

/* Floating decoration dots */
.rrs-share-center .hero-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.rrs-share-center .hero-dot--1 { width:10px;height:10px;background:var(--sunny);top:18%;left:12%;animation:fdot 5s ease-in-out infinite; }
.rrs-share-center .hero-dot--2 { width:8px;height:8px;background:var(--brand-400);top:10%;right:15%;animation:fdot 6s ease-in-out 1s infinite; }
.rrs-share-center .hero-dot--3 { width:12px;height:12px;background:var(--lavender);opacity:0.6;top:50%;left:5%;animation:fdot 7s ease-in-out 0.5s infinite; }
.rrs-share-center .hero-dot--4 { width:7px;height:7px;background:var(--coral);top:35%;right:8%;animation:fdot 5.5s ease-in-out 1.5s infinite; }
.rrs-share-center .hero-dot--5 { width:9px;height:9px;background:var(--mint);bottom:30%;left:18%;animation:fdot 6.5s ease-in-out 0.8s infinite; }
.rrs-share-center .hero-dot--6 { width:6px;height:6px;background:var(--sky);bottom:25%;right:20%;animation:fdot 5s ease-in-out 2s infinite; }

@keyframes fdot {
  0%,100% { transform:translateY(0) scale(1); opacity:0.7; }
  50% { transform:translateY(-14px) scale(1.15); opacity:1; }
}

/* Small floating icons (stars, etc) */
.rrs-share-center .hero-float-icon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   PAGE BODY & CONTAINER
   ============================================ */
.rrs-share-center .page-body { background: #F8FAFE; min-height: 100vh; }

.rrs-share-center .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.rrs-share-center .content-wrap {
  position: relative;
  z-index: 10;
  margin-top: -48px;
  padding-bottom: 80px;
}

/* ============================================
   PROMO BANNER
   ============================================ */
.rrs-share-center .promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #60A5FA 0%, var(--brand) 50%, var(--brand-deeper) 100%);
  border-radius: var(--radius);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.18);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.rrs-share-center .promo-banner:hover {
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

.rrs-share-center .promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.14), transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}

.rrs-share-center .promo-banner::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 36%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep { 0%,100%{left:-60%} 50%{left:130%} }

.rrs-share-center .promo-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  animation: icon-wobble 3.5s ease-in-out infinite;
}

@keyframes icon-wobble { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-6deg)} 75%{transform:rotate(6deg)} }

.rrs-share-center .promo-text { flex: 1; position: relative; }
.rrs-share-center .promo-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.rrs-share-center .promo-sub { font-size: 12.5px; color: rgba(255,255,255,0.72); font-weight: 400; }

.rrs-share-center .promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rrs-share-center .promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ============================================
   CARDS
   ============================================ */
.rrs-share-center .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  min-width: 0;
  overflow: hidden;
}

.rrs-share-center .card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px 26px;
  box-shadow: 0 1px 3px rgba(30,41,59,0.03), 0 2px 10px rgba(30,41,59,0.02);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.rrs-share-center .card:hover {
  box-shadow: 0 6px 28px rgba(30,41,59,0.07);
  transform: translateY(-2px);
  border-color: var(--brand-200);
}

.rrs-share-center .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.rrs-share-center .card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rrs-share-center .card-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.rrs-share-center .card-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 13px;
  border-radius: 100px;
  background: var(--brand-50);
  color: var(--brand);
}

/* ============================================
   SHARE LINK
   ============================================ */
.rrs-share-center .share-input-group {
  display: flex;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.3s;
  box-shadow: none;
  height: auto !important;
  max-height: 48px !important;
}

.rrs-share-center .share-input-group:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-glow) !important;
}

.rrs-share-center .share-input {
  flex: 1; min-width: 0;
  padding: 10px 16px !important;
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-cool);
  border: none !important; outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  border-radius: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: 46px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rrs-share-center .share-input:focus {
  border: none !important; outline: none !important;
  box-shadow: none !important;
}

.rrs-share-center .share-copy-btn {
  padding: 10px 24px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
  height: auto !important;
  max-height: 46px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.rrs-share-center .share-copy-btn:hover { background: var(--brand-dark); }
.rrs-share-center .share-copy-btn:active { transform: scale(0.96); }

.rrs-share-center .share-hint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.rrs-share-center .share-hint-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   QR / POSTER
   ============================================ */
.rrs-share-center .qr-layout { display: flex; gap: 24px; align-items: flex-start; }

.rrs-share-center .qr-frame {
  width: 140px; height: 140px;
  background: var(--surface-cool);
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
}

.rrs-share-center .qr-frame:hover { border-color: var(--brand); transform: scale(1.02); }

/* Prevent QR code table from being stretched by global styles */
.rrs-share-center .qr-frame table {
  width: auto !important;
  height: auto !important;
  max-width: 108px;
  max-height: 108px;
  margin: 0 auto;
  border: none !important;
}
.rrs-share-center .qr-frame td {
  border: none !important;
}
.rrs-share-center .qr-frame img {
  max-width: 108px !important;
  max-height: 108px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

.rrs-share-center .qr-placeholder {
  width: 108px; height: 108px;
  background: repeating-conic-gradient(var(--text-muted) 0% 25%, var(--surface) 0% 50%) 0 0 / 10px 10px;
  border-radius: 6px;
  opacity: 0.3;
}

.rrs-share-center .qr-info { flex: 1; }
.rrs-share-center .qr-info p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; font-weight: 400; }
.rrs-share-center .btn-row { display: flex; gap: 10px; }

/* ============================================
   BUTTONS
   ============================================ */
.rrs-share-center .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}

.rrs-share-center .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.rrs-share-center .btn:active:not(:disabled) { transform: scale(0.97); }

.rrs-share-center .btn-md { padding: 10px 22px; font-size: 13px; border-radius: var(--radius-xs); }
.rrs-share-center .btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-xs); }

.rrs-share-center .btn-primary { background: var(--brand); color: #fff; }
.rrs-share-center .btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.22); }

.rrs-share-center .btn-secondary { background: var(--surface-dim); color: var(--text-secondary); border: 1px solid var(--border-light); }
.rrs-share-center .btn-secondary:hover { background: var(--border-light); color: var(--text-primary); border-color: var(--border-medium); transform: translateY(-1px); }

.rrs-share-center .btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand-200); }
.rrs-share-center .btn-outline:hover { background: var(--brand-50); border-color: var(--brand); transform: translateY(-1px); }

.rrs-share-center .btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============================================
   PROGRESS & KPI
   ============================================ */
.rrs-share-center .progress-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(30,41,59,0.03), 0 2px 10px rgba(30,41,59,0.02);
}

.rrs-share-center .progress-top {
  padding: 32px 32px 28px;
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.rrs-share-center .progress-metric { flex-shrink: 0; }

.rrs-share-center .progress-big-num {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400), var(--sunny), var(--brand-600));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 5s ease infinite;
}

@keyframes grad-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.rrs-share-center .progress-big-label { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 6px; }
.rrs-share-center .progress-bar-wrap { flex: 1; min-width: 0; width: 100%; }

.rrs-share-center .progress-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rrs-share-center .progress-bar-text { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

.rrs-share-center .progress-milestone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}

.rrs-share-center .progress-milestone--pending { background: var(--amber-bg); color: var(--amber); }
.rrs-share-center .progress-milestone--done { background: var(--green-bg); color: var(--green); }

.rrs-share-center .progress-track {
  height: 10px;
  background: var(--surface-dim);
  border-radius: 100px;
  overflow: visible;
  position: relative;
}

.rrs-share-center .progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #60A5FA, #3B82F6, #2563EB, #3B82F6, #60A5FA);
  background-size: 300% 100%;
  animation: bar-shimmer 2.2s linear infinite;
  position: relative;
  width: 0;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 12px rgba(59,130,246,0.4), 0 0 24px rgba(59,130,246,0.15);
}

@keyframes bar-shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

.rrs-share-center .progress-fill::before {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2.5px var(--brand), 0 0 10px rgba(59,130,246,0.4), 0 0 24px rgba(59,130,246,0.15);
  z-index: 2;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 2.5px var(--brand), 0 0 10px rgba(59,130,246,0.4), 0 0 24px rgba(59,130,246,0.15); }
  50% { box-shadow: 0 0 0 3px var(--brand), 0 0 16px rgba(59,130,246,0.5), 0 0 30px rgba(59,130,246,0.2); }
}

.rrs-share-center .progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  border-radius: 100px 100px 0 0;
  pointer-events: none;
}

.rrs-share-center .kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-light);
}

.rrs-share-center .kpi-item {
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.rrs-share-center .kpi-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%; width: 1px;
  background: var(--border-light);
}

.rrs-share-center .kpi-item:hover { background: var(--surface-cool); transform: scale(1.02); }

.rrs-share-center .kpi-val {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.rrs-share-center .kpi-item:hover .kpi-val { color: var(--brand); }

.rrs-share-center .kpi-label { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ============================================
   TABLE
   ============================================ */
.rrs-share-center .data-table { width: 100%; border-collapse: collapse; }

.rrs-share-center .data-table thead th {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.rrs-share-center .data-table tbody tr { transition: background 0.15s; }
.rrs-share-center .data-table tbody tr:hover { background: var(--surface-cool); }

.rrs-share-center .data-table tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.rrs-share-center .data-table tbody tr:last-child td { border-bottom: none; }
.rrs-share-center .td-user { font-weight: 500; color: var(--text-primary); }
.rrs-share-center .td-time { font-size: 13px; color: var(--text-muted); }
.rrs-share-center .td-code { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text-secondary); }

/* Tags */
.rrs-share-center .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.15s;
}

.rrs-share-center .tag:hover { transform: scale(1.05); }

.rrs-share-center .tag--available { background: var(--green-bg); color: var(--green); }
.rrs-share-center .tag--pending   { background: var(--amber-bg); color: var(--amber); }
.rrs-share-center .tag--reviewing { background: var(--brand-light); color: var(--brand); }
.rrs-share-center .tag--merged    { background: var(--brand-light); color: var(--brand); }
.rrs-share-center .tag--gifted    { background: var(--purple-bg); color: var(--purple); }
.rrs-share-center .tag--gifting   { background: #f1f5f9; color: #64748b; }
.rrs-share-center .tag--used      { background: var(--slate-bg); color: var(--slate); }
.rrs-share-center .tag--cancelled { background: var(--red-bg); color: var(--red); }

.rrs-share-center .tag--available::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: tpulse 2s ease infinite;
}

@keyframes tpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.rrs-share-center .copy-micro {
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-cool);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all 0.2s var(--ease);
  margin-left: 8px;
}

.rrs-share-center .copy-micro:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand); transform: scale(1.05); }

/* ============================================
   SECTION DIVIDER
   ============================================ */
.rrs-share-center .section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0 28px;
}

.rrs-share-center .section-divider-line {
  flex: 1; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.rrs-share-center .section-divider-text {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 18px;
  background: var(--surface-cool);
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

/* ============================================
   VOUCHERS
   ============================================ */
.rrs-share-center .voucher-group-title {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.rrs-share-center .voucher-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease), background 0.2s;
}

.rrs-share-center .voucher-row:hover { border-color: var(--border-medium); transform: translateX(3px); }
.rrs-share-center .voucher-row.is-gifting { border-color: rgba(245,158,11,0.3); background: var(--amber-bg); }
.rrs-share-center .voucher-row.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-glow); background: var(--brand-50); transform: translateX(4px); }
.rrs-share-center .voucher-row.is-dimmed { opacity: 0.5; }

.rrs-share-center .ck-wrap { position: relative; display: flex; align-items: center; }
.rrs-share-center .ck-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }

.rrs-share-center .ck-box {
  width: 20px; height: 20px;
  border: 1px solid var(--border-medium);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
  flex-shrink: 0;
}

.rrs-share-center .ck-wrap input:checked + .ck-box { background: var(--brand); border-color: var(--brand); transform: scale(1.1); }
.rrs-share-center .ck-wrap input:checked + .ck-box::after { content: ''; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }
.rrs-share-center .ck-wrap input:disabled + .ck-box { opacity: 0.4; cursor: not-allowed; }

.rrs-share-center .voucher-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.rrs-share-center .voucher-code {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-cool);
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  transition: background 0.2s;
}

.rrs-share-center .voucher-row:hover .voucher-code { background: #fff; }

.rrs-share-center .voucher-expire { font-size: 12px; color: var(--text-muted); }
.rrs-share-center .voucher-type-label { font-size: 11px; color: var(--primary); background: rgba(59,130,246,0.08); padding: 2px 8px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.rrs-share-center .voucher-actions { display: flex; gap: 8px; flex-shrink: 0; }

.rrs-share-center .merge-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  margin-top: 4px;
  margin-bottom: 24px;
  background: var(--brand-50);
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.rrs-share-center .merge-bar:hover { border-color: var(--brand); }
.rrs-share-center .merge-hint { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }

/* ============================================
   FULL VOUCHERS
   ============================================ */
.rrs-share-center .full-voucher {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.rrs-share-center .full-voucher:hover { box-shadow: 0 6px 24px rgba(30,41,59,0.07); transform: translateY(-2px); }
.rrs-share-center .full-voucher.is-disabled { opacity: 0.5; }

.rrs-share-center .full-voucher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rrs-share-center .full-voucher-head::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px);
  pointer-events: none;
}

.rrs-share-center .full-voucher.is-disabled .full-voucher-head { background: linear-gradient(135deg, #94A3B8, #64748B); }

.rrs-share-center .full-code {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.12);
  padding: 5px 13px;
  border-radius: 7px;
  letter-spacing: 0.8px;
  position: relative;
}

.rrs-share-center .full-voucher-body { padding: 20px; }
.rrs-share-center .full-type { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.rrs-share-center .full-meta { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.rrs-share-center .full-source { font-size: 12px; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }

.rrs-share-center .full-voucher-foot {
  display: flex;
  gap: 10px;
  padding: 13px 20px;
  background: var(--surface-cool);
  border-top: 1px solid var(--border-light);
}

/* ============================================
   TOAST
   ============================================ */
.rrs-share-center .toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.9);
  padding: 11px 22px 11px 18px;
  background: var(--text-primary);
  color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(30,41,59,0.18);
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s var(--ease-bounce);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rrs-share-center .toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

.rrs-share-center .toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.rrs-share-center .toast.is-error { background: var(--red); }
.rrs-share-center .toast.is-error::before { content: '✕'; background: rgba(255,255,255,0.2); }

/* Sparkles */
.rrs-share-center .sparkle-container { position: fixed; pointer-events: none; z-index: 99998; }
.rrs-share-center .sparkle {
  position: absolute;
  border-radius: 50%;
  animation: sparkle-fly 0.65s var(--ease) forwards;
}

@keyframes sparkle-fly {
  0% { opacity:1; transform:translate(0,0) scale(1); }
  100% { opacity:0; transform:translate(var(--tx), var(--ty)) scale(0); }
}

/* ============================================
   MODAL
   ============================================ */
.rrs-share-center .modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,41,59,0.35);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.rrs-share-center .modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.rrs-share-center .modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  width: 90%; max-width: 460px;
  box-shadow: 0 24px 72px rgba(30,41,59,0.18);
  transform: translateY(24px) scale(0.92);
  transition: transform 0.4s var(--ease-bounce);
}

.rrs-share-center .modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }

.rrs-share-center .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rrs-share-center .modal-head h3 { font-family: var(--display); font-size: 17px; font-weight: 600; }

.rrs-share-center .modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--surface-dim);
  border-radius: 10px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.rrs-share-center .modal-close:hover { background: var(--brand-50); color: var(--brand); transform: rotate(90deg); }

.rrs-share-center .modal-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; font-weight: 400; }

.rrs-share-center .gift-link-row { margin-bottom: 18px; }
.rrs-share-center .gift-link-row .gift-link-input-row { display: flex; gap: 10px; align-items: stretch; }
.rrs-share-center .gift-link-row .gift-link-input-row input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-cool);
  outline: none;
}
.rrs-share-center .gift-link-row .gift-link-input-row .btn {
  flex-shrink: 0;
  padding: 0 18px;
  line-height: 1;
  height: auto;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.rrs-share-center .gift-link-expire { margin-top: 10px; font-size: 12px; color: var(--text-muted); }

.rrs-share-center .modal-btns { display: flex; gap: 10px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:960px) {
  .rrs-share-center .grid-2 { grid-template-columns: 1fr; }
  .rrs-share-center .hero { padding: 120px 24px 0; }
  .rrs-share-center .hero-title { font-size: 32px; }
  .rrs-share-center .hero-scene { height: 190px; max-width: 500px; }
  .rrs-share-center .hero-scene .scene-character svg { transform: scale(0.82); transform-origin: bottom center; }
  .rrs-share-center .container { padding: 0 24px; }
  .rrs-share-center .progress-top { flex-direction: column; gap: 20px; align-items: flex-start; }
  .rrs-share-center .progress-bar-wrap { width: 100%; }
}

@media(max-width:640px) {
  .rrs-share-center .hero { padding: 110px 16px 0; }
  .rrs-share-center .hero-title { font-size: 24px; letter-spacing: -0.3px; }
  .rrs-share-center .hero-desc { font-size: 13px; }
  .rrs-share-center .hero-scene { height: 140px; max-width: 340px; padding-bottom: 16px; }
  .rrs-share-center .hero-scene .scene-character svg { transform: scale(0.58); transform-origin: bottom center; }
  .rrs-share-center .hero-scene .scene-center svg { transform: scale(0.52); transform-origin: bottom center; }
  .rrs-share-center .hero-scene > svg { display: none; }
  .rrs-share-center .hero-dot { display: none; }
  .rrs-share-center .hero-float-icon { display: none; }
  .rrs-share-center .content-wrap { margin-top: -2px; }
  .rrs-share-center .container { padding: 0 16px; }
  .rrs-share-center .card { padding: 20px 16px; }
  .rrs-share-center .promo-banner { flex-direction: column; text-align: center; padding: 18px; }
  .rrs-share-center .promo-cta { width: 100%; justify-content: center; }
  .rrs-share-center .qr-layout { flex-direction: column; align-items: center; text-align: center; }
  .rrs-share-center .btn-row { justify-content: center; flex-wrap: wrap; }
  .rrs-share-center .progress-top { padding: 20px 16px 18px; }
  .rrs-share-center .progress-bar-wrap { width: 100%; }
  .rrs-share-center .progress-big-num { font-size: 48px; }
  .rrs-share-center .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .rrs-share-center .kpi-item:nth-child(2)::after { display: none; }
  .rrs-share-center .kpi-item:nth-child(1), .rrs-share-center .kpi-item:nth-child(2) { border-bottom: 1px solid var(--border-light); }
  .rrs-share-center .share-input-group { flex-direction: row; }
  .rrs-share-center .share-input { font-size: 11.5px; padding: 10px 10px; }
  .rrs-share-center .share-copy-btn { padding: 10px 14px; font-size: 12px; }
  .rrs-share-center .data-table thead { display: none; }
  .rrs-share-center .data-table, .rrs-share-center .data-table tbody { display: block; width: 100%; }
  .rrs-share-center .data-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .rrs-share-center .data-table tbody tr:last-child { border-bottom: none; }
  .rrs-share-center .data-table td { display: inline; padding: 0; border: none; font-size: 13px; }
  .rrs-share-center .td-type { display: none; }
  .rrs-share-center .td-time { font-size: 12px; color: var(--text-muted); }
  .rrs-share-center .voucher-row { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .rrs-share-center .voucher-actions { width: 100%; justify-content: flex-start; padding-top: 4px; }
  .rrs-share-center .merge-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .rrs-share-center .full-voucher-head { flex-direction: column; gap: 10px; text-align: center; }
  .rrs-share-center .full-voucher-foot { flex-wrap: wrap; }
  .rrs-share-center .modal-box { padding: 22px 18px; }
}
/* ============================================
   POSTER MODAL
   ============================================ */
.rrs-share-center .poster-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,41,59,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 16px;
}

.rrs-share-center .poster-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.rrs-share-center .poster-modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(30,41,59,0.2);
  transform: translateY(24px) scale(0.92);
  transition: transform 0.4s var(--ease-bounce);
  overflow: hidden;
}

.rrs-share-center .poster-modal-overlay.is-open .poster-modal-box { transform: translateY(0) scale(1); }

/* -- Preview area (fallback state) -- */
.rrs-share-center .poster-preview {
  position: relative;
  padding: 48px 28px 32px;
  text-align: center;
  color: #fff;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: linear-gradient(160deg, #020617 0%, #0f172a 30%, #1e3a5f 60%, #1d4ed8 85%, #2563eb 100%);
  overflow: hidden;
}

/* 多层光效 */
.rrs-share-center .poster-preview::before {
  content: '';  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 15%, rgba(59,130,246,0.3), transparent),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(96,165,250,0.15), transparent),
    radial-gradient(circle at 50% 50%, rgba(30,64,175,0.1), transparent 70%);
  pointer-events: none;
}
.rrs-share-center .poster-preview::after {
  content: '';  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 60px rgba(255,255,255,0.02);
}

/* 粒子容器 */
.rrs-share-center .poster-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.rrs-share-center .poster-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(191,219,254,0.6);
  box-shadow: 0 0 6px rgba(147,197,253,0.4);
}
/* 8个粒子，不同大小/位置/动画 */
.rrs-share-center .poster-particle:nth-child(1) {
  width: 4px; height: 4px; top: 12%; left: 8%;
  animation: rrs-p-float 5s ease-in-out infinite;
}
.rrs-share-center .poster-particle:nth-child(2) {
  width: 3px; height: 3px; top: 22%; right: 12%;
  animation: rrs-p-float 6s ease-in-out infinite 0.8s;
}
.rrs-share-center .poster-particle:nth-child(3) {
  width: 5px; height: 5px; top: 45%; left: 5%;
  animation: rrs-p-drift 7s ease-in-out infinite 0.3s;
  background: rgba(96,165,250,0.4);
  box-shadow: 0 0 10px rgba(96,165,250,0.3);
}
.rrs-share-center .poster-particle:nth-child(4) {
  width: 2px; height: 2px; top: 55%; right: 8%;
  animation: rrs-p-float 4s ease-in-out infinite 1.2s;
}
.rrs-share-center .poster-particle:nth-child(5) {
  width: 6px; height: 6px; bottom: 30%; left: 15%;
  animation: rrs-p-drift 8s ease-in-out infinite 0.5s;
  background: rgba(59,130,246,0.3);
  box-shadow: 0 0 14px rgba(59,130,246,0.2);
}
.rrs-share-center .poster-particle:nth-child(6) {
  width: 3px; height: 3px; bottom: 20%; right: 18%;
  animation: rrs-p-float 5.5s ease-in-out infinite 1.8s;
}
.rrs-share-center .poster-particle:nth-child(7) {
  width: 2px; height: 2px; top: 70%; left: 35%;
  animation: rrs-p-float 6.5s ease-in-out infinite 2.2s;
}
.rrs-share-center .poster-particle:nth-child(8) {
  width: 4px; height: 4px; top: 35%; left: 55%;
  animation: rrs-p-drift 7.5s ease-in-out infinite 1s;
  background: rgba(147,197,253,0.35);
  box-shadow: 0 0 8px rgba(147,197,253,0.25);
}

/* 上升+呼吸 */
@keyframes rrs-p-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  25% { transform: translateY(-12px) scale(1.2); opacity: 1; }
  50% { transform: translateY(-6px) scale(0.9); opacity: 0.7; }
  75% { transform: translateY(-15px) scale(1.3); opacity: 0.9; }
}
/* 漂移+旋转 */
@keyframes rrs-p-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33% { transform: translate(10px, -18px) scale(1.4); opacity: 0.7; }
  66% { transform: translate(-8px, -10px) scale(0.8); opacity: 0.5; }
}

/* 流星线条 */
.rrs-share-center .poster-meteor {
  position: absolute;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,219,254,0.4), transparent);
  transform: rotate(-35deg);
  pointer-events: none;
}
.rrs-share-center .poster-meteor--1 {
  top: 18%; right: -10%;
  animation: rrs-meteor 4s linear infinite 1s;
}
.rrs-share-center .poster-meteor--2 {
  top: 65%; right: -5%;
  animation: rrs-meteor 5s linear infinite 3s;
  width: 50px;
  opacity: 0.6;
}
@keyframes rrs-meteor {
  0% { transform: rotate(-35deg) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: rotate(-35deg) translateX(-350px); opacity: 0; }
}

.rrs-share-center .poster-preview-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  letter-spacing: 0.5px;
}

.rrs-share-center .poster-preview-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 280px;
  position: relative;
  font-weight: 400;
}

.rrs-share-center .poster-qr-placeholder {
  width: 110px; height: 110px;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}

.rrs-share-center .poster-qr-inner {
  width: 80px; height: 80px;
  background: repeating-conic-gradient(var(--text-muted) 0% 25%, var(--surface) 0% 50%) 0 0 / 10px 10px;
  border-radius: 5px;
  opacity: 0.3;
}

.rrs-share-center .poster-qr-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  position: relative;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* QR from QRCode.js */
.rrs-share-center .poster-qr-placeholder .poster-modal-qr { background: none; }
.rrs-share-center .poster-qr-placeholder table { margin: 0 auto; border: none !important; border-collapse: collapse !important; }
.rrs-share-center .poster-qr-placeholder td { border: none !important; padding: 0 !important; }
.rrs-share-center .poster-qr-placeholder img { display: block; max-width: 88px !important; max-height: 88px !important; }
.rrs-share-center .poster-qr-placeholder canvas { display: block; max-width: 88px !important; max-height: 88px !important; }

/* -- When admin uploaded a custom background image -- */
.rrs-share-center .poster-preview.has-custom-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 有自定义背景图时隐藏渐变光效和粒子 */
.rrs-share-center .poster-preview.has-custom-bg::before { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%); }
.rrs-share-center .poster-preview.has-custom-bg::after { display: none; }
.rrs-share-center .poster-preview.has-custom-bg .poster-particles,
.rrs-share-center .poster-preview.has-custom-bg .poster-meteor { display: none; }

/* -- When poster image generated -- */
.rrs-share-center .poster-preview.has-poster-img {
  padding: 0;
  min-height: auto;
  background: var(--surface-dim);
}

.rrs-share-center .poster-preview.has-poster-img::before { display: none; }

.rrs-share-center .poster-preview.has-poster-img .poster-preview-title,
.rrs-share-center .poster-preview.has-poster-img .poster-preview-desc,
.rrs-share-center .poster-preview.has-poster-img .poster-qr-placeholder,
.rrs-share-center .poster-preview.has-poster-img .poster-qr-label,
.rrs-share-center .poster-preview.has-poster-img .poster-particles,
.rrs-share-center .poster-preview.has-poster-img .poster-meteor { display: none; }

.rrs-share-center .poster-preview.has-poster-img.has-custom-bg {
  background-image: none !important;
}

.rrs-share-center #poster-preview-img {
  display: none;
  width: 100%;
  height: auto;
}

.rrs-share-center .poster-preview.has-poster-img #poster-preview-img {
  display: block;
}

/* -- Footer -- */
.rrs-share-center .poster-modal-footer {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
  background: var(--surface);
}

.rrs-share-center .poster-modal-footer .btn { flex: 1; }

/* -- Confetti -- */
.rrs-share-center .confetti-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 99999; overflow: hidden;
}
.rrs-share-center .confetti {
  position: absolute; border-radius: 2px; top: -10px;
  animation: rrs-confetti linear forwards;
}
@keyframes rrs-confetti {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* -- Responsive -- */
@media (max-width: 480px) {
  .rrs-share-center .poster-preview { min-height: 320px; padding: 40px 24px 28px; }
  .rrs-share-center .poster-preview-title { font-size: 20px; }
  .rrs-share-center .poster-modal-footer { padding: 14px 18px; }
}

/* ============================================
   ANNOUNCEMENT MODAL
   ============================================ */
.rrs-share-center .announce-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,41,59,0.35);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.rrs-share-center .announce-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.rrs-share-center .announce-modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  width: 90%; max-width: 520px;
  box-shadow: 0 24px 72px rgba(30,41,59,0.18);
  transform: translateY(24px) scale(0.92);
  transition: transform 0.4s var(--ease-bounce);
  overflow: hidden;
}

.rrs-share-center .announce-modal-overlay.is-open .announce-modal-box { transform: translateY(0) scale(1); }

.rrs-share-center .announce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.rrs-share-center .announce-header h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rrs-share-center .announce-header h3 .announce-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rrs-share-center .announce-body {
  padding: 18px 28px 26px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-weight: 400;
}

.rrs-share-center .announce-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.rrs-share-center .announce-body h4:first-child { margin-top: 0; }

.rrs-share-center .announce-body p { margin-bottom: 8px; }

.rrs-share-center .announce-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}


/* ============================================
   TAG EXPIRED (missing)
   ============================================ */
.rrs-share-center .tag--expired { background: var(--slate-bg); color: var(--text-muted); text-decoration: line-through; }

/* Rejected reason icon + tooltip */
.rrs-share-center .rrs-reject-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 4px;
}
.rrs-share-center .rrs-reject-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}
.rrs-share-center .rrs-reject-info:hover .rrs-reject-icon,
.rrs-share-center .rrs-reject-info:focus .rrs-reject-icon {
  transform: scale(1.15);
}
.rrs-share-center .rrs-reject-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  min-width: 120px;
  max-width: 260px;
  width: max-content;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 100;
  pointer-events: none;
}
.rrs-share-center .rrs-reject-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}
.rrs-share-center .rrs-reject-info:hover .rrs-reject-tooltip,
.rrs-share-center .rrs-reject-info:focus .rrs-reject-tooltip {
  display: block;
}

/* Tag rejected (reuse cancelled style but add specific class) */
.rrs-share-center .tag--rejected { background: var(--red-bg); color: var(--red); }

/* ============================================
   EMPTY STATE (missing)
   ============================================ */
.rrs-share-center .rrs-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   POSTER PREVIEW (html2canvas offscreen)
   ============================================ */
.rrs-share-center .rrs-poster-preview {
  position: relative;
  display: block;
  width: 375px;
  max-width: 375px;
  overflow: hidden;
}
.rrs-share-center .rrs-poster-bg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.rrs-share-center .rrs-poster-placeholder {
  width: 375px;
  height: 440px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1e40af 70%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;
  color: #fff;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 装饰光效 */
.rrs-share-center .rrs-poster-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 75% 15%, rgba(96,165,250,0.3), transparent),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(59,130,246,0.2), transparent);
  pointer-events: none;
}
.rrs-share-center .rrs-poster-placeholder::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 浮动光点 */
.rrs-share-center .poster-p-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.rrs-share-center .poster-p-dot--1 {
  width: 6px; height: 6px;
  background: rgba(147,197,253,0.5);
  top: 18%; left: 12%;
  animation: rrs-poster-float 4s ease-in-out infinite;
}
.rrs-share-center .poster-p-dot--2 {
  width: 4px; height: 4px;
  background: rgba(191,219,254,0.4);
  top: 35%; right: 15%;
  animation: rrs-poster-float 5s ease-in-out infinite 1s;
}
.rrs-share-center .poster-p-dot--3 {
  width: 8px; height: 8px;
  background: rgba(96,165,250,0.25);
  bottom: 22%; left: 18%;
  animation: rrs-poster-float 6s ease-in-out infinite 0.5s;
}
.rrs-share-center .poster-p-dot--4 {
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.35);
  top: 60%; right: 10%;
  animation: rrs-poster-float 3.5s ease-in-out infinite 1.5s;
}
.rrs-share-center .poster-p-dot--5 {
  width: 5px; height: 5px;
  background: rgba(147,197,253,0.3);
  bottom: 40%; left: 8%;
  animation: rrs-poster-float 5.5s ease-in-out infinite 0.8s;
}

@keyframes rrs-poster-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-8px) scale(1.3); opacity: 1; }
}

/* 顶部 logo */
.rrs-share-center .rrs-poster-placeholder .poster-p-top {
  width: 100%;
  padding: 28px 30px 0;
  position: relative;
  z-index: 2;
}
.rrs-share-center .rrs-poster-placeholder .poster-p-logo {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 主体 */
.rrs-share-center .rrs-poster-placeholder .poster-p-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 36px 24px;
  position: relative;
  z-index: 2;
  gap: 14px;
}

.rrs-share-center .rrs-poster-placeholder .poster-p-title {
  font-family: var(--display);
  font-size: 26px; font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.rrs-share-center .rrs-poster-placeholder .poster-p-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 260px;
}

.rrs-share-center .rrs-poster-qrcode-wrap {
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  backdrop-filter: blur(4px);
}
.rrs-share-center .rrs-poster-qrcode-wrap .rrs-poster-qrcode {
  position: static !important;
  background: none;
  padding: 0;
  border-radius: 0;
  width: 100px !important;
  height: 100px !important;
  transform: none !important;
}

.rrs-share-center .rrs-poster-placeholder .poster-p-scan {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

/* 底部网址 */
.rrs-share-center .rrs-poster-placeholder .poster-p-footer {
  width: 100%;
  padding: 12px 30px;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.rrs-share-center .rrs-poster-qrcode {
  position: absolute;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
  z-index: 2;
}
.rrs-share-center .rrs-poster-qrcode table {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  border-collapse: collapse !important;
  border: none !important;
}
.rrs-share-center .rrs-poster-qrcode td {
  border: none !important;
  padding: 0 !important;
}
.rrs-share-center .rrs-poster-qrcode img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}
.rrs-share-center .rrs-poster-qrcode canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}
.rrs-share-center .rrs-poster-nickname {
  position: absolute;
  transform: translateX(-50%);
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
}
.rrs-share-center .rrs-poster-scan-label {
  position: absolute;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 2;
  letter-spacing: 1px;
}
.rrs-share-center #rrs-poster-result { margin-top: 20px; }
.rrs-share-center #rrs-poster-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Pagination ── */
.rrs-share-center .rrs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}
.rrs-share-center .rrs-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--display);
  color: var(--text-secondary, #526072);
  background: transparent;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1.5px solid var(--border-light, #EDF0F4);
  letter-spacing: 0.01em;
}
.rrs-share-center .rrs-page-link:hover {
  background: var(--primary-bg, rgba(59,130,246,0.08));
  color: var(--primary, #3b82f6);
  border-color: var(--primary, #3b82f6);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}
.rrs-share-center .rrs-page-link:active {
  transform: translateY(0);
}
.rrs-share-center .rrs-page-current {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(59,130,246,0.25);
}
.rrs-share-center .rrs-page-nav {
  padding: 0 14px;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: var(--slate-bg, #F1F5F9);
  color: var(--text-secondary, #526072);
}
.rrs-share-center .rrs-page-nav:hover {
  background: var(--primary-bg, rgba(59,130,246,0.08));
  color: var(--primary, #3b82f6);
  border: none;
  box-shadow: none;
}
.rrs-share-center .rrs-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--text-muted, #9BA8B8);
  font-size: 14px;
  letter-spacing: 2px;
  pointer-events: none;
}

