

/* ═══════════════════════════════════════════
RESET & ROOT
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #030305;
  --bg-glass: rgba(20, 20, 25, 0.72);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-med: rgba(255, 255, 255, 0.12);
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --saturation: 150%;
}

html { scroll-behavior: auto; }

body {
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button, body label, body input, body .sc-card, body .provider-card, body .stat-box {
    cursor: none;
  }
}

/* Loader */
.loader-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.loader-logo {
  width: 56px; height: 56px; border-radius: 14px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.7; }
}
.loader-bar {
  width: 140px; height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.loader-progress {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
  transition: width 0.3s ease;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

button { cursor: pointer; font-family: var(--font-ui); border: none; outline: none; background: none; color: inherit; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

input, textarea {
  font-family: var(--font-code);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus { border-color: rgba(99,102,241,0.4); box-shadow: 0 0 0 3px rgba(99,102,241,0.06); }

/* ═══════════════════════════════════════════
BACKGROUND
═══════════════════════════════════════════ */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-layer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(6,182,212,0.06) 0%, transparent 50%);
}
.bg-layer::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Mouse spotlight */
.mouse-spotlight {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(600px 600px circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.06), transparent 50%);
  transition: background 0.15s ease-out;
}

/* ═══════════════════════════════════════════
SVG FILTER FOR GLASS
═══════════════════════════════════════════ */
.svg-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ═══════════════════════════════════════════
BRAND LOGO
═══════════════════════════════════════════ */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 100;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.brand-logo:hover {
  background: rgba(10, 10, 15, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}
.brand-logo img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand-name span {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Discord link */
.discord-link {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(88,101,242,0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(88,101,242,0.3);
  color: #a5b4fc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.discord-link:hover {
  background: rgba(88,101,242,0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
UPDATED GLASS SWITCHER NAV
═══════════════════════════════════════════ */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.switcher {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 4px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
  width: max-content;
  min-width: 420px;
}

.switcher::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: var(--ind-w, 100px);
  height: calc(100% - 16px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 0;
  transform: translateX(var(--ind-x, 8px));
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, width;
}

.switcher input[type="radio"] { display: none; }

.switcher label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

.switcher label svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.switcher label:hover {
  color: #a1a1aa;
}

/* Indicator positioning handled by JS via --ind-x and --ind-w */

.switcher:has(#tab-home:checked) label[for="tab-home"],
.switcher:has(#tab-executor:checked) label[for="tab-executor"],
.switcher:has(#tab-scripts:checked) label[for="tab-scripts"],
.switcher:has(#tab-keys:checked) label[for="tab-keys"] {
  color: #ffffff;
}

/* ═══════════════════════════════════════════
CONTENT AREA
═══════════════════════════════════════════ */
.content-area {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 90px;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ═══════════════════════════════════════════
GLASS CARD BASE
═══════════════════════════════════════════ */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════
HOME TAB
═══════════════════════════════════════════ */
#panel-home {
  position: relative;
  overflow: hidden;
}

.home-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 90px);
  padding: 0 6vw;
  gap: 40px;
}

.home-left {
  flex: 0 0 auto;
  max-width: 520px;
  z-index: 2;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 12px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(99,102,241,0.08);
}

.home-badge .dot {
  width: 6px; height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.home-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.home-title span {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}

.home-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
}

.stat-item { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: var(--font-code);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-num span { color: #818cf8; }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: translateY(-2px);
}

.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Spline robot */
.home-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

spline-viewer {
  width: 100%;
  height: 70vh;
  max-height: 700px;
  border-radius: var(--radius-xl);
  --spline-background: transparent;
  --logo-display: none;
}

/* Hide Built with Spline watermark */
spline-viewer::part(logo) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fallback hide for spline watermark */
.home-right spline-viewer div[class*="logo"],
.home-right spline-viewer a[href*="spline"],
.home-right spline-viewer [class*="watermark"],
.home-right spline-viewer [class*="powered"] {
  display: none !important;
  opacity: 0 !important;
}

/* ═══════════════════════════════════════════
SECTION WRAPPER
═══════════════════════════════════════════ */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
UPDATED EXECUTOR TAB
═══════════════════════════════════════════ */
.executor-hero {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.7) 0%, rgba(5, 5, 8, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.executor-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid transparent;
}

.status-online {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-updating {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.dot.checking { background: #94a3b8; }
.dot.online { background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,0.5); }
.dot.updating { background: #f59e0b; box-shadow: 0 0 10px rgba(245,158,11,0.5); animation: pulse 1.5s infinite; }

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

.executor-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.executor-title span {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.executor-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.executor-stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 32px;
  border-radius: 16px;
  min-width: 140px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-box:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 20px rgba(99,102,241,0.05);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.executor-actions {
  display: flex;
  justify-content: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.25,1,0.5,1);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}

.download-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.download-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.download-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #3f3f46;
  box-shadow: none;
  transform: none;
}

/* ═══════════════════════════════════════════
UPDATED SCRIPTS TAB
═══════════════════════════════════════════ */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.script-card {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.script-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.script-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0.3) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.script-card:hover::before {
  opacity: 1;
}

.script-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.script-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.script-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-free { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.badge-hot { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-new { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.badge-util { background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.2); }

.script-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.script-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.script-code-preview {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-code);
  font-size: 11px;
  color: #a5b4fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.copy-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.4);
  color: #fff;
}
.copy-btn.copied {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}

.copy-btn svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
KEYS TAB
═══════════════════════════════════════════ */
.keys-layout { display: flex; flex-direction: column; gap: 20px; }

/* Key status bar */
.key-status-bar {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.key-status-bar.has-key {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
}
.key-status-bar.no-key {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
}

.key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.key-string {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 500;
  color: #34d399;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.key-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.key-actions-bar { display: flex; gap: 8px; }

/* Provider selection */
.providers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.provider-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
.provider-card:hover {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.05);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.08);
}

.provider-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.provider-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

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

.provider-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.provider-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 5px 18px rgba(99,102,241,0.4);
}

/* Key reveal */
.key-reveal-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.key-reveal-title {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.key-reveal-string {
  font-family: var(--font-code);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  width: 100%;
}

/* Loading spinner */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

.loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Keys table */
.keys-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
}

.keys-table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-light);
}

.keys-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.keys-table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.keys-table tbody tr:last-child td { border-bottom: none; }
.keys-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.status-active { background: rgba(16,185,129,0.12); color: #10b981; }
.status-active::before { background: #10b981; }
.status-expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-expired::before { background: #ef4444; }

.btn-del {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.btn-del:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
}

/* Error box */
.key-error-box {
  padding: 20px;
  text-align: center;
}
.key-error-icon { font-size: 28px; margin-bottom: 10px; }
.key-error-title { font-weight: 700; margin-bottom: 8px; }
.key-error-msg { font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
CAPTCHA MODAL
═══════════════════════════════════════════ */
.captcha-modal {
  min-width: 340px;
  text-align: center;
}

.turnstile-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.captcha-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.captcha-status.success {
  color: var(--success);
}

.captcha-status.error {
  color: var(--danger);
}

/* ═══════════════════════════════════════════
IMPORT MODAL
═══════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  place-items: center;
}
.modal-backdrop.open { display: grid; }

.modal-box {
  background: rgba(15,15,22,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.06);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-code);
  font-size: 13px;
  outline: none;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.modal-input:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.modal-input::placeholder { color: var(--text-dim); }

.modal-error {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 12px;
  display: none;
}
.modal-error.show { display: block; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.btn-cancel {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.12); }

.btn-import {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-import:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.12); }

/* ═══════════════════════════════════════════
TOAST
═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(18,18,26,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.04);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  max-width: 340px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: rgba(16,185,129,0.3); color: #34d399; }
.toast.error { border-color: rgba(239,68,68,0.3); color: #f87171; }
.toast.info { border-color: rgba(99,102,241,0.3); color: #a5b4fc; }

/* ═══════════════════════════════════════════
FOOTER
═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 60px;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-footer a:hover { color: #a5b4fc; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 16px 0;
}

/* Empty state */
.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.empty-state svg {
  width: 40px; height: 40px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 999px; border: 1px solid rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.45); }
::selection { background: rgba(99,102,241,0.25); color: #fff; }

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.25,1,0.5,1), height 0.4s cubic-bezier(0.25,1,0.5,1), border-color 0.3s ease, background 0.3s ease;
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
}
@media (hover: none) or (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ═══════════════════════════════════════════
MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-wrapper {
    top: auto;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .switcher {
    min-width: unset;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
  }

  .switcher label { padding: 8px; font-size: 11px; gap: 4px; }
  .switcher label svg { width: 13px; height: 13px; }

  .switcher::after {
    height: calc(100% - 12px);
    top: 6px;
  }

  .home-layout {
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px 100px;
    gap: 20px;
  }

  .home-left { max-width: 100%; }
  .home-title { font-size: 2.4rem; }

  .home-right {
    width: 100%;
    min-height: 300px;
  }

  spline-viewer {
  width: 100%;
  height: 70vh;
  max-height: 700px;
  border-radius: var(--radius-xl);
  /* Sets the background of the viewer itself to transparent */
  --spline-background: transparent; 
}

/* ═══════════════════════════════════════════
REMOVE SPLINE WATERMARK
═══════════════════════════════════════════ */
/* This targets the 'logo' part exposed by the Spline Web Component */
spline-viewer::part(logo) {
  display: none !important;
}

  .home-stats { gap: 20px; }
  .stat-num { font-size: 1.4rem; }

  .section-wrap { padding: 20px 16px 100px; }

  .scripts-grid { grid-template-columns: 1fr; }

  .executor-stats-grid { gap: 12px; }
  .stat-box { min-width: 120px; padding: 16px 20px; }

  .providers-grid { grid-template-columns: 1fr; }

  .content-area { padding-top: 70px; }

  .brand-logo {
    display: flex;
    top: 16px;
    left: 16px;
  }
  .brand-logo img {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 15px;
  }

  .discord-link {
    display: flex;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════
SCRIPTS PAGE REDESIGN v2
═══════════════════════════════════════════ */
.sc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sc-count {
  font-size: 12px;
  font-family: var(--font-code);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Featured Card ── */
.sc-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(99,102,241,0.10) 0%, transparent 60%),
    radial-gradient(500px 400px at 90% 100%, rgba(139,92,246,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,15,22,0.9) 0%, rgba(8,8,12,0.95) 100%);
  border: 1px solid rgba(99,102,241,0.22);
  padding: 40px;
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sc-featured::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.sc-featured:hover::after {
  left: 150%;
}
.sc-featured:hover {
  border-color: rgba(99,102,241,0.45);
  box-shadow:
    0 28px 56px rgba(0,0,0,0.40),
    0 0 60px rgba(99,102,241,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.sc-featured-glow {
  position: absolute;
  top: -80px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.sc-featured-left { flex: 1; min-width: 0; }
.sc-featured-right {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sc-featured-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.sc-feat-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.20), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.35);
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(99,102,241,0.15);
  animation: floatIcon 4s ease-in-out infinite;
}
.sc-feat-game {
  font-size: 11px;
  color: #a5b4fc;
  font-family: var(--font-code);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.sc-feat-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.sc-feat-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.sc-feat-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-feat-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c7d2fe;
  font-weight: 500;
}
.sc-feat-feature svg {
  width: 16px; height: 16px;
  stroke: #818cf8;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sc-code-block {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}
.sc-code-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent 50%);
  pointer-events: none;
}
.sc-code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: var(--font-code);
}
.sc-code-text {
  font-family: var(--font-code);
  font-size: 12px;
  color: #a5b4fc;
  word-break: break-all;
  line-height: 1.6;
}
.sc-copy-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.sc-copy-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.50), inset 0 1px 0 rgba(255,255,255,0.15);
}
.sc-copy-main.copied {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 20px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.sc-copy-main svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Grid Label ── */
.sc-grid-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* ── Script Cards Grid ── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.sc-card, .sc-featured, .section-header, .sc-header, .stat-box, .provider-card {
  will-change: transform, opacity;
}
.sc-featured, .provider-card {
  transform-style: preserve-3d;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ═══════════════════════════════════════════
   SCRIPT CARDS — Clean Premium
═══════════════════════════════════════════ */

/* ── Card base ── */
.sc-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(300px 220px at 120% -10%, rgba(99,102,241,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.25) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1), box-shadow 0.35s ease, border-color 0.3s ease;
  cursor: default;
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sc-card:nth-child(1) { animation-delay: 0.05s; }
.sc-card:nth-child(2) { animation-delay: 0.10s; }
.sc-card:nth-child(3) { animation-delay: 0.15s; }
.sc-card:nth-child(4) { animation-delay: 0.20s; }

/* Category theming */
.sc-card[data-category="Utility"] {
  --accent-color: #818cf8;
  --accent-soft: rgba(99,102,241,0.10);
  --accent-border: rgba(99,102,241,0.25);
  --accent-glow: rgba(99,102,241,0.06);
}
.sc-card[data-category="Fishing"] {
  --accent-color: #06b6d4;
  --accent-soft: rgba(6,182,212,0.10);
  --accent-border: rgba(6,182,212,0.25);
  --accent-glow: rgba(6,182,212,0.06);
}
.sc-card[data-category="Mining"] {
  --accent-color: #f59e0b;
  --accent-soft: rgba(245,158,11,0.10);
  --accent-border: rgba(245,158,11,0.25);
  --accent-glow: rgba(245,158,11,0.06);
}
.sc-card[data-category="All Games"] {
  --accent-color: #a78bfa;
  --accent-soft: rgba(139,92,246,0.10);
  --accent-border: rgba(139,92,246,0.25);
  --accent-glow: rgba(139,92,246,0.06);
}

/* Top accent bar — clean, solid glow */
.sc-card-topbar {
  margin: -24px -24px 0 -24px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color) 60%, transparent) 60%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
  z-index: 3;
  pointer-events: none;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}
.sc-card:hover .sc-card-topbar {
  opacity: 1;
  height: 4px;
}

/* Ambient corner glow */
.sc-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.4s ease;
}
.sc-card:hover .sc-card-glow { opacity: 1; }

/* Hover */
.sc-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.45),
    0 0 0 1px var(--accent-border),
    0 0 48px var(--accent-glow);
  border-color: rgba(255,255,255,0.10);
}

/* ── Header row ── */
.sc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 14px;
}

/* Icon — big, bold visual anchor */
.sc-card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.sc-card:hover .sc-card-icon {
  transform: scale(1.10) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Meta (badge + game) */
.sc-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.sc-card-game {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-code);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Script name — dominant, clear hierarchy ── */
.sc-card-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

/* ── Description ── */
.sc-card-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

/* ── Feature pills ── */
.sc-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.sc-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-color);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sc-card:hover .sc-pill {
  background: color-mix(in srgb, var(--accent-color) 14%, rgba(255,255,255,0.03));
}

/* ── Code row — clean, single-line, unobtrusive ── */
.sc-card-codeblock {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}
.sc-card-codeinner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px 10px 14px;
}
.sc-card-code {
  flex: 1;
  font-family: var(--font-code);
  font-size: 11px;
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* ── Copy button ── */
.sc-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.sc-copy-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-color);
  transform: translateY(-1px);
}
.sc-copy-btn.copied {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.30);
  color: #10b981;
}
.sc-copy-btn svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sc-featured {
    flex-direction: column;
    gap: 28px;
    padding: 28px;
  }
  .sc-featured-right { flex: unset; width: 100%; }
  .sc-grid { grid-template-columns: 1fr; }
  .sc-header { align-items: flex-start; flex-direction: column; gap: 12px; }
}
