/* ===========================
   GTA 5 ARTWORK — STYLE.CSS
   =========================== */

/* ── TOKENS ── */
:root {
  --bg: #08080e;
  --bg-2: #0f0f1a;
  --bg-card: #12121f;
  --border: rgba(255, 255, 255, 0.07);
  --orange: #ff6b00;
  --orange-dim: rgba(255, 107, 0, 0.15);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --text-dim: #4a4a6a;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 70px;
  --sidebar-w: 260px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a14;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange) 0%, #ff8533 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8533 0%, #ffaa66 100%);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

::-webkit-scrollbar-corner {
  background: #0a0a14;
}

/* ══ TEXT SELECTION ══ */
::selection {
  background: rgba(255, 107, 0, 0.35);
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: rgba(255, 107, 0, 0.35);
  color: #ffffff;
  text-shadow: none;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 2px;
}

.logo-gta {
  color: var(--text);
}

.logo-5 {
  color: var(--orange);
  font-size: 26px;
}

.logo-sub {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 4px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--orange);
}

.nav-github {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px !important;
  transition: border-color var(--transition), color var(--transition) !important;
}

.nav-github:hover {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  background: var(--orange-dim) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--orange);
  top: -200px;
  left: -200px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  bottom: -200px;
  right: -100px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--orange);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-head);
  line-height: 0.9;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.line-1 {
  font-size: clamp(60px, 10vw, 100px);
  color: var(--text-muted);
}

.line-2 {
  font-size: clamp(80px, 16vw, 160px);
  color: var(--text);
  letter-spacing: -2px;
}

.line-3 {
  font-size: clamp(40px, 7vw, 80px);
  color: var(--orange);
  letter-spacing: 8px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
}

.hero-desc strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #ff8533;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-2);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 64px;
  color: rgba(255, 107, 0, 0.06);
  line-height: 1;
  pointer-events: none;
}

.step-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-4px);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-link {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.step-link:hover {
  gap: 10px;
}

/* ── TOOLS ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color var(--transition);
}

.tool-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
}

.tool-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.gemini-logo {
  background: linear-gradient(135deg, #4285f4, #0f9d58);
  color: #fff;
}

.chatgpt-logo {
  background: linear-gradient(135deg, #10a37f, #1a7f64);
  color: #fff;
}

.tool-info h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-info p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tool-tag {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ── PREVIEW GRID ── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

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

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.preview-overlay span {
  font-size: 14px;
  font-weight: 600;
}

.preview-btn {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

/* ══════════════════════════════
   PAGE HEADER
══════════════════════════════ */
.page-header {
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: 4px;
  margin: 12px 0 16px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 17px;
}

/* ══════════════════════════════
   GALLERY PAGE
══════════════════════════════ */
.gallery-section {
  padding: 60px 0 100px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover {
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-4px);
}

.gallery-item.hidden {
  display: none;
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a14;
  cursor: pointer;
}

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

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.gallery-zoom {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.gallery-zoom:hover {
  transform: scale(1.1);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.gallery-badge.original {
  color: var(--cyan);
}

.gallery-meta {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
}

.meta-docs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  transition: opacity var(--transition);
}

.meta-docs:hover {
  opacity: 0.7;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--orange);
}

.lightbox-caption {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* ══════════════════════════════
   DOCS PAGE
══════════════════════════════ */
.docs-page .footer {
  margin-top: 0;
}

.docs-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

/* Sidebar */
.docs-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 28px 0;
  transition: width var(--transition), transform var(--transition);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  display: block;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: var(--orange-dim);
}

.sidebar-link i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.sidebar-toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  transition: all var(--transition);
}

.sidebar-toggle-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Main */
.docs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.docs-topbar {
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}

.mobile-sidebar-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.docs-breadcrumb i {
  font-size: 10px;
}

#breadcrumbCurrent {
  color: var(--text);
  font-weight: 500;
}

.docs-content {
  flex: 1;
  padding: 48px 40px;
  max-width: 860px;
}

.docs-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 40px 0;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Markdown styles */
.docs-body h1 {
  font-family: var(--font-head);
  font-size: 48px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--text);
}

.docs-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.docs-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.docs-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-muted);
}

.docs-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.docs-body strong {
  color: var(--text);
  font-weight: 600;
}

.docs-body a {
  color: var(--orange);
  text-decoration: underline;
}

.docs-body ul,
.docs-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.docs-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.docs-body code {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.docs-body pre {
  background: #0d0d1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 20px 0;
}

.docs-body pre code {
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}

.docs-body img {
  border-radius: var(--radius);
  margin: 20px auto;
  max-width: 100%;
  border: 1px solid var(--border);
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.docs-body th {
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
}

.docs-body td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.docs-body blockquote {
  border-left: 3px solid var(--orange);
  padding: 12px 20px;
  background: var(--orange-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-muted);
}

/* Docs pagination */
.docs-pagination {
  display: flex;
  gap: 16px;
  padding: 32px 40px 60px;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex: 1;
}

.pagination-btn:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.next-btn {
  justify-content: flex-end;
  text-align: right;
}

.pag-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pag-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pagination-btn i {
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 2px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .docs-sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    height: calc(100vh - var(--nav-h));
    z-index: 100;
    transform: translateX(-100%);
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-btn {
    display: flex;
  }

  .docs-topbar {
    padding: 12px 20px;
  }

  .docs-content {
    padding: 32px 20px;
  }

  .docs-pagination {
    padding: 24px 20px 40px;
    flex-direction: column;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 28px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

/* ══════════════════════════════
   CUSTOM CURSOR
══════════════════════════════ */
.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.7;
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ══════════════════════════════
   PARTICLE CANVAS
══════════════════════════════ */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ══════════════════════════════
   TEXT SCRAMBLE
══════════════════════════════ */
.scramble-char {
  color: var(--orange);
  opacity: 0.7;
}

/* ══════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  z-index: 9997;
  pointer-events: none;
  box-shadow: 0 0 8px var(--orange);
}

/* ══════════════════════════════
   COPY BUTTON (docs code blocks)
══════════════════════════════ */
.code-block-wrap {
  position: relative;
  margin: 20px 0;
}

.code-block-wrap pre {
  margin: 0 !important;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--orange);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
  z-index: 2;
}

.code-block-wrap:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.copy-btn.copied {
  background: rgba(0, 212, 100, 0.15);
  border-color: rgba(0, 212, 100, 0.4);
  color: #00d464;
}