:root {
  --bg-dark: #0D1117;
  --bg-panel: #161B22;
  --bg-card: #1C2128;
  --bg-elevated: #21262D;
  --bg-input: #0D1117;
  --border: #30363D;
  --border-light: #3D444D;
  --border-muted: #21262D;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --text-link: #58A6FF;
  --accent: #2F81F7;
  --accent-hover: #58A6FF;
  --accent-muted: #1F6FEB;
  --accent-subtle: rgba(47, 129, 247, 0.15);
  --accent-glow: rgba(47, 129, 247, 0.4);
  --success: #3FB950;
  --success-subtle: rgba(63, 185, 80, 0.15);
  --warning: #D29922;
  --warning-subtle: rgba(210, 153, 34, 0.15);
  --danger: #F85149;
  --danger-subtle: rgba(248, 81, 73, 0.15);
  --pro-gold: #F0B232;
  --pro-gradient: linear-gradient(135deg, #F0B232, #E09422);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 20px rgba(47, 129, 247, 0.3);
  --shadow-glow: 0 0 40px rgba(47, 129, 247, 0.2);
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 64px;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  animation: orbFloat 30s infinite ease-in-out;
}

.orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -300px;
  left: -250px;
}

.orb:nth-child(2) {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-muted), transparent 70%);
  top: 35%;
  right: -180px;
  animation-delay: -10s;
}

.orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -200px;
  left: 20%;
  animation-delay: -20s;
}

.orb:nth-child(4) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-muted), transparent 70%);
  top: 60%;
  left: 60%;
  animation-delay: -5s;
}

@keyframes orbFloat{

0%, 100% { transform: translate(0, 0) scale(1); }
25% { transform: translate(60px, -40px) scale(1.05); }
50% { transform: translate(-30px, 60px) scale(0.95); }
75% { transform: translate(40px, 30px) scale(1.02); }

}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 129, 247, 0.015) 1px, transparent 1px),
linear-gradient(90deg, rgba(47, 129, 247, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.container,
main.container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 98%;
}

.index-shell {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn{

from { opacity: 0; }
to { opacity: 1; }

}

.sv-header-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgb(13 17 23 / 34%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-smooth);
  height: 64px;
}

body.sv-scrolled .sv-header-new {
  background: rgba(13, 17, 23, 0.95);
  box-shadow: var(--shadow-lg);
}

.sv-header-glow {
  display: none !important;
}

.sv-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.sv-header-left {
  display: flex;
  align-items: center;
}

.sv-logo-new {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.sv-logo-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sv-logo-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.sv-logo-shine {
  display: none;
}

.sv-logo-text {
  display: flex;
  flex-direction: column;
}

.sv-logo-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.sv-logo-tagline {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.sv-nav-new {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.sv-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.sv-nav-item:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.sv-nav-icon {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.sv-nav-item:hover .sv-nav-icon {
  color: var(--accent);
}

.sv-nav-label {
  white-space: nowrap;
}

.sv-nav-indicator {
  display: none;
}

.sv-nav-arrow {
  font-size: 10px;
  margin-left: var(--space-xs);
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.sv-nav-dropdown-new.active .sv-nav-arrow {
  transform: rotate(180deg);
}

.sv-nav-dropdown-new {
  position: relative;
}

.sv-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  min-width: 260px;
  overflow: hidden;
  z-index: 100;
}

.sv-nav-dropdown-new.active .sv-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.sv-dropdown-content {
  padding: var(--space-sm);
}

.sv-dropdown-section {
  display: flex;
  flex-direction: column;
}

.sv-dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sv-dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sv-dropdown-link:hover {
  background: var(--accent-subtle);
}

.sv-dropdown-link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.sv-dropdown-link-content {
  flex: 1;
  min-width: 0;
}

.sv-dropdown-link-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.sv-dropdown-link-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.sv-dropdown-link-arrow {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
}

.sv-dropdown-link:hover .sv-dropdown-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sv-dropdown-link-admin {
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}

.sv-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-sm) 0;
}

.sv-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sv-search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sv-search-trigger:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.sv-kbd {
  padding: 2px 6px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-family: monospace;
  color: var(--text-muted);
}

.sv-action-group {
  position: relative;
}

.sv-action-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.sv-action-button:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.sv-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-user-button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sv-user-button:hover {
  background: var(--accent-subtle);
}

.sv-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.sv-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-user-arrow {
  font-size: 10px;
  color: var(--text-muted);
}

.sv-action-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
}

.sv-dropdown-panel-large {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
  top: calc(100% + 8px);
  right: 0;
}

.sv-action-dropdown.active .sv-dropdown-panel-large {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sv-dropdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.sv-dropdown-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-dropdown-action-btn {
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-subtle);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sv-dropdown-action-btn:hover {
  background: var(--accent);
  color: white;
}

.sv-dropdown-scroll {
  max-height: 300px;
  overflow-y: auto;
}

.sv-dropdown-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  text-align: center;
}

.sv-empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.sv-empty-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.sv-empty-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.sv-notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-muted);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.sv-notification-item:hover {
  background: var(--bg-card);
}

.sv-notification-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

.sv-notification-content {
  flex: 1;
  min-width: 0;
}

.sv-notification-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.sv-notification-time {
  font-size: 11px;
  color: var(--text-muted);
}

.sv-notification-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.sv-user-info-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.sv-user-info-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.sv-user-info-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}

.sv-user-info-details {
  flex: 1;
}

.sv-user-info-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-user-info-email {
  font-size: 12px;
  color: var(--text-muted);
}

.sv-dropdown-menu-items {
  padding: var(--space-sm);
}

.sv-dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sv-dropdown-menu-item:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.sv-dropdown-menu-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}

.sv-dropdown-menu-item:hover i {
  color: var(--accent);
}

.sv-logout-item:hover {
  background: var(--danger-subtle);
}

.sv-logout-item:hover i {
  color: var(--danger);
}

.sv-auth-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sv-auth-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sv-auth-login {
  color: var(--text-secondary);
  background: transparent;
}

.sv-auth-login:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.sv-auth-signup {
  background: var(--accent);
  color: white;
}

.sv-auth-signup:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.hero-v2 {
  position: relative;
  padding: 60px var(--space-xl) 60px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: 20px auto 40px;
  max-width: 1400px;
  overflow: hidden;
  animation: slideUp 0.6s ease;
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleRise 20s infinite ease-out;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2.5s;
}

.particle:nth-child(3) {
  left: 35%;
  animation-delay: 5s;
}

.particle:nth-child(4) {
  left: 50%;
  animation-delay: 1.5s;
}

.particle:nth-child(5) {
  left: 65%;
  animation-delay: 3.5s;
}

.particle:nth-child(6) {
  left: 75%;
  animation-delay: 6s;
}

.particle:nth-child(7) {
  left: 85%;
  animation-delay: 2s;
}

.particle:nth-child(8) {
  left: 95%;
  animation-delay: 4.5s;
}

@keyframes particleRise{

0% { transform: translateY(100vh) scale(0); opacity: 0; }
10% { opacity: 0.6; }
90% { opacity: 0.6; }
100% { transform: translateY(-50px) scale(1); opacity: 0; }

}

.hero-v2-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-v2-title h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-v2-title h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-v2-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-v2 {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.search-v2 input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.search-v2 input::placeholder {
  color: var(--text-muted);
}

.search-v2 input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.search-v2 button {
  padding: var(--space-md) var(--space-xl);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-v2 button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.search-v2-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: var(--space-xl);
}

.search-v2-hint b {
  color: var(--text-secondary);
}

.stats-strip-small {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-item-small {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 14px;
}

.stat-item-small i {
  color: var(--accent);
  font-size: 16px;
}

.index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-lg);
  flex-wrap: wrap;
}

.tabs-v2 {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-panel);
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tab-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tab-v2:hover {
  color: var(--text-secondary);
  background: var(--bg-card);
}

.tab-v2.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.custom-select {
  position: relative;
}

.custom-select select {
  appearance: none;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  min-width: 120px;
}

.custom-select select:focus {
  outline: none;
  border-color: var(--accent);
}

.custom-select select option {
  background: var(--bg-panel);
  color: var(--text-secondary);
  padding: var(--space-sm);
}

.custom-select::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: var(--text-muted);
  pointer-events: none;
}

.select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  min-width: 120px;
  transition: all var(--transition-fast);
}

.select-display:hover {
  border-color: var(--border-light);
}

.select-display::after {
  content: '▼';
  font-size: 8px;
  color: var(--text-muted);
  margin-left: var(--space-sm);
}

.custom-select.init select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  display: none;
}

.custom-options button {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-options button:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.custom-options button.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-dropdown-wrapper {
  position: relative;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
  z-index: 100;
}

.filter-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-inner {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.filter-check:hover {
  background: var(--bg-card);
}

.filter-check input {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.filter-check input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-check input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.label-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-dropdown-actions {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--border);
}

.filter-action-btn {
  flex: 1;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-action-btn.reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.filter-action-btn.reset:hover {
  background: var(--bg-card);
}

.filter-action-btn.apply {
  background: var(--accent);
  border: none;
  color: white;
}

.filter-action-btn.apply:hover {
  background: var(--accent-hover);
}

.index-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.script-card-v2 {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  animation: slideUp 0.4s ease backwards;
}

.script-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.script-card-v2 a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.thumb-v2 {
  position: relative;
  height: 160px;
  background: var(--bg-card);
  overflow: hidden;
}

.thumb-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.script-card-v2:hover .thumb-v2 img {
  transform: scale(1.05);
}

.badge-row {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.chip {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.chip.new {
  background: var(--success);
  color: white;
}

.chip.trending {
  background: var(--warning);
  color: #1a1a1a;
}

.chip.updated {
  background: var(--accent);
  color: white;
}

.chip.bumped {
  background: var(--pro-gold);
  color: #1a1a1a;
}

.icon-row {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  gap: var(--space-xs);
}

.icon-chip {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 10px;
}

.game-badge-v3 {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-badge-v3:hover {
  background: var(--accent);
}

.body-v2 {
  padding: var(--space-md);
}

.title-v2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.meta-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.uploader-avatar {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.user-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.username-pro {
  color: var(--pro-gold);
}

.verified-badge {
  color: var(--accent);
  font-size: 12px;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: var(--pro-gradient);
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 700;
  color: #1a1a1a;
}

.stats-v2 {
  display: flex;
  gap: var(--space-sm);
}

.pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-muted);
}

.pill i {
  font-size: 10px;
}

.pro-user-card {
  border-color: rgba(240, 178, 50, 0.3);
}

.pro-user-card:hover {
  border-color: var(--pro-gold);
  box-shadow: 0 0 20px rgba(240, 178, 50, 0.2);
}

.empty-v2 {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-v2 i {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-v2 h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-v2 p {
  font-size: 14px;
}

.index-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  padding: 0 var(--space-lg);
}

.index-page-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.index-page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.index-page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.why-section {
  max-width: 1400px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.why-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-size: 24px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.why-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta-section {
  max-width: 1400px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
}

.cta-content {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cta-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.cta-btn.primary {
  background: var(--accent);
  color: white;
}

.cta-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.cta-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cta-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sv-footer-bar {
  width: 100%;
  background: #0b0f1a5e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  font-family: sans-serif;
}

.sv-footer-bar-content {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sv-bar-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sv-bar-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sv-bar-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.sv-bar-tagline, .sv-bar-copyright {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}

.sv-bar-divider {
  color: rgba(255, 255, 255, 0.1);
}

.sv-bar-nav {
  display: flex;
  gap: 15px;
}

.sv-bar-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.sv-bar-nav a:hover {
  color: #3b82f6;
}

.sv-muted {
  opacity: 0.5;
  font-style: italic;
}

.sv-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.sv-mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.sv-mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sv-mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.sv-mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sv-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.sv-mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.sv-mobile-menu-content {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  padding: var(--space-lg);
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform var(--transition-smooth);
}

.sv-mobile-menu.active .sv-mobile-menu-content {
  transform: translateY(0);
}

.sv-mobile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  color: var(--text-secondary);
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sv-mobile-menu-item:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.sv-mobile-menu-item i {
  width: 20px;
  text-align: center;
}

.sv-mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
}

.sv-mobile-menu-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  letter-spacing: 0.5px;
}

.sv-mobile-menu-highlight {
  color: var(--text-primary);
}

.sv-mobile-menu-primary {
  background: var(--accent);
  color: white;
}

.sv-mobile-menu-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.sv-script-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.sv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.sv-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.sv-breadcrumb a:hover {
  color: var(--accent);
}

.sv-breadcrumb i.fa-chevron-right {
  font-size: 10px;
  color: var(--text-muted);
}

.sv-breadcrumb span {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-script-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.sv-script-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sv-script-header {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sv-script-header-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
}

.sv-script-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card);
}

.sv-script-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-script-thumb-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sv-badge {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}

.sv-badge.key {
  background: rgba(248, 81, 73, 0.9);
  color: white;
}

.sv-badge.free {
  background: rgba(63, 185, 80, 0.9);
  color: white;
}

.sv-badge.mobile {
  background: rgba(47, 129, 247, 0.9);
  color: white;
}

.sv-script-info {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-script-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-subtle);
  border: 1px solid rgba(47, 129, 247, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
}

.sv-script-game:hover {
  background: var(--accent);
  color: white;
  transform: translateX(4px);
}

.sv-script-game img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.sv-script-game.universal {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

.sv-script-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.sv-script-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.sv-script-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sv-script-meta i {
  color: var(--text-muted);
  font-size: 12px;
}

.sv-script-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s;
}

.sv-script-uploader:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

.sv-script-uploader img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.sv-script-uploader-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sv-script-uploader-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sv-script-uploader-name.pro {
  color: #fbbf24;
}

.sv-script-uploader-name i {
  color: var(--accent);
  font-size: 14px;
}

.sv-script-uploader-name .pro-tag {
  padding: 2px 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
}

.sv-script-uploader-stats {
  font-size: 12px;
  color: var(--text-muted);
}

.sv-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sv-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.sv-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  flex: 1;
  min-width: 160px;
}

.sv-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(47, 129, 247, 0.4);
}

.sv-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-btn.active i {
  color: var(--accent);
}

.sv-script-code {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sv-script-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.sv-script-code-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-script-code-title i {
  color: var(--accent);
}

.sv-script-code-lines {
  padding: 3px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.sv-script-code-actions {
  display: flex;
  gap: 8px;
}

.sv-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sv-code-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-script-code-body {
  max-height: 500px;
  overflow: auto;
}

.sv-script-code-body pre {
  margin: 0;
  padding: 20px;
  background: #0d1117;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e6edf3;
  white-space: pre-wrap;
  word-break: break-word;
}

.sv-script-code-body code {
  font-family: inherit;
}

.sv-script-section {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sv-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-section-header i {
  color: var(--accent);
  font-size: 16px;
}

.sv-section-content {
  padding: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.sv-executor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.sv-executor-badge {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.sv-comment-count {
  margin-left: auto;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.sv-comment-form {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.sv-comment-form textarea {
  flex: 1;
  min-height: 80px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
}

.sv-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.sv-comment-form .sv-btn {
  align-self: flex-end;
}

.sv-comment-login {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sv-comment-login a {
  color: var(--accent);
  font-weight: 600;
}

.sv-comments-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-comments-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sv-comments-empty i {
  font-size: 32px;
  opacity: 0.5;
}

.sv-comment {
  display: flex;
  gap: 14px;
}

.sv-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sv-comment-body {
  flex: 1;
}

.sv-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sv-comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.sv-comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.sv-script-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-sidebar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sv-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-sidebar-header i {
  color: var(--accent);
}

.sv-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.sv-stat {
  padding: 16px;
  background: var(--bg-panel);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sv-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sv-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sv-info-list {
  padding: 12px 0;
}

.sv-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.sv-info-item:last-child {
  border-bottom: none;
}

.sv-info-label {
  font-size: 13px;
  color: var(--text-muted);
}

.sv-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-info-value.working {
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sv-info-value.working i {
  font-size: 8px;
}

.sv-info-value.patched {
  color: var(--danger);
}

.sv-howto-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-howto-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sv-howto-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sv-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.sv-sidebar-link:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-sidebar-link i:last-child {
  margin-left: auto;
  font-size: 11px;
}

.sv-game-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.sv-game-preview:hover {
  background: var(--bg-card);
}

.sv-game-preview img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.sv-game-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sv-game-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-game-preview-action {
  font-size: 12px;
  color: var(--accent);
}

.sv-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: var(--success);
  border-radius: var(--radius-lg);
  color: white;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
}

.sv-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 10000;
}

.sv-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sv-modal {
  width: 90%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.sv-modal-overlay.show .sv-modal {
  transform: scale(1);
}

.sv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sv-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.sv-modal-header h3 i {
  color: var(--accent);
}

.sv-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sv-modal-close:hover {
  background: var(--danger-subtle);
  color: var(--danger);
}

.sv-modal-body {
  padding: 20px;
}

.sv-share-url {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sv-share-url input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 13px;
  font-family: monospace;
}

.sv-share-url button {
  padding: 12px 16px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.sv-share-url button:hover {
  background: var(--accent-hover);
}

.sv-share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sv-share-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 20px;
  color: white;
  transition: all 0.2s;
}

.sv-share-btn:hover {
  transform: translateY(-3px);
}

.sv-share-btn.twitter {
  background: #1da1f2;
}

.sv-share-btn.discord {
  background: #5865f2;
}

.sv-share-btn.reddit {
  background: #ff4500;
}

.game-page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 200px);
}

.game-hero-v2 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08), transparent 50%);
  pointer-events: none;
}

.game-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.breadcrumbs-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.breadcrumbs-v2 a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-v2 a:hover {
  color: #fff;
}

.breadcrumbs-v2 i.fa-chevron-right {
  font-size: 10px;
  opacity: 0.4;
}

.game-hero-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.game-thumb-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-thumb-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 60%);
  pointer-events: none;
}

.game-platform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
}

.game-platform-badge i {
  color: #ff4444;
}

.game-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-title-v2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.game-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.game-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.game-stat-item i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.game-stat-item .stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.game-stat-item .stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.game-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.game-actions-v2 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-game.primary {
  background: linear-gradient(90deg, #f2f2f2, #bdbdbd);
  color: #111;
  border: none;
}

.btn-game.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 242, 242, 0.2);
}

.btn-game.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-game.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.game-scripts-section {
  margin-top: 40px;
}

.scripts-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title-v2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-v2 i {
  color: rgba(255, 255, 255, 0.6);
}

.section-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.scripts-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.scripts-count-badge i {
  color: rgba(255, 255, 255, 0.6);
}

.game-scripts-grid-v2 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.empty-state-v2 {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.empty-icon-v2 {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon-v2 i {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state-v2 h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.empty-state-v2 p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px 0;
}

.upload-cta-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-top: 20px;
}

.cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon i {
  font-size: 24px;
  color: #f59e0b;
}

.cta-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.sv-executor-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sv-executor-badge .executor-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.sv-executor-badge i {
  font-size: 14px;
  color: var(--accent);
}

.sv-btn.lab {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  color: white;
}

.sv-btn.lab:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.sv-comment-form-avatar {
  flex-shrink: 0;
}

.sv-comment-form-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sv-comment-form-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-comment-form-input textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
}

.sv-comment-form-input textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.sv-comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sv-char-count {
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes slideUp{

from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }

}

.sv-dropdown-panel,
.sv-dropdown-panel-large {
  position: absolute;
  z-index: 10001 !important;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.orbs-container,
.orbs-container *,
.grid-overlay,
.particles {
  pointer-events: none !important;
  z-index: 0 !important;
}

main.container,
.sv-edit-page,
.sv-upload-page,
.sv-script-page,
.container {
  position: relative;
  z-index: 1;
}

.sv-nav-executor {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08)) !important;
  border: 1px solid rgba(59,130,246,.2) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
}

.sv-nav-executor:hover {
  border-color: rgba(59,130,246,.4) !important;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.12)) !important;
}

.sv-nav-executor .sv-nav-label {
  background: linear-gradient(90deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.script-card-v2:nth-child(1) {
  animation-delay: 0.05s;
}

.script-card-v2:nth-child(2) {
  animation-delay: 0.1s;
}

.script-card-v2:nth-child(3) {
  animation-delay: 0.15s;
}

.script-card-v2:nth-child(4) {
  animation-delay: 0.2s;
}

.script-card-v2:nth-child(5) {
  animation-delay: 0.25s;
}

.script-card-v2:nth-child(6) {
  animation-delay: 0.3s;
}

.script-card-v2:nth-child(7) {
  animation-delay: 0.35s;
}

.script-card-v2:nth-child(8) {
  animation-delay: 0.4s;
}

.sv-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 0 24px;
  flex-wrap: wrap;
  text-align: center;
}

.sv-hero-left h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
}

.sv-hero-left h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sv-hero-left p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.sv-search {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.sv-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.1);
}

.sv-search i {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.sv-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}

.sv-search input::placeholder {
  color: var(--text-muted);
}

.sv-search kbd {
  padding: 2px 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}

.sv-hero-actions {
  display: flex;
  gap: 8px;
}

.sv-hero-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.sv-hero-btn.primary {
  background: var(--accent);
  color: white;
}

.sv-hero-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 129, 247, 0.3);
}

.sv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 16px;
  flex-wrap: wrap;
}

.sv-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-result-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sv-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-panel);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.sv-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.sv-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.sv-tab.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.sv-tab i {
  font-size: 11px;
}

.sv-quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sv-filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.sv-filter-chip input {
  display: none;
}

.sv-filter-chip:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.sv-filter-chip.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-filter-chip i {
  font-size: 10px;
}

.sv-more-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.sv-more-filters:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.sv-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  animation: cardIn 0.3s ease backwards;
}

.sv-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.sv-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sv-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
}

.sv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sv-card:hover .sv-card-thumb img {
  transform: scale(1.04);
}

/* ═══ CHIP ROW — animated floating badges ═══ */
.sv-chip-row {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 3;
  max-width: calc(100% - 16px);
}

.sv-chip {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
  animation: chipFloat 3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-chip:hover {
  transform: scale(1.1) translateY(-1px);
}

/* Stagger the float animation per chip */
.sv-chip:nth-child(1) { animation-delay: 0s; }
.sv-chip:nth-child(2) { animation-delay: 0.4s; }
.sv-chip:nth-child(3) { animation-delay: 0.8s; }
.sv-chip:nth-child(4) { animation-delay: 1.2s; }
.sv-chip:nth-child(5) { animation-delay: 1.6s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── NEW — green with shimmer ── */
.sv-chip-new {
  background: linear-gradient(135deg, #3FB950, #2ea043);
  color: white;
  box-shadow: 0 2px 8px rgba(63, 185, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.sv-chip-new::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: chipShimmer 2.5s ease-in-out infinite;
}

@keyframes chipShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ── HOT/TRENDING — orange with pulse ── */
.sv-chip-hot {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: white;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  animation: chipFloat 3s ease-in-out infinite, chipPulse 1.5s ease-in-out infinite;
}

.sv-chip-hot i {
  animation: fireFlicker 0.6s ease-in-out infinite alternate;
}

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 2px 16px rgba(249, 115, 22, 0.7); }
}

@keyframes fireFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.15) rotate(3deg); }
}

/* ── UPDATE — blue ── */
.sv-chip-update {
  background: linear-gradient(135deg, var(--accent), #1d6fdb);
  color: white;
  box-shadow: 0 2px 8px rgba(47, 129, 247, 0.35);
}

.sv-chip-update i {
  animation: spinOnce 2s ease-in-out infinite;
}

@keyframes spinOnce {
  0%, 70%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(360deg); }
}

/* ── BUMP — gold ── */
.sv-chip-bump {
  background: linear-gradient(135deg, #F0B232, #D4950A);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(240, 178, 50, 0.4);
}

.sv-chip-bump i {
  animation: bumpBounce 1.5s ease-in-out infinite;
}

@keyframes bumpBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(0); }
}

/* ── KEY — red/warm, lock wiggle ── */
.sv-chip-key {
  background: linear-gradient(135deg, #F85149, #cf3830);
  color: white;
  box-shadow: 0 2px 8px rgba(248, 81, 73, 0.35);
}

.sv-chip-key i {
  animation: keyWiggle 2s ease-in-out infinite;
}

@keyframes keyWiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  95% { transform: rotate(-6deg); }
}

/* ── PAID — purple/premium ── */
.sv-chip-paid {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
  color: white;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.35);
}

.sv-chip-paid i {
  animation: coinSpin 2s ease-in-out infinite;
}

@keyframes coinSpin {
  0%, 70%, 100% { transform: rotateY(0deg); }
  85% { transform: rotateY(180deg); }
}

/* ── MOBILE — teal ── */
.sv-chip-mobile {
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  color: white;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

.sv-chip-mobile i {
  animation: phoneBuzz 3s ease-in-out infinite;
}

@keyframes phoneBuzz {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-4deg); }
  94% { transform: rotate(4deg); }
  96% { transform: rotate(-3deg); }
  98% { transform: rotate(2deg); }
}

/* ── Remove old icon row (now merged into chips) ── */
.sv-icon-row { display: none; }

.sv-icon-row {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.sv-icon-dot {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 7px;
  color: white;
  font-size: 10px;
}

.sv-game-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}

.sv-game-tag:hover {
  background: var(--accent);
}

.sv-game-tag i {
  margin-right: 4px;
  font-size: 10px;
  opacity: 0.8;
}

.sv-views-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.sv-views-overlay i {
  margin-right: 3px;
  font-size: 9px;
  opacity: 0.7;
}

.sv-card-body {
  padding: 12px 14px 14px;
}

.sv-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.sv-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sv-card-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.sv-card-user {
  color: var(--text-secondary);
  font-weight: 500;
}

.sv-user-pro {
  color: var(--pro-gold);
}

.sv-verified {
  color: var(--accent);
  font-size: 11px;
}

.sv-pro-tag {
  color: var(--pro-gold);
  font-size: 10px;
}

.sv-card-dot {
  color: var(--text-muted);
  opacity: 0.4;
}

.sv-card-time {
  color: var(--text-muted);
}

.sv-card-stats {
  display: flex;
  gap: 6px;
}

.sv-stat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.sv-stat-pill i {
  font-size: 9px;
  opacity: 0.6;
}

.sv-card-pro {
  border-color: rgba(240, 178, 50, 0.15);
}

.sv-card-pro:hover {
  border-color: rgba(240, 178, 50, 0.35);
  box-shadow: 0 12px 32px rgba(240, 178, 50, 0.08);
}

.sv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.sv-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
  display: block;
}

.sv-empty h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.sv-empty p {
  font-size: 13px;
  margin: 0;
}

.sv-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 28px 0;
}

.sv-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.sv-page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sv-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.sv-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.sv-footer-cta a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.sv-footer-cta a:hover {
  color: var(--accent-hover);
}

.sv-index {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.4s ease;
}

.sv-card:nth-child(1) {
  animation-delay: 0.02s;
}

.sv-card:nth-child(2) {
  animation-delay: 0.04s;
}

.sv-card:nth-child(3) {
  animation-delay: 0.06s;
}

.sv-card:nth-child(4) {
  animation-delay: 0.08s;
}

.sv-card:nth-child(5) {
  animation-delay: 0.1s;
}

.sv-card:nth-child(6) {
  animation-delay: 0.12s;
}

.sv-card:nth-child(7) {
  animation-delay: 0.14s;
}

.sv-card:nth-child(8) {
  animation-delay: 0.16s;
}

@keyframes cardIn{

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

}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

@media (max-width: 768px) {
  .sv-bar-tagline, .sv-bar-divider {
    display: none;
  }
  
  .sv-footer-bar-content {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .sv-nav-new {
    display: none;
  }
  
  .sv-mobile-menu-btn {
    display: flex;
  }
  
  .sv-mobile-menu {
    display: block;
  }
  
  .sv-search-trigger span, .sv-kbd {
    display: none;
  }
  
  .sv-search-trigger {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-v2 {
    padding: 80px var(--space-md) 40px;
    margin: 70px var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
  }
  
  .hero-v2-title h1 {
    font-size: 1.75rem;
  }
  
  .hero-v2-title p {
    font-size: 14px;
  }
  
  .search-v2 {
    flex-direction: column;
  }
  
  .search-v2 button {
    width: 100%;
    justify-content: center;
  }
  
  .stats-strip-small {
    gap: var(--space-lg);
  }
  
  .index-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tabs-v2 {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .toolbar-right {
    justify-content: center;
  }
  
  .index-grid-v2 {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
  
  .footer-grid,
  .sv-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-bottom,
  .sv-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links,
  .sv-footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sv-header-container {
    padding: 0 var(--space-md);
  }
  
  .sv-logo-text {
    display: none;
  }
  
  .sv-auth-login span, .sv-auth-signup span {
    display: none;
  }
  
  .sv-auth-signup i {
    display: block;
  }
  
  .stats-strip-small {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .cta-content {
    padding: var(--space-xl) var(--space-md);
  }
  
  .cta-content h2 {
    font-size: 22px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .hero-v2 {
    padding: 40px var(--space-md) 40px;
    margin: 16px var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
  }
  
  .hero-v2-title h1 {
    font-size: 1.75rem;
  }
  
  .hero-v2-title p {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .sv-script-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sv-script-header-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sv-script-info {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .sv-script-page {
    padding: 12px;
  }
  
  .sv-script-header-content {
    grid-template-columns: 1fr;
  }
  
  .sv-script-info {
    padding: 16px;
  }
  
  .sv-script-title {
    font-size: 1.4rem;
  }
  
  .sv-script-actions {
    flex-direction: column;
  }
  
  .sv-btn {
    width: 100%;
    justify-content: center;
  }
  
  .sv-script-code-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .sv-script-code-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .sv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .game-hero-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .game-thumb-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .scripts-header-v2 {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .game-page-shell {
    padding: 16px;
  }
  
  .game-hero-content {
    padding: 20px;
  }
  
  .game-title-v2 {
    font-size: 24px;
  }
  
  .game-actions-v2 {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-game {
    width: 100%;
  }
  
  .game-scripts-grid-v2 {
    grid-template-columns: 1fr;
  }
  
  .upload-cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-icon {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .sv-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0;
  }
  
  .sv-hero-left h1 {
    font-size: 18px;
  }
  
  .sv-search {
    max-width: 100%;
  }
  
  .sv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sv-toolbar-left {
    flex-direction: column;
  }
  
  .sv-quick-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  
  .sv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .sv-grid {
    grid-template-columns: 1fr;
  }
  
  .sv-hero-actions {
    width: 100%;
  }
  
  .sv-hero-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ CARD GRID ═══ */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 16px;
}

/* ═══ CARD — thumbnail dominant, alive ═══ */
.sv-card {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.sv-card a { display: block; color: inherit; text-decoration: none; }

/* ── Thumbnail ── */
.sv-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease, border-radius 0.25s ease;
}

.sv-card:hover .sv-card-thumb {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
}

.sv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.sv-card:hover .sv-card-thumb img {
  transform: scale(1.06);
}

/* Gradient overlay on hover */
.sv-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.sv-card:hover .sv-card-thumb::after { opacity: 1; }

/* Duration / views pill — bottom right of thumb, slides up on hover */
.sv-views-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sv-views-overlay i { margin-right: 3px; font-size: 9px; }

.sv-card:hover .sv-views-overlay {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Chips — top left, fade in on hover */
.sv-chip-row {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sv-card:hover .sv-chip-row {
  opacity: 1;
  transform: translateY(-1px);
}

.sv-chip {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.4px;
}

.sv-chip-new { background: #3FB950; color: white; }
.sv-chip-hot { background: #D29922; color: white; }
.sv-chip-update { background: var(--accent); color: white; }
.sv-chip-bump { background: #F0B232; color: #1a1a1a; }

/* Icons — top right */
.sv-icon-row {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}

.sv-card:hover .sv-icon-row {
  opacity: 1;
  transform: translateY(0);
}

.sv-icon-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  color: white;
  font-size: 11px;
  transition: background 0.15s ease;
}

.sv-icon-dot:hover { background: var(--accent); }

/* Game tag — bottom left, slides in on hover */
.sv-game-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s, background 0.15s ease;
}

.sv-card:hover .sv-game-tag {
  opacity: 1;
  transform: translateX(0);
}

.sv-game-tag:hover { background: var(--accent); }
.sv-game-tag i { margin-right: 4px; font-size: 10px; opacity: 0.8; }

/* ── Card body — compact, YouTube-style ── */
.sv-card-body {
  padding: 10px 2px 0;
}

/* Title + avatar row together */
.sv-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.sv-card:hover .sv-card-title { color: white; }

.sv-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1;
}

.sv-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.sv-card:hover .sv-card-avatar { transform: scale(1.1); }

.sv-card-user { color: var(--text-secondary); font-weight: 500; transition: color 0.15s; }
.sv-card:hover .sv-card-user { color: var(--text-primary); }
.sv-user-pro { color: var(--pro-gold); }
.sv-verified { color: var(--accent); font-size: 11px; }
.sv-pro-tag { color: var(--pro-gold); font-size: 10px; }
.sv-card-dot { opacity: 0.3; }
.sv-card-time { font-size: 11px; }

/* Stats — inline with meta, subtle */
.sv-card-stats {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.sv-stat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
}

.sv-stat-pill i { font-size: 10px; opacity: 0.5; }

/* Pro card — subtle gold shimmer on hover */
.sv-card-pro .sv-card-thumb {
  box-shadow: 0 2px 8px rgba(240, 178, 50, 0.1);
}

.sv-card-pro:hover .sv-card-thumb {
  box-shadow: 0 8px 28px rgba(240, 178, 50, 0.15);
}

/* ═══ ENTRANCE ANIMATION ═══ */
.sv-card {
  animation: cardSlide 0.4s cubic-bezier(0.2, 0, 0, 1) backwards;
}

/* ═══ GAME BAR — above title in card body ═══ */
.sv-card-game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-bottom: 6px;
  background: rgba(47, 129, 247, 0.08);
  border: 1px solid rgba(47, 129, 247, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-card-game:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateX(3px);
}

.sv-card-game i {
  font-size: 10px;
  flex-shrink: 0;
}

.sv-card-game-uni {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-muted);
  color: var(--text-muted);
  cursor: default;
}

.sv-card-game-uni:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-color: var(--border);
  transform: none;
}

/* =====================================================
   SCRIPT PAGE v2 — Clean, simple, functional
   Matches the sv- index card style
   ===================================================== */

/* ═══ PAGE LAYOUT ═══ */
.sv-script-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 20px;
  animation: fadeIn 0.4s ease;
}

/* Breadcrumb */
.sv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.sv-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.sv-breadcrumb a:hover { color: var(--accent); }
.sv-breadcrumb i.fa-chevron-right { font-size: 9px; opacity: 0.4; }
.sv-breadcrumb span { color: var(--text-primary); font-weight: 500; }

/* Grid */
.sv-script-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

@media (max-width: 1024px) { .sv-script-grid { grid-template-columns: 1fr; } }

.sv-script-main { display: flex; flex-direction: column; gap: 16px; }

/* ═══ HEADER CARD — thumbnail banner + info ═══ */
.sv-script-header {
  position: relative;
  background: var(--bg-panel);
  border-radius: 16px;
  overflow: hidden;
}

.sv-script-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  transform: scale(1.2);
  z-index: 0;
}

.sv-script-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,17,23,0.4), rgba(13,17,23,0.95));
  z-index: 1;
}

.sv-script-header-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

@media (max-width: 900px) { .sv-script-header-content { grid-template-columns: 1fr; } }

/* Thumbnail */
.sv-script-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}

@media (max-width: 900px) { .sv-script-thumb { border-radius: 16px 16px 0 0; } }

.sv-script-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-script-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.sv-badge {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}

.sv-badge.key { background: rgba(248, 81, 73, 0.85); color: white; }
.sv-badge.free { background: rgba(63, 185, 80, 0.85); color: white; }
.sv-badge.mobile { background: rgba(47, 129, 247, 0.85); color: white; }
.sv-badge.paid { background: rgba(168, 85, 247, 0.85); color: white; }

/* ═══ SCRIPT INFO ═══ */
.sv-script-info {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 900px) { .sv-script-info { padding: 20px; } }

/* Game link */
.sv-script-game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(47, 129, 247, 0.08);
  border: 1px solid rgba(47, 129, 247, 0.15);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all 0.15s;
}

.sv-script-game:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateX(3px);
}

.sv-script-game img { width: 16px; height: 16px; border-radius: 3px; }

.sv-script-game.universal {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-muted);
  color: var(--text-muted);
}

/* Title */
.sv-script-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

/* Tags */
.sv-script-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sv-tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-muted);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Meta */
.sv-script-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.sv-script-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv-script-meta i { font-size: 11px; opacity: 0.6; }

/* Uploader */
.sv-script-uploader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
}

.sv-script-uploader:hover {
  border-color: var(--accent);
  background: rgba(47,129,247,0.05);
  transform: translateY(-1px);
}

.sv-script-uploader img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sv-avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.sv-avatar-icon.small { width: 32px; height: 32px; font-size: 12px; }

.sv-script-uploader-info { display: flex; flex-direction: column; gap: 2px; }

.sv-script-uploader-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sv-script-uploader-name.pro { color: var(--pro-gold); }
.sv-script-uploader-name i.verified { color: var(--accent); font-size: 13px; }

.pro-tag {
  padding: 2px 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
}

.sv-script-uploader-stats { font-size: 11px; color: var(--text-muted); }

/* ═══ ACTION BUTTONS ═══ */
.sv-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.sv-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.sv-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  flex: 1;
  min-width: 140px;
  max-width: 100px;
}

.sv-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(47, 129, 247, 0.3);
}

.sv-btn.lab {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  color: white;
}

.sv-btn.lab:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.sv-btn.active {
  background: rgba(47,129,247,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-btn.sm { padding: 8px 14px; font-size: 12px; }
.sv-btn.full { width: 80%; margin: 12px 16px 16px; }

/* ═══ CODE BLOCK ═══ */
.sv-script-code {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  overflow: hidden;
}

.sv-script-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-muted);
}

.sv-script-code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sv-script-code-title i { color: var(--accent); font-size: 12px; }

.sv-script-code-lines {
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.sv-script-code-actions { display: flex; gap: 6px; }

.sv-code-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-muted);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.sv-code-btn:hover {
  background: rgba(47,129,247,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-script-code-body {
  max-height: 500px;
  overflow: auto;
  transition: max-height 0.3s ease;
}

.sv-script-code-body.expanded { max-height: none; }

.sv-script-code-body pre {
  margin: 0;
  padding: 16px;
  background: transparent;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ═══ SECTION CARDS ═══ */
.sv-script-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  overflow: hidden;
}

.sv-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-muted);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-section-header i { color: var(--accent); font-size: 13px; }

.sv-count-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sv-section-content {
  padding: 16px;
  color: #dddddd;
  line-height: 1.7;
  font-size: 13px;
}

/* Executors */
.sv-executor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.sv-executor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s;
}

.sv-executor-badge:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.sv-executor-badge .executor-icon { width: 16px; height: 16px; border-radius: 3px; }
.sv-executor-badge i { color: var(--accent); font-size: 12px; }

/* ═══ COMMENTS ═══ */
.sv-comment-form {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border-muted);
}

.sv-comment-form-avatar { flex-shrink: 0; }
.sv-comment-form-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.sv-comment-form-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-comment-form-input textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}

.sv-comment-form-input textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.sv-comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sv-char-count { font-size: 11px; color: var(--text-muted); }

.sv-comment-login {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sv-comment-login a { color: var(--accent); font-weight: 600; }

.sv-comments-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }

.sv-comments-loading {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sv-comments-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sv-comments-empty i { font-size: 24px; opacity: 0.4; }

.sv-comment { display: flex; gap: 10px; }
.sv-comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sv-comment-body { flex: 1; }

.sv-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sv-comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv-comment-author:hover { color: var(--accent); }
.sv-comment-author.pro { color: var(--pro-gold); }
.sv-comment-author i.verified { color: var(--accent); font-size: 11px; }

.sv-comment-time { font-size: 11px; color: var(--text-muted); }

.sv-comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ═══ SIDEBAR ═══ */
.sv-script-sidebar { display: flex; flex-direction: column; gap: 12px; }

.sv-sidebar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  overflow: hidden;
}

.sv-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-muted);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-sidebar-header i { color: var(--accent); font-size: 13px; }

/* Stats grid */
.sv-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-muted);
}

.sv-stat {
  padding: 14px;
  background: var(--bg-panel);
  text-align: center;
}

.sv-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); display: block; }
.sv-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; display: block; }

/* Info list */
.sv-info-list { padding: 8px 0; }

.sv-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.sv-info-item:last-child { border-bottom: none; }
.sv-info-label { font-size: 12px; color: var(--text-muted); }

.sv-info-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv-info-value.status-working { color: var(--success); }
.sv-info-value.status-working i { font-size: 7px; }
.sv-info-value.has-key { color: #F85149; }

/* How to */
.sv-howto-list { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }

.sv-howto-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sv-howto-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,129,247,0.1);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.sv-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.sv-sidebar-link:hover {
  background: rgba(47,129,247,0.05);
  border-color: var(--accent);
  color: var(--accent);
}

.sv-sidebar-link i:last-child { margin-left: auto; font-size: 10px; }

.sv-sidebar-text {
  font-size: 12px;
  color: var(--text-muted);
  padding: 14px 16px 0;
  margin: 0;
}

/* Game preview */
.sv-game-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.15s;
}

.sv-game-preview:hover { background: rgba(255,255,255,0.02); }

.sv-game-preview img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

.sv-game-preview-info { display: flex; flex-direction: column; gap: 3px; }
.sv-game-preview-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sv-game-preview-action { font-size: 11px; color: var(--accent); }

/* ═══ REPORT ═══ */
.sv-report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.sv-report-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.sv-report-option:hover { border-color: var(--border-light); }

.sv-report-option input[type="radio"] { accent-color: var(--accent); }

.sv-report-option input[type="radio"]:checked + span { color: var(--text-primary); }

#reportDetails {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

#reportDetails:focus { outline: none; border-color: var(--accent); }

/* ═══ TOAST ═══ */
.sv-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 20px;
  background: var(--success);
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 9999;
}

.sv-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sv-toast.error { background: var(--danger); }

/* ═══ MODAL ═══ */
.sv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 10000;
}

.sv-modal-overlay.show { opacity: 1; visibility: visible; }

.sv-modal {
  width: 90%;
  max-width: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.sv-modal-overlay.show .sv-modal { transform: scale(1); }

.sv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-muted);
}

.sv-modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sv-modal-header h3 i { color: var(--accent); }

.sv-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.sv-modal-close:hover { background: rgba(248,81,73,0.1); color: var(--danger); }

.sv-modal-body { padding: 20px; }

/* Share */
.sv-share-url {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.sv-share-url input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: monospace;
}

.sv-share-url button {
  padding: 10px 14px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.sv-share-url button:hover { background: var(--accent-hover); }

.sv-share-buttons { display: flex; justify-content: center; gap: 10px; }

.sv-share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: all 0.15s;
}

.sv-share-btn:hover { transform: translateY(-2px); }
.sv-share-btn.twitter { background: #1da1f2; }
.sv-share-btn.discord { background: #5865f2; }
.sv-share-btn.reddit { background: #ff4500; }

/* ═══ ERROR PAGE ═══ */
.sv-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.sv-error-content {
  text-align: center;
  max-width: 400px;
}

.sv-error-content i { font-size: 48px; color: var(--text-muted); opacity: 0.4; margin-bottom: 16px; }
.sv-error-content h1 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.sv-error-content p { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  .sv-script-page { padding: 12px 0; }
  
  .sv-script-header-content { grid-template-columns: 1fr; }
  .sv-script-info { padding: 16px; }
  .sv-script-title { font-size: 1.3rem; }
  .sv-script-actions { flex-direction: column; }
  .sv-btn { width: 100%; justify-content: center; }
  
  .sv-script-code-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .sv-script-code-actions { width: 100%; }
  
  .sv-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.sv-card:nth-child(1) { animation-delay: 0.03s; }
.sv-card:nth-child(2) { animation-delay: 0.06s; }
.sv-card:nth-child(3) { animation-delay: 0.09s; }
.sv-card:nth-child(4) { animation-delay: 0.12s; }
.sv-card:nth-child(5) { animation-delay: 0.15s; }
.sv-card:nth-child(6) { animation-delay: 0.18s; }
.sv-card:nth-child(7) { animation-delay: 0.21s; }
.sv-card:nth-child(8) { animation-delay: 0.24s; }
.sv-card:nth-child(9) { animation-delay: 0.27s; }
.sv-card:nth-child(10) { animation-delay: 0.30s; }

@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
