/* ==========================================================================
   Nv-Pu-Sa (X-Archive) v2 - Unified Pure Dual-Theme Design System
   Synthesized with: Karpathy · UI-UX-Pro-Max · Impeccable · React-Bits · Better-Icons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens: Pure OLED Minimalist vs Crisp Light
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Default: OLED Pure Black Minimalist Theme */
:root, [data-theme="oled"] {
  --bg-app: #000000;
  --bg-surface: hsla(0, 0%, 5%, 0.85);
  --bg-surface-hover: hsla(0, 0%, 10%, 0.95);
  --bg-surface-solid: #09090b;
  --bg-elevated: hsla(0, 0%, 7%, 0.96);
  --bg-glass-nav: hsla(0, 0%, 0%, 0.9);
  --bg-card-footer: #050505;
  --bg-chip: hsla(0, 0%, 100%, 0.08);

  /* Accents */
  --accent-primary: hsl(199, 89%, 60%);        /* #38bdf8 */
  --accent-primary-hover: hsl(199, 89%, 50%);  /* #0ea5e9 */
  --accent-primary-subtle: hsla(199, 89%, 60%, 0.14);
  --accent-primary-glow: hsla(199, 89%, 60%, 0.35);
  --spotlight-color: hsla(199, 89%, 60%, 0.12);

  --accent-gold: hsl(38, 92%, 50%);            /* #f59e0b */
  --accent-gold-hover: hsl(38, 92%, 45%);
  --accent-gold-subtle: hsla(38, 92%, 50%, 0.16);
  --accent-spark: hsl(330, 81%, 60%);          /* #ec4899 */
  --accent-spark-subtle: hsla(330, 81%, 60%, 0.16);
  --accent-verified: #1d9bf0;                  /* Twitter Official Blue */
  --accent-success: hsl(152, 69%, 45%);        /* #10b981 */
  --accent-danger: hsl(350, 89%, 60%);         /* #f43f5e */
  --accent-danger-subtle: hsla(350, 89%, 60%, 0.14);

  /* Borders & Dividers */
  --border-subtle: hsla(0, 0%, 100%, 0.1);
  --border-medium: hsla(0, 0%, 100%, 0.18);
  --border-strong: hsla(0, 0%, 100%, 0.32);
  --border-focus: hsla(199, 89%, 60%, 0.55);
  --border-gold: hsla(38, 92%, 50%, 0.45);

  /* Typography */
  --text-main: hsl(210, 40%, 98%);             /* #f8fafc */
  --text-secondary: hsl(215, 20%, 70%);        /* #94a3b8 */
  --text-muted: hsl(215, 16%, 50%);            /* #64748b */
  --text-inverse: #000000;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px hsla(0, 0%, 0%, 0.7);
  --shadow-md: 0 12px 32px -8px hsla(0, 0%, 0%, 0.85);
  --shadow-lg: 0 24px 50px -12px hsla(0, 0%, 0%, 0.95);
  --shadow-glow: 0 0 25px -4px hsla(199, 89%, 60%, 0.3);
  --shadow-gold-glow: 0 0 35px -4px hsla(38, 92%, 50%, 0.4);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Light Daylight Crisp Theme */
[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-surface: hsla(0, 0%, 100%, 0.88);
  --bg-surface-hover: #f1f5f9;
  --bg-surface-solid: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass-nav: hsla(210, 40%, 98%, 0.92);
  --bg-card-footer: #f8fafc;
  --bg-chip: hsla(222, 47%, 11%, 0.06);

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-primary-subtle: hsla(199, 89%, 40%, 0.12);
  --accent-primary-glow: hsla(199, 89%, 40%, 0.22);
  --spotlight-color: hsla(199, 89%, 40%, 0.08);

  --border-subtle: hsla(222, 47%, 11%, 0.08);
  --border-medium: hsla(222, 47%, 11%, 0.16);
  --border-strong: hsla(222, 47%, 11%, 0.28);
  --border-focus: hsla(199, 89%, 40%, 0.5);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 25px -4px hsla(199, 89%, 40%, 0.2);
}

/* --------------------------------------------------------------------------
   2. Global Baseline & Canvas Background
   -------------------------------------------------------------------------- */
body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#bg-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  color: inherit;
}

code, kbd {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. React-Bits Motion: ShinyText & ClickSpark
   -------------------------------------------------------------------------- */
.shiny-text {
  background: linear-gradient(
    120deg,
    var(--text-main) 0%,
    var(--text-main) 30%,
    var(--accent-primary) 50%,
    var(--text-main) 70%,
    var(--text-main) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineSweep 4.5s linear infinite;
  display: inline-block;
}

.shiny-gold {
  background: linear-gradient(
    120deg,
    var(--accent-gold) 0%,
    var(--accent-gold) 35%,
    #fff 50%,
    var(--accent-gold) 65%,
    var(--accent-gold) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineSweep 4s linear infinite;
}

@keyframes shineSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.click-spark-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: sparkFade 0.65s cubic-bezier(0.12, 0, 0.39, 0) forwards;
}

@keyframes sparkFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.15); }
}

/* Luxury Celebration Starburst & Confetti Fireworks */
.celebration-burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform-origin: center;
  will-change: transform, opacity;
  animation: celebrationFly var(--duration, 1.2s) cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}

@keyframes celebrationFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--vx) * 0.35), calc(-50% + var(--vy) * 0.35)) scale(1.25) rotate(var(--rot-mid, 180deg));
  }
  65% {
    opacity: 0.9;
    transform: translate(calc(-50% + var(--vx) * 0.8), calc(-50% + var(--vy) * 0.8 + 24px)) scale(1) rotate(var(--rot-late, 360deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--vx)), calc(-50% + var(--vy) + 65px)) scale(0.3) rotate(var(--rot-end, 540deg));
  }
}

.celebration-star-particle {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px currentColor);
}

.celebration-confetti-ribbon {
  border-radius: 2px;
  box-shadow: 0 0 12px currentColor;
}

.spotlight-interactive {
  position: relative;
  overflow: hidden;
}

.spotlight-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-interactive:hover::before {
  opacity: 1;
}

.tilt-card-wrap {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   4. App Shell & Slim Header (No green light, no v1 link)
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.v2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Clean, Non-shaking Avatar (Pure Logo without box/border, enlarged to 46px) */
.brand-avatar {
  width: 46px;
  height: 46px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.brand-link:hover .brand-avatar {
  opacity: 0.88;
  filter: drop-shadow(0 0 12px var(--accent-primary-glow));
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1;
}

.header-search-wrap {
  width: 460px;
  justify-self: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-surface-hover);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.search-box input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.search-clear-btn {
  position: absolute;
  right: 36px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color 0.15s;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

.key-shortcut {
  position: absolute;
  right: 12px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* Lucky Pick Button with Dice SVG */
.btn-lucky-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-lucky-pick:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.28) 0%, rgba(56, 189, 248, 0.28) 100%);
  border-color: var(--accent-spark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(236, 72, 153, 0.35);
}

.btn-lucky-pick:active {
  transform: scale(0.96);
}

.btn-lucky-pick svg {
  color: var(--accent-spark);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-lucky-pick:hover svg {
  transform: rotate(180deg) scale(1.15);
}

/* Pure Icon Dual Theme Toggle Button (Light vs OLED) */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  color: var(--accent-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(25deg) scale(1.15);
}

.btn-nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.btn-nav-pill:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

/* --------------------------------------------------------------------------
   5. Hero Section (Elevated Spacious Luxury Atmosphere - min-height 340px)
   -------------------------------------------------------------------------- */
.v2-main {
  flex: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.hero-section {
  margin-bottom: 28px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 15%;
  width: 480px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-left-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

.hero-description {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
}

/* Unified High-Craft Glass Data Capsule Strip (Strict 1:1:1 Grid Architecture) */
.hero-unified-capsule {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(135deg, hsla(0, 0%, 10%, 0.85) 0%, hsla(0, 0%, 4%, 0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  gap: 0;
  width: 100%;
  max-width: 580px;
  margin-top: 14px;
  animation: capsulePulseGlow 6s ease-in-out infinite alternate;
}

@keyframes capsulePulseGlow {
  0% {
    box-shadow: 0 0 16px -3px var(--accent-primary-glow), inset 0 1px 0 hsla(0, 0%, 100%, 0.1);
    border-color: var(--border-medium);
  }
  100% {
    box-shadow: 0 0 24px 0px hsla(38, 92%, 50%, 0.22), inset 0 1px 0 hsla(0, 0%, 100%, 0.15);
    border-color: hsla(38, 92%, 50%, 0.35);
  }
}

[data-theme="light"] .hero-unified-capsule {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: var(--border-medium);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.capsule-metric-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 8px;
  width: 100%;
}

.capsule-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capsule-divider {
  width: 1px;
  height: 32px;
  background: var(--border-medium);
  margin: 0 auto;
  flex-shrink: 0;
}

.capsule-data {
  display: flex;
  flex-direction: column;
  min-width: 76px;
  justify-content: center;
}

.capsule-number {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.capsule-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  white-space: nowrap;
}

/* Spotlight Feature Card */
.hero-right-spotlight {
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  overflow: hidden;
}

.hero-right-spotlight:hover {
  border-color: var(--border-strong);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--accent-gold-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-gold);
  width: fit-content;
}

.spotlight-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spotlight-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.spotlight-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  background: var(--bg-surface);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spotlight-avatar-wrap:hover .spotlight-avatar {
  transform: scale(1.08);
}

.spotlight-meta {
  flex: 1;
  min-width: 0;
}

.spotlight-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-handle {
  font-size: 12.5px;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  margin-top: 1px;
  display: block;
}

.spotlight-bio-snippet {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-shuffle-spotlight {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-shuffle-spotlight:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   6. Command Discovery & Filter Toolbar (View Tabs moved to Filter Row Right)
   -------------------------------------------------------------------------- */
.discovery-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

/* Row 1: Filter Pills on Left, View Switcher Tabs on Right */
.filter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px;
  margin: -6px -4px;
  scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.f-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.f-pill:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.f-pill.active {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}

.pill-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  color: inherit;
}

/* View Mode Toggler (Grid / Compact / List) */
.view-mode-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.view-tab-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.view-tab-btn:hover {
  color: var(--text-main);
}

.view-tab-btn.active {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* Row 2: Result count and Sorting */
.discovery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-indicator {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.custom-select-box {
  position: relative;
  width: 172px;
}

.select-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.select-trigger-btn span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.select-trigger-btn .arrow-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.select-trigger-btn:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

.select-trigger-btn[aria-expanded="true"] {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.select-trigger-btn[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}

.select-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
  animation: popoverFadeIn 0.16s ease;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.12s;
}

.menu-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.menu-item.active {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Discrete Column Masonry Gallery (No Layout Jump / Shifting)
   -------------------------------------------------------------------------- */
.gallery-container {
  min-height: 400px;
}

/* 7.1 Standard Masonry View: 3 Separate Discrete Columns */
.blogger-wall.grid-view {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.blogger-wall.grid-view .masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* 7.2 Compact Masonry View: 4 Separate Columns */
.blogger-wall.compact-view {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.blogger-wall.compact-view .masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* 7.3 List View */
.blogger-wall.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.blogger-card {
  --card-accent: var(--accent-primary);
  --card-accent-rgb: 56, 189, 248;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease,
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  width: 100%;
  animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.blogger-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--card-accent-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--card-accent-rgb), 0.3), 0 16px 36px -6px rgba(var(--card-accent-rgb), 0.16);
}

.card-ambient-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--card-accent-rgb), 0.22) 0%, transparent 65%);
}

.blogger-card:hover .card-ambient-glow {
  opacity: 1;
}

/* 赛博坟场 (Tombstone Mode) */
.blogger-card.is-tombstone {
  filter: grayscale(85%) brightness(0.82);
}

.blogger-card.is-tombstone:hover {
  filter: grayscale(25%) brightness(0.95);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), 0 14px 32px -4px rgba(148, 163, 184, 0.15);
}

.tombstone-banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  backdrop-filter: grayscale(50%);
  z-index: 1;
}

.card-header-banner {
  height: 100px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-surface-hover);
  position: relative;
  transition: transform 0.4s ease;
}

.blogger-card:hover .card-header-banner {
  transform: scale(1.02);
}

.card-header-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.card-main-content {
  padding: 0 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.card-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -34px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.card-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--bg-surface-solid);
  border: 1.5px solid rgba(var(--card-accent-rgb), 0.7);
  box-shadow: 0 0 16px -1px rgba(var(--card-accent-rgb), 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: visible;
}

.card-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--card-accent-rgb), 0.75) 0%, transparent 72%);
  z-index: -1;
  opacity: 0.85;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.blogger-card:hover .card-avatar-wrap {
  transform: scale(1.08);
  border-color: rgba(var(--card-accent-rgb), 1);
  box-shadow: 0 0 0 2.5px rgba(var(--card-accent-rgb), 0.45), 0 0 28px 4px rgba(var(--card-accent-rgb), 0.85), 0 6px 18px rgba(0, 0, 0, 0.7);
}

.blogger-card:hover .card-avatar-wrap::before {
  opacity: 1;
  filter: blur(12px);
}

.card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Native Twitter Verified Blue Badge directly on Avatar bottom-right */
.badge-verified-native {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #1d9bf0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg-surface-solid);
  box-shadow: 0 2px 6px rgba(29, 155, 240, 0.4);
  z-index: 4;
}

.badge-verified-native svg {
  width: 10px;
  height: 10px;
}

.card-influence-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-influence-pill.top-tier {
  background: var(--accent-gold-subtle);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}

.card-user-info {
  margin-bottom: 10px;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.card-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-user-handle {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--card-accent, var(--accent-primary));
  margin-top: 1px;
  display: inline-block;
  transition: color 0.25s ease;
}

.card-user-handle:hover {
  text-decoration: underline;
}

.card-metrics-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg-chip);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.card-bio-content {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-bio-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-action-footer {
  padding: 12px 18px;
  background: var(--bg-card-footer);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.btn-inspect-profile {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.btn-inspect-profile:hover {
  color: var(--text-main);
}

.btn-visit-x {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-full);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-visit-x:hover {
  background: var(--accent-primary);
  color: #000000;
  transform: translateY(-1px);
}

/* Compact View adjustments */
.blogger-wall.compact-view .blogger-card {
  border-radius: var(--radius-md);
}

.blogger-wall.compact-view .card-header-banner {
  height: 60px;
}

.blogger-wall.compact-view .card-avatar-wrap {
  width: 48px;
  height: 48px;
  margin-top: -24px;
}

.blogger-wall.compact-view .card-user-name {
  font-size: 14px;
}

.blogger-wall.compact-view .card-user-handle {
  font-size: 11.5px;
}

.blogger-wall.compact-view .card-bio-content {
  font-size: 12px;
  margin-bottom: 8px;
}

.blogger-wall.compact-view .card-action-footer {
  padding: 8px 12px;
}

/* List View Streamlined Grid Alignment: 头像 ➜ 标 ➜ 昵称 ➜ @id ➜ 关注者 ➜ (自适应右对齐) ➜ 操作按钮 */
.blogger-wall.list-view .blogger-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  gap: 16px;
}

.blogger-wall.list-view .card-header-banner {
  display: none;
}

.blogger-wall.list-view .card-main-content {
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.blogger-wall.list-view .card-avatar-row {
  margin: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.blogger-wall.list-view .card-avatar-wrap {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(var(--card-accent-rgb), 0.7);
  margin-top: 0;
}

.blogger-wall.list-view .card-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.blogger-wall.list-view .card-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-shrink: 0;
}

.blogger-wall.list-view .card-influence-pill {
  order: -1;
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  flex-shrink: 0;
}

.blogger-wall.list-view .card-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.blogger-wall.list-view .card-user-handle {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin: 0;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.blogger-wall.list-view .card-metrics-chip {
  margin: 0;
  min-width: unset;
  width: fit-content;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hide bio in list view for pure clean alignment */
.blogger-wall.list-view .card-bio-content {
  display: none !important;
}

.blogger-wall.list-view .card-action-footer {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .blogger-wall.list-view .blogger-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .blogger-wall.list-view .card-main-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .blogger-wall.list-view .card-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .blogger-wall.list-view .card-action-footer {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }
}

/* Infinite Scroll Sentinel Spinner */
.infinite-scroll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  gap: 8px;
  width: 100%;
}

.infinite-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Empty States */
.v2-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.btn-reset-filters {
  padding: 8px 20px;
  background: var(--accent-primary);
  color: #000000;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.btn-reset-filters:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8. Impeccable Frameless Floating Single Card Random Discovery Modal
   -------------------------------------------------------------------------- */
.roulette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: rouletteFadeIn 0.25s ease;
}

@keyframes rouletteFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.roulette-frameless-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  animation: roulettePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes roulettePopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Single Floating Pure Card */
.roulette-floating-card {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 50px -10px rgba(56, 189, 248, 0.25), 0 25px 60px -15px rgba(0,0,0,0.9);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s ease, border-color 0.25s ease, opacity 0.16s ease;
  will-change: transform, opacity, filter;
}

.roulette-floating-card.is-shuffling {
  filter: blur(1.5px);
  transform: scale(0.985);
  border-color: var(--accent-spark);
}

/* 倒数第二张顺着惯性向上滚出 */
.roulette-floating-card.is-rolling-out {
  opacity: 0.15;
  filter: blur(3.5px);
  transform: translateY(-34px) scale(0.96);
  transition: transform 0.15s cubic-bezier(0.4, 0, 1, 1), opacity 0.15s ease, filter 0.15s ease;
}

/* 最终卡片：从下方顺滑滑入 + 拟真弹性卡扣回弹落定 (Spring Bounce) */
.roulette-floating-card.is-settled {
  filter: blur(0px);
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: settleSlotReelSpring 0.58s cubic-bezier(0.22, 1.25, 0.36, 1) both;
  border-color: var(--accent-gold);
  box-shadow: 0 0 60px 8px rgba(245, 158, 11, 0.45), 0 0 100px 20px rgba(56, 189, 248, 0.25), 0 30px 70px -10px rgba(0,0,0,0.95);
}

@keyframes settleSlotReelSpring {
  0% {
    transform: translateY(32px) scale(0.96);
    opacity: 0.3;
    filter: blur(2px);
  }
  45% {
    transform: translateY(-8px) scale(1.035);
    opacity: 1;
    filter: blur(0px);
  }
  75% {
    transform: translateY(2.5px) scale(0.995);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.roulette-banner {
  height: 130px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.roulette-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
}

.roulette-avatar-zone {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -38px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.roulette-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--bg-elevated);
  object-fit: cover;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.roulette-info-zone {
  padding: 14px 22px 20px;
}

.roulette-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.roulette-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.roulette-handle {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  display: block;
}

.roulette-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.roulette-bio a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Actions strictly outside and beneath the card (Hidden during shuffle, smooth fade-in after settle) */
.roulette-outside-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.roulette-outside-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-roulette-visit {
  flex: 1;
  height: 48px;
  padding: 13px 20px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #000000;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  transition: all 0.18s ease;
}

.btn-roulette-visit:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-reshuffle {
  flex: 1;
  height: 48px;
  padding: 13px 20px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.18s ease;
}

.btn-reshuffle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-spark);
  transform: translateY(-1px);
}

.roulette-dismiss-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.roulette-dismiss-hint.is-visible {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   9. Inspector Drawer
   -------------------------------------------------------------------------- */
.inspector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
  animation: backdropFadeIn 0.2s ease;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.inspector-drawer {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: drawerSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-badge-tag {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
}

.drawer-meta-tip {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.15s;
}

.drawer-close-btn:hover {
  background: var(--bg-chip);
  color: var(--text-main);
}

.drawer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   9.1 Polaroid Time Capsule & Mutation Timeline Drawer Styling
   -------------------------------------------------------------------------- */
.polaroid-capsule-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.polaroid-header-wrap {
  position: relative;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.polaroid-banner-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-surface-hover);
  position: relative;
  transition: transform 0.4s ease;
}

.polaroid-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.polaroid-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: rotate(3deg);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  text-align: center;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: stampPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stampPop {
  0% { transform: scale(0.8) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(3deg); opacity: 1; }
}

.stamp-title {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.stamp-id {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin: 1px 0;
}

.stamp-date {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
}

.polaroid-profile-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -46px;
  padding: 0 6px;
  position: relative;
  z-index: 2;
}

.polaroid-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px -2px rgba(var(--card-accent-rgb, 56, 189, 248), 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.polaroid-avatar-wrap:hover {
  transform: scale(1.05);
}

.polaroid-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-surface);
}

.polaroid-tags-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.polaroid-name-block {
  margin-top: 2px;
}

.polaroid-user-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.polaroid-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.polaroid-handle-text {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 14.5px;
  font-weight: 600;
}

.btn-chip-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip-copy:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

/* 4-Cell Metric Grid */
.polaroid-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.metric-val.is-verified {
  color: var(--accent-verified);
}

.metric-val.highlight {
  color: var(--accent-primary);
}

.metric-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

/* Bio Section */
.polaroid-bio-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.polaroid-bio-card {
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.polaroid-bio-card a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Profile Mutation Timeline Accordion */
.polaroid-history-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.polaroid-history-accordion[open] {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.polaroid-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  list-style: none;
}

.polaroid-history-summary::-webkit-details-marker {
  display: none;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
}

.summary-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.polaroid-history-accordion[open] .summary-arrow {
  transform: rotate(180deg);
}

.polaroid-history-content {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
}

.timeline-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -16px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-primary);
  z-index: 1;
}

.timeline-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.timeline-type {
  font-weight: 600;
  color: var(--text-main);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-diff {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.diff-line {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  line-height: 1.4;
}

.diff-del {
  background: hsla(0, 84%, 60%, 0.12);
  color: #f87171;
  text-decoration: line-through;
}

.diff-add {
  background: hsla(152, 69%, 45%, 0.12);
  color: #34d399;
}

.diff-tag {
  font-weight: 700;
  margin-right: 4px;
}

.timeline-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-empty-hint {
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Memorial Banner & Candle Actions */
.memorial-banner {
  padding: 14px 16px;
  background: hsla(0, 0%, 15%, 0.45);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
}

.memorial-banner.deleted {
  background: hsla(215, 25%, 15%, 0.45);
}

.memorial-banner-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.memorial-banner p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.memorial-actions {
  margin-top: 10px;
}

.btn-send-candle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f59e0b;
  background: hsla(38, 92%, 50%, 0.12);
  border: 1px solid hsla(38, 92%, 50%, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-send-candle:hover {
  background: hsla(38, 92%, 50%, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 0 16px hsla(38, 92%, 50%, 0.35);
}

/* Polaroid Actions Row */
.polaroid-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-drawer-primary {
  flex: 1.2;
  padding: 12px 18px;
  background: var(--accent-primary);
  color: #000000;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius-full);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
}

.btn-drawer-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-drawer-secondary {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-full);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

/* --------------------------------------------------------------------------
   10. Admin Shell & Modules
   -------------------------------------------------------------------------- */
.admin-shell-container {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 48px;
  position: relative;
  z-index: 1;
}

.admin-welcome-hero {
  margin-bottom: 24px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.admin-welcome-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 10%;
  width: 300px;
  height: 180px;
  background: radial-gradient(circle, var(--accent-gold-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.admin-shell-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
}

/* 4 联排核心遥测监控条 (HUD Telemetry Ribbon) */
.admin-hud-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.hud-item {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hud-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-icon.icon-blue {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hud-icon.icon-gold {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hud-icon.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.hud-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.hud-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.hud-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-value {
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
  white-space: nowrap;
}

.hud-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hud-badge-dot.active {
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

.hud-badge-dot.inactive {
  background: var(--accent-danger);
  box-shadow: 0 0 8px var(--accent-danger);
}

.hud-latency-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
}

.hud-latency-pill.fast {
  background: hsla(152, 69%, 45%, 0.15);
  color: var(--accent-success);
  border: 1px solid hsla(152, 69%, 45%, 0.35);
  box-shadow: 0 0 8px hsla(152, 69%, 45%, 0.2);
}

.hud-latency-pill.normal {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hud-latency-pill.slow {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.hud-latency-pill.error {
  background: hsla(0, 0%, 100%, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* 62% : 38% 黄金分割 Executive Bento Grid (左侧日志自适应填充满) */
.admin-bento-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.bento-col-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.bento-col-main .vault-panel-card {
  margin-bottom: 0;
}

#panel-sync {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento-col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-col-side .vault-panel-card {
  margin-bottom: 0;
}

.vault-panel-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vault-panel-card:hover {
  border-color: var(--border-medium);
}

.panel-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.panel-heading svg {
  color: var(--accent-primary);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}

.status-tag.active {
  background: hsla(152, 69%, 45%, 0.15);
  border-color: hsla(152, 69%, 45%, 0.4);
  color: var(--accent-success);
}

.status-tag.inactive {
  background: hsla(0, 0%, 100%, 0.05);
  color: var(--text-muted);
}

#panel-credentials .panel-header-line .status-tag,
#btn-logout-x-account {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

#panel-credentials .panel-header-line .status-tag {
  margin-right: 18px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cred-loading-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skeleton-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spinSkeleton 0.8s linear infinite;
}

@keyframes spinSkeleton {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.x-cookie-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.x-account-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.x-account-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
}

.x-account-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-account-display-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.x-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: hsla(152, 69%, 45%, 0.15);
  color: var(--accent-success);
}

.x-account-screen-handle {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.guide-banner {
  padding: 12px 14px;
  background: var(--accent-primary-subtle);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-group input {
  height: 42px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.fields-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.remember-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-primary);
  color: #000000;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-glow);
}

.btn-primary-action:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-primary-action:active {
  transform: scale(0.97);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

.btn-danger-full {
  border-color: hsla(350, 89%, 60%, 0.3);
  color: var(--accent-danger);
}

.btn-danger-full:hover {
  background: var(--accent-danger-subtle);
  border-color: var(--accent-danger);
  color: #fff;
}

.danger-zone-card {
  padding: 12px 14px;
  background: rgba(244, 63, 94, 0.05);
  border: 1px dashed hsla(350, 89%, 60%, 0.3);
  border-radius: var(--radius-md);
  margin-top: 2px;
}

.danger-zone-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-danger);
}

.action-subgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-subgroup-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-task-card {
  padding: 12px 16px;
  height: auto;
  text-align: left;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-medium);
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm);
}

.btn-task-card:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
  box-shadow: 0 4px 20px -4px var(--accent-primary-glow);
  transform: translateY(-1px);
}

.btn-task-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.btn-task-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main) !important;
}

.btn-task-title-row span {
  color: var(--text-main) !important;
}

.btn-task-desc {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-secondary) !important;
  opacity: 0.85;
  line-height: 1.4;
}

.link-actions-status {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.link-actions-status:hover {
  text-decoration: underline;
  color: #fff;
  transform: translateX(2px);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12.5px;
}

.full-w {
  width: 100%;
}

.sync-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
}

.sync-action-row .btn-primary-action {
  flex-shrink: 0;
  white-space: nowrap;
}

.sync-progress-box-inline {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s ease;
}

.sync-progress-box-inline .sync-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 0;
}

.sync-progress-box-inline .sync-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sync-progress-box-inline .sync-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-status-pill.suspended {
  background: hsla(350, 89%, 60%, 0.15);
  border: 1px solid hsla(350, 89%, 60%, 0.35);
  color: var(--accent-danger);
}

.badge-status-pill.deleted {
  background: hsla(38, 92%, 50%, 0.15);
  border: 1px solid hsla(38, 92%, 50%, 0.35);
  color: var(--accent-gold);
}

.memorial-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed hsla(350, 89%, 60%, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--accent-danger);
  line-height: 1.5;
}

.memorial-banner.deleted {
  background: rgba(245, 158, 11, 0.08);
  border-color: hsla(38, 92%, 50%, 0.35);
  color: var(--accent-gold);
}

.terminal-log-box.is-expanded {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.terminal-top {
  padding: 10px 16px;
  background: #09090b;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.t-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: 10px;
}

.terminal-content {
  padding: 14px 16px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  line-height: 1.6;
  color: #e2e8f0;
  flex: 1 1 0;
  min-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left !important;
  display: block;
}

.terminal-line-info { color: #38bdf8; }
.terminal-line-success { color: #10b981; font-weight: 600; }
.terminal-line-warn { color: #f59e0b; }
.terminal-line-error { color: #f43f5e; font-weight: 600; }
.terminal-line-fetch { color: #c084fc; }
.terminal-line-r2 { color: #38bdf8; font-weight: 600; text-shadow: 0 0 8px rgba(56, 189, 248, 0.3); }
.terminal-line-mutation { color: #38bdf8; font-weight: 500; }
.terminal-line-avatar { color: #c084fc; font-weight: 500; }
.terminal-line-suspended { color: #f43f5e; font-weight: 700; background: rgba(244, 63, 94, 0.15); padding: 1px 6px; border-radius: 4px; display: inline-block; margin: 1px 0; }
.terminal-line-deleted { color: #f59e0b; font-weight: 700; background: rgba(245, 158, 11, 0.15); padding: 1px 6px; border-radius: 4px; display: inline-block; margin: 1px 0; }
.terminal-line-cooldown { color: #67e8f9; font-weight: 600; text-shadow: 0 0 6px rgba(103, 232, 249, 0.3); }

/* 任务卡片运行中：遵循 Taste-Skill & Impeccable 规范的高级深色科技微质感 */
.btn-task-card.is-running {
  background: var(--bg-elevated) !important;
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 20px -4px var(--accent-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: not-allowed !important;
  opacity: 0.95;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-spin-smooth {
  animation: iconSpinSmooth 1.4s linear infinite;
  color: var(--accent-primary);
  flex-shrink: 0;
}

@keyframes iconSpinSmooth {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.badge-status-pill.running {
  background: var(--accent-primary-subtle);
  border: 1px solid var(--border-focus);
  color: var(--accent-primary);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-status-pill.running .tag-dot-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  animation: pulseDotSubtle 1.8s infinite ease-in-out;
}

@keyframes pulseDotSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card-window {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  animation: authCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

@keyframes authCardPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.header-inner.admin-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}

#admin-header-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.auth-lock-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 16px var(--accent-primary-glow));
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-lock-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.auth-card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.auth-form-body {
  text-align: left;
}

.auth-error-banner {
  padding: 10px;
  background: var(--accent-danger-subtle);
  border: 1px solid hsla(350, 89%, 60%, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-danger);
  font-size: 12.5px;
  margin-bottom: 14px;
}

.shake-error {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* --------------------------------------------------------------------------
   11. Floating Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  animation: toastSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   12. Minimal Modern Footer
   -------------------------------------------------------------------------- */
.v2-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  padding: 18px 28px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.dot-sep {
  opacity: 0.4;
  margin: 0 4px;
}

.engine-badge {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 600;
}

.footer-shortcuts kbd {
  padding: 1px 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin: 0 2px;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content-grid, .admin-bento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .header-search-wrap {
    max-width: 320px;
  }

  .hero-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .v2-header {
    padding: 10px 16px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-search-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .v2-main, .admin-shell-container {
    padding: 16px 16px 36px;
  }

  .hero-section {
    padding: 24px 20px;
    min-height: auto;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }

  .filter-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-mode-tabs {
    align-self: flex-end;
  }

  .fields-row-2 {
    grid-template-columns: 1fr;
  }

  .discovery-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .inspector-drawer, .roulette-frameless-wrapper {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blogger-vault-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blogger-search-wrapper {
    min-width: 100%;
  }

  .blogger-filter-tabs {
    overflow-x: auto;
    width: 100%;
  }

  .blogger-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .blogger-row-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==================== Blogger Vault Management & Shield Panel ==================== */
.blogger-vault-panel {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.blogger-vault-panel.spotlight-active::before {
  content: '';
  position: absolute;
  top: var(--spotlight-y, 0);
  left: var(--spotlight-x, 0);
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.blogger-vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.blogger-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.blogger-search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.blogger-search-wrapper input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 36px 0 38px;
  color: var(--text-main);
  font-size: 13.5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.blogger-search-wrapper input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.blogger-search-wrapper input:focus + .search-icon {
  color: var(--accent-primary);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.clear-search-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.blogger-filter-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: calc(var(--radius-md) - 3px);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.tab-badge.active {
  background: hsla(152, 69%, 45%, 0.15);
  color: var(--accent-success);
}

.tab-badge.blocked {
  background: hsla(0, 84%, 60%, 0.15);
  color: #ef4444;
}

.blogger-sort-select-box {
  position: relative;
  width: 168px;
}

.blogger-sort-trigger-btn {
  height: 40px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  outline: none;
  transition: all 0.2s ease;
  user-select: none;
}

.blogger-sort-trigger-btn span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.blogger-sort-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.blogger-sort-trigger-btn[aria-expanded="true"] {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.blogger-sort-trigger-btn .sort-prefix-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.blogger-sort-trigger-btn .arrow-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.blogger-sort-trigger-btn[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}

.blogger-sort-select-box .select-dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  box-sizing: border-box;
  top: calc(100% + 6px);
  z-index: 120;
}

/* Blogger List Rows */
.blogger-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
  position: relative;
  z-index: 1;
}

.blogger-list-loading, .blogger-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.blogger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  animation: rowStaggerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rowStaggerIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blogger-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.blogger-row.is-blocked {
  opacity: 0.65;
  border-style: dashed;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.02);
}

.blogger-row.is-blocked:hover {
  opacity: 0.9;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Collapse Exit Animation for Smooth Filtering/Blocking */
.blogger-row.is-collapsing {
  height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  transform: scaleY(0) !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.blogger-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.blogger-row-avatar-box {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.blogger-row-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: transform 0.2s ease;
}

.blogger-row:hover .blogger-row-avatar {
  transform: scale(1.05);
}

.blogger-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blogger-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blogger-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogger-row-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.badge-blocked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.blogger-row-bio {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
  line-height: 1.4;
}

.blogger-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.blogger-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.blogger-followers-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-spark);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.blogger-backup-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.blogger-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.btn-action-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-action-icon:active {
  transform: scale(0.95);
}

.btn-action-block {
  padding: 0 10px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-action-block.to-block {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-action-block.to-block:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-action-block.to-unblock {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.btn-action-block.to-unblock:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Pagination Bar */
.blogger-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-page-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.btn-page-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-current-indicator {
  font-family: var(--font-mono);
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. Admin Multi-Tab System & Analytics Dashboard (React-Bits & Impeccable)
   -------------------------------------------------------------------------- */

/* Top Segmented Control Navigation Tab Bar */
.admin-tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow-x: auto;
  max-width: 100%;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.admin-tab-btn svg {
  color: var(--text-muted);
  transition: all 0.22s ease;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-chip);
}

.admin-tab-btn:hover svg {
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  color: var(--text-main);
  background: var(--bg-surface-solid);
  border-color: var(--border-medium);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-tab-btn.active svg {
  color: var(--accent-primary);
}

.admin-tab-btn:active {
  transform: scale(0.97);
}

[data-theme="light"] .admin-tab-btn.active {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  line-height: 1.2;
}

.admin-tab-btn.active .tab-nav-badge {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.tab-nav-badge.hot {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-spark);
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 1px 6px 1px 5px;
  line-height: 1.2;
}

.tab-nav-badge.hot svg {
  color: var(--accent-spark);
  flex-shrink: 0;
}

/* Tab Panes Transition & Animation */
.admin-tab-pane {
  display: block;
  animation: tabPaneFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-tab-pane.hidden {
  display: none !important;
}

@keyframes tabPaneFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   14. Analytics KPI Bento Grid (6 Cards)
   -------------------------------------------------------------------------- */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card.highlight-glow {
  border-color: rgba(236, 72, 153, 0.35);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, var(--bg-surface) 100%);
}

.kpi-card.highlight-glow:hover {
  border-color: var(--accent-spark);
  box-shadow: 0 0 20px -4px rgba(236, 72, 153, 0.25);
}

.kpi-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap.icon-flame {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-spark);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.kpi-icon-wrap.icon-blue {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.kpi-icon-wrap.icon-gold {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.kpi-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.kpi-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.kpi-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.kpi-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. Analytics Visualizations Bento Layout
   -------------------------------------------------------------------------- */
.analytics-bento-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-row-split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}

.analytics-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.analytics-card.flex-1 {
  min-height: 380px;
}

.analytics-card.side-card {
  min-height: 380px;
}

.analytics-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.analytics-tag-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-tag-pill.spark {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-spark);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.analytics-tag-pill.primary {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.analytics-tag-pill.gold {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.analytics-tag-pill.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.analytics-tag-pill.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* --------------------------------------------------------------------------
   16. Leaderboard Lists (Top 10 Rankings)
   -------------------------------------------------------------------------- */
.leaderboard-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 12px;
}

.leaderboard-row:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateX(3px);
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.leaderboard-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.leaderboard-row.rank-1 .leaderboard-rank {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.leaderboard-row.rank-2 .leaderboard-rank {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #000;
  border-color: #cbd5e1;
  box-shadow: 0 0 8px rgba(226, 232, 240, 0.3);
}

.leaderboard-row.rank-3 .leaderboard-rank {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 0 8px rgba(180, 83, 9, 0.3);
}

.leaderboard-avatar-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.leaderboard-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaderboard-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.leaderboard-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-handle {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.leaderboard-click-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-spark);
  border: 1px solid rgba(236, 72, 153, 0.25);
  white-space: nowrap;
}

.leaderboard-followers-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* Source distribution breakdown bar inside row */
.leaderboard-source-bar-wrap {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.leaderboard-source-seg {
  height: 100%;
}

.leaderboard-source-seg.seg-card { background: #38bdf8; }
.leaderboard-source-seg.seg-timeline { background: #a855f7; }
.leaderboard-source-seg.seg-roulette { background: #ec4899; }

/* --------------------------------------------------------------------------
   17. Chart Canvas Wrappers & Legends
   -------------------------------------------------------------------------- */
.chart-canvas-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-canvas-wrap.doughnut-wrap {
  height: 200px;
  margin: 10px 0;
}

.chart-canvas-wrap.bar-wrap {
  height: 240px;
  margin: 10px 0;
}

.custom-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   18. Health Breakdown Grid
   -------------------------------------------------------------------------- */
.health-breakdown-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

.health-chart-col {
  width: 100%;
}

.health-cards-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.health-stat-pill {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.health-stat-pill .pill-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-indicator.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.pill-indicator.dot-red { background: #f43f5e; box-shadow: 0 0 8px rgba(244, 63, 94, 0.4); }
.pill-indicator.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.pill-indicator.dot-blue { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.4); }

.health-stat-pill .pill-text {
  display: flex;
  flex-direction: column;
}

.health-stat-pill .pill-title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.health-stat-pill .pill-val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1px;
}

/* Responsive Breakpoints for Admin Multi-Tab System */
@media (max-width: 1280px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .analytics-row-split {
    grid-template-columns: 1fr;
  }
  .health-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .health-cards-col {
    grid-template-columns: 1fr;
  }
  .leaderboard-source-bar-wrap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

