/* ===================================================================
   SCRIPTIFY.WORLD - MODERN GAMING STUDIO DESIGN SYSTEM
   Authentic Dark Theme | Architectural Grid | Refined Micro-Interactions
   =================================================================== */

:root {
  /* Clean, Solid, Grounded Dark Charcoal Palette */
  --bg-dark: #0d0e12;
  --bg-card: #13151c;
  --bg-card-hover: #181b24;
  --bg-surface: #151821;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.16);

  /* Curated Tactical Accents */
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-discord: #5865F2;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Sophisticated Studio Gradients */
  --grad-hero-text: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  --grad-primary-btn: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-primary-btn-hover: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-badge: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));

  /* Typography */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  /* Refined Transitions */
  --transition-fast: 0.16s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: #060709;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(18, 22, 32, 0.45) 0%, rgba(6, 7, 9, 0.95) 80%),
    url('assets/topo-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selection Highlight */
::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #060709;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid #060709;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===================================================================
   NAVBAR (REFINED STUDIO HEADER - PILL ARCHITECTURE)
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 9, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  user-select: none;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.45));
  transition: var(--transition-fast);
  display: block;
}

.logo:hover .logo-img {
  transform: rotate(5deg) scale(1.08);
  filter: drop-shadow(0 0 16px rgba(0, 220, 255, 0.75));
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.logo-dot {
  color: #00e5ff;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.logo-world {
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 38%, #8b5cf6 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.logo-accent {
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 38%, #8b5cf6 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 179, 0.4);
  background: rgba(6, 12, 10, 0.7);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link i {
  color: #00ffb3;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  border-color: #00ffb3;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.3);
}

/* Active Nav Link - Solid Bright Mint Green matching mockup */
.nav-link.active {
  color: #000000 !important;
  background: #00ffb3 !important;
  border: 1px solid #00ffb3 !important;
  border-radius: 4px !important;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.45) !important;
  font-weight: 700 !important;
}

.nav-link.active i {
  color: #000000 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-post-script {
  background: rgba(6, 12, 10, 0.75);
  color: #00ffb3;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
  border: 1.5px solid #00ffb3;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.35);
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
  outline: none;
}

.btn-post-script:hover {
  background: rgba(0, 255, 179, 0.15);
  color: #ffffff;
  border-color: #00ffb3;
  box-shadow: 0 0 22px rgba(0, 255, 179, 0.55);
  transform: translateY(-1px);
}

.btn-post-script i {
  color: #00ffb3;
  font-size: 0.95rem;
}

.nav-auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-profile-nav {
  background: rgba(6, 12, 10, 0.75);
  color: #00ffb3;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
  border: 1.5px solid rgba(0, 255, 179, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.15);
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
  outline: none;
}

.btn-profile-nav:hover {
  background: rgba(0, 255, 179, 0.15);
  color: #ffffff;
  border-color: #00ffb3;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.4);
  transform: translateY(-1px);
}

.btn-profile-nav i {
  color: #00ffb3;
  font-size: 0.95rem;
}

.btn-edit-profile-quick {
  background: rgba(0, 255, 179, 0.15);
  border: 1px solid #00ffb3;
  color: #00ffb3;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-edit-profile-quick:hover {
  background: #00ffb3;
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.4);
}

/* Exact Square Design like Discord button with Dark Red color and Red Shade */
.btn-signin {
  background: rgba(18, 4, 6, 0.85);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
  border: 1.5px solid #dc2626;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.45);
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
  outline: none;
}

.btn-signin:hover {
  background: rgba(220, 38, 38, 0.22);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

.btn-signin i {
  color: #ef4444;
  font-size: 0.95rem;
}

.btn-signin:active {
  transform: translateY(0) scale(0.98);
}

.btn-discord {
  background: rgba(6, 12, 10, 0.75);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
  border: 1.5px solid #00ffb3;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.35);
}

.btn-discord:hover {
  background: rgba(0, 255, 179, 0.15);
  color: #ffffff;
  border-color: #00ffb3;
  box-shadow: 0 0 22px rgba(0, 255, 179, 0.55);
  transform: translateY(-1px);
}

.btn-discord i {
  color: #ffffff;
  font-size: 0.95rem;
}

/* ===================================================================
   HERO SECTION (EXACT MOCKUP ARCHITECTURE)
   =================================================================== */
.hero-section {
  padding: 50px 0 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}

.badge-wrapper {
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(0, 255, 179, 0.45);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(0, 255, 179, 0.15);
}

.badge-check-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #00ffb3;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

.badge-hub-text {
  color: #00ffb3;
  font-weight: 700;
}

.badge-sep {
  opacity: 0.4;
  color: #94a3b8;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.hero-title .gradient-text {
  color: #00ffb3;
  -webkit-text-fill-color: #00ffb3;
  background: none;
  text-shadow: 0 0 24px rgba(0, 255, 179, 0.4);
  display: inline;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
  font-weight: 400;
}

/* ===================================================================
   SEARCH BOX & QUICK FILTER BAR (RECTANGULAR CYBER STYLE)
   =================================================================== */
.search-box-wrapper {
  max-width: 640px;
  margin: 0 auto 18px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(6, 12, 10, 0.9);
  backdrop-filter: blur(16px);
  border: 2px solid #00ffb3;
  border-radius: 4px;
  padding: 7px 18px;
  transition: var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 255, 179, 0.28);
}

.search-input-box:focus-within {
  border-color: #00ffb3;
  box-shadow: 0 0 28px rgba(0, 255, 179, 0.45);
}

.search-icon {
  font-size: 1.05rem;
  color: #00ffb3;
  margin-right: 12px;
}

.search-input-box:focus-within .search-icon {
  color: #00ffb3;
  filter: drop-shadow(0 0 6px #00ffb3);
}

.search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-main);
  padding: 8px 0;
}

.search-input-box input::placeholder {
  color: #94a3b8;
}

.search-kbd {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
  pointer-events: none;
  margin-left: 8px;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: #00ffb3;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  color: #fff;
}

/* Trending Tags / Filter Pills (Crisp Rectangular Cyber Style) */
.trending-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 600;
}

.tag-pill {
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid #00ffb3;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 0 8px rgba(0, 255, 179, 0.15);
}

.tag-pill i, .tag-pill svg {
  color: #00ffb3;
  stroke: #00ffb3;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tag-pill:hover, .tag-pill.active {
  background: rgba(0, 255, 179, 0.18);
  border-color: #00ffb3;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.4);
  transform: translateY(-1px);
}

/* Compact Stats Counter Bar (Crisp Rectangular Cyber Strip) */
.stats-row {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 12, 10, 0.85);
  backdrop-filter: blur(16px);
  border: 1.5px solid #00ffb3;
  border-radius: 4px;
  padding: 10px 26px;
  gap: 22px;
  margin-top: 26px;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.22);
}

.stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

.stat-icon {
  font-size: 1.05rem;
  color: #00ffb3;
}

.stat-label {
  font-size: 0.76rem;
  color: #00ffb3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.stat-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 255, 179, 0.35);
}

/* Floating 3D Roblox Cubes */
.hero-roblox-cube {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.65;
  filter: contrast(1.3) brightness(0.95);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 72%);
  mask-image: radial-gradient(circle at center, black 40%, transparent 72%);
}

.hero-roblox-cube.cube-left {
  width: 280px;
  bottom: -60px;
  left: -80px;
  transform: rotate(-15deg);
}

.hero-roblox-cube.cube-right {
  width: 290px;
  bottom: -60px;
  right: -80px;
  transform: rotate(35deg);
}

@media (max-width: 900px) {
  .hero-roblox-cube {
    display: none;
  }
}

/* ===================================================================
   ADSTERRA SPONSOR SHOWCASE (CLEAN PARTNER FRAME)
   =================================================================== */
.ad-wrapper {
  margin: 22px auto;
}

.ad-container {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.8) 0%, rgba(10, 13, 20, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 14px 20px;
  transition: var(--transition-fast);
}

.ad-container:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.ad-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-info-hint {
  font-size: 0.68rem;
  color: #475569;
  font-family: var(--font-code);
}

.ad-placeholder-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
}

.ad-media-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ad-copy-wrap {
  text-align: left;
}

.ad-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.ad-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
}

/* ===================================================================
   SCRIPTS EXPLORER & SEGMENTED CONTROLS
   =================================================================== */
.section {
  padding: 50px 0;
  position: relative;
  z-index: 2;
}

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

.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 6px;
}

.catalog-container {
  max-width: 1480px;
  width: 100%;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-main-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent;
  padding: 0;
  border: none;
}

.category-btn {
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(0, 255, 179, 0.35);
  color: #cbd5e1;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 255, 179, 0.08);
}

.category-btn i {
  color: #00ffb3;
  transition: color var(--transition-fast);
}

.category-btn:hover {
  background: rgba(0, 255, 179, 0.15);
  color: #00ffb3;
  border-color: #00ffb3;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.3);
  transform: translateY(-1px);
}

.category-btn.active {
  background: #00ffb3 !important;
  border-color: #00ffb3 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.45) !important;
}

.category-btn.active i {
  color: #000000 !important;
}

.filter-sort-wrap {
  display: flex;
  align-items: center;
}

.sort-select-cyber {
  background: rgba(6, 12, 10, 0.85);
  border: 1.5px solid rgba(0, 255, 179, 0.4);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.15);
}

.sort-select-cyber:hover, .sort-select-cyber:focus {
  border-color: #00ffb3;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.4);
  color: #00ffb3;
}

.sort-select-cyber option {
  background: #0d1117;
  color: #ffffff;
}

/* ===================================================================
   SCRIPT CARDS GRID (5 COLUMNS COMPACT CYBER GRID)
   =================================================================== */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1380px) {
  .scripts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .scripts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .scripts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .scripts-grid {
    grid-template-columns: 1fr;
  }
}

.empty-hub-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: rgba(13, 17, 26, 0.65);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-blue);
}

.empty-hub-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.empty-hub-state p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.script-card {
  position: relative;
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.script-card:hover {
  border-color: rgba(0, 255, 179, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px -2px rgba(0, 255, 179, 0.2);
  transform: translateY(-4px);
}

/* Card Thumbnail Media */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060910;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.card-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%, rgba(13, 17, 23, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Top Media Badges: Views (Left) & Time Ago (Right) */
.card-badge-views {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.card-badge-views i {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.card-badge-time {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Card Body Content: Avatar + Features Title + Author · Game */
.card-body {
  padding: 12px 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  background: #0d1117;
  position: relative;
  z-index: 2;
}

.card-creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #161b22;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-creator-avatar i {
  font-size: 1.05rem;
  color: #00ffb3;
}

.card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.card-features-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  transition: color var(--transition-fast);
}

.script-card:hover .card-features-title {
  color: #00ffb3;
}

.card-meta-subline {
  font-size: 0.78rem;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-author-name {
  color: #cbd5e1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.card-dot-sep {
  color: #64748b;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.card-game-name {
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  text-align: center;
  padding: 50px 20px;
  background: rgba(13, 17, 26, 0.5);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  grid-column: 1 / -1;
}

.no-results i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background: #00ffb3;
  color: #000000;
  border: 1px solid #00ffb3;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.3);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: #33ffc2;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.5);
  transform: translateY(-1px);
}

/* ===================================================================
   EXECUTORS COMPATIBILITY SECTION (BENTO GRID)
   =================================================================== */
.executors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.executor-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition-smooth);
}

.executor-card:hover {
  border-color: rgba(0, 255, 179, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 255, 179, 0.15);
}

.exec-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.exec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.executor-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.executor-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 179, 0.1);
  border: 1px solid rgba(0, 255, 179, 0.35);
  color: #00ffb3;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.faq-accordion {
  max-width: 780px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-question {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.faq-arrow {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  font-size: 0.85rem;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 20px 18px;
}

/* ===================================================================
   SCRIPT MODAL & CODE VIEWER
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #0e121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.08);
  border-radius: 4px;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-game-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 4px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.modal-body {
  padding: 22px;
}

.modal-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

.text-success { color: var(--accent-emerald-light); }

/* Code Box */
.code-box-wrapper {
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
}

.code-box-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-lang {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.code-pre {
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: #bae6fd;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 130px;
}

/* Modal In-App Ad Slot */
.modal-ad-slot {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 18px;
}

.ad-mini-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-copy {
  flex: 1;
  background: #00ffb3;
  color: #000000;
  border: 1px solid #00ffb3;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.4);
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: #33ffc2;
  box-shadow: 0 0 22px rgba(0, 255, 179, 0.6);
  transform: translateY(-1px);
}

.btn-key-link {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-key-link:hover {
  transform: translateY(-1px);
}

.btn-direct-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-direct-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===================================================================
   TOAST NOTIFICATION
   =================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 20, 31, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(80px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald-light);
  font-size: 1.1rem;
}

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-text strong {
  font-size: 0.9rem;
  color: #fff;
}

.toast-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ===================================================================
   FOOTER (CLEAN DARK HUB FOOTER)
   =================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 12, 0.95);
  padding: 50px 0 24px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 12px;
  max-width: 380px;
  line-height: 1.55;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.text-danger { color: #f43f5e; }



/* ===================================================================
   MAGIC LINK PASSWORDLESS AUTH STYLES
   =================================================================== */


.user-nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-nav-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
  outline: none;
}

.user-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-nav-avatar {
  color: #00ffb3;
  font-size: 0.95rem;
  display: inline-flex;
}

.user-nav-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-nav-badge {
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.btn-nav-admin {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-admin:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  color: #fff;
}

.btn-nav-logout {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.btn-nav-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

/* Auth Dialog Box - Clean Original Theme */
.auth-dialog {
  max-width: 460px;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.1);
}

.auth-pill-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.auth-modal-body {
  padding: 28px 24px;
}

.auth-instruction {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.auth-instruction strong {
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 16px 13px 42px;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.auth-input:focus {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

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

.btn-magic-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-magic-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-magic-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-msg.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-features-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.auth-features-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Sent State */
.auth-sent-icon-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px 0;
}

.mail-pulse-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 2px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
  animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
  }
}

.auth-sent-heading {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}

.auth-sent-desc {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.highlight-email {
  color: #38bdf8;
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.auth-sent-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
}

.auth-sent-info-box i {
  color: #38bdf8;
  font-size: 1rem;
  margin-top: 2px;
}

.auth-sent-actions {
  display: flex;
  gap: 10px;
}

.btn-resend-link {
  flex: 1;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-resend-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
}

.btn-change-email {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-change-email:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===================================================================
   CYBER MODAL SUITE - COMMUNITY SCRIPT SUBMISSION & GAMER PROFILE
   =================================================================== */
.community-submit-dialog,
.user-profile-dialog,
.set-username-dialog,
.leaderboard-dialog {
  max-width: 680px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
  background: #0b0e14 !important;
  border: 1.5px solid rgba(0, 255, 179, 0.4) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 179, 0.18) !important;
  border-radius: 8px !important;
  color: #ffffff;
}

/* Custom Scrollbars */
.community-submit-dialog::-webkit-scrollbar,
.user-profile-dialog::-webkit-scrollbar,
.set-username-dialog::-webkit-scrollbar,
.leaderboard-dialog::-webkit-scrollbar,
.profile-scripts-list::-webkit-scrollbar {
  width: 6px;
}

.community-submit-dialog::-webkit-scrollbar-track,
.user-profile-dialog::-webkit-scrollbar-track,
.profile-scripts-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.community-submit-dialog::-webkit-scrollbar-thumb,
.user-profile-dialog::-webkit-scrollbar-thumb,
.profile-scripts-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 179, 0.35);
  border-radius: 3px;
}

.community-submit-dialog::-webkit-scrollbar-thumb:hover,
.user-profile-dialog::-webkit-scrollbar-thumb:hover {
  background: #00ffb3;
}

.community-modal-body,
.user-profile-body,
.set-username-body,
.leaderboard-modal-body {
  padding: 24px 26px 28px;
}

/* Top Navbar Profile Button */
.btn-profile-nav {
  background: rgba(0, 255, 179, 0.12) !important;
  border: 1px solid rgba(0, 255, 179, 0.4) !important;
  color: #00ffb3 !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
}

.btn-profile-nav:hover {
  background: #00ffb3 !important;
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.45);
}

/* Submit Auth Gate & Context Reason Hint */
.submit-auth-gate {
  padding: 10px 0 16px;
  text-align: center;
}

.auth-gate-card {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(11, 14, 20, 0.95);
  border: 1.5px solid rgba(0, 255, 179, 0.35);
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-gate-icon-pulse {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.2), rgba(0, 229, 255, 0.1));
  border: 2px solid #00ffb3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #00ffb3;
  box-shadow: 0 0 24px rgba(0, 255, 179, 0.35);
  animation: pulse-gate-glow 2.4s infinite ease-in-out;
}

@keyframes pulse-gate-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(0, 255, 179, 0.6);
  }
}

.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.auth-gate-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.auth-gate-text {
  color: var(--text-muted, #94a3b8);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.auth-gate-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
  text-align: left;
}

.auth-gate-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.auth-gate-perk i {
  color: #00ffb3;
  font-size: 0.82rem;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-reason-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: left;
}

/* ===================================================================
   POST ROBLOX SCRIPT FORM STYLES
   =================================================================== */
.submit-user-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(0, 255, 179, 0.35);
  padding: 11px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.req-star {
  color: #f43f5e;
}

.form-hint {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.45;
}

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

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* Cyber Form Inputs */
.form-input,
.form-textarea {
  width: 100% !important;
  background: #060c0a !important;
  border: 1px solid rgba(0, 255, 179, 0.35) !important;
  color: #ffffff !important;
  padding: 11px 14px !important;
  border-radius: 4px !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  display: block;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #00ffb3 !important;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.4) !important;
  background: #08120f !important;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b !important;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ffb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  padding-right: 40px !important;
}

select.form-input option {
  background: #0b0e14 !important;
  color: #ffffff !important;
  padding: 10px;
}

.code-textarea {
  font-family: var(--font-code) !important;
  font-size: 0.82rem !important;
  background: #04060a !important;
  border: 1px solid rgba(0, 255, 179, 0.4) !important;
  color: #38bdf8 !important;
  line-height: 1.55 !important;
  padding: 12px !important;
}

.code-textarea:focus {
  border-color: #00ffb3 !important;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.45) !important;
}

/* Keyless / Keyed Radio Pills */
.radio-pill-group {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.radio-pill-label {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.radio-pill-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: #060c0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.radio-pill-label input:checked + .radio-pill-btn.keyless {
  background: rgba(0, 255, 179, 0.18);
  border-color: #00ffb3;
  color: #00ffb3;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.35);
}

.radio-pill-label input:checked + .radio-pill-btn.keyed {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(0, 255, 179, 0.45);
  background: rgba(6, 12, 10, 0.75);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.upload-dropzone:hover {
  border-color: #00ffb3;
  background: rgba(0, 255, 179, 0.1);
  box-shadow: 0 0 22px rgba(0, 255, 179, 0.25);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: #00ffb3;
  margin-bottom: 8px;
  display: block;
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.cld-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 179, 0.15);
  border: 1px solid rgba(0, 255, 179, 0.4);
  color: #00ffb3;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.dropzone-preview-img {
  max-height: 140px;
  border-radius: 4px;
  border: 1px solid #00ffb3;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn-replace-img {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-replace-img:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Executors Checkboxes Grid */
.executors-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.exec-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.exec-check-label:hover {
  border-color: rgba(0, 255, 179, 0.4);
  background: rgba(0, 255, 179, 0.06);
  color: #fff;
}

.exec-check-label input[type="checkbox"] {
  accent-color: #00ffb3;
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

/* Tag Suggestions & Input */
.tags-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tags-counter {
  font-size: 0.75rem;
  color: #00ffb3;
  font-weight: 700;
}

.tag-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.btn-suggest-tag {
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(0, 255, 179, 0.3);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-suggest-tag:hover {
  background: rgba(0, 255, 179, 0.2);
  border-color: #00ffb3;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 179, 0.3);
}

.tags-input-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(6, 12, 10, 0.9);
  border: 1px solid rgba(0, 255, 179, 0.35);
  padding: 6px 12px;
  border-radius: 4px;
  min-height: 42px;
}

.tag-chip-removable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00ffb3;
  color: #000000;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-chip-removable i {
  cursor: pointer;
  font-size: 0.72rem;
}

.tag-text-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  outline: none !important;
  font-size: 0.84rem !important;
  min-width: 140px;
  padding: 4px 0 !important;
  box-shadow: none !important;
}

/* ===================================================================
   GAMER PROFILE MODAL STYLES
   =================================================================== */
.profile-card-header {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-large {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: rgba(6, 12, 10, 0.9);
  border: 2px solid #00ffb3;
  box-shadow: 0 0 18px rgba(0, 255, 179, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #00ffb3;
  flex-shrink: 0;
}

.profile-identity {
  flex: 1;
  text-align: left;
}

.profile-names-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.profile-role-badge {
  background: rgba(0, 255, 179, 0.18);
  border: 1px solid #00ffb3;
  color: #00ffb3;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-role-badge.admin {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #c084fc;
}

.btn-edit-profile-quick {
  background: rgba(0, 255, 179, 0.12);
  border: 1px solid rgba(0, 255, 179, 0.4);
  color: #00ffb3;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-edit-profile-quick:hover {
  background: #00ffb3;
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.4);
}

.profile-email-line {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-bio-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 4px;
}

/* Profile Stats Strip */
.profile-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.profile-stat-item {
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.profile-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.profile-stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Profile Navigation Tabs */
.profile-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.profile-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  font-family: inherit;
  border-bottom: 2px solid transparent;
}

.profile-tab-btn:hover {
  color: #fff;
}

.profile-tab-btn.active {
  color: #00ffb3;
  border-bottom-color: #00ffb3;
  background: rgba(0, 255, 179, 0.08);
}

.profile-scripts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.btn-post-script {
  background: rgba(0, 255, 179, 0.15);
  border: 1px solid #00ffb3;
  color: #00ffb3;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-post-script:hover {
  background: #00ffb3;
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.4);
}

.profile-scripts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.user-script-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.user-script-row:hover {
  border-color: rgba(0, 255, 179, 0.4);
}

.user-script-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.user-script-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-script-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.user-script-status-pill.approved {
  background: rgba(0, 255, 179, 0.2);
  color: #00ffb3;
  border: 1px solid rgba(0, 255, 179, 0.4);
}

.user-script-status-pill.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.avatar-presets-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.avatar-preset-btn {
  width: 42px;
  height: 42px;
  background: rgba(6, 12, 10, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-preset-btn:hover {
  border-color: rgba(0, 255, 179, 0.5);
  color: #00ffb3;
}

.avatar-preset-btn.active {
  background: rgba(0, 255, 179, 0.2);
  border-color: #00ffb3;
  color: #00ffb3;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.4);
}

.username-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.username-at {
  position: absolute;
  left: 12px;
  color: #00ffb3;
  font-weight: 800;
  font-size: 0.95rem;
  pointer-events: none;
}

.username-field {
  padding-left: 28px !important;
}

.profile-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-profile-logout {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-profile-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

button.btn.btn-direct-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.btn.btn-direct-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ===================================================================
   MOBILE NAVIGATION DRAWER & TOGGLE STYLES
   =================================================================== */
.mobile-nav-toggle {
  display: none;
  background: rgba(6, 12, 10, 0.85);
  border: 1.5px solid #00ffb3;
  color: #00ffb3;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 255, 179, 0.2);
  line-height: 1;
}

.mobile-nav-toggle:hover {
  background: #00ffb3;
  color: #000;
  box-shadow: 0 0 16px rgba(0, 255, 179, 0.4);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(8, 11, 16, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(0, 255, 179, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  padding: 16px 18px 20px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-nav-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.mobile-nav-link i {
  color: #00ffb3;
  font-size: 1rem;
  width: 22px;
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(0, 255, 179, 0.15);
  border-color: #00ffb3;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 255, 179, 0.25);
}

.mobile-nav-link.discord {
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.12);
  color: #a5b4fc;
}

.mobile-nav-link.discord i {
  color: #5865F2;
}

/* ===================================================================
   MASTER RESPONSIVE ARCHITECTURE (ALL DEVICES - MOBILE, TABLET, DESKTOP)
   =================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    max-width: 100%;
    padding: 0 18px;
  }
  .catalog-container {
    padding: 0 18px;
  }
  .scripts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* Tablets & Large Phones (<= 900px) */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  .hero-roblox-cube {
    display: none !important;
  }
}

/* Standard Mobile & Phablets (<= 768px) */
@media (max-width: 768px) {
  /* Prevent any horizontal screen blowout */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .container,
  .catalog-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  /* Navbar */
  .navbar {
    padding: 12px 0 !important;
  }
  .nav-container {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .logo {
    gap: 8px !important;
  }
  .logo-img {
    width: 32px !important;
    height: 32px !important;
  }
  .logo-text {
    font-size: 1.15rem !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .btn-discord {
    display: none !important; /* Prominently present in mobile drawer */
  }
  .btn-post-script {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }
  .btn-signin {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }
  .user-nav-profile {
    padding: 3px 8px !important;
    gap: 6px !important;
  }
  .user-nav-name {
    max-width: 90px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.78rem !important;
  }
  .user-nav-badge {
    display: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 30px 0 20px !important;
  }
  .badge-wrapper {
    margin-bottom: 12px !important;
  }
  .hero-badge {
    font-size: 0.74rem !important;
    padding: 5px 12px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.2vw, 2.4rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    padding: 0 4px !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0 auto 18px !important;
    padding: 0 6px !important;
  }

  /* Search Box */
  .search-box-wrapper {
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 2px !important;
  }
  .search-input-box {
    padding: 7px 14px !important;
  }
  .search-kbd {
    display: none !important;
  }
  .search-input-box input {
    font-size: 0.86rem !important;
  }

  /* Trending Tag Chips */
  .trending-tags {
    gap: 6px !important;
    padding: 0 2px !important;
    justify-content: center !important;
  }
  .tag-label {
    width: 100% !important;
    font-size: 0.76rem !important;
    margin-bottom: 2px !important;
  }
  .tag-pill {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
  }

  /* Stats Counter Strip */
  .stats-row {
    display: flex !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 18px auto 0 !important;
    padding: 10px 12px !important;
    justify-content: space-around !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }
  .stat-card {
    gap: 6px !important;
  }
  .stat-icon {
    font-size: 0.95rem !important;
  }
  .stat-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
  }
  .stat-divider {
    height: 14px !important;
  }

  /* Scripts Section Header & Filter Controls */
  .section {
    padding: 34px 0 !important;
  }
  .catalog-header-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  .catalog-main-title {
    font-size: 1.45rem !important;
  }
  .filter-sort-wrap {
    width: 100% !important;
  }
  .sort-select-cyber {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }

  /* Smooth Swipeable Filter Pills */
  .catalog-filter-row {
    margin-bottom: 16px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .filter-controls {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .filter-controls::-webkit-scrollbar {
    display: none !important;
  }
  .category-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  /* 2-Column Grid on Tablet/Large Mobile */
  .scripts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Executors Grid */
  .executors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .executor-card {
    padding: 14px 10px !important;
  }
  .exec-icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 8px !important;
  }
  .executor-card h3 {
    font-size: 0.94rem !important;
    margin-bottom: 4px !important;
  }
  .executor-card p {
    font-size: 0.74rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
  }

  /* FAQ Section */
  .faq-accordion {
    width: 100% !important;
    margin-top: 18px !important;
  }
  .faq-question {
    padding: 13px 16px !important;
    font-size: 0.88rem !important;
  }
  .faq-answer {
    font-size: 0.82rem !important;
  }

  /* Modals Full Mobile Compatibility */
  .modal-backdrop {
    padding: 8px !important;
  }
  .modal-dialog,
  .community-submit-dialog,
  .user-profile-dialog,
  .set-username-dialog,
  .leaderboard-dialog,
  .auth-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    margin: auto !important;
    border-radius: 8px !important;
  }
  .community-modal-body,
  .user-profile-body,
  .set-username-body,
  .modal-body {
    padding: 16px 14px !important;
  }
  .modal-header {
    padding: 14px 16px !important;
  }
  .modal-header h3 {
    font-size: 1.1rem !important;
  }
  .modal-meta-row {
    gap: 10px !important;
    font-size: 0.76rem !important;
    margin-bottom: 14px !important;
  }
  .code-pre {
    padding: 10px !important;
    font-size: 0.76rem !important;
    max-height: 120px !important;
  }
  .modal-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .modal-actions .btn,
  .modal-actions button,
  .modal-actions a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 14px !important;
  }

  /* Forms inside modal */
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .executors-checkbox-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  /* Profile modal */
  .profile-meta-row {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .profile-identity {
    text-align: center !important;
    width: 100% !important;
  }
  .profile-names-line {
    justify-content: center !important;
  }
  .profile-email-line {
    justify-content: center !important;
  }
  .profile-stats-strip {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }
  .profile-stat-item {
    padding: 8px 4px !important;
  }
  .profile-stat-num {
    font-size: 1.15rem !important;
  }
  .profile-stat-lbl {
    font-size: 0.65rem !important;
  }
  .profile-tab-btn {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }

  /* Toast Notification */
  .toast {
    right: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
  }

  /* Footer */
  .footer {
    padding: 34px 0 20px !important;
    margin-top: 36px !important;
  }
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    text-align: left !important;
  }
  .footer-brand .footer-disclaimer {
    max-width: 100% !important;
  }
  .bottom-wrap {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    justify-content: center !important;
  }
}

/* Compact Smartphones (<= 500px) */
@media (max-width: 500px) {
  /* 1-Column full width script cards for highest visual clarity & tap comfort */
  .scripts-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .script-card {
    border-radius: 8px !important;
  }

  .card-media {
    aspect-ratio: 16 / 9 !important;
  }

  .card-body {
    padding: 11px 13px 13px !important;
    gap: 11px !important;
  }

  .card-creator-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .card-features-title {
    font-size: 0.92rem !important;
  }

  .card-meta-subline {
    font-size: 0.76rem !important;
  }

  .card-author-name {
    max-width: 110px !important;
  }

  /* Compact Navbar for mobile */
  .nav-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .logo-text {
    font-size: 1.1rem !important;
  }

  .logo-img {
    width: 28px !important;
    height: 28px !important;
  }

  .btn-post-script {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }

  .btn-signin {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }

  .mobile-nav-toggle {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }
}

/* Very Narrow Devices (<= 380px, e.g. iPhone SE / Galaxy Z Fold folded) */
@media (max-width: 380px) {
  .logo-world {
    display: none !important; /* Shows "Scriptify." to ensure no overflow */
  }

  .btn-post-script span {
    display: none !important; /* Shows icon only on ultra-compact screens */
  }

  .btn-post-script {
    padding: 6px 9px !important;
  }

  .stats-row {
    padding: 7px 4px !important;
    gap: 2px !important;
  }

  .stat-label {
    font-size: 0.58rem !important;
  }

  .stat-icon {
    font-size: 0.8rem !important;
  }

  .executors-grid {
    grid-template-columns: 1fr !important;
  }
}


