/* ===================================================================
   CordThemes - Modern Dark Gamer Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-darkest: #07080d;
  --bg-dark: #0b0d14;
  --bg-card: #121522;
  --bg-card-hover: #181d30;
  --bg-glass: rgba(18, 21, 34, 0.75);
  --bg-glass-strong: rgba(11, 13, 20, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(88, 101, 242, 0.25);
  --border-glow-active: rgba(88, 101, 242, 0.7);
  
  --primary: #5865F2;
  --primary-hover: #4752c4;
  --primary-glow: rgba(88, 101, 242, 0.4);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  --accent-green: #23a55a;
  --accent-yellow: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(88, 101, 242, 0.25);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.2);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(88, 101, 242, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(0, 240, 255, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Background grid pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

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

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* ===================================================================
   Header & Navbar
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-text span {
  color: var(--primary);
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
}

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

.btn-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f0ff, #0099ff);
  color: #050505;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-cyan:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 22px;
  padding: 6px;
}

/* ===================================================================
   Ad Banner Components
   =================================================================== */
.ad-banner-slot {
  background: rgba(18, 21, 34, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin: 32px auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  transition: var(--transition);
}

.ad-banner-slot:hover {
  border-color: rgba(88, 101, 242, 0.3);
  background: rgba(22, 26, 42, 0.7);
}

.ad-banner-slot.leaderboard {
  max-width: 970px;
  min-height: 100px;
}

.ad-banner-slot.rectangle {
  max-width: 340px;
  min-height: 270px;
}

.ad-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.05), rgba(0, 240, 255, 0.05));
  border-radius: var(--radius-sm);
  padding: 16px;
  gap: 16px;
}

.ad-content-info {
  text-align: left;
}

.ad-content-info h4 {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
}

.ad-content-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.15);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(35, 165, 90, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, #a5b4fc 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

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

/* ===================================================================
   Search & Filter Toolbar
   =================================================================== */
.catalog-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 36px 0 24px;
  box-shadow: var(--shadow-card);
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(11, 13, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 44px 14px 46px;
  color: var(--text-main);
  font-size: 15px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
  background: rgba(11, 13, 20, 0.95);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.chip-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.sort-select {
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===================================================================
   Themes Grid & Cards
   =================================================================== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
  margin-bottom: 48px;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 101, 242, 0.2);
}

.theme-preview {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.theme-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.theme-card:hover .theme-preview-img {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 13, 20, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(3px);
  transition: var(--transition);
}

.theme-card:hover .preview-overlay {
  opacity: 1;
}

.theme-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-category {
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.theme-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.theme-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.theme-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.theme-version {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.theme-author {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-author span {
  color: var(--text-main);
  font-weight: 500;
}

.theme-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-palette {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.theme-tag {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

.theme-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.theme-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.stat-downloads, .stat-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-rating svg {
  color: #f59e0b;
}

.theme-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 44px;
  margin-bottom: 12px;
  color: var(--text-dim);
}

/* ===================================================================
   Live Modal Preview
   =================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(3, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--border-glow);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass-strong);
}

.modal-header-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.modal-header-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* ===================================================================
   Discord UI Mockup Preview Component
   =================================================================== */
.discord-mockup {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  position: relative;
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  user-select: none;
}

.mockup-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.mockup-tint {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
  transition: background-color 0.15s ease;
}

/* Mockup Layout - Translucent panels */
.mockup-servers {
  width: 68px;
  background: rgba(14, 16, 24, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-server-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #dbdee1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.mockup-server-icon.active {
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.mockup-server-icon.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  width: 4px;
  height: 24px;
  background: #fff;
  border-radius: 0 4px 4px 0;
}

.mockup-divider {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.mockup-channels {
  width: 200px;
  background: rgba(18, 20, 30, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-server-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
}

.mockup-channel-list {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.mockup-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mockup-channel-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-left: 3px solid var(--primary);
}

.mockup-user-bar {
  padding: 10px 12px;
  background: rgba(10, 12, 18, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-user-bar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.mockup-user-bar .user-info {
  line-height: 1.2;
}

.mockup-user-bar .user-name {
  font-size: 13px;
  font-weight: 600;
}

.mockup-user-bar .user-tag {
  font-size: 11px;
  color: #949ba4;
}

.mockup-chat {
  flex-grow: 1;
  background: rgba(8, 10, 16, 0.22);
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.mockup-chat-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mockup-messages {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-msg {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.32);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865F2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.mockup-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-msg-author {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mockup-msg-time {
  font-size: 11px;
  color: #949ba4;
  font-weight: normal;
}

.mockup-msg-text {
  color: #f1f5f9;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mockup-input-area {
  padding: 14px 16px;
}

.mockup-input-box {
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================================================
   Theme Generator Section
   =================================================================== */
.generator-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.generator-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

.generator-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.control-label span.val {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.control-input {
  width: 100%;
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  transition: var(--transition);
}

.control-input:focus {
  outline: none;
  border-color: var(--primary);
}

.catbox-tip {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.catbox-tip a {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.catbox-tip a:hover {
  color: #fff;
}

.catbox-tip code {
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.image-host-alert {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.40);
  color: #fef08a;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-images {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.preset-chip {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.preset-chip:hover {
  background: rgba(88, 101, 242, 0.2);
  color: #fff;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.color-swatches {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.generator-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* ===================================================================
   Installation Guide Section
   =================================================================== */
.guide-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

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

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-3px);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.path-box {
  background: rgba(11, 13, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.copy-path-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.copy-path-btn:hover {
  background: var(--primary);
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

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

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease forwards;
  pointer-events: auto;
}

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

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

.spin {
  animation: spin 0.9s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title { font-size: 38px; }
  .generator-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .themes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mockup-channels, .mockup-user-bar { display: none; }
}
