:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #a78bfa;
  --primary-soft: #c4b5fd;
  --secondary: #06b6d4;
  --secondary-hover: #0891b2;
  --secondary-light: #22d3ee;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #0ea5e9 100%);
  --gradient-light: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
  --bg-body: #0a0a14;
  --bg-card: #16162a;
  --bg-card-hover: #1e1e36;
  --bg-elevated: #20203a;
  --bg-header: rgba(22, 22, 42, 0.95);
  --bg-hero: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.04) 100%);
  --bg-dark: #0f0f1a;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #e2e8f0;
  --border: #2d2d4a;
  --border-light: #3d3d60;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-main: system-ui, -apple-system, "Segoe UI", "Inter", "Roboto", sans-serif;
  --font-mono: 'Fira Code', 'Monaco', 'Menlo', monospace;
  --max-width: 1280px;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

h1, h2, h3, h4, h5, h6, .section-title, .page-header h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--gradient-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.15);
  text-shadow: 0 0 30px rgba(192, 132, 252, 0.25);
}

a { color: var(--primary-soft); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--secondary-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.lang-switcher {
  position: fixed; top: 20px; right: 24px; z-index: 1001;
  display: flex; gap: 8px; background: rgba(22, 22, 42, 0.9);
  backdrop-filter: blur(10px); padding: 6px 12px;
  border-radius: var(--radius-full); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lang-btn {
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; font-weight: 600; font-size: 0.8rem; padding: 6px 14px;
  border-radius: var(--radius-full); transition: var(--transition-smooth);
}
.lang-btn.active { background: var(--gradient); color: white; }
.lang-btn:hover:not(.active) { color: var(--primary-light); background: rgba(124, 58, 237, 0.1); }

.navbar {
  background: var(--bg-header); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.25s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-soft); }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.mobile-menu-btn:hover { background: rgba(124, 58, 237, 0.1); }

.hero {
  min-height: 90vh; display: flex; align-items: center; background: var(--bg-hero); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%); pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-video { position: relative; z-index: 2; }
.video-container {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--bg-card);
  transition: box-shadow var(--transition-smooth);
}
.video-container:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.6), var(--shadow-glow); }
.hero-video-player { width: 100%; height: auto; display: block; border-radius: var(--radius); }

.video-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3; opacity: 0.75;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  padding: 8px 14px; background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(10px);
  border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.15);
}
.video-container:hover .video-controls,
.video-container:focus-within .video-controls { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.video-btn {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: white;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 0.9rem; transition: var(--transition-smooth);
}
.video-btn:hover { background: var(--primary); transform: scale(1.1); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; text-decoration: none; white-space: nowrap;
  transition: var(--transition-smooth);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35); }
.btn-primary:hover { box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45); color: white; }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-light); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-soft); background: rgba(124, 58, 237, 0.12); }
.btn-small { padding: 8px 20px; font-size: 0.85rem; }

.section { padding: 80px 0; }
.section.bg-dark { background: var(--bg-dark); }
.section-title { text-align: center; font-size: 2.3rem; margin-bottom: 50px; }
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .edition-card, .screenshot-card, .step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: var(--transition-smooth); will-change: transform;
}
.card:hover, .edition-card:hover, .screenshot-card:hover, .step:hover {
  transform: translateY(-4px); border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.card i, .req-item i {
  font-size: 2.5rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; display: inline-block;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-main); }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.screenshot-card { overflow: hidden; cursor: pointer; padding: 0; }
.screenshot-card img { width: 100%; height: 200px; object-fit: cover; }
.screenshot-caption { padding: 12px; text-align: center; font-size: 0.9rem; color: var(--text-secondary); background: var(--bg-elevated); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.step { overflow: hidden; padding: 0; }
.step-number {
  width: 48px; height: 48px; background: var(--gradient); border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 24px auto 0;
}
.step-content { padding: 24px; }
.step-content h4 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary-soft); text-align: center; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; text-align: center; margin-bottom: 16px; }
.step-content .btn { display: table; margin: 0 auto; }

.method-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.method-tab {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 25px; 
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  min-width: 120px;
  text-align: center;
}
.method-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}
.method-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.2);
}
.method-content {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  min-height: 180px; 
}
.method-content.active {
  display: block;
}
.method-content p { text-align: left; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.method-content code {
  display: block; background: rgba(0, 0, 0, 0.4); padding: 12px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.85rem; margin: 12px 0; overflow-x: auto; border-left: 3px solid var(--primary); color: var(--text-light);
}
.warning { color: #f59e0b !important; font-size: 0.85rem !important; margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--border); }

#editions-container { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; }
.edition-card { padding: 0; overflow: hidden; }
.edition-header { padding: 32px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.04) 100%); border-bottom: 1px solid var(--border); }
.edition-badge { display: inline-block; padding: 6px 18px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.5px; }
.badge-stable { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.badge-beta { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.badge-alpha { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
.edition-title { font-size: 1.85rem; margin-bottom: 8px; color: var(--text-main); }
.edition-subtitle { color: var(--primary-soft); font-size: 1rem; font-weight: 500; }
.edition-body { padding: 32px; }
.edition-description { font-size: 1.05rem; margin-bottom: 28px; color: var(--text-secondary); }
.edition-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: rgba(124, 58, 237, 0.05); border-radius: var(--radius-sm); border: 1px solid rgba(124, 58, 237, 0.1); transition: var(--transition-smooth); }
.feature-item:hover { border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.08); transform: translateX(4px); }
.feature-icon { font-size: 1.1rem; color: var(--primary); flex-shrink: 0; }
.feature-text { font-size: 0.92rem; color: var(--text-secondary); }

.screenshot-gallery { margin: 32px 0; }
.gallery-title { font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.gallery-title i { color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--bg-elevated); border: 1px solid var(--border); transition: var(--transition-smooth); }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-caption { padding: 10px; font-size: 0.85rem; text-align: center; color: var(--text-secondary); background: var(--bg-card); }
.download-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.download-links .btn { padding: 10px 22px; }
.edition-meta { display: flex; gap: 28px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-secondary); }
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item i { color: var(--primary); }

.sys-reqs { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-top: 40px; }
.sys-reqs h2 { font-size: 1.7rem; margin-bottom: 32px; text-align: center; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.req-item { background: rgba(124, 58, 237, 0.05); padding: 24px; border-radius: var(--radius-sm); text-align: center; border: 1px solid var(--border); transition: var(--transition-smooth); }
.req-item:hover { border-color: var(--primary); transform: translateY(-4px); }
.req-item strong { display: block; margin-bottom: 6px; color: var(--text-main); font-size: 1rem; }
.req-item span { color: var(--text-secondary); font-size: 0.85rem; }

.page-header { text-align: center; padding: 80px 20px 60px; background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 70%); }
.page-header h1 { font-size: 3rem; margin-bottom: 16px; font-weight: 800; }
.page-header p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); border: 1px solid rgba(124, 58, 237, 0.3); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4); color: white;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; backdrop-filter: blur(8px); transition: var(--transition-smooth);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 50px 0 30px; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-section h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--text-main); }
.footer-section p { color: var(--text-secondary); font-size: 0.85rem; max-width: 250px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: var(--text-secondary); font-size: 0.85rem; transition: all 0.2s ease; }
.footer-section ul li a:hover { color: var(--primary-soft); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-buttons { justify-content: center; }
  .video-controls { opacity: 0.9; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-header);
    backdrop-filter: blur(12px); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); z-index: 999;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .lang-switcher { top: auto; bottom: 20px; right: 20px; z-index: 1002; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .video-btn { width: 32px; height: 32px; font-size: 0.8rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 32px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .page-header { padding: 50px 20px 30px; }
  .page-header h1 { font-size: 2rem; }
  .edition-header, .edition-body { padding: 20px; }
  .edition-title { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .download-links { flex-direction: column; }
  .download-links .btn { justify-content: center; }
  .edition-meta { flex-direction: column; gap: 12px; }
  .sys-reqs { padding: 24px; }
  .footer-content { flex-direction: column; text-align: center; align-items: center; }
  .footer-section p { max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .method-tabs { flex-direction: column; }
  .method-tab { text-align: center; }
  .lightbox-close, .lightbox-nav { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .edition-features { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }

.video-container.fullscreen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; background: #000;
  border-radius: 0; display: flex; align-items: center; justify-content: center;
}
.video-container.fullscreen .hero-video-player { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.video-container.fullscreen .video-controls { opacity: 1; transform: translateX(-50%) translateY(-20px); }

.community-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.community-link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.community-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.community-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.community-link-card:hover::before {
  opacity: 1;
}

.community-icon {
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-soft);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.community-link-card:hover .community-icon {
  background: var(--gradient);
  color: white;
  transform: scale(1.05);
}

.community-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.community-link-card:hover .community-info h4 {
  color: var(--primary-soft);
}

.community-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .community-links {
    grid-template-columns: 1fr;
  }
  .community-link-card {
    padding: 20px;
  }
}

.wiki-note {
  background: rgba(13, 110, 253, 0.08);
  border-left: 3px solid #0d6efd;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

.wiki-note .wiki-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #0d6efd;
  transition: all 0.2s;
}

.wiki-note .wiki-link:hover {
  color: #0a58ca;
  border-bottom-style: solid;
}

.method-content .btn-outline {
  margin-top: 0.5rem;
  border-color: #6c757d;
  color: #6c757d;
  font-size: 0.85rem;
}

.method-content .btn-outline:hover {
  background: #6c757d;
  color: white;
}

.wiki-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-wiki {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border: none;
  color: white;
}

.btn-wiki:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: white;
}

.wiki-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6c757d;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .btn-wiki {
    width: 100%;
    justify-content: center;
  }
}

.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.filter-btn .badge-count {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.screenshot-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.screenshot-card-full:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.screenshot-card-full img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-card-full:hover img {
  transform: scale(1.03);
}

.screenshot-card-info {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.screenshot-card-edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-soft);
  margin-bottom: 8px;
  width: auto;
}

.screenshot-card-edition .edition-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.screenshot-card-edition .edition-title-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.screenshot-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.screenshot-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.screenshot-card-variant {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.screenshot-card-variant i {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .gallery-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid-full {
    grid-template-columns: 1fr;
  }
  
  .screenshot-card-full img {
    height: 200px;
  }
}

.dw-stats-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition-smooth);
}

.dw-stats-container:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.dw-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dw-stats-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dw-stats-title i {
  font-size: 1.5rem;
  color: var(--primary);
}

.dw-stats-title h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 0;
}

.dw-stats-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--primary-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.dw-stats-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.dw-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dw-stat-item {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.dw-stat-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.dw-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dw-stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dw-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dw-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dw-stat-value small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.dw-stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dw-stat-change.positive {
  color: #10b981;
}

.dw-stat-change.negative {
  color: #ef4444;
}

.dw-stats-updated {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dw-stats-updated i {
  color: var(--primary);
  font-size: 0.7rem;
}

.dw-stats-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dw-stats-loading i {
  font-size: 1.2rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  .dw-stats-container {
    padding: 20px;
  }

  .dw-stats-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dw-stats-grid {
    grid-template-columns: 1fr;
  }

  .dw-stat-item {
    padding: 16px;
  }
}

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.faq-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.faq-category-btn {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-category-btn:hover,
.faq-category-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.faq-question {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: rgba(124, 58, 237, 0.05);
}

.faq-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.faq-item.active .faq-question-text {
  color: var(--primary-soft);
}

.faq-question-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth), background var(--transition-smooth);
  flex-shrink: 0;
}

.faq-question-icon i {
  font-size: 0.85rem;
  color: var(--primary-soft);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-question-icon {
  background: var(--gradient);
}

.faq-item.active .faq-question-icon i {
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 28px 24px;
}

.faq-answer-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content code {
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary-soft);
}

.faq-answer-content ul,
.faq-answer-content ol {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 12px 0;
  padding-left: 20px;
}

.faq-answer-content ul li,
.faq-answer-content ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-answer-content a {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer-content a:hover {
  color: var(--secondary-light);
}

.faq-answer-content .note {
  background: rgba(13, 110, 253, 0.08);
  border-left: 3px solid #0d6efd;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.faq-answer-content .warning-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #f59e0b;
}

.faq-search {
  margin-bottom: 40px;
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 16px 50px 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.faq-search input::placeholder {
  color: var(--text-muted);
}

.faq-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}

.faq-no-results i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}

.faq-no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.faq-no-results p {
  font-size: 0.9rem;
}

.faq-contact {
  margin-top: 60px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.faq-contact h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.faq-contact p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.faq-contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 10px 0;
  }
  
  .faq-categories {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .faq-category-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .faq-question {
    padding: 20px;
  }
  
  .faq-question-text {
    font-size: 0.95rem;
  }
  
  .faq-answer-content {
    padding: 0 20px 20px;
  }
  
  .faq-contact {
    padding: 24px;
  }
  
  .faq-contact-links {
    flex-direction: column;
    align-items: center;
  }
}

.dw-stats-container,
.dw-stats-container * {
  cursor: default;
}

.dw-stats-container a,
.dw-stats-container .dw-stats-link,
.dw-stats-container .dw-stat-item {
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
  pointer-events: none;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .lightbox-caption {
    bottom: -30px;
    font-size: 0.75rem;
    white-space: normal;
    word-break: break-word;
    border-radius: var(--radius-sm);
  }
  
  .lightbox-content {
    max-width: 95vw;
  }
}